1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for MPICH 3.4.3.
4#
5# Report bugs to <discuss@mpich.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
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
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; 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# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and discuss@mpich.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='MPICH'
592PACKAGE_TARNAME='mpich'
593PACKAGE_VERSION='3.4.3'
594PACKAGE_STRING='MPICH 3.4.3'
595PACKAGE_BUGREPORT='discuss@mpich.org'
596PACKAGE_URL='http://www.mpich.org/'
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634enable_option_checking=no
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639pkgconfigdir
640F08_C_OFFSET
641F08_C_COUNT
642F08_C_AINT
643F08_CXX_LONG_DOUBLE_COMPLEX
644F08_CXX_DOUBLE_COMPLEX
645F08_CXX_FLOAT_COMPLEX
646F08_CXX_BOOL
647F08_COUNT
648F08_OFFSET
649F08_AINT
650F08_C_LONG_DOUBLE_COMPLEX
651F08_C_DOUBLE_COMPLEX
652F08_C_COMPLEX
653F08_C_FLOAT_COMPLEX
654F08_C_BOOL
655F08_UINT64_T
656F08_UINT32_T
657F08_UINT16_T
658F08_UINT8_T
659F08_INT64_T
660F08_INT32_T
661F08_INT16_T
662F08_INT8_T
663F08_LONG_DOUBLE_INT
664F08_2INT
665F08_SHORT_INT
666F08_LONG_INT
667F08_DOUBLE_INT
668F08_FLOAT_INT
669F08_LONG_LONG
670F08_UNSIGNED_LONG_LONG
671F08_LONG_LONG_INT
672F08_LONG_DOUBLE
673F08_DOUBLE
674F08_FLOAT
675F08_UNSIGNED_LONG
676F08_UNSIGNED_INT
677F08_LONG
678F08_INT
679F08_UNSIGNED
680F08_UNSIGNED_SHORT
681F08_SHORT
682F08_WCHAR
683F08_UNSIGNED_CHAR
684F08_SIGNED_CHAR
685F08_CHAR
686F08_BYTE
687F08_LB
688F08_UB
689F08_PACKED
690F08_COMPLEX32
691F08_COMPLEX16
692F08_COMPLEX8
693F08_REAL16
694F08_REAL8
695F08_REAL4
696F08_INTEGER16
697F08_INTEGER8
698F08_INTEGER4
699F08_INTEGER2
700F08_INTEGER1
701subdirs
702MPIF77_NAME
703MPIF90_NAME
704MPIFORT_NAME
705MPICPP_NAME
706MPICXX_NAME
707MPICC_NAME
708BUILD_F77_BINDING_FALSE
709BUILD_F77_BINDING_TRUE
710BUILD_CXX_BINDING_FALSE
711BUILD_CXX_BINDING_TRUE
712MPIU_DLL_SPEC_DEF
713MPI_MAX_ERROR_STRING
714MPI_MAX_LIBRARY_VERSION_STRING
715MPI_MAX_PROCESSOR_NAME
716CMB_STATUS_ALIGNMENT
717CMB_1INT_ALIGNMENT
718MPI_STATUS_SIZE
719SIZEOF_MPI_STATUS
720MPI_F77_COUNT
721MPI_COUNT_DATATYPE
722COUNT_KIND
723MPI_COUNT
724MPI_OFFSET_DATATYPE
725FORTRAN_MPI_OFFSET
726MPI_OFFSET_TYPEDEF
727MPI_OFFSET
728MPI_FINT
729ofilib
730ofisrcdir
731REPLACE_WCTOMB
732REPLACE_UNSETENV
733REPLACE_STRTOD
734REPLACE_SETENV
735REPLACE_REALPATH
736REPLACE_REALLOC
737REPLACE_RANDOM_R
738REPLACE_QSORT_R
739REPLACE_PUTENV
740REPLACE_PTSNAME_R
741REPLACE_PTSNAME
742REPLACE_MKSTEMP
743REPLACE_MBTOWC
744REPLACE_MALLOC
745REPLACE_CANONICALIZE_FILE_NAME
746REPLACE_CALLOC
747HAVE_DECL_UNSETENV
748HAVE_UNLOCKPT
749HAVE_SYS_LOADAVG_H
750HAVE_STRUCT_RANDOM_DATA
751HAVE_STRTOULL
752HAVE_STRTOLL
753HAVE_STRTOD
754HAVE_DECL_SETENV
755HAVE_SETENV
756HAVE_SECURE_GETENV
757HAVE_RPMATCH
758HAVE_REALPATH
759HAVE_RANDOM_R
760HAVE_RANDOM_H
761HAVE_RANDOM
762HAVE_PTSNAME_R
763HAVE_PTSNAME
764HAVE_POSIX_OPENPT
765HAVE_MKSTEMPS
766HAVE_MKSTEMP
767HAVE_MKOSTEMPS
768HAVE_MKOSTEMP
769HAVE_MKDTEMP
770HAVE_GRANTPT
771HAVE_GETSUBOPT
772HAVE_DECL_GETLOADAVG
773HAVE_CANONICALIZE_FILE_NAME
774HAVE_ATOLL
775HAVE__EXIT
776GNULIB_WCTOMB
777GNULIB_UNSETENV
778GNULIB_UNLOCKPT
779GNULIB_SYSTEM_POSIX
780GNULIB_STRTOULL
781GNULIB_STRTOLL
782GNULIB_STRTOD
783GNULIB_SETENV
784GNULIB_SECURE_GETENV
785GNULIB_RPMATCH
786GNULIB_REALPATH
787GNULIB_REALLOC_POSIX
788GNULIB_RANDOM_R
789GNULIB_RANDOM
790GNULIB_QSORT_R
791GNULIB_PUTENV
792GNULIB_PTSNAME_R
793GNULIB_PTSNAME
794GNULIB_POSIX_OPENPT
795GNULIB_MKSTEMPS
796GNULIB_MKSTEMP
797GNULIB_MKOSTEMPS
798GNULIB_MKOSTEMP
799GNULIB_MKDTEMP
800GNULIB_MBTOWC
801GNULIB_MALLOC_POSIX
802GNULIB_GRANTPT
803GNULIB_GETSUBOPT
804GNULIB_GETLOADAVG
805GNULIB_CANONICALIZE_FILE_NAME
806GNULIB_CALLOC_POSIX
807GNULIB_ATOLL
808GNULIB__EXIT
809AS
810PAPI_INCLUDE
811mmx_copy_s
812nemesis_nets_macro_defs
813nemesis_nets_array_sz
814nemesis_nets_array
815nemesis_nets_func_array
816nemesis_nets_func_decl
817nemesis_nets_strings
818nemesis_nets_dirs
819nemesis_networks
820BUILD_PMI_SIMPLE_FALSE
821BUILD_PMI_SIMPLE_TRUE
822BUILD_PMI_CRAY_FALSE
823BUILD_PMI_CRAY_TRUE
824BUILD_PMI_BGQ_FALSE
825BUILD_PMI_BGQ_TRUE
826BUILD_PMI_PMI2_SIMPLE_FALSE
827BUILD_PMI_PMI2_SIMPLE_TRUE
828BUILD_PMI_PMI2_FALSE
829BUILD_PMI_PMI2_TRUE
830BUILD_PMI_SLURM_FALSE
831BUILD_PMI_SLURM_TRUE
832BUILD_PM_UTIL_FALSE
833BUILD_PM_UTIL_TRUE
834RSH
835SSH
836PRIMARY_PM_REMSHELL_FALSE
837PRIMARY_PM_REMSHELL_TRUE
838BUILD_PM_REMSHELL_FALSE
839BUILD_PM_REMSHELL_TRUE
840PRIMARY_PM_GFORKER_FALSE
841PRIMARY_PM_GFORKER_TRUE
842BUILD_PM_GFORKER_FALSE
843BUILD_PM_GFORKER_TRUE
844FC_INTEGER_MODEL_MAP
845FC_ALL_INTEGER_MODELS
846FC_INTEGER_MODEL
847FC_DOUBLE_MODEL
848FC_REAL_MODEL
849BUILD_PM_HYDRA2_FALSE
850BUILD_PM_HYDRA2_TRUE
851BUILD_PM_HYDRA_FALSE
852BUILD_PM_HYDRA_TRUE
853ucxlib
854ucxdir
855BUILD_CH4_COLL_TUNING_FALSE
856BUILD_CH4_COLL_TUNING_TRUE
857BUILD_CH4_SHM_FALSE
858BUILD_CH4_SHM_TRUE
859BUILD_DATALOOP_ENGINE_FALSE
860BUILD_DATALOOP_ENGINE_TRUE
861BUILD_YAKSA_ENGINE_FALSE
862BUILD_YAKSA_ENGINE_TRUE
863BSEND_OVERHEAD
864MPI_AINT_DATATYPE
865MPI_AINT_FMT_HEX_SPEC
866MPI_AINT_FMT_DEC_SPEC
867MPI_AINT
868LPMPILIBNAME
869ALLOCA
870BUILD_COVERAGE_FALSE
871BUILD_COVERAGE_TRUE
872GCOV
873DISABLE_TAG_SUPPORT
874MPI_F77_CXX_LONG_DOUBLE_COMPLEX
875MPI_F77_CXX_DOUBLE_COMPLEX
876MPI_F77_CXX_FLOAT_COMPLEX
877MPI_F77_CXX_BOOL
878REQI8
879REQI2
880REQI1
881REQD
882SIZEOF_FC_CHARACTER
883SIZEOF_FC_DOUBLE_PRECISION
884SIZEOF_FC_REAL
885SIZEOF_FC_INTEGER
886DLLIMPORT
887INTEGER_KIND
888OFFSET_KIND
889ADDRESS_KIND
890WTIME_DOUBLE_TYPE
891MPI_F77_OFFSET
892MPI_F77_AINT
893MPI_F77_C_LONG_DOUBLE_COMPLEX
894MPI_F77_C_DOUBLE_COMPLEX
895MPI_F77_C_COMPLEX
896MPI_F77_C_FLOAT_COMPLEX
897MPI_F77_C_BOOL
898MPI_F77_UINT64_T
899MPI_F77_UINT32_T
900MPI_F77_UINT16_T
901MPI_F77_UINT8_T
902MPI_F77_INT64_T
903MPI_F77_INT32_T
904MPI_F77_INT16_T
905MPI_F77_INT8_T
906MPI_F77_LONG_DOUBLE_INT
907MPI_F77_2INT
908MPI_F77_SHORT_INT
909MPI_F77_LONG_INT
910MPI_F77_DOUBLE_INT
911MPI_F77_FLOAT_INT
912MPI_F77_LONG_LONG
913MPI_F77_LONG_LONG_INT
914MPI_F77_UNSIGNED_LONG_LONG
915MPI_F77_LONG_DOUBLE
916MPI_F77_DOUBLE
917MPI_F77_FLOAT
918MPI_F77_UNSIGNED_LONG
919MPI_F77_LONG
920MPI_F77_INT
921MPI_F77_UNSIGNED
922MPI_F77_UNSIGNED_SHORT
923MPI_F77_SHORT
924MPI_F77_WCHAR
925MPI_F77_UNSIGNED_CHAR
926MPI_F77_SIGNED_CHAR
927MPI_F77_CHAR
928F77_COMPLEX32
929F77_COMPLEX16
930F77_COMPLEX8
931F77_REAL16
932F77_REAL8
933F77_REAL4
934F77_INTEGER16
935F77_INTEGER8
936F77_INTEGER4
937F77_INTEGER2
938F77_INTEGER1
939MPI_F77_BYTE
940MPI_F77_LB
941MPI_F77_UB
942MPI_F77_PACKED
943MPI_2DOUBLE_PRECISION
944MPI_DOUBLE_COMPLEX
945MPI_2REAL
946MPI_2INTEGER
947MPI_DOUBLE_PRECISION
948MPI_COMPLEX
949MPI_LOGICAL
950MPI_REAL
951MPI_INTEGER
952MPI_CHARACTER
953MPIX_C_FLOAT16
954MPI_C_LONG_DOUBLE_COMPLEX
955MPI_C_DOUBLE_COMPLEX
956MPI_C_FLOAT_COMPLEX
957MPI_C_BOOL
958MPI_UINT64_T
959MPI_UINT32_T
960MPI_UINT16_T
961MPI_UINT8_T
962MPI_INT64_T
963MPI_INT32_T
964MPI_INT16_T
965MPI_INT8_T
966MPI_INTEGER16
967MPI_INTEGER8
968MPI_INTEGER4
969MPI_INTEGER2
970MPI_INTEGER1
971MPI_COMPLEX32
972MPI_COMPLEX16
973MPI_COMPLEX8
974MPI_REAL16
975MPI_REAL8
976MPI_REAL4
977MPI_UNSIGNED_LONG_LONG
978MPI_SIGNED_CHAR
979MPI_LONG_DOUBLE_INT
980MPI_2INT
981MPI_SHORT_INT
982MPI_LONG_INT
983MPI_DOUBLE_INT
984MPI_FLOAT_INT
985MPI_UB
986MPI_LB
987MPI_PACKED
988MPI_WCHAR
989MPI_BYTE
990MPI_LONG_DOUBLE
991MPI_DOUBLE
992MPI_FLOAT
993MPI_LONG_LONG
994MPI_UNSIGNED_LONG
995MPI_LONG
996MPI_UNSIGNED_INT
997MPI_INT
998MPI_UNSIGNED_SHORT
999MPI_SHORT
1000MPI_UNSIGNED_CHAR
1001MPI_CHAR
1002DOCTEXT
1003BUILD_NAMEPUB_PMI_FALSE
1004BUILD_NAMEPUB_PMI_TRUE
1005BUILD_NAMEPUB_FILE_FALSE
1006BUILD_NAMEPUB_FILE_TRUE
1007BUILD_DEBUGGER_DLL_FALSE
1008BUILD_DEBUGGER_DLL_TRUE
1009SHLIB_EXT
1010BUILD_BASH_SCRIPTS_FALSE
1011BUILD_BASH_SCRIPTS_TRUE
1012BASH_SHELL
1013SET_CFLAGS
1014VPATH
1015MAKE
1016XARGS_NODATA_OPT
1017KILLALL
1018PERL
1019bindings
1020MPIR_CXX_LONG_DOUBLE_COMPLEX
1021MPIR_CXX_DOUBLE_COMPLEX
1022MPIR_CXX_COMPLEX
1023MPIR_CXX_BOOL
1024FORTRAN_BINDING
1025INCLUDE_MPICXX_H
1026GNUCXX_MINORVERSION
1027GNUCXX_VERSION
1028HAVE_CXX_EXCEPTIONS
1029modincdir
1030FC_OTHER_LIBS
1031FCCPP
1032FCINCFLAG
1033FCINC
1034MPI_C_INTERFACE_CDESC_NAME
1035MPI_C_INTERFACE_TYPES_NAME
1036MPI_C_INTERFACE_GLUE_NAME
1037MPI_C_INTERFACE_NOBUF_NAME
1038MPI_C_INTERFACE_NAME
1039PMPI_F08_NAME
1040MPI_F08_COMPILE_CONSTANTS_NAME
1041MPI_F08_TYPES_NAME
1042MPI_F08_CALLBACKS_NAME
1043MPI_F08_LINK_CONSTANTS_NAME
1044MPI_F08_NAME
1045MPIBASEMODNAME
1046MPISIZEOFMODNAME
1047MPICONSTMODNAME
1048MPIMODNAME
1049FCMODINCSPEC
1050FCMODOUTFLAG
1051FCMODINCFLAG
1052FC_WORK_FILES_ARG
1053FCMODEXT
1054FCEXT
1055BUILD_F08_BINDING_FALSE
1056BUILD_F08_BINDING_TRUE
1057F77CPP
1058MPIFPMPI
1059F77_LIBDIR_LEADER
1060F77_INCDIR
1061F77_OTHER_LIBS
1062F77_NAME_MANGLE
1063FILE
1064FLIBS
1065WRAPPER_C_DYNAMIC_LOADING_FLAGS
1066C_LINKPATH_SHL
1067pm_name
1068BUILD_ROMIO_FALSE
1069BUILD_ROMIO_TRUE
1070HAVE_ROMIO
1071netloclibdir
1072FOUND_XZ_FALSE
1073FOUND_XZ_TRUE
1074BUILD_MPITOOLS_FALSE
1075BUILD_MPITOOLS_TRUE
1076BUILD_NETLOCSCOTCH_FALSE
1077BUILD_NETLOCSCOTCH_TRUE
1078BUILD_NETLOC_FALSE
1079BUILD_NETLOC_TRUE
1080HWLOC_HAVE_CXX_FALSE
1081HWLOC_HAVE_CXX_TRUE
1082HWLOC_XML_LIBXML_BUILD_STATIC_FALSE
1083HWLOC_XML_LIBXML_BUILD_STATIC_TRUE
1084HWLOC_GL_BUILD_STATIC_FALSE
1085HWLOC_GL_BUILD_STATIC_TRUE
1086HWLOC_RSMI_BUILD_STATIC_FALSE
1087HWLOC_RSMI_BUILD_STATIC_TRUE
1088HWLOC_NVML_BUILD_STATIC_FALSE
1089HWLOC_NVML_BUILD_STATIC_TRUE
1090HWLOC_CUDA_BUILD_STATIC_FALSE
1091HWLOC_CUDA_BUILD_STATIC_TRUE
1092HWLOC_OPENCL_BUILD_STATIC_FALSE
1093HWLOC_OPENCL_BUILD_STATIC_TRUE
1094HWLOC_PCI_BUILD_STATIC_FALSE
1095HWLOC_PCI_BUILD_STATIC_TRUE
1096HWLOC_HAVE_PLUGINS_FALSE
1097HWLOC_HAVE_PLUGINS_TRUE
1098HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE
1099HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE
1100HWLOC_HAVE_X86_CPUID_FALSE
1101HWLOC_HAVE_X86_CPUID_TRUE
1102HWLOC_HAVE_X86_64_FALSE
1103HWLOC_HAVE_X86_64_TRUE
1104HWLOC_HAVE_X86_32_FALSE
1105HWLOC_HAVE_X86_32_TRUE
1106HWLOC_HAVE_X86_FALSE
1107HWLOC_HAVE_X86_TRUE
1108HWLOC_HAVE_MINGW32_FALSE
1109HWLOC_HAVE_MINGW32_TRUE
1110HWLOC_HAVE_WINDOWS_FALSE
1111HWLOC_HAVE_WINDOWS_TRUE
1112HWLOC_HAVE_HPUX_FALSE
1113HWLOC_HAVE_HPUX_TRUE
1114HWLOC_HAVE_AIX_FALSE
1115HWLOC_HAVE_AIX_TRUE
1116HWLOC_HAVE_SOLARIS_FALSE
1117HWLOC_HAVE_SOLARIS_TRUE
1118HWLOC_HAVE_NETBSD_FALSE
1119HWLOC_HAVE_NETBSD_TRUE
1120HWLOC_HAVE_FREEBSD_FALSE
1121HWLOC_HAVE_FREEBSD_TRUE
1122HWLOC_HAVE_DARWIN_FALSE
1123HWLOC_HAVE_DARWIN_TRUE
1124HWLOC_HAVE_IRIX_FALSE
1125HWLOC_HAVE_IRIX_TRUE
1126HWLOC_HAVE_BGQ_FALSE
1127HWLOC_HAVE_BGQ_TRUE
1128HWLOC_HAVE_LINUX_FALSE
1129HWLOC_HAVE_LINUX_TRUE
1130HWLOC_INSTALL_DOXYGEN_FALSE
1131HWLOC_INSTALL_DOXYGEN_TRUE
1132HWLOC_BUILD_README_FALSE
1133HWLOC_BUILD_README_TRUE
1134HWLOC_BUILD_DOXYGEN_FALSE
1135HWLOC_BUILD_DOXYGEN_TRUE
1136HWLOC_HAVE_USER32_FALSE
1137HWLOC_HAVE_USER32_TRUE
1138HWLOC_HAVE_BUNZIPP_FALSE
1139HWLOC_HAVE_BUNZIPP_TRUE
1140HWLOC_HAVE_RSMI_FALSE
1141HWLOC_HAVE_RSMI_TRUE
1142HWLOC_HAVE_NVML_FALSE
1143HWLOC_HAVE_NVML_TRUE
1144HWLOC_HAVE_OPENCL_FALSE
1145HWLOC_HAVE_OPENCL_TRUE
1146HWLOC_HAVE_PCIACCESS_FALSE
1147HWLOC_HAVE_PCIACCESS_TRUE
1148HWLOC_HAVE_CAIRO_FALSE
1149HWLOC_HAVE_CAIRO_TRUE
1150HWLOC_HAVE_LIBXML2_FALSE
1151HWLOC_HAVE_LIBXML2_TRUE
1152HWLOC_HAVE_CUDART_FALSE
1153HWLOC_HAVE_CUDART_TRUE
1154HWLOC_HAVE_GL_FALSE
1155HWLOC_HAVE_GL_TRUE
1156HWLOC_HAVE_CUDA_FALSE
1157HWLOC_HAVE_CUDA_TRUE
1158HWLOC_HAVE_LIBIBVERBS_FALSE
1159HWLOC_HAVE_LIBIBVERBS_TRUE
1160HWLOC_HAVE_LINUX_LIBNUMA_FALSE
1161HWLOC_HAVE_LINUX_LIBNUMA_TRUE
1162HWLOC_HAVE_PTHREAD_FALSE
1163HWLOC_HAVE_PTHREAD_TRUE
1164HWLOC_HAVE_SCHED_SETAFFINITY_FALSE
1165HWLOC_HAVE_SCHED_SETAFFINITY_TRUE
1166HWLOC_HAVE_OPENAT_FALSE
1167HWLOC_HAVE_OPENAT_TRUE
1168HWLOC_HAVE_MS_LIB_FALSE
1169HWLOC_HAVE_MS_LIB_TRUE
1170HWLOC_HAVE_GCC_FALSE
1171HWLOC_HAVE_GCC_TRUE
1172HWLOC_BUILD_STANDALONE_FALSE
1173HWLOC_BUILD_STANDALONE_TRUE
1174HWLOC_EMBEDDED_LIBS
1175HWLOC_EMBEDDED_LDADD
1176HWLOC_EMBEDDED_LDFLAGS
1177HWLOC_EMBEDDED_CPPFLAGS
1178HWLOC_EMBEDDED_CFLAGS
1179HWLOC_LIBS_PRIVATE
1180HWLOC_LIBS
1181HWLOC_LDFLAGS
1182HWLOC_CPPFLAGS
1183HWLOC_CFLAGS
1184HWLOC_REQUIRES
1185HWLOC_PLUGINS_DIR
1186HWLOC_PLUGINS_PATH
1187HWLOC_LTDL_LIBS
1188HWLOC_DL_LIBS
1189HWLOC_HAVE_LIBXML2
1190HWLOC_LIBXML2_LIBS
1191HWLOC_LIBXML2_CFLAGS
1192HWLOC_GL_LIBS
1193X_EXTRA_LIBS
1194X_LIBS
1195X_PRE_LIBS
1196X_CFLAGS
1197XMKMF
1198HWLOC_HAVE_RSMI
1199HWLOC_RSMI_LIBS
1200HWLOC_HAVE_NVML
1201HWLOC_NVML_LIBS
1202HWLOC_CUDA_LIBS
1203HWLOC_HAVE_OPENCL
1204HWLOC_OPENCL_LDFLAGS
1205HWLOC_OPENCL_LIBS
1206HWLOC_OPENCL_CFLAGS
1207HWLOC_PCIACCESS_LIBS
1208HWLOC_PCIACCESS_CFLAGS
1209PKG_CONFIG
1210BASH
1211HWLOC_MS_LIB
1212HWLOC_MS_LIB_ARCH
1213HWLOC_RELEASE_DATE
1214HWLOC_VERSION
1215HWLOC_top_srcdir
1216HWLOC_top_builddir
1217hwloclib
1218hwloclibdir
1219hwlocsrcdir
1220VISIBILITY_CFLAGS
1221BUILD_PROFILING_LIB_FALSE
1222BUILD_PROFILING_LIB_TRUE
1223yaksalib
1224yaksalibdir
1225yaksasrcdir
1226YAKSALIBNAME
1227zmlib
1228zmlibdir
1229zmsrcdir
1230ZMLIBNAME
1231mpllib
1232mpllibdir
1233mplsrcdir
1234MPLLIBNAME
1235HAVE_ERROR_CHECKING
1236MPIFCLIBNAME
1237MPICXXLIBNAME
1238PMPILIBNAME
1239MPILIBNAME
1240BUILD_CH4_NETMOD_OFI_FALSE
1241BUILD_CH4_NETMOD_OFI_TRUE
1242BUILD_CH3_UTIL_SOCK_FALSE
1243BUILD_CH3_UTIL_SOCK_TRUE
1244BUILD_CH3_SOCK_FALSE
1245BUILD_CH3_SOCK_TRUE
1246BUILD_MPID_COMMON_SCHED_FALSE
1247BUILD_MPID_COMMON_SCHED_TRUE
1248BUILD_MPID_COMMON_THREAD_FALSE
1249BUILD_MPID_COMMON_THREAD_TRUE
1250BUILD_NEMESIS_NETMOD_TCP_FALSE
1251BUILD_NEMESIS_NETMOD_TCP_TRUE
1252BUILD_NEMESIS_NETMOD_OFI_FALSE
1253BUILD_NEMESIS_NETMOD_OFI_TRUE
1254BUILD_MPID_COMMON_SHM_FALSE
1255BUILD_MPID_COMMON_SHM_TRUE
1256BUILD_CH3_NEMESIS_FALSE
1257BUILD_CH3_NEMESIS_TRUE
1258channel_name
1259BUILD_CH3_FALSE
1260BUILD_CH3_TRUE
1261BUILD_MPID_COMMON_BC_FALSE
1262BUILD_MPID_COMMON_BC_TRUE
1263BUILD_CH4_SHM_POSIX_EAGER_STUB_FALSE
1264BUILD_CH4_SHM_POSIX_EAGER_STUB_TRUE
1265BUILD_CH4_SHM_POSIX_EAGER_IQUEUE_FALSE
1266BUILD_CH4_SHM_POSIX_EAGER_IQUEUE_TRUE
1267BUILD_SHM_POSIX_FALSE
1268BUILD_SHM_POSIX_TRUE
1269ch4_posix_eager_recv_transaction_decl
1270ch4_posix_eager_pre_include
1271ch4_posix_eager_func_array
1272ch4_posix_eager_func_decl
1273ch4_posix_eager_strings
1274ch4_posix_eager_array_sz
1275ch4_posix_eager_array
1276ch4_posix_eager_modules
1277BUILD_HCOLL_FALSE
1278BUILD_HCOLL_TRUE
1279BUILD_MPID_COMMON_GENQ_FALSE
1280BUILD_MPID_COMMON_GENQ_TRUE
1281BUILD_CH4_NETMOD_STUBNM_FALSE
1282BUILD_CH4_NETMOD_STUBNM_TRUE
1283BUILD_SHM_IPC_XPMEM_FALSE
1284BUILD_SHM_IPC_XPMEM_TRUE
1285BUILD_SHM_IPC_GPU_FALSE
1286BUILD_SHM_IPC_GPU_TRUE
1287BUILD_FC_BINDING_FALSE
1288BUILD_FC_BINDING_TRUE
1289BUILD_SHM_STUBSHM_FALSE
1290BUILD_SHM_STUBSHM_TRUE
1291BUILD_CH4_NETMOD_UCX_FALSE
1292BUILD_CH4_NETMOD_UCX_TRUE
1293ch4_netmod_op_decl
1294ch4_netmod_addr_decl
1295ch4_netmod_win_decl
1296ch4_netmod_dt_decl
1297ch4_netmod_comm_decl
1298ch4_netmod_request_decl
1299ch4_netmod_amrequest_decl
1300ch4_netmod_coll_params_include
1301ch4_netmod_coll_globals_default
1302ch4_netmod_pre_include
1303ch4_nets_strings
1304ch4_nets_native_func_array
1305ch4_nets_func_array
1306ch4_nets_native_func_decl
1307ch4_nets_func_decl
1308ch4_nets_array_sz
1309ch4_nets_array
1310ch4_netmods
1311device_name
1312BUILD_CH4_FALSE
1313BUILD_CH4_TRUE
1314DEVICE
1315main_top_srcdir
1316main_top_builddir
1317ac_ct_F77
1318FFLAGS
1319F77
1320INSTALL_MPIF77_FALSE
1321INSTALL_MPIF77_TRUE
1322ac_ct_FC
1323FCFLAGS
1324FC
1325CXXCPP
1326am__fastdepCXX_FALSE
1327am__fastdepCXX_TRUE
1328CXXDEPMODE
1329ac_ct_CXX
1330CXXFLAGS
1331CXX
1332INTERLIB_DEPS
1333LT_SYS_LIBRARY_PATH
1334OTOOL64
1335OTOOL
1336LIPO
1337NMEDIT
1338DSYMUTIL
1339MANIFEST_TOOL
1340RANLIB
1341DLLTOOL
1342OBJDUMP
1343LN_S
1344NM
1345ac_ct_DUMPBIN
1346DUMPBIN
1347LD
1348FGREP
1349SED
1350LIBTOOL
1351ac_ct_AR
1352AR
1353MAINT
1354MAINTAINER_MODE_FALSE
1355MAINTAINER_MODE_TRUE
1356AM_BACKSLASH
1357AM_DEFAULT_VERBOSITY
1358AM_DEFAULT_V
1359AM_V
1360am__fastdepCC_FALSE
1361am__fastdepCC_TRUE
1362CCDEPMODE
1363am__nodep
1364AMDEPBACKSLASH
1365AMDEP_FALSE
1366AMDEP_TRUE
1367am__quote
1368am__include
1369DEPDIR
1370am__untar
1371am__tar
1372AMTAR
1373am__leading_dot
1374SET_MAKE
1375AWK
1376mkdir_p
1377MKDIR_P
1378INSTALL_STRIP_PROGRAM
1379STRIP
1380install_sh
1381MAKEINFO
1382AUTOHEADER
1383AUTOMAKE
1384AUTOCONF
1385ACLOCAL
1386VERSION
1387PACKAGE
1388CYGPATH_W
1389am__isrc
1390INSTALL_DATA
1391INSTALL_SCRIPT
1392INSTALL_PROGRAM
1393EGREP
1394GREP
1395CPP
1396OBJEXT
1397EXEEXT
1398ac_ct_CC
1399CPPFLAGS
1400LDFLAGS
1401CFLAGS
1402CC
1403target_os
1404target_vendor
1405target_cpu
1406target
1407host_os
1408host_vendor
1409host_cpu
1410host
1411build_os
1412build_vendor
1413build_cpu
1414build
1415with_wrapper_dl_type
1416ABIVERSIONFLAGS
1417MPICHLIB_FCFLAGS
1418MPICHLIB_FFLAGS
1419MPICHLIB_CXXFLAGS
1420MPICHLIB_CPPFLAGS
1421MPICHLIB_CFLAGS
1422MPICH_MPIFORT_LIBS
1423MPICH_MPIFORT_LDFLAGS
1424MPICH_MPIFORT_FCFLAGS
1425MPICH_MPIFORT_CPPFLAGS
1426MPICH_MPIF77_LIBS
1427MPICH_MPIF77_LDFLAGS
1428MPICH_MPIF77_FFLAGS
1429MPICH_MPIF77_CPPFLAGS
1430MPICH_MPICXX_LIBS
1431MPICH_MPICXX_LDFLAGS
1432MPICH_MPICXX_CXXFLAGS
1433MPICH_MPICXX_CPPFLAGS
1434MPICH_MPICC_LIBS
1435MPICH_MPICC_LDFLAGS
1436MPICH_MPICC_CFLAGS
1437MPICH_MPICC_CPPFLAGS
1438WRAPPER_EXTRA_LIBS
1439WRAPPER_LIBS
1440WRAPPER_LDFLAGS
1441WRAPPER_FCFLAGS
1442WRAPPER_FFLAGS
1443WRAPPER_CXXFLAGS
1444WRAPPER_CPPFLAGS
1445WRAPPER_CFLAGS
1446USER_EXTRA_LIBS
1447USER_LIBS
1448USER_LDFLAGS
1449USER_FCFLAGS
1450USER_FFLAGS
1451USER_CXXFLAGS
1452USER_CPPFLAGS
1453USER_CFLAGS
1454CONFIGURE_ARGUMENTS
1455ABIVERSION
1456MPICH_CUSTOM_STRING
1457MPICH_NUMVERSION
1458libmpi_so_version
1459MPICH_RELEASE_DATE
1460MPICH_VERSION
1461CONFIGURE_ARGS_CLEAN
1462target_alias
1463host_alias
1464build_alias
1465LIBS
1466ECHO_T
1467ECHO_N
1468ECHO_C
1469DEFS
1470mandir
1471localedir
1472libdir
1473psdir
1474pdfdir
1475dvidir
1476htmldir
1477infodir
1478docdir
1479oldincludedir
1480includedir
1481localstatedir
1482sharedstatedir
1483sysconfdir
1484datadir
1485datarootdir
1486libexecdir
1487sbindir
1488bindir
1489program_transform_name
1490prefix
1491exec_prefix
1492PACKAGE_URL
1493PACKAGE_BUGREPORT
1494PACKAGE_STRING
1495PACKAGE_VERSION
1496PACKAGE_TARNAME
1497PACKAGE_NAME
1498PATH_SEPARATOR
1499SHELL'
1500ac_subst_files='cc_shlib_conf
1501f77_shlib_conf
1502fc_shlib_conf
1503cxx_shlib_conf'
1504ac_user_opts='
1505enable_option_checking
1506with_custom_version_string
1507enable_echo
1508enable_error_checking
1509enable_error_messages
1510enable_tag_error_bits
1511enable_extended_context_bits
1512enable_timing
1513enable_g
1514enable_mpit_pvars
1515with_aint_size
1516enable_fast
1517enable_interlib_deps
1518enable_check_compiler_flags
1519enable_fortran
1520enable_f77
1521enable_fc
1522enable_cxx
1523enable_romio
1524enable_debuginfo
1525enable_versioning
1526with_device
1527with_pmi
1528with_pm
1529with_logging
1530enable_threads
1531enable_thread_cs
1532enable_refcount
1533enable_mutex_timing
1534enable_predefined_refcount
1535enable_weak_symbols
1536enable_two_level_namespace
1537enable_multi_aliases
1538with_wrapper_dl_type
1539enable_long_double
1540with_cross
1541with_namepublisher
1542with_name_publisher
1543enable_nolocal
1544enable_dependency_tracking
1545enable_silent_rules
1546enable_maintainer_mode
1547enable_shared
1548enable_static
1549with_pic
1550enable_fast_install
1551with_aix_soname
1552with_gnu_ld
1553with_sysroot
1554enable_libtool_lock
1555enable_cache
1556enable_strict
1557with_libfabric
1558with_libfabric_include
1559with_libfabric_lib
1560with_ucx
1561with_ucx_include
1562with_ucx_lib
1563enable_ch4_netmod_inline
1564enable_ch4_netmod_direct
1565enable_ch4_direct
1566with_ch4_shmmods
1567enable_ch4_am_only
1568with_hcoll
1569with_hcoll_include
1570with_hcoll_lib
1571with_ch4_posix_eager_modules
1572enable_sock_debug
1573with_ch4_ofi_direct_provider
1574with_mpl_prefix
1575enable_izem_queue
1576with_zm_prefix
1577with_yaksa_prefix
1578enable_visibility
1579with_hwloc_prefix
1580with_x
1581with_hwloc_plugins_path
1582with_netloc_prefix
1583with_pmix
1584with_pmix_include
1585with_pmix_lib
1586enable_f77characterlen
1587enable_coverage
1588enable_alloca
1589enable_checkpointing
1590with_blcr
1591with_blcr_include
1592with_blcr_lib
1593enable_base_cache
1594with_datatype_engine
1595with_ch4_rank_bits
1596enable_ch4r_per_comm_msg_queue
1597with_ch4_max_vcis
1598enable_ch4_vci_method
1599enable_ch4_mt
1600enable_allowport
1601with_xpmem
1602with_xpmem_include
1603with_xpmem_lib
1604enable_onsig
1605enable_newsession
1606enable_pmiport
1607with_slurm
1608with_slurm_include
1609with_slurm_lib
1610with_ch3_rank_bits
1611with_papi
1612enable_nemesis_shm_collectives
1613with_nemesis_local_lmt
1614with_ofi
1615with_ofi_include
1616with_ofi_lib
1617enable_ofi_domain
1618'
1619      ac_precious_vars='build_alias
1620host_alias
1621target_alias
1622MPICHLIB_CFLAGS
1623MPICHLIB_CPPFLAGS
1624MPICHLIB_CXXFLAGS
1625MPICHLIB_FFLAGS
1626MPICHLIB_FCFLAGS
1627CC
1628CFLAGS
1629LDFLAGS
1630LIBS
1631CPPFLAGS
1632CPP
1633LT_SYS_LIBRARY_PATH
1634CXX
1635CXXFLAGS
1636CCC
1637CXXCPP
1638FC
1639FCFLAGS
1640F77
1641FFLAGS
1642MPILIBNAME
1643PMPILIBNAME
1644MPICXXLIBNAME
1645MPIFCLIBNAME
1646MPLLIBNAME
1647ZMLIBNAME
1648YAKSALIBNAME
1649HWLOC_MS_LIB
1650PKG_CONFIG
1651HWLOC_PCIACCESS_CFLAGS
1652HWLOC_PCIACCESS_LIBS
1653XMKMF
1654HWLOC_LIBXML2_CFLAGS
1655HWLOC_LIBXML2_LIBS
1656GCOV'
1657ac_subdirs_all='test/mpi'
1658
1659# Initialize some variables set by options.
1660ac_init_help=
1661ac_init_version=false
1662ac_unrecognized_opts=
1663ac_unrecognized_sep=
1664# The variables have the same names as the options, with
1665# dashes changed to underlines.
1666cache_file=/dev/null
1667exec_prefix=NONE
1668no_create=
1669no_recursion=
1670prefix=NONE
1671program_prefix=NONE
1672program_suffix=NONE
1673program_transform_name=s,x,x,
1674silent=
1675site=
1676srcdir=
1677verbose=
1678x_includes=NONE
1679x_libraries=NONE
1680
1681# Installation directory options.
1682# These are left unexpanded so users can "make install exec_prefix=/foo"
1683# and all the variables that are supposed to be based on exec_prefix
1684# by default will actually change.
1685# Use braces instead of parens because sh, perl, etc. also accept them.
1686# (The list follows the same order as the GNU Coding Standards.)
1687bindir='${exec_prefix}/bin'
1688sbindir='${exec_prefix}/sbin'
1689libexecdir='${exec_prefix}/libexec'
1690datarootdir='${prefix}/share'
1691datadir='${datarootdir}'
1692sysconfdir='${prefix}/etc'
1693sharedstatedir='${prefix}/com'
1694localstatedir='${prefix}/var'
1695includedir='${prefix}/include'
1696oldincludedir='/usr/include'
1697docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1698infodir='${datarootdir}/info'
1699htmldir='${docdir}'
1700dvidir='${docdir}'
1701pdfdir='${docdir}'
1702psdir='${docdir}'
1703libdir='${exec_prefix}/lib'
1704localedir='${datarootdir}/locale'
1705mandir='${datarootdir}/man'
1706
1707ac_prev=
1708ac_dashdash=
1709for ac_option
1710do
1711  # If the previous option needs an argument, assign it.
1712  if test -n "$ac_prev"; then
1713    eval $ac_prev=\$ac_option
1714    ac_prev=
1715    continue
1716  fi
1717
1718  case $ac_option in
1719  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1720  *=)   ac_optarg= ;;
1721  *)    ac_optarg=yes ;;
1722  esac
1723
1724  # Accept the important Cygnus configure options, so we can diagnose typos.
1725
1726  case $ac_dashdash$ac_option in
1727  --)
1728    ac_dashdash=yes ;;
1729
1730  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1731    ac_prev=bindir ;;
1732  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1733    bindir=$ac_optarg ;;
1734
1735  -build | --build | --buil | --bui | --bu)
1736    ac_prev=build_alias ;;
1737  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1738    build_alias=$ac_optarg ;;
1739
1740  -cache-file | --cache-file | --cache-fil | --cache-fi \
1741  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1742    ac_prev=cache_file ;;
1743  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1744  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1745    cache_file=$ac_optarg ;;
1746
1747  --config-cache | -C)
1748    cache_file=config.cache ;;
1749
1750  -datadir | --datadir | --datadi | --datad)
1751    ac_prev=datadir ;;
1752  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1753    datadir=$ac_optarg ;;
1754
1755  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1756  | --dataroo | --dataro | --datar)
1757    ac_prev=datarootdir ;;
1758  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1759  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1760    datarootdir=$ac_optarg ;;
1761
1762  -disable-* | --disable-*)
1763    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1764    # Reject names that are not valid shell variable names.
1765    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1766      as_fn_error $? "invalid feature name: $ac_useropt"
1767    ac_useropt_orig=$ac_useropt
1768    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1769    case $ac_user_opts in
1770      *"
1771"enable_$ac_useropt"
1772"*) ;;
1773      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1774	 ac_unrecognized_sep=', ';;
1775    esac
1776    eval enable_$ac_useropt=no ;;
1777
1778  -docdir | --docdir | --docdi | --doc | --do)
1779    ac_prev=docdir ;;
1780  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1781    docdir=$ac_optarg ;;
1782
1783  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1784    ac_prev=dvidir ;;
1785  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1786    dvidir=$ac_optarg ;;
1787
1788  -enable-* | --enable-*)
1789    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1790    # Reject names that are not valid shell variable names.
1791    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1792      as_fn_error $? "invalid feature name: $ac_useropt"
1793    ac_useropt_orig=$ac_useropt
1794    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1795    case $ac_user_opts in
1796      *"
1797"enable_$ac_useropt"
1798"*) ;;
1799      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1800	 ac_unrecognized_sep=', ';;
1801    esac
1802    eval enable_$ac_useropt=\$ac_optarg ;;
1803
1804  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1805  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1806  | --exec | --exe | --ex)
1807    ac_prev=exec_prefix ;;
1808  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1809  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1810  | --exec=* | --exe=* | --ex=*)
1811    exec_prefix=$ac_optarg ;;
1812
1813  -gas | --gas | --ga | --g)
1814    # Obsolete; use --with-gas.
1815    with_gas=yes ;;
1816
1817  -help | --help | --hel | --he | -h)
1818    ac_init_help=long ;;
1819  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1820    ac_init_help=recursive ;;
1821  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1822    ac_init_help=short ;;
1823
1824  -host | --host | --hos | --ho)
1825    ac_prev=host_alias ;;
1826  -host=* | --host=* | --hos=* | --ho=*)
1827    host_alias=$ac_optarg ;;
1828
1829  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1830    ac_prev=htmldir ;;
1831  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1832  | --ht=*)
1833    htmldir=$ac_optarg ;;
1834
1835  -includedir | --includedir | --includedi | --included | --include \
1836  | --includ | --inclu | --incl | --inc)
1837    ac_prev=includedir ;;
1838  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1839  | --includ=* | --inclu=* | --incl=* | --inc=*)
1840    includedir=$ac_optarg ;;
1841
1842  -infodir | --infodir | --infodi | --infod | --info | --inf)
1843    ac_prev=infodir ;;
1844  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1845    infodir=$ac_optarg ;;
1846
1847  -libdir | --libdir | --libdi | --libd)
1848    ac_prev=libdir ;;
1849  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1850    libdir=$ac_optarg ;;
1851
1852  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1853  | --libexe | --libex | --libe)
1854    ac_prev=libexecdir ;;
1855  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1856  | --libexe=* | --libex=* | --libe=*)
1857    libexecdir=$ac_optarg ;;
1858
1859  -localedir | --localedir | --localedi | --localed | --locale)
1860    ac_prev=localedir ;;
1861  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1862    localedir=$ac_optarg ;;
1863
1864  -localstatedir | --localstatedir | --localstatedi | --localstated \
1865  | --localstate | --localstat | --localsta | --localst | --locals)
1866    ac_prev=localstatedir ;;
1867  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1868  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1869    localstatedir=$ac_optarg ;;
1870
1871  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1872    ac_prev=mandir ;;
1873  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1874    mandir=$ac_optarg ;;
1875
1876  -nfp | --nfp | --nf)
1877    # Obsolete; use --without-fp.
1878    with_fp=no ;;
1879
1880  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1881  | --no-cr | --no-c | -n)
1882    no_create=yes ;;
1883
1884  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1885  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1886    no_recursion=yes ;;
1887
1888  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1889  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1890  | --oldin | --oldi | --old | --ol | --o)
1891    ac_prev=oldincludedir ;;
1892  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1893  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1894  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1895    oldincludedir=$ac_optarg ;;
1896
1897  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1898    ac_prev=prefix ;;
1899  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1900    prefix=$ac_optarg ;;
1901
1902  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1903  | --program-pre | --program-pr | --program-p)
1904    ac_prev=program_prefix ;;
1905  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1906  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1907    program_prefix=$ac_optarg ;;
1908
1909  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1910  | --program-suf | --program-su | --program-s)
1911    ac_prev=program_suffix ;;
1912  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1913  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1914    program_suffix=$ac_optarg ;;
1915
1916  -program-transform-name | --program-transform-name \
1917  | --program-transform-nam | --program-transform-na \
1918  | --program-transform-n | --program-transform- \
1919  | --program-transform | --program-transfor \
1920  | --program-transfo | --program-transf \
1921  | --program-trans | --program-tran \
1922  | --progr-tra | --program-tr | --program-t)
1923    ac_prev=program_transform_name ;;
1924  -program-transform-name=* | --program-transform-name=* \
1925  | --program-transform-nam=* | --program-transform-na=* \
1926  | --program-transform-n=* | --program-transform-=* \
1927  | --program-transform=* | --program-transfor=* \
1928  | --program-transfo=* | --program-transf=* \
1929  | --program-trans=* | --program-tran=* \
1930  | --progr-tra=* | --program-tr=* | --program-t=*)
1931    program_transform_name=$ac_optarg ;;
1932
1933  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1934    ac_prev=pdfdir ;;
1935  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1936    pdfdir=$ac_optarg ;;
1937
1938  -psdir | --psdir | --psdi | --psd | --ps)
1939    ac_prev=psdir ;;
1940  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1941    psdir=$ac_optarg ;;
1942
1943  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944  | -silent | --silent | --silen | --sile | --sil)
1945    silent=yes ;;
1946
1947  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1948    ac_prev=sbindir ;;
1949  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1950  | --sbi=* | --sb=*)
1951    sbindir=$ac_optarg ;;
1952
1953  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1954  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1955  | --sharedst | --shareds | --shared | --share | --shar \
1956  | --sha | --sh)
1957    ac_prev=sharedstatedir ;;
1958  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1959  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1960  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1961  | --sha=* | --sh=*)
1962    sharedstatedir=$ac_optarg ;;
1963
1964  -site | --site | --sit)
1965    ac_prev=site ;;
1966  -site=* | --site=* | --sit=*)
1967    site=$ac_optarg ;;
1968
1969  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1970    ac_prev=srcdir ;;
1971  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1972    srcdir=$ac_optarg ;;
1973
1974  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1975  | --syscon | --sysco | --sysc | --sys | --sy)
1976    ac_prev=sysconfdir ;;
1977  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1978  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1979    sysconfdir=$ac_optarg ;;
1980
1981  -target | --target | --targe | --targ | --tar | --ta | --t)
1982    ac_prev=target_alias ;;
1983  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1984    target_alias=$ac_optarg ;;
1985
1986  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1987    verbose=yes ;;
1988
1989  -version | --version | --versio | --versi | --vers | -V)
1990    ac_init_version=: ;;
1991
1992  -with-* | --with-*)
1993    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1994    # Reject names that are not valid shell variable names.
1995    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1996      as_fn_error $? "invalid package name: $ac_useropt"
1997    ac_useropt_orig=$ac_useropt
1998    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1999    case $ac_user_opts in
2000      *"
2001"with_$ac_useropt"
2002"*) ;;
2003      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2004	 ac_unrecognized_sep=', ';;
2005    esac
2006    eval with_$ac_useropt=\$ac_optarg ;;
2007
2008  -without-* | --without-*)
2009    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2010    # Reject names that are not valid shell variable names.
2011    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2012      as_fn_error $? "invalid package name: $ac_useropt"
2013    ac_useropt_orig=$ac_useropt
2014    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2015    case $ac_user_opts in
2016      *"
2017"with_$ac_useropt"
2018"*) ;;
2019      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2020	 ac_unrecognized_sep=', ';;
2021    esac
2022    eval with_$ac_useropt=no ;;
2023
2024  --x)
2025    # Obsolete; use --with-x.
2026    with_x=yes ;;
2027
2028  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2029  | --x-incl | --x-inc | --x-in | --x-i)
2030    ac_prev=x_includes ;;
2031  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2032  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2033    x_includes=$ac_optarg ;;
2034
2035  -x-libraries | --x-libraries | --x-librarie | --x-librari \
2036  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2037    ac_prev=x_libraries ;;
2038  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2039  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2040    x_libraries=$ac_optarg ;;
2041
2042  -*) as_fn_error $? "unrecognized option: \`$ac_option'
2043Try \`$0 --help' for more information"
2044    ;;
2045
2046  *=*)
2047    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2048    # Reject names that are not valid shell variable names.
2049    case $ac_envvar in #(
2050      '' | [0-9]* | *[!_$as_cr_alnum]* )
2051      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2052    esac
2053    eval $ac_envvar=\$ac_optarg
2054    export $ac_envvar ;;
2055
2056  *)
2057    # FIXME: should be removed in autoconf 3.0.
2058    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2059    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2060      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2061    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2062    ;;
2063
2064  esac
2065done
2066
2067if test -n "$ac_prev"; then
2068  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2069  as_fn_error $? "missing argument to $ac_option"
2070fi
2071
2072if test -n "$ac_unrecognized_opts"; then
2073  case $enable_option_checking in
2074    no) ;;
2075    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2076    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2077  esac
2078fi
2079
2080# Check all directory arguments for consistency.
2081for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
2082		datadir sysconfdir sharedstatedir localstatedir includedir \
2083		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2084		libdir localedir mandir
2085do
2086  eval ac_val=\$$ac_var
2087  # Remove trailing slashes.
2088  case $ac_val in
2089    */ )
2090      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2091      eval $ac_var=\$ac_val;;
2092  esac
2093  # Be sure to have absolute directory names.
2094  case $ac_val in
2095    [\\/$]* | ?:[\\/]* )  continue;;
2096    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2097  esac
2098  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2099done
2100
2101# There might be people who depend on the old broken behavior: `$host'
2102# used to hold the argument of --host etc.
2103# FIXME: To remove some day.
2104build=$build_alias
2105host=$host_alias
2106target=$target_alias
2107
2108# FIXME: To remove some day.
2109if test "x$host_alias" != x; then
2110  if test "x$build_alias" = x; then
2111    cross_compiling=maybe
2112  elif test "x$build_alias" != "x$host_alias"; then
2113    cross_compiling=yes
2114  fi
2115fi
2116
2117ac_tool_prefix=
2118test -n "$host_alias" && ac_tool_prefix=$host_alias-
2119
2120test "$silent" = yes && exec 6>/dev/null
2121
2122
2123ac_pwd=`pwd` && test -n "$ac_pwd" &&
2124ac_ls_di=`ls -di .` &&
2125ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2126  as_fn_error $? "working directory cannot be determined"
2127test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2128  as_fn_error $? "pwd does not report name of working directory"
2129
2130
2131# Find the source files, if location was not specified.
2132if test -z "$srcdir"; then
2133  ac_srcdir_defaulted=yes
2134  # Try the directory containing this script, then the parent directory.
2135  ac_confdir=`$as_dirname -- "$as_myself" ||
2136$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2137	 X"$as_myself" : 'X\(//\)[^/]' \| \
2138	 X"$as_myself" : 'X\(//\)$' \| \
2139	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2140$as_echo X"$as_myself" |
2141    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2142	    s//\1/
2143	    q
2144	  }
2145	  /^X\(\/\/\)[^/].*/{
2146	    s//\1/
2147	    q
2148	  }
2149	  /^X\(\/\/\)$/{
2150	    s//\1/
2151	    q
2152	  }
2153	  /^X\(\/\).*/{
2154	    s//\1/
2155	    q
2156	  }
2157	  s/.*/./; q'`
2158  srcdir=$ac_confdir
2159  if test ! -r "$srcdir/$ac_unique_file"; then
2160    srcdir=..
2161  fi
2162else
2163  ac_srcdir_defaulted=no
2164fi
2165if test ! -r "$srcdir/$ac_unique_file"; then
2166  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2167  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2168fi
2169ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2170ac_abs_confdir=`(
2171	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2172	pwd)`
2173# When building in place, set srcdir=.
2174if test "$ac_abs_confdir" = "$ac_pwd"; then
2175  srcdir=.
2176fi
2177# Remove unnecessary trailing slashes from srcdir.
2178# Double slashes in file names in object file debugging info
2179# mess up M-x gdb in Emacs.
2180case $srcdir in
2181*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2182esac
2183for ac_var in $ac_precious_vars; do
2184  eval ac_env_${ac_var}_set=\${${ac_var}+set}
2185  eval ac_env_${ac_var}_value=\$${ac_var}
2186  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2187  eval ac_cv_env_${ac_var}_value=\$${ac_var}
2188done
2189
2190#
2191# Report the --help message.
2192#
2193if test "$ac_init_help" = "long"; then
2194  # Omit some internal or obsolete options to make the list less imposing.
2195  # This message is too long to be a string in the A/UX 3.1 sh.
2196  cat <<_ACEOF
2197\`configure' configures MPICH 3.4.3 to adapt to many kinds of systems.
2198
2199Usage: $0 [OPTION]... [VAR=VALUE]...
2200
2201To assign environment variables (e.g., CC, CFLAGS...), specify them as
2202VAR=VALUE.  See below for descriptions of some of the useful variables.
2203
2204Defaults for the options are specified in brackets.
2205
2206Configuration:
2207  -h, --help              display this help and exit
2208      --help=short        display options specific to this package
2209      --help=recursive    display the short help of all the included packages
2210  -V, --version           display version information and exit
2211  -q, --quiet, --silent   do not print \`checking ...' messages
2212      --cache-file=FILE   cache test results in FILE [disabled]
2213  -C, --config-cache      alias for \`--cache-file=config.cache'
2214  -n, --no-create         do not create output files
2215      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2216
2217Installation directories:
2218  --prefix=PREFIX         install architecture-independent files in PREFIX
2219                          [$ac_default_prefix]
2220  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2221                          [PREFIX]
2222
2223By default, \`make install' will install all the files in
2224\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2225an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2226for instance \`--prefix=\$HOME'.
2227
2228For better control, use the options below.
2229
2230Fine tuning of the installation directories:
2231  --bindir=DIR            user executables [EPREFIX/bin]
2232  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2233  --libexecdir=DIR        program executables [EPREFIX/libexec]
2234  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2235  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2236  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2237  --libdir=DIR            object code libraries [EPREFIX/lib]
2238  --includedir=DIR        C header files [PREFIX/include]
2239  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2240  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2241  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2242  --infodir=DIR           info documentation [DATAROOTDIR/info]
2243  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2244  --mandir=DIR            man documentation [DATAROOTDIR/man]
2245  --docdir=DIR            documentation root [DATAROOTDIR/doc/mpich]
2246  --htmldir=DIR           html documentation [DOCDIR]
2247  --dvidir=DIR            dvi documentation [DOCDIR]
2248  --pdfdir=DIR            pdf documentation [DOCDIR]
2249  --psdir=DIR             ps documentation [DOCDIR]
2250_ACEOF
2251
2252  cat <<\_ACEOF
2253
2254Program names:
2255  --program-prefix=PREFIX            prepend PREFIX to installed program names
2256  --program-suffix=SUFFIX            append SUFFIX to installed program names
2257  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2258
2259X features:
2260  --x-includes=DIR    X include files are in DIR
2261  --x-libraries=DIR   X library files are in DIR
2262
2263System types:
2264  --build=BUILD     configure for building on BUILD [guessed]
2265  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2266  --target=TARGET   configure for building compilers for TARGET [HOST]
2267_ACEOF
2268fi
2269
2270if test -n "$ac_init_help"; then
2271  case $ac_init_help in
2272     short | recursive ) echo "Configuration of MPICH 3.4.3:";;
2273   esac
2274  cat <<\_ACEOF
2275
2276Optional Features:
2277  --disable-option-checking  ignore unrecognized --enable/--with options
2278  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2279  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2280  --enable-echo           Turn on strong echoing. The default is enable=no.
2281  --enable-error-checking=level
2282      Control the amount of error checking.
2283        no        - no error checking
2284        runtime   - error checking controllable at runtime through environment
2285                    variables
2286        all       - error checking always enabled (default)
2287
2288  --enable-error-messages=level - Control the amount of detail in error messages.
2289        all       - Maximum amount of information
2290        generic   - Only generic messages (no information about the specific
2291                    instance)
2292        class     - One message per MPI error class
2293        none      - No messages
2294
2295  --enable-tag-error-bits=yes|no - Control whether bits are taken from the user tag for error handling.
2296        yes       - Two bits are taken from the user tag to support error propagation.
2297        no        - No bits are taken from the user tag (this could cause deadlock if an error is detected during a collective).
2298
2299  --enable-extended-context-bits=yes|no - Enable wider context id space. (experimental)
2300        yes       - 20 bits
2301        no        - 16 bits (default)
2302
2303  --enable-timing=level - Control the amount of timing information
2304                           collected by the MPICH implementation.
2305        none    - Collect no data (default)
2306        all     - Collect lots of data
2307        runtime - Runtime control of data collected
2308
2309  --enable-g=option - Control the level of debugging support in the
2310                       MPICH implementation.  "option" is a list of comma
2311                       separated names including.  Default is "most".
2312        none     - No debugging
2313        handle   - Trace handle operations
2314        handlealloc - Trace handle allocations
2315        dbg      - Add compiler flag, -g, to all internal
2316                   compiler flags, i.e. MPICHLIB_CFLAGS, MPICHLIB_CXXFLAGS,
2317                   MPICHLIB_FFLAGS, and MPICHLIB_FCFLAGS.
2318        debug    - Synonym for dbg
2319        asan     - Add compiler flag, -fsanitize=address, to all internal
2320                   compiler flags. It also includes other flags for nicer
2321                   stacktrace such as -g -O1 -fno-omit-frame-pointer.
2322        ubsan    - Add compiler flag, -fsanitize=undefined, to all internal
2323                   compiler flags.
2324        mem      - Memory usage tracing
2325        meminit  - Preinitialize memory associated structures and unions to
2326                   eliminate access warnings from programs like valgrind
2327        memarena - Check for overwrite errors in memory allocation arena
2328        mutex    - Enable error checking on pthread mutexes
2329        most     - Most of the above options, excluding some with severe
2330                   performance impacts.  Recommended for typical development.
2331        yes      - synonym for "most" (*not* "all")
2332        all      - All of the above choices
2333
2334  --enable-mpit-pvars=list - Selectively enable MPI_T performance variables in
2335                      modules. list is a comma-separated module names,
2336                      including (Default is "none"):
2337        none     - No performance info recorded
2338        recvq    - All message queue-related
2339        nem      - All nemesis-related
2340        rma      - All rma-related
2341        all      - All variables above
2342
2343  --enable-fast=option - Control the level of fast execution in the
2344                         MPICH implementation.  option is a list of
2345                         comma separated names including
2346        O<n>     - Appends default optimization flags, -O<n>, to all internal
2347                   compiler flags, i.e. MPICHLIB_CFLAGS, MPICHLIB_CXXFLAGS,
2348                   MPICHLIB_FFLAGS, and MPICHLIB_FCFLAGS. (default is -O2)
2349        ndebug   - Appends -DNDEBUG to MPICHLIB_CFLAGS.
2350        no-strict-alignment - relax strict alignment requirement
2351        alwaysinline - Force compiler to always inline performance critical routines
2352        all|yes  - "O2", "ndebug", and "alwaysinline" are enabled
2353        none     - None of above options, i.e. --disable-fast
2354
2355  --enable-interlib-deps - Enable interlibrary dependencies
2356
2357  --enable-check-compiler-flags
2358                          enable the checks for all compiler options,
2359                          xxxFLAGS, MPICH_xxxFLAGS. Default is on.
2360  --enable-fortran=option - Control the level of Fortran support in the MPICH implementation.
2361	yes|all   - Enable all available Fortran implementations (F77, F90+)
2362	f77       - Enable Fortran 77 support
2363	fc        - Enable Fortran 90 and 2008 support
2364	no|none   - No Fortran support
2365
2366  --enable-f77            DEPRECATED: Use --enable-fortran or
2367                          --disable-fortran instead
2368  --enable-fc             DEPRECATED: Use --enable-fortran or
2369                          --disable-fortran instead
2370  --enable-cxx            Enable C++ bindings
2371  --enable-romio          Enable ROMIO MPI I/O implementation
2372  --enable-debuginfo      Enable support for debuggers
2373  --enable-versioning     Enable library versioning
2374  --enable-threads=level - Control the level of thread support in the
2375                           MPICH implementation.  The following levels
2376                           are supported.
2377        single          - No threads (MPI_THREAD_SINGLE)
2378        funneled        - Only the main thread calls MPI (MPI_THREAD_FUNNELED)
2379        serialized      - User serializes calls to MPI (MPI_THREAD_SERIALIZED)
2380        multiple        - Fully multi-threaded (MPI_THREAD_MULTIPLE)
2381        runtime         - Alias to "multiple"
2382
2383        See also the --enable-thread-cs option for controlling the granularity of
2384        the concurrency inside of the library
2385
2386  --enable-thread-cs=type Choose the method used for critical sections and
2387                          other atomic updates when multiple threads are
2388                          present. Values may be default, global, per-object,
2389                          per-vci, lock-free. By default, CH3 uses global,
2390                          while CH4 uses per-vci.
2391  --enable-refcount=type  Choose the method for ensuring atomic updates to the
2392                          reference counts for MPI objects. Values may be
2393                          lock-free or none. The default depends on the
2394                          thread-cs choice; for global it is none (because
2395                          none is required), for per-object, per-vci, and
2396                          lock-free, lock-free
2397  --enable-mutex-timing   calculate the time spent waiting on mutexes
2398  --enable-predefined-refcount
2399                          control whether predefined objects like
2400                          MPI_COMM_WORLD are reference counted (default
2401                          depends on --enable-thread-cs choice)
2402  --enable-weak-symbols   Use weak symbols to implement PMPI routines
2403                          (default)
2404  --enable-two-level-namespace
2405                          (Darwin only) Build shared libraries and programs
2406                          built with the mpicc/mpifort/etc. compiler wrappers
2407                          with '-Wl,-commons,use_dylibs' and without
2408                          '-Wl,-flat_namespace'. This may make the MPICH
2409                          installation and MPI programs more compatible with
2410                          other libraries. Only enable this option if you
2411                          really know what these linker options imply.
2412  --enable-multi-aliases  Multiple aliasing to support multiple fortran
2413                          compilers (default)
2414  --disable-long-double   Pass --disable-long-double to prevent the MPI
2415                          library from supporting the C "long double" type,
2416                          even if the C compiler supports it. "long double"
2417                          support is enabled by default, provided the compiler
2418                          supports it.
2419  --enable-nolocal        enables nolocal mode where shared-memory
2420                          communication is disabled
2421  --enable-dependency-tracking
2422                          do not reject slow dependency extractors
2423  --disable-dependency-tracking
2424                          speeds up one-time build
2425  --enable-silent-rules   less verbose build output (undo: "make V=1")
2426  --disable-silent-rules  verbose build output (undo: "make V=0")
2427  --disable-maintainer-mode
2428                          disable make rules and dependencies not useful (and
2429                          sometimes confusing) to the casual installer
2430  --enable-shared[=PKGS]  build shared libraries [default=yes]
2431  --enable-static[=PKGS]  build static libraries [default=yes]
2432  --enable-fast-install[=PKGS]
2433                          optimize for fast installation [default=yes]
2434  --disable-libtool-lock  avoid locking (might break parallel builds)
2435  --enable-cache          Turn on configure caching
2436  --enable-strict         Turn on strict compilation testing
2437--enable-ch4-netmod-inline
2438       Enables inlined netmod build when a single netmod is used
2439       level:
2440         yes       - Enabled (default)
2441         no        - Disabled (may improve build times and code size)
2442
2443--enable-ch4-netmod-direct
2444       (Deprecated in favor of ch4-netmod-inline)
2445       Enables inlined netmod build when a single netmod is used
2446       level:
2447         yes       - Enabled (default)
2448         no        - Disabled (may improve build times and code size)
2449
2450--enable-ch4-direct   DO NOT USE!  Use --without-ch4-shmmods instead
2451  --enable-ch4-am-only    forces AM-only communication
2452--enable-sock-debug - Turn on tests of the socket data structures
2453  --enable-izem-queue
2454  --enable-visibility     enable visibility feature of certain
2455                          compilers/linkers (default: enabled on platforms
2456                          that support it)
2457  --enable-f77characterlen
2458                          Select between int and size_t for the length of a
2459                          Fortran CHARACTER, depending on the F77 compiler. If
2460                          --enable-f77characterlen=size_t is given, force the
2461                          use of size_t. This is used for passing Fortran
2462                          CHARACTER data between C and Fortran, and is
2463                          provided for experts. Note that the documentation
2464                          provided by compiler vendors on the calling
2465                          convention may not be accurate.
2466  --enable-coverage       Turn on coverage analysis using gcc and gcov
2467  --enable-alloca         Use alloca to allocate temporary memory if available
2468  --enable-checkpointing  Enable application checkpointing
2469  --enable-base-cache     Enable the use of a simple cache for the subsidiary
2470                          configure scripts
2471--enable-ch4r-per-comm-msg-queue=option
2472       Enable use of per-communicator message queues for posted recvs/unexpected messages
2473         yes       - Use per-communicator message queue. (Default)
2474         no        - Use global queue for posted recvs/unexpected messages.
2475
2476  --enable-ch4-vci-method=type
2477                          Choose the method used for vci selection when
2478                          enable-thread-cs=per-vci is selected. Values may be
2479                          default, zero, communicator, tag, implicit, explicit
2480--enable-ch4-mt=model
2481       Select model for multi-threading
2482         direct    - Each thread directly accesses lower-level fabric (default)
2483         handoff   - Use the hand-off model (spawns progress thread)
2484         runtime   - Determine the model at runtime through a CVAR
2485
2486  --enable-allowport      Turn on use of a port for communicating with the
2487                          processes started by mpiexec
2488  --enable-onsig          Control the handling of processes that signal (e.g.,
2489                          SEGV) using ptrace. Disabled by default
2490  --enable-newsession     Create a new process group session if standard in is
2491                          not connected to a terminal
2492  --enable-onsig          Control the handling of processes that signal (e.g.,
2493                          SEGV) using ptrace. Disabled by default
2494  --enable-newsession     Create a new process group session if standard in is
2495                          not connected to a terminal
2496--enable-pmiport - Allow PMI interface to use a host-port pair to contact
2497                   for PMI services
2498--enable-fast - pick the appropriate options for fast execution.
2499This turns off error checking and timing collection
2500--enable-nemesis-shm-collectives - enables use of shared memory for collective comunication within a node
2501--enable-ofi-domain
2502       Use fi_domain for vni contexts. This is the default. Use --disable-ofi-domain to use fi_contexts
2503       within a scalable endpoint instead.
2504         yes        - Enabled (default)
2505         no         - Disabled
2506
2507
2508Optional Packages:
2509  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2510  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2511  --with-custom-version-string
2512                          Adds a user-specified value to the output of the
2513                          mpichversion executable
2514  --with-aint-size        Override the size of MPI_AINT (in bytes)
2515  --with-device=name      Specify the communication device for MPICH
2516  --with-pmi=name         Specify the pmi interface for MPICH
2517  --with-pm=name          Specify the process manager for MPICH. "no" or
2518                          "none" are valid values. Multiple process managers
2519                          may be specified as long as they all use the same
2520                          pmi interface by separating them with colons. The
2521                          mpiexec for the first named process manager will be
2522                          installed. Example: "--with-pm=hydra:gforker" builds
2523                          the two process managers hydra, and gforker; only
2524                          the mpiexec from hydra is installed into the bin
2525                          directory.
2526  --with-logging=name     Specify the logging library for MPICH
2527  --enable-wrapper-dl-type
2528                          Dynamic loading model for alternate MPI libraries,
2529                          used when programs are linked by mpicc compiler
2530                          wrappers. This only applies when shared libraries
2531                          are built. The default is "runpath"; use
2532                          --with-wrapper-dl-type=rpath to force rpath; use
2533                          --with-wrapper-dl-type=none to find shared libraries
2534                          according to the rules for your system (e.g., in
2535                          LD_LIBRARY_PATH)
2536  --with-cross=file       Specify the values of variables that configure
2537                          cannot determine in a cross-compilation environment
2538  --with-namepublisher=name   Choose the system that will support
2539                              MPI_PUBLISH_NAME and MPI_LOOKUP_NAME.  Options
2540                              include
2541                                   pmi (default)
2542			           file:directory (optional directory)
2543                                   no (no service available)
2544
2545  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2546                          both]
2547  --with-aix-soname=aix|svr4|both
2548                          shared library versioning (aka "SONAME") variant to
2549                          provide on AIX, [default=aix].
2550  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2551  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2552                          compiler's sysroot if not specified).
2553  --with-libfabric=[PATH] specify path where libfabric include directory and
2554                          lib directory can be found. Having this option
2555                          explicitly requires the library. When PATH is not
2556                          given, it checks the library from system paths.
2557  --with-libfabric-include=PATH
2558                          specify path where libfabric include directory can
2559                          be found
2560  --with-libfabric-lib=PATH
2561                          specify path where libfabric lib directory can be
2562                          found
2563  --with-ucx=[PATH]       specify path where ucx include directory and lib
2564                          directory can be found. Having this option
2565                          explicitly requires the library. When PATH is not
2566                          given, it checks the library from system paths.
2567  --with-ucx-include=PATH specify path where ucx include directory can be
2568                          found
2569  --with-ucx-lib=PATH     specify path where ucx lib directory can be found
2570  --with-ch4-shmmods[=ARG] Comma-separated list of shared memory modules for MPICH/CH4.
2571                          Valid options are:
2572                          auto         - Enable everything that is available/allowed by netmod (default)
2573                                         (cannot be combined with other options)
2574                          none         - No shmmods, network only (cannot be combined with other options)
2575                          posix        - Enable POSIX shmmod
2576                          xpmem        - Enable XPMEM IPC (requires posix)
2577                          gpudirect    - Enable GPU Direct IPC (requires posix)
2578
2579  --with-hcoll=[PATH]     specify path where hcoll include directory and lib
2580                          directory can be found. Having this option
2581                          explicitly requires the library. When PATH is not
2582                          given, it checks the library from system paths.
2583  --with-hcoll-include=PATH
2584                          specify path where hcoll include directory can be
2585                          found
2586  --with-hcoll-lib=PATH   specify path where hcoll lib directory can be found
2587  --with-ch4-posix-eager-modules=module-list
2588    CH4 POSIX eager arguments:
2589            iqueue - Use Inverted Queue module for eager transport
2590
2591  --with-ch4-ofi-direct-provider=provider
2592                provider - Build OFI with FABRIC_DIRECT mode using the specified provider
2593                           Provider value does not matter if not building an embedded OFI library
2594
2595  --with-mpl-prefix[=DIR] use the MPL library installed in DIR, rather than
2596                          the one included in src/mpl. Pass "embedded" to
2597                          force usage of the MPL source distributed with
2598                          MPICH.
2599  --with-zm-prefix[=ARG]
2600                          specify the Izem library to use. No argument implies "yes".
2601                          Accepted values for ARG are:
2602                          yes|embedded - use the embedded Izem
2603                          system       - search system paths for an Izem installation
2604                          no           - disable Izem
2605                          <PATH>       - use the Izem at PATH
2606  --with-yaksa-prefix[=DIR]
2607                          use the YAKSA library installed in DIR, rather than
2608                          the one included in modules/yaksa. Pass "embedded"
2609                          to force usage of the YAKSA source distributed with
2610                          MPICH.
2611  --with-hwloc-prefix[=DIR]
2612                          use the hwloc library installed in DIR, rather than
2613                          the one included in the distribution. Pass
2614                          "embedded" to force usage of the included hwloc
2615                          source.
2616  --with-x                use the X Window System
2617  --with-hwloc-plugins-path=dir:...
2618                          Colon-separated list of plugin directories. Default:
2619                          "$prefix/lib/hwloc". Plugins will be installed in
2620                          the first directory. They will be loaded from all of
2621                          them, in order.
2622  --with-netloc-prefix[=DIR]
2623                          use the NETLOC library installed in DIR or system to use the system library
2624  --with-pmix=[PATH]      specify path where pmix include directory and lib
2625                          directory can be found. Having this option
2626                          explicitly requires the library. When PATH is not
2627                          given, it checks the library from system paths.
2628  --with-pmix-include=PATH
2629                          specify path where pmix include directory can be
2630                          found
2631  --with-pmix-lib=PATH    specify path where pmix lib directory can be found
2632  --with-blcr=[PATH]      specify path where blcr include directory and lib
2633                          directory can be found. Having this option
2634                          explicitly requires the library. When PATH is not
2635                          given, it checks the library from system paths.
2636  --with-blcr-include=PATH
2637                          specify path where blcr include directory can be
2638                          found
2639  --with-blcr-lib=PATH    specify path where blcr lib directory can be found
2640  --with-datatype-engine={yaksa|dataloop|auto}
2641                          controls datatype engine to use
2642--with-ch4-rank-bits=16/32     Number of bits allocated to the rank field (16 or 32)
2643--with-ch4-max-vcis=<N>
2644       Select max number of VCIs to configure (default is 1; minimum is 1)
2645  --with-xpmem=[PATH]     specify path where xpmem include directory and lib
2646                          directory can be found. Having this option
2647                          explicitly requires the library. When PATH is not
2648                          given, it checks the library from system paths.
2649  --with-xpmem-include=PATH
2650                          specify path where xpmem include directory can be
2651                          found
2652  --with-xpmem-lib=PATH   specify path where xpmem lib directory can be found
2653  --with-slurm=[PATH]     specify path where slurm include directory and lib
2654                          directory can be found. Having this option
2655                          explicitly requires the library. When PATH is not
2656                          given, it checks the library from system paths.
2657  --with-slurm-include=PATH
2658                          specify path where slurm include directory can be
2659                          found
2660  --with-slurm-lib=PATH   specify path where slurm lib directory can be found
2661--with-ch3-rank-bits=16/32     Number of bits allocated to the rank field (16 or 32)
2662--with-papi=path - specify path where papi include and lib directories can be found
2663--with-nemesis-local-lmt=method - specify an implementation for local large message transfers (LMT).  Method is one of: 'default', 'shm_copy', or 'none'.  'default' is the same as 'shm_copy'.
2664  --with-ofi=[PATH]       specify path where ofi include directory and lib
2665                          directory can be found. Having this option
2666                          explicitly requires the library. When PATH is not
2667                          given, it checks the library from system paths.
2668  --with-ofi-include=PATH specify path where ofi include directory can be
2669                          found
2670  --with-ofi-lib=PATH     specify path where ofi lib directory can be found
2671
2672Some influential environment variables:
2673  MPICHLIB_CFLAGS
2674              extra CFLAGS used in building MPICH libraries
2675  MPICHLIB_CPPFLAGS
2676              extra CPPFLAGS used in building MPICH libraries
2677  MPICHLIB_CXXFLAGS
2678              extra CXXFLAGS used in building MPICH libraries
2679  MPICHLIB_FFLAGS
2680              extra FFLAGS used in building MPICH libraries
2681  MPICHLIB_FCFLAGS
2682              extra FCFLAGS used in building MPICH libraries
2683  CC          C compiler command
2684  CFLAGS      C compiler flags
2685  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2686              nonstandard directory <lib dir>
2687  LIBS        libraries to pass to the linker, e.g. -l<library>
2688  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2689              you have headers in a nonstandard directory <include dir>
2690  CPP         C preprocessor
2691  LT_SYS_LIBRARY_PATH
2692              User-defined run-time library search path.
2693  CXX         C++ compiler command
2694  CXXFLAGS    C++ compiler flags
2695  CXXCPP      C++ preprocessor
2696  FC          Fortran compiler command
2697  FCFLAGS     Fortran compiler flags
2698  F77         Fortran 77 compiler command
2699  FFLAGS      Fortran 77 compiler flags
2700  MPILIBNAME  can be used to override the name of the MPI library (default:
2701              "mpi")
2702  PMPILIBNAME can be used to override the name of the MPI profiling library
2703              (default: "p$MPILIBNAME")
2704  MPICXXLIBNAME
2705              can be used to override the name of the MPI C++ library
2706              (default: "${MPILIBNAME}cxx")
2707  MPIFCLIBNAME
2708              can be used to override the name of the MPI fortran library
2709              (default: "${MPILIBNAME}fort")
2710  MPLLIBNAME  can be used to override the name of the MPL library (default:
2711              "mpl")
2712  ZMLIBNAME   can be used to override the name of the Izem library (default:
2713              "zm")
2714  YAKSALIBNAME
2715              can be used to override the name of the YAKSA library (default:
2716              "yaksa")
2717  HWLOC_MS_LIB
2718              Path to Microsoft's Visual Studio `lib' tool
2719  PKG_CONFIG  path to pkg-config utility
2720  HWLOC_PCIACCESS_CFLAGS
2721              C compiler flags for PCIACCESS, overriding pkg-config
2722  HWLOC_PCIACCESS_LIBS
2723              linker flags for PCIACCESS, overriding pkg-config
2724  XMKMF       Path to xmkmf, Makefile generator for X Window System
2725  HWLOC_LIBXML2_CFLAGS
2726              C compiler flags for LIBXML2, overriding pkg-config
2727  HWLOC_LIBXML2_LIBS
2728              linker flags for LIBXML2, overriding pkg-config
2729  GCOV        name/path for the gcov utility
2730
2731Use these variables to override the choices made by `configure' or to help
2732it to find libraries and programs with nonstandard names/locations.
2733
2734Report bugs to <discuss@mpich.org>.
2735MPICH home page: <http://www.mpich.org/>.
2736_ACEOF
2737ac_status=$?
2738fi
2739
2740if test "$ac_init_help" = "recursive"; then
2741  # If there are subdirs, report their specific --help.
2742  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2743    test -d "$ac_dir" ||
2744      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2745      continue
2746    ac_builddir=.
2747
2748case "$ac_dir" in
2749.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2750*)
2751  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2752  # A ".." for each directory in $ac_dir_suffix.
2753  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2754  case $ac_top_builddir_sub in
2755  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2756  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2757  esac ;;
2758esac
2759ac_abs_top_builddir=$ac_pwd
2760ac_abs_builddir=$ac_pwd$ac_dir_suffix
2761# for backward compatibility:
2762ac_top_builddir=$ac_top_build_prefix
2763
2764case $srcdir in
2765  .)  # We are building in place.
2766    ac_srcdir=.
2767    ac_top_srcdir=$ac_top_builddir_sub
2768    ac_abs_top_srcdir=$ac_pwd ;;
2769  [\\/]* | ?:[\\/]* )  # Absolute name.
2770    ac_srcdir=$srcdir$ac_dir_suffix;
2771    ac_top_srcdir=$srcdir
2772    ac_abs_top_srcdir=$srcdir ;;
2773  *) # Relative name.
2774    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2775    ac_top_srcdir=$ac_top_build_prefix$srcdir
2776    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2777esac
2778ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2779
2780    cd "$ac_dir" || { ac_status=$?; continue; }
2781    # Check for guested configure.
2782    if test -f "$ac_srcdir/configure.gnu"; then
2783      echo &&
2784      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2785    elif test -f "$ac_srcdir/configure"; then
2786      echo &&
2787      $SHELL "$ac_srcdir/configure" --help=recursive
2788    else
2789      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2790    fi || ac_status=$?
2791    cd "$ac_pwd" || { ac_status=$?; break; }
2792  done
2793fi
2794
2795test -n "$ac_init_help" && exit $ac_status
2796if $ac_init_version; then
2797  cat <<\_ACEOF
2798MPICH configure 3.4.3
2799generated by GNU Autoconf 2.69
2800
2801Copyright (C) 2012 Free Software Foundation, Inc.
2802This configure script is free software; the Free Software Foundation
2803gives unlimited permission to copy, distribute and modify it.
2804_ACEOF
2805  exit
2806fi
2807
2808## ------------------------ ##
2809## Autoconf initialization. ##
2810## ------------------------ ##
2811
2812# ac_fn_c_try_compile LINENO
2813# --------------------------
2814# Try to compile conftest.$ac_ext, and return whether this succeeded.
2815ac_fn_c_try_compile ()
2816{
2817  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2818  rm -f conftest.$ac_objext
2819  if { { ac_try="$ac_compile"
2820case "(($ac_try" in
2821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822  *) ac_try_echo=$ac_try;;
2823esac
2824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2825$as_echo "$ac_try_echo"; } >&5
2826  (eval "$ac_compile") 2>conftest.err
2827  ac_status=$?
2828  if test -s conftest.err; then
2829    grep -v '^ *+' conftest.err >conftest.er1
2830    cat conftest.er1 >&5
2831    mv -f conftest.er1 conftest.err
2832  fi
2833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2834  test $ac_status = 0; } && {
2835	 test -z "$ac_c_werror_flag" ||
2836	 test ! -s conftest.err
2837       } && test -s conftest.$ac_objext; then :
2838  ac_retval=0
2839else
2840  $as_echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
2843	ac_retval=1
2844fi
2845  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2846  as_fn_set_status $ac_retval
2847
2848} # ac_fn_c_try_compile
2849
2850# ac_fn_c_try_cpp LINENO
2851# ----------------------
2852# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2853ac_fn_c_try_cpp ()
2854{
2855  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2856  if { { ac_try="$ac_cpp conftest.$ac_ext"
2857case "(($ac_try" in
2858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859  *) ac_try_echo=$ac_try;;
2860esac
2861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2862$as_echo "$ac_try_echo"; } >&5
2863  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2864  ac_status=$?
2865  if test -s conftest.err; then
2866    grep -v '^ *+' conftest.err >conftest.er1
2867    cat conftest.er1 >&5
2868    mv -f conftest.er1 conftest.err
2869  fi
2870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2871  test $ac_status = 0; } > conftest.i && {
2872	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2873	 test ! -s conftest.err
2874       }; then :
2875  ac_retval=0
2876else
2877  $as_echo "$as_me: failed program was:" >&5
2878sed 's/^/| /' conftest.$ac_ext >&5
2879
2880    ac_retval=1
2881fi
2882  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2883  as_fn_set_status $ac_retval
2884
2885} # ac_fn_c_try_cpp
2886
2887# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2888# -------------------------------------------------------
2889# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2890# the include files in INCLUDES and setting the cache variable VAR
2891# accordingly.
2892ac_fn_c_check_header_mongrel ()
2893{
2894  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2895  if eval \${$3+:} false; then :
2896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2897$as_echo_n "checking for $2... " >&6; }
2898if eval \${$3+:} false; then :
2899  $as_echo_n "(cached) " >&6
2900fi
2901eval ac_res=\$$3
2902	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2903$as_echo "$ac_res" >&6; }
2904else
2905  # Is the header compilable?
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2907$as_echo_n "checking $2 usability... " >&6; }
2908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909/* end confdefs.h.  */
2910$4
2911#include <$2>
2912_ACEOF
2913if ac_fn_c_try_compile "$LINENO"; then :
2914  ac_header_compiler=yes
2915else
2916  ac_header_compiler=no
2917fi
2918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2920$as_echo "$ac_header_compiler" >&6; }
2921
2922# Is the header present?
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2924$as_echo_n "checking $2 presence... " >&6; }
2925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926/* end confdefs.h.  */
2927#include <$2>
2928_ACEOF
2929if ac_fn_c_try_cpp "$LINENO"; then :
2930  ac_header_preproc=yes
2931else
2932  ac_header_preproc=no
2933fi
2934rm -f conftest.err conftest.i conftest.$ac_ext
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2936$as_echo "$ac_header_preproc" >&6; }
2937
2938# So?  What about this header?
2939case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2940  yes:no: )
2941    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2942$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2943    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2944$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2945    ;;
2946  no:yes:* )
2947    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2948$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2949    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2950$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2952$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2953    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2954$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2955    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2956$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2957( $as_echo "## -------------------------------- ##
2958## Report this to discuss@mpich.org ##
2959## -------------------------------- ##"
2960     ) | sed "s/^/$as_me: WARNING:     /" >&2
2961    ;;
2962esac
2963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2964$as_echo_n "checking for $2... " >&6; }
2965if eval \${$3+:} false; then :
2966  $as_echo_n "(cached) " >&6
2967else
2968  eval "$3=\$ac_header_compiler"
2969fi
2970eval ac_res=\$$3
2971	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2972$as_echo "$ac_res" >&6; }
2973fi
2974  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2975
2976} # ac_fn_c_check_header_mongrel
2977
2978# ac_fn_c_try_run LINENO
2979# ----------------------
2980# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2981# that executables *can* be run.
2982ac_fn_c_try_run ()
2983{
2984  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2985  if { { ac_try="$ac_link"
2986case "(($ac_try" in
2987  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988  *) ac_try_echo=$ac_try;;
2989esac
2990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991$as_echo "$ac_try_echo"; } >&5
2992  (eval "$ac_link") 2>&5
2993  ac_status=$?
2994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2996  { { case "(($ac_try" in
2997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998  *) ac_try_echo=$ac_try;;
2999esac
3000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001$as_echo "$ac_try_echo"; } >&5
3002  (eval "$ac_try") 2>&5
3003  ac_status=$?
3004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005  test $ac_status = 0; }; }; then :
3006  ac_retval=0
3007else
3008  $as_echo "$as_me: program exited with status $ac_status" >&5
3009       $as_echo "$as_me: failed program was:" >&5
3010sed 's/^/| /' conftest.$ac_ext >&5
3011
3012       ac_retval=$ac_status
3013fi
3014  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3015  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3016  as_fn_set_status $ac_retval
3017
3018} # ac_fn_c_try_run
3019
3020# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
3021# -------------------------------------------------------
3022# Tests whether HEADER exists and can be compiled using the include files in
3023# INCLUDES, setting the cache variable VAR accordingly.
3024ac_fn_c_check_header_compile ()
3025{
3026  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3028$as_echo_n "checking for $2... " >&6; }
3029if eval \${$3+:} false; then :
3030  $as_echo_n "(cached) " >&6
3031else
3032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033/* end confdefs.h.  */
3034$4
3035#include <$2>
3036_ACEOF
3037if ac_fn_c_try_compile "$LINENO"; then :
3038  eval "$3=yes"
3039else
3040  eval "$3=no"
3041fi
3042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043fi
3044eval ac_res=\$$3
3045	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3046$as_echo "$ac_res" >&6; }
3047  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3048
3049} # ac_fn_c_check_header_compile
3050
3051# ac_fn_c_try_link LINENO
3052# -----------------------
3053# Try to link conftest.$ac_ext, and return whether this succeeded.
3054ac_fn_c_try_link ()
3055{
3056  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3057  rm -f conftest.$ac_objext conftest$ac_exeext
3058  if { { ac_try="$ac_link"
3059case "(($ac_try" in
3060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061  *) ac_try_echo=$ac_try;;
3062esac
3063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064$as_echo "$ac_try_echo"; } >&5
3065  (eval "$ac_link") 2>conftest.err
3066  ac_status=$?
3067  if test -s conftest.err; then
3068    grep -v '^ *+' conftest.err >conftest.er1
3069    cat conftest.er1 >&5
3070    mv -f conftest.er1 conftest.err
3071  fi
3072  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073  test $ac_status = 0; } && {
3074	 test -z "$ac_c_werror_flag" ||
3075	 test ! -s conftest.err
3076       } && test -s conftest$ac_exeext && {
3077	 test "$cross_compiling" = yes ||
3078	 test -x conftest$ac_exeext
3079       }; then :
3080  ac_retval=0
3081else
3082  $as_echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
3085	ac_retval=1
3086fi
3087  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3088  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3089  # interfere with the next link command; also delete a directory that is
3090  # left behind by Apple's compiler.  We do this before executing the actions.
3091  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3092  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3093  as_fn_set_status $ac_retval
3094
3095} # ac_fn_c_try_link
3096
3097# ac_fn_c_check_func LINENO FUNC VAR
3098# ----------------------------------
3099# Tests whether FUNC exists, setting the cache variable VAR accordingly
3100ac_fn_c_check_func ()
3101{
3102  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3104$as_echo_n "checking for $2... " >&6; }
3105if eval \${$3+:} false; then :
3106  $as_echo_n "(cached) " >&6
3107else
3108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h.  */
3110/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
3111   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3112#define $2 innocuous_$2
3113
3114/* System header to define __stub macros and hopefully few prototypes,
3115    which can conflict with char $2 (); below.
3116    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3117    <limits.h> exists even on freestanding compilers.  */
3118
3119#ifdef __STDC__
3120# include <limits.h>
3121#else
3122# include <assert.h>
3123#endif
3124
3125#undef $2
3126
3127/* Override any GCC internal prototype to avoid an error.
3128   Use char because int might match the return type of a GCC
3129   builtin and then its argument prototype would still apply.  */
3130#ifdef __cplusplus
3131extern "C"
3132#endif
3133char $2 ();
3134/* The GNU C library defines this for functions which it implements
3135    to always fail with ENOSYS.  Some functions are actually named
3136    something starting with __ and the normal name is an alias.  */
3137#if defined __stub_$2 || defined __stub___$2
3138choke me
3139#endif
3140
3141int
3142main ()
3143{
3144return $2 ();
3145  ;
3146  return 0;
3147}
3148_ACEOF
3149if ac_fn_c_try_link "$LINENO"; then :
3150  eval "$3=yes"
3151else
3152  eval "$3=no"
3153fi
3154rm -f core conftest.err conftest.$ac_objext \
3155    conftest$ac_exeext conftest.$ac_ext
3156fi
3157eval ac_res=\$$3
3158	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3159$as_echo "$ac_res" >&6; }
3160  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3161
3162} # ac_fn_c_check_func
3163
3164# ac_fn_cxx_try_compile LINENO
3165# ----------------------------
3166# Try to compile conftest.$ac_ext, and return whether this succeeded.
3167ac_fn_cxx_try_compile ()
3168{
3169  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3170  rm -f conftest.$ac_objext
3171  if { { ac_try="$ac_compile"
3172case "(($ac_try" in
3173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174  *) ac_try_echo=$ac_try;;
3175esac
3176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177$as_echo "$ac_try_echo"; } >&5
3178  (eval "$ac_compile") 2>conftest.err
3179  ac_status=$?
3180  if test -s conftest.err; then
3181    grep -v '^ *+' conftest.err >conftest.er1
3182    cat conftest.er1 >&5
3183    mv -f conftest.er1 conftest.err
3184  fi
3185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186  test $ac_status = 0; } && {
3187	 test -z "$ac_cxx_werror_flag" ||
3188	 test ! -s conftest.err
3189       } && test -s conftest.$ac_objext; then :
3190  ac_retval=0
3191else
3192  $as_echo "$as_me: failed program was:" >&5
3193sed 's/^/| /' conftest.$ac_ext >&5
3194
3195	ac_retval=1
3196fi
3197  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3198  as_fn_set_status $ac_retval
3199
3200} # ac_fn_cxx_try_compile
3201
3202# ac_fn_cxx_try_cpp LINENO
3203# ------------------------
3204# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
3205ac_fn_cxx_try_cpp ()
3206{
3207  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3208  if { { ac_try="$ac_cpp conftest.$ac_ext"
3209case "(($ac_try" in
3210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211  *) ac_try_echo=$ac_try;;
3212esac
3213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214$as_echo "$ac_try_echo"; } >&5
3215  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
3216  ac_status=$?
3217  if test -s conftest.err; then
3218    grep -v '^ *+' conftest.err >conftest.er1
3219    cat conftest.er1 >&5
3220    mv -f conftest.er1 conftest.err
3221  fi
3222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223  test $ac_status = 0; } > conftest.i && {
3224	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3225	 test ! -s conftest.err
3226       }; then :
3227  ac_retval=0
3228else
3229  $as_echo "$as_me: failed program was:" >&5
3230sed 's/^/| /' conftest.$ac_ext >&5
3231
3232    ac_retval=1
3233fi
3234  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3235  as_fn_set_status $ac_retval
3236
3237} # ac_fn_cxx_try_cpp
3238
3239# ac_fn_cxx_try_link LINENO
3240# -------------------------
3241# Try to link conftest.$ac_ext, and return whether this succeeded.
3242ac_fn_cxx_try_link ()
3243{
3244  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3245  rm -f conftest.$ac_objext conftest$ac_exeext
3246  if { { ac_try="$ac_link"
3247case "(($ac_try" in
3248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249  *) ac_try_echo=$ac_try;;
3250esac
3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
3253  (eval "$ac_link") 2>conftest.err
3254  ac_status=$?
3255  if test -s conftest.err; then
3256    grep -v '^ *+' conftest.err >conftest.er1
3257    cat conftest.er1 >&5
3258    mv -f conftest.er1 conftest.err
3259  fi
3260  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261  test $ac_status = 0; } && {
3262	 test -z "$ac_cxx_werror_flag" ||
3263	 test ! -s conftest.err
3264       } && test -s conftest$ac_exeext && {
3265	 test "$cross_compiling" = yes ||
3266	 test -x conftest$ac_exeext
3267       }; then :
3268  ac_retval=0
3269else
3270  $as_echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
3272
3273	ac_retval=1
3274fi
3275  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3276  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3277  # interfere with the next link command; also delete a directory that is
3278  # left behind by Apple's compiler.  We do this before executing the actions.
3279  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3280  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3281  as_fn_set_status $ac_retval
3282
3283} # ac_fn_cxx_try_link
3284
3285# ac_fn_fc_try_compile LINENO
3286# ---------------------------
3287# Try to compile conftest.$ac_ext, and return whether this succeeded.
3288ac_fn_fc_try_compile ()
3289{
3290  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3291  rm -f conftest.$ac_objext
3292  if { { ac_try="$ac_compile"
3293case "(($ac_try" in
3294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295  *) ac_try_echo=$ac_try;;
3296esac
3297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3298$as_echo "$ac_try_echo"; } >&5
3299  (eval "$ac_compile") 2>conftest.err
3300  ac_status=$?
3301  if test -s conftest.err; then
3302    grep -v '^ *+' conftest.err >conftest.er1
3303    cat conftest.er1 >&5
3304    mv -f conftest.er1 conftest.err
3305  fi
3306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307  test $ac_status = 0; } && {
3308	 test -z "$ac_fc_werror_flag" ||
3309	 test ! -s conftest.err
3310       } && test -s conftest.$ac_objext; then :
3311  ac_retval=0
3312else
3313  $as_echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316	ac_retval=1
3317fi
3318  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3319  as_fn_set_status $ac_retval
3320
3321} # ac_fn_fc_try_compile
3322
3323# ac_fn_fc_try_link LINENO
3324# ------------------------
3325# Try to link conftest.$ac_ext, and return whether this succeeded.
3326ac_fn_fc_try_link ()
3327{
3328  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3329  rm -f conftest.$ac_objext conftest$ac_exeext
3330  if { { ac_try="$ac_link"
3331case "(($ac_try" in
3332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333  *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5
3337  (eval "$ac_link") 2>conftest.err
3338  ac_status=$?
3339  if test -s conftest.err; then
3340    grep -v '^ *+' conftest.err >conftest.er1
3341    cat conftest.er1 >&5
3342    mv -f conftest.er1 conftest.err
3343  fi
3344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345  test $ac_status = 0; } && {
3346	 test -z "$ac_fc_werror_flag" ||
3347	 test ! -s conftest.err
3348       } && test -s conftest$ac_exeext && {
3349	 test "$cross_compiling" = yes ||
3350	 test -x conftest$ac_exeext
3351       }; then :
3352  ac_retval=0
3353else
3354  $as_echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
3357	ac_retval=1
3358fi
3359  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3360  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3361  # interfere with the next link command; also delete a directory that is
3362  # left behind by Apple's compiler.  We do this before executing the actions.
3363  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3364  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3365  as_fn_set_status $ac_retval
3366
3367} # ac_fn_fc_try_link
3368
3369# ac_fn_f77_try_compile LINENO
3370# ----------------------------
3371# Try to compile conftest.$ac_ext, and return whether this succeeded.
3372ac_fn_f77_try_compile ()
3373{
3374  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3375  rm -f conftest.$ac_objext
3376  if { { ac_try="$ac_compile"
3377case "(($ac_try" in
3378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379  *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382$as_echo "$ac_try_echo"; } >&5
3383  (eval "$ac_compile") 2>conftest.err
3384  ac_status=$?
3385  if test -s conftest.err; then
3386    grep -v '^ *+' conftest.err >conftest.er1
3387    cat conftest.er1 >&5
3388    mv -f conftest.er1 conftest.err
3389  fi
3390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391  test $ac_status = 0; } && {
3392	 test -z "$ac_f77_werror_flag" ||
3393	 test ! -s conftest.err
3394       } && test -s conftest.$ac_objext; then :
3395  ac_retval=0
3396else
3397  $as_echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400	ac_retval=1
3401fi
3402  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3403  as_fn_set_status $ac_retval
3404
3405} # ac_fn_f77_try_compile
3406
3407# ac_fn_f77_try_link LINENO
3408# -------------------------
3409# Try to link conftest.$ac_ext, and return whether this succeeded.
3410ac_fn_f77_try_link ()
3411{
3412  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3413  rm -f conftest.$ac_objext conftest$ac_exeext
3414  if { { ac_try="$ac_link"
3415case "(($ac_try" in
3416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417  *) ac_try_echo=$ac_try;;
3418esac
3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420$as_echo "$ac_try_echo"; } >&5
3421  (eval "$ac_link") 2>conftest.err
3422  ac_status=$?
3423  if test -s conftest.err; then
3424    grep -v '^ *+' conftest.err >conftest.er1
3425    cat conftest.er1 >&5
3426    mv -f conftest.er1 conftest.err
3427  fi
3428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3429  test $ac_status = 0; } && {
3430	 test -z "$ac_f77_werror_flag" ||
3431	 test ! -s conftest.err
3432       } && test -s conftest$ac_exeext && {
3433	 test "$cross_compiling" = yes ||
3434	 test -x conftest$ac_exeext
3435       }; then :
3436  ac_retval=0
3437else
3438  $as_echo "$as_me: failed program was:" >&5
3439sed 's/^/| /' conftest.$ac_ext >&5
3440
3441	ac_retval=1
3442fi
3443  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3444  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3445  # interfere with the next link command; also delete a directory that is
3446  # left behind by Apple's compiler.  We do this before executing the actions.
3447  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3448  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3449  as_fn_set_status $ac_retval
3450
3451} # ac_fn_f77_try_link
3452
3453# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
3454# --------------------------------------------
3455# Tries to find the compile-time value of EXPR in a program that includes
3456# INCLUDES, setting VAR accordingly. Returns whether the value could be
3457# computed
3458ac_fn_c_compute_int ()
3459{
3460  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3461  if test "$cross_compiling" = yes; then
3462    # Depending upon the size, compute the lo and hi bounds.
3463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464/* end confdefs.h.  */
3465$4
3466int
3467main ()
3468{
3469static int test_array [1 - 2 * !(($2) >= 0)];
3470test_array [0] = 0;
3471return test_array [0];
3472
3473  ;
3474  return 0;
3475}
3476_ACEOF
3477if ac_fn_c_try_compile "$LINENO"; then :
3478  ac_lo=0 ac_mid=0
3479  while :; do
3480    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481/* end confdefs.h.  */
3482$4
3483int
3484main ()
3485{
3486static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3487test_array [0] = 0;
3488return test_array [0];
3489
3490  ;
3491  return 0;
3492}
3493_ACEOF
3494if ac_fn_c_try_compile "$LINENO"; then :
3495  ac_hi=$ac_mid; break
3496else
3497  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
3498			if test $ac_lo -le $ac_mid; then
3499			  ac_lo= ac_hi=
3500			  break
3501			fi
3502			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
3503fi
3504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505  done
3506else
3507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508/* end confdefs.h.  */
3509$4
3510int
3511main ()
3512{
3513static int test_array [1 - 2 * !(($2) < 0)];
3514test_array [0] = 0;
3515return test_array [0];
3516
3517  ;
3518  return 0;
3519}
3520_ACEOF
3521if ac_fn_c_try_compile "$LINENO"; then :
3522  ac_hi=-1 ac_mid=-1
3523  while :; do
3524    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525/* end confdefs.h.  */
3526$4
3527int
3528main ()
3529{
3530static int test_array [1 - 2 * !(($2) >= $ac_mid)];
3531test_array [0] = 0;
3532return test_array [0];
3533
3534  ;
3535  return 0;
3536}
3537_ACEOF
3538if ac_fn_c_try_compile "$LINENO"; then :
3539  ac_lo=$ac_mid; break
3540else
3541  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
3542			if test $ac_mid -le $ac_hi; then
3543			  ac_lo= ac_hi=
3544			  break
3545			fi
3546			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
3547fi
3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549  done
3550else
3551  ac_lo= ac_hi=
3552fi
3553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554fi
3555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556# Binary search between lo and hi bounds.
3557while test "x$ac_lo" != "x$ac_hi"; do
3558  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
3559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560/* end confdefs.h.  */
3561$4
3562int
3563main ()
3564{
3565static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3566test_array [0] = 0;
3567return test_array [0];
3568
3569  ;
3570  return 0;
3571}
3572_ACEOF
3573if ac_fn_c_try_compile "$LINENO"; then :
3574  ac_hi=$ac_mid
3575else
3576  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3577fi
3578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579done
3580case $ac_lo in #((
3581?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3582'') ac_retval=1 ;;
3583esac
3584  else
3585    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586/* end confdefs.h.  */
3587$4
3588static long int longval () { return $2; }
3589static unsigned long int ulongval () { return $2; }
3590#include <stdio.h>
3591#include <stdlib.h>
3592int
3593main ()
3594{
3595
3596  FILE *f = fopen ("conftest.val", "w");
3597  if (! f)
3598    return 1;
3599  if (($2) < 0)
3600    {
3601      long int i = longval ();
3602      if (i != ($2))
3603	return 1;
3604      fprintf (f, "%ld", i);
3605    }
3606  else
3607    {
3608      unsigned long int i = ulongval ();
3609      if (i != ($2))
3610	return 1;
3611      fprintf (f, "%lu", i);
3612    }
3613  /* Do not output a trailing newline, as this causes \r\n confusion
3614     on some platforms.  */
3615  return ferror (f) || fclose (f) != 0;
3616
3617  ;
3618  return 0;
3619}
3620_ACEOF
3621if ac_fn_c_try_run "$LINENO"; then :
3622  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3623else
3624  ac_retval=1
3625fi
3626rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3627  conftest.$ac_objext conftest.beam conftest.$ac_ext
3628rm -f conftest.val
3629
3630  fi
3631  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3632  as_fn_set_status $ac_retval
3633
3634} # ac_fn_c_compute_int
3635
3636# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3637# ---------------------------------------------
3638# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3639# accordingly.
3640ac_fn_c_check_decl ()
3641{
3642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3643  as_decl_name=`echo $2|sed 's/ *(.*//'`
3644  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3645  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3646$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3647if eval \${$3+:} false; then :
3648  $as_echo_n "(cached) " >&6
3649else
3650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651/* end confdefs.h.  */
3652$4
3653int
3654main ()
3655{
3656#ifndef $as_decl_name
3657#ifdef __cplusplus
3658  (void) $as_decl_use;
3659#else
3660  (void) $as_decl_name;
3661#endif
3662#endif
3663
3664  ;
3665  return 0;
3666}
3667_ACEOF
3668if ac_fn_c_try_compile "$LINENO"; then :
3669  eval "$3=yes"
3670else
3671  eval "$3=no"
3672fi
3673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674fi
3675eval ac_res=\$$3
3676	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3677$as_echo "$ac_res" >&6; }
3678  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3679
3680} # ac_fn_c_check_decl
3681
3682# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3683# -------------------------------------------
3684# Tests whether TYPE exists after having included INCLUDES, setting cache
3685# variable VAR accordingly.
3686ac_fn_c_check_type ()
3687{
3688  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3690$as_echo_n "checking for $2... " >&6; }
3691if eval \${$3+:} false; then :
3692  $as_echo_n "(cached) " >&6
3693else
3694  eval "$3=no"
3695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h.  */
3697$4
3698int
3699main ()
3700{
3701if (sizeof ($2))
3702	 return 0;
3703  ;
3704  return 0;
3705}
3706_ACEOF
3707if ac_fn_c_try_compile "$LINENO"; then :
3708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709/* end confdefs.h.  */
3710$4
3711int
3712main ()
3713{
3714if (sizeof (($2)))
3715	    return 0;
3716  ;
3717  return 0;
3718}
3719_ACEOF
3720if ac_fn_c_try_compile "$LINENO"; then :
3721
3722else
3723  eval "$3=yes"
3724fi
3725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726fi
3727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728fi
3729eval ac_res=\$$3
3730	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3731$as_echo "$ac_res" >&6; }
3732  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3733
3734} # ac_fn_c_check_type
3735
3736# ac_fn_fc_try_run LINENO
3737# -----------------------
3738# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3739# that executables *can* be run.
3740ac_fn_fc_try_run ()
3741{
3742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3743  if { { ac_try="$ac_link"
3744case "(($ac_try" in
3745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746  *) ac_try_echo=$ac_try;;
3747esac
3748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749$as_echo "$ac_try_echo"; } >&5
3750  (eval "$ac_link") 2>&5
3751  ac_status=$?
3752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3754  { { case "(($ac_try" in
3755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756  *) ac_try_echo=$ac_try;;
3757esac
3758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3759$as_echo "$ac_try_echo"; } >&5
3760  (eval "$ac_try") 2>&5
3761  ac_status=$?
3762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3763  test $ac_status = 0; }; }; then :
3764  ac_retval=0
3765else
3766  $as_echo "$as_me: program exited with status $ac_status" >&5
3767       $as_echo "$as_me: failed program was:" >&5
3768sed 's/^/| /' conftest.$ac_ext >&5
3769
3770       ac_retval=$ac_status
3771fi
3772  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3773  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3774  as_fn_set_status $ac_retval
3775
3776} # ac_fn_fc_try_run
3777
3778# ac_fn_cxx_try_run LINENO
3779# ------------------------
3780# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3781# that executables *can* be run.
3782ac_fn_cxx_try_run ()
3783{
3784  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3785  if { { ac_try="$ac_link"
3786case "(($ac_try" in
3787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788  *) ac_try_echo=$ac_try;;
3789esac
3790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791$as_echo "$ac_try_echo"; } >&5
3792  (eval "$ac_link") 2>&5
3793  ac_status=$?
3794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3796  { { case "(($ac_try" in
3797  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798  *) ac_try_echo=$ac_try;;
3799esac
3800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801$as_echo "$ac_try_echo"; } >&5
3802  (eval "$ac_try") 2>&5
3803  ac_status=$?
3804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805  test $ac_status = 0; }; }; then :
3806  ac_retval=0
3807else
3808  $as_echo "$as_me: program exited with status $ac_status" >&5
3809       $as_echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812       ac_retval=$ac_status
3813fi
3814  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3815  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3816  as_fn_set_status $ac_retval
3817
3818} # ac_fn_cxx_try_run
3819
3820# ac_fn_c_find_intX_t LINENO BITS VAR
3821# -----------------------------------
3822# Finds a signed integer type with width BITS, setting cache variable VAR
3823# accordingly.
3824ac_fn_c_find_intX_t ()
3825{
3826  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
3828$as_echo_n "checking for int$2_t... " >&6; }
3829if eval \${$3+:} false; then :
3830  $as_echo_n "(cached) " >&6
3831else
3832  eval "$3=no"
3833     # Order is important - never check a type that is potentially smaller
3834     # than half of the expected target width.
3835     for ac_type in int$2_t 'int' 'long int' \
3836	 'long long int' 'short int' 'signed char'; do
3837       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838/* end confdefs.h.  */
3839$ac_includes_default
3840	     enum { N = $2 / 2 - 1 };
3841int
3842main ()
3843{
3844static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
3845test_array [0] = 0;
3846return test_array [0];
3847
3848  ;
3849  return 0;
3850}
3851_ACEOF
3852if ac_fn_c_try_compile "$LINENO"; then :
3853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854/* end confdefs.h.  */
3855$ac_includes_default
3856	        enum { N = $2 / 2 - 1 };
3857int
3858main ()
3859{
3860static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
3861		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
3862test_array [0] = 0;
3863return test_array [0];
3864
3865  ;
3866  return 0;
3867}
3868_ACEOF
3869if ac_fn_c_try_compile "$LINENO"; then :
3870
3871else
3872  case $ac_type in #(
3873  int$2_t) :
3874    eval "$3=yes" ;; #(
3875  *) :
3876    eval "$3=\$ac_type" ;;
3877esac
3878fi
3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880fi
3881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882       if eval test \"x\$"$3"\" = x"no"; then :
3883
3884else
3885  break
3886fi
3887     done
3888fi
3889eval ac_res=\$$3
3890	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3891$as_echo "$ac_res" >&6; }
3892  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3893
3894} # ac_fn_c_find_intX_t
3895
3896# ac_fn_c_find_uintX_t LINENO BITS VAR
3897# ------------------------------------
3898# Finds an unsigned integer type with width BITS, setting cache variable VAR
3899# accordingly.
3900ac_fn_c_find_uintX_t ()
3901{
3902  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3904$as_echo_n "checking for uint$2_t... " >&6; }
3905if eval \${$3+:} false; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908  eval "$3=no"
3909     # Order is important - never check a type that is potentially smaller
3910     # than half of the expected target width.
3911     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3912	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3913       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914/* end confdefs.h.  */
3915$ac_includes_default
3916int
3917main ()
3918{
3919static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
3920test_array [0] = 0;
3921return test_array [0];
3922
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927if ac_fn_c_try_compile "$LINENO"; then :
3928  case $ac_type in #(
3929  uint$2_t) :
3930    eval "$3=yes" ;; #(
3931  *) :
3932    eval "$3=\$ac_type" ;;
3933esac
3934fi
3935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936       if eval test \"x\$"$3"\" = x"no"; then :
3937
3938else
3939  break
3940fi
3941     done
3942fi
3943eval ac_res=\$$3
3944	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3945$as_echo "$ac_res" >&6; }
3946  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3947
3948} # ac_fn_c_find_uintX_t
3949
3950# ac_fn_f77_try_run LINENO
3951# ------------------------
3952# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
3953# that executables *can* be run.
3954ac_fn_f77_try_run ()
3955{
3956  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3957  if { { ac_try="$ac_link"
3958case "(($ac_try" in
3959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960  *) ac_try_echo=$ac_try;;
3961esac
3962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963$as_echo "$ac_try_echo"; } >&5
3964  (eval "$ac_link") 2>&5
3965  ac_status=$?
3966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
3968  { { case "(($ac_try" in
3969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970  *) ac_try_echo=$ac_try;;
3971esac
3972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973$as_echo "$ac_try_echo"; } >&5
3974  (eval "$ac_try") 2>&5
3975  ac_status=$?
3976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977  test $ac_status = 0; }; }; then :
3978  ac_retval=0
3979else
3980  $as_echo "$as_me: program exited with status $ac_status" >&5
3981       $as_echo "$as_me: failed program was:" >&5
3982sed 's/^/| /' conftest.$ac_ext >&5
3983
3984       ac_retval=$ac_status
3985fi
3986  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3987  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3988  as_fn_set_status $ac_retval
3989
3990} # ac_fn_f77_try_run
3991
3992# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
3993# ----------------------------------------------
3994# Tries to find the compile-time value of EXPR in a program that includes
3995# INCLUDES, setting VAR accordingly. Returns whether the value could be
3996# computed
3997ac_fn_cxx_compute_int ()
3998{
3999  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4000  if test "$cross_compiling" = yes; then
4001    # Depending upon the size, compute the lo and hi bounds.
4002cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003/* end confdefs.h.  */
4004$4
4005int
4006main ()
4007{
4008static int test_array [1 - 2 * !(($2) >= 0)];
4009test_array [0] = 0;
4010return test_array [0];
4011
4012  ;
4013  return 0;
4014}
4015_ACEOF
4016if ac_fn_cxx_try_compile "$LINENO"; then :
4017  ac_lo=0 ac_mid=0
4018  while :; do
4019    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020/* end confdefs.h.  */
4021$4
4022int
4023main ()
4024{
4025static int test_array [1 - 2 * !(($2) <= $ac_mid)];
4026test_array [0] = 0;
4027return test_array [0];
4028
4029  ;
4030  return 0;
4031}
4032_ACEOF
4033if ac_fn_cxx_try_compile "$LINENO"; then :
4034  ac_hi=$ac_mid; break
4035else
4036  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
4037			if test $ac_lo -le $ac_mid; then
4038			  ac_lo= ac_hi=
4039			  break
4040			fi
4041			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
4042fi
4043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044  done
4045else
4046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047/* end confdefs.h.  */
4048$4
4049int
4050main ()
4051{
4052static int test_array [1 - 2 * !(($2) < 0)];
4053test_array [0] = 0;
4054return test_array [0];
4055
4056  ;
4057  return 0;
4058}
4059_ACEOF
4060if ac_fn_cxx_try_compile "$LINENO"; then :
4061  ac_hi=-1 ac_mid=-1
4062  while :; do
4063    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064/* end confdefs.h.  */
4065$4
4066int
4067main ()
4068{
4069static int test_array [1 - 2 * !(($2) >= $ac_mid)];
4070test_array [0] = 0;
4071return test_array [0];
4072
4073  ;
4074  return 0;
4075}
4076_ACEOF
4077if ac_fn_cxx_try_compile "$LINENO"; then :
4078  ac_lo=$ac_mid; break
4079else
4080  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
4081			if test $ac_mid -le $ac_hi; then
4082			  ac_lo= ac_hi=
4083			  break
4084			fi
4085			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
4086fi
4087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088  done
4089else
4090  ac_lo= ac_hi=
4091fi
4092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093fi
4094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095# Binary search between lo and hi bounds.
4096while test "x$ac_lo" != "x$ac_hi"; do
4097  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
4098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099/* end confdefs.h.  */
4100$4
4101int
4102main ()
4103{
4104static int test_array [1 - 2 * !(($2) <= $ac_mid)];
4105test_array [0] = 0;
4106return test_array [0];
4107
4108  ;
4109  return 0;
4110}
4111_ACEOF
4112if ac_fn_cxx_try_compile "$LINENO"; then :
4113  ac_hi=$ac_mid
4114else
4115  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
4116fi
4117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118done
4119case $ac_lo in #((
4120?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
4121'') ac_retval=1 ;;
4122esac
4123  else
4124    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h.  */
4126$4
4127static long int longval () { return $2; }
4128static unsigned long int ulongval () { return $2; }
4129#include <stdio.h>
4130#include <stdlib.h>
4131int
4132main ()
4133{
4134
4135  FILE *f = fopen ("conftest.val", "w");
4136  if (! f)
4137    return 1;
4138  if (($2) < 0)
4139    {
4140      long int i = longval ();
4141      if (i != ($2))
4142	return 1;
4143      fprintf (f, "%ld", i);
4144    }
4145  else
4146    {
4147      unsigned long int i = ulongval ();
4148      if (i != ($2))
4149	return 1;
4150      fprintf (f, "%lu", i);
4151    }
4152  /* Do not output a trailing newline, as this causes \r\n confusion
4153     on some platforms.  */
4154  return ferror (f) || fclose (f) != 0;
4155
4156  ;
4157  return 0;
4158}
4159_ACEOF
4160if ac_fn_cxx_try_run "$LINENO"; then :
4161  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
4162else
4163  ac_retval=1
4164fi
4165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4166  conftest.$ac_objext conftest.beam conftest.$ac_ext
4167rm -f conftest.val
4168
4169  fi
4170  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4171  as_fn_set_status $ac_retval
4172
4173} # ac_fn_cxx_compute_int
4174
4175# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
4176# ---------------------------------------------------------
4177# Tests whether HEADER exists, giving a warning if it cannot be compiled using
4178# the include files in INCLUDES and setting the cache variable VAR
4179# accordingly.
4180ac_fn_cxx_check_header_mongrel ()
4181{
4182  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4183  if eval \${$3+:} false; then :
4184  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
4185$as_echo_n "checking for $2... " >&6; }
4186if eval \${$3+:} false; then :
4187  $as_echo_n "(cached) " >&6
4188fi
4189eval ac_res=\$$3
4190	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4191$as_echo "$ac_res" >&6; }
4192else
4193  # Is the header compilable?
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
4195$as_echo_n "checking $2 usability... " >&6; }
4196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197/* end confdefs.h.  */
4198$4
4199#include <$2>
4200_ACEOF
4201if ac_fn_cxx_try_compile "$LINENO"; then :
4202  ac_header_compiler=yes
4203else
4204  ac_header_compiler=no
4205fi
4206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
4208$as_echo "$ac_header_compiler" >&6; }
4209
4210# Is the header present?
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
4212$as_echo_n "checking $2 presence... " >&6; }
4213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214/* end confdefs.h.  */
4215#include <$2>
4216_ACEOF
4217if ac_fn_cxx_try_cpp "$LINENO"; then :
4218  ac_header_preproc=yes
4219else
4220  ac_header_preproc=no
4221fi
4222rm -f conftest.err conftest.i conftest.$ac_ext
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
4224$as_echo "$ac_header_preproc" >&6; }
4225
4226# So?  What about this header?
4227case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
4228  yes:no: )
4229    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
4230$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
4231    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
4232$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
4233    ;;
4234  no:yes:* )
4235    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
4236$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
4237    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
4238$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
4239    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
4240$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
4241    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
4242$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
4243    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
4244$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
4245( $as_echo "## -------------------------------- ##
4246## Report this to discuss@mpich.org ##
4247## -------------------------------- ##"
4248     ) | sed "s/^/$as_me: WARNING:     /" >&2
4249    ;;
4250esac
4251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
4252$as_echo_n "checking for $2... " >&6; }
4253if eval \${$3+:} false; then :
4254  $as_echo_n "(cached) " >&6
4255else
4256  eval "$3=\$ac_header_compiler"
4257fi
4258eval ac_res=\$$3
4259	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4260$as_echo "$ac_res" >&6; }
4261fi
4262  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
4263
4264} # ac_fn_cxx_check_header_mongrel
4265cat >config.log <<_ACEOF
4266This file contains any messages produced by compilers while
4267running configure, to aid debugging if configure makes a mistake.
4268
4269It was created by MPICH $as_me 3.4.3, which was
4270generated by GNU Autoconf 2.69.  Invocation command line was
4271
4272  $ $0 $@
4273
4274_ACEOF
4275exec 5>>config.log
4276{
4277cat <<_ASUNAME
4278## --------- ##
4279## Platform. ##
4280## --------- ##
4281
4282hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
4283uname -m = `(uname -m) 2>/dev/null || echo unknown`
4284uname -r = `(uname -r) 2>/dev/null || echo unknown`
4285uname -s = `(uname -s) 2>/dev/null || echo unknown`
4286uname -v = `(uname -v) 2>/dev/null || echo unknown`
4287
4288/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
4289/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
4290
4291/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
4292/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
4293/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
4294/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
4295/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
4296/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
4297/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
4298
4299_ASUNAME
4300
4301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH
4303do
4304  IFS=$as_save_IFS
4305  test -z "$as_dir" && as_dir=.
4306    $as_echo "PATH: $as_dir"
4307  done
4308IFS=$as_save_IFS
4309
4310} >&5
4311
4312cat >&5 <<_ACEOF
4313
4314
4315## ----------- ##
4316## Core tests. ##
4317## ----------- ##
4318
4319_ACEOF
4320
4321
4322# Keep a trace of the command line.
4323# Strip out --no-create and --no-recursion so they do not pile up.
4324# Strip out --silent because we don't want to record it for future runs.
4325# Also quote any args containing shell meta-characters.
4326# Make two passes to allow for proper duplicate-argument suppression.
4327ac_configure_args=
4328ac_configure_args0=
4329ac_configure_args1=
4330ac_must_keep_next=false
4331for ac_pass in 1 2
4332do
4333  for ac_arg
4334  do
4335    case $ac_arg in
4336    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
4337    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4338    | -silent | --silent | --silen | --sile | --sil)
4339      continue ;;
4340    *\'*)
4341      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4342    esac
4343    case $ac_pass in
4344    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
4345    2)
4346      as_fn_append ac_configure_args1 " '$ac_arg'"
4347      if test $ac_must_keep_next = true; then
4348	ac_must_keep_next=false # Got value, back to normal.
4349      else
4350	case $ac_arg in
4351	  *=* | --config-cache | -C | -disable-* | --disable-* \
4352	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
4353	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
4354	  | -with-* | --with-* | -without-* | --without-* | --x)
4355	    case "$ac_configure_args0 " in
4356	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
4357	    esac
4358	    ;;
4359	  -* ) ac_must_keep_next=true ;;
4360	esac
4361      fi
4362      as_fn_append ac_configure_args " '$ac_arg'"
4363      ;;
4364    esac
4365  done
4366done
4367{ ac_configure_args0=; unset ac_configure_args0;}
4368{ ac_configure_args1=; unset ac_configure_args1;}
4369
4370# When interrupted or exit'd, cleanup temporary files, and complete
4371# config.log.  We remove comments because anyway the quotes in there
4372# would cause problems or look ugly.
4373# WARNING: Use '\'' to represent an apostrophe within the trap.
4374# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
4375trap 'exit_status=$?
4376  # Save into config.log some information that might help in debugging.
4377  {
4378    echo
4379
4380    $as_echo "## ---------------- ##
4381## Cache variables. ##
4382## ---------------- ##"
4383    echo
4384    # The following way of writing the cache mishandles newlines in values,
4385(
4386  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
4387    eval ac_val=\$$ac_var
4388    case $ac_val in #(
4389    *${as_nl}*)
4390      case $ac_var in #(
4391      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4392$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4393      esac
4394      case $ac_var in #(
4395      _ | IFS | as_nl) ;; #(
4396      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4397      *) { eval $ac_var=; unset $ac_var;} ;;
4398      esac ;;
4399    esac
4400  done
4401  (set) 2>&1 |
4402    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
4403    *${as_nl}ac_space=\ *)
4404      sed -n \
4405	"s/'\''/'\''\\\\'\'''\''/g;
4406	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
4407      ;; #(
4408    *)
4409      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4410      ;;
4411    esac |
4412    sort
4413)
4414    echo
4415
4416    $as_echo "## ----------------- ##
4417## Output variables. ##
4418## ----------------- ##"
4419    echo
4420    for ac_var in $ac_subst_vars
4421    do
4422      eval ac_val=\$$ac_var
4423      case $ac_val in
4424      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
4425      esac
4426      $as_echo "$ac_var='\''$ac_val'\''"
4427    done | sort
4428    echo
4429
4430    if test -n "$ac_subst_files"; then
4431      $as_echo "## ------------------- ##
4432## File substitutions. ##
4433## ------------------- ##"
4434      echo
4435      for ac_var in $ac_subst_files
4436      do
4437	eval ac_val=\$$ac_var
4438	case $ac_val in
4439	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
4440	esac
4441	$as_echo "$ac_var='\''$ac_val'\''"
4442      done | sort
4443      echo
4444    fi
4445
4446    if test -s confdefs.h; then
4447      $as_echo "## ----------- ##
4448## confdefs.h. ##
4449## ----------- ##"
4450      echo
4451      cat confdefs.h
4452      echo
4453    fi
4454    test "$ac_signal" != 0 &&
4455      $as_echo "$as_me: caught signal $ac_signal"
4456    $as_echo "$as_me: exit $exit_status"
4457  } >&5
4458  rm -f core *.core core.conftest.* &&
4459    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
4460    exit $exit_status
4461' 0
4462for ac_signal in 1 2 13 15; do
4463  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
4464done
4465ac_signal=0
4466
4467# confdefs.h avoids OS command line length limits that DEFS can exceed.
4468rm -f -r conftest* confdefs.h
4469
4470$as_echo "/* confdefs.h */" > confdefs.h
4471
4472# Predefined preprocessor variables.
4473
4474cat >>confdefs.h <<_ACEOF
4475#define PACKAGE_NAME "$PACKAGE_NAME"
4476_ACEOF
4477
4478cat >>confdefs.h <<_ACEOF
4479#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
4480_ACEOF
4481
4482cat >>confdefs.h <<_ACEOF
4483#define PACKAGE_VERSION "$PACKAGE_VERSION"
4484_ACEOF
4485
4486cat >>confdefs.h <<_ACEOF
4487#define PACKAGE_STRING "$PACKAGE_STRING"
4488_ACEOF
4489
4490cat >>confdefs.h <<_ACEOF
4491#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
4492_ACEOF
4493
4494cat >>confdefs.h <<_ACEOF
4495#define PACKAGE_URL "$PACKAGE_URL"
4496_ACEOF
4497
4498
4499# Let the site file select an alternate cache file if it wants to.
4500# Prefer an explicitly selected file to automatically selected ones.
4501ac_site_file1=NONE
4502ac_site_file2=NONE
4503if test -n "$CONFIG_SITE"; then
4504  # We do not want a PATH search for config.site.
4505  case $CONFIG_SITE in #((
4506    -*)  ac_site_file1=./$CONFIG_SITE;;
4507    */*) ac_site_file1=$CONFIG_SITE;;
4508    *)   ac_site_file1=./$CONFIG_SITE;;
4509  esac
4510elif test "x$prefix" != xNONE; then
4511  ac_site_file1=$prefix/share/config.site
4512  ac_site_file2=$prefix/etc/config.site
4513else
4514  ac_site_file1=$ac_default_prefix/share/config.site
4515  ac_site_file2=$ac_default_prefix/etc/config.site
4516fi
4517for ac_site_file in "$ac_site_file1" "$ac_site_file2"
4518do
4519  test "x$ac_site_file" = xNONE && continue
4520  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
4521    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
4522$as_echo "$as_me: loading site script $ac_site_file" >&6;}
4523    sed 's/^/| /' "$ac_site_file" >&5
4524    . "$ac_site_file" \
4525      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4526$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4527as_fn_error $? "failed to load site script $ac_site_file
4528See \`config.log' for more details" "$LINENO" 5; }
4529  fi
4530done
4531
4532if test "$CONFIGURE_DEBUG_CACHE" = yes ; then
4533    oldopts="$-"
4534    clearMinusX=no
4535    set -x
4536    if test "$oldopts" != "$-" ; then
4537        clearMinusX=yes
4538    fi
4539fi
4540if test "X$cache_system" = "X" ; then
4541    # A default file name, just in case
4542    cache_system="config.system"
4543    if test "$cache_file" != "/dev/null" ; then
4544        # Get the directory for the cache file, if any
4545
4546                cache_system=`echo $cache_file | sed -e 's%^\(.*/\)[^/]*%\1config.system%'`
4547
4548        test "x$cache_system" = "x$cache_file" && cache_system="config.system"
4549#    else
4550#        We must *not* set enable_cache to no because we need to know if
4551#        enable_cache was not set.
4552#        enable_cache=no
4553    fi
4554fi
4555#
4556# Get a test value and flag whether we should remove/replace the
4557# cache_system file (do so unless cache_system_ok is yes)
4558# FC and F77 should be synonyms.  Save both in case
4559# We include the xxxFLAGS in case the user is using the flags to change
4560# the language (either input or output) of the compiler.  E.g.,
4561# using -xarch=v9 on Solaris to select 64 bit output or using -D_BSD_SOURCE
4562# with gcc to get different header files on input.
4563cleanargs=`echo "$CC $F77 $FC $CXX $F90 $CFLAGS $FFLAGS $CXXFLAGS $F90FLAGS $PATH" | tr '"' ' '`
4564if uname -srm >/dev/null 2>&1 ; then
4565    cache_system_text="`uname -srm` $cleanargs"
4566else
4567    cache_system_text="-no-uname- $cleanargs"
4568fi
4569cache_system_ok=no
4570#
4571if test -z "$real_enable_cache" ; then
4572    real_enable_cache=$enable_cache
4573    if test -z "$real_enable_cache" ; then real_enable_cache="notgiven" ; fi
4574fi
4575if test "X$real_enable_cache" = "Xnotgiven" ; then
4576    # check for valid cache file
4577    if test -z "$cache_system" ; then cache_system="config.system" ; fi
4578    if uname -srm >/dev/null 2>&1 ; then
4579        if test -f "$cache_system" -a -n "$cache_system_text" ; then
4580	    if test "$cache_system_text" = "`cat $cache_system`" ; then
4581	        real_enable_cache="yes"
4582                cache_system_ok=yes
4583	    fi
4584        elif test ! -f "$cache_system" -a -n "$cache_system_text" ; then
4585	    # remove the cache file because it may not correspond to our
4586	    # system
4587	    if test "$cache_file" != "/dev/null" ; then
4588	        rm -f $cache_file
4589	    fi
4590	    real_enable_cache="yes"
4591        fi
4592    fi
4593fi
4594if test "X$real_enable_cache" = "Xyes" -a "$cache_file" = "/dev/null" ; then
4595    real_enable_cache=no
4596fi
4597if test "X$real_enable_cache" = "Xyes" ; then
4598  if test -r "$cache_file" ; then
4599    echo "loading cache $cache_file"
4600    if test -w "$cache_file" ; then
4601        # Clean the cache file (ergh)
4602
4603    rm -f confcache
4604    sed -e "s/'\\\\''//g" -e "s/'\\\\/'/" -e "s/\\\\'/'/" \
4605		-e "s/'\\\\''//g" $cache_file > confcache
4606    if cmp -s $cache_file confcache ; then
4607        :
4608    else
4609        if test -w $cache_file ; then
4610	    echo "updating cache $cache_file"
4611            cat confcache > $cache_file
4612        else
4613            echo "not updating unwritable cache $cache_file"
4614        fi
4615    fi
4616    rm -f confcache
4617    if test "$DEBUG_AUTOCONF_CACHE" = "yes" ; then
4618        echo "Results of cleaned cache file:"
4619	echo "--------------------------------------------------------"
4620	cat $cache_file
4621	echo "--------------------------------------------------------"
4622    fi
4623
4624    fi
4625    . $cache_file
4626  else
4627    echo "Configure in `pwd` creating cache $cache_file"
4628    > $cache_file
4629    rm -f $cache_system
4630  fi
4631else
4632  cache_file="/dev/null"
4633fi
4634# Remember our location and the name of the cachefile
4635pac_cv_my_conf_dir=`pwd`
4636#
4637# Update the cache_system file if necessary
4638if test "$cache_system_ok" != yes ; then
4639    if test -n "$cache_system" ; then
4640        rm -f $cache_system
4641        echo $cache_system_text > $cache_system
4642    fi
4643fi
4644if test "$clearMinusX" = yes ; then
4645    set +x
4646fi
4647
4648# Check that the precious variables saved in the cache have kept the same
4649# value.
4650ac_cache_corrupted=false
4651for ac_var in $ac_precious_vars; do
4652  eval ac_old_set=\$ac_cv_env_${ac_var}_set
4653  eval ac_new_set=\$ac_env_${ac_var}_set
4654  eval ac_old_val=\$ac_cv_env_${ac_var}_value
4655  eval ac_new_val=\$ac_env_${ac_var}_value
4656  case $ac_old_set,$ac_new_set in
4657    set,)
4658      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
4659$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
4660      ac_cache_corrupted=: ;;
4661    ,set)
4662      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
4663$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
4664      ac_cache_corrupted=: ;;
4665    ,);;
4666    *)
4667      if test "x$ac_old_val" != "x$ac_new_val"; then
4668	# differences in whitespace do not lead to failure.
4669	ac_old_val_w=`echo x $ac_old_val`
4670	ac_new_val_w=`echo x $ac_new_val`
4671	if test "$ac_old_val_w" != "$ac_new_val_w"; then
4672	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
4673$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
4674	  ac_cache_corrupted=:
4675	else
4676	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
4677$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
4678	  eval $ac_var=\$ac_old_val
4679	fi
4680	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
4681$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
4682	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
4683$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
4684      fi;;
4685  esac
4686  # Pass precious variables to config.status.
4687  if test "$ac_new_set" = set; then
4688    case $ac_new_val in
4689    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4690    *) ac_arg=$ac_var=$ac_new_val ;;
4691    esac
4692    case " $ac_configure_args " in
4693      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
4694      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4695    esac
4696  fi
4697done
4698if $ac_cache_corrupted; then
4699  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4701  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4702$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
4703  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
4704fi
4705## -------------------- ##
4706## Main body of script. ##
4707## -------------------- ##
4708
4709ac_ext=c
4710ac_cpp='$CPP $CPPFLAGS'
4711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714
4715
4716
4717if test "x$prefix" != "xNONE" && test -d "$prefix"; then
4718    if test "x`(cd \"$prefix\"; echo \"$PWD\")`" = "x`(cd \"$srcdir\"; echo \"$PWD\")`" ||\
4719       test "x`(cd \"$prefix\"; echo \"$PWD\")`" = "x$PWD"  ; then
4720        as_fn_error $? "The install directory (--prefix=) cannot be the same as the build or src directory." "$LINENO" 5
4721    fi
4722fi
4723
4724CONFIGURE_ARGS_CLEAN=`echo $* | tr '"' ' '`
4725
4726
4727# these values come from the m4_include above
4728MPICH_VERSION=3.4.3
4729
4730MPICH_RELEASE_DATE="Thu Dec 16 11:20:57 CST 2021"
4731
4732libmpi_so_version="13:12:1"
4733
4734
4735
4736if test -z "$MPICH_VERSION" ; then
4737    as_fn_error $? "MPICH_VERSION is empty, check maint/version.m4 for errors" "$LINENO" 5
4738fi
4739# Produce a numeric version assuming the following format:
4740# Version: [MAJ].[MIN].[REV][EXT][EXT_NUMBER]
4741# Example: 1.0.7rc1 has
4742#          MAJ = 1
4743#          MIN = 0
4744#          REV = 7
4745#          EXT = rc
4746#          EXT_NUMBER = 1
4747#
4748# Converting to numeric version will convert EXT to a format number:
4749#          ALPHA (a) = 0
4750#          BETA (b)  = 1
4751#          RC (rc)   = 2
4752#          PATCH (p) = 3
4753# Regular releases are treated as patch 0
4754#
4755# Numeric version will have 1 digit for MAJ, 2 digits for MIN,
4756# 2 digits for REV, 1 digit for EXT and 2 digits for EXT_NUMBER.
4757
4758V1=`expr $MPICH_VERSION : '\([0-9]*\)\.[0-9]*\.*[0-9]*[a-zA-Z]*[0-9]*'`
4759V2=`expr $MPICH_VERSION : '[0-9]*\.\([0-9]*\)\.*[0-9]*[a-zA-Z]*[0-9]*'`
4760V3=`expr $MPICH_VERSION : '[0-9]*\.[0-9]*\.*\([0-9]*\)[a-zA-Z]*[0-9]*'`
4761V4=`expr $MPICH_VERSION : '[0-9]*\.[0-9]*\.*[0-9]*\([a-zA-Z]*\)[0-9]*'`
4762V5=`expr $MPICH_VERSION : '[0-9]*\.[0-9]*\.*[0-9]*[a-zA-Z]*\([0-9]*\)'`
4763
4764
4765if test "$V2" -le 9 ; then V2=0$V2 ; fi
4766if test "$V3" = "" ; then V3=0; fi
4767if test "$V3" -le 9 ; then V3=0$V3 ; fi
4768if test "$V4" = "a" ; then
4769    V4=0
4770elif test "$V4" = "b" ; then
4771    V4=1
4772elif test "$V4" = "rc" ; then
4773    V4=2
4774elif test "$V4" = "" ; then
4775    V4=3
4776    V5=0
4777elif test "$V4" = "p" ; then
4778    V4=3
4779fi
4780if test "$V5" -le 9 ; then V5=0$V5 ; fi
4781
4782MPICH_NUMVERSION=`expr $V1$V2$V3$V4$V5 + 0`
4783
4784
4785
4786# Check whether --with-custom-version-string was given.
4787if test "${with_custom_version_string+set}" = set; then :
4788  withval=$with_custom_version_string;
4789else
4790  with_custom_version_string=""
4791fi
4792
4793MPICH_CUSTOM_STRING=$with_custom_version_string
4794
4795
4796# ABIVERSION is the name used by simplemake, so we reassign the
4797# libmpi_so_version number to it
4798ABIVERSION=${libmpi_so_version}
4799export ABIVERSION
4800export libmpi_so_version
4801
4802
4803# Print out the configure options
4804CONFIGURE_ARGUMENTS="$ac_configure_args"
4805
4806if test -n "$ac_configure_args" ; then
4807    echo "Configuring MPICH version $MPICH_VERSION with $ac_configure_args"
4808else
4809    echo "Configuring MPICH version $MPICH_VERSION"
4810fi
4811
4812# Add the information on the system:
4813echo "Running on system: `uname -a`"
4814
4815ac_config_headers="$ac_config_headers src/include/mpichconf.h"
4816
4817
4818
4819# We use an #include strategy here because all of the alternative strategies for
4820# quashing these variables have various drawbacks.  The alternatives are listed
4821# here to avoid rediscovery of these problems by someone else in the future:
4822#
4823# 1) Strategy: Rewrite mpichconf.h.in with sed at autogen.sh time.
4824#    Problem: Automatic remaking of config.status and friends will re-run
4825#             autoheader and blow away our sed changes without an opportunity to
4826#             patch the resulting file again.
4827# 2) Strategy: Add literal "#undef PACKAGE" lines to the AH_BOTTOM text.
4828#    Problem: These lines get rewritten by config.status to be "#define" lines,
4829#             so the intended quashing never actually occurs.
4830# 3) Strategy: Use AC_CONFIG_COMMANDS to run a sed rewrite command on
4831#              mpichconf.h at config.status time.
4832#    Problem: Causes mpichconf.h to always be rewritten, first by the normal
4833#             config.status commands and then by sed.  This can cause
4834#             unnecessary remaking of object files since nearly every C source
4835#             file includes this header (see the Autoconf Manual, "Automatic
4836#             Remaking")
4837#
4838# The only other plausible strategy would seem to be rewriting config.status
4839# itself via AC_CONFIG_COMMANDS_POST, but that seems error prone.  The best
4840# solution would be to stop all subconfigures from including config.h headers
4841# from other packages.  Then all of this nonsense can be eliminated.
4842# [goodell@ 2011-08-26]
4843
4844
4845ac_aux_dir=
4846for ac_dir in confdb "$srcdir"/confdb; do
4847  if test -f "$ac_dir/install-sh"; then
4848    ac_aux_dir=$ac_dir
4849    ac_install_sh="$ac_aux_dir/install-sh -c"
4850    break
4851  elif test -f "$ac_dir/install.sh"; then
4852    ac_aux_dir=$ac_dir
4853    ac_install_sh="$ac_aux_dir/install.sh -c"
4854    break
4855  elif test -f "$ac_dir/shtool"; then
4856    ac_aux_dir=$ac_dir
4857    ac_install_sh="$ac_aux_dir/shtool install -c"
4858    break
4859  fi
4860done
4861if test -z "$ac_aux_dir"; then
4862  as_fn_error $? "cannot find install-sh, install.sh, or shtool in confdb \"$srcdir\"/confdb" "$LINENO" 5
4863fi
4864
4865# These three variables are undocumented and unsupported,
4866# and are intended to be withdrawn in a future Autoconf release.
4867# They can cause serious problems if a builder's source tree is in a directory
4868# whose full name contains unusual characters.
4869ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4870ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4871ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4872
4873
4874
4875
4876# Set the FROM_MPICH variable to tell subconfigures that they are
4877# built from within MPICH
4878FROM_MPICH=yes
4879export FROM_MPICH
4880
4881# Save a copy of precious flags as USER_* before any of these flags
4882# are being modified by configure tests.
4883
4884
4885	USER_CFLAGS=$CFLAGS
4886	export USER_CFLAGS
4887
4888
4889
4890	USER_CPPFLAGS=$CPPFLAGS
4891	export USER_CPPFLAGS
4892
4893
4894
4895	USER_CXXFLAGS=$CXXFLAGS
4896	export USER_CXXFLAGS
4897
4898
4899
4900	USER_FFLAGS=$FFLAGS
4901	export USER_FFLAGS
4902
4903
4904
4905	USER_FCFLAGS=$FCFLAGS
4906	export USER_FCFLAGS
4907
4908
4909
4910	USER_LDFLAGS=$LDFLAGS
4911	export USER_LDFLAGS
4912
4913
4914
4915	USER_LIBS=$LIBS
4916	export USER_LIBS
4917
4918
4919
4920	USER_EXTRA_LIBS=$EXTRA_LIBS
4921	export USER_EXTRA_LIBS
4922
4923
4924
4925
4926# WRAPPER_xFLAGS are used by mpicc and friends.
4927#
4928# WRAPPER_CFLAGS and other compile flags are used for compile options
4929# that are added by MPICH, but should be used by applications (such
4930# as include paths).
4931#
4932# All libraries that are detected by MPICH as needed for some of its
4933# functionality (such as -lpthread) should be added to WRAPPER_LIBS
4934# so executables built within MPICH use them.  If inter-library
4935# dependencies are not supported on the platform, these libraries are
4936# added to the MPICH wrappers (mpicc and friends) as well.
4937
4938
4939	WRAPPER_CFLAGS=$CFLAGS
4940	export WRAPPER_CFLAGS
4941
4942
4943
4944	WRAPPER_CPPFLAGS=$CPPFLAGS
4945	export WRAPPER_CPPFLAGS
4946
4947
4948
4949	WRAPPER_CXXFLAGS=$CXXFLAGS
4950	export WRAPPER_CXXFLAGS
4951
4952
4953
4954	WRAPPER_FFLAGS=$FFLAGS
4955	export WRAPPER_FFLAGS
4956
4957
4958
4959	WRAPPER_FCFLAGS=$FCFLAGS
4960	export WRAPPER_FCFLAGS
4961
4962
4963
4964	WRAPPER_LDFLAGS=$LDFLAGS
4965	export WRAPPER_LDFLAGS
4966
4967
4968
4969	WRAPPER_LIBS=$LIBS
4970	export WRAPPER_LIBS
4971
4972
4973
4974	WRAPPER_EXTRA_LIBS=$EXTRA_LIBS
4975	export WRAPPER_EXTRA_LIBS
4976
4977
4978
4979
4980# confdb routines are used in multiple components. Let the macros know
4981# whether WRAPPER FLAGS are used.
4982
4983
4984# MPICH_MPIx_FLAGS are used by mpicc and friends.  They are like
4985# WRAPPER flags, but these are provided by the user.
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006# Add MPICHLIB_* to the appropriate flags
5007
5008
5009
5010
5011
5012CFLAGS="$CFLAGS $MPICHLIB_CFLAGS"
5013CPPFLAGS="$CPPFLAGS $MPICHLIB_CPPFLAGS"
5014CXXFLAGS="$CXXFLAGS $MPICHLIB_CXXFLAGS"
5015FFLAGS="$FFLAGS $MPICHLIB_FFLAGS"
5016FCFLAGS="$FCFLAGS $MPICHLIB_FCFLAGS"
5017
5018# begin subsys includes
5019
5020# start of src/mpi/datatype/typerep/src/subconfigure.m4
5021
5022##### prereq code
5023
5024
5025##### core content
5026
5027# end of src/mpi/datatype/typerep/src/subconfigure.m4
5028
5029# start of src/util/logging/subconfigure.m4
5030
5031
5032
5033
5034
5035
5036
5037# start of src/mpid/ch4/subconfigure.m4
5038
5039# expansion is: PAC_SUBCFG_PREREQ_src_mpid_ch4
5040
5041
5042# end of src/mpid/ch4/subconfigure.m4
5043
5044# start of src/mpid/ch4/netmod/ucx/subconfigure.m4
5045
5046
5047
5048# end of src/mpid/ch4/netmod/ucx/subconfigure.m4
5049
5050# start of src/pm/subconfigure.m4
5051
5052
5053
5054
5055# end of src/pm/subconfigure.m4
5056
5057# start of src/mpid/ch4/shm/stubshm/subconfigure.m4
5058
5059
5060
5061# end of src/mpid/ch4/shm/stubshm/subconfigure.m4
5062
5063# start of src/binding/fortran/use_mpi/subconfigure.m4
5064
5065
5066
5067
5068# end of src/binding/fortran/use_mpi/subconfigure.m4
5069
5070# start of src/pm/gforker/subconfigure.m4
5071
5072
5073
5074# end of src/pm/gforker/subconfigure.m4
5075
5076# start of src/mpid/ch4/shm/ipc/gpu/subconfigure.m4
5077
5078
5079
5080# end of src/mpid/ch4/shm/ipc/gpu/subconfigure.m4
5081
5082# start of src/mpid/ch4/shm/ipc/xpmem/subconfigure.m4
5083
5084
5085
5086# end of src/mpid/ch4/shm/ipc/xpmem/subconfigure.m4
5087
5088# start of src/mpid/ch4/netmod/stubnm/subconfigure.m4
5089
5090
5091
5092# end of src/mpid/ch4/netmod/stubnm/subconfigure.m4
5093
5094# start of src/mpid/common/genq/subconfigure.m4
5095
5096
5097
5098
5099# end of src/mpid/common/genq/subconfigure.m4
5100
5101# start of src/mpid/common/hcoll/subconfigure.m4
5102
5103
5104
5105# end of src/mpid/common/hcoll/subconfigure.m4
5106
5107# start of src/pm/remshell/subconfigure.m4
5108
5109
5110
5111# end of src/pm/remshell/subconfigure.m4
5112
5113# start of src/pm/util/subconfigure.m4
5114
5115
5116
5117# end of src/pm/util/subconfigure.m4
5118
5119# start of src/mpid/ch4/shm/posix/subconfigure.m4
5120
5121
5122
5123# end of src/mpid/ch4/shm/posix/subconfigure.m4
5124
5125# start of src/mpid/ch4/shm/posix/eager/iqueue/subconfigure.m4
5126
5127
5128
5129# end of src/mpid/ch4/shm/posix/eager/iqueue/subconfigure.m4
5130
5131# start of src/mpid/ch4/shm/posix/eager/stub/subconfigure.m4
5132
5133
5134
5135# end of src/mpid/ch4/shm/posix/eager/stub/subconfigure.m4
5136
5137# start of src/mpid/common/bc/subconfigure.m4
5138
5139
5140
5141
5142# end of src/mpid/common/bc/subconfigure.m4
5143
5144# start of src/pmi/subconfigure.m4
5145
5146
5147
5148# end of src/pmi/subconfigure.m4
5149
5150# start of src/pmi/slurm/subconfigure.m4
5151
5152
5153
5154
5155# end of src/pmi/slurm/subconfigure.m4
5156
5157# start of src/pmi/pmi2/subconfigure.m4
5158
5159
5160
5161
5162# end of src/pmi/pmi2/subconfigure.m4
5163
5164# start of src/pmi/pmi2/simple/subconfigure.m4
5165
5166
5167
5168
5169# end of src/pmi/pmi2/simple/subconfigure.m4
5170
5171# start of src/pmi/bgq/subconfigure.m4
5172
5173
5174
5175
5176# end of src/pmi/bgq/subconfigure.m4
5177
5178# start of src/pmi/cray/subconfigure.m4
5179
5180
5181
5182
5183# end of src/pmi/cray/subconfigure.m4
5184
5185# start of src/pmi/simple/subconfigure.m4
5186
5187
5188
5189
5190# end of src/pmi/simple/subconfigure.m4
5191
5192# start of src/mpid/ch3/subconfigure.m4
5193
5194# expansion is: PAC_SUBCFG_PREREQ_src_mpid_ch3
5195
5196# end of src/mpid/ch3/subconfigure.m4
5197
5198# start of src/mpid/ch3/channels/nemesis/subconfigure.m4
5199# end of src/mpid/ch3/channels/nemesis/subconfigure.m4
5200
5201# start of src/mpid/common/shm/subconfigure.m4
5202
5203
5204
5205# end of src/mpid/common/shm/subconfigure.m4
5206
5207# start of src/mpid/ch3/channels/nemesis/netmod/ofi/subconfigure.m4
5208
5209
5210
5211# end of src/mpid/ch3/channels/nemesis/netmod/ofi/subconfigure.m4
5212
5213# start of src/mpid/ch3/channels/nemesis/netmod/tcp/subconfigure.m4
5214
5215
5216
5217# end of src/mpid/ch3/channels/nemesis/netmod/tcp/subconfigure.m4
5218
5219# start of src/mpid/common/thread/subconfigure.m4
5220
5221
5222
5223# end of src/mpid/common/thread/subconfigure.m4
5224
5225# start of src/mpid/common/sched/subconfigure.m4
5226
5227
5228
5229# end of src/mpid/common/sched/subconfigure.m4
5230
5231# start of src/mpid/ch3/channels/sock/subconfigure.m4
5232
5233
5234# end of src/mpid/ch3/channels/sock/subconfigure.m4
5235
5236# start of src/mpid/ch3/util/sock/subconfigure.m4
5237
5238
5239
5240
5241# end of src/mpid/ch3/util/sock/subconfigure.m4
5242
5243# start of src/mpid/ch4/netmod/ofi/subconfigure.m4
5244
5245
5246
5247# end of src/mpid/ch4/netmod/ofi/subconfigure.m4
5248
5249
5250
5251
5252
5253# end subsys includes
5254
5255# Check whether --enable-echo was given.
5256if test "${enable_echo+set}" = set; then :
5257  enableval=$enable_echo; set -x
5258fi
5259
5260
5261# Check whether --enable-error-checking was given.
5262if test "${enable_error_checking+set}" = set; then :
5263  enableval=$enable_error_checking;
5264else
5265  enable_error_checking=all
5266fi
5267
5268
5269# Check whether --enable-error-messages was given.
5270if test "${enable_error_messages+set}" = set; then :
5271  enableval=$enable_error_messages;
5272else
5273  enable_error_messages=all
5274fi
5275
5276
5277# Check whether --enable-tag-error-bits was given.
5278if test "${enable_tag_error_bits+set}" = set; then :
5279  enableval=$enable_tag_error_bits;
5280else
5281  enable_tag_error_bits=yes
5282fi
5283
5284
5285# Check whether --enable-extended-context-bits was given.
5286if test "${enable_extended_context_bits+set}" = set; then :
5287  enableval=$enable_extended_context_bits;
5288else
5289  enable_extended_context_bits=no
5290fi
5291
5292
5293# Check whether --enable-timing was given.
5294if test "${enable_timing+set}" = set; then :
5295  enableval=$enable_timing;
5296else
5297  enable_timing=default
5298fi
5299
5300
5301# Check whether --enable-g was given.
5302if test "${enable_g+set}" = set; then :
5303  enableval=$enable_g;
5304else
5305  enable_g=none
5306fi
5307
5308
5309# Check whether --enable-mpit-pvars was given.
5310if test "${enable_mpit_pvars+set}" = set; then :
5311  enableval=$enable_mpit_pvars;
5312else
5313  enable_mpit_pvars=none
5314fi
5315
5316
5317
5318# Check whether --with-aint-size was given.
5319if test "${with_aint_size+set}" = set; then :
5320  withval=$with_aint_size;
5321else
5322  with_aint_size=0
5323fi
5324
5325
5326# Check whether --enable-fast was given.
5327if test "${enable_fast+set}" = set; then :
5328  enableval=$enable_fast;
5329else
5330  enable_fast=O2
5331fi
5332
5333
5334# Check whether --enable-interlib-deps was given.
5335if test "${enable_interlib_deps+set}" = set; then :
5336  enableval=$enable_interlib_deps;
5337else
5338  enable_interlib_deps=yes
5339fi
5340
5341
5342# Check whether --enable-check-compiler-flags was given.
5343if test "${enable_check_compiler_flags+set}" = set; then :
5344  enableval=$enable_check_compiler_flags;
5345else
5346  enable_check_compiler_flags=yes
5347fi
5348
5349
5350# Check whether --enable-fortran was given.
5351if test "${enable_fortran+set}" = set; then :
5352  enableval=$enable_fortran;
5353else
5354  enable_fortran=all
5355fi
5356
5357
5358# Check whether --enable-f77 was given.
5359if test "${enable_f77+set}" = set; then :
5360  enableval=$enable_f77;
5361else
5362  enable_f77=yes
5363fi
5364
5365
5366# Check whether --enable-fc was given.
5367if test "${enable_fc+set}" = set; then :
5368  enableval=$enable_fc;
5369else
5370  enable_fc=yes
5371fi
5372
5373
5374# Check whether --enable-cxx was given.
5375if test "${enable_cxx+set}" = set; then :
5376  enableval=$enable_cxx;
5377else
5378  enable_cxx=yes
5379fi
5380
5381
5382# Check whether --enable-romio was given.
5383if test "${enable_romio+set}" = set; then :
5384  enableval=$enable_romio;
5385else
5386  enable_romio=yes
5387fi
5388
5389
5390# Check whether --enable-debuginfo was given.
5391if test "${enable_debuginfo+set}" = set; then :
5392  enableval=$enable_debuginfo;
5393else
5394  enable_debuginfo=no
5395fi
5396
5397
5398
5399## Enable creation of libtool-style versioning or no versioning
5400# Check whether --enable-versioning was given.
5401if test "${enable_versioning+set}" = set; then :
5402  enableval=$enable_versioning;
5403else
5404  enable_versioning=yes
5405fi
5406
5407
5408if test "$enable_versioning" = "yes" ; then
5409   ABIVERSIONFLAGS="-version-info \$(ABIVERSION)"
5410else
5411   ABIVERSIONFLAGS="-avoid-version"
5412fi
5413export ABIVERSIONFLAGS
5414
5415
5416
5417
5418
5419# Check whether --with-device was given.
5420if test "${with_device+set}" = set; then :
5421  withval=$with_device;
5422else
5423  with_device=ch4
5424fi
5425
5426
5427
5428# Check whether --with-pmi was given.
5429if test "${with_pmi+set}" = set; then :
5430  withval=$with_pmi;
5431else
5432  with_pmi=default
5433fi
5434
5435
5436
5437# Check whether --with-pm was given.
5438if test "${with_pm+set}" = set; then :
5439  withval=$with_pm;
5440else
5441  with_pm=default
5442fi
5443
5444
5445
5446# Check whether --with-logging was given.
5447if test "${with_logging+set}" = set; then :
5448  withval=$with_logging; if test -z "$withval" ; then with_logging=rlog ; fi
5449else
5450  with_logging=none
5451fi
5452
5453
5454# Check whether --enable-threads was given.
5455if test "${enable_threads+set}" = set; then :
5456  enableval=$enable_threads;
5457else
5458  enable_threads=default
5459fi
5460
5461
5462# Check whether --enable-thread-cs was given.
5463if test "${enable_thread_cs+set}" = set; then :
5464  enableval=$enable_thread_cs;
5465else
5466  enable_thread_cs=default
5467fi
5468
5469
5470# Check whether --enable-refcount was given.
5471if test "${enable_refcount+set}" = set; then :
5472  enableval=$enable_refcount;
5473else
5474  enable_refcount=default
5475fi
5476
5477
5478# Check whether --enable-mutex-timing was given.
5479if test "${enable_mutex_timing+set}" = set; then :
5480  enableval=$enable_mutex_timing;
5481$as_echo "#define MPIU_MUTEX_WAIT_TIME 1" >>confdefs.h
5482
5483fi
5484
5485
5486# Check whether --enable-predefined-refcount was given.
5487if test "${enable_predefined_refcount+set}" = set; then :
5488  enableval=$enable_predefined_refcount;
5489else
5490  enable_predefined_refcount=default
5491fi
5492
5493
5494# Check whether --enable-weak-symbols was given.
5495if test "${enable_weak_symbols+set}" = set; then :
5496  enableval=$enable_weak_symbols;
5497else
5498  enable_weak_symbols=yes
5499fi
5500
5501
5502# Check whether --enable-two-level-namespace was given.
5503if test "${enable_two_level_namespace+set}" = set; then :
5504  enableval=$enable_two_level_namespace;
5505else
5506  enable_two_level_namespace=no
5507fi
5508
5509
5510# Check whether --enable-multi-aliases was given.
5511if test "${enable_multi_aliases+set}" = set; then :
5512  enableval=$enable_multi_aliases;
5513else
5514  enable_multi_aliases=yes
5515fi
5516
5517
5518
5519# Check whether --with-wrapper-dl-type was given.
5520if test "${with_wrapper_dl_type+set}" = set; then :
5521  withval=$with_wrapper_dl_type;
5522else
5523  with_wrapper_dl_type=runpath
5524fi
5525
5526
5527
5528# Check whether --enable-long-double was given.
5529if test "${enable_long_double+set}" = set; then :
5530  enableval=$enable_long_double;
5531else
5532  enable_long_double=yes
5533fi
5534
5535
5536
5537# Check whether --with-cross was given.
5538if test "${with_cross+set}" = set; then :
5539  withval=$with_cross;
5540else
5541  with_cross=$MPID_DEFAULT_CROSS_FILE
5542fi
5543
5544
5545
5546# Check whether --with-namepublisher was given.
5547if test "${with_namepublisher+set}" = set; then :
5548  withval=$with_namepublisher;
5549else
5550  with_namepublisher=default
5551fi
5552
5553
5554# Check whether --with-name-publisher was given.
5555if test "${with_name_publisher+set}" = set; then :
5556  withval=$with_name_publisher; with_namepublisher=$with_name_publisher
5557fi
5558
5559
5560# Check whether --enable-nolocal was given.
5561if test "${enable_nolocal+set}" = set; then :
5562  enableval=$enable_nolocal;
5563$as_echo "#define ENABLE_NO_LOCAL 1" >>confdefs.h
5564
5565fi
5566
5567
5568# Make sure we can run config.sub.
5569$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5570  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5571
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5573$as_echo_n "checking build system type... " >&6; }
5574if ${ac_cv_build+:} false; then :
5575  $as_echo_n "(cached) " >&6
5576else
5577  ac_build_alias=$build_alias
5578test "x$ac_build_alias" = x &&
5579  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5580test "x$ac_build_alias" = x &&
5581  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5582ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5583  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5584
5585fi
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5587$as_echo "$ac_cv_build" >&6; }
5588case $ac_cv_build in
5589*-*-*) ;;
5590*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5591esac
5592build=$ac_cv_build
5593ac_save_IFS=$IFS; IFS='-'
5594set x $ac_cv_build
5595shift
5596build_cpu=$1
5597build_vendor=$2
5598shift; shift
5599# Remember, the first character of IFS is used to create $*,
5600# except with old shells:
5601build_os=$*
5602IFS=$ac_save_IFS
5603case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5604
5605
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5607$as_echo_n "checking host system type... " >&6; }
5608if ${ac_cv_host+:} false; then :
5609  $as_echo_n "(cached) " >&6
5610else
5611  if test "x$host_alias" = x; then
5612  ac_cv_host=$ac_cv_build
5613else
5614  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5615    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5616fi
5617
5618fi
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5620$as_echo "$ac_cv_host" >&6; }
5621case $ac_cv_host in
5622*-*-*) ;;
5623*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5624esac
5625host=$ac_cv_host
5626ac_save_IFS=$IFS; IFS='-'
5627set x $ac_cv_host
5628shift
5629host_cpu=$1
5630host_vendor=$2
5631shift; shift
5632# Remember, the first character of IFS is used to create $*,
5633# except with old shells:
5634host_os=$*
5635IFS=$ac_save_IFS
5636case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5637
5638
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5640$as_echo_n "checking target system type... " >&6; }
5641if ${ac_cv_target+:} false; then :
5642  $as_echo_n "(cached) " >&6
5643else
5644  if test "x$target_alias" = x; then
5645  ac_cv_target=$ac_cv_host
5646else
5647  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5648    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5649fi
5650
5651fi
5652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5653$as_echo "$ac_cv_target" >&6; }
5654case $ac_cv_target in
5655*-*-*) ;;
5656*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5657esac
5658target=$ac_cv_target
5659ac_save_IFS=$IFS; IFS='-'
5660set x $ac_cv_target
5661shift
5662target_cpu=$1
5663target_vendor=$2
5664shift; shift
5665# Remember, the first character of IFS is used to create $*,
5666# except with old shells:
5667target_os=$*
5668IFS=$ac_save_IFS
5669case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5670
5671
5672# The aliases save the names the user supplied, while $host etc.
5673# will get canonicalized.
5674test -n "$target_alias" &&
5675  test "$program_prefix$program_suffix$program_transform_name" = \
5676    NONENONEs,x,x, &&
5677  program_prefix=${target_alias}-
5678
5679# Find a C compiler.
5680# We also need to do this before the F77 and FC test to ensure that we
5681# find the C preprocessor reliably.
5682ac_ext=c
5683ac_cpp='$CPP $CPPFLAGS'
5684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686ac_compiler_gnu=$ac_cv_c_compiler_gnu
5687if test -n "$ac_tool_prefix"; then
5688  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5689set dummy ${ac_tool_prefix}gcc; ac_word=$2
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5691$as_echo_n "checking for $ac_word... " >&6; }
5692if ${ac_cv_prog_CC+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  if test -n "$CC"; then
5696  ac_cv_prog_CC="$CC" # Let the user override the test.
5697else
5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699for as_dir in $PATH
5700do
5701  IFS=$as_save_IFS
5702  test -z "$as_dir" && as_dir=.
5703    for ac_exec_ext in '' $ac_executable_extensions; do
5704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707    break 2
5708  fi
5709done
5710  done
5711IFS=$as_save_IFS
5712
5713fi
5714fi
5715CC=$ac_cv_prog_CC
5716if test -n "$CC"; then
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5718$as_echo "$CC" >&6; }
5719else
5720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5721$as_echo "no" >&6; }
5722fi
5723
5724
5725fi
5726if test -z "$ac_cv_prog_CC"; then
5727  ac_ct_CC=$CC
5728  # Extract the first word of "gcc", so it can be a program name with args.
5729set dummy gcc; ac_word=$2
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731$as_echo_n "checking for $ac_word... " >&6; }
5732if ${ac_cv_prog_ac_ct_CC+:} false; then :
5733  $as_echo_n "(cached) " >&6
5734else
5735  if test -n "$ac_ct_CC"; then
5736  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5737else
5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741  IFS=$as_save_IFS
5742  test -z "$as_dir" && as_dir=.
5743    for ac_exec_ext in '' $ac_executable_extensions; do
5744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745    ac_cv_prog_ac_ct_CC="gcc"
5746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747    break 2
5748  fi
5749done
5750  done
5751IFS=$as_save_IFS
5752
5753fi
5754fi
5755ac_ct_CC=$ac_cv_prog_ac_ct_CC
5756if test -n "$ac_ct_CC"; then
5757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5758$as_echo "$ac_ct_CC" >&6; }
5759else
5760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761$as_echo "no" >&6; }
5762fi
5763
5764  if test "x$ac_ct_CC" = x; then
5765    CC=""
5766  else
5767    case $cross_compiling:$ac_tool_warned in
5768yes:)
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5771ac_tool_warned=yes ;;
5772esac
5773    CC=$ac_ct_CC
5774  fi
5775else
5776  CC="$ac_cv_prog_CC"
5777fi
5778
5779if test -z "$CC"; then
5780          if test -n "$ac_tool_prefix"; then
5781    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5782set dummy ${ac_tool_prefix}cc; ac_word=$2
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784$as_echo_n "checking for $ac_word... " >&6; }
5785if ${ac_cv_prog_CC+:} false; then :
5786  $as_echo_n "(cached) " >&6
5787else
5788  if test -n "$CC"; then
5789  ac_cv_prog_CC="$CC" # Let the user override the test.
5790else
5791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH
5793do
5794  IFS=$as_save_IFS
5795  test -z "$as_dir" && as_dir=.
5796    for ac_exec_ext in '' $ac_executable_extensions; do
5797  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5798    ac_cv_prog_CC="${ac_tool_prefix}cc"
5799    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5800    break 2
5801  fi
5802done
5803  done
5804IFS=$as_save_IFS
5805
5806fi
5807fi
5808CC=$ac_cv_prog_CC
5809if test -n "$CC"; then
5810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5811$as_echo "$CC" >&6; }
5812else
5813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814$as_echo "no" >&6; }
5815fi
5816
5817
5818  fi
5819fi
5820if test -z "$CC"; then
5821  # Extract the first word of "cc", so it can be a program name with args.
5822set dummy cc; ac_word=$2
5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824$as_echo_n "checking for $ac_word... " >&6; }
5825if ${ac_cv_prog_CC+:} false; then :
5826  $as_echo_n "(cached) " >&6
5827else
5828  if test -n "$CC"; then
5829  ac_cv_prog_CC="$CC" # Let the user override the test.
5830else
5831  ac_prog_rejected=no
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH
5834do
5835  IFS=$as_save_IFS
5836  test -z "$as_dir" && as_dir=.
5837    for ac_exec_ext in '' $ac_executable_extensions; do
5838  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5840       ac_prog_rejected=yes
5841       continue
5842     fi
5843    ac_cv_prog_CC="cc"
5844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845    break 2
5846  fi
5847done
5848  done
5849IFS=$as_save_IFS
5850
5851if test $ac_prog_rejected = yes; then
5852  # We found a bogon in the path, so make sure we never use it.
5853  set dummy $ac_cv_prog_CC
5854  shift
5855  if test $# != 0; then
5856    # We chose a different compiler from the bogus one.
5857    # However, it has the same basename, so the bogon will be chosen
5858    # first if we set CC to just the basename; use the full file name.
5859    shift
5860    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5861  fi
5862fi
5863fi
5864fi
5865CC=$ac_cv_prog_CC
5866if test -n "$CC"; then
5867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5868$as_echo "$CC" >&6; }
5869else
5870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871$as_echo "no" >&6; }
5872fi
5873
5874
5875fi
5876if test -z "$CC"; then
5877  if test -n "$ac_tool_prefix"; then
5878  for ac_prog in cl.exe
5879  do
5880    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5881set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883$as_echo_n "checking for $ac_word... " >&6; }
5884if ${ac_cv_prog_CC+:} false; then :
5885  $as_echo_n "(cached) " >&6
5886else
5887  if test -n "$CC"; then
5888  ac_cv_prog_CC="$CC" # Let the user override the test.
5889else
5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891for as_dir in $PATH
5892do
5893  IFS=$as_save_IFS
5894  test -z "$as_dir" && as_dir=.
5895    for ac_exec_ext in '' $ac_executable_extensions; do
5896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899    break 2
5900  fi
5901done
5902  done
5903IFS=$as_save_IFS
5904
5905fi
5906fi
5907CC=$ac_cv_prog_CC
5908if test -n "$CC"; then
5909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5910$as_echo "$CC" >&6; }
5911else
5912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913$as_echo "no" >&6; }
5914fi
5915
5916
5917    test -n "$CC" && break
5918  done
5919fi
5920if test -z "$CC"; then
5921  ac_ct_CC=$CC
5922  for ac_prog in cl.exe
5923do
5924  # Extract the first word of "$ac_prog", so it can be a program name with args.
5925set dummy $ac_prog; ac_word=$2
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927$as_echo_n "checking for $ac_word... " >&6; }
5928if ${ac_cv_prog_ac_ct_CC+:} false; then :
5929  $as_echo_n "(cached) " >&6
5930else
5931  if test -n "$ac_ct_CC"; then
5932  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5933else
5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935for as_dir in $PATH
5936do
5937  IFS=$as_save_IFS
5938  test -z "$as_dir" && as_dir=.
5939    for ac_exec_ext in '' $ac_executable_extensions; do
5940  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941    ac_cv_prog_ac_ct_CC="$ac_prog"
5942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943    break 2
5944  fi
5945done
5946  done
5947IFS=$as_save_IFS
5948
5949fi
5950fi
5951ac_ct_CC=$ac_cv_prog_ac_ct_CC
5952if test -n "$ac_ct_CC"; then
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5954$as_echo "$ac_ct_CC" >&6; }
5955else
5956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957$as_echo "no" >&6; }
5958fi
5959
5960
5961  test -n "$ac_ct_CC" && break
5962done
5963
5964  if test "x$ac_ct_CC" = x; then
5965    CC=""
5966  else
5967    case $cross_compiling:$ac_tool_warned in
5968yes:)
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5971ac_tool_warned=yes ;;
5972esac
5973    CC=$ac_ct_CC
5974  fi
5975fi
5976
5977fi
5978
5979
5980test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5982as_fn_error $? "no acceptable C compiler found in \$PATH
5983See \`config.log' for more details" "$LINENO" 5; }
5984
5985# Provide some information about the compiler.
5986$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5987set X $ac_compile
5988ac_compiler=$2
5989for ac_option in --version -v -V -qversion; do
5990  { { ac_try="$ac_compiler $ac_option >&5"
5991case "(($ac_try" in
5992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993  *) ac_try_echo=$ac_try;;
5994esac
5995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5996$as_echo "$ac_try_echo"; } >&5
5997  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5998  ac_status=$?
5999  if test -s conftest.err; then
6000    sed '10a\
6001... rest of stderr output deleted ...
6002         10q' conftest.err >conftest.er1
6003    cat conftest.er1 >&5
6004  fi
6005  rm -f conftest.er1 conftest.err
6006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007  test $ac_status = 0; }
6008done
6009
6010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011/* end confdefs.h.  */
6012
6013int
6014main ()
6015{
6016
6017  ;
6018  return 0;
6019}
6020_ACEOF
6021ac_clean_files_save=$ac_clean_files
6022ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6023# Try to create an executable without -o first, disregard a.out.
6024# It will help us diagnose broken compilers, and finding out an intuition
6025# of exeext.
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
6027$as_echo_n "checking whether the C compiler works... " >&6; }
6028ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6029
6030# The possible output files:
6031ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
6032
6033ac_rmfiles=
6034for ac_file in $ac_files
6035do
6036  case $ac_file in
6037    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6038    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
6039  esac
6040done
6041rm -f $ac_rmfiles
6042
6043if { { ac_try="$ac_link_default"
6044case "(($ac_try" in
6045  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046  *) ac_try_echo=$ac_try;;
6047esac
6048eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6049$as_echo "$ac_try_echo"; } >&5
6050  (eval "$ac_link_default") 2>&5
6051  ac_status=$?
6052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6053  test $ac_status = 0; }; then :
6054  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
6055# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
6056# in a Makefile.  We should not override ac_cv_exeext if it was cached,
6057# so that the user can short-circuit this test for compilers unknown to
6058# Autoconf.
6059for ac_file in $ac_files ''
6060do
6061  test -f "$ac_file" || continue
6062  case $ac_file in
6063    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
6064	;;
6065    [ab].out )
6066	# We found the default executable, but exeext='' is most
6067	# certainly right.
6068	break;;
6069    *.* )
6070	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
6071	then :; else
6072	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6073	fi
6074	# We set ac_cv_exeext here because the later test for it is not
6075	# safe: cross compilers may not add the suffix if given an `-o'
6076	# argument, so we may need to know it at that point already.
6077	# Even if this section looks crufty: it has the advantage of
6078	# actually working.
6079	break;;
6080    * )
6081	break;;
6082  esac
6083done
6084test "$ac_cv_exeext" = no && ac_cv_exeext=
6085
6086else
6087  ac_file=''
6088fi
6089if test -z "$ac_file"; then :
6090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091$as_echo "no" >&6; }
6092$as_echo "$as_me: failed program was:" >&5
6093sed 's/^/| /' conftest.$ac_ext >&5
6094
6095{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6097as_fn_error 77 "C compiler cannot create executables
6098See \`config.log' for more details" "$LINENO" 5; }
6099else
6100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6101$as_echo "yes" >&6; }
6102fi
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
6104$as_echo_n "checking for C compiler default output file name... " >&6; }
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
6106$as_echo "$ac_file" >&6; }
6107ac_exeext=$ac_cv_exeext
6108
6109rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6110ac_clean_files=$ac_clean_files_save
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
6112$as_echo_n "checking for suffix of executables... " >&6; }
6113if { { ac_try="$ac_link"
6114case "(($ac_try" in
6115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116  *) ac_try_echo=$ac_try;;
6117esac
6118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6119$as_echo "$ac_try_echo"; } >&5
6120  (eval "$ac_link") 2>&5
6121  ac_status=$?
6122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6123  test $ac_status = 0; }; then :
6124  # If both `conftest.exe' and `conftest' are `present' (well, observable)
6125# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
6126# work properly (i.e., refer to `conftest.exe'), while it won't with
6127# `rm'.
6128for ac_file in conftest.exe conftest conftest.*; do
6129  test -f "$ac_file" || continue
6130  case $ac_file in
6131    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
6132    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6133	  break;;
6134    * ) break;;
6135  esac
6136done
6137else
6138  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6140as_fn_error $? "cannot compute suffix of executables: cannot compile and link
6141See \`config.log' for more details" "$LINENO" 5; }
6142fi
6143rm -f conftest conftest$ac_cv_exeext
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
6145$as_echo "$ac_cv_exeext" >&6; }
6146
6147rm -f conftest.$ac_ext
6148EXEEXT=$ac_cv_exeext
6149ac_exeext=$EXEEXT
6150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151/* end confdefs.h.  */
6152#include <stdio.h>
6153int
6154main ()
6155{
6156FILE *f = fopen ("conftest.out", "w");
6157 return ferror (f) || fclose (f) != 0;
6158
6159  ;
6160  return 0;
6161}
6162_ACEOF
6163ac_clean_files="$ac_clean_files conftest.out"
6164# Check that the compiler produces executables we can run.  If not, either
6165# the compiler is broken, or we cross compile.
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
6167$as_echo_n "checking whether we are cross compiling... " >&6; }
6168if test "$cross_compiling" != yes; then
6169  { { ac_try="$ac_link"
6170case "(($ac_try" in
6171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172  *) ac_try_echo=$ac_try;;
6173esac
6174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6175$as_echo "$ac_try_echo"; } >&5
6176  (eval "$ac_link") 2>&5
6177  ac_status=$?
6178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179  test $ac_status = 0; }
6180  if { ac_try='./conftest$ac_cv_exeext'
6181  { { case "(($ac_try" in
6182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183  *) ac_try_echo=$ac_try;;
6184esac
6185eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6186$as_echo "$ac_try_echo"; } >&5
6187  (eval "$ac_try") 2>&5
6188  ac_status=$?
6189  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6190  test $ac_status = 0; }; }; then
6191    cross_compiling=no
6192  else
6193    if test "$cross_compiling" = maybe; then
6194	cross_compiling=yes
6195    else
6196	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6198as_fn_error $? "cannot run C compiled programs.
6199If you meant to cross compile, use \`--host'.
6200See \`config.log' for more details" "$LINENO" 5; }
6201    fi
6202  fi
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6205$as_echo "$cross_compiling" >&6; }
6206
6207rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
6208ac_clean_files=$ac_clean_files_save
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
6210$as_echo_n "checking for suffix of object files... " >&6; }
6211if ${ac_cv_objext+:} false; then :
6212  $as_echo_n "(cached) " >&6
6213else
6214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215/* end confdefs.h.  */
6216
6217int
6218main ()
6219{
6220
6221  ;
6222  return 0;
6223}
6224_ACEOF
6225rm -f conftest.o conftest.obj
6226if { { ac_try="$ac_compile"
6227case "(($ac_try" in
6228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229  *) ac_try_echo=$ac_try;;
6230esac
6231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6232$as_echo "$ac_try_echo"; } >&5
6233  (eval "$ac_compile") 2>&5
6234  ac_status=$?
6235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6236  test $ac_status = 0; }; then :
6237  for ac_file in conftest.o conftest.obj conftest.*; do
6238  test -f "$ac_file" || continue;
6239  case $ac_file in
6240    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6241    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6242       break;;
6243  esac
6244done
6245else
6246  $as_echo "$as_me: failed program was:" >&5
6247sed 's/^/| /' conftest.$ac_ext >&5
6248
6249{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6251as_fn_error $? "cannot compute suffix of object files: cannot compile
6252See \`config.log' for more details" "$LINENO" 5; }
6253fi
6254rm -f conftest.$ac_cv_objext conftest.$ac_ext
6255fi
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
6257$as_echo "$ac_cv_objext" >&6; }
6258OBJEXT=$ac_cv_objext
6259ac_objext=$OBJEXT
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6261$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6262if ${ac_cv_c_compiler_gnu+:} false; then :
6263  $as_echo_n "(cached) " >&6
6264else
6265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266/* end confdefs.h.  */
6267
6268int
6269main ()
6270{
6271#ifndef __GNUC__
6272       choke me
6273#endif
6274
6275  ;
6276  return 0;
6277}
6278_ACEOF
6279if ac_fn_c_try_compile "$LINENO"; then :
6280  ac_compiler_gnu=yes
6281else
6282  ac_compiler_gnu=no
6283fi
6284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285ac_cv_c_compiler_gnu=$ac_compiler_gnu
6286
6287fi
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6289$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6290if test $ac_compiler_gnu = yes; then
6291  GCC=yes
6292else
6293  GCC=
6294fi
6295ac_test_CFLAGS=${CFLAGS+set}
6296ac_save_CFLAGS=$CFLAGS
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6298$as_echo_n "checking whether $CC accepts -g... " >&6; }
6299if ${ac_cv_prog_cc_g+:} false; then :
6300  $as_echo_n "(cached) " >&6
6301else
6302  ac_save_c_werror_flag=$ac_c_werror_flag
6303   ac_c_werror_flag=yes
6304   ac_cv_prog_cc_g=no
6305   CFLAGS="-g"
6306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307/* end confdefs.h.  */
6308
6309int
6310main ()
6311{
6312
6313  ;
6314  return 0;
6315}
6316_ACEOF
6317if ac_fn_c_try_compile "$LINENO"; then :
6318  ac_cv_prog_cc_g=yes
6319else
6320  CFLAGS=""
6321      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322/* end confdefs.h.  */
6323
6324int
6325main ()
6326{
6327
6328  ;
6329  return 0;
6330}
6331_ACEOF
6332if ac_fn_c_try_compile "$LINENO"; then :
6333
6334else
6335  ac_c_werror_flag=$ac_save_c_werror_flag
6336	 CFLAGS="-g"
6337	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338/* end confdefs.h.  */
6339
6340int
6341main ()
6342{
6343
6344  ;
6345  return 0;
6346}
6347_ACEOF
6348if ac_fn_c_try_compile "$LINENO"; then :
6349  ac_cv_prog_cc_g=yes
6350fi
6351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6352fi
6353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354fi
6355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356   ac_c_werror_flag=$ac_save_c_werror_flag
6357fi
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6359$as_echo "$ac_cv_prog_cc_g" >&6; }
6360if test "$ac_test_CFLAGS" = set; then
6361  CFLAGS=$ac_save_CFLAGS
6362elif test $ac_cv_prog_cc_g = yes; then
6363  if test "$GCC" = yes; then
6364    CFLAGS="-g -O2"
6365  else
6366    CFLAGS="-g"
6367  fi
6368else
6369  if test "$GCC" = yes; then
6370    CFLAGS="-O2"
6371  else
6372    CFLAGS=
6373  fi
6374fi
6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6376$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6377if ${ac_cv_prog_cc_c89+:} false; then :
6378  $as_echo_n "(cached) " >&6
6379else
6380  ac_cv_prog_cc_c89=no
6381ac_save_CC=$CC
6382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383/* end confdefs.h.  */
6384#include <stdarg.h>
6385#include <stdio.h>
6386struct stat;
6387/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6388struct buf { int x; };
6389FILE * (*rcsopen) (struct buf *, struct stat *, int);
6390static char *e (p, i)
6391     char **p;
6392     int i;
6393{
6394  return p[i];
6395}
6396static char *f (char * (*g) (char **, int), char **p, ...)
6397{
6398  char *s;
6399  va_list v;
6400  va_start (v,p);
6401  s = g (p, va_arg (v,int));
6402  va_end (v);
6403  return s;
6404}
6405
6406/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6407   function prototypes and stuff, but not '\xHH' hex character constants.
6408   These don't provoke an error unfortunately, instead are silently treated
6409   as 'x'.  The following induces an error, until -std is added to get
6410   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6411   array size at least.  It's necessary to write '\x00'==0 to get something
6412   that's true only with -std.  */
6413int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6414
6415/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6416   inside strings and character constants.  */
6417#define FOO(x) 'x'
6418int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6419
6420int test (int i, double x);
6421struct s1 {int (*f) (int a);};
6422struct s2 {int (*f) (double a);};
6423int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6424int argc;
6425char **argv;
6426int
6427main ()
6428{
6429return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6430  ;
6431  return 0;
6432}
6433_ACEOF
6434for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6435	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6436do
6437  CC="$ac_save_CC $ac_arg"
6438  if ac_fn_c_try_compile "$LINENO"; then :
6439  ac_cv_prog_cc_c89=$ac_arg
6440fi
6441rm -f core conftest.err conftest.$ac_objext
6442  test "x$ac_cv_prog_cc_c89" != "xno" && break
6443done
6444rm -f conftest.$ac_ext
6445CC=$ac_save_CC
6446
6447fi
6448# AC_CACHE_VAL
6449case "x$ac_cv_prog_cc_c89" in
6450  x)
6451    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6452$as_echo "none needed" >&6; } ;;
6453  xno)
6454    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6455$as_echo "unsupported" >&6; } ;;
6456  *)
6457    CC="$CC $ac_cv_prog_cc_c89"
6458    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6459$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6460esac
6461if test "x$ac_cv_prog_cc_c89" != xno; then :
6462
6463fi
6464
6465ac_ext=c
6466ac_cpp='$CPP $CPPFLAGS'
6467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470
6471# Expand $ac_aux_dir to an absolute path.
6472am_aux_dir=`cd "$ac_aux_dir" && pwd`
6473
6474ac_ext=c
6475ac_cpp='$CPP $CPPFLAGS'
6476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6478ac_compiler_gnu=$ac_cv_c_compiler_gnu
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6480$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6481if ${am_cv_prog_cc_c_o+:} false; then :
6482  $as_echo_n "(cached) " >&6
6483else
6484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h.  */
6486
6487int
6488main ()
6489{
6490
6491  ;
6492  return 0;
6493}
6494_ACEOF
6495  # Make sure it works both with $CC and with simple cc.
6496  # Following AC_PROG_CC_C_O, we do the test twice because some
6497  # compilers refuse to overwrite an existing .o file with -o,
6498  # though they will create one.
6499  am_cv_prog_cc_c_o=yes
6500  for am_i in 1 2; do
6501    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6502   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6503   ac_status=$?
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); } \
6506         && test -f conftest2.$ac_objext; then
6507      : OK
6508    else
6509      am_cv_prog_cc_c_o=no
6510      break
6511    fi
6512  done
6513  rm -f core conftest*
6514  unset am_i
6515fi
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6517$as_echo "$am_cv_prog_cc_c_o" >&6; }
6518if test "$am_cv_prog_cc_c_o" != yes; then
6519   # Losing compiler, so override with the script.
6520   # FIXME: It is wrong to rewrite CC.
6521   # But if we don't then we get into trouble of one sort or another.
6522   # A longer-term fix would be to have automake use am__CC in this case,
6523   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6524   CC="$am_aux_dir/compile $CC"
6525fi
6526ac_ext=c
6527ac_cpp='$CPP $CPPFLAGS'
6528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6530ac_compiler_gnu=$ac_cv_c_compiler_gnu
6531
6532
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6534$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6535if ${ac_cv_prog_cc_c99+:} false; then :
6536  $as_echo_n "(cached) " >&6
6537else
6538  ac_cv_prog_cc_c99=no
6539ac_save_CC=$CC
6540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541/* end confdefs.h.  */
6542#include <stdarg.h>
6543#include <stdbool.h>
6544#include <stdlib.h>
6545#include <wchar.h>
6546#include <stdio.h>
6547
6548// Check varargs macros.  These examples are taken from C99 6.10.3.5.
6549#define debug(...) fprintf (stderr, __VA_ARGS__)
6550#define showlist(...) puts (#__VA_ARGS__)
6551#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6552static void
6553test_varargs_macros (void)
6554{
6555  int x = 1234;
6556  int y = 5678;
6557  debug ("Flag");
6558  debug ("X = %d\n", x);
6559  showlist (The first, second, and third items.);
6560  report (x>y, "x is %d but y is %d", x, y);
6561}
6562
6563// Check long long types.
6564#define BIG64 18446744073709551615ull
6565#define BIG32 4294967295ul
6566#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6567#if !BIG_OK
6568  your preprocessor is broken;
6569#endif
6570#if BIG_OK
6571#else
6572  your preprocessor is broken;
6573#endif
6574static long long int bignum = -9223372036854775807LL;
6575static unsigned long long int ubignum = BIG64;
6576
6577struct incomplete_array
6578{
6579  int datasize;
6580  double data[];
6581};
6582
6583struct named_init {
6584  int number;
6585  const wchar_t *name;
6586  double average;
6587};
6588
6589typedef const char *ccp;
6590
6591static inline int
6592test_restrict (ccp restrict text)
6593{
6594  // See if C++-style comments work.
6595  // Iterate through items via the restricted pointer.
6596  // Also check for declarations in for loops.
6597  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6598    continue;
6599  return 0;
6600}
6601
6602// Check varargs and va_copy.
6603static void
6604test_varargs (const char *format, ...)
6605{
6606  va_list args;
6607  va_start (args, format);
6608  va_list args_copy;
6609  va_copy (args_copy, args);
6610
6611  const char *str;
6612  int number;
6613  float fnumber;
6614
6615  while (*format)
6616    {
6617      switch (*format++)
6618	{
6619	case 's': // string
6620	  str = va_arg (args_copy, const char *);
6621	  break;
6622	case 'd': // int
6623	  number = va_arg (args_copy, int);
6624	  break;
6625	case 'f': // float
6626	  fnumber = va_arg (args_copy, double);
6627	  break;
6628	default:
6629	  break;
6630	}
6631    }
6632  va_end (args_copy);
6633  va_end (args);
6634}
6635
6636int
6637main ()
6638{
6639
6640  // Check bool.
6641  _Bool success = false;
6642
6643  // Check restrict.
6644  if (test_restrict ("String literal") == 0)
6645    success = true;
6646  char *restrict newvar = "Another string";
6647
6648  // Check varargs.
6649  test_varargs ("s, d' f .", "string", 65, 34.234);
6650  test_varargs_macros ();
6651
6652  // Check flexible array members.
6653  struct incomplete_array *ia =
6654    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6655  ia->datasize = 10;
6656  for (int i = 0; i < ia->datasize; ++i)
6657    ia->data[i] = i * 1.234;
6658
6659  // Check named initializers.
6660  struct named_init ni = {
6661    .number = 34,
6662    .name = L"Test wide string",
6663    .average = 543.34343,
6664  };
6665
6666  ni.number = 58;
6667
6668  int dynamic_array[ni.number];
6669  dynamic_array[ni.number - 1] = 543;
6670
6671  // work around unused variable warnings
6672  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6673	  || dynamic_array[ni.number - 1] != 543);
6674
6675  ;
6676  return 0;
6677}
6678_ACEOF
6679for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
6680do
6681  CC="$ac_save_CC $ac_arg"
6682  if ac_fn_c_try_compile "$LINENO"; then :
6683  ac_cv_prog_cc_c99=$ac_arg
6684fi
6685rm -f core conftest.err conftest.$ac_objext
6686  test "x$ac_cv_prog_cc_c99" != "xno" && break
6687done
6688rm -f conftest.$ac_ext
6689CC=$ac_save_CC
6690
6691fi
6692# AC_CACHE_VAL
6693case "x$ac_cv_prog_cc_c99" in
6694  x)
6695    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6696$as_echo "none needed" >&6; } ;;
6697  xno)
6698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6699$as_echo "unsupported" >&6; } ;;
6700  *)
6701    CC="$CC $ac_cv_prog_cc_c99"
6702    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6703$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6704esac
6705if test "x$ac_cv_prog_cc_c99" != xno; then :
6706
6707fi
6708
6709
6710
6711	if test -z "${pac_save_CFLAGS_nesting}" ; then
6712	   pac_save_CFLAGS_nesting=0
6713	fi
6714	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
6715	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
6716
6717ac_ext=c
6718ac_cpp='$CPP $CPPFLAGS'
6719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6721ac_compiler_gnu=$ac_cv_c_compiler_gnu
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6723$as_echo_n "checking how to run the C preprocessor... " >&6; }
6724# On Suns, sometimes $CPP names a directory.
6725if test -n "$CPP" && test -d "$CPP"; then
6726  CPP=
6727fi
6728if test -z "$CPP"; then
6729  if ${ac_cv_prog_CPP+:} false; then :
6730  $as_echo_n "(cached) " >&6
6731else
6732      # Double quotes because CPP needs to be expanded
6733    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6734    do
6735      ac_preproc_ok=false
6736for ac_c_preproc_warn_flag in '' yes
6737do
6738  # Use a header file that comes with gcc, so configuring glibc
6739  # with a fresh cross-compiler works.
6740  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6741  # <limits.h> exists even on freestanding compilers.
6742  # On the NeXT, cc -E runs the code through the compiler's parser,
6743  # not just through cpp. "Syntax error" is here to catch this case.
6744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745/* end confdefs.h.  */
6746#ifdef __STDC__
6747# include <limits.h>
6748#else
6749# include <assert.h>
6750#endif
6751		     Syntax error
6752_ACEOF
6753if ac_fn_c_try_cpp "$LINENO"; then :
6754
6755else
6756  # Broken: fails on valid input.
6757continue
6758fi
6759rm -f conftest.err conftest.i conftest.$ac_ext
6760
6761  # OK, works on sane cases.  Now check whether nonexistent headers
6762  # can be detected and how.
6763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764/* end confdefs.h.  */
6765#include <ac_nonexistent.h>
6766_ACEOF
6767if ac_fn_c_try_cpp "$LINENO"; then :
6768  # Broken: success on invalid input.
6769continue
6770else
6771  # Passes both tests.
6772ac_preproc_ok=:
6773break
6774fi
6775rm -f conftest.err conftest.i conftest.$ac_ext
6776
6777done
6778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6779rm -f conftest.i conftest.err conftest.$ac_ext
6780if $ac_preproc_ok; then :
6781  break
6782fi
6783
6784    done
6785    ac_cv_prog_CPP=$CPP
6786
6787fi
6788  CPP=$ac_cv_prog_CPP
6789else
6790  ac_cv_prog_CPP=$CPP
6791fi
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6793$as_echo "$CPP" >&6; }
6794ac_preproc_ok=false
6795for ac_c_preproc_warn_flag in '' yes
6796do
6797  # Use a header file that comes with gcc, so configuring glibc
6798  # with a fresh cross-compiler works.
6799  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6800  # <limits.h> exists even on freestanding compilers.
6801  # On the NeXT, cc -E runs the code through the compiler's parser,
6802  # not just through cpp. "Syntax error" is here to catch this case.
6803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804/* end confdefs.h.  */
6805#ifdef __STDC__
6806# include <limits.h>
6807#else
6808# include <assert.h>
6809#endif
6810		     Syntax error
6811_ACEOF
6812if ac_fn_c_try_cpp "$LINENO"; then :
6813
6814else
6815  # Broken: fails on valid input.
6816continue
6817fi
6818rm -f conftest.err conftest.i conftest.$ac_ext
6819
6820  # OK, works on sane cases.  Now check whether nonexistent headers
6821  # can be detected and how.
6822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823/* end confdefs.h.  */
6824#include <ac_nonexistent.h>
6825_ACEOF
6826if ac_fn_c_try_cpp "$LINENO"; then :
6827  # Broken: success on invalid input.
6828continue
6829else
6830  # Passes both tests.
6831ac_preproc_ok=:
6832break
6833fi
6834rm -f conftest.err conftest.i conftest.$ac_ext
6835
6836done
6837# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6838rm -f conftest.i conftest.err conftest.$ac_ext
6839if $ac_preproc_ok; then :
6840
6841else
6842  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6844as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6845See \`config.log' for more details" "$LINENO" 5; }
6846fi
6847
6848ac_ext=c
6849ac_cpp='$CPP $CPPFLAGS'
6850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852ac_compiler_gnu=$ac_cv_c_compiler_gnu
6853
6854# Bug in autoconf.  Restore cross settings
6855if test "$pac_cross_compiling" = "yes" -a "$ac_cv_prog_cc_cross" = "no" ; then
6856    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Resetting cross compilation to yes" >&5
6857$as_echo "Resetting cross compilation to yes" >&6; }
6858    cross_compiling=yes
6859    ac_cv_prog_cc_cross=yes
6860    ac_cv_prog_f77_cross=yes
6861    ac_cv_prog_fc_cross=yes
6862    ac_cv_prog_cxx_cross=yes
6863fi
6864
6865	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
6866	eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
6867	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
6868
6869
6870# also needed by hwloc in embedded mode, must also come early for expansion
6871# ordering reasons
6872
6873
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6875$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6876if ${ac_cv_path_GREP+:} false; then :
6877  $as_echo_n "(cached) " >&6
6878else
6879  if test -z "$GREP"; then
6880  ac_path_GREP_found=false
6881  # Loop through the user's path and test for each of PROGNAME-LIST
6882  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6884do
6885  IFS=$as_save_IFS
6886  test -z "$as_dir" && as_dir=.
6887    for ac_prog in grep ggrep; do
6888    for ac_exec_ext in '' $ac_executable_extensions; do
6889      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6890      as_fn_executable_p "$ac_path_GREP" || continue
6891# Check for GNU ac_path_GREP and select it if it is found.
6892  # Check for GNU $ac_path_GREP
6893case `"$ac_path_GREP" --version 2>&1` in
6894*GNU*)
6895  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6896*)
6897  ac_count=0
6898  $as_echo_n 0123456789 >"conftest.in"
6899  while :
6900  do
6901    cat "conftest.in" "conftest.in" >"conftest.tmp"
6902    mv "conftest.tmp" "conftest.in"
6903    cp "conftest.in" "conftest.nl"
6904    $as_echo 'GREP' >> "conftest.nl"
6905    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6906    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6907    as_fn_arith $ac_count + 1 && ac_count=$as_val
6908    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6909      # Best one so far, save it but keep looking for a better one
6910      ac_cv_path_GREP="$ac_path_GREP"
6911      ac_path_GREP_max=$ac_count
6912    fi
6913    # 10*(2^10) chars as input seems more than enough
6914    test $ac_count -gt 10 && break
6915  done
6916  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6917esac
6918
6919      $ac_path_GREP_found && break 3
6920    done
6921  done
6922  done
6923IFS=$as_save_IFS
6924  if test -z "$ac_cv_path_GREP"; then
6925    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6926  fi
6927else
6928  ac_cv_path_GREP=$GREP
6929fi
6930
6931fi
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6933$as_echo "$ac_cv_path_GREP" >&6; }
6934 GREP="$ac_cv_path_GREP"
6935
6936
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6938$as_echo_n "checking for egrep... " >&6; }
6939if ${ac_cv_path_EGREP+:} false; then :
6940  $as_echo_n "(cached) " >&6
6941else
6942  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6943   then ac_cv_path_EGREP="$GREP -E"
6944   else
6945     if test -z "$EGREP"; then
6946  ac_path_EGREP_found=false
6947  # Loop through the user's path and test for each of PROGNAME-LIST
6948  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6950do
6951  IFS=$as_save_IFS
6952  test -z "$as_dir" && as_dir=.
6953    for ac_prog in egrep; do
6954    for ac_exec_ext in '' $ac_executable_extensions; do
6955      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6956      as_fn_executable_p "$ac_path_EGREP" || continue
6957# Check for GNU ac_path_EGREP and select it if it is found.
6958  # Check for GNU $ac_path_EGREP
6959case `"$ac_path_EGREP" --version 2>&1` in
6960*GNU*)
6961  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6962*)
6963  ac_count=0
6964  $as_echo_n 0123456789 >"conftest.in"
6965  while :
6966  do
6967    cat "conftest.in" "conftest.in" >"conftest.tmp"
6968    mv "conftest.tmp" "conftest.in"
6969    cp "conftest.in" "conftest.nl"
6970    $as_echo 'EGREP' >> "conftest.nl"
6971    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6972    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6973    as_fn_arith $ac_count + 1 && ac_count=$as_val
6974    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6975      # Best one so far, save it but keep looking for a better one
6976      ac_cv_path_EGREP="$ac_path_EGREP"
6977      ac_path_EGREP_max=$ac_count
6978    fi
6979    # 10*(2^10) chars as input seems more than enough
6980    test $ac_count -gt 10 && break
6981  done
6982  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6983esac
6984
6985      $ac_path_EGREP_found && break 3
6986    done
6987  done
6988  done
6989IFS=$as_save_IFS
6990  if test -z "$ac_cv_path_EGREP"; then
6991    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6992  fi
6993else
6994  ac_cv_path_EGREP=$EGREP
6995fi
6996
6997   fi
6998fi
6999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7000$as_echo "$ac_cv_path_EGREP" >&6; }
7001 EGREP="$ac_cv_path_EGREP"
7002
7003
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7005$as_echo_n "checking for ANSI C header files... " >&6; }
7006if ${ac_cv_header_stdc+:} false; then :
7007  $as_echo_n "(cached) " >&6
7008else
7009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010/* end confdefs.h.  */
7011#include <stdlib.h>
7012#include <stdarg.h>
7013#include <string.h>
7014#include <float.h>
7015
7016int
7017main ()
7018{
7019
7020  ;
7021  return 0;
7022}
7023_ACEOF
7024if ac_fn_c_try_compile "$LINENO"; then :
7025  ac_cv_header_stdc=yes
7026else
7027  ac_cv_header_stdc=no
7028fi
7029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030
7031if test $ac_cv_header_stdc = yes; then
7032  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034/* end confdefs.h.  */
7035#include <string.h>
7036
7037_ACEOF
7038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7039  $EGREP "memchr" >/dev/null 2>&1; then :
7040
7041else
7042  ac_cv_header_stdc=no
7043fi
7044rm -f conftest*
7045
7046fi
7047
7048if test $ac_cv_header_stdc = yes; then
7049  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h.  */
7052#include <stdlib.h>
7053
7054_ACEOF
7055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7056  $EGREP "free" >/dev/null 2>&1; then :
7057
7058else
7059  ac_cv_header_stdc=no
7060fi
7061rm -f conftest*
7062
7063fi
7064
7065if test $ac_cv_header_stdc = yes; then
7066  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7067  if test "$cross_compiling" = yes; then :
7068  :
7069else
7070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071/* end confdefs.h.  */
7072#include <ctype.h>
7073#include <stdlib.h>
7074#if ((' ' & 0x0FF) == 0x020)
7075# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7076# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7077#else
7078# define ISLOWER(c) \
7079		   (('a' <= (c) && (c) <= 'i') \
7080		     || ('j' <= (c) && (c) <= 'r') \
7081		     || ('s' <= (c) && (c) <= 'z'))
7082# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7083#endif
7084
7085#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7086int
7087main ()
7088{
7089  int i;
7090  for (i = 0; i < 256; i++)
7091    if (XOR (islower (i), ISLOWER (i))
7092	|| toupper (i) != TOUPPER (i))
7093      return 2;
7094  return 0;
7095}
7096_ACEOF
7097if ac_fn_c_try_run "$LINENO"; then :
7098
7099else
7100  ac_cv_header_stdc=no
7101fi
7102rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7103  conftest.$ac_objext conftest.beam conftest.$ac_ext
7104fi
7105
7106fi
7107fi
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7109$as_echo "$ac_cv_header_stdc" >&6; }
7110if test $ac_cv_header_stdc = yes; then
7111
7112$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7113
7114fi
7115
7116# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7117for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7118		  inttypes.h stdint.h unistd.h
7119do :
7120  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7121ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7122"
7123if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7124  cat >>confdefs.h <<_ACEOF
7125#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7126_ACEOF
7127
7128fi
7129
7130done
7131
7132
7133
7134  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
7135if test "x$ac_cv_header_minix_config_h" = xyes; then :
7136  MINIX=yes
7137else
7138  MINIX=
7139fi
7140
7141
7142  if test "$MINIX" = yes; then
7143
7144$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
7145
7146
7147$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
7148
7149
7150$as_echo "#define _MINIX 1" >>confdefs.h
7151
7152  fi
7153
7154
7155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
7156$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
7157if ${ac_cv_safe_to_define___extensions__+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161/* end confdefs.h.  */
7162
7163#         define __EXTENSIONS__ 1
7164          $ac_includes_default
7165int
7166main ()
7167{
7168
7169  ;
7170  return 0;
7171}
7172_ACEOF
7173if ac_fn_c_try_compile "$LINENO"; then :
7174  ac_cv_safe_to_define___extensions__=yes
7175else
7176  ac_cv_safe_to_define___extensions__=no
7177fi
7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179fi
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7181$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7182  test $ac_cv_safe_to_define___extensions__ = yes &&
7183    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7184
7185  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7186
7187  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7188
7189  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7190
7191  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7192
7193
7194
7195am__api_version='1.15'
7196
7197# Find a good install program.  We prefer a C program (faster),
7198# so one script is as good as another.  But avoid the broken or
7199# incompatible versions:
7200# SysV /etc/install, /usr/sbin/install
7201# SunOS /usr/etc/install
7202# IRIX /sbin/install
7203# AIX /bin/install
7204# AmigaOS /C/install, which installs bootblocks on floppy discs
7205# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7206# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7207# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7208# OS/2's system install, which has a completely different semantic
7209# ./install, which can be erroneously created by make from ./install.sh.
7210# Reject install programs that cannot install multiple files.
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7212$as_echo_n "checking for a BSD-compatible install... " >&6; }
7213if test -z "$INSTALL"; then
7214if ${ac_cv_path_install+:} false; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220  IFS=$as_save_IFS
7221  test -z "$as_dir" && as_dir=.
7222    # Account for people who put trailing slashes in PATH elements.
7223case $as_dir/ in #((
7224  ./ | .// | /[cC]/* | \
7225  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7226  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7227  /usr/ucb/* ) ;;
7228  *)
7229    # OSF1 and SCO ODT 3.0 have their own names for install.
7230    # Don't use installbsd from OSF since it installs stuff as root
7231    # by default.
7232    for ac_prog in ginstall scoinst install; do
7233      for ac_exec_ext in '' $ac_executable_extensions; do
7234	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7235	  if test $ac_prog = install &&
7236	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7237	    # AIX install.  It has an incompatible calling convention.
7238	    :
7239	  elif test $ac_prog = install &&
7240	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7241	    # program-specific install script used by HP pwplus--don't use.
7242	    :
7243	  else
7244	    rm -rf conftest.one conftest.two conftest.dir
7245	    echo one > conftest.one
7246	    echo two > conftest.two
7247	    mkdir conftest.dir
7248	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7249	      test -s conftest.one && test -s conftest.two &&
7250	      test -s conftest.dir/conftest.one &&
7251	      test -s conftest.dir/conftest.two
7252	    then
7253	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7254	      break 3
7255	    fi
7256	  fi
7257	fi
7258      done
7259    done
7260    ;;
7261esac
7262
7263  done
7264IFS=$as_save_IFS
7265
7266rm -rf conftest.one conftest.two conftest.dir
7267
7268fi
7269  if test "${ac_cv_path_install+set}" = set; then
7270    INSTALL=$ac_cv_path_install
7271  else
7272    # As a last resort, use the slow shell script.  Don't cache a
7273    # value for INSTALL within a source directory, because that will
7274    # break other packages using the cache if that directory is
7275    # removed, or if the value is a relative name.
7276    INSTALL=$ac_install_sh
7277  fi
7278fi
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7280$as_echo "$INSTALL" >&6; }
7281
7282# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7283# It thinks the first close brace ends the variable substitution.
7284test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7285
7286test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7287
7288test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7289
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7291$as_echo_n "checking whether build environment is sane... " >&6; }
7292# Reject unsafe characters in $srcdir or the absolute working directory
7293# name.  Accept space and tab only in the latter.
7294am_lf='
7295'
7296case `pwd` in
7297  *[\\\"\#\$\&\'\`$am_lf]*)
7298    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
7299esac
7300case $srcdir in
7301  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
7302    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
7303esac
7304
7305# Do 'set' in a subshell so we don't clobber the current shell's
7306# arguments.  Must try -L first in case configure is actually a
7307# symlink; some systems play weird games with the mod time of symlinks
7308# (eg FreeBSD returns the mod time of the symlink's containing
7309# directory).
7310if (
7311   am_has_slept=no
7312   for am_try in 1 2; do
7313     echo "timestamp, slept: $am_has_slept" > conftest.file
7314     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7315     if test "$*" = "X"; then
7316	# -L didn't work.
7317	set X `ls -t "$srcdir/configure" conftest.file`
7318     fi
7319     if test "$*" != "X $srcdir/configure conftest.file" \
7320	&& test "$*" != "X conftest.file $srcdir/configure"; then
7321
7322	# If neither matched, then we have a broken ls.  This can happen
7323	# if, for instance, CONFIG_SHELL is bash and it inherits a
7324	# broken ls alias from the environment.  This has actually
7325	# happened.  Such a system could not be considered "sane".
7326	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
7327  alias in your environment" "$LINENO" 5
7328     fi
7329     if test "$2" = conftest.file || test $am_try -eq 2; then
7330       break
7331     fi
7332     # Just in case.
7333     sleep 1
7334     am_has_slept=yes
7335   done
7336   test "$2" = conftest.file
7337   )
7338then
7339   # Ok.
7340   :
7341else
7342   as_fn_error $? "newly created file is older than distributed files!
7343Check your system clock" "$LINENO" 5
7344fi
7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7346$as_echo "yes" >&6; }
7347# If we didn't sleep, we still need to ensure time stamps of config.status and
7348# generated files are strictly newer.
7349am_sleep_pid=
7350if grep 'slept: no' conftest.file >/dev/null 2>&1; then
7351  ( sleep 1 ) &
7352  am_sleep_pid=$!
7353fi
7354
7355rm -f conftest.file
7356
7357test "$program_prefix" != NONE &&
7358  program_transform_name="s&^&$program_prefix&;$program_transform_name"
7359# Use a double $ so make ignores it.
7360test "$program_suffix" != NONE &&
7361  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7362# Double any \ or $.
7363# By default was `s,x,x', remove it if useless.
7364ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7365program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7366
7367if test x"${MISSING+set}" != xset; then
7368  case $am_aux_dir in
7369  *\ * | *\	*)
7370    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7371  *)
7372    MISSING="\${SHELL} $am_aux_dir/missing" ;;
7373  esac
7374fi
7375# Use eval to expand $SHELL
7376if eval "$MISSING --is-lightweight"; then
7377  am_missing_run="$MISSING "
7378else
7379  am_missing_run=
7380  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
7381$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
7382fi
7383
7384if test x"${install_sh+set}" != xset; then
7385  case $am_aux_dir in
7386  *\ * | *\	*)
7387    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7388  *)
7389    install_sh="\${SHELL} $am_aux_dir/install-sh"
7390  esac
7391fi
7392
7393# Installed binaries are usually stripped using 'strip' when the user
7394# run "make install-strip".  However 'strip' might not be the right
7395# tool to use in cross-compilation environments, therefore Automake
7396# will honor the 'STRIP' environment variable to overrule this program.
7397if test "$cross_compiling" != no; then
7398  if test -n "$ac_tool_prefix"; then
7399  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7400set dummy ${ac_tool_prefix}strip; ac_word=$2
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402$as_echo_n "checking for $ac_word... " >&6; }
7403if ${ac_cv_prog_STRIP+:} false; then :
7404  $as_echo_n "(cached) " >&6
7405else
7406  if test -n "$STRIP"; then
7407  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7408else
7409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410for as_dir in $PATH
7411do
7412  IFS=$as_save_IFS
7413  test -z "$as_dir" && as_dir=.
7414    for ac_exec_ext in '' $ac_executable_extensions; do
7415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418    break 2
7419  fi
7420done
7421  done
7422IFS=$as_save_IFS
7423
7424fi
7425fi
7426STRIP=$ac_cv_prog_STRIP
7427if test -n "$STRIP"; then
7428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7429$as_echo "$STRIP" >&6; }
7430else
7431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432$as_echo "no" >&6; }
7433fi
7434
7435
7436fi
7437if test -z "$ac_cv_prog_STRIP"; then
7438  ac_ct_STRIP=$STRIP
7439  # Extract the first word of "strip", so it can be a program name with args.
7440set dummy strip; ac_word=$2
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442$as_echo_n "checking for $ac_word... " >&6; }
7443if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7444  $as_echo_n "(cached) " >&6
7445else
7446  if test -n "$ac_ct_STRIP"; then
7447  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7448else
7449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452  IFS=$as_save_IFS
7453  test -z "$as_dir" && as_dir=.
7454    for ac_exec_ext in '' $ac_executable_extensions; do
7455  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456    ac_cv_prog_ac_ct_STRIP="strip"
7457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458    break 2
7459  fi
7460done
7461  done
7462IFS=$as_save_IFS
7463
7464fi
7465fi
7466ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7467if test -n "$ac_ct_STRIP"; then
7468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7469$as_echo "$ac_ct_STRIP" >&6; }
7470else
7471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472$as_echo "no" >&6; }
7473fi
7474
7475  if test "x$ac_ct_STRIP" = x; then
7476    STRIP=":"
7477  else
7478    case $cross_compiling:$ac_tool_warned in
7479yes:)
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7482ac_tool_warned=yes ;;
7483esac
7484    STRIP=$ac_ct_STRIP
7485  fi
7486else
7487  STRIP="$ac_cv_prog_STRIP"
7488fi
7489
7490fi
7491INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7492
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7494$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7495if test -z "$MKDIR_P"; then
7496  if ${ac_cv_path_mkdir+:} false; then :
7497  $as_echo_n "(cached) " >&6
7498else
7499  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7501do
7502  IFS=$as_save_IFS
7503  test -z "$as_dir" && as_dir=.
7504    for ac_prog in mkdir gmkdir; do
7505	 for ac_exec_ext in '' $ac_executable_extensions; do
7506	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
7507	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7508	     'mkdir (GNU coreutils) '* | \
7509	     'mkdir (coreutils) '* | \
7510	     'mkdir (fileutils) '4.1*)
7511	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7512	       break 3;;
7513	   esac
7514	 done
7515       done
7516  done
7517IFS=$as_save_IFS
7518
7519fi
7520
7521  test -d ./--version && rmdir ./--version
7522  if test "${ac_cv_path_mkdir+set}" = set; then
7523    MKDIR_P="$ac_cv_path_mkdir -p"
7524  else
7525    # As a last resort, use the slow shell script.  Don't cache a
7526    # value for MKDIR_P within a source directory, because that will
7527    # break other packages using the cache if that directory is
7528    # removed, or if the value is a relative name.
7529    MKDIR_P="$ac_install_sh -d"
7530  fi
7531fi
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7533$as_echo "$MKDIR_P" >&6; }
7534
7535for ac_prog in gawk mawk nawk awk
7536do
7537  # Extract the first word of "$ac_prog", so it can be a program name with args.
7538set dummy $ac_prog; ac_word=$2
7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540$as_echo_n "checking for $ac_word... " >&6; }
7541if ${ac_cv_prog_AWK+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  if test -n "$AWK"; then
7545  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7546else
7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548for as_dir in $PATH
7549do
7550  IFS=$as_save_IFS
7551  test -z "$as_dir" && as_dir=.
7552    for ac_exec_ext in '' $ac_executable_extensions; do
7553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554    ac_cv_prog_AWK="$ac_prog"
7555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556    break 2
7557  fi
7558done
7559  done
7560IFS=$as_save_IFS
7561
7562fi
7563fi
7564AWK=$ac_cv_prog_AWK
7565if test -n "$AWK"; then
7566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7567$as_echo "$AWK" >&6; }
7568else
7569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570$as_echo "no" >&6; }
7571fi
7572
7573
7574  test -n "$AWK" && break
7575done
7576
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7578$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7579set x ${MAKE-make}
7580ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7581if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7582  $as_echo_n "(cached) " >&6
7583else
7584  cat >conftest.make <<\_ACEOF
7585SHELL = /bin/sh
7586all:
7587	@echo '@@@%%%=$(MAKE)=@@@%%%'
7588_ACEOF
7589# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7590case `${MAKE-make} -f conftest.make 2>/dev/null` in
7591  *@@@%%%=?*=@@@%%%*)
7592    eval ac_cv_prog_make_${ac_make}_set=yes;;
7593  *)
7594    eval ac_cv_prog_make_${ac_make}_set=no;;
7595esac
7596rm -f conftest.make
7597fi
7598if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7600$as_echo "yes" >&6; }
7601  SET_MAKE=
7602else
7603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604$as_echo "no" >&6; }
7605  SET_MAKE="MAKE=${MAKE-make}"
7606fi
7607
7608rm -rf .tst 2>/dev/null
7609mkdir .tst 2>/dev/null
7610if test -d .tst; then
7611  am__leading_dot=.
7612else
7613  am__leading_dot=_
7614fi
7615rmdir .tst 2>/dev/null
7616
7617DEPDIR="${am__leading_dot}deps"
7618
7619ac_config_commands="$ac_config_commands depfiles"
7620
7621
7622am_make=${MAKE-make}
7623cat > confinc << 'END'
7624am__doit:
7625	@echo this is the am__doit target
7626.PHONY: am__doit
7627END
7628# If we don't find an include directive, just comment out the code.
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7630$as_echo_n "checking for style of include used by $am_make... " >&6; }
7631am__include="#"
7632am__quote=
7633_am_result=none
7634# First try GNU make style include.
7635echo "include confinc" > confmf
7636# Ignore all kinds of additional output from 'make'.
7637case `$am_make -s -f confmf 2> /dev/null` in #(
7638*the\ am__doit\ target*)
7639  am__include=include
7640  am__quote=
7641  _am_result=GNU
7642  ;;
7643esac
7644# Now try BSD make style include.
7645if test "$am__include" = "#"; then
7646   echo '.include "confinc"' > confmf
7647   case `$am_make -s -f confmf 2> /dev/null` in #(
7648   *the\ am__doit\ target*)
7649     am__include=.include
7650     am__quote="\""
7651     _am_result=BSD
7652     ;;
7653   esac
7654fi
7655
7656
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7658$as_echo "$_am_result" >&6; }
7659rm -f confinc confmf
7660
7661# Check whether --enable-dependency-tracking was given.
7662if test "${enable_dependency_tracking+set}" = set; then :
7663  enableval=$enable_dependency_tracking;
7664fi
7665
7666if test "x$enable_dependency_tracking" != xno; then
7667  am_depcomp="$ac_aux_dir/depcomp"
7668  AMDEPBACKSLASH='\'
7669  am__nodep='_no'
7670fi
7671 if test "x$enable_dependency_tracking" != xno; then
7672  AMDEP_TRUE=
7673  AMDEP_FALSE='#'
7674else
7675  AMDEP_TRUE='#'
7676  AMDEP_FALSE=
7677fi
7678
7679
7680# Check whether --enable-silent-rules was given.
7681if test "${enable_silent_rules+set}" = set; then :
7682  enableval=$enable_silent_rules;
7683fi
7684
7685case $enable_silent_rules in # (((
7686  yes) AM_DEFAULT_VERBOSITY=0;;
7687   no) AM_DEFAULT_VERBOSITY=1;;
7688    *) AM_DEFAULT_VERBOSITY=1;;
7689esac
7690am_make=${MAKE-make}
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
7692$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
7693if ${am_cv_make_support_nested_variables+:} false; then :
7694  $as_echo_n "(cached) " >&6
7695else
7696  if $as_echo 'TRUE=$(BAR$(V))
7697BAR0=false
7698BAR1=true
7699V=1
7700am__doit:
7701	@$(TRUE)
7702.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
7703  am_cv_make_support_nested_variables=yes
7704else
7705  am_cv_make_support_nested_variables=no
7706fi
7707fi
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
7709$as_echo "$am_cv_make_support_nested_variables" >&6; }
7710if test $am_cv_make_support_nested_variables = yes; then
7711    AM_V='$(V)'
7712  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
7713else
7714  AM_V=$AM_DEFAULT_VERBOSITY
7715  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
7716fi
7717AM_BACKSLASH='\'
7718
7719if test "`cd $srcdir && pwd`" != "`pwd`"; then
7720  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7721  # is not polluted with repeated "-I."
7722  am__isrc=' -I$(srcdir)'
7723  # test to see if srcdir already configured
7724  if test -f $srcdir/config.status; then
7725    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7726  fi
7727fi
7728
7729# test whether we have cygpath
7730if test -z "$CYGPATH_W"; then
7731  if (cygpath --version) >/dev/null 2>/dev/null; then
7732    CYGPATH_W='cygpath -w'
7733  else
7734    CYGPATH_W=echo
7735  fi
7736fi
7737
7738
7739# Define the identity of the package.
7740 PACKAGE='mpich'
7741 VERSION='3.4.3'
7742
7743
7744cat >>confdefs.h <<_ACEOF
7745#define PACKAGE "$PACKAGE"
7746_ACEOF
7747
7748
7749cat >>confdefs.h <<_ACEOF
7750#define VERSION "$VERSION"
7751_ACEOF
7752
7753# Some tools Automake needs.
7754
7755ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7756
7757
7758AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7759
7760
7761AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7762
7763
7764AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7765
7766
7767MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7768
7769# For better backward compatibility.  To be removed once Automake 1.9.x
7770# dies out for good.  For more background, see:
7771# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
7772# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
7773mkdir_p='$(MKDIR_P)'
7774
7775# We need awk for the "check" target (and possibly the TAP driver).  The
7776# system "awk" is bad on some platforms.
7777# Always define AMTAR for backward compatibility.  Yes, it's still used
7778# in the wild :-(  We should find a proper way to deprecate it ...
7779AMTAR='$${TAR-tar}'
7780
7781
7782# We'll loop over all known methods to create a tar archive until one works.
7783_am_tools='gnutar  pax cpio none'
7784
7785am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
7786
7787
7788
7789
7790
7791depcc="$CC"   am_compiler_list=
7792
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7794$as_echo_n "checking dependency style of $depcc... " >&6; }
7795if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7796  $as_echo_n "(cached) " >&6
7797else
7798  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7799  # We make a subdir and do the tests there.  Otherwise we can end up
7800  # making bogus files that we don't know about and never remove.  For
7801  # instance it was reported that on HP-UX the gcc test will end up
7802  # making a dummy file named 'D' -- because '-MD' means "put the output
7803  # in D".
7804  rm -rf conftest.dir
7805  mkdir conftest.dir
7806  # Copy depcomp to subdir because otherwise we won't find it if we're
7807  # using a relative directory.
7808  cp "$am_depcomp" conftest.dir
7809  cd conftest.dir
7810  # We will build objects and dependencies in a subdirectory because
7811  # it helps to detect inapplicable dependency modes.  For instance
7812  # both Tru64's cc and ICC support -MD to output dependencies as a
7813  # side effect of compilation, but ICC will put the dependencies in
7814  # the current directory while Tru64 will put them in the object
7815  # directory.
7816  mkdir sub
7817
7818  am_cv_CC_dependencies_compiler_type=none
7819  if test "$am_compiler_list" = ""; then
7820     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7821  fi
7822  am__universal=false
7823  case " $depcc " in #(
7824     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7825     esac
7826
7827  for depmode in $am_compiler_list; do
7828    # Setup a source with many dependencies, because some compilers
7829    # like to wrap large dependency lists on column 80 (with \), and
7830    # we should not choose a depcomp mode which is confused by this.
7831    #
7832    # We need to recreate these files for each test, as the compiler may
7833    # overwrite some of them when testing with obscure command lines.
7834    # This happens at least with the AIX C compiler.
7835    : > sub/conftest.c
7836    for i in 1 2 3 4 5 6; do
7837      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7838      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7839      # Solaris 10 /bin/sh.
7840      echo '/* dummy */' > sub/conftst$i.h
7841    done
7842    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7843
7844    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7845    # mode.  It turns out that the SunPro C++ compiler does not properly
7846    # handle '-M -o', and we need to detect this.  Also, some Intel
7847    # versions had trouble with output in subdirs.
7848    am__obj=sub/conftest.${OBJEXT-o}
7849    am__minus_obj="-o $am__obj"
7850    case $depmode in
7851    gcc)
7852      # This depmode causes a compiler race in universal mode.
7853      test "$am__universal" = false || continue
7854      ;;
7855    nosideeffect)
7856      # After this tag, mechanisms are not by side-effect, so they'll
7857      # only be used when explicitly requested.
7858      if test "x$enable_dependency_tracking" = xyes; then
7859	continue
7860      else
7861	break
7862      fi
7863      ;;
7864    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7865      # This compiler won't grok '-c -o', but also, the minuso test has
7866      # not run yet.  These depmodes are late enough in the game, and
7867      # so weak that their functioning should not be impacted.
7868      am__obj=conftest.${OBJEXT-o}
7869      am__minus_obj=
7870      ;;
7871    none) break ;;
7872    esac
7873    if depmode=$depmode \
7874       source=sub/conftest.c object=$am__obj \
7875       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7876       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7877         >/dev/null 2>conftest.err &&
7878       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7879       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7880       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7881       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7882      # icc doesn't choke on unknown options, it will just issue warnings
7883      # or remarks (even with -Werror).  So we grep stderr for any message
7884      # that says an option was ignored or not supported.
7885      # When given -MP, icc 7.0 and 7.1 complain thusly:
7886      #   icc: Command line warning: ignoring option '-M'; no argument required
7887      # The diagnosis changed in icc 8.0:
7888      #   icc: Command line remark: option '-MP' not supported
7889      if (grep 'ignoring option' conftest.err ||
7890          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7891        am_cv_CC_dependencies_compiler_type=$depmode
7892        break
7893      fi
7894    fi
7895  done
7896
7897  cd ..
7898  rm -rf conftest.dir
7899else
7900  am_cv_CC_dependencies_compiler_type=none
7901fi
7902
7903fi
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7905$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7906CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7907
7908 if
7909  test "x$enable_dependency_tracking" != xno \
7910  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7911  am__fastdepCC_TRUE=
7912  am__fastdepCC_FALSE='#'
7913else
7914  am__fastdepCC_TRUE='#'
7915  am__fastdepCC_FALSE=
7916fi
7917
7918
7919
7920# POSIX will say in a future version that running "rm -f" with no argument
7921# is OK; and we want to be able to make that assumption in our Makefile
7922# recipes.  So use an aggressive probe to check that the usage we want is
7923# actually supported "in the wild" to an acceptable degree.
7924# See automake bug#10828.
7925# To make any issue more visible, cause the running configure to be aborted
7926# by default if the 'rm' program in use doesn't match our expectations; the
7927# user can still override this though.
7928if rm -f && rm -fr && rm -rf; then : OK; else
7929  cat >&2 <<'END'
7930Oops!
7931
7932Your 'rm' program seems unable to run without file operands specified
7933on the command line, even when the '-f' option is present.  This is contrary
7934to the behaviour of most rm programs out there, and not conforming with
7935the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
7936
7937Please tell bug-automake@gnu.org about your system, including the value
7938of your $PATH and any error possibly output before this message.  This
7939can help us improve future automake versions.
7940
7941END
7942  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
7943    echo 'Configuration will proceed anyway, since you have set the' >&2
7944    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
7945    echo >&2
7946  else
7947    cat >&2 <<'END'
7948Aborting the configuration process, to ensure you take notice of the issue.
7949
7950You can download and install GNU coreutils to get an 'rm' implementation
7951that behaves properly: <http://www.gnu.org/software/coreutils/>.
7952
7953If you want to complete the configuration process using your problematic
7954'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
7955to "yes", and re-run configure.
7956
7957END
7958    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
7959  fi
7960fi
7961
7962
7963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
7964$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7965    # Check whether --enable-maintainer-mode was given.
7966if test "${enable_maintainer_mode+set}" = set; then :
7967  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
7968else
7969  USE_MAINTAINER_MODE=yes
7970fi
7971
7972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
7973$as_echo "$USE_MAINTAINER_MODE" >&6; }
7974   if test $USE_MAINTAINER_MODE = yes; then
7975  MAINTAINER_MODE_TRUE=
7976  MAINTAINER_MODE_FALSE='#'
7977else
7978  MAINTAINER_MODE_TRUE='#'
7979  MAINTAINER_MODE_FALSE=
7980fi
7981
7982  MAINT=$MAINTAINER_MODE_TRUE
7983
7984
7985
7986if test -n "$ac_tool_prefix"; then
7987  for ac_prog in ar lib "link -lib"
7988  do
7989    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7990set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992$as_echo_n "checking for $ac_word... " >&6; }
7993if ${ac_cv_prog_AR+:} false; then :
7994  $as_echo_n "(cached) " >&6
7995else
7996  if test -n "$AR"; then
7997  ac_cv_prog_AR="$AR" # Let the user override the test.
7998else
7999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000for as_dir in $PATH
8001do
8002  IFS=$as_save_IFS
8003  test -z "$as_dir" && as_dir=.
8004    for ac_exec_ext in '' $ac_executable_extensions; do
8005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008    break 2
8009  fi
8010done
8011  done
8012IFS=$as_save_IFS
8013
8014fi
8015fi
8016AR=$ac_cv_prog_AR
8017if test -n "$AR"; then
8018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8019$as_echo "$AR" >&6; }
8020else
8021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022$as_echo "no" >&6; }
8023fi
8024
8025
8026    test -n "$AR" && break
8027  done
8028fi
8029if test -z "$AR"; then
8030  ac_ct_AR=$AR
8031  for ac_prog in ar lib "link -lib"
8032do
8033  # Extract the first word of "$ac_prog", so it can be a program name with args.
8034set dummy $ac_prog; ac_word=$2
8035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036$as_echo_n "checking for $ac_word... " >&6; }
8037if ${ac_cv_prog_ac_ct_AR+:} false; then :
8038  $as_echo_n "(cached) " >&6
8039else
8040  if test -n "$ac_ct_AR"; then
8041  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8042else
8043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044for as_dir in $PATH
8045do
8046  IFS=$as_save_IFS
8047  test -z "$as_dir" && as_dir=.
8048    for ac_exec_ext in '' $ac_executable_extensions; do
8049  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050    ac_cv_prog_ac_ct_AR="$ac_prog"
8051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052    break 2
8053  fi
8054done
8055  done
8056IFS=$as_save_IFS
8057
8058fi
8059fi
8060ac_ct_AR=$ac_cv_prog_ac_ct_AR
8061if test -n "$ac_ct_AR"; then
8062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8063$as_echo "$ac_ct_AR" >&6; }
8064else
8065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066$as_echo "no" >&6; }
8067fi
8068
8069
8070  test -n "$ac_ct_AR" && break
8071done
8072
8073  if test "x$ac_ct_AR" = x; then
8074    AR="false"
8075  else
8076    case $cross_compiling:$ac_tool_warned in
8077yes:)
8078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8080ac_tool_warned=yes ;;
8081esac
8082    AR=$ac_ct_AR
8083  fi
8084fi
8085
8086: ${AR=ar}
8087
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8089$as_echo_n "checking the archiver ($AR) interface... " >&6; }
8090if ${am_cv_ar_interface+:} false; then :
8091  $as_echo_n "(cached) " >&6
8092else
8093  ac_ext=c
8094ac_cpp='$CPP $CPPFLAGS'
8095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8097ac_compiler_gnu=$ac_cv_c_compiler_gnu
8098
8099   am_cv_ar_interface=ar
8100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101/* end confdefs.h.  */
8102int some_variable = 0;
8103_ACEOF
8104if ac_fn_c_try_compile "$LINENO"; then :
8105  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8106      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8107  (eval $am_ar_try) 2>&5
8108  ac_status=$?
8109  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8110  test $ac_status = 0; }
8111      if test "$ac_status" -eq 0; then
8112        am_cv_ar_interface=ar
8113      else
8114        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8115        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8116  (eval $am_ar_try) 2>&5
8117  ac_status=$?
8118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8119  test $ac_status = 0; }
8120        if test "$ac_status" -eq 0; then
8121          am_cv_ar_interface=lib
8122        else
8123          am_cv_ar_interface=unknown
8124        fi
8125      fi
8126      rm -f conftest.lib libconftest.a
8127
8128fi
8129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130   ac_ext=c
8131ac_cpp='$CPP $CPPFLAGS'
8132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8134ac_compiler_gnu=$ac_cv_c_compiler_gnu
8135
8136fi
8137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8138$as_echo "$am_cv_ar_interface" >&6; }
8139
8140case $am_cv_ar_interface in
8141ar)
8142  ;;
8143lib)
8144  # Microsoft lib, so override with the ar-lib wrapper script.
8145  # FIXME: It is wrong to rewrite AR.
8146  # But if we don't then we get into trouble of one sort or another.
8147  # A longer-term fix would be to have automake use am__AR in this case,
8148  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8149  # similar.
8150  AR="$am_aux_dir/ar-lib $AR"
8151  ;;
8152unknown)
8153  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8154  ;;
8155esac
8156
8157
8158case `pwd` in
8159  *\ * | *\	*)
8160    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8161$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8162esac
8163
8164
8165
8166macro_version='2.4.6'
8167macro_revision='2.4.6'
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181ltmain=$ac_aux_dir/ltmain.sh
8182
8183# Backslashify metacharacters that are still active within
8184# double-quoted strings.
8185sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8186
8187# Same as above, but do not quote variable references.
8188double_quote_subst='s/\(["`\\]\)/\\\1/g'
8189
8190# Sed substitution to delay expansion of an escaped shell variable in a
8191# double_quote_subst'ed string.
8192delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8193
8194# Sed substitution to delay expansion of an escaped single quote.
8195delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8196
8197# Sed substitution to avoid accidental globbing in evaled expressions
8198no_glob_subst='s/\*/\\\*/g'
8199
8200ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8201ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8202ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8203
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8205$as_echo_n "checking how to print strings... " >&6; }
8206# Test print first, because it will be a builtin if present.
8207if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8208   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8209  ECHO='print -r --'
8210elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8211  ECHO='printf %s\n'
8212else
8213  # Use this function as a fallback that always works.
8214  func_fallback_echo ()
8215  {
8216    eval 'cat <<_LTECHO_EOF
8217$1
8218_LTECHO_EOF'
8219  }
8220  ECHO='func_fallback_echo'
8221fi
8222
8223# func_echo_all arg...
8224# Invoke $ECHO with all args, space-separated.
8225func_echo_all ()
8226{
8227    $ECHO ""
8228}
8229
8230case $ECHO in
8231  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8232$as_echo "printf" >&6; } ;;
8233  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8234$as_echo "print -r" >&6; } ;;
8235  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8236$as_echo "cat" >&6; } ;;
8237esac
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8253$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8254if ${ac_cv_path_SED+:} false; then :
8255  $as_echo_n "(cached) " >&6
8256else
8257            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8258     for ac_i in 1 2 3 4 5 6 7; do
8259       ac_script="$ac_script$as_nl$ac_script"
8260     done
8261     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8262     { ac_script=; unset ac_script;}
8263     if test -z "$SED"; then
8264  ac_path_SED_found=false
8265  # Loop through the user's path and test for each of PROGNAME-LIST
8266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267for as_dir in $PATH
8268do
8269  IFS=$as_save_IFS
8270  test -z "$as_dir" && as_dir=.
8271    for ac_prog in sed gsed; do
8272    for ac_exec_ext in '' $ac_executable_extensions; do
8273      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8274      as_fn_executable_p "$ac_path_SED" || continue
8275# Check for GNU ac_path_SED and select it if it is found.
8276  # Check for GNU $ac_path_SED
8277case `"$ac_path_SED" --version 2>&1` in
8278*GNU*)
8279  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8280*)
8281  ac_count=0
8282  $as_echo_n 0123456789 >"conftest.in"
8283  while :
8284  do
8285    cat "conftest.in" "conftest.in" >"conftest.tmp"
8286    mv "conftest.tmp" "conftest.in"
8287    cp "conftest.in" "conftest.nl"
8288    $as_echo '' >> "conftest.nl"
8289    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8290    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8291    as_fn_arith $ac_count + 1 && ac_count=$as_val
8292    if test $ac_count -gt ${ac_path_SED_max-0}; then
8293      # Best one so far, save it but keep looking for a better one
8294      ac_cv_path_SED="$ac_path_SED"
8295      ac_path_SED_max=$ac_count
8296    fi
8297    # 10*(2^10) chars as input seems more than enough
8298    test $ac_count -gt 10 && break
8299  done
8300  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8301esac
8302
8303      $ac_path_SED_found && break 3
8304    done
8305  done
8306  done
8307IFS=$as_save_IFS
8308  if test -z "$ac_cv_path_SED"; then
8309    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8310  fi
8311else
8312  ac_cv_path_SED=$SED
8313fi
8314
8315fi
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8317$as_echo "$ac_cv_path_SED" >&6; }
8318 SED="$ac_cv_path_SED"
8319  rm -f conftest.sed
8320
8321test -z "$SED" && SED=sed
8322Xsed="$SED -e 1s/^X//"
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8335$as_echo_n "checking for fgrep... " >&6; }
8336if ${ac_cv_path_FGREP+:} false; then :
8337  $as_echo_n "(cached) " >&6
8338else
8339  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8340   then ac_cv_path_FGREP="$GREP -F"
8341   else
8342     if test -z "$FGREP"; then
8343  ac_path_FGREP_found=false
8344  # Loop through the user's path and test for each of PROGNAME-LIST
8345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8347do
8348  IFS=$as_save_IFS
8349  test -z "$as_dir" && as_dir=.
8350    for ac_prog in fgrep; do
8351    for ac_exec_ext in '' $ac_executable_extensions; do
8352      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8353      as_fn_executable_p "$ac_path_FGREP" || continue
8354# Check for GNU ac_path_FGREP and select it if it is found.
8355  # Check for GNU $ac_path_FGREP
8356case `"$ac_path_FGREP" --version 2>&1` in
8357*GNU*)
8358  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8359*)
8360  ac_count=0
8361  $as_echo_n 0123456789 >"conftest.in"
8362  while :
8363  do
8364    cat "conftest.in" "conftest.in" >"conftest.tmp"
8365    mv "conftest.tmp" "conftest.in"
8366    cp "conftest.in" "conftest.nl"
8367    $as_echo 'FGREP' >> "conftest.nl"
8368    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8369    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8370    as_fn_arith $ac_count + 1 && ac_count=$as_val
8371    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8372      # Best one so far, save it but keep looking for a better one
8373      ac_cv_path_FGREP="$ac_path_FGREP"
8374      ac_path_FGREP_max=$ac_count
8375    fi
8376    # 10*(2^10) chars as input seems more than enough
8377    test $ac_count -gt 10 && break
8378  done
8379  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8380esac
8381
8382      $ac_path_FGREP_found && break 3
8383    done
8384  done
8385  done
8386IFS=$as_save_IFS
8387  if test -z "$ac_cv_path_FGREP"; then
8388    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8389  fi
8390else
8391  ac_cv_path_FGREP=$FGREP
8392fi
8393
8394   fi
8395fi
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8397$as_echo "$ac_cv_path_FGREP" >&6; }
8398 FGREP="$ac_cv_path_FGREP"
8399
8400
8401test -z "$GREP" && GREP=grep
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421# Check whether --with-gnu-ld was given.
8422if test "${with_gnu_ld+set}" = set; then :
8423  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8424else
8425  with_gnu_ld=no
8426fi
8427
8428ac_prog=ld
8429if test yes = "$GCC"; then
8430  # Check if gcc -print-prog-name=ld gives a path.
8431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8432$as_echo_n "checking for ld used by $CC... " >&6; }
8433  case $host in
8434  *-*-mingw*)
8435    # gcc leaves a trailing carriage return, which upsets mingw
8436    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8437  *)
8438    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8439  esac
8440  case $ac_prog in
8441    # Accept absolute paths.
8442    [\\/]* | ?:[\\/]*)
8443      re_direlt='/[^/][^/]*/\.\./'
8444      # Canonicalize the pathname of ld
8445      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8446      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8447	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8448      done
8449      test -z "$LD" && LD=$ac_prog
8450      ;;
8451  "")
8452    # If it fails, then pretend we aren't using GCC.
8453    ac_prog=ld
8454    ;;
8455  *)
8456    # If it is relative, then search for the first ld in PATH.
8457    with_gnu_ld=unknown
8458    ;;
8459  esac
8460elif test yes = "$with_gnu_ld"; then
8461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8462$as_echo_n "checking for GNU ld... " >&6; }
8463else
8464  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8465$as_echo_n "checking for non-GNU ld... " >&6; }
8466fi
8467if ${lt_cv_path_LD+:} false; then :
8468  $as_echo_n "(cached) " >&6
8469else
8470  if test -z "$LD"; then
8471  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8472  for ac_dir in $PATH; do
8473    IFS=$lt_save_ifs
8474    test -z "$ac_dir" && ac_dir=.
8475    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8476      lt_cv_path_LD=$ac_dir/$ac_prog
8477      # Check to see if the program is GNU ld.  I'd rather use --version,
8478      # but apparently some variants of GNU ld only accept -v.
8479      # Break only if it was the GNU/non-GNU ld that we prefer.
8480      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8481      *GNU* | *'with BFD'*)
8482	test no != "$with_gnu_ld" && break
8483	;;
8484      *)
8485	test yes != "$with_gnu_ld" && break
8486	;;
8487      esac
8488    fi
8489  done
8490  IFS=$lt_save_ifs
8491else
8492  lt_cv_path_LD=$LD # Let the user override the test with a path.
8493fi
8494fi
8495
8496LD=$lt_cv_path_LD
8497if test -n "$LD"; then
8498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8499$as_echo "$LD" >&6; }
8500else
8501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502$as_echo "no" >&6; }
8503fi
8504test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8506$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8507if ${lt_cv_prog_gnu_ld+:} false; then :
8508  $as_echo_n "(cached) " >&6
8509else
8510  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8511case `$LD -v 2>&1 </dev/null` in
8512*GNU* | *'with BFD'*)
8513  lt_cv_prog_gnu_ld=yes
8514  ;;
8515*)
8516  lt_cv_prog_gnu_ld=no
8517  ;;
8518esac
8519fi
8520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8521$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8522with_gnu_ld=$lt_cv_prog_gnu_ld
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8533$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8534if ${lt_cv_path_NM+:} false; then :
8535  $as_echo_n "(cached) " >&6
8536else
8537  if test -n "$NM"; then
8538  # Let the user override the test.
8539  lt_cv_path_NM=$NM
8540else
8541  lt_nm_to_check=${ac_tool_prefix}nm
8542  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8543    lt_nm_to_check="$lt_nm_to_check nm"
8544  fi
8545  for lt_tmp_nm in $lt_nm_to_check; do
8546    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8547    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8548      IFS=$lt_save_ifs
8549      test -z "$ac_dir" && ac_dir=.
8550      tmp_nm=$ac_dir/$lt_tmp_nm
8551      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8552	# Check to see if the nm accepts a BSD-compat flag.
8553	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8554	#   nm: unknown option "B" ignored
8555	# Tru64's nm complains that /dev/null is an invalid object file
8556	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8557	case $build_os in
8558	mingw*) lt_bad_file=conftest.nm/nofile ;;
8559	*) lt_bad_file=/dev/null ;;
8560	esac
8561	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8562	*$lt_bad_file* | *'Invalid file or object type'*)
8563	  lt_cv_path_NM="$tmp_nm -B"
8564	  break 2
8565	  ;;
8566	*)
8567	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8568	  */dev/null*)
8569	    lt_cv_path_NM="$tmp_nm -p"
8570	    break 2
8571	    ;;
8572	  *)
8573	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8574	    continue # so that we can try to find one that supports BSD flags
8575	    ;;
8576	  esac
8577	  ;;
8578	esac
8579      fi
8580    done
8581    IFS=$lt_save_ifs
8582  done
8583  : ${lt_cv_path_NM=no}
8584fi
8585fi
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8587$as_echo "$lt_cv_path_NM" >&6; }
8588if test no != "$lt_cv_path_NM"; then
8589  NM=$lt_cv_path_NM
8590else
8591  # Didn't find any BSD compatible name lister, look for dumpbin.
8592  if test -n "$DUMPBIN"; then :
8593    # Let the user override the test.
8594  else
8595    if test -n "$ac_tool_prefix"; then
8596  for ac_prog in dumpbin "link -dump"
8597  do
8598    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8599set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601$as_echo_n "checking for $ac_word... " >&6; }
8602if ${ac_cv_prog_DUMPBIN+:} false; then :
8603  $as_echo_n "(cached) " >&6
8604else
8605  if test -n "$DUMPBIN"; then
8606  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8607else
8608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609for as_dir in $PATH
8610do
8611  IFS=$as_save_IFS
8612  test -z "$as_dir" && as_dir=.
8613    for ac_exec_ext in '' $ac_executable_extensions; do
8614  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617    break 2
8618  fi
8619done
8620  done
8621IFS=$as_save_IFS
8622
8623fi
8624fi
8625DUMPBIN=$ac_cv_prog_DUMPBIN
8626if test -n "$DUMPBIN"; then
8627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8628$as_echo "$DUMPBIN" >&6; }
8629else
8630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631$as_echo "no" >&6; }
8632fi
8633
8634
8635    test -n "$DUMPBIN" && break
8636  done
8637fi
8638if test -z "$DUMPBIN"; then
8639  ac_ct_DUMPBIN=$DUMPBIN
8640  for ac_prog in dumpbin "link -dump"
8641do
8642  # Extract the first word of "$ac_prog", so it can be a program name with args.
8643set dummy $ac_prog; ac_word=$2
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645$as_echo_n "checking for $ac_word... " >&6; }
8646if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8647  $as_echo_n "(cached) " >&6
8648else
8649  if test -n "$ac_ct_DUMPBIN"; then
8650  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8651else
8652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653for as_dir in $PATH
8654do
8655  IFS=$as_save_IFS
8656  test -z "$as_dir" && as_dir=.
8657    for ac_exec_ext in '' $ac_executable_extensions; do
8658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8659    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661    break 2
8662  fi
8663done
8664  done
8665IFS=$as_save_IFS
8666
8667fi
8668fi
8669ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8670if test -n "$ac_ct_DUMPBIN"; then
8671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8672$as_echo "$ac_ct_DUMPBIN" >&6; }
8673else
8674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675$as_echo "no" >&6; }
8676fi
8677
8678
8679  test -n "$ac_ct_DUMPBIN" && break
8680done
8681
8682  if test "x$ac_ct_DUMPBIN" = x; then
8683    DUMPBIN=":"
8684  else
8685    case $cross_compiling:$ac_tool_warned in
8686yes:)
8687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8689ac_tool_warned=yes ;;
8690esac
8691    DUMPBIN=$ac_ct_DUMPBIN
8692  fi
8693fi
8694
8695    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8696    *COFF*)
8697      DUMPBIN="$DUMPBIN -symbols -headers"
8698      ;;
8699    *)
8700      DUMPBIN=:
8701      ;;
8702    esac
8703  fi
8704
8705  if test : != "$DUMPBIN"; then
8706    NM=$DUMPBIN
8707  fi
8708fi
8709test -z "$NM" && NM=nm
8710
8711
8712
8713
8714
8715
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8717$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8718if ${lt_cv_nm_interface+:} false; then :
8719  $as_echo_n "(cached) " >&6
8720else
8721  lt_cv_nm_interface="BSD nm"
8722  echo "int some_variable = 0;" > conftest.$ac_ext
8723  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8724  (eval "$ac_compile" 2>conftest.err)
8725  cat conftest.err >&5
8726  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8727  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8728  cat conftest.err >&5
8729  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8730  cat conftest.out >&5
8731  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8732    lt_cv_nm_interface="MS dumpbin"
8733  fi
8734  rm -f conftest*
8735fi
8736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8737$as_echo "$lt_cv_nm_interface" >&6; }
8738
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8740$as_echo_n "checking whether ln -s works... " >&6; }
8741LN_S=$as_ln_s
8742if test "$LN_S" = "ln -s"; then
8743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8744$as_echo "yes" >&6; }
8745else
8746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8747$as_echo "no, using $LN_S" >&6; }
8748fi
8749
8750# find the maximum length of command line arguments
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8752$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8753if ${lt_cv_sys_max_cmd_len+:} false; then :
8754  $as_echo_n "(cached) " >&6
8755else
8756    i=0
8757  teststring=ABCD
8758
8759  case $build_os in
8760  msdosdjgpp*)
8761    # On DJGPP, this test can blow up pretty badly due to problems in libc
8762    # (any single argument exceeding 2000 bytes causes a buffer overrun
8763    # during glob expansion).  Even if it were fixed, the result of this
8764    # check would be larger than it should be.
8765    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8766    ;;
8767
8768  gnu*)
8769    # Under GNU Hurd, this test is not required because there is
8770    # no limit to the length of command line arguments.
8771    # Libtool will interpret -1 as no limit whatsoever
8772    lt_cv_sys_max_cmd_len=-1;
8773    ;;
8774
8775  cygwin* | mingw* | cegcc*)
8776    # On Win9x/ME, this test blows up -- it succeeds, but takes
8777    # about 5 minutes as the teststring grows exponentially.
8778    # Worse, since 9x/ME are not pre-emptively multitasking,
8779    # you end up with a "frozen" computer, even though with patience
8780    # the test eventually succeeds (with a max line length of 256k).
8781    # Instead, let's just punt: use the minimum linelength reported by
8782    # all of the supported platforms: 8192 (on NT/2K/XP).
8783    lt_cv_sys_max_cmd_len=8192;
8784    ;;
8785
8786  mint*)
8787    # On MiNT this can take a long time and run out of memory.
8788    lt_cv_sys_max_cmd_len=8192;
8789    ;;
8790
8791  amigaos*)
8792    # On AmigaOS with pdksh, this test takes hours, literally.
8793    # So we just punt and use a minimum line length of 8192.
8794    lt_cv_sys_max_cmd_len=8192;
8795    ;;
8796
8797  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8798    # This has been around since 386BSD, at least.  Likely further.
8799    if test -x /sbin/sysctl; then
8800      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8801    elif test -x /usr/sbin/sysctl; then
8802      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8803    else
8804      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8805    fi
8806    # And add a safety zone
8807    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8808    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8809    ;;
8810
8811  interix*)
8812    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8813    lt_cv_sys_max_cmd_len=196608
8814    ;;
8815
8816  os2*)
8817    # The test takes a long time on OS/2.
8818    lt_cv_sys_max_cmd_len=8192
8819    ;;
8820
8821  osf*)
8822    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8823    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8824    # nice to cause kernel panics so lets avoid the loop below.
8825    # First set a reasonable default.
8826    lt_cv_sys_max_cmd_len=16384
8827    #
8828    if test -x /sbin/sysconfig; then
8829      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8830        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8831      esac
8832    fi
8833    ;;
8834  sco3.2v5*)
8835    lt_cv_sys_max_cmd_len=102400
8836    ;;
8837  sysv5* | sco5v6* | sysv4.2uw2*)
8838    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8839    if test -n "$kargmax"; then
8840      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8841    else
8842      lt_cv_sys_max_cmd_len=32768
8843    fi
8844    ;;
8845  *)
8846    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8847    if test -n "$lt_cv_sys_max_cmd_len" && \
8848       test undefined != "$lt_cv_sys_max_cmd_len"; then
8849      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8850      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8851    else
8852      # Make teststring a little bigger before we do anything with it.
8853      # a 1K string should be a reasonable start.
8854      for i in 1 2 3 4 5 6 7 8; do
8855        teststring=$teststring$teststring
8856      done
8857      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8858      # If test is not a shell built-in, we'll probably end up computing a
8859      # maximum length that is only half of the actual maximum length, but
8860      # we can't tell.
8861      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8862	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8863	      test 17 != "$i" # 1/2 MB should be enough
8864      do
8865        i=`expr $i + 1`
8866        teststring=$teststring$teststring
8867      done
8868      # Only check the string length outside the loop.
8869      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8870      teststring=
8871      # Add a significant safety factor because C++ compilers can tack on
8872      # massive amounts of additional arguments before passing them to the
8873      # linker.  It appears as though 1/2 is a usable value.
8874      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8875    fi
8876    ;;
8877  esac
8878
8879fi
8880
8881if test -n "$lt_cv_sys_max_cmd_len"; then
8882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8883$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8884else
8885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8886$as_echo "none" >&6; }
8887fi
8888max_cmd_len=$lt_cv_sys_max_cmd_len
8889
8890
8891
8892
8893
8894
8895: ${CP="cp -f"}
8896: ${MV="mv -f"}
8897: ${RM="rm -f"}
8898
8899if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8900  lt_unset=unset
8901else
8902  lt_unset=false
8903fi
8904
8905
8906
8907
8908
8909# test EBCDIC or ASCII
8910case `echo X|tr X '\101'` in
8911 A) # ASCII based system
8912    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8913  lt_SP2NL='tr \040 \012'
8914  lt_NL2SP='tr \015\012 \040\040'
8915  ;;
8916 *) # EBCDIC based system
8917  lt_SP2NL='tr \100 \n'
8918  lt_NL2SP='tr \r\n \100\100'
8919  ;;
8920esac
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8931$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8932if ${lt_cv_to_host_file_cmd+:} false; then :
8933  $as_echo_n "(cached) " >&6
8934else
8935  case $host in
8936  *-*-mingw* )
8937    case $build in
8938      *-*-mingw* ) # actually msys
8939        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8940        ;;
8941      *-*-cygwin* )
8942        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8943        ;;
8944      * ) # otherwise, assume *nix
8945        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8946        ;;
8947    esac
8948    ;;
8949  *-*-cygwin* )
8950    case $build in
8951      *-*-mingw* ) # actually msys
8952        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8953        ;;
8954      *-*-cygwin* )
8955        lt_cv_to_host_file_cmd=func_convert_file_noop
8956        ;;
8957      * ) # otherwise, assume *nix
8958        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8959        ;;
8960    esac
8961    ;;
8962  * ) # unhandled hosts (and "normal" native builds)
8963    lt_cv_to_host_file_cmd=func_convert_file_noop
8964    ;;
8965esac
8966
8967fi
8968
8969to_host_file_cmd=$lt_cv_to_host_file_cmd
8970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8971$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8972
8973
8974
8975
8976
8977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8978$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8979if ${lt_cv_to_tool_file_cmd+:} false; then :
8980  $as_echo_n "(cached) " >&6
8981else
8982  #assume ordinary cross tools, or native build.
8983lt_cv_to_tool_file_cmd=func_convert_file_noop
8984case $host in
8985  *-*-mingw* )
8986    case $build in
8987      *-*-mingw* ) # actually msys
8988        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8989        ;;
8990    esac
8991    ;;
8992esac
8993
8994fi
8995
8996to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8998$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8999
9000
9001
9002
9003
9004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9005$as_echo_n "checking for $LD option to reload object files... " >&6; }
9006if ${lt_cv_ld_reload_flag+:} false; then :
9007  $as_echo_n "(cached) " >&6
9008else
9009  lt_cv_ld_reload_flag='-r'
9010fi
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9012$as_echo "$lt_cv_ld_reload_flag" >&6; }
9013reload_flag=$lt_cv_ld_reload_flag
9014case $reload_flag in
9015"" | " "*) ;;
9016*) reload_flag=" $reload_flag" ;;
9017esac
9018reload_cmds='$LD$reload_flag -o $output$reload_objs'
9019case $host_os in
9020  cygwin* | mingw* | pw32* | cegcc*)
9021    if test yes != "$GCC"; then
9022      reload_cmds=false
9023    fi
9024    ;;
9025  darwin*)
9026    if test yes = "$GCC"; then
9027      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9028    else
9029      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9030    fi
9031    ;;
9032esac
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042if test -n "$ac_tool_prefix"; then
9043  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9044set dummy ${ac_tool_prefix}objdump; ac_word=$2
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046$as_echo_n "checking for $ac_word... " >&6; }
9047if ${ac_cv_prog_OBJDUMP+:} false; then :
9048  $as_echo_n "(cached) " >&6
9049else
9050  if test -n "$OBJDUMP"; then
9051  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9052else
9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054for as_dir in $PATH
9055do
9056  IFS=$as_save_IFS
9057  test -z "$as_dir" && as_dir=.
9058    for ac_exec_ext in '' $ac_executable_extensions; do
9059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9060    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062    break 2
9063  fi
9064done
9065  done
9066IFS=$as_save_IFS
9067
9068fi
9069fi
9070OBJDUMP=$ac_cv_prog_OBJDUMP
9071if test -n "$OBJDUMP"; then
9072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9073$as_echo "$OBJDUMP" >&6; }
9074else
9075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076$as_echo "no" >&6; }
9077fi
9078
9079
9080fi
9081if test -z "$ac_cv_prog_OBJDUMP"; then
9082  ac_ct_OBJDUMP=$OBJDUMP
9083  # Extract the first word of "objdump", so it can be a program name with args.
9084set dummy objdump; ac_word=$2
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086$as_echo_n "checking for $ac_word... " >&6; }
9087if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9088  $as_echo_n "(cached) " >&6
9089else
9090  if test -n "$ac_ct_OBJDUMP"; then
9091  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9092else
9093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094for as_dir in $PATH
9095do
9096  IFS=$as_save_IFS
9097  test -z "$as_dir" && as_dir=.
9098    for ac_exec_ext in '' $ac_executable_extensions; do
9099  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9100    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102    break 2
9103  fi
9104done
9105  done
9106IFS=$as_save_IFS
9107
9108fi
9109fi
9110ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9111if test -n "$ac_ct_OBJDUMP"; then
9112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9113$as_echo "$ac_ct_OBJDUMP" >&6; }
9114else
9115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116$as_echo "no" >&6; }
9117fi
9118
9119  if test "x$ac_ct_OBJDUMP" = x; then
9120    OBJDUMP="false"
9121  else
9122    case $cross_compiling:$ac_tool_warned in
9123yes:)
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9126ac_tool_warned=yes ;;
9127esac
9128    OBJDUMP=$ac_ct_OBJDUMP
9129  fi
9130else
9131  OBJDUMP="$ac_cv_prog_OBJDUMP"
9132fi
9133
9134test -z "$OBJDUMP" && OBJDUMP=objdump
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9145$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9146if ${lt_cv_deplibs_check_method+:} false; then :
9147  $as_echo_n "(cached) " >&6
9148else
9149  lt_cv_file_magic_cmd='$MAGIC_CMD'
9150lt_cv_file_magic_test_file=
9151lt_cv_deplibs_check_method='unknown'
9152# Need to set the preceding variable on all platforms that support
9153# interlibrary dependencies.
9154# 'none' -- dependencies not supported.
9155# 'unknown' -- same as none, but documents that we really don't know.
9156# 'pass_all' -- all dependencies passed with no checks.
9157# 'test_compile' -- check by making test program.
9158# 'file_magic [[regex]]' -- check by looking for files in library path
9159# that responds to the $file_magic_cmd with a given extended regex.
9160# If you have 'file' or equivalent on your system and you're not sure
9161# whether 'pass_all' will *always* work, you probably want this one.
9162
9163case $host_os in
9164aix[4-9]*)
9165  lt_cv_deplibs_check_method=pass_all
9166  ;;
9167
9168beos*)
9169  lt_cv_deplibs_check_method=pass_all
9170  ;;
9171
9172bsdi[45]*)
9173  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9174  lt_cv_file_magic_cmd='/usr/bin/file -L'
9175  lt_cv_file_magic_test_file=/shlib/libc.so
9176  ;;
9177
9178cygwin*)
9179  # func_win32_libid is a shell function defined in ltmain.sh
9180  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9181  lt_cv_file_magic_cmd='func_win32_libid'
9182  ;;
9183
9184mingw* | pw32*)
9185  # Base MSYS/MinGW do not provide the 'file' command needed by
9186  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9187  # unless we find 'file', for example because we are cross-compiling.
9188  if ( file / ) >/dev/null 2>&1; then
9189    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9190    lt_cv_file_magic_cmd='func_win32_libid'
9191  else
9192    # Keep this pattern in sync with the one in func_win32_libid.
9193    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9194    lt_cv_file_magic_cmd='$OBJDUMP -f'
9195  fi
9196  ;;
9197
9198cegcc*)
9199  # use the weaker test based on 'objdump'. See mingw*.
9200  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9201  lt_cv_file_magic_cmd='$OBJDUMP -f'
9202  ;;
9203
9204darwin* | rhapsody*)
9205  lt_cv_deplibs_check_method=pass_all
9206  ;;
9207
9208freebsd* | dragonfly*)
9209  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9210    case $host_cpu in
9211    i*86 )
9212      # Not sure whether the presence of OpenBSD here was a mistake.
9213      # Let's accept both of them until this is cleared up.
9214      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9215      lt_cv_file_magic_cmd=/usr/bin/file
9216      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9217      ;;
9218    esac
9219  else
9220    lt_cv_deplibs_check_method=pass_all
9221  fi
9222  ;;
9223
9224haiku*)
9225  lt_cv_deplibs_check_method=pass_all
9226  ;;
9227
9228hpux10.20* | hpux11*)
9229  lt_cv_file_magic_cmd=/usr/bin/file
9230  case $host_cpu in
9231  ia64*)
9232    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9233    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9234    ;;
9235  hppa*64*)
9236    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
9237    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9238    ;;
9239  *)
9240    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9241    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9242    ;;
9243  esac
9244  ;;
9245
9246interix[3-9]*)
9247  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9248  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9249  ;;
9250
9251irix5* | irix6* | nonstopux*)
9252  case $LD in
9253  *-32|*"-32 ") libmagic=32-bit;;
9254  *-n32|*"-n32 ") libmagic=N32;;
9255  *-64|*"-64 ") libmagic=64-bit;;
9256  *) libmagic=never-match;;
9257  esac
9258  lt_cv_deplibs_check_method=pass_all
9259  ;;
9260
9261# This must be glibc/ELF.
9262linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9263  lt_cv_deplibs_check_method=pass_all
9264  ;;
9265
9266netbsd*)
9267  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9268    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9269  else
9270    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9271  fi
9272  ;;
9273
9274newos6*)
9275  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9276  lt_cv_file_magic_cmd=/usr/bin/file
9277  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9278  ;;
9279
9280*nto* | *qnx*)
9281  lt_cv_deplibs_check_method=pass_all
9282  ;;
9283
9284openbsd* | bitrig*)
9285  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9286    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9287  else
9288    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9289  fi
9290  ;;
9291
9292osf3* | osf4* | osf5*)
9293  lt_cv_deplibs_check_method=pass_all
9294  ;;
9295
9296rdos*)
9297  lt_cv_deplibs_check_method=pass_all
9298  ;;
9299
9300solaris*)
9301  lt_cv_deplibs_check_method=pass_all
9302  ;;
9303
9304sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9305  lt_cv_deplibs_check_method=pass_all
9306  ;;
9307
9308sysv4 | sysv4.3*)
9309  case $host_vendor in
9310  motorola)
9311    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
9312    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9313    ;;
9314  ncr)
9315    lt_cv_deplibs_check_method=pass_all
9316    ;;
9317  sequent)
9318    lt_cv_file_magic_cmd='/bin/file'
9319    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9320    ;;
9321  sni)
9322    lt_cv_file_magic_cmd='/bin/file'
9323    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9324    lt_cv_file_magic_test_file=/lib/libc.so
9325    ;;
9326  siemens)
9327    lt_cv_deplibs_check_method=pass_all
9328    ;;
9329  pc)
9330    lt_cv_deplibs_check_method=pass_all
9331    ;;
9332  esac
9333  ;;
9334
9335tpf*)
9336  lt_cv_deplibs_check_method=pass_all
9337  ;;
9338os2*)
9339  lt_cv_deplibs_check_method=pass_all
9340  ;;
9341esac
9342
9343fi
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9345$as_echo "$lt_cv_deplibs_check_method" >&6; }
9346
9347file_magic_glob=
9348want_nocaseglob=no
9349if test "$build" = "$host"; then
9350  case $host_os in
9351  mingw* | pw32*)
9352    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9353      want_nocaseglob=yes
9354    else
9355      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9356    fi
9357    ;;
9358  esac
9359fi
9360
9361file_magic_cmd=$lt_cv_file_magic_cmd
9362deplibs_check_method=$lt_cv_deplibs_check_method
9363test -z "$deplibs_check_method" && deplibs_check_method=unknown
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386if test -n "$ac_tool_prefix"; then
9387  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9388set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9390$as_echo_n "checking for $ac_word... " >&6; }
9391if ${ac_cv_prog_DLLTOOL+:} false; then :
9392  $as_echo_n "(cached) " >&6
9393else
9394  if test -n "$DLLTOOL"; then
9395  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9396else
9397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9398for as_dir in $PATH
9399do
9400  IFS=$as_save_IFS
9401  test -z "$as_dir" && as_dir=.
9402    for ac_exec_ext in '' $ac_executable_extensions; do
9403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9404    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9406    break 2
9407  fi
9408done
9409  done
9410IFS=$as_save_IFS
9411
9412fi
9413fi
9414DLLTOOL=$ac_cv_prog_DLLTOOL
9415if test -n "$DLLTOOL"; then
9416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9417$as_echo "$DLLTOOL" >&6; }
9418else
9419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420$as_echo "no" >&6; }
9421fi
9422
9423
9424fi
9425if test -z "$ac_cv_prog_DLLTOOL"; then
9426  ac_ct_DLLTOOL=$DLLTOOL
9427  # Extract the first word of "dlltool", so it can be a program name with args.
9428set dummy dlltool; ac_word=$2
9429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9430$as_echo_n "checking for $ac_word... " >&6; }
9431if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9432  $as_echo_n "(cached) " >&6
9433else
9434  if test -n "$ac_ct_DLLTOOL"; then
9435  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9436else
9437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438for as_dir in $PATH
9439do
9440  IFS=$as_save_IFS
9441  test -z "$as_dir" && as_dir=.
9442    for ac_exec_ext in '' $ac_executable_extensions; do
9443  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9444    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9445    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9446    break 2
9447  fi
9448done
9449  done
9450IFS=$as_save_IFS
9451
9452fi
9453fi
9454ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9455if test -n "$ac_ct_DLLTOOL"; then
9456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9457$as_echo "$ac_ct_DLLTOOL" >&6; }
9458else
9459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460$as_echo "no" >&6; }
9461fi
9462
9463  if test "x$ac_ct_DLLTOOL" = x; then
9464    DLLTOOL="false"
9465  else
9466    case $cross_compiling:$ac_tool_warned in
9467yes:)
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9470ac_tool_warned=yes ;;
9471esac
9472    DLLTOOL=$ac_ct_DLLTOOL
9473  fi
9474else
9475  DLLTOOL="$ac_cv_prog_DLLTOOL"
9476fi
9477
9478test -z "$DLLTOOL" && DLLTOOL=dlltool
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9490$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9491if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9492  $as_echo_n "(cached) " >&6
9493else
9494  lt_cv_sharedlib_from_linklib_cmd='unknown'
9495
9496case $host_os in
9497cygwin* | mingw* | pw32* | cegcc*)
9498  # two different shell functions defined in ltmain.sh;
9499  # decide which one to use based on capabilities of $DLLTOOL
9500  case `$DLLTOOL --help 2>&1` in
9501  *--identify-strict*)
9502    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9503    ;;
9504  *)
9505    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9506    ;;
9507  esac
9508  ;;
9509*)
9510  # fallback: assume linklib IS sharedlib
9511  lt_cv_sharedlib_from_linklib_cmd=$ECHO
9512  ;;
9513esac
9514
9515fi
9516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9517$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9518sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9519test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9520
9521
9522
9523
9524
9525
9526
9527if test -n "$ac_tool_prefix"; then
9528  for ac_prog in ar
9529  do
9530    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9531set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533$as_echo_n "checking for $ac_word... " >&6; }
9534if ${ac_cv_prog_AR+:} false; then :
9535  $as_echo_n "(cached) " >&6
9536else
9537  if test -n "$AR"; then
9538  ac_cv_prog_AR="$AR" # Let the user override the test.
9539else
9540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541for as_dir in $PATH
9542do
9543  IFS=$as_save_IFS
9544  test -z "$as_dir" && as_dir=.
9545    for ac_exec_ext in '' $ac_executable_extensions; do
9546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9547    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9549    break 2
9550  fi
9551done
9552  done
9553IFS=$as_save_IFS
9554
9555fi
9556fi
9557AR=$ac_cv_prog_AR
9558if test -n "$AR"; then
9559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9560$as_echo "$AR" >&6; }
9561else
9562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563$as_echo "no" >&6; }
9564fi
9565
9566
9567    test -n "$AR" && break
9568  done
9569fi
9570if test -z "$AR"; then
9571  ac_ct_AR=$AR
9572  for ac_prog in ar
9573do
9574  # Extract the first word of "$ac_prog", so it can be a program name with args.
9575set dummy $ac_prog; ac_word=$2
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577$as_echo_n "checking for $ac_word... " >&6; }
9578if ${ac_cv_prog_ac_ct_AR+:} false; then :
9579  $as_echo_n "(cached) " >&6
9580else
9581  if test -n "$ac_ct_AR"; then
9582  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9583else
9584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585for as_dir in $PATH
9586do
9587  IFS=$as_save_IFS
9588  test -z "$as_dir" && as_dir=.
9589    for ac_exec_ext in '' $ac_executable_extensions; do
9590  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9591    ac_cv_prog_ac_ct_AR="$ac_prog"
9592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593    break 2
9594  fi
9595done
9596  done
9597IFS=$as_save_IFS
9598
9599fi
9600fi
9601ac_ct_AR=$ac_cv_prog_ac_ct_AR
9602if test -n "$ac_ct_AR"; then
9603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9604$as_echo "$ac_ct_AR" >&6; }
9605else
9606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607$as_echo "no" >&6; }
9608fi
9609
9610
9611  test -n "$ac_ct_AR" && break
9612done
9613
9614  if test "x$ac_ct_AR" = x; then
9615    AR="false"
9616  else
9617    case $cross_compiling:$ac_tool_warned in
9618yes:)
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9621ac_tool_warned=yes ;;
9622esac
9623    AR=$ac_ct_AR
9624  fi
9625fi
9626
9627: ${AR=ar}
9628: ${AR_FLAGS=cru}
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9641$as_echo_n "checking for archiver @FILE support... " >&6; }
9642if ${lt_cv_ar_at_file+:} false; then :
9643  $as_echo_n "(cached) " >&6
9644else
9645  lt_cv_ar_at_file=no
9646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647/* end confdefs.h.  */
9648
9649int
9650main ()
9651{
9652
9653  ;
9654  return 0;
9655}
9656_ACEOF
9657if ac_fn_c_try_compile "$LINENO"; then :
9658  echo conftest.$ac_objext > conftest.lst
9659      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9660      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9661  (eval $lt_ar_try) 2>&5
9662  ac_status=$?
9663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9664  test $ac_status = 0; }
9665      if test 0 -eq "$ac_status"; then
9666	# Ensure the archiver fails upon bogus file names.
9667	rm -f conftest.$ac_objext libconftest.a
9668	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9669  (eval $lt_ar_try) 2>&5
9670  ac_status=$?
9671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9672  test $ac_status = 0; }
9673	if test 0 -ne "$ac_status"; then
9674          lt_cv_ar_at_file=@
9675        fi
9676      fi
9677      rm -f conftest.* libconftest.a
9678
9679fi
9680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681
9682fi
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9684$as_echo "$lt_cv_ar_at_file" >&6; }
9685
9686if test no = "$lt_cv_ar_at_file"; then
9687  archiver_list_spec=
9688else
9689  archiver_list_spec=$lt_cv_ar_at_file
9690fi
9691
9692
9693
9694
9695
9696
9697
9698if test -n "$ac_tool_prefix"; then
9699  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9700set dummy ${ac_tool_prefix}strip; ac_word=$2
9701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9702$as_echo_n "checking for $ac_word... " >&6; }
9703if ${ac_cv_prog_STRIP+:} false; then :
9704  $as_echo_n "(cached) " >&6
9705else
9706  if test -n "$STRIP"; then
9707  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9708else
9709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710for as_dir in $PATH
9711do
9712  IFS=$as_save_IFS
9713  test -z "$as_dir" && as_dir=.
9714    for ac_exec_ext in '' $ac_executable_extensions; do
9715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9716    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718    break 2
9719  fi
9720done
9721  done
9722IFS=$as_save_IFS
9723
9724fi
9725fi
9726STRIP=$ac_cv_prog_STRIP
9727if test -n "$STRIP"; then
9728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9729$as_echo "$STRIP" >&6; }
9730else
9731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732$as_echo "no" >&6; }
9733fi
9734
9735
9736fi
9737if test -z "$ac_cv_prog_STRIP"; then
9738  ac_ct_STRIP=$STRIP
9739  # Extract the first word of "strip", so it can be a program name with args.
9740set dummy strip; ac_word=$2
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742$as_echo_n "checking for $ac_word... " >&6; }
9743if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9744  $as_echo_n "(cached) " >&6
9745else
9746  if test -n "$ac_ct_STRIP"; then
9747  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9748else
9749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9750for as_dir in $PATH
9751do
9752  IFS=$as_save_IFS
9753  test -z "$as_dir" && as_dir=.
9754    for ac_exec_ext in '' $ac_executable_extensions; do
9755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9756    ac_cv_prog_ac_ct_STRIP="strip"
9757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9758    break 2
9759  fi
9760done
9761  done
9762IFS=$as_save_IFS
9763
9764fi
9765fi
9766ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9767if test -n "$ac_ct_STRIP"; then
9768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9769$as_echo "$ac_ct_STRIP" >&6; }
9770else
9771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772$as_echo "no" >&6; }
9773fi
9774
9775  if test "x$ac_ct_STRIP" = x; then
9776    STRIP=":"
9777  else
9778    case $cross_compiling:$ac_tool_warned in
9779yes:)
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9782ac_tool_warned=yes ;;
9783esac
9784    STRIP=$ac_ct_STRIP
9785  fi
9786else
9787  STRIP="$ac_cv_prog_STRIP"
9788fi
9789
9790test -z "$STRIP" && STRIP=:
9791
9792
9793
9794
9795
9796
9797if test -n "$ac_tool_prefix"; then
9798  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9799set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9801$as_echo_n "checking for $ac_word... " >&6; }
9802if ${ac_cv_prog_RANLIB+:} false; then :
9803  $as_echo_n "(cached) " >&6
9804else
9805  if test -n "$RANLIB"; then
9806  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9807else
9808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809for as_dir in $PATH
9810do
9811  IFS=$as_save_IFS
9812  test -z "$as_dir" && as_dir=.
9813    for ac_exec_ext in '' $ac_executable_extensions; do
9814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9815    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9817    break 2
9818  fi
9819done
9820  done
9821IFS=$as_save_IFS
9822
9823fi
9824fi
9825RANLIB=$ac_cv_prog_RANLIB
9826if test -n "$RANLIB"; then
9827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9828$as_echo "$RANLIB" >&6; }
9829else
9830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9831$as_echo "no" >&6; }
9832fi
9833
9834
9835fi
9836if test -z "$ac_cv_prog_RANLIB"; then
9837  ac_ct_RANLIB=$RANLIB
9838  # Extract the first word of "ranlib", so it can be a program name with args.
9839set dummy ranlib; ac_word=$2
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9841$as_echo_n "checking for $ac_word... " >&6; }
9842if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9843  $as_echo_n "(cached) " >&6
9844else
9845  if test -n "$ac_ct_RANLIB"; then
9846  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9847else
9848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849for as_dir in $PATH
9850do
9851  IFS=$as_save_IFS
9852  test -z "$as_dir" && as_dir=.
9853    for ac_exec_ext in '' $ac_executable_extensions; do
9854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9855    ac_cv_prog_ac_ct_RANLIB="ranlib"
9856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9857    break 2
9858  fi
9859done
9860  done
9861IFS=$as_save_IFS
9862
9863fi
9864fi
9865ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9866if test -n "$ac_ct_RANLIB"; then
9867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9868$as_echo "$ac_ct_RANLIB" >&6; }
9869else
9870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871$as_echo "no" >&6; }
9872fi
9873
9874  if test "x$ac_ct_RANLIB" = x; then
9875    RANLIB=":"
9876  else
9877    case $cross_compiling:$ac_tool_warned in
9878yes:)
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9881ac_tool_warned=yes ;;
9882esac
9883    RANLIB=$ac_ct_RANLIB
9884  fi
9885else
9886  RANLIB="$ac_cv_prog_RANLIB"
9887fi
9888
9889test -z "$RANLIB" && RANLIB=:
9890
9891
9892
9893
9894
9895
9896# Determine commands to create old-style static archives.
9897old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9898old_postinstall_cmds='chmod 644 $oldlib'
9899old_postuninstall_cmds=
9900
9901if test -n "$RANLIB"; then
9902  case $host_os in
9903  bitrig* | openbsd*)
9904    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9905    ;;
9906  *)
9907    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9908    ;;
9909  esac
9910  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9911fi
9912
9913case $host_os in
9914  darwin*)
9915    lock_old_archive_extraction=yes ;;
9916  *)
9917    lock_old_archive_extraction=no ;;
9918esac
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958# If no C compiler was specified, use CC.
9959LTCC=${LTCC-"$CC"}
9960
9961# If no C compiler flags were specified, use CFLAGS.
9962LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9963
9964# Allow CC to be a program name with arguments.
9965compiler=$CC
9966
9967
9968# Check for command to grab the raw symbol name followed by C symbol from nm.
9969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9970$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9971if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9972  $as_echo_n "(cached) " >&6
9973else
9974
9975# These are sane defaults that work on at least a few old systems.
9976# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9977
9978# Character class describing NM global symbol codes.
9979symcode='[BCDEGRST]'
9980
9981# Regexp to match symbols that can be accessed directly from C.
9982sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9983
9984# Define system-specific variables.
9985case $host_os in
9986aix*)
9987  symcode='[BCDT]'
9988  ;;
9989cygwin* | mingw* | pw32* | cegcc*)
9990  symcode='[ABCDGISTW]'
9991  ;;
9992hpux*)
9993  if test ia64 = "$host_cpu"; then
9994    symcode='[ABCDEGRST]'
9995  fi
9996  ;;
9997irix* | nonstopux*)
9998  symcode='[BCDEGRST]'
9999  ;;
10000osf*)
10001  symcode='[BCDEGQRST]'
10002  ;;
10003solaris*)
10004  symcode='[BDRT]'
10005  ;;
10006sco3.2v5*)
10007  symcode='[DT]'
10008  ;;
10009sysv4.2uw2*)
10010  symcode='[DT]'
10011  ;;
10012sysv5* | sco5v6* | unixware* | OpenUNIX*)
10013  symcode='[ABDT]'
10014  ;;
10015sysv4)
10016  symcode='[DFNSTU]'
10017  ;;
10018esac
10019
10020# If we're using GNU nm, then use its standard symbol codes.
10021case `$NM -V 2>&1` in
10022*GNU* | *'with BFD'*)
10023  symcode='[ABCDGIRSTW]' ;;
10024esac
10025
10026if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10027  # Gets list of data symbols to import.
10028  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10029  # Adjust the below global symbol transforms to fixup imported variables.
10030  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10031  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10032  lt_c_name_lib_hook="\
10033  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10034  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10035else
10036  # Disable hooks by default.
10037  lt_cv_sys_global_symbol_to_import=
10038  lt_cdecl_hook=
10039  lt_c_name_hook=
10040  lt_c_name_lib_hook=
10041fi
10042
10043# Transform an extracted symbol line into a proper C declaration.
10044# Some systems (esp. on ia64) link data and code symbols differently,
10045# so use this general approach.
10046lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10047$lt_cdecl_hook\
10048" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10049" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10050
10051# Transform an extracted symbol line into symbol name and symbol address
10052lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10053$lt_c_name_hook\
10054" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10055" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10056
10057# Transform an extracted symbol line into symbol name with lib prefix and
10058# symbol address.
10059lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10060$lt_c_name_lib_hook\
10061" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10062" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10063" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10064
10065# Handle CRLF in mingw tool chain
10066opt_cr=
10067case $build_os in
10068mingw*)
10069  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10070  ;;
10071esac
10072
10073# Try without a prefix underscore, then with it.
10074for ac_symprfx in "" "_"; do
10075
10076  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10077  symxfrm="\\1 $ac_symprfx\\2 \\2"
10078
10079  # Write the raw and C identifiers.
10080  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10081    # Fake it for dumpbin and say T for any non-static function,
10082    # D for any global variable and I for any imported variable.
10083    # Also find C++ and __fastcall symbols from MSVC++,
10084    # which start with @ or ?.
10085    lt_cv_sys_global_symbol_pipe="$AWK '"\
10086"     {last_section=section; section=\$ 3};"\
10087"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10088"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10089"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10090"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10091"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10092"     \$ 0!~/External *\|/{next};"\
10093"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10094"     {if(hide[section]) next};"\
10095"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10096"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10097"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10098"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10099"     ' prfx=^$ac_symprfx"
10100  else
10101    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10102  fi
10103  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10104
10105  # Check to see that the pipe works correctly.
10106  pipe_works=no
10107
10108  rm -f conftest*
10109  cat > conftest.$ac_ext <<_LT_EOF
10110#ifdef __cplusplus
10111extern "C" {
10112#endif
10113char nm_test_var;
10114void nm_test_func(void);
10115void nm_test_func(void){}
10116#ifdef __cplusplus
10117}
10118#endif
10119int main(){nm_test_var='a';nm_test_func();return(0);}
10120_LT_EOF
10121
10122  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10123  (eval $ac_compile) 2>&5
10124  ac_status=$?
10125  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10126  test $ac_status = 0; }; then
10127    # Now try to grab the symbols.
10128    nlist=conftest.nm
10129    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10130  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10131  ac_status=$?
10132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10133  test $ac_status = 0; } && test -s "$nlist"; then
10134      # Try sorting and uniquifying the output.
10135      if sort "$nlist" | uniq > "$nlist"T; then
10136	mv -f "$nlist"T "$nlist"
10137      else
10138	rm -f "$nlist"T
10139      fi
10140
10141      # Make sure that we snagged all the symbols we need.
10142      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10143	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10144	  cat <<_LT_EOF > conftest.$ac_ext
10145/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10146#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10147/* DATA imports from DLLs on WIN32 can't be const, because runtime
10148   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10149# define LT_DLSYM_CONST
10150#elif defined __osf__
10151/* This system does not cope well with relocations in const data.  */
10152# define LT_DLSYM_CONST
10153#else
10154# define LT_DLSYM_CONST const
10155#endif
10156
10157#ifdef __cplusplus
10158extern "C" {
10159#endif
10160
10161_LT_EOF
10162	  # Now generate the symbol file.
10163	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10164
10165	  cat <<_LT_EOF >> conftest.$ac_ext
10166
10167/* The mapping between symbol names and symbols.  */
10168LT_DLSYM_CONST struct {
10169  const char *name;
10170  void       *address;
10171}
10172lt__PROGRAM__LTX_preloaded_symbols[] =
10173{
10174  { "@PROGRAM@", (void *) 0 },
10175_LT_EOF
10176	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10177	  cat <<\_LT_EOF >> conftest.$ac_ext
10178  {0, (void *) 0}
10179};
10180
10181/* This works around a problem in FreeBSD linker */
10182#ifdef FREEBSD_WORKAROUND
10183static const void *lt_preloaded_setup() {
10184  return lt__PROGRAM__LTX_preloaded_symbols;
10185}
10186#endif
10187
10188#ifdef __cplusplus
10189}
10190#endif
10191_LT_EOF
10192	  # Now try linking the two files.
10193	  mv conftest.$ac_objext conftstm.$ac_objext
10194	  lt_globsym_save_LIBS=$LIBS
10195	  lt_globsym_save_CFLAGS=$CFLAGS
10196	  LIBS=conftstm.$ac_objext
10197	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10198	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10199  (eval $ac_link) 2>&5
10200  ac_status=$?
10201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10202  test $ac_status = 0; } && test -s conftest$ac_exeext; then
10203	    pipe_works=yes
10204	  fi
10205	  LIBS=$lt_globsym_save_LIBS
10206	  CFLAGS=$lt_globsym_save_CFLAGS
10207	else
10208	  echo "cannot find nm_test_func in $nlist" >&5
10209	fi
10210      else
10211	echo "cannot find nm_test_var in $nlist" >&5
10212      fi
10213    else
10214      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10215    fi
10216  else
10217    echo "$progname: failed program was:" >&5
10218    cat conftest.$ac_ext >&5
10219  fi
10220  rm -rf conftest* conftst*
10221
10222  # Do not use the global_symbol_pipe unless it works.
10223  if test yes = "$pipe_works"; then
10224    break
10225  else
10226    lt_cv_sys_global_symbol_pipe=
10227  fi
10228done
10229
10230fi
10231
10232if test -z "$lt_cv_sys_global_symbol_pipe"; then
10233  lt_cv_sys_global_symbol_to_cdecl=
10234fi
10235if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10237$as_echo "failed" >&6; }
10238else
10239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10240$as_echo "ok" >&6; }
10241fi
10242
10243# Response file support.
10244if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10245  nm_file_list_spec='@'
10246elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10247  nm_file_list_spec='@'
10248fi
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10287$as_echo_n "checking for sysroot... " >&6; }
10288
10289# Check whether --with-sysroot was given.
10290if test "${with_sysroot+set}" = set; then :
10291  withval=$with_sysroot;
10292else
10293  with_sysroot=no
10294fi
10295
10296
10297lt_sysroot=
10298case $with_sysroot in #(
10299 yes)
10300   if test yes = "$GCC"; then
10301     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10302   fi
10303   ;; #(
10304 /*)
10305   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10306   ;; #(
10307 no|'')
10308   ;; #(
10309 *)
10310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10311$as_echo "$with_sysroot" >&6; }
10312   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10313   ;;
10314esac
10315
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10317$as_echo "${lt_sysroot:-no}" >&6; }
10318
10319
10320
10321
10322
10323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10324$as_echo_n "checking for a working dd... " >&6; }
10325if ${ac_cv_path_lt_DD+:} false; then :
10326  $as_echo_n "(cached) " >&6
10327else
10328  printf 0123456789abcdef0123456789abcdef >conftest.i
10329cat conftest.i conftest.i >conftest2.i
10330: ${lt_DD:=$DD}
10331if test -z "$lt_DD"; then
10332  ac_path_lt_DD_found=false
10333  # Loop through the user's path and test for each of PROGNAME-LIST
10334  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335for as_dir in $PATH
10336do
10337  IFS=$as_save_IFS
10338  test -z "$as_dir" && as_dir=.
10339    for ac_prog in dd; do
10340    for ac_exec_ext in '' $ac_executable_extensions; do
10341      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10342      as_fn_executable_p "$ac_path_lt_DD" || continue
10343if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10344  cmp -s conftest.i conftest.out \
10345  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10346fi
10347      $ac_path_lt_DD_found && break 3
10348    done
10349  done
10350  done
10351IFS=$as_save_IFS
10352  if test -z "$ac_cv_path_lt_DD"; then
10353    :
10354  fi
10355else
10356  ac_cv_path_lt_DD=$lt_DD
10357fi
10358
10359rm -f conftest.i conftest2.i conftest.out
10360fi
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10362$as_echo "$ac_cv_path_lt_DD" >&6; }
10363
10364
10365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10366$as_echo_n "checking how to truncate binary pipes... " >&6; }
10367if ${lt_cv_truncate_bin+:} false; then :
10368  $as_echo_n "(cached) " >&6
10369else
10370  printf 0123456789abcdef0123456789abcdef >conftest.i
10371cat conftest.i conftest.i >conftest2.i
10372lt_cv_truncate_bin=
10373if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10374  cmp -s conftest.i conftest.out \
10375  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10376fi
10377rm -f conftest.i conftest2.i conftest.out
10378test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10379fi
10380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10381$as_echo "$lt_cv_truncate_bin" >&6; }
10382
10383
10384
10385
10386
10387
10388
10389# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
10390func_cc_basename ()
10391{
10392    for cc_temp in $*""; do
10393      case $cc_temp in
10394        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10395        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10396        \-*) ;;
10397        *) break;;
10398      esac
10399    done
10400    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10401}
10402
10403# Check whether --enable-libtool-lock was given.
10404if test "${enable_libtool_lock+set}" = set; then :
10405  enableval=$enable_libtool_lock;
10406fi
10407
10408test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10409
10410# Some flags need to be propagated to the compiler or linker for good
10411# libtool support.
10412case $host in
10413ia64-*-hpux*)
10414  # Find out what ABI is being produced by ac_compile, and set mode
10415  # options accordingly.
10416  echo 'int i;' > conftest.$ac_ext
10417  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10418  (eval $ac_compile) 2>&5
10419  ac_status=$?
10420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10421  test $ac_status = 0; }; then
10422    case `/usr/bin/file conftest.$ac_objext` in
10423      *ELF-32*)
10424	HPUX_IA64_MODE=32
10425	;;
10426      *ELF-64*)
10427	HPUX_IA64_MODE=64
10428	;;
10429    esac
10430  fi
10431  rm -rf conftest*
10432  ;;
10433*-*-irix6*)
10434  # Find out what ABI is being produced by ac_compile, and set linker
10435  # options accordingly.
10436  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10437  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10438  (eval $ac_compile) 2>&5
10439  ac_status=$?
10440  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10441  test $ac_status = 0; }; then
10442    if test yes = "$lt_cv_prog_gnu_ld"; then
10443      case `/usr/bin/file conftest.$ac_objext` in
10444	*32-bit*)
10445	  LD="${LD-ld} -melf32bsmip"
10446	  ;;
10447	*N32*)
10448	  LD="${LD-ld} -melf32bmipn32"
10449	  ;;
10450	*64-bit*)
10451	  LD="${LD-ld} -melf64bmip"
10452	;;
10453      esac
10454    else
10455      case `/usr/bin/file conftest.$ac_objext` in
10456	*32-bit*)
10457	  LD="${LD-ld} -32"
10458	  ;;
10459	*N32*)
10460	  LD="${LD-ld} -n32"
10461	  ;;
10462	*64-bit*)
10463	  LD="${LD-ld} -64"
10464	  ;;
10465      esac
10466    fi
10467  fi
10468  rm -rf conftest*
10469  ;;
10470
10471mips64*-*linux*)
10472  # Find out what ABI is being produced by ac_compile, and set linker
10473  # options accordingly.
10474  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10475  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10476  (eval $ac_compile) 2>&5
10477  ac_status=$?
10478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10479  test $ac_status = 0; }; then
10480    emul=elf
10481    case `/usr/bin/file conftest.$ac_objext` in
10482      *32-bit*)
10483	emul="${emul}32"
10484	;;
10485      *64-bit*)
10486	emul="${emul}64"
10487	;;
10488    esac
10489    case `/usr/bin/file conftest.$ac_objext` in
10490      *MSB*)
10491	emul="${emul}btsmip"
10492	;;
10493      *LSB*)
10494	emul="${emul}ltsmip"
10495	;;
10496    esac
10497    case `/usr/bin/file conftest.$ac_objext` in
10498      *N32*)
10499	emul="${emul}n32"
10500	;;
10501    esac
10502    LD="${LD-ld} -m $emul"
10503  fi
10504  rm -rf conftest*
10505  ;;
10506
10507x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10508s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10509  # Find out what ABI is being produced by ac_compile, and set linker
10510  # options accordingly.  Note that the listed cases only cover the
10511  # situations where additional linker options are needed (such as when
10512  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10513  # vice versa); the common cases where no linker options are needed do
10514  # not appear in the list.
10515  echo 'int i;' > conftest.$ac_ext
10516  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10517  (eval $ac_compile) 2>&5
10518  ac_status=$?
10519  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10520  test $ac_status = 0; }; then
10521    case `/usr/bin/file conftest.o` in
10522      *32-bit*)
10523	case $host in
10524	  x86_64-*kfreebsd*-gnu)
10525	    LD="${LD-ld} -m elf_i386_fbsd"
10526	    ;;
10527	  x86_64-*linux*)
10528	    case `/usr/bin/file conftest.o` in
10529	      *x86-64*)
10530		LD="${LD-ld} -m elf32_x86_64"
10531		;;
10532	      *)
10533		LD="${LD-ld} -m elf_i386"
10534		;;
10535	    esac
10536	    ;;
10537	  powerpc64le-*linux*)
10538	    LD="${LD-ld} -m elf32lppclinux"
10539	    ;;
10540	  powerpc64-*linux*)
10541	    LD="${LD-ld} -m elf32ppclinux"
10542	    ;;
10543	  s390x-*linux*)
10544	    LD="${LD-ld} -m elf_s390"
10545	    ;;
10546	  sparc64-*linux*)
10547	    LD="${LD-ld} -m elf32_sparc"
10548	    ;;
10549	esac
10550	;;
10551      *64-bit*)
10552	case $host in
10553	  x86_64-*kfreebsd*-gnu)
10554	    LD="${LD-ld} -m elf_x86_64_fbsd"
10555	    ;;
10556	  x86_64-*linux*)
10557	    LD="${LD-ld} -m elf_x86_64"
10558	    ;;
10559	  powerpcle-*linux*)
10560	    LD="${LD-ld} -m elf64lppc"
10561	    ;;
10562	  powerpc-*linux*)
10563	    LD="${LD-ld} -m elf64ppc"
10564	    ;;
10565	  s390*-*linux*|s390*-*tpf*)
10566	    LD="${LD-ld} -m elf64_s390"
10567	    ;;
10568	  sparc*-*linux*)
10569	    LD="${LD-ld} -m elf64_sparc"
10570	    ;;
10571	esac
10572	;;
10573    esac
10574  fi
10575  rm -rf conftest*
10576  ;;
10577
10578*-*-sco3.2v5*)
10579  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10580  SAVE_CFLAGS=$CFLAGS
10581  CFLAGS="$CFLAGS -belf"
10582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10583$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10584if ${lt_cv_cc_needs_belf+:} false; then :
10585  $as_echo_n "(cached) " >&6
10586else
10587  ac_ext=c
10588ac_cpp='$CPP $CPPFLAGS'
10589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10591ac_compiler_gnu=$ac_cv_c_compiler_gnu
10592
10593     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594/* end confdefs.h.  */
10595
10596int
10597main ()
10598{
10599
10600  ;
10601  return 0;
10602}
10603_ACEOF
10604if ac_fn_c_try_link "$LINENO"; then :
10605  lt_cv_cc_needs_belf=yes
10606else
10607  lt_cv_cc_needs_belf=no
10608fi
10609rm -f core conftest.err conftest.$ac_objext \
10610    conftest$ac_exeext conftest.$ac_ext
10611     ac_ext=c
10612ac_cpp='$CPP $CPPFLAGS'
10613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10615ac_compiler_gnu=$ac_cv_c_compiler_gnu
10616
10617fi
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10619$as_echo "$lt_cv_cc_needs_belf" >&6; }
10620  if test yes != "$lt_cv_cc_needs_belf"; then
10621    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10622    CFLAGS=$SAVE_CFLAGS
10623  fi
10624  ;;
10625*-*solaris*)
10626  # Find out what ABI is being produced by ac_compile, and set linker
10627  # options accordingly.
10628  echo 'int i;' > conftest.$ac_ext
10629  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10630  (eval $ac_compile) 2>&5
10631  ac_status=$?
10632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10633  test $ac_status = 0; }; then
10634    case `/usr/bin/file conftest.o` in
10635    *64-bit*)
10636      case $lt_cv_prog_gnu_ld in
10637      yes*)
10638        case $host in
10639        i?86-*-solaris*|x86_64-*-solaris*)
10640          LD="${LD-ld} -m elf_x86_64"
10641          ;;
10642        sparc*-*-solaris*)
10643          LD="${LD-ld} -m elf64_sparc"
10644          ;;
10645        esac
10646        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10647        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10648          LD=${LD-ld}_sol2
10649        fi
10650        ;;
10651      *)
10652	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10653	  LD="${LD-ld} -64"
10654	fi
10655	;;
10656      esac
10657      ;;
10658    esac
10659  fi
10660  rm -rf conftest*
10661  ;;
10662esac
10663
10664need_locks=$enable_libtool_lock
10665
10666if test -n "$ac_tool_prefix"; then
10667  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10668set dummy ${ac_tool_prefix}mt; ac_word=$2
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670$as_echo_n "checking for $ac_word... " >&6; }
10671if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10672  $as_echo_n "(cached) " >&6
10673else
10674  if test -n "$MANIFEST_TOOL"; then
10675  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10676else
10677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678for as_dir in $PATH
10679do
10680  IFS=$as_save_IFS
10681  test -z "$as_dir" && as_dir=.
10682    for ac_exec_ext in '' $ac_executable_extensions; do
10683  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10684    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10686    break 2
10687  fi
10688done
10689  done
10690IFS=$as_save_IFS
10691
10692fi
10693fi
10694MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10695if test -n "$MANIFEST_TOOL"; then
10696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10697$as_echo "$MANIFEST_TOOL" >&6; }
10698else
10699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700$as_echo "no" >&6; }
10701fi
10702
10703
10704fi
10705if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10706  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10707  # Extract the first word of "mt", so it can be a program name with args.
10708set dummy mt; ac_word=$2
10709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10710$as_echo_n "checking for $ac_word... " >&6; }
10711if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10712  $as_echo_n "(cached) " >&6
10713else
10714  if test -n "$ac_ct_MANIFEST_TOOL"; then
10715  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10716else
10717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $PATH
10719do
10720  IFS=$as_save_IFS
10721  test -z "$as_dir" && as_dir=.
10722    for ac_exec_ext in '' $ac_executable_extensions; do
10723  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10724    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10726    break 2
10727  fi
10728done
10729  done
10730IFS=$as_save_IFS
10731
10732fi
10733fi
10734ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10735if test -n "$ac_ct_MANIFEST_TOOL"; then
10736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10737$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10738else
10739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740$as_echo "no" >&6; }
10741fi
10742
10743  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10744    MANIFEST_TOOL=":"
10745  else
10746    case $cross_compiling:$ac_tool_warned in
10747yes:)
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10750ac_tool_warned=yes ;;
10751esac
10752    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10753  fi
10754else
10755  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10756fi
10757
10758test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10760$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10761if ${lt_cv_path_mainfest_tool+:} false; then :
10762  $as_echo_n "(cached) " >&6
10763else
10764  lt_cv_path_mainfest_tool=no
10765  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10766  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10767  cat conftest.err >&5
10768  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10769    lt_cv_path_mainfest_tool=yes
10770  fi
10771  rm -f conftest*
10772fi
10773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10774$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10775if test yes != "$lt_cv_path_mainfest_tool"; then
10776  MANIFEST_TOOL=:
10777fi
10778
10779
10780
10781
10782
10783
10784  case $host_os in
10785    rhapsody* | darwin*)
10786    if test -n "$ac_tool_prefix"; then
10787  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10788set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10790$as_echo_n "checking for $ac_word... " >&6; }
10791if ${ac_cv_prog_DSYMUTIL+:} false; then :
10792  $as_echo_n "(cached) " >&6
10793else
10794  if test -n "$DSYMUTIL"; then
10795  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10796else
10797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798for as_dir in $PATH
10799do
10800  IFS=$as_save_IFS
10801  test -z "$as_dir" && as_dir=.
10802    for ac_exec_ext in '' $ac_executable_extensions; do
10803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10806    break 2
10807  fi
10808done
10809  done
10810IFS=$as_save_IFS
10811
10812fi
10813fi
10814DSYMUTIL=$ac_cv_prog_DSYMUTIL
10815if test -n "$DSYMUTIL"; then
10816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10817$as_echo "$DSYMUTIL" >&6; }
10818else
10819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820$as_echo "no" >&6; }
10821fi
10822
10823
10824fi
10825if test -z "$ac_cv_prog_DSYMUTIL"; then
10826  ac_ct_DSYMUTIL=$DSYMUTIL
10827  # Extract the first word of "dsymutil", so it can be a program name with args.
10828set dummy dsymutil; ac_word=$2
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830$as_echo_n "checking for $ac_word... " >&6; }
10831if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10832  $as_echo_n "(cached) " >&6
10833else
10834  if test -n "$ac_ct_DSYMUTIL"; then
10835  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10836else
10837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838for as_dir in $PATH
10839do
10840  IFS=$as_save_IFS
10841  test -z "$as_dir" && as_dir=.
10842    for ac_exec_ext in '' $ac_executable_extensions; do
10843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10844    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846    break 2
10847  fi
10848done
10849  done
10850IFS=$as_save_IFS
10851
10852fi
10853fi
10854ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10855if test -n "$ac_ct_DSYMUTIL"; then
10856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10857$as_echo "$ac_ct_DSYMUTIL" >&6; }
10858else
10859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860$as_echo "no" >&6; }
10861fi
10862
10863  if test "x$ac_ct_DSYMUTIL" = x; then
10864    DSYMUTIL=":"
10865  else
10866    case $cross_compiling:$ac_tool_warned in
10867yes:)
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10870ac_tool_warned=yes ;;
10871esac
10872    DSYMUTIL=$ac_ct_DSYMUTIL
10873  fi
10874else
10875  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10876fi
10877
10878    if test -n "$ac_tool_prefix"; then
10879  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10880set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882$as_echo_n "checking for $ac_word... " >&6; }
10883if ${ac_cv_prog_NMEDIT+:} false; then :
10884  $as_echo_n "(cached) " >&6
10885else
10886  if test -n "$NMEDIT"; then
10887  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10888else
10889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890for as_dir in $PATH
10891do
10892  IFS=$as_save_IFS
10893  test -z "$as_dir" && as_dir=.
10894    for ac_exec_ext in '' $ac_executable_extensions; do
10895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10896    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10898    break 2
10899  fi
10900done
10901  done
10902IFS=$as_save_IFS
10903
10904fi
10905fi
10906NMEDIT=$ac_cv_prog_NMEDIT
10907if test -n "$NMEDIT"; then
10908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10909$as_echo "$NMEDIT" >&6; }
10910else
10911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10912$as_echo "no" >&6; }
10913fi
10914
10915
10916fi
10917if test -z "$ac_cv_prog_NMEDIT"; then
10918  ac_ct_NMEDIT=$NMEDIT
10919  # Extract the first word of "nmedit", so it can be a program name with args.
10920set dummy nmedit; ac_word=$2
10921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10922$as_echo_n "checking for $ac_word... " >&6; }
10923if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10924  $as_echo_n "(cached) " >&6
10925else
10926  if test -n "$ac_ct_NMEDIT"; then
10927  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10928else
10929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930for as_dir in $PATH
10931do
10932  IFS=$as_save_IFS
10933  test -z "$as_dir" && as_dir=.
10934    for ac_exec_ext in '' $ac_executable_extensions; do
10935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10936    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10938    break 2
10939  fi
10940done
10941  done
10942IFS=$as_save_IFS
10943
10944fi
10945fi
10946ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10947if test -n "$ac_ct_NMEDIT"; then
10948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10949$as_echo "$ac_ct_NMEDIT" >&6; }
10950else
10951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10952$as_echo "no" >&6; }
10953fi
10954
10955  if test "x$ac_ct_NMEDIT" = x; then
10956    NMEDIT=":"
10957  else
10958    case $cross_compiling:$ac_tool_warned in
10959yes:)
10960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10962ac_tool_warned=yes ;;
10963esac
10964    NMEDIT=$ac_ct_NMEDIT
10965  fi
10966else
10967  NMEDIT="$ac_cv_prog_NMEDIT"
10968fi
10969
10970    if test -n "$ac_tool_prefix"; then
10971  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10972set dummy ${ac_tool_prefix}lipo; ac_word=$2
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974$as_echo_n "checking for $ac_word... " >&6; }
10975if ${ac_cv_prog_LIPO+:} false; then :
10976  $as_echo_n "(cached) " >&6
10977else
10978  if test -n "$LIPO"; then
10979  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10980else
10981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982for as_dir in $PATH
10983do
10984  IFS=$as_save_IFS
10985  test -z "$as_dir" && as_dir=.
10986    for ac_exec_ext in '' $ac_executable_extensions; do
10987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10988    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10990    break 2
10991  fi
10992done
10993  done
10994IFS=$as_save_IFS
10995
10996fi
10997fi
10998LIPO=$ac_cv_prog_LIPO
10999if test -n "$LIPO"; then
11000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11001$as_echo "$LIPO" >&6; }
11002else
11003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004$as_echo "no" >&6; }
11005fi
11006
11007
11008fi
11009if test -z "$ac_cv_prog_LIPO"; then
11010  ac_ct_LIPO=$LIPO
11011  # Extract the first word of "lipo", so it can be a program name with args.
11012set dummy lipo; ac_word=$2
11013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11014$as_echo_n "checking for $ac_word... " >&6; }
11015if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11016  $as_echo_n "(cached) " >&6
11017else
11018  if test -n "$ac_ct_LIPO"; then
11019  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11020else
11021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11022for as_dir in $PATH
11023do
11024  IFS=$as_save_IFS
11025  test -z "$as_dir" && as_dir=.
11026    for ac_exec_ext in '' $ac_executable_extensions; do
11027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11028    ac_cv_prog_ac_ct_LIPO="lipo"
11029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11030    break 2
11031  fi
11032done
11033  done
11034IFS=$as_save_IFS
11035
11036fi
11037fi
11038ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11039if test -n "$ac_ct_LIPO"; then
11040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11041$as_echo "$ac_ct_LIPO" >&6; }
11042else
11043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044$as_echo "no" >&6; }
11045fi
11046
11047  if test "x$ac_ct_LIPO" = x; then
11048    LIPO=":"
11049  else
11050    case $cross_compiling:$ac_tool_warned in
11051yes:)
11052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11054ac_tool_warned=yes ;;
11055esac
11056    LIPO=$ac_ct_LIPO
11057  fi
11058else
11059  LIPO="$ac_cv_prog_LIPO"
11060fi
11061
11062    if test -n "$ac_tool_prefix"; then
11063  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11064set dummy ${ac_tool_prefix}otool; ac_word=$2
11065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11066$as_echo_n "checking for $ac_word... " >&6; }
11067if ${ac_cv_prog_OTOOL+:} false; then :
11068  $as_echo_n "(cached) " >&6
11069else
11070  if test -n "$OTOOL"; then
11071  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11072else
11073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074for as_dir in $PATH
11075do
11076  IFS=$as_save_IFS
11077  test -z "$as_dir" && as_dir=.
11078    for ac_exec_ext in '' $ac_executable_extensions; do
11079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11080    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11082    break 2
11083  fi
11084done
11085  done
11086IFS=$as_save_IFS
11087
11088fi
11089fi
11090OTOOL=$ac_cv_prog_OTOOL
11091if test -n "$OTOOL"; then
11092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11093$as_echo "$OTOOL" >&6; }
11094else
11095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096$as_echo "no" >&6; }
11097fi
11098
11099
11100fi
11101if test -z "$ac_cv_prog_OTOOL"; then
11102  ac_ct_OTOOL=$OTOOL
11103  # Extract the first word of "otool", so it can be a program name with args.
11104set dummy otool; ac_word=$2
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11106$as_echo_n "checking for $ac_word... " >&6; }
11107if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11108  $as_echo_n "(cached) " >&6
11109else
11110  if test -n "$ac_ct_OTOOL"; then
11111  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11112else
11113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114for as_dir in $PATH
11115do
11116  IFS=$as_save_IFS
11117  test -z "$as_dir" && as_dir=.
11118    for ac_exec_ext in '' $ac_executable_extensions; do
11119  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11120    ac_cv_prog_ac_ct_OTOOL="otool"
11121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122    break 2
11123  fi
11124done
11125  done
11126IFS=$as_save_IFS
11127
11128fi
11129fi
11130ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11131if test -n "$ac_ct_OTOOL"; then
11132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11133$as_echo "$ac_ct_OTOOL" >&6; }
11134else
11135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136$as_echo "no" >&6; }
11137fi
11138
11139  if test "x$ac_ct_OTOOL" = x; then
11140    OTOOL=":"
11141  else
11142    case $cross_compiling:$ac_tool_warned in
11143yes:)
11144{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11145$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11146ac_tool_warned=yes ;;
11147esac
11148    OTOOL=$ac_ct_OTOOL
11149  fi
11150else
11151  OTOOL="$ac_cv_prog_OTOOL"
11152fi
11153
11154    if test -n "$ac_tool_prefix"; then
11155  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11156set dummy ${ac_tool_prefix}otool64; ac_word=$2
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11158$as_echo_n "checking for $ac_word... " >&6; }
11159if ${ac_cv_prog_OTOOL64+:} false; then :
11160  $as_echo_n "(cached) " >&6
11161else
11162  if test -n "$OTOOL64"; then
11163  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11164else
11165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166for as_dir in $PATH
11167do
11168  IFS=$as_save_IFS
11169  test -z "$as_dir" && as_dir=.
11170    for ac_exec_ext in '' $ac_executable_extensions; do
11171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11172    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11174    break 2
11175  fi
11176done
11177  done
11178IFS=$as_save_IFS
11179
11180fi
11181fi
11182OTOOL64=$ac_cv_prog_OTOOL64
11183if test -n "$OTOOL64"; then
11184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11185$as_echo "$OTOOL64" >&6; }
11186else
11187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188$as_echo "no" >&6; }
11189fi
11190
11191
11192fi
11193if test -z "$ac_cv_prog_OTOOL64"; then
11194  ac_ct_OTOOL64=$OTOOL64
11195  # Extract the first word of "otool64", so it can be a program name with args.
11196set dummy otool64; ac_word=$2
11197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11198$as_echo_n "checking for $ac_word... " >&6; }
11199if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11200  $as_echo_n "(cached) " >&6
11201else
11202  if test -n "$ac_ct_OTOOL64"; then
11203  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11204else
11205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11206for as_dir in $PATH
11207do
11208  IFS=$as_save_IFS
11209  test -z "$as_dir" && as_dir=.
11210    for ac_exec_ext in '' $ac_executable_extensions; do
11211  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11212    ac_cv_prog_ac_ct_OTOOL64="otool64"
11213    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11214    break 2
11215  fi
11216done
11217  done
11218IFS=$as_save_IFS
11219
11220fi
11221fi
11222ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11223if test -n "$ac_ct_OTOOL64"; then
11224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11225$as_echo "$ac_ct_OTOOL64" >&6; }
11226else
11227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228$as_echo "no" >&6; }
11229fi
11230
11231  if test "x$ac_ct_OTOOL64" = x; then
11232    OTOOL64=":"
11233  else
11234    case $cross_compiling:$ac_tool_warned in
11235yes:)
11236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11238ac_tool_warned=yes ;;
11239esac
11240    OTOOL64=$ac_ct_OTOOL64
11241  fi
11242else
11243  OTOOL64="$ac_cv_prog_OTOOL64"
11244fi
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11273$as_echo_n "checking for -single_module linker flag... " >&6; }
11274if ${lt_cv_apple_cc_single_mod+:} false; then :
11275  $as_echo_n "(cached) " >&6
11276else
11277  lt_cv_apple_cc_single_mod=no
11278      if test -z "$LT_MULTI_MODULE"; then
11279	# By default we will add the -single_module flag. You can override
11280	# by either setting the environment variable LT_MULTI_MODULE
11281	# non-empty at configure time, or by adding -multi_module to the
11282	# link flags.
11283	rm -rf libconftest.dylib*
11284	echo "int foo(void){return 1;}" > conftest.c
11285	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11286-dynamiclib -Wl,-single_module conftest.c" >&5
11287	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11288	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11289        _lt_result=$?
11290	# If there is a non-empty error log, and "single_module"
11291	# appears in it, assume the flag caused a linker warning
11292        if test -s conftest.err && $GREP single_module conftest.err; then
11293	  cat conftest.err >&5
11294	# Otherwise, if the output was created with a 0 exit code from
11295	# the compiler, it worked.
11296	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11297	  lt_cv_apple_cc_single_mod=yes
11298	else
11299	  cat conftest.err >&5
11300	fi
11301	rm -rf libconftest.dylib*
11302	rm -f conftest.*
11303      fi
11304fi
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11306$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11307
11308    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11309$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11310if ${lt_cv_ld_exported_symbols_list+:} false; then :
11311  $as_echo_n "(cached) " >&6
11312else
11313  lt_cv_ld_exported_symbols_list=no
11314      save_LDFLAGS=$LDFLAGS
11315      echo "_main" > conftest.sym
11316      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11317      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318/* end confdefs.h.  */
11319
11320int
11321main ()
11322{
11323
11324  ;
11325  return 0;
11326}
11327_ACEOF
11328if ac_fn_c_try_link "$LINENO"; then :
11329  lt_cv_ld_exported_symbols_list=yes
11330else
11331  lt_cv_ld_exported_symbols_list=no
11332fi
11333rm -f core conftest.err conftest.$ac_objext \
11334    conftest$ac_exeext conftest.$ac_ext
11335	LDFLAGS=$save_LDFLAGS
11336
11337fi
11338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11339$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11340
11341    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11342$as_echo_n "checking for -force_load linker flag... " >&6; }
11343if ${lt_cv_ld_force_load+:} false; then :
11344  $as_echo_n "(cached) " >&6
11345else
11346  lt_cv_ld_force_load=no
11347      cat > conftest.c << _LT_EOF
11348int forced_loaded() { return 2;}
11349_LT_EOF
11350      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11351      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11352      echo "$AR cru libconftest.a conftest.o" >&5
11353      $AR cru libconftest.a conftest.o 2>&5
11354      echo "$RANLIB libconftest.a" >&5
11355      $RANLIB libconftest.a 2>&5
11356      cat > conftest.c << _LT_EOF
11357int main() { return 0;}
11358_LT_EOF
11359      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11360      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11361      _lt_result=$?
11362      if test -s conftest.err && $GREP force_load conftest.err; then
11363	cat conftest.err >&5
11364      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11365	lt_cv_ld_force_load=yes
11366      else
11367	cat conftest.err >&5
11368      fi
11369        rm -f conftest.err libconftest.a conftest conftest.c
11370        rm -rf conftest.dSYM
11371
11372fi
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11374$as_echo "$lt_cv_ld_force_load" >&6; }
11375    case $host_os in
11376    rhapsody* | darwin1.[012])
11377      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11378    darwin1.*)
11379      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11380    darwin*)
11381      case ${MACOSX_DEPLOYMENT_TARGET},$host in
11382       10.[012],*|,*powerpc*)
11383	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11384       *)
11385	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11386      esac
11387    ;;
11388  esac
11389    if test yes = "$lt_cv_apple_cc_single_mod"; then
11390      _lt_dar_single_mod='$single_module'
11391    fi
11392    if test yes = "$lt_cv_ld_exported_symbols_list"; then
11393      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11394    else
11395      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11396    fi
11397    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11398      _lt_dsymutil='~$DSYMUTIL $lib || :'
11399    else
11400      _lt_dsymutil=
11401    fi
11402    ;;
11403  esac
11404
11405# func_munge_path_list VARIABLE PATH
11406# -----------------------------------
11407# VARIABLE is name of variable containing _space_ separated list of
11408# directories to be munged by the contents of PATH, which is string
11409# having a format:
11410# "DIR[:DIR]:"
11411#       string "DIR[ DIR]" will be prepended to VARIABLE
11412# ":DIR[:DIR]"
11413#       string "DIR[ DIR]" will be appended to VARIABLE
11414# "DIRP[:DIRP]::[DIRA:]DIRA"
11415#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11416#       "DIRA[ DIRA]" will be appended to VARIABLE
11417# "DIR[:DIR]"
11418#       VARIABLE will be replaced by "DIR[ DIR]"
11419func_munge_path_list ()
11420{
11421    case x$2 in
11422    x)
11423        ;;
11424    *:)
11425        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11426        ;;
11427    x:*)
11428        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11429        ;;
11430    *::*)
11431        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11432        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11433        ;;
11434    *)
11435        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11436        ;;
11437    esac
11438}
11439
11440for ac_header in dlfcn.h
11441do :
11442  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11443"
11444if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11445  cat >>confdefs.h <<_ACEOF
11446#define HAVE_DLFCN_H 1
11447_ACEOF
11448
11449fi
11450
11451done
11452
11453
11454
11455
11456
11457# Set options
11458
11459
11460
11461        enable_dlopen=no
11462
11463
11464  enable_win32_dll=no
11465
11466
11467            # Check whether --enable-shared was given.
11468if test "${enable_shared+set}" = set; then :
11469  enableval=$enable_shared; p=${PACKAGE-default}
11470    case $enableval in
11471    yes) enable_shared=yes ;;
11472    no) enable_shared=no ;;
11473    *)
11474      enable_shared=no
11475      # Look at the argument we got.  We use all the common list separators.
11476      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11477      for pkg in $enableval; do
11478	IFS=$lt_save_ifs
11479	if test "X$pkg" = "X$p"; then
11480	  enable_shared=yes
11481	fi
11482      done
11483      IFS=$lt_save_ifs
11484      ;;
11485    esac
11486else
11487  enable_shared=yes
11488fi
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498  # Check whether --enable-static was given.
11499if test "${enable_static+set}" = set; then :
11500  enableval=$enable_static; p=${PACKAGE-default}
11501    case $enableval in
11502    yes) enable_static=yes ;;
11503    no) enable_static=no ;;
11504    *)
11505     enable_static=no
11506      # Look at the argument we got.  We use all the common list separators.
11507      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11508      for pkg in $enableval; do
11509	IFS=$lt_save_ifs
11510	if test "X$pkg" = "X$p"; then
11511	  enable_static=yes
11512	fi
11513      done
11514      IFS=$lt_save_ifs
11515      ;;
11516    esac
11517else
11518  enable_static=yes
11519fi
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530# Check whether --with-pic was given.
11531if test "${with_pic+set}" = set; then :
11532  withval=$with_pic; lt_p=${PACKAGE-default}
11533    case $withval in
11534    yes|no) pic_mode=$withval ;;
11535    *)
11536      pic_mode=default
11537      # Look at the argument we got.  We use all the common list separators.
11538      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11539      for lt_pkg in $withval; do
11540	IFS=$lt_save_ifs
11541	if test "X$lt_pkg" = "X$lt_p"; then
11542	  pic_mode=yes
11543	fi
11544      done
11545      IFS=$lt_save_ifs
11546      ;;
11547    esac
11548else
11549  pic_mode=default
11550fi
11551
11552
11553
11554
11555
11556
11557
11558
11559  # Check whether --enable-fast-install was given.
11560if test "${enable_fast_install+set}" = set; then :
11561  enableval=$enable_fast_install; p=${PACKAGE-default}
11562    case $enableval in
11563    yes) enable_fast_install=yes ;;
11564    no) enable_fast_install=no ;;
11565    *)
11566      enable_fast_install=no
11567      # Look at the argument we got.  We use all the common list separators.
11568      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11569      for pkg in $enableval; do
11570	IFS=$lt_save_ifs
11571	if test "X$pkg" = "X$p"; then
11572	  enable_fast_install=yes
11573	fi
11574      done
11575      IFS=$lt_save_ifs
11576      ;;
11577    esac
11578else
11579  enable_fast_install=yes
11580fi
11581
11582
11583
11584
11585
11586
11587
11588
11589  shared_archive_member_spec=
11590case $host,$enable_shared in
11591power*-*-aix[5-9]*,yes)
11592  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11593$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11594
11595# Check whether --with-aix-soname was given.
11596if test "${with_aix_soname+set}" = set; then :
11597  withval=$with_aix_soname; case $withval in
11598    aix|svr4|both)
11599      ;;
11600    *)
11601      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11602      ;;
11603    esac
11604    lt_cv_with_aix_soname=$with_aix_soname
11605else
11606  if ${lt_cv_with_aix_soname+:} false; then :
11607  $as_echo_n "(cached) " >&6
11608else
11609  lt_cv_with_aix_soname=aix
11610fi
11611
11612    with_aix_soname=$lt_cv_with_aix_soname
11613fi
11614
11615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11616$as_echo "$with_aix_soname" >&6; }
11617  if test aix != "$with_aix_soname"; then
11618    # For the AIX way of multilib, we name the shared archive member
11619    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11620    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11621    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11622    # the AIX toolchain works better with OBJECT_MODE set (default 32).
11623    if test 64 = "${OBJECT_MODE-32}"; then
11624      shared_archive_member_spec=shr_64
11625    else
11626      shared_archive_member_spec=shr
11627    fi
11628  fi
11629  ;;
11630*)
11631  with_aix_soname=aix
11632  ;;
11633esac
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644# This can be used to rebuild libtool when needed
11645LIBTOOL_DEPS=$ltmain
11646
11647# Always use our own libtool.
11648LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679test -z "$LN_S" && LN_S="ln -s"
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694if test -n "${ZSH_VERSION+set}"; then
11695   setopt NO_GLOB_SUBST
11696fi
11697
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11699$as_echo_n "checking for objdir... " >&6; }
11700if ${lt_cv_objdir+:} false; then :
11701  $as_echo_n "(cached) " >&6
11702else
11703  rm -f .libs 2>/dev/null
11704mkdir .libs 2>/dev/null
11705if test -d .libs; then
11706  lt_cv_objdir=.libs
11707else
11708  # MS-DOS does not allow filenames that begin with a dot.
11709  lt_cv_objdir=_libs
11710fi
11711rmdir .libs 2>/dev/null
11712fi
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11714$as_echo "$lt_cv_objdir" >&6; }
11715objdir=$lt_cv_objdir
11716
11717
11718
11719
11720
11721cat >>confdefs.h <<_ACEOF
11722#define LT_OBJDIR "$lt_cv_objdir/"
11723_ACEOF
11724
11725
11726
11727
11728case $host_os in
11729aix3*)
11730  # AIX sometimes has problems with the GCC collect2 program.  For some
11731  # reason, if we set the COLLECT_NAMES environment variable, the problems
11732  # vanish in a puff of smoke.
11733  if test set != "${COLLECT_NAMES+set}"; then
11734    COLLECT_NAMES=
11735    export COLLECT_NAMES
11736  fi
11737  ;;
11738esac
11739
11740# Global variables:
11741ofile=libtool
11742can_build_shared=yes
11743
11744# All known linkers require a '.a' archive for static linking (except MSVC,
11745# which needs '.lib').
11746libext=a
11747
11748with_gnu_ld=$lt_cv_prog_gnu_ld
11749
11750old_CC=$CC
11751old_CFLAGS=$CFLAGS
11752
11753# Set sane defaults for various variables
11754test -z "$CC" && CC=cc
11755test -z "$LTCC" && LTCC=$CC
11756test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11757test -z "$LD" && LD=ld
11758test -z "$ac_objext" && ac_objext=o
11759
11760func_cc_basename $compiler
11761cc_basename=$func_cc_basename_result
11762
11763
11764# Only perform the check for file, if the check method requires it
11765test -z "$MAGIC_CMD" && MAGIC_CMD=file
11766case $deplibs_check_method in
11767file_magic*)
11768  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11769    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11770$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11771if ${lt_cv_path_MAGIC_CMD+:} false; then :
11772  $as_echo_n "(cached) " >&6
11773else
11774  case $MAGIC_CMD in
11775[\\/*] |  ?:[\\/]*)
11776  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11777  ;;
11778*)
11779  lt_save_MAGIC_CMD=$MAGIC_CMD
11780  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11781  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11782  for ac_dir in $ac_dummy; do
11783    IFS=$lt_save_ifs
11784    test -z "$ac_dir" && ac_dir=.
11785    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11786      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11787      if test -n "$file_magic_test_file"; then
11788	case $deplibs_check_method in
11789	"file_magic "*)
11790	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11791	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11792	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11793	    $EGREP "$file_magic_regex" > /dev/null; then
11794	    :
11795	  else
11796	    cat <<_LT_EOF 1>&2
11797
11798*** Warning: the command libtool uses to detect shared libraries,
11799*** $file_magic_cmd, produces output that libtool cannot recognize.
11800*** The result is that libtool may fail to recognize shared libraries
11801*** as such.  This will affect the creation of libtool libraries that
11802*** depend on shared libraries, but programs linked with such libtool
11803*** libraries will work regardless of this problem.  Nevertheless, you
11804*** may want to report the problem to your system manager and/or to
11805*** bug-libtool@gnu.org
11806
11807_LT_EOF
11808	  fi ;;
11809	esac
11810      fi
11811      break
11812    fi
11813  done
11814  IFS=$lt_save_ifs
11815  MAGIC_CMD=$lt_save_MAGIC_CMD
11816  ;;
11817esac
11818fi
11819
11820MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11821if test -n "$MAGIC_CMD"; then
11822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11823$as_echo "$MAGIC_CMD" >&6; }
11824else
11825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826$as_echo "no" >&6; }
11827fi
11828
11829
11830
11831
11832
11833if test -z "$lt_cv_path_MAGIC_CMD"; then
11834  if test -n "$ac_tool_prefix"; then
11835    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11836$as_echo_n "checking for file... " >&6; }
11837if ${lt_cv_path_MAGIC_CMD+:} false; then :
11838  $as_echo_n "(cached) " >&6
11839else
11840  case $MAGIC_CMD in
11841[\\/*] |  ?:[\\/]*)
11842  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11843  ;;
11844*)
11845  lt_save_MAGIC_CMD=$MAGIC_CMD
11846  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11847  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11848  for ac_dir in $ac_dummy; do
11849    IFS=$lt_save_ifs
11850    test -z "$ac_dir" && ac_dir=.
11851    if test -f "$ac_dir/file"; then
11852      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11853      if test -n "$file_magic_test_file"; then
11854	case $deplibs_check_method in
11855	"file_magic "*)
11856	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11857	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11858	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11859	    $EGREP "$file_magic_regex" > /dev/null; then
11860	    :
11861	  else
11862	    cat <<_LT_EOF 1>&2
11863
11864*** Warning: the command libtool uses to detect shared libraries,
11865*** $file_magic_cmd, produces output that libtool cannot recognize.
11866*** The result is that libtool may fail to recognize shared libraries
11867*** as such.  This will affect the creation of libtool libraries that
11868*** depend on shared libraries, but programs linked with such libtool
11869*** libraries will work regardless of this problem.  Nevertheless, you
11870*** may want to report the problem to your system manager and/or to
11871*** bug-libtool@gnu.org
11872
11873_LT_EOF
11874	  fi ;;
11875	esac
11876      fi
11877      break
11878    fi
11879  done
11880  IFS=$lt_save_ifs
11881  MAGIC_CMD=$lt_save_MAGIC_CMD
11882  ;;
11883esac
11884fi
11885
11886MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11887if test -n "$MAGIC_CMD"; then
11888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11889$as_echo "$MAGIC_CMD" >&6; }
11890else
11891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892$as_echo "no" >&6; }
11893fi
11894
11895
11896  else
11897    MAGIC_CMD=:
11898  fi
11899fi
11900
11901  fi
11902  ;;
11903esac
11904
11905# Use C for the default configuration in the libtool script
11906
11907lt_save_CC=$CC
11908ac_ext=c
11909ac_cpp='$CPP $CPPFLAGS'
11910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11912ac_compiler_gnu=$ac_cv_c_compiler_gnu
11913
11914
11915# Source file extension for C test sources.
11916ac_ext=c
11917
11918# Object file extension for compiled C test sources.
11919objext=o
11920objext=$objext
11921
11922# Code to be used in simple compile tests
11923lt_simple_compile_test_code="int some_variable = 0;"
11924
11925# Code to be used in simple link tests
11926lt_simple_link_test_code='int main(){return(0);}'
11927
11928
11929
11930
11931
11932
11933
11934# If no C compiler was specified, use CC.
11935LTCC=${LTCC-"$CC"}
11936
11937# If no C compiler flags were specified, use CFLAGS.
11938LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11939
11940# Allow CC to be a program name with arguments.
11941compiler=$CC
11942
11943# Save the default compiler, since it gets overwritten when the other
11944# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11945compiler_DEFAULT=$CC
11946
11947# save warnings/boilerplate of simple test code
11948ac_outfile=conftest.$ac_objext
11949echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11950eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11951_lt_compiler_boilerplate=`cat conftest.err`
11952$RM conftest*
11953
11954ac_outfile=conftest.$ac_objext
11955echo "$lt_simple_link_test_code" >conftest.$ac_ext
11956eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11957_lt_linker_boilerplate=`cat conftest.err`
11958$RM -r conftest*
11959
11960
11961## CAVEAT EMPTOR:
11962## There is no encapsulation within the following macros, do not change
11963## the running order or otherwise move them around unless you know exactly
11964## what you are doing...
11965if test -n "$compiler"; then
11966
11967lt_prog_compiler_no_builtin_flag=
11968
11969if test yes = "$GCC"; then
11970  case $cc_basename in
11971  nvcc*)
11972    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11973  *)
11974    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11975  esac
11976
11977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11978$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11979if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11980  $as_echo_n "(cached) " >&6
11981else
11982  lt_cv_prog_compiler_rtti_exceptions=no
11983   ac_outfile=conftest.$ac_objext
11984   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11985   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11986   # Insert the option either (1) after the last *FLAGS variable, or
11987   # (2) before a word containing "conftest.", or (3) at the end.
11988   # Note that $ac_compile itself does not contain backslashes and begins
11989   # with a dollar sign (not a hyphen), so the echo should work correctly.
11990   # The option is referenced via a variable to avoid confusing sed.
11991   lt_compile=`echo "$ac_compile" | $SED \
11992   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11993   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11994   -e 's:$: $lt_compiler_flag:'`
11995   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11996   (eval "$lt_compile" 2>conftest.err)
11997   ac_status=$?
11998   cat conftest.err >&5
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   if (exit $ac_status) && test -s "$ac_outfile"; then
12001     # The compiler can only warn and ignore the option if not recognized
12002     # So say no if there are warnings other than the usual output.
12003     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12004     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12005     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12006       lt_cv_prog_compiler_rtti_exceptions=yes
12007     fi
12008   fi
12009   $RM conftest*
12010
12011fi
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12013$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12014
12015if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12016    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12017else
12018    :
12019fi
12020
12021fi
12022
12023
12024
12025
12026
12027
12028  lt_prog_compiler_wl=
12029lt_prog_compiler_pic=
12030lt_prog_compiler_static=
12031
12032
12033  if test yes = "$GCC"; then
12034    lt_prog_compiler_wl='-Wl,'
12035    lt_prog_compiler_static='-static'
12036
12037    case $host_os in
12038      aix*)
12039      # All AIX code is PIC.
12040      if test ia64 = "$host_cpu"; then
12041	# AIX 5 now supports IA64 processor
12042	lt_prog_compiler_static='-Bstatic'
12043      fi
12044      lt_prog_compiler_pic='-fPIC'
12045      ;;
12046
12047    amigaos*)
12048      case $host_cpu in
12049      powerpc)
12050            # see comment about AmigaOS4 .so support
12051            lt_prog_compiler_pic='-fPIC'
12052        ;;
12053      m68k)
12054            # FIXME: we need at least 68020 code to build shared libraries, but
12055            # adding the '-m68020' flag to GCC prevents building anything better,
12056            # like '-m68040'.
12057            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12058        ;;
12059      esac
12060      ;;
12061
12062    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12063      # PIC is the default for these OSes.
12064      ;;
12065
12066    mingw* | cygwin* | pw32* | os2* | cegcc*)
12067      # This hack is so that the source file can tell whether it is being
12068      # built for inclusion in a dll (and should export symbols for example).
12069      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12070      # (--disable-auto-import) libraries
12071      lt_prog_compiler_pic='-DDLL_EXPORT'
12072      case $host_os in
12073      os2*)
12074	lt_prog_compiler_static='$wl-static'
12075	;;
12076      esac
12077      ;;
12078
12079    darwin* | rhapsody*)
12080      # PIC is the default on this platform
12081      # Common symbols not allowed in MH_DYLIB files
12082      lt_prog_compiler_pic='-fno-common'
12083      ;;
12084
12085    haiku*)
12086      # PIC is the default for Haiku.
12087      # The "-static" flag exists, but is broken.
12088      lt_prog_compiler_static=
12089      ;;
12090
12091    hpux*)
12092      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12093      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12094      # sets the default TLS model and affects inlining.
12095      case $host_cpu in
12096      hppa*64*)
12097	# +Z the default
12098	;;
12099      *)
12100	lt_prog_compiler_pic='-fPIC'
12101	;;
12102      esac
12103      ;;
12104
12105    interix[3-9]*)
12106      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12107      # Instead, we relocate shared libraries at runtime.
12108      ;;
12109
12110    msdosdjgpp*)
12111      # Just because we use GCC doesn't mean we suddenly get shared libraries
12112      # on systems that don't support them.
12113      lt_prog_compiler_can_build_shared=no
12114      enable_shared=no
12115      ;;
12116
12117    *nto* | *qnx*)
12118      # QNX uses GNU C++, but need to define -shared option too, otherwise
12119      # it will coredump.
12120      lt_prog_compiler_pic='-fPIC -shared'
12121      ;;
12122
12123    sysv4*MP*)
12124      if test -d /usr/nec; then
12125	lt_prog_compiler_pic=-Kconform_pic
12126      fi
12127      ;;
12128
12129    *)
12130      lt_prog_compiler_pic='-fPIC'
12131      ;;
12132    esac
12133
12134    case $cc_basename in
12135    nvcc*) # Cuda Compiler Driver 2.2
12136      lt_prog_compiler_wl='-Xlinker '
12137      if test -n "$lt_prog_compiler_pic"; then
12138        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12139      fi
12140      ;;
12141    esac
12142  else
12143    # PORTME Check for flag to pass linker flags through the system compiler.
12144    case $host_os in
12145    aix*)
12146      lt_prog_compiler_wl='-Wl,'
12147      if test ia64 = "$host_cpu"; then
12148	# AIX 5 now supports IA64 processor
12149	lt_prog_compiler_static='-Bstatic'
12150      else
12151	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12152      fi
12153      ;;
12154
12155    darwin* | rhapsody*)
12156      # PIC is the default on this platform
12157      # Common symbols not allowed in MH_DYLIB files
12158      lt_prog_compiler_pic='-fno-common'
12159      case $cc_basename in
12160      nagfor*)
12161        # NAG Fortran compiler
12162        lt_prog_compiler_wl='-Wl,-Wl,,'
12163        lt_prog_compiler_pic='-PIC'
12164        lt_prog_compiler_static='-Bstatic'
12165        ;;
12166      esac
12167      ;;
12168
12169    mingw* | cygwin* | pw32* | os2* | cegcc*)
12170      # This hack is so that the source file can tell whether it is being
12171      # built for inclusion in a dll (and should export symbols for example).
12172      lt_prog_compiler_pic='-DDLL_EXPORT'
12173      case $host_os in
12174      os2*)
12175	lt_prog_compiler_static='$wl-static'
12176	;;
12177      esac
12178      ;;
12179
12180    hpux9* | hpux10* | hpux11*)
12181      lt_prog_compiler_wl='-Wl,'
12182      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12183      # not for PA HP-UX.
12184      case $host_cpu in
12185      hppa*64*|ia64*)
12186	# +Z the default
12187	;;
12188      *)
12189	lt_prog_compiler_pic='+Z'
12190	;;
12191      esac
12192      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12193      lt_prog_compiler_static='$wl-a ${wl}archive'
12194      ;;
12195
12196    irix5* | irix6* | nonstopux*)
12197      lt_prog_compiler_wl='-Wl,'
12198      # PIC (with -KPIC) is the default.
12199      lt_prog_compiler_static='-non_shared'
12200      ;;
12201
12202    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12203      case $cc_basename in
12204      # old Intel for x86_64, which still supported -KPIC.
12205      ecc*)
12206	lt_prog_compiler_wl='-Wl,'
12207	lt_prog_compiler_pic='-KPIC'
12208	lt_prog_compiler_static='-static'
12209        ;;
12210      # flang / f18
12211      flang* | f18*)
12212       lt_prog_compiler_wl='-Wl,'
12213       lt_prog_compiler_pic='-fPIC'
12214       lt_prog_compiler_static='-static'
12215        ;;
12216      # icc used to be incompatible with GCC.
12217      # ICC 10 doesn't accept -KPIC any more.
12218      icc* | ifort*)
12219	lt_prog_compiler_wl='-Wl,'
12220	lt_prog_compiler_pic='-fPIC'
12221	lt_prog_compiler_static='-static'
12222        ;;
12223      # Lahey Fortran 8.1.
12224      lf95*)
12225	lt_prog_compiler_wl='-Wl,'
12226	lt_prog_compiler_pic='--shared'
12227	lt_prog_compiler_static='--static'
12228	;;
12229      nagfor*)
12230	# NAG Fortran compiler
12231	lt_prog_compiler_wl='-Wl,-Wl,,'
12232	lt_prog_compiler_pic='-PIC'
12233	lt_prog_compiler_static='-Bstatic'
12234	;;
12235      tcc*)
12236	# Fabrice Bellard et al's Tiny C Compiler
12237	lt_prog_compiler_wl='-Wl,'
12238	lt_prog_compiler_pic='-fPIC'
12239	lt_prog_compiler_static='-static'
12240	;;
12241      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12242        # Portland Group compilers (*not* the Pentium gcc compiler,
12243	# which looks to be a dead project)
12244	lt_prog_compiler_wl='-Wl,'
12245	lt_prog_compiler_pic='-fpic'
12246	lt_prog_compiler_static='-Bstatic'
12247        ;;
12248      ccc*)
12249        lt_prog_compiler_wl='-Wl,'
12250        # All Alpha code is PIC.
12251        lt_prog_compiler_static='-non_shared'
12252        ;;
12253      xl* | bgxl* | bgf* | mpixl*)
12254	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12255	lt_prog_compiler_wl='-Wl,'
12256	lt_prog_compiler_pic='-qpic'
12257	lt_prog_compiler_static='-qstaticlink'
12258	;;
12259      armclang* | armclang++* | armflang*)
12260        # ARM LLVM C/C++/Fortran
12261        lt_prog_compiler_wl='-Wl,'
12262        ;;
12263      *)
12264	case `$CC -V 2>&1 | sed 5q` in
12265	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12266	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
12267	  lt_prog_compiler_pic='-KPIC'
12268	  lt_prog_compiler_static='-Bstatic'
12269	  lt_prog_compiler_wl=''
12270	  ;;
12271	*Sun\ F* | *Sun*Fortran* | *Studio*Fortran*)
12272	  lt_prog_compiler_pic='-KPIC'
12273	  lt_prog_compiler_static='-Bstatic'
12274	  lt_prog_compiler_wl='-Qoption ld '
12275	  ;;
12276	*Sun\ C*)
12277	  # Sun C 5.9
12278	  lt_prog_compiler_pic='-KPIC'
12279	  lt_prog_compiler_static='-Bstatic'
12280	  lt_prog_compiler_wl='-Wl,'
12281	  ;;
12282        *Intel*\ [CF]*Compiler*)
12283	  lt_prog_compiler_wl='-Wl,'
12284	  lt_prog_compiler_pic='-fPIC'
12285	  lt_prog_compiler_static='-static'
12286	  ;;
12287	*Portland\ Group*)
12288	  lt_prog_compiler_wl='-Wl,'
12289	  lt_prog_compiler_pic='-fpic'
12290	  lt_prog_compiler_static='-Bstatic'
12291	  ;;
12292	esac
12293	;;
12294      esac
12295      ;;
12296
12297    newsos6)
12298      lt_prog_compiler_pic='-KPIC'
12299      lt_prog_compiler_static='-Bstatic'
12300      ;;
12301
12302    *nto* | *qnx*)
12303      # QNX uses GNU C++, but need to define -shared option too, otherwise
12304      # it will coredump.
12305      lt_prog_compiler_pic='-fPIC -shared'
12306      ;;
12307
12308    osf3* | osf4* | osf5*)
12309      lt_prog_compiler_wl='-Wl,'
12310      # All OSF/1 code is PIC.
12311      lt_prog_compiler_static='-non_shared'
12312      ;;
12313
12314    rdos*)
12315      lt_prog_compiler_static='-non_shared'
12316      ;;
12317
12318    solaris*)
12319      lt_prog_compiler_pic='-KPIC'
12320      lt_prog_compiler_static='-Bstatic'
12321      case $cc_basename in
12322      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12323	lt_prog_compiler_wl='-Qoption ld ';;
12324      *)
12325	lt_prog_compiler_wl='-Wl,';;
12326      esac
12327      ;;
12328
12329    sunos4*)
12330      lt_prog_compiler_wl='-Qoption ld '
12331      lt_prog_compiler_pic='-PIC'
12332      lt_prog_compiler_static='-Bstatic'
12333      ;;
12334
12335    sysv4 | sysv4.2uw2* | sysv4.3*)
12336      lt_prog_compiler_wl='-Wl,'
12337      lt_prog_compiler_pic='-KPIC'
12338      lt_prog_compiler_static='-Bstatic'
12339      ;;
12340
12341    sysv4*MP*)
12342      if test -d /usr/nec; then
12343	lt_prog_compiler_pic='-Kconform_pic'
12344	lt_prog_compiler_static='-Bstatic'
12345      fi
12346      ;;
12347
12348    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12349      lt_prog_compiler_wl='-Wl,'
12350      lt_prog_compiler_pic='-KPIC'
12351      lt_prog_compiler_static='-Bstatic'
12352      ;;
12353
12354    unicos*)
12355      lt_prog_compiler_wl='-Wl,'
12356      lt_prog_compiler_can_build_shared=no
12357      ;;
12358
12359    uts4*)
12360      lt_prog_compiler_pic='-pic'
12361      lt_prog_compiler_static='-Bstatic'
12362      ;;
12363
12364    *)
12365      lt_prog_compiler_can_build_shared=no
12366      ;;
12367    esac
12368  fi
12369
12370case $host_os in
12371  # For platforms that do not support PIC, -DPIC is meaningless:
12372  *djgpp*)
12373    lt_prog_compiler_pic=
12374    ;;
12375  *)
12376    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12377    ;;
12378esac
12379
12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12381$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12382if ${lt_cv_prog_compiler_pic+:} false; then :
12383  $as_echo_n "(cached) " >&6
12384else
12385  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12386fi
12387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12388$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12389lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12390
12391#
12392# Check to make sure the PIC flag actually works.
12393#
12394if test -n "$lt_prog_compiler_pic"; then
12395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12396$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12397if ${lt_cv_prog_compiler_pic_works+:} false; then :
12398  $as_echo_n "(cached) " >&6
12399else
12400  lt_cv_prog_compiler_pic_works=no
12401   ac_outfile=conftest.$ac_objext
12402   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12403   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
12404   # Insert the option either (1) after the last *FLAGS variable, or
12405   # (2) before a word containing "conftest.", or (3) at the end.
12406   # Note that $ac_compile itself does not contain backslashes and begins
12407   # with a dollar sign (not a hyphen), so the echo should work correctly.
12408   # The option is referenced via a variable to avoid confusing sed.
12409   lt_compile=`echo "$ac_compile" | $SED \
12410   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12411   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12412   -e 's:$: $lt_compiler_flag:'`
12413   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12414   (eval "$lt_compile" 2>conftest.err)
12415   ac_status=$?
12416   cat conftest.err >&5
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   if (exit $ac_status) && test -s "$ac_outfile"; then
12419     # The compiler can only warn and ignore the option if not recognized
12420     # So say no if there are warnings other than the usual output.
12421     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12422     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12423     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12424       lt_cv_prog_compiler_pic_works=yes
12425     fi
12426   fi
12427   $RM conftest*
12428
12429fi
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12431$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12432
12433if test yes = "$lt_cv_prog_compiler_pic_works"; then
12434    case $lt_prog_compiler_pic in
12435     "" | " "*) ;;
12436     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12437     esac
12438else
12439    lt_prog_compiler_pic=
12440     lt_prog_compiler_can_build_shared=no
12441fi
12442
12443fi
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455#
12456# Check to make sure the static flag actually works.
12457#
12458wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12460$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12461if ${lt_cv_prog_compiler_static_works+:} false; then :
12462  $as_echo_n "(cached) " >&6
12463else
12464  lt_cv_prog_compiler_static_works=no
12465   save_LDFLAGS=$LDFLAGS
12466   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12467   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12468   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12469     # The linker can only warn and ignore the option if not recognized
12470     # So say no if there are warnings
12471     if test -s conftest.err; then
12472       # Append any errors to the config.log.
12473       cat conftest.err 1>&5
12474       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12475       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12476       if diff conftest.exp conftest.er2 >/dev/null; then
12477         lt_cv_prog_compiler_static_works=yes
12478       fi
12479     else
12480       lt_cv_prog_compiler_static_works=yes
12481     fi
12482   fi
12483   $RM -r conftest*
12484   LDFLAGS=$save_LDFLAGS
12485
12486fi
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12488$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12489
12490if test yes = "$lt_cv_prog_compiler_static_works"; then
12491    :
12492else
12493    lt_prog_compiler_static=
12494fi
12495
12496
12497
12498
12499
12500
12501
12502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12503$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12504if ${lt_cv_prog_compiler_c_o+:} false; then :
12505  $as_echo_n "(cached) " >&6
12506else
12507  lt_cv_prog_compiler_c_o=no
12508   $RM -r conftest 2>/dev/null
12509   mkdir conftest
12510   cd conftest
12511   mkdir out
12512   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12513
12514   lt_compiler_flag="-o out/conftest2.$ac_objext"
12515   # Insert the option either (1) after the last *FLAGS variable, or
12516   # (2) before a word containing "conftest.", or (3) at the end.
12517   # Note that $ac_compile itself does not contain backslashes and begins
12518   # with a dollar sign (not a hyphen), so the echo should work correctly.
12519   lt_compile=`echo "$ac_compile" | $SED \
12520   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12521   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12522   -e 's:$: $lt_compiler_flag:'`
12523   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12524   (eval "$lt_compile" 2>out/conftest.err)
12525   ac_status=$?
12526   cat out/conftest.err >&5
12527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12529   then
12530     # The compiler can only warn and ignore the option if not recognized
12531     # So say no if there are warnings
12532     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12533     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12534     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12535       lt_cv_prog_compiler_c_o=yes
12536     fi
12537   fi
12538   chmod u+w . 2>&5
12539   $RM conftest*
12540   # SGI C++ compiler will create directory out/ii_files/ for
12541   # template instantiation
12542   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12543   $RM out/* && rmdir out
12544   cd ..
12545   $RM -r conftest
12546   $RM conftest*
12547
12548fi
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12550$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12551
12552
12553
12554
12555
12556
12557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12558$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12559if ${lt_cv_prog_compiler_c_o+:} false; then :
12560  $as_echo_n "(cached) " >&6
12561else
12562  lt_cv_prog_compiler_c_o=no
12563   $RM -r conftest 2>/dev/null
12564   mkdir conftest
12565   cd conftest
12566   mkdir out
12567   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12568
12569   lt_compiler_flag="-o out/conftest2.$ac_objext"
12570   # Insert the option either (1) after the last *FLAGS variable, or
12571   # (2) before a word containing "conftest.", or (3) at the end.
12572   # Note that $ac_compile itself does not contain backslashes and begins
12573   # with a dollar sign (not a hyphen), so the echo should work correctly.
12574   lt_compile=`echo "$ac_compile" | $SED \
12575   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12576   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12577   -e 's:$: $lt_compiler_flag:'`
12578   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12579   (eval "$lt_compile" 2>out/conftest.err)
12580   ac_status=$?
12581   cat out/conftest.err >&5
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12584   then
12585     # The compiler can only warn and ignore the option if not recognized
12586     # So say no if there are warnings
12587     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12588     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12589     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12590       lt_cv_prog_compiler_c_o=yes
12591     fi
12592   fi
12593   chmod u+w . 2>&5
12594   $RM conftest*
12595   # SGI C++ compiler will create directory out/ii_files/ for
12596   # template instantiation
12597   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12598   $RM out/* && rmdir out
12599   cd ..
12600   $RM -r conftest
12601   $RM conftest*
12602
12603fi
12604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12605$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12606
12607
12608
12609
12610hard_links=nottested
12611if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12612  # do not overwrite the value of need_locks provided by the user
12613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12614$as_echo_n "checking if we can lock with hard links... " >&6; }
12615  hard_links=yes
12616  $RM conftest*
12617  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12618  touch conftest.a
12619  ln conftest.a conftest.b 2>&5 || hard_links=no
12620  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12622$as_echo "$hard_links" >&6; }
12623  if test no = "$hard_links"; then
12624    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12625$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12626    need_locks=warn
12627  fi
12628else
12629  need_locks=no
12630fi
12631
12632
12633
12634
12635
12636
12637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12638$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12639
12640  runpath_var=
12641  allow_undefined_flag=
12642  always_export_symbols=no
12643  archive_cmds=
12644  archive_expsym_cmds=
12645  compiler_needs_object=no
12646  enable_shared_with_static_runtimes=no
12647  export_dynamic_flag_spec=
12648  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12649  hardcode_automatic=no
12650  hardcode_direct=no
12651  hardcode_direct_absolute=no
12652  hardcode_libdir_flag_spec=
12653  hardcode_libdir_separator=
12654  hardcode_minus_L=no
12655  hardcode_shlibpath_var=unsupported
12656  inherit_rpath=no
12657  link_all_deplibs=unknown
12658  module_cmds=
12659  module_expsym_cmds=
12660  old_archive_from_new_cmds=
12661  old_archive_from_expsyms_cmds=
12662  thread_safe_flag_spec=
12663  whole_archive_flag_spec=
12664  # include_expsyms should be a list of space-separated symbols to be *always*
12665  # included in the symbol list
12666  include_expsyms=
12667  # exclude_expsyms can be an extended regexp of symbols to exclude
12668  # it will be wrapped by ' (' and ')$', so one must not match beginning or
12669  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12670  # as well as any symbol that contains 'd'.
12671  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12672  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12673  # platforms (ab)use it in PIC code, but their linkers get confused if
12674  # the symbol is explicitly referenced.  Since portable code cannot
12675  # rely on this symbol name, it's probably fine to never include it in
12676  # preloaded symbol tables.
12677  # Exclude shared library initialization/finalization symbols.
12678  extract_expsyms_cmds=
12679
12680  case $host_os in
12681  cygwin* | mingw* | pw32* | cegcc*)
12682    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12683    # When not using gcc, we currently assume that we are using
12684    # Microsoft Visual C++.
12685    if test yes != "$GCC"; then
12686      with_gnu_ld=no
12687    fi
12688    ;;
12689  interix*)
12690    # we just hope/assume this is gcc and not c89 (= MSVC++)
12691    with_gnu_ld=yes
12692    ;;
12693  openbsd* | bitrig*)
12694    with_gnu_ld=no
12695    ;;
12696  esac
12697
12698  ld_shlibs=yes
12699
12700  # On some targets, GNU ld is compatible enough with the native linker
12701  # that we're better off using the native interface for both.
12702  lt_use_gnu_ld_interface=no
12703  if test yes = "$with_gnu_ld"; then
12704    case $host_os in
12705      aix*)
12706	# The AIX port of GNU ld has always aspired to compatibility
12707	# with the native linker.  However, as the warning in the GNU ld
12708	# block says, versions before 2.19.5* couldn't really create working
12709	# shared libraries, regardless of the interface used.
12710	case `$LD -v 2>&1` in
12711	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12712	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12713	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12714	  *)
12715	    lt_use_gnu_ld_interface=yes
12716	    ;;
12717	esac
12718	;;
12719      *)
12720	lt_use_gnu_ld_interface=yes
12721	;;
12722    esac
12723  fi
12724
12725  if test yes = "$lt_use_gnu_ld_interface"; then
12726    # If archive_cmds runs LD, not CC, wlarc should be empty
12727    wlarc='$wl'
12728
12729    # Set some defaults for GNU ld with shared library support. These
12730    # are reset later if shared libraries are not supported. Putting them
12731    # here allows them to be overridden if necessary.
12732    runpath_var=LD_RUN_PATH
12733    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12734    export_dynamic_flag_spec='$wl--export-dynamic'
12735    # ancient GNU ld didn't support --whole-archive et. al.
12736    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12737      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12738    else
12739      whole_archive_flag_spec=
12740    fi
12741    supports_anon_versioning=no
12742    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12743      *GNU\ gold*) supports_anon_versioning=yes ;;
12744      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12745      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12746      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12747      *\ 2.11.*) ;; # other 2.11 versions
12748      *) supports_anon_versioning=yes ;;
12749    esac
12750
12751    # See if GNU ld supports shared libraries.
12752    case $host_os in
12753    aix[3-9]*)
12754      # On AIX/PPC, the GNU linker is very broken
12755      if test ia64 != "$host_cpu"; then
12756	ld_shlibs=no
12757	cat <<_LT_EOF 1>&2
12758
12759*** Warning: the GNU linker, at least up to release 2.19, is reported
12760*** to be unable to reliably create shared libraries on AIX.
12761*** Therefore, libtool is disabling shared libraries support.  If you
12762*** really care for shared libraries, you may want to install binutils
12763*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12764*** You will then need to restart the configuration process.
12765
12766_LT_EOF
12767      fi
12768      ;;
12769
12770    amigaos*)
12771      case $host_cpu in
12772      powerpc)
12773            # see comment about AmigaOS4 .so support
12774            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12775            archive_expsym_cmds=''
12776        ;;
12777      m68k)
12778            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12779            hardcode_libdir_flag_spec='-L$libdir'
12780            hardcode_minus_L=yes
12781        ;;
12782      esac
12783      ;;
12784
12785    beos*)
12786      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12787	allow_undefined_flag=unsupported
12788	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12789	# support --undefined.  This deserves some investigation.  FIXME
12790	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12791      else
12792	ld_shlibs=no
12793      fi
12794      ;;
12795
12796    cygwin* | mingw* | pw32* | cegcc*)
12797      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12798      # as there is no search path for DLLs.
12799      hardcode_libdir_flag_spec='-L$libdir'
12800      export_dynamic_flag_spec='$wl--export-all-symbols'
12801      allow_undefined_flag=unsupported
12802      always_export_symbols=no
12803      enable_shared_with_static_runtimes=yes
12804      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12805      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12806
12807      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12808        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12809	# If the export-symbols file already is a .def file, use it as
12810	# is; otherwise, prepend EXPORTS...
12811	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12812          cp $export_symbols $output_objdir/$soname.def;
12813        else
12814          echo EXPORTS > $output_objdir/$soname.def;
12815          cat $export_symbols >> $output_objdir/$soname.def;
12816        fi~
12817        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12818      else
12819	ld_shlibs=no
12820      fi
12821      ;;
12822
12823    haiku*)
12824      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12825      link_all_deplibs=yes
12826      ;;
12827
12828    os2*)
12829      hardcode_libdir_flag_spec='-L$libdir'
12830      hardcode_minus_L=yes
12831      allow_undefined_flag=unsupported
12832      shrext_cmds=.dll
12833      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12834	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12835	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12836	$ECHO EXPORTS >> $output_objdir/$libname.def~
12837	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12838	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12839	emximp -o $lib $output_objdir/$libname.def'
12840      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12841	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12842	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12843	$ECHO EXPORTS >> $output_objdir/$libname.def~
12844	prefix_cmds="$SED"~
12845	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12846	  prefix_cmds="$prefix_cmds -e 1d";
12847	fi~
12848	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12849	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12850	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12851	emximp -o $lib $output_objdir/$libname.def'
12852      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12853      enable_shared_with_static_runtimes=yes
12854      ;;
12855
12856    interix[3-9]*)
12857      hardcode_direct=no
12858      hardcode_shlibpath_var=no
12859      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12860      export_dynamic_flag_spec='$wl-E'
12861      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12862      # Instead, shared libraries are loaded at an image base (0x10000000 by
12863      # default) and relocated if they conflict, which is a slow very memory
12864      # consuming and fragmenting process.  To avoid this, we pick a random,
12865      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12866      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12867      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12868      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12869      ;;
12870
12871    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12872      tmp_diet=no
12873      if test linux-dietlibc = "$host_os"; then
12874	case $cc_basename in
12875	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12876	esac
12877      fi
12878      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12879	 && test no = "$tmp_diet"
12880      then
12881	tmp_addflag=' $pic_flag'
12882	tmp_sharedflag='-shared'
12883	case $cc_basename,$host_cpu in
12884        pgcc*)				# Portland Group C compiler
12885	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12886	  tmp_addflag=' $pic_flag'
12887	  ;;
12888	pgf77* | pgf90* | pgf95* | pgfortran*)
12889					# Portland Group f77 and f90 compilers
12890	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12891	  tmp_addflag=' $pic_flag -Mnomain' ;;
12892	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12893	  tmp_addflag=' -i_dynamic' ;;
12894	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12895	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12896	ifc* | ifort*)			# Intel Fortran compiler
12897	  tmp_addflag=' -nofor_main' ;;
12898	lf95*)				# Lahey Fortran 8.1
12899	  whole_archive_flag_spec=
12900	  tmp_sharedflag='--shared' ;;
12901        nagfor*)                        # NAGFOR 5.3
12902          tmp_sharedflag='-Wl,-shared' ;;
12903	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12904	  tmp_sharedflag='-qmkshrobj'
12905	  tmp_addflag= ;;
12906	nvcc*)	# Cuda Compiler Driver 2.2
12907	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12908	  compiler_needs_object=yes
12909	  ;;
12910	esac
12911	case `$CC -V 2>&1 | sed 5q` in
12912	*Sun\ C*)			# Sun C 5.9
12913	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
12914	  compiler_needs_object=yes
12915	  tmp_sharedflag='-G' ;;
12916	*Sun\ F* | *Sun*Fortran* | *Studio*Fortran*)
12917	  tmp_sharedflag='-G' ;;
12918	esac
12919	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12920
12921        if test yes = "$supports_anon_versioning"; then
12922          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12923            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12924            echo "local: *; };" >> $output_objdir/$libname.ver~
12925            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12926        fi
12927
12928	case $cc_basename in
12929	tcc*)
12930	  export_dynamic_flag_spec='-rdynamic'
12931	  ;;
12932	xlf* | bgf* | bgxlf* | mpixlf*)
12933          XLF_VERSION=$($CC -qversion 2>/dev/null | sed 1q | sed -e "s+^.*V++" | sed -e "s+\..*++")
12934          if test $XLF_VERSION -ge 13; then
12935              archive_cmds='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12936              if test yes = "$supports_anon_versioning"; then
12937                archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12938                  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12939                  echo "local: *; };" >> $output_objdir/$libname.ver~
12940                  $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12941              fi
12942          else
12943              # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12944              whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12945              hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12946              archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12947              if test yes = "$supports_anon_versioning"; then
12948                archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12949                  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12950                  echo "local: *; };" >> $output_objdir/$libname.ver~
12951                  $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12952              fi
12953          fi
12954	  ;;
12955	esac
12956      else
12957        ld_shlibs=no
12958      fi
12959      ;;
12960
12961    netbsd*)
12962      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12963	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12964	wlarc=
12965      else
12966	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12967	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12968      fi
12969      ;;
12970
12971    solaris*)
12972      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12973	ld_shlibs=no
12974	cat <<_LT_EOF 1>&2
12975
12976*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12977*** create shared libraries on Solaris systems.  Therefore, libtool
12978*** is disabling shared libraries support.  We urge you to upgrade GNU
12979*** binutils to release 2.9.1 or newer.  Another option is to modify
12980*** your PATH or compiler configuration so that the native linker is
12981*** used, and then restart.
12982
12983_LT_EOF
12984      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12985	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12986	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12987      else
12988	ld_shlibs=no
12989      fi
12990      ;;
12991
12992    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12993      case `$LD -v 2>&1` in
12994        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12995	ld_shlibs=no
12996	cat <<_LT_EOF 1>&2
12997
12998*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12999*** reliably create shared libraries on SCO systems.  Therefore, libtool
13000*** is disabling shared libraries support.  We urge you to upgrade GNU
13001*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13002*** your PATH or compiler configuration so that the native linker is
13003*** used, and then restart.
13004
13005_LT_EOF
13006	;;
13007	*)
13008	  # For security reasons, it is highly recommended that you always
13009	  # use absolute paths for naming shared libraries, and exclude the
13010	  # DT_RUNPATH tag from executables and libraries.  But doing so
13011	  # requires that you compile everything twice, which is a pain.
13012	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13013	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13014	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13015	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13016	  else
13017	    ld_shlibs=no
13018	  fi
13019	;;
13020      esac
13021      ;;
13022
13023    sunos4*)
13024      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13025      wlarc=
13026      hardcode_direct=yes
13027      hardcode_shlibpath_var=no
13028      ;;
13029
13030    *)
13031      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13032	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13033	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13034      else
13035	ld_shlibs=no
13036      fi
13037      ;;
13038    esac
13039
13040    if test no = "$ld_shlibs"; then
13041      runpath_var=
13042      hardcode_libdir_flag_spec=
13043      export_dynamic_flag_spec=
13044      whole_archive_flag_spec=
13045    fi
13046  else
13047    # PORTME fill in a description of your system's linker (not GNU ld)
13048    case $host_os in
13049    aix3*)
13050      allow_undefined_flag=unsupported
13051      always_export_symbols=yes
13052      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13053      # Note: this linker hardcodes the directories in LIBPATH if there
13054      # are no directories specified by -L.
13055      hardcode_minus_L=yes
13056      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13057	# Neither direct hardcoding nor static linking is supported with a
13058	# broken collect2.
13059	hardcode_direct=unsupported
13060      fi
13061      ;;
13062
13063    aix[4-9]*)
13064      if test ia64 = "$host_cpu"; then
13065	# On IA64, the linker does run time linking by default, so we don't
13066	# have to do anything special.
13067	aix_use_runtimelinking=no
13068	exp_sym_flag='-Bexport'
13069	no_entry_flag=
13070      else
13071	# If we're using GNU nm, then we don't want the "-C" option.
13072	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
13073	# Without the "-l" option, or with the "-B" option, AIX nm treats
13074	# weak defined symbols like other global defined symbols, whereas
13075	# GNU nm marks them as "W".
13076	# While the 'weak' keyword is ignored in the Export File, we need
13077	# it in the Import File for the 'aix-soname' feature, so we have
13078	# to replace the "-B" option with "-P" for AIX nm.
13079	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13080	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
13081	else
13082	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
13083	fi
13084	aix_use_runtimelinking=no
13085
13086	# Test if we are trying to use run time linking or normal
13087	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13088	# have runtime linking enabled, and use it for executables.
13089	# For shared libraries, we enable/disable runtime linking
13090	# depending on the kind of the shared library created -
13091	# when "with_aix_soname,aix_use_runtimelinking" is:
13092	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13093	# "aix,yes"  lib.so          shared, rtl:yes, for executables
13094	#            lib.a           static archive
13095	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
13096	#            lib.a(lib.so.V) shared, rtl:no,  for executables
13097	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13098	#            lib.a(lib.so.V) shared, rtl:no
13099	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13100	#            lib.a           static archive
13101	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13102	  for ld_flag in $LDFLAGS; do
13103	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13104	    aix_use_runtimelinking=yes
13105	    break
13106	  fi
13107	  done
13108	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13109	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
13110	    # so we don't have lib.a shared libs to link our executables.
13111	    # We have to force runtime linking in this case.
13112	    aix_use_runtimelinking=yes
13113	    LDFLAGS="$LDFLAGS -Wl,-brtl"
13114	  fi
13115	  ;;
13116	esac
13117
13118	exp_sym_flag='-bexport'
13119	no_entry_flag='-bnoentry'
13120      fi
13121
13122      # When large executables or shared objects are built, AIX ld can
13123      # have problems creating the table of contents.  If linking a library
13124      # or program results in "error TOC overflow" add -mminimal-toc to
13125      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13126      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13127
13128      archive_cmds=''
13129      hardcode_direct=yes
13130      hardcode_direct_absolute=yes
13131      hardcode_libdir_separator=':'
13132      link_all_deplibs=yes
13133      file_list_spec='$wl-f,'
13134      case $with_aix_soname,$aix_use_runtimelinking in
13135      aix,*) ;; # traditional, no import file
13136      svr4,* | *,yes) # use import file
13137	# The Import File defines what to hardcode.
13138	hardcode_direct=no
13139	hardcode_direct_absolute=no
13140	;;
13141      esac
13142
13143      if test yes = "$GCC"; then
13144	case $host_os in aix4.[012]|aix4.[012].*)
13145	# We only want to do this on AIX 4.2 and lower, the check
13146	# below for broken collect2 doesn't work under 4.3+
13147	  collect2name=`$CC -print-prog-name=collect2`
13148	  if test -f "$collect2name" &&
13149	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13150	  then
13151	  # We have reworked collect2
13152	  :
13153	  else
13154	  # We have old collect2
13155	  hardcode_direct=unsupported
13156	  # It fails to find uninstalled libraries when the uninstalled
13157	  # path is not listed in the libpath.  Setting hardcode_minus_L
13158	  # to unsupported forces relinking
13159	  hardcode_minus_L=yes
13160	  hardcode_libdir_flag_spec='-L$libdir'
13161	  hardcode_libdir_separator=
13162	  fi
13163	  ;;
13164	esac
13165	shared_flag='-shared'
13166	if test yes = "$aix_use_runtimelinking"; then
13167	  shared_flag="$shared_flag "'$wl-G'
13168	fi
13169	# Need to ensure runtime linking is disabled for the traditional
13170	# shared library, or the linker may eventually find shared libraries
13171	# /with/ Import File - we do not want to mix them.
13172	shared_flag_aix='-shared'
13173	shared_flag_svr4='-shared $wl-G'
13174      else
13175	# not using gcc
13176	if test ia64 = "$host_cpu"; then
13177	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13178	# chokes on -Wl,-G. The following line is correct:
13179	  shared_flag='-G'
13180	else
13181	  if test yes = "$aix_use_runtimelinking"; then
13182	    shared_flag='$wl-G'
13183	  else
13184	    shared_flag='$wl-bM:SRE'
13185	  fi
13186	  shared_flag_aix='$wl-bM:SRE'
13187	  shared_flag_svr4='$wl-G'
13188	fi
13189      fi
13190
13191      export_dynamic_flag_spec='$wl-bexpall'
13192      # It seems that -bexpall does not export symbols beginning with
13193      # underscore (_), so it is better to generate a list of symbols to export.
13194      always_export_symbols=yes
13195      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13196	# Warning - without using the other runtime loading flags (-brtl),
13197	# -berok will link without error, but may produce a broken library.
13198	allow_undefined_flag='-berok'
13199        # Determine the default libpath from the value encoded in an
13200        # empty executable.
13201        if test set = "${lt_cv_aix_libpath+set}"; then
13202  aix_libpath=$lt_cv_aix_libpath
13203else
13204  if ${lt_cv_aix_libpath_+:} false; then :
13205  $as_echo_n "(cached) " >&6
13206else
13207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208/* end confdefs.h.  */
13209
13210int
13211main ()
13212{
13213
13214  ;
13215  return 0;
13216}
13217_ACEOF
13218if ac_fn_c_try_link "$LINENO"; then :
13219
13220  lt_aix_libpath_sed='
13221      /Import File Strings/,/^$/ {
13222	  /^0/ {
13223	      s/^0  *\([^ ]*\) *$/\1/
13224	      p
13225	  }
13226      }'
13227  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13228  # Check for a 64-bit object if we didn't find anything.
13229  if test -z "$lt_cv_aix_libpath_"; then
13230    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13231  fi
13232fi
13233rm -f core conftest.err conftest.$ac_objext \
13234    conftest$ac_exeext conftest.$ac_ext
13235  if test -z "$lt_cv_aix_libpath_"; then
13236    lt_cv_aix_libpath_=/usr/lib:/lib
13237  fi
13238
13239fi
13240
13241  aix_libpath=$lt_cv_aix_libpath_
13242fi
13243
13244        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13245        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13246      else
13247	if test ia64 = "$host_cpu"; then
13248	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13249	  allow_undefined_flag="-z nodefs"
13250	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
13251	else
13252	 # Determine the default libpath from the value encoded in an
13253	 # empty executable.
13254	 if test set = "${lt_cv_aix_libpath+set}"; then
13255  aix_libpath=$lt_cv_aix_libpath
13256else
13257  if ${lt_cv_aix_libpath_+:} false; then :
13258  $as_echo_n "(cached) " >&6
13259else
13260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261/* end confdefs.h.  */
13262
13263int
13264main ()
13265{
13266
13267  ;
13268  return 0;
13269}
13270_ACEOF
13271if ac_fn_c_try_link "$LINENO"; then :
13272
13273  lt_aix_libpath_sed='
13274      /Import File Strings/,/^$/ {
13275	  /^0/ {
13276	      s/^0  *\([^ ]*\) *$/\1/
13277	      p
13278	  }
13279      }'
13280  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13281  # Check for a 64-bit object if we didn't find anything.
13282  if test -z "$lt_cv_aix_libpath_"; then
13283    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13284  fi
13285fi
13286rm -f core conftest.err conftest.$ac_objext \
13287    conftest$ac_exeext conftest.$ac_ext
13288  if test -z "$lt_cv_aix_libpath_"; then
13289    lt_cv_aix_libpath_=/usr/lib:/lib
13290  fi
13291
13292fi
13293
13294  aix_libpath=$lt_cv_aix_libpath_
13295fi
13296
13297	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13298	  # Warning - without using the other run time loading flags,
13299	  # -berok will link without error, but may produce a broken library.
13300	  no_undefined_flag=' $wl-bernotok'
13301	  allow_undefined_flag=' $wl-berok'
13302	  if test yes = "$with_gnu_ld"; then
13303	    # We only use this code for GNU lds that support --whole-archive.
13304	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13305	  else
13306	    # Exported symbols can be pulled into shared objects from archives
13307	    whole_archive_flag_spec='$convenience'
13308	  fi
13309	  archive_cmds_need_lc=yes
13310	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13311	  # -brtl affects multiple linker settings, -berok does not and is overridden later
13312	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13313	  if test svr4 != "$with_aix_soname"; then
13314	    # This is similar to how AIX traditionally builds its shared libraries.
13315	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13316	  fi
13317	  if test aix != "$with_aix_soname"; then
13318	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13319	  else
13320	    # used by -dlpreopen to get the symbols
13321	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
13322	  fi
13323	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13324	fi
13325      fi
13326      ;;
13327
13328    amigaos*)
13329      case $host_cpu in
13330      powerpc)
13331            # see comment about AmigaOS4 .so support
13332            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13333            archive_expsym_cmds=''
13334        ;;
13335      m68k)
13336            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13337            hardcode_libdir_flag_spec='-L$libdir'
13338            hardcode_minus_L=yes
13339        ;;
13340      esac
13341      ;;
13342
13343    bsdi[45]*)
13344      export_dynamic_flag_spec=-rdynamic
13345      ;;
13346
13347    cygwin* | mingw* | pw32* | cegcc*)
13348      # When not using gcc, we currently assume that we are using
13349      # Microsoft Visual C++.
13350      # hardcode_libdir_flag_spec is actually meaningless, as there is
13351      # no search path for DLLs.
13352      case $cc_basename in
13353      cl*)
13354	# Native MSVC
13355	hardcode_libdir_flag_spec=' '
13356	allow_undefined_flag=unsupported
13357	always_export_symbols=yes
13358	file_list_spec='@'
13359	# Tell ltmain to make .lib files, not .a files.
13360	libext=lib
13361	# Tell ltmain to make .dll files, not .so files.
13362	shrext_cmds=.dll
13363	# FIXME: Setting linknames here is a bad hack.
13364	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13365	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13366            cp "$export_symbols" "$output_objdir/$soname.def";
13367            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13368          else
13369            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13370          fi~
13371          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13372          linknames='
13373	# The linker will not automatically build a static lib if we build a DLL.
13374	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13375	enable_shared_with_static_runtimes=yes
13376	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13377	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13378	# Don't use ranlib
13379	old_postinstall_cmds='chmod 644 $oldlib'
13380	postlink_cmds='lt_outputfile="@OUTPUT@"~
13381          lt_tool_outputfile="@TOOL_OUTPUT@"~
13382          case $lt_outputfile in
13383            *.exe|*.EXE) ;;
13384            *)
13385              lt_outputfile=$lt_outputfile.exe
13386              lt_tool_outputfile=$lt_tool_outputfile.exe
13387              ;;
13388          esac~
13389          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13390            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13391            $RM "$lt_outputfile.manifest";
13392          fi'
13393	;;
13394      *)
13395	# Assume MSVC wrapper
13396	hardcode_libdir_flag_spec=' '
13397	allow_undefined_flag=unsupported
13398	# Tell ltmain to make .lib files, not .a files.
13399	libext=lib
13400	# Tell ltmain to make .dll files, not .so files.
13401	shrext_cmds=.dll
13402	# FIXME: Setting linknames here is a bad hack.
13403	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13404	# The linker will automatically build a .lib file if we build a DLL.
13405	old_archive_from_new_cmds='true'
13406	# FIXME: Should let the user specify the lib program.
13407	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13408	enable_shared_with_static_runtimes=yes
13409	;;
13410      esac
13411      ;;
13412
13413    darwin* | rhapsody*)
13414
13415
13416  archive_cmds_need_lc=no
13417  hardcode_direct=no
13418  hardcode_automatic=yes
13419  hardcode_shlibpath_var=unsupported
13420  if test yes = "$lt_cv_ld_force_load"; then
13421    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13422
13423  else
13424    whole_archive_flag_spec=''
13425  fi
13426  link_all_deplibs=yes
13427  allow_undefined_flag=$_lt_dar_allow_undefined
13428  case $cc_basename in
13429     ifort*|nagfor*)
13430        lt_prog_compiler_wl='-Wl,'
13431        _lt_dar_can_shared=yes
13432      ;;
13433     *) _lt_dar_can_shared=$GCC ;;
13434  esac
13435  if test yes = "$_lt_dar_can_shared"; then
13436    output_verbose_link_cmd=func_echo_all
13437    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13438    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13439    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
13440    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
13441
13442  else
13443  ld_shlibs=no
13444  fi
13445
13446      ;;
13447
13448    dgux*)
13449      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13450      hardcode_libdir_flag_spec='-L$libdir'
13451      hardcode_shlibpath_var=no
13452      ;;
13453
13454    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13455    # support.  Future versions do this automatically, but an explicit c++rt0.o
13456    # does not break anything, and helps significantly (at the cost of a little
13457    # extra space).
13458    freebsd2.2*)
13459      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13460      hardcode_libdir_flag_spec='-R$libdir'
13461      hardcode_direct=yes
13462      hardcode_shlibpath_var=no
13463      ;;
13464
13465    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13466    freebsd2.*)
13467      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13468      hardcode_direct=yes
13469      hardcode_minus_L=yes
13470      hardcode_shlibpath_var=no
13471      ;;
13472
13473    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13474    freebsd* | dragonfly*)
13475      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13476      hardcode_libdir_flag_spec='-R$libdir'
13477      hardcode_direct=yes
13478      hardcode_shlibpath_var=no
13479      ;;
13480
13481    hpux9*)
13482      if test yes = "$GCC"; then
13483	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13484      else
13485	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13486      fi
13487      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13488      hardcode_libdir_separator=:
13489      hardcode_direct=yes
13490
13491      # hardcode_minus_L: Not really in the search PATH,
13492      # but as the default location of the library.
13493      hardcode_minus_L=yes
13494      export_dynamic_flag_spec='$wl-E'
13495      ;;
13496
13497    hpux10*)
13498      if test yes,no = "$GCC,$with_gnu_ld"; then
13499	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13500      else
13501	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13502      fi
13503      if test no = "$with_gnu_ld"; then
13504	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13505	hardcode_libdir_separator=:
13506	hardcode_direct=yes
13507	hardcode_direct_absolute=yes
13508	export_dynamic_flag_spec='$wl-E'
13509	# hardcode_minus_L: Not really in the search PATH,
13510	# but as the default location of the library.
13511	hardcode_minus_L=yes
13512      fi
13513      ;;
13514
13515    hpux11*)
13516      if test yes,no = "$GCC,$with_gnu_ld"; then
13517	case $host_cpu in
13518	hppa*64*)
13519	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13520	  ;;
13521	ia64*)
13522	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13523	  ;;
13524	*)
13525	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13526	  ;;
13527	esac
13528      else
13529	case $host_cpu in
13530	hppa*64*)
13531	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13532	  ;;
13533	ia64*)
13534	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13535	  ;;
13536	*)
13537
13538	  # Older versions of the 11.00 compiler do not understand -b yet
13539	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13540	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13541$as_echo_n "checking if $CC understands -b... " >&6; }
13542if ${lt_cv_prog_compiler__b+:} false; then :
13543  $as_echo_n "(cached) " >&6
13544else
13545  lt_cv_prog_compiler__b=no
13546   save_LDFLAGS=$LDFLAGS
13547   LDFLAGS="$LDFLAGS -b"
13548   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13549   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13550     # The linker can only warn and ignore the option if not recognized
13551     # So say no if there are warnings
13552     if test -s conftest.err; then
13553       # Append any errors to the config.log.
13554       cat conftest.err 1>&5
13555       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13556       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13557       if diff conftest.exp conftest.er2 >/dev/null; then
13558         lt_cv_prog_compiler__b=yes
13559       fi
13560     else
13561       lt_cv_prog_compiler__b=yes
13562     fi
13563   fi
13564   $RM -r conftest*
13565   LDFLAGS=$save_LDFLAGS
13566
13567fi
13568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13569$as_echo "$lt_cv_prog_compiler__b" >&6; }
13570
13571if test yes = "$lt_cv_prog_compiler__b"; then
13572    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13573else
13574    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13575fi
13576
13577	  ;;
13578	esac
13579      fi
13580      if test no = "$with_gnu_ld"; then
13581	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13582	hardcode_libdir_separator=:
13583
13584	case $host_cpu in
13585	hppa*64*|ia64*)
13586	  hardcode_direct=no
13587	  hardcode_shlibpath_var=no
13588	  ;;
13589	*)
13590	  hardcode_direct=yes
13591	  hardcode_direct_absolute=yes
13592	  export_dynamic_flag_spec='$wl-E'
13593
13594	  # hardcode_minus_L: Not really in the search PATH,
13595	  # but as the default location of the library.
13596	  hardcode_minus_L=yes
13597	  ;;
13598	esac
13599      fi
13600      ;;
13601
13602    irix5* | irix6* | nonstopux*)
13603      if test yes = "$GCC"; then
13604	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13605	# Try to use the -exported_symbol ld option, if it does not
13606	# work, assume that -exports_file does not work either and
13607	# implicitly export all symbols.
13608	# This should be the same for all languages, so no per-tag cache variable.
13609	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13610$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13611if ${lt_cv_irix_exported_symbol+:} false; then :
13612  $as_echo_n "(cached) " >&6
13613else
13614  save_LDFLAGS=$LDFLAGS
13615	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13616	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617/* end confdefs.h.  */
13618int foo (void) { return 0; }
13619_ACEOF
13620if ac_fn_c_try_link "$LINENO"; then :
13621  lt_cv_irix_exported_symbol=yes
13622else
13623  lt_cv_irix_exported_symbol=no
13624fi
13625rm -f core conftest.err conftest.$ac_objext \
13626    conftest$ac_exeext conftest.$ac_ext
13627           LDFLAGS=$save_LDFLAGS
13628fi
13629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13630$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13631	if test yes = "$lt_cv_irix_exported_symbol"; then
13632          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
13633	fi
13634      else
13635	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13636	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
13637      fi
13638      archive_cmds_need_lc='no'
13639      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13640      hardcode_libdir_separator=:
13641      inherit_rpath=yes
13642      link_all_deplibs=yes
13643      ;;
13644
13645    linux*)
13646      case $cc_basename in
13647      tcc*)
13648	# Fabrice Bellard et al's Tiny C Compiler
13649	ld_shlibs=yes
13650	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13651	;;
13652      esac
13653      ;;
13654
13655    netbsd*)
13656      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13657	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13658      else
13659	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13660      fi
13661      hardcode_libdir_flag_spec='-R$libdir'
13662      hardcode_direct=yes
13663      hardcode_shlibpath_var=no
13664      ;;
13665
13666    newsos6)
13667      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13668      hardcode_direct=yes
13669      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13670      hardcode_libdir_separator=:
13671      hardcode_shlibpath_var=no
13672      ;;
13673
13674    *nto* | *qnx*)
13675      ;;
13676
13677    openbsd* | bitrig*)
13678      if test -f /usr/libexec/ld.so; then
13679	hardcode_direct=yes
13680	hardcode_shlibpath_var=no
13681	hardcode_direct_absolute=yes
13682	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13683	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13684	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13685	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13686	  export_dynamic_flag_spec='$wl-E'
13687	else
13688	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13689	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13690	fi
13691      else
13692	ld_shlibs=no
13693      fi
13694      ;;
13695
13696    os2*)
13697      hardcode_libdir_flag_spec='-L$libdir'
13698      hardcode_minus_L=yes
13699      allow_undefined_flag=unsupported
13700      shrext_cmds=.dll
13701      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13702	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13703	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13704	$ECHO EXPORTS >> $output_objdir/$libname.def~
13705	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13706	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13707	emximp -o $lib $output_objdir/$libname.def'
13708      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13709	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13710	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13711	$ECHO EXPORTS >> $output_objdir/$libname.def~
13712	prefix_cmds="$SED"~
13713	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13714	  prefix_cmds="$prefix_cmds -e 1d";
13715	fi~
13716	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13717	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13718	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13719	emximp -o $lib $output_objdir/$libname.def'
13720      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13721      enable_shared_with_static_runtimes=yes
13722      ;;
13723
13724    osf3*)
13725      if test yes = "$GCC"; then
13726	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13727	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13728      else
13729	allow_undefined_flag=' -expect_unresolved \*'
13730	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13731      fi
13732      archive_cmds_need_lc='no'
13733      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13734      hardcode_libdir_separator=:
13735      ;;
13736
13737    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13738      if test yes = "$GCC"; then
13739	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13740	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13741	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13742      else
13743	allow_undefined_flag=' -expect_unresolved \*'
13744	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13745	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13746          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
13747
13748	# Both c and cxx compiler support -rpath directly
13749	hardcode_libdir_flag_spec='-rpath $libdir'
13750      fi
13751      archive_cmds_need_lc='no'
13752      hardcode_libdir_separator=:
13753      ;;
13754
13755    solaris*)
13756      no_undefined_flag=' -z defs'
13757      if test yes = "$GCC"; then
13758	wlarc='$wl'
13759	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13760	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13761          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13762      else
13763	case `$CC -V 2>&1` in
13764	*"Compilers 5.0"*)
13765	  wlarc=''
13766	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13767	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13768            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13769	  ;;
13770	*)
13771	  wlarc='$wl'
13772	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13773	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13774            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13775	  ;;
13776	esac
13777      fi
13778      hardcode_libdir_flag_spec='-R$libdir'
13779      hardcode_shlibpath_var=no
13780      case $host_os in
13781      solaris2.[0-5] | solaris2.[0-5].*) ;;
13782      *)
13783	# The compiler driver will combine and reorder linker options,
13784	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13785	# but is careful enough not to reorder.
13786	# Supported since Solaris 2.6 (maybe 2.5.1?)
13787	if test yes = "$GCC"; then
13788	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13789	else
13790	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13791	fi
13792	;;
13793      esac
13794      link_all_deplibs=yes
13795      ;;
13796
13797    sunos4*)
13798      if test sequent = "$host_vendor"; then
13799	# Use $CC to link under sequent, because it throws in some extra .o
13800	# files that make .init and .fini sections work.
13801	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13802      else
13803	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13804      fi
13805      hardcode_libdir_flag_spec='-L$libdir'
13806      hardcode_direct=yes
13807      hardcode_minus_L=yes
13808      hardcode_shlibpath_var=no
13809      ;;
13810
13811    sysv4)
13812      case $host_vendor in
13813	sni)
13814	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13815	  hardcode_direct=yes # is this really true???
13816	;;
13817	siemens)
13818	  ## LD is ld it makes a PLAMLIB
13819	  ## CC just makes a GrossModule.
13820	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13821	  reload_cmds='$CC -r -o $output$reload_objs'
13822	  hardcode_direct=no
13823        ;;
13824	motorola)
13825	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13826	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13827	;;
13828      esac
13829      runpath_var='LD_RUN_PATH'
13830      hardcode_shlibpath_var=no
13831      ;;
13832
13833    sysv4.3*)
13834      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13835      hardcode_shlibpath_var=no
13836      export_dynamic_flag_spec='-Bexport'
13837      ;;
13838
13839    sysv4*MP*)
13840      if test -d /usr/nec; then
13841	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13842	hardcode_shlibpath_var=no
13843	runpath_var=LD_RUN_PATH
13844	hardcode_runpath_var=yes
13845	ld_shlibs=yes
13846      fi
13847      ;;
13848
13849    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13850      no_undefined_flag='$wl-z,text'
13851      archive_cmds_need_lc=no
13852      hardcode_shlibpath_var=no
13853      runpath_var='LD_RUN_PATH'
13854
13855      if test yes = "$GCC"; then
13856	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13857	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13858      else
13859	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13860	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13861      fi
13862      ;;
13863
13864    sysv5* | sco3.2v5* | sco5v6*)
13865      # Note: We CANNOT use -z defs as we might desire, because we do not
13866      # link with -lc, and that would cause any symbols used from libc to
13867      # always be unresolved, which means just about no library would
13868      # ever link correctly.  If we're not using GNU ld we use -z text
13869      # though, which does catch some bad symbols but isn't as heavy-handed
13870      # as -z defs.
13871      no_undefined_flag='$wl-z,text'
13872      allow_undefined_flag='$wl-z,nodefs'
13873      archive_cmds_need_lc=no
13874      hardcode_shlibpath_var=no
13875      hardcode_libdir_flag_spec='$wl-R,$libdir'
13876      hardcode_libdir_separator=':'
13877      link_all_deplibs=yes
13878      export_dynamic_flag_spec='$wl-Bexport'
13879      runpath_var='LD_RUN_PATH'
13880
13881      if test yes = "$GCC"; then
13882	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13883	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13884      else
13885	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13886	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13887      fi
13888      ;;
13889
13890    uts4*)
13891      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13892      hardcode_libdir_flag_spec='-L$libdir'
13893      hardcode_shlibpath_var=no
13894      ;;
13895
13896    *)
13897      ld_shlibs=no
13898      ;;
13899    esac
13900
13901    if test sni = "$host_vendor"; then
13902      case $host in
13903      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13904	export_dynamic_flag_spec='$wl-Blargedynsym'
13905	;;
13906      esac
13907    fi
13908  fi
13909
13910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13911$as_echo "$ld_shlibs" >&6; }
13912test no = "$ld_shlibs" && can_build_shared=no
13913
13914with_gnu_ld=$with_gnu_ld
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930#
13931# Do we need to explicitly link libc?
13932#
13933case "x$archive_cmds_need_lc" in
13934x|xyes)
13935  # Assume -lc should be added
13936  archive_cmds_need_lc=yes
13937
13938  if test yes,yes = "$GCC,$enable_shared"; then
13939    case $archive_cmds in
13940    *'~'*)
13941      # FIXME: we may have to deal with multi-command sequences.
13942      ;;
13943    '$CC '*)
13944      # Test whether the compiler implicitly links with -lc since on some
13945      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13946      # to ld, don't add -lc before -lgcc.
13947      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13948$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13949if ${lt_cv_archive_cmds_need_lc+:} false; then :
13950  $as_echo_n "(cached) " >&6
13951else
13952  $RM conftest*
13953	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13954
13955	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13956  (eval $ac_compile) 2>&5
13957  ac_status=$?
13958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13959  test $ac_status = 0; } 2>conftest.err; then
13960	  soname=conftest
13961	  lib=conftest
13962	  libobjs=conftest.$ac_objext
13963	  deplibs=
13964	  wl=$lt_prog_compiler_wl
13965	  pic_flag=$lt_prog_compiler_pic
13966	  compiler_flags=-v
13967	  linker_flags=-v
13968	  verstring=
13969	  output_objdir=.
13970	  libname=conftest
13971	  lt_save_allow_undefined_flag=$allow_undefined_flag
13972	  allow_undefined_flag=
13973	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13974  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13975  ac_status=$?
13976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13977  test $ac_status = 0; }
13978	  then
13979	    lt_cv_archive_cmds_need_lc=no
13980	  else
13981	    lt_cv_archive_cmds_need_lc=yes
13982	  fi
13983	  allow_undefined_flag=$lt_save_allow_undefined_flag
13984	else
13985	  cat conftest.err 1>&5
13986	fi
13987	$RM conftest*
13988
13989fi
13990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13991$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13992      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13993      ;;
13994    esac
13995  fi
13996  ;;
13997esac
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14151$as_echo_n "checking dynamic linker characteristics... " >&6; }
14152
14153if test yes = "$GCC"; then
14154  case $host_os in
14155    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14156    *) lt_awk_arg='/^libraries:/' ;;
14157  esac
14158  case $host_os in
14159    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14160    *) lt_sed_strip_eq='s|=/|/|g' ;;
14161  esac
14162  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14163  case $lt_search_path_spec in
14164  *\;*)
14165    # if the path contains ";" then we assume it to be the separator
14166    # otherwise default to the standard path separator (i.e. ":") - it is
14167    # assumed that no part of a normal pathname contains ";" but that should
14168    # okay in the real world where ";" in dirpaths is itself problematic.
14169    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14170    ;;
14171  *)
14172    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14173    ;;
14174  esac
14175  # Ok, now we have the path, separated by spaces, we can step through it
14176  # and add multilib dir if necessary...
14177  lt_tmp_lt_search_path_spec=
14178  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14179  # ...but if some path component already ends with the multilib dir we assume
14180  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14181  case "$lt_multi_os_dir; $lt_search_path_spec " in
14182  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14183    lt_multi_os_dir=
14184    ;;
14185  esac
14186  for lt_sys_path in $lt_search_path_spec; do
14187    if test -d "$lt_sys_path$lt_multi_os_dir"; then
14188      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14189    elif test -n "$lt_multi_os_dir"; then
14190      test -d "$lt_sys_path" && \
14191	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14192    fi
14193  done
14194  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14195BEGIN {RS = " "; FS = "/|\n";} {
14196  lt_foo = "";
14197  lt_count = 0;
14198  for (lt_i = NF; lt_i > 0; lt_i--) {
14199    if ($lt_i != "" && $lt_i != ".") {
14200      if ($lt_i == "..") {
14201        lt_count++;
14202      } else {
14203        if (lt_count == 0) {
14204          lt_foo = "/" $lt_i lt_foo;
14205        } else {
14206          lt_count--;
14207        }
14208      }
14209    }
14210  }
14211  if (lt_foo != "") { lt_freq[lt_foo]++; }
14212  if (lt_freq[lt_foo] == 1) { print lt_foo; }
14213}'`
14214  # AWK program above erroneously prepends '/' to C:/dos/paths
14215  # for these hosts.
14216  case $host_os in
14217    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14218      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14219  esac
14220  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14221else
14222  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14223fi
14224library_names_spec=
14225libname_spec='lib$name'
14226soname_spec=
14227shrext_cmds=.so
14228postinstall_cmds=
14229postuninstall_cmds=
14230finish_cmds=
14231finish_eval=
14232shlibpath_var=
14233shlibpath_overrides_runpath=unknown
14234version_type=none
14235dynamic_linker="$host_os ld.so"
14236sys_lib_dlsearch_path_spec="/lib /usr/lib"
14237need_lib_prefix=unknown
14238hardcode_into_libs=no
14239
14240# when you set need_version to no, make sure it does not cause -set_version
14241# flags to be left without arguments
14242need_version=unknown
14243
14244
14245
14246case $host_os in
14247aix3*)
14248  version_type=linux # correct to gnu/linux during the next big refactor
14249  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14250  shlibpath_var=LIBPATH
14251
14252  # AIX 3 has no versioning support, so we append a major version to the name.
14253  soname_spec='$libname$release$shared_ext$major'
14254  ;;
14255
14256aix[4-9]*)
14257  version_type=linux # correct to gnu/linux during the next big refactor
14258  need_lib_prefix=no
14259  need_version=no
14260  hardcode_into_libs=yes
14261  if test ia64 = "$host_cpu"; then
14262    # AIX 5 supports IA64
14263    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14264    shlibpath_var=LD_LIBRARY_PATH
14265  else
14266    # With GCC up to 2.95.x, collect2 would create an import file
14267    # for dependence libraries.  The import file would start with
14268    # the line '#! .'.  This would cause the generated library to
14269    # depend on '.', always an invalid library.  This was fixed in
14270    # development snapshots of GCC prior to 3.0.
14271    case $host_os in
14272      aix4 | aix4.[01] | aix4.[01].*)
14273      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14274	   echo ' yes '
14275	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14276	:
14277      else
14278	can_build_shared=no
14279      fi
14280      ;;
14281    esac
14282    # Using Import Files as archive members, it is possible to support
14283    # filename-based versioning of shared library archives on AIX. While
14284    # this would work for both with and without runtime linking, it will
14285    # prevent static linking of such archives. So we do filename-based
14286    # shared library versioning with .so extension only, which is used
14287    # when both runtime linking and shared linking is enabled.
14288    # Unfortunately, runtime linking may impact performance, so we do
14289    # not want this to be the default eventually. Also, we use the
14290    # versioned .so libs for executables only if there is the -brtl
14291    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14292    # To allow for filename-based versioning support, we need to create
14293    # libNAME.so.V as an archive file, containing:
14294    # *) an Import File, referring to the versioned filename of the
14295    #    archive as well as the shared archive member, telling the
14296    #    bitwidth (32 or 64) of that shared object, and providing the
14297    #    list of exported symbols of that shared object, eventually
14298    #    decorated with the 'weak' keyword
14299    # *) the shared object with the F_LOADONLY flag set, to really avoid
14300    #    it being seen by the linker.
14301    # At run time we better use the real file rather than another symlink,
14302    # but for link time we create the symlink libNAME.so -> libNAME.so.V
14303
14304    case $with_aix_soname,$aix_use_runtimelinking in
14305    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14306    # soname into executable. Probably we can add versioning support to
14307    # collect2, so additional links can be useful in future.
14308    aix,yes) # traditional libtool
14309      dynamic_linker='AIX unversionable lib.so'
14310      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14311      # instead of lib<name>.a to let people know that these are not
14312      # typical AIX shared libraries.
14313      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14314      ;;
14315    aix,no) # traditional AIX only
14316      dynamic_linker='AIX lib.a(lib.so.V)'
14317      # We preserve .a as extension for shared libraries through AIX4.2
14318      # and later when we are not doing run time linking.
14319      library_names_spec='$libname$release.a $libname.a'
14320      soname_spec='$libname$release$shared_ext$major'
14321      ;;
14322    svr4,*) # full svr4 only
14323      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14324      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14325      # We do not specify a path in Import Files, so LIBPATH fires.
14326      shlibpath_overrides_runpath=yes
14327      ;;
14328    *,yes) # both, prefer svr4
14329      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14330      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14331      # unpreferred sharedlib libNAME.a needs extra handling
14332      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14333      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14334      # We do not specify a path in Import Files, so LIBPATH fires.
14335      shlibpath_overrides_runpath=yes
14336      ;;
14337    *,no) # both, prefer aix
14338      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14339      library_names_spec='$libname$release.a $libname.a'
14340      soname_spec='$libname$release$shared_ext$major'
14341      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14342      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14343      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14344      ;;
14345    esac
14346    shlibpath_var=LIBPATH
14347  fi
14348  ;;
14349
14350amigaos*)
14351  case $host_cpu in
14352  powerpc)
14353    # Since July 2007 AmigaOS4 officially supports .so libraries.
14354    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14355    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14356    ;;
14357  m68k)
14358    library_names_spec='$libname.ixlibrary $libname.a'
14359    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14360    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14361    ;;
14362  esac
14363  ;;
14364
14365beos*)
14366  library_names_spec='$libname$shared_ext'
14367  dynamic_linker="$host_os ld.so"
14368  shlibpath_var=LIBRARY_PATH
14369  ;;
14370
14371bsdi[45]*)
14372  version_type=linux # correct to gnu/linux during the next big refactor
14373  need_version=no
14374  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14375  soname_spec='$libname$release$shared_ext$major'
14376  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14377  shlibpath_var=LD_LIBRARY_PATH
14378  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14379  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14380  # the default ld.so.conf also contains /usr/contrib/lib and
14381  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14382  # libtool to hard-code these into programs
14383  ;;
14384
14385cygwin* | mingw* | pw32* | cegcc*)
14386  version_type=windows
14387  shrext_cmds=.dll
14388  need_version=no
14389  need_lib_prefix=no
14390
14391  case $GCC,$cc_basename in
14392  yes,*)
14393    # gcc
14394    library_names_spec='$libname.dll.a'
14395    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14396    postinstall_cmds='base_file=`basename \$file`~
14397      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14398      dldir=$destdir/`dirname \$dlpath`~
14399      test -d \$dldir || mkdir -p \$dldir~
14400      $install_prog $dir/$dlname \$dldir/$dlname~
14401      chmod a+x \$dldir/$dlname~
14402      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14403        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14404      fi'
14405    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14406      dlpath=$dir/\$dldll~
14407       $RM \$dlpath'
14408    shlibpath_overrides_runpath=yes
14409
14410    case $host_os in
14411    cygwin*)
14412      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14413      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14414
14415      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14416      ;;
14417    mingw* | cegcc*)
14418      # MinGW DLLs use traditional 'lib' prefix
14419      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14420      ;;
14421    pw32*)
14422      # pw32 DLLs use 'pw' prefix rather than 'lib'
14423      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14424      ;;
14425    esac
14426    dynamic_linker='Win32 ld.exe'
14427    ;;
14428
14429  *,cl*)
14430    # Native MSVC
14431    libname_spec='$name'
14432    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14433    library_names_spec='$libname.dll.lib'
14434
14435    case $build_os in
14436    mingw*)
14437      sys_lib_search_path_spec=
14438      lt_save_ifs=$IFS
14439      IFS=';'
14440      for lt_path in $LIB
14441      do
14442        IFS=$lt_save_ifs
14443        # Let DOS variable expansion print the short 8.3 style file name.
14444        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14445        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14446      done
14447      IFS=$lt_save_ifs
14448      # Convert to MSYS style.
14449      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14450      ;;
14451    cygwin*)
14452      # Convert to unix form, then to dos form, then back to unix form
14453      # but this time dos style (no spaces!) so that the unix form looks
14454      # like /cygdrive/c/PROGRA~1:/cygdr...
14455      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14456      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14457      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14458      ;;
14459    *)
14460      sys_lib_search_path_spec=$LIB
14461      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14462        # It is most probably a Windows format PATH.
14463        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14464      else
14465        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14466      fi
14467      # FIXME: find the short name or the path components, as spaces are
14468      # common. (e.g. "Program Files" -> "PROGRA~1")
14469      ;;
14470    esac
14471
14472    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14473    postinstall_cmds='base_file=`basename \$file`~
14474      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14475      dldir=$destdir/`dirname \$dlpath`~
14476      test -d \$dldir || mkdir -p \$dldir~
14477      $install_prog $dir/$dlname \$dldir/$dlname'
14478    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14479      dlpath=$dir/\$dldll~
14480       $RM \$dlpath'
14481    shlibpath_overrides_runpath=yes
14482    dynamic_linker='Win32 link.exe'
14483    ;;
14484
14485  *)
14486    # Assume MSVC wrapper
14487    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14488    dynamic_linker='Win32 ld.exe'
14489    ;;
14490  esac
14491  # FIXME: first we should search . and the directory the executable is in
14492  shlibpath_var=PATH
14493  ;;
14494
14495darwin* | rhapsody*)
14496  dynamic_linker="$host_os dyld"
14497  version_type=darwin
14498  need_lib_prefix=no
14499  need_version=no
14500  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14501  soname_spec='$libname$release$major$shared_ext'
14502  shlibpath_overrides_runpath=yes
14503  shlibpath_var=DYLD_LIBRARY_PATH
14504  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14505
14506  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14507  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14508  ;;
14509
14510dgux*)
14511  version_type=linux # correct to gnu/linux during the next big refactor
14512  need_lib_prefix=no
14513  need_version=no
14514  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14515  soname_spec='$libname$release$shared_ext$major'
14516  shlibpath_var=LD_LIBRARY_PATH
14517  ;;
14518
14519freebsd* | dragonfly*)
14520  # DragonFly does not have aout.  When/if they implement a new
14521  # versioning mechanism, adjust this.
14522  if test -x /usr/bin/objformat; then
14523    objformat=`/usr/bin/objformat`
14524  else
14525    case $host_os in
14526    freebsd[23].*) objformat=aout ;;
14527    *) objformat=elf ;;
14528    esac
14529  fi
14530  version_type=freebsd-$objformat
14531  case $version_type in
14532    freebsd-elf*)
14533      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14534      soname_spec='$libname$release$shared_ext$major'
14535      need_version=no
14536      need_lib_prefix=no
14537      ;;
14538    freebsd-*)
14539      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14540      need_version=yes
14541      ;;
14542  esac
14543  shlibpath_var=LD_LIBRARY_PATH
14544  case $host_os in
14545  freebsd2.*)
14546    shlibpath_overrides_runpath=yes
14547    ;;
14548  freebsd3.[01]* | freebsdelf3.[01]*)
14549    shlibpath_overrides_runpath=yes
14550    hardcode_into_libs=yes
14551    ;;
14552  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14553  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14554    shlibpath_overrides_runpath=no
14555    hardcode_into_libs=yes
14556    ;;
14557  *) # from 4.6 on, and DragonFly
14558    shlibpath_overrides_runpath=yes
14559    hardcode_into_libs=yes
14560    ;;
14561  esac
14562  ;;
14563
14564haiku*)
14565  version_type=linux # correct to gnu/linux during the next big refactor
14566  need_lib_prefix=no
14567  need_version=no
14568  dynamic_linker="$host_os runtime_loader"
14569  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14570  soname_spec='$libname$release$shared_ext$major'
14571  shlibpath_var=LIBRARY_PATH
14572  shlibpath_overrides_runpath=no
14573  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14574  hardcode_into_libs=yes
14575  ;;
14576
14577hpux9* | hpux10* | hpux11*)
14578  # Give a soname corresponding to the major version so that dld.sl refuses to
14579  # link against other versions.
14580  version_type=sunos
14581  need_lib_prefix=no
14582  need_version=no
14583  case $host_cpu in
14584  ia64*)
14585    shrext_cmds='.so'
14586    hardcode_into_libs=yes
14587    dynamic_linker="$host_os dld.so"
14588    shlibpath_var=LD_LIBRARY_PATH
14589    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14590    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14591    soname_spec='$libname$release$shared_ext$major'
14592    if test 32 = "$HPUX_IA64_MODE"; then
14593      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14594      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14595    else
14596      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14597      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14598    fi
14599    ;;
14600  hppa*64*)
14601    shrext_cmds='.sl'
14602    hardcode_into_libs=yes
14603    dynamic_linker="$host_os dld.sl"
14604    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14605    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14606    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14607    soname_spec='$libname$release$shared_ext$major'
14608    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14609    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14610    ;;
14611  *)
14612    shrext_cmds='.sl'
14613    dynamic_linker="$host_os dld.sl"
14614    shlibpath_var=SHLIB_PATH
14615    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14616    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14617    soname_spec='$libname$release$shared_ext$major'
14618    ;;
14619  esac
14620  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14621  postinstall_cmds='chmod 555 $lib'
14622  # or fails outright, so override atomically:
14623  install_override_mode=555
14624  ;;
14625
14626interix[3-9]*)
14627  version_type=linux # correct to gnu/linux during the next big refactor
14628  need_lib_prefix=no
14629  need_version=no
14630  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14631  soname_spec='$libname$release$shared_ext$major'
14632  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14633  shlibpath_var=LD_LIBRARY_PATH
14634  shlibpath_overrides_runpath=no
14635  hardcode_into_libs=yes
14636  ;;
14637
14638irix5* | irix6* | nonstopux*)
14639  case $host_os in
14640    nonstopux*) version_type=nonstopux ;;
14641    *)
14642	if test yes = "$lt_cv_prog_gnu_ld"; then
14643		version_type=linux # correct to gnu/linux during the next big refactor
14644	else
14645		version_type=irix
14646	fi ;;
14647  esac
14648  need_lib_prefix=no
14649  need_version=no
14650  soname_spec='$libname$release$shared_ext$major'
14651  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14652  case $host_os in
14653  irix5* | nonstopux*)
14654    libsuff= shlibsuff=
14655    ;;
14656  *)
14657    case $LD in # libtool.m4 will add one of these switches to LD
14658    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14659      libsuff= shlibsuff= libmagic=32-bit;;
14660    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14661      libsuff=32 shlibsuff=N32 libmagic=N32;;
14662    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14663      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14664    *) libsuff= shlibsuff= libmagic=never-match;;
14665    esac
14666    ;;
14667  esac
14668  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14669  shlibpath_overrides_runpath=no
14670  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14671  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14672  hardcode_into_libs=yes
14673  ;;
14674
14675# No shared lib support for Linux oldld, aout, or coff.
14676linux*oldld* | linux*aout* | linux*coff*)
14677  dynamic_linker=no
14678  ;;
14679
14680linux*android*)
14681  version_type=none # Android doesn't support versioned libraries.
14682  need_lib_prefix=no
14683  need_version=no
14684  library_names_spec='$libname$release$shared_ext'
14685  soname_spec='$libname$release$shared_ext'
14686  finish_cmds=
14687  shlibpath_var=LD_LIBRARY_PATH
14688  shlibpath_overrides_runpath=yes
14689
14690  # This implies no fast_install, which is unacceptable.
14691  # Some rework will be needed to allow for fast_install
14692  # before this can be enabled.
14693  hardcode_into_libs=yes
14694
14695  dynamic_linker='Android linker'
14696  # Don't embed -rpath directories since the linker doesn't support them.
14697  hardcode_libdir_flag_spec='-L$libdir'
14698  ;;
14699
14700# This must be glibc/ELF.
14701linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14702  version_type=linux # correct to gnu/linux during the next big refactor
14703  need_lib_prefix=no
14704  need_version=no
14705  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14706  soname_spec='$libname$release$shared_ext$major'
14707  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14708  shlibpath_var=LD_LIBRARY_PATH
14709  shlibpath_overrides_runpath=no
14710
14711  # Some binutils ld are patched to set DT_RUNPATH
14712  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14713  $as_echo_n "(cached) " >&6
14714else
14715  lt_cv_shlibpath_overrides_runpath=no
14716    save_LDFLAGS=$LDFLAGS
14717    save_libdir=$libdir
14718    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14719	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14720    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14721/* end confdefs.h.  */
14722
14723int
14724main ()
14725{
14726
14727  ;
14728  return 0;
14729}
14730_ACEOF
14731if ac_fn_c_try_link "$LINENO"; then :
14732  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14733  lt_cv_shlibpath_overrides_runpath=yes
14734fi
14735fi
14736rm -f core conftest.err conftest.$ac_objext \
14737    conftest$ac_exeext conftest.$ac_ext
14738    LDFLAGS=$save_LDFLAGS
14739    libdir=$save_libdir
14740
14741fi
14742
14743  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14744
14745  # This implies no fast_install, which is unacceptable.
14746  # Some rework will be needed to allow for fast_install
14747  # before this can be enabled.
14748  hardcode_into_libs=yes
14749
14750  # Ideally, we could use ldconfig to report *all* directores which are
14751  # searched for libraries, however this is still not possible.  Aside from not
14752  # being certain /sbin/ldconfig is available, command
14753  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14754  # even though it is searched at run-time.  Try to do the best guess by
14755  # appending ld.so.conf contents (and includes) to the search path.
14756
14757  # There is no easy way to reliably detect the sys dlsearch path. We will first
14758  # assume ldconfig reports the path correctly, but check it with the current
14759  # ld cache. If any cached path is not present in the generated path_spec, then
14760  # we know ldconfig is bad and should manually parse the ld.so.conf files.
14761  # Note the reported paths can be a superset of the cached paths.
14762  # The catch is that the default path may not be in the ld.so.conf. We have to
14763  # add any missing one back to the path_spec (from the cached paths).
14764
14765  if test -x /sbin/ldconfig; then
14766    sys_lib_dlsearch_path_spec=`/sbin/ldconfig -N -X -v 2>/dev/null | grep ^/ | sed -e 's/:.*//g' | tr '\n' ' '`
14767    cached_lib_dlsearch_path=`/sbin/ldconfig -p | sed -e 's/.*=> //g' | grep '^/' | while read p; do dirname $p; done | sort | uniq | tr '\n' ' '`
14768    for p in `echo $cached_lib_dlsearch_path`; do
14769      case "$sys_lib_dlsearch_path_spec" in
14770        *$p*)
14771            bad_ldconfig=no
14772            ;;
14773           *)
14774            # ldconfig is bad if cached path is not reported
14775            bad_ldconfig=yes
14776            break
14777            ;;
14778      esac
14779    done
14780  else
14781    bad_ldconfig=yes
14782  fi
14783
14784  if test "$bad_ldconfig" = "yes"; then
14785    if test -f /etc/ld.so.conf; then
14786      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14787      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14788    fi
14789
14790    # catch anything that in the cached path but not in the conf files
14791    for p in `echo $cached_lib_dlsearch_path`; do
14792      case "$sys_lib_dlsearch_path_spec" in
14793        *$p*)
14794            ;;
14795           *)
14796            sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $p"
14797            ;;
14798      esac
14799    done
14800  fi
14801
14802  # We used to test for /lib/ld.so.1 and disable shared libraries on
14803  # powerpc, because MkLinux only supported shared libraries with the
14804  # GNU dynamic linker.  Since this was broken with cross compilers,
14805  # most powerpc-linux boxes support dynamic linking these days and
14806  # people can always --disable-shared, the test was removed, and we
14807  # assume the GNU/Linux dynamic linker is in use.
14808  dynamic_linker='GNU/Linux ld.so'
14809  ;;
14810
14811netbsd*)
14812  version_type=sunos
14813  need_lib_prefix=no
14814  need_version=no
14815  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14816    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14817    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14818    dynamic_linker='NetBSD (a.out) ld.so'
14819  else
14820    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14821    soname_spec='$libname$release$shared_ext$major'
14822    dynamic_linker='NetBSD ld.elf_so'
14823  fi
14824  shlibpath_var=LD_LIBRARY_PATH
14825  shlibpath_overrides_runpath=yes
14826  hardcode_into_libs=yes
14827  ;;
14828
14829newsos6)
14830  version_type=linux # correct to gnu/linux during the next big refactor
14831  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14832  shlibpath_var=LD_LIBRARY_PATH
14833  shlibpath_overrides_runpath=yes
14834  ;;
14835
14836*nto* | *qnx*)
14837  version_type=qnx
14838  need_lib_prefix=no
14839  need_version=no
14840  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14841  soname_spec='$libname$release$shared_ext$major'
14842  shlibpath_var=LD_LIBRARY_PATH
14843  shlibpath_overrides_runpath=no
14844  hardcode_into_libs=yes
14845  dynamic_linker='ldqnx.so'
14846  ;;
14847
14848openbsd* | bitrig*)
14849  version_type=sunos
14850  sys_lib_dlsearch_path_spec=/usr/lib
14851  need_lib_prefix=no
14852  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14853    need_version=no
14854  else
14855    need_version=yes
14856  fi
14857  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14858  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14859  shlibpath_var=LD_LIBRARY_PATH
14860  shlibpath_overrides_runpath=yes
14861  ;;
14862
14863os2*)
14864  libname_spec='$name'
14865  version_type=windows
14866  shrext_cmds=.dll
14867  need_version=no
14868  need_lib_prefix=no
14869  # OS/2 can only load a DLL with a base name of 8 characters or less.
14870  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14871    v=$($ECHO $release$versuffix | tr -d .-);
14872    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14873    $ECHO $n$v`$shared_ext'
14874  library_names_spec='${libname}_dll.$libext'
14875  dynamic_linker='OS/2 ld.exe'
14876  shlibpath_var=BEGINLIBPATH
14877  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14878  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14879  postinstall_cmds='base_file=`basename \$file`~
14880    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14881    dldir=$destdir/`dirname \$dlpath`~
14882    test -d \$dldir || mkdir -p \$dldir~
14883    $install_prog $dir/$dlname \$dldir/$dlname~
14884    chmod a+x \$dldir/$dlname~
14885    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14886      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14887    fi'
14888  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14889    dlpath=$dir/\$dldll~
14890    $RM \$dlpath'
14891  ;;
14892
14893osf3* | osf4* | osf5*)
14894  version_type=osf
14895  need_lib_prefix=no
14896  need_version=no
14897  soname_spec='$libname$release$shared_ext$major'
14898  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14899  shlibpath_var=LD_LIBRARY_PATH
14900  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14901  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14902  ;;
14903
14904rdos*)
14905  dynamic_linker=no
14906  ;;
14907
14908solaris*)
14909  version_type=linux # correct to gnu/linux during the next big refactor
14910  need_lib_prefix=no
14911  need_version=no
14912  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14913  soname_spec='$libname$release$shared_ext$major'
14914  shlibpath_var=LD_LIBRARY_PATH
14915  shlibpath_overrides_runpath=yes
14916  hardcode_into_libs=yes
14917  # ldd complains unless libraries are executable
14918  postinstall_cmds='chmod +x $lib'
14919  ;;
14920
14921sunos4*)
14922  version_type=sunos
14923  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14924  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14925  shlibpath_var=LD_LIBRARY_PATH
14926  shlibpath_overrides_runpath=yes
14927  if test yes = "$with_gnu_ld"; then
14928    need_lib_prefix=no
14929  fi
14930  need_version=yes
14931  ;;
14932
14933sysv4 | sysv4.3*)
14934  version_type=linux # correct to gnu/linux during the next big refactor
14935  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14936  soname_spec='$libname$release$shared_ext$major'
14937  shlibpath_var=LD_LIBRARY_PATH
14938  case $host_vendor in
14939    sni)
14940      shlibpath_overrides_runpath=no
14941      need_lib_prefix=no
14942      runpath_var=LD_RUN_PATH
14943      ;;
14944    siemens)
14945      need_lib_prefix=no
14946      ;;
14947    motorola)
14948      need_lib_prefix=no
14949      need_version=no
14950      shlibpath_overrides_runpath=no
14951      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14952      ;;
14953  esac
14954  ;;
14955
14956sysv4*MP*)
14957  if test -d /usr/nec; then
14958    version_type=linux # correct to gnu/linux during the next big refactor
14959    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14960    soname_spec='$libname$shared_ext.$major'
14961    shlibpath_var=LD_LIBRARY_PATH
14962  fi
14963  ;;
14964
14965sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14966  version_type=sco
14967  need_lib_prefix=no
14968  need_version=no
14969  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14970  soname_spec='$libname$release$shared_ext$major'
14971  shlibpath_var=LD_LIBRARY_PATH
14972  shlibpath_overrides_runpath=yes
14973  hardcode_into_libs=yes
14974  if test yes = "$with_gnu_ld"; then
14975    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14976  else
14977    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14978    case $host_os in
14979      sco3.2v5*)
14980        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14981	;;
14982    esac
14983  fi
14984  sys_lib_dlsearch_path_spec='/usr/lib'
14985  ;;
14986
14987tpf*)
14988  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14989  version_type=linux # correct to gnu/linux during the next big refactor
14990  need_lib_prefix=no
14991  need_version=no
14992  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14993  shlibpath_var=LD_LIBRARY_PATH
14994  shlibpath_overrides_runpath=no
14995  hardcode_into_libs=yes
14996  ;;
14997
14998uts4*)
14999  version_type=linux # correct to gnu/linux during the next big refactor
15000  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15001  soname_spec='$libname$release$shared_ext$major'
15002  shlibpath_var=LD_LIBRARY_PATH
15003  ;;
15004
15005*)
15006  dynamic_linker=no
15007  ;;
15008esac
15009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15010$as_echo "$dynamic_linker" >&6; }
15011test no = "$dynamic_linker" && can_build_shared=no
15012
15013variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15014if test yes = "$GCC"; then
15015  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15016fi
15017
15018if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15019  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15020fi
15021
15022if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15023  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15024fi
15025
15026# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15027configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15028
15029# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15030func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15031
15032# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15033configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15132$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15133hardcode_action=
15134if test -n "$hardcode_libdir_flag_spec" ||
15135   test -n "$runpath_var" ||
15136   test yes = "$hardcode_automatic"; then
15137
15138  # We can hardcode non-existent directories.
15139  if test no != "$hardcode_direct" &&
15140     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15141     # have to relink, otherwise we might link with an installed library
15142     # when we should be linking with a yet-to-be-installed one
15143     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15144     test no != "$hardcode_minus_L"; then
15145    # Linking always hardcodes the temporary library directory.
15146    hardcode_action=relink
15147  else
15148    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15149    hardcode_action=immediate
15150  fi
15151else
15152  # We cannot hardcode anything, or else we can only hardcode existing
15153  # directories.
15154  hardcode_action=unsupported
15155fi
15156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15157$as_echo "$hardcode_action" >&6; }
15158
15159if test relink = "$hardcode_action" ||
15160   test yes = "$inherit_rpath"; then
15161  # Fast installation is not supported
15162  enable_fast_install=no
15163elif test yes = "$shlibpath_overrides_runpath" ||
15164     test no = "$enable_shared"; then
15165  # Fast installation is not necessary
15166  enable_fast_install=needless
15167fi
15168
15169
15170
15171
15172
15173
15174  if test yes != "$enable_dlopen"; then
15175  enable_dlopen=unknown
15176  enable_dlopen_self=unknown
15177  enable_dlopen_self_static=unknown
15178else
15179  lt_cv_dlopen=no
15180  lt_cv_dlopen_libs=
15181
15182  case $host_os in
15183  beos*)
15184    lt_cv_dlopen=load_add_on
15185    lt_cv_dlopen_libs=
15186    lt_cv_dlopen_self=yes
15187    ;;
15188
15189  mingw* | pw32* | cegcc*)
15190    lt_cv_dlopen=LoadLibrary
15191    lt_cv_dlopen_libs=
15192    ;;
15193
15194  cygwin*)
15195    lt_cv_dlopen=dlopen
15196    lt_cv_dlopen_libs=
15197    ;;
15198
15199  darwin*)
15200    # if libdl is installed we need to link against it
15201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15202$as_echo_n "checking for dlopen in -ldl... " >&6; }
15203if ${ac_cv_lib_dl_dlopen+:} false; then :
15204  $as_echo_n "(cached) " >&6
15205else
15206  ac_check_lib_save_LIBS=$LIBS
15207LIBS="-ldl  $LIBS"
15208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209/* end confdefs.h.  */
15210
15211/* Override any GCC internal prototype to avoid an error.
15212   Use char because int might match the return type of a GCC
15213   builtin and then its argument prototype would still apply.  */
15214#ifdef __cplusplus
15215extern "C"
15216#endif
15217char dlopen ();
15218int
15219main ()
15220{
15221return dlopen ();
15222  ;
15223  return 0;
15224}
15225_ACEOF
15226if ac_fn_c_try_link "$LINENO"; then :
15227  ac_cv_lib_dl_dlopen=yes
15228else
15229  ac_cv_lib_dl_dlopen=no
15230fi
15231rm -f core conftest.err conftest.$ac_objext \
15232    conftest$ac_exeext conftest.$ac_ext
15233LIBS=$ac_check_lib_save_LIBS
15234fi
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15236$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15237if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15238  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15239else
15240
15241    lt_cv_dlopen=dyld
15242    lt_cv_dlopen_libs=
15243    lt_cv_dlopen_self=yes
15244
15245fi
15246
15247    ;;
15248
15249  tpf*)
15250    # Don't try to run any link tests for TPF.  We know it's impossible
15251    # because TPF is a cross-compiler, and we know how we open DSOs.
15252    lt_cv_dlopen=dlopen
15253    lt_cv_dlopen_libs=
15254    lt_cv_dlopen_self=no
15255    ;;
15256
15257  *)
15258    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15259if test "x$ac_cv_func_shl_load" = xyes; then :
15260  lt_cv_dlopen=shl_load
15261else
15262  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15263$as_echo_n "checking for shl_load in -ldld... " >&6; }
15264if ${ac_cv_lib_dld_shl_load+:} false; then :
15265  $as_echo_n "(cached) " >&6
15266else
15267  ac_check_lib_save_LIBS=$LIBS
15268LIBS="-ldld  $LIBS"
15269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270/* end confdefs.h.  */
15271
15272/* Override any GCC internal prototype to avoid an error.
15273   Use char because int might match the return type of a GCC
15274   builtin and then its argument prototype would still apply.  */
15275#ifdef __cplusplus
15276extern "C"
15277#endif
15278char shl_load ();
15279int
15280main ()
15281{
15282return shl_load ();
15283  ;
15284  return 0;
15285}
15286_ACEOF
15287if ac_fn_c_try_link "$LINENO"; then :
15288  ac_cv_lib_dld_shl_load=yes
15289else
15290  ac_cv_lib_dld_shl_load=no
15291fi
15292rm -f core conftest.err conftest.$ac_objext \
15293    conftest$ac_exeext conftest.$ac_ext
15294LIBS=$ac_check_lib_save_LIBS
15295fi
15296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15297$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15298if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15299  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15300else
15301  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15302if test "x$ac_cv_func_dlopen" = xyes; then :
15303  lt_cv_dlopen=dlopen
15304else
15305  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15306$as_echo_n "checking for dlopen in -ldl... " >&6; }
15307if ${ac_cv_lib_dl_dlopen+:} false; then :
15308  $as_echo_n "(cached) " >&6
15309else
15310  ac_check_lib_save_LIBS=$LIBS
15311LIBS="-ldl  $LIBS"
15312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313/* end confdefs.h.  */
15314
15315/* Override any GCC internal prototype to avoid an error.
15316   Use char because int might match the return type of a GCC
15317   builtin and then its argument prototype would still apply.  */
15318#ifdef __cplusplus
15319extern "C"
15320#endif
15321char dlopen ();
15322int
15323main ()
15324{
15325return dlopen ();
15326  ;
15327  return 0;
15328}
15329_ACEOF
15330if ac_fn_c_try_link "$LINENO"; then :
15331  ac_cv_lib_dl_dlopen=yes
15332else
15333  ac_cv_lib_dl_dlopen=no
15334fi
15335rm -f core conftest.err conftest.$ac_objext \
15336    conftest$ac_exeext conftest.$ac_ext
15337LIBS=$ac_check_lib_save_LIBS
15338fi
15339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15340$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15341if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15342  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15343else
15344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15345$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15346if ${ac_cv_lib_svld_dlopen+:} false; then :
15347  $as_echo_n "(cached) " >&6
15348else
15349  ac_check_lib_save_LIBS=$LIBS
15350LIBS="-lsvld  $LIBS"
15351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15352/* end confdefs.h.  */
15353
15354/* Override any GCC internal prototype to avoid an error.
15355   Use char because int might match the return type of a GCC
15356   builtin and then its argument prototype would still apply.  */
15357#ifdef __cplusplus
15358extern "C"
15359#endif
15360char dlopen ();
15361int
15362main ()
15363{
15364return dlopen ();
15365  ;
15366  return 0;
15367}
15368_ACEOF
15369if ac_fn_c_try_link "$LINENO"; then :
15370  ac_cv_lib_svld_dlopen=yes
15371else
15372  ac_cv_lib_svld_dlopen=no
15373fi
15374rm -f core conftest.err conftest.$ac_objext \
15375    conftest$ac_exeext conftest.$ac_ext
15376LIBS=$ac_check_lib_save_LIBS
15377fi
15378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15379$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15380if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15381  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15382else
15383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15384$as_echo_n "checking for dld_link in -ldld... " >&6; }
15385if ${ac_cv_lib_dld_dld_link+:} false; then :
15386  $as_echo_n "(cached) " >&6
15387else
15388  ac_check_lib_save_LIBS=$LIBS
15389LIBS="-ldld  $LIBS"
15390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391/* end confdefs.h.  */
15392
15393/* Override any GCC internal prototype to avoid an error.
15394   Use char because int might match the return type of a GCC
15395   builtin and then its argument prototype would still apply.  */
15396#ifdef __cplusplus
15397extern "C"
15398#endif
15399char dld_link ();
15400int
15401main ()
15402{
15403return dld_link ();
15404  ;
15405  return 0;
15406}
15407_ACEOF
15408if ac_fn_c_try_link "$LINENO"; then :
15409  ac_cv_lib_dld_dld_link=yes
15410else
15411  ac_cv_lib_dld_dld_link=no
15412fi
15413rm -f core conftest.err conftest.$ac_objext \
15414    conftest$ac_exeext conftest.$ac_ext
15415LIBS=$ac_check_lib_save_LIBS
15416fi
15417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15418$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15419if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15420  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15421fi
15422
15423
15424fi
15425
15426
15427fi
15428
15429
15430fi
15431
15432
15433fi
15434
15435
15436fi
15437
15438    ;;
15439  esac
15440
15441  if test no = "$lt_cv_dlopen"; then
15442    enable_dlopen=no
15443  else
15444    enable_dlopen=yes
15445  fi
15446
15447  case $lt_cv_dlopen in
15448  dlopen)
15449    save_CPPFLAGS=$CPPFLAGS
15450    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15451
15452    save_LDFLAGS=$LDFLAGS
15453    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15454
15455    save_LIBS=$LIBS
15456    LIBS="$lt_cv_dlopen_libs $LIBS"
15457
15458    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15459$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15460if ${lt_cv_dlopen_self+:} false; then :
15461  $as_echo_n "(cached) " >&6
15462else
15463  	  if test yes = "$cross_compiling"; then :
15464  lt_cv_dlopen_self=cross
15465else
15466  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15467  lt_status=$lt_dlunknown
15468  cat > conftest.$ac_ext <<_LT_EOF
15469#line $LINENO "configure"
15470#include "confdefs.h"
15471
15472#if HAVE_DLFCN_H
15473#include <dlfcn.h>
15474#endif
15475
15476#include <stdio.h>
15477
15478#ifdef RTLD_GLOBAL
15479#  define LT_DLGLOBAL		RTLD_GLOBAL
15480#else
15481#  ifdef DL_GLOBAL
15482#    define LT_DLGLOBAL		DL_GLOBAL
15483#  else
15484#    define LT_DLGLOBAL		0
15485#  endif
15486#endif
15487
15488/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15489   find out it does not work in some platform. */
15490#ifndef LT_DLLAZY_OR_NOW
15491#  ifdef RTLD_LAZY
15492#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15493#  else
15494#    ifdef DL_LAZY
15495#      define LT_DLLAZY_OR_NOW		DL_LAZY
15496#    else
15497#      ifdef RTLD_NOW
15498#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15499#      else
15500#        ifdef DL_NOW
15501#          define LT_DLLAZY_OR_NOW	DL_NOW
15502#        else
15503#          define LT_DLLAZY_OR_NOW	0
15504#        endif
15505#      endif
15506#    endif
15507#  endif
15508#endif
15509
15510/* When -fvisibility=hidden is used, assume the code has been annotated
15511   correspondingly for the symbols needed.  */
15512#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15513int fnord () __attribute__((visibility("default")));
15514#endif
15515
15516int fnord () { return 42; }
15517int main ()
15518{
15519  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15520  int status = $lt_dlunknown;
15521
15522  if (self)
15523    {
15524      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15525      else
15526        {
15527	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15528          else puts (dlerror ());
15529	}
15530      /* dlclose (self); */
15531    }
15532  else
15533    puts (dlerror ());
15534
15535  return status;
15536}
15537_LT_EOF
15538  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15539  (eval $ac_link) 2>&5
15540  ac_status=$?
15541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15542  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15543    (./conftest; exit; ) >&5 2>/dev/null
15544    lt_status=$?
15545    case x$lt_status in
15546      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15547      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15548      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15549    esac
15550  else :
15551    # compilation failed
15552    lt_cv_dlopen_self=no
15553  fi
15554fi
15555rm -fr conftest*
15556
15557
15558fi
15559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15560$as_echo "$lt_cv_dlopen_self" >&6; }
15561
15562    if test yes = "$lt_cv_dlopen_self"; then
15563      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15564      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15565$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15566if ${lt_cv_dlopen_self_static+:} false; then :
15567  $as_echo_n "(cached) " >&6
15568else
15569  	  if test yes = "$cross_compiling"; then :
15570  lt_cv_dlopen_self_static=cross
15571else
15572  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15573  lt_status=$lt_dlunknown
15574  cat > conftest.$ac_ext <<_LT_EOF
15575#line $LINENO "configure"
15576#include "confdefs.h"
15577
15578#if HAVE_DLFCN_H
15579#include <dlfcn.h>
15580#endif
15581
15582#include <stdio.h>
15583
15584#ifdef RTLD_GLOBAL
15585#  define LT_DLGLOBAL		RTLD_GLOBAL
15586#else
15587#  ifdef DL_GLOBAL
15588#    define LT_DLGLOBAL		DL_GLOBAL
15589#  else
15590#    define LT_DLGLOBAL		0
15591#  endif
15592#endif
15593
15594/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15595   find out it does not work in some platform. */
15596#ifndef LT_DLLAZY_OR_NOW
15597#  ifdef RTLD_LAZY
15598#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15599#  else
15600#    ifdef DL_LAZY
15601#      define LT_DLLAZY_OR_NOW		DL_LAZY
15602#    else
15603#      ifdef RTLD_NOW
15604#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15605#      else
15606#        ifdef DL_NOW
15607#          define LT_DLLAZY_OR_NOW	DL_NOW
15608#        else
15609#          define LT_DLLAZY_OR_NOW	0
15610#        endif
15611#      endif
15612#    endif
15613#  endif
15614#endif
15615
15616/* When -fvisibility=hidden is used, assume the code has been annotated
15617   correspondingly for the symbols needed.  */
15618#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15619int fnord () __attribute__((visibility("default")));
15620#endif
15621
15622int fnord () { return 42; }
15623int main ()
15624{
15625  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15626  int status = $lt_dlunknown;
15627
15628  if (self)
15629    {
15630      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15631      else
15632        {
15633	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15634          else puts (dlerror ());
15635	}
15636      /* dlclose (self); */
15637    }
15638  else
15639    puts (dlerror ());
15640
15641  return status;
15642}
15643_LT_EOF
15644  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15645  (eval $ac_link) 2>&5
15646  ac_status=$?
15647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15648  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15649    (./conftest; exit; ) >&5 2>/dev/null
15650    lt_status=$?
15651    case x$lt_status in
15652      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15653      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15654      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15655    esac
15656  else :
15657    # compilation failed
15658    lt_cv_dlopen_self_static=no
15659  fi
15660fi
15661rm -fr conftest*
15662
15663
15664fi
15665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15666$as_echo "$lt_cv_dlopen_self_static" >&6; }
15667    fi
15668
15669    CPPFLAGS=$save_CPPFLAGS
15670    LDFLAGS=$save_LDFLAGS
15671    LIBS=$save_LIBS
15672    ;;
15673  esac
15674
15675  case $lt_cv_dlopen_self in
15676  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15677  *) enable_dlopen_self=unknown ;;
15678  esac
15679
15680  case $lt_cv_dlopen_self_static in
15681  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15682  *) enable_dlopen_self_static=unknown ;;
15683  esac
15684fi
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702striplib=
15703old_striplib=
15704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15705$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15706if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15707  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15708  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15710$as_echo "yes" >&6; }
15711else
15712# FIXME - insert some real tests, host_os isn't really good enough
15713  case $host_os in
15714  darwin*)
15715    if test -n "$STRIP"; then
15716      striplib="$STRIP -x"
15717      old_striplib="$STRIP -S"
15718      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15719$as_echo "yes" >&6; }
15720    else
15721      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15722$as_echo "no" >&6; }
15723    fi
15724    ;;
15725  *)
15726    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15727$as_echo "no" >&6; }
15728    ;;
15729  esac
15730fi
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743  # Report what library types will actually be built
15744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15745$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15747$as_echo "$can_build_shared" >&6; }
15748
15749  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15750$as_echo_n "checking whether to build shared libraries... " >&6; }
15751  test no = "$can_build_shared" && enable_shared=no
15752
15753  # On AIX, shared libraries and static libraries use the same namespace, and
15754  # are all built from PIC.
15755  case $host_os in
15756  aix3*)
15757    test yes = "$enable_shared" && enable_static=no
15758    if test -n "$RANLIB"; then
15759      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15760      postinstall_cmds='$RANLIB $lib'
15761    fi
15762    ;;
15763
15764  aix[4-9]*)
15765    if test ia64 != "$host_cpu"; then
15766      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15767      yes,aix,yes) ;;			# shared object as lib.so file only
15768      yes,svr4,*) ;;			# shared object as lib.so archive member only
15769      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15770      esac
15771    fi
15772    ;;
15773  esac
15774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15775$as_echo "$enable_shared" >&6; }
15776
15777  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15778$as_echo_n "checking whether to build static libraries... " >&6; }
15779  # Make sure either enable_shared or enable_static is yes.
15780  test yes = "$enable_shared" || enable_static=yes
15781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15782$as_echo "$enable_static" >&6; }
15783
15784
15785
15786
15787fi
15788ac_ext=c
15789ac_cpp='$CPP $CPPFLAGS'
15790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15792ac_compiler_gnu=$ac_cv_c_compiler_gnu
15793
15794CC=$lt_save_CC
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810        ac_config_commands="$ac_config_commands libtool"
15811
15812
15813
15814
15815# Only expand once:
15816
15817
15818# Non-verbose make by default
15819# Check whether --enable-silent-rules was given.
15820if test "${enable_silent_rules+set}" = set; then :
15821  enableval=$enable_silent_rules;
15822fi
15823
15824case $enable_silent_rules in # (((
15825  yes) AM_DEFAULT_VERBOSITY=0;;
15826   no) AM_DEFAULT_VERBOSITY=1;;
15827    *) AM_DEFAULT_VERBOSITY=0;;
15828esac
15829am_make=${MAKE-make}
15830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
15831$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
15832if ${am_cv_make_support_nested_variables+:} false; then :
15833  $as_echo_n "(cached) " >&6
15834else
15835  if $as_echo 'TRUE=$(BAR$(V))
15836BAR0=false
15837BAR1=true
15838V=1
15839am__doit:
15840	@$(TRUE)
15841.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
15842  am_cv_make_support_nested_variables=yes
15843else
15844  am_cv_make_support_nested_variables=no
15845fi
15846fi
15847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
15848$as_echo "$am_cv_make_support_nested_variables" >&6; }
15849if test $am_cv_make_support_nested_variables = yes; then
15850    AM_V='$(V)'
15851  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
15852else
15853  AM_V=$AM_DEFAULT_VERBOSITY
15854  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
15855fi
15856AM_BACKSLASH='\'
15857
15858
15859# Disable rpath/runpath-related linkflags in the compiler wrappers if
15860# shared libraries are disabled, since rpath/runpath makes no sense in
15861# the context of static libraries.
15862if test "X$enable_shared" = "Xno" ; then
15863    with_wrapper_dl_type=no
15864fi
15865
15866INTERLIB_DEPS=yes
15867# We conservatively disable interlibrary dependencies if the libtool
15868# support model is anything different from "pass_all"
15869if test "X$enable_shared" = "Xno" -o "$deplibs_check_method" != "pass_all" -o "$enable_interlib_deps" = "no" ; then
15870    INTERLIB_DEPS=no
15871fi
15872export INTERLIB_DEPS
15873
15874
15875
15876# Before attempting to find valid compilers, set the corresponding precious
15877# shell variable to "no" for any languages that have been disabled by the user
15878# with "--disable-LANG".  Libtool understands this as a request to disable
15879# support for this language. This should save a bit of configure time and also
15880# prevent user complaints like ticket #1570.
15881#
15882# NOTE: we are skipping overiding CXX as some modules (e.g. ucx) may depend on CXX
15883#
15884if test "x$enable_f77" = "xno"; then :
15885  F77=no
15886fi
15887if test "x$enable_fc"  = "xno"; then :
15888  FC=no
15889fi
15890
15891# suppress default "-g -O2" from AC_PROG_CXX
15892: ${CXXFLAGS=""}
15893ac_ext=cpp
15894ac_cpp='$CXXCPP $CPPFLAGS'
15895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15898if test -z "$CXX"; then
15899  if test -n "$CCC"; then
15900    CXX=$CCC
15901  else
15902    if test -n "$ac_tool_prefix"; then
15903  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15904  do
15905    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15908$as_echo_n "checking for $ac_word... " >&6; }
15909if ${ac_cv_prog_CXX+:} false; then :
15910  $as_echo_n "(cached) " >&6
15911else
15912  if test -n "$CXX"; then
15913  ac_cv_prog_CXX="$CXX" # Let the user override the test.
15914else
15915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15916for as_dir in $PATH
15917do
15918  IFS=$as_save_IFS
15919  test -z "$as_dir" && as_dir=.
15920    for ac_exec_ext in '' $ac_executable_extensions; do
15921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15922    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15924    break 2
15925  fi
15926done
15927  done
15928IFS=$as_save_IFS
15929
15930fi
15931fi
15932CXX=$ac_cv_prog_CXX
15933if test -n "$CXX"; then
15934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15935$as_echo "$CXX" >&6; }
15936else
15937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15938$as_echo "no" >&6; }
15939fi
15940
15941
15942    test -n "$CXX" && break
15943  done
15944fi
15945if test -z "$CXX"; then
15946  ac_ct_CXX=$CXX
15947  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15948do
15949  # Extract the first word of "$ac_prog", so it can be a program name with args.
15950set dummy $ac_prog; ac_word=$2
15951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15952$as_echo_n "checking for $ac_word... " >&6; }
15953if ${ac_cv_prog_ac_ct_CXX+:} false; then :
15954  $as_echo_n "(cached) " >&6
15955else
15956  if test -n "$ac_ct_CXX"; then
15957  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15958else
15959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15960for as_dir in $PATH
15961do
15962  IFS=$as_save_IFS
15963  test -z "$as_dir" && as_dir=.
15964    for ac_exec_ext in '' $ac_executable_extensions; do
15965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15966    ac_cv_prog_ac_ct_CXX="$ac_prog"
15967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15968    break 2
15969  fi
15970done
15971  done
15972IFS=$as_save_IFS
15973
15974fi
15975fi
15976ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15977if test -n "$ac_ct_CXX"; then
15978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15979$as_echo "$ac_ct_CXX" >&6; }
15980else
15981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15982$as_echo "no" >&6; }
15983fi
15984
15985
15986  test -n "$ac_ct_CXX" && break
15987done
15988
15989  if test "x$ac_ct_CXX" = x; then
15990    CXX="g++"
15991  else
15992    case $cross_compiling:$ac_tool_warned in
15993yes:)
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15996ac_tool_warned=yes ;;
15997esac
15998    CXX=$ac_ct_CXX
15999  fi
16000fi
16001
16002  fi
16003fi
16004# Provide some information about the compiler.
16005$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
16006set X $ac_compile
16007ac_compiler=$2
16008for ac_option in --version -v -V -qversion; do
16009  { { ac_try="$ac_compiler $ac_option >&5"
16010case "(($ac_try" in
16011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16012  *) ac_try_echo=$ac_try;;
16013esac
16014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16015$as_echo "$ac_try_echo"; } >&5
16016  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16017  ac_status=$?
16018  if test -s conftest.err; then
16019    sed '10a\
16020... rest of stderr output deleted ...
16021         10q' conftest.err >conftest.er1
16022    cat conftest.er1 >&5
16023  fi
16024  rm -f conftest.er1 conftest.err
16025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16026  test $ac_status = 0; }
16027done
16028
16029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
16030$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
16031if ${ac_cv_cxx_compiler_gnu+:} false; then :
16032  $as_echo_n "(cached) " >&6
16033else
16034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16035/* end confdefs.h.  */
16036
16037int
16038main ()
16039{
16040#ifndef __GNUC__
16041       choke me
16042#endif
16043
16044  ;
16045  return 0;
16046}
16047_ACEOF
16048if ac_fn_cxx_try_compile "$LINENO"; then :
16049  ac_compiler_gnu=yes
16050else
16051  ac_compiler_gnu=no
16052fi
16053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16055
16056fi
16057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
16058$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
16059if test $ac_compiler_gnu = yes; then
16060  GXX=yes
16061else
16062  GXX=
16063fi
16064ac_test_CXXFLAGS=${CXXFLAGS+set}
16065ac_save_CXXFLAGS=$CXXFLAGS
16066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
16067$as_echo_n "checking whether $CXX accepts -g... " >&6; }
16068if ${ac_cv_prog_cxx_g+:} false; then :
16069  $as_echo_n "(cached) " >&6
16070else
16071  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16072   ac_cxx_werror_flag=yes
16073   ac_cv_prog_cxx_g=no
16074   CXXFLAGS="-g"
16075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076/* end confdefs.h.  */
16077
16078int
16079main ()
16080{
16081
16082  ;
16083  return 0;
16084}
16085_ACEOF
16086if ac_fn_cxx_try_compile "$LINENO"; then :
16087  ac_cv_prog_cxx_g=yes
16088else
16089  CXXFLAGS=""
16090      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16091/* end confdefs.h.  */
16092
16093int
16094main ()
16095{
16096
16097  ;
16098  return 0;
16099}
16100_ACEOF
16101if ac_fn_cxx_try_compile "$LINENO"; then :
16102
16103else
16104  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16105	 CXXFLAGS="-g"
16106	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16107/* end confdefs.h.  */
16108
16109int
16110main ()
16111{
16112
16113  ;
16114  return 0;
16115}
16116_ACEOF
16117if ac_fn_cxx_try_compile "$LINENO"; then :
16118  ac_cv_prog_cxx_g=yes
16119fi
16120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16121fi
16122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16123fi
16124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16125   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16126fi
16127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
16128$as_echo "$ac_cv_prog_cxx_g" >&6; }
16129if test "$ac_test_CXXFLAGS" = set; then
16130  CXXFLAGS=$ac_save_CXXFLAGS
16131elif test $ac_cv_prog_cxx_g = yes; then
16132  if test "$GXX" = yes; then
16133    CXXFLAGS="-g -O2"
16134  else
16135    CXXFLAGS="-g"
16136  fi
16137else
16138  if test "$GXX" = yes; then
16139    CXXFLAGS="-O2"
16140  else
16141    CXXFLAGS=
16142  fi
16143fi
16144ac_ext=c
16145ac_cpp='$CPP $CPPFLAGS'
16146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16148ac_compiler_gnu=$ac_cv_c_compiler_gnu
16149
16150depcc="$CXX"  am_compiler_list=
16151
16152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16153$as_echo_n "checking dependency style of $depcc... " >&6; }
16154if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
16155  $as_echo_n "(cached) " >&6
16156else
16157  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16158  # We make a subdir and do the tests there.  Otherwise we can end up
16159  # making bogus files that we don't know about and never remove.  For
16160  # instance it was reported that on HP-UX the gcc test will end up
16161  # making a dummy file named 'D' -- because '-MD' means "put the output
16162  # in D".
16163  rm -rf conftest.dir
16164  mkdir conftest.dir
16165  # Copy depcomp to subdir because otherwise we won't find it if we're
16166  # using a relative directory.
16167  cp "$am_depcomp" conftest.dir
16168  cd conftest.dir
16169  # We will build objects and dependencies in a subdirectory because
16170  # it helps to detect inapplicable dependency modes.  For instance
16171  # both Tru64's cc and ICC support -MD to output dependencies as a
16172  # side effect of compilation, but ICC will put the dependencies in
16173  # the current directory while Tru64 will put them in the object
16174  # directory.
16175  mkdir sub
16176
16177  am_cv_CXX_dependencies_compiler_type=none
16178  if test "$am_compiler_list" = ""; then
16179     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16180  fi
16181  am__universal=false
16182  case " $depcc " in #(
16183     *\ -arch\ *\ -arch\ *) am__universal=true ;;
16184     esac
16185
16186  for depmode in $am_compiler_list; do
16187    # Setup a source with many dependencies, because some compilers
16188    # like to wrap large dependency lists on column 80 (with \), and
16189    # we should not choose a depcomp mode which is confused by this.
16190    #
16191    # We need to recreate these files for each test, as the compiler may
16192    # overwrite some of them when testing with obscure command lines.
16193    # This happens at least with the AIX C compiler.
16194    : > sub/conftest.c
16195    for i in 1 2 3 4 5 6; do
16196      echo '#include "conftst'$i'.h"' >> sub/conftest.c
16197      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16198      # Solaris 10 /bin/sh.
16199      echo '/* dummy */' > sub/conftst$i.h
16200    done
16201    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16202
16203    # We check with '-c' and '-o' for the sake of the "dashmstdout"
16204    # mode.  It turns out that the SunPro C++ compiler does not properly
16205    # handle '-M -o', and we need to detect this.  Also, some Intel
16206    # versions had trouble with output in subdirs.
16207    am__obj=sub/conftest.${OBJEXT-o}
16208    am__minus_obj="-o $am__obj"
16209    case $depmode in
16210    gcc)
16211      # This depmode causes a compiler race in universal mode.
16212      test "$am__universal" = false || continue
16213      ;;
16214    nosideeffect)
16215      # After this tag, mechanisms are not by side-effect, so they'll
16216      # only be used when explicitly requested.
16217      if test "x$enable_dependency_tracking" = xyes; then
16218	continue
16219      else
16220	break
16221      fi
16222      ;;
16223    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16224      # This compiler won't grok '-c -o', but also, the minuso test has
16225      # not run yet.  These depmodes are late enough in the game, and
16226      # so weak that their functioning should not be impacted.
16227      am__obj=conftest.${OBJEXT-o}
16228      am__minus_obj=
16229      ;;
16230    none) break ;;
16231    esac
16232    if depmode=$depmode \
16233       source=sub/conftest.c object=$am__obj \
16234       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16235       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16236         >/dev/null 2>conftest.err &&
16237       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16238       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16239       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16240       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16241      # icc doesn't choke on unknown options, it will just issue warnings
16242      # or remarks (even with -Werror).  So we grep stderr for any message
16243      # that says an option was ignored or not supported.
16244      # When given -MP, icc 7.0 and 7.1 complain thusly:
16245      #   icc: Command line warning: ignoring option '-M'; no argument required
16246      # The diagnosis changed in icc 8.0:
16247      #   icc: Command line remark: option '-MP' not supported
16248      if (grep 'ignoring option' conftest.err ||
16249          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16250        am_cv_CXX_dependencies_compiler_type=$depmode
16251        break
16252      fi
16253    fi
16254  done
16255
16256  cd ..
16257  rm -rf conftest.dir
16258else
16259  am_cv_CXX_dependencies_compiler_type=none
16260fi
16261
16262fi
16263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
16264$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
16265CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16266
16267 if
16268  test "x$enable_dependency_tracking" != xno \
16269  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16270  am__fastdepCXX_TRUE=
16271  am__fastdepCXX_FALSE='#'
16272else
16273  am__fastdepCXX_TRUE='#'
16274  am__fastdepCXX_FALSE=
16275fi
16276
16277
16278
16279
16280func_stripname_cnf ()
16281{
16282  case $2 in
16283  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
16284  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
16285  esac
16286} # func_stripname_cnf
16287
16288      if test -n "$CXX" && ( test no != "$CXX" &&
16289    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16290    (test g++ != "$CXX"))); then
16291  ac_ext=cpp
16292ac_cpp='$CXXCPP $CPPFLAGS'
16293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16297$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16298if test -z "$CXXCPP"; then
16299  if ${ac_cv_prog_CXXCPP+:} false; then :
16300  $as_echo_n "(cached) " >&6
16301else
16302      # Double quotes because CXXCPP needs to be expanded
16303    for CXXCPP in "$CXX -E" "/lib/cpp"
16304    do
16305      ac_preproc_ok=false
16306for ac_cxx_preproc_warn_flag in '' yes
16307do
16308  # Use a header file that comes with gcc, so configuring glibc
16309  # with a fresh cross-compiler works.
16310  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16311  # <limits.h> exists even on freestanding compilers.
16312  # On the NeXT, cc -E runs the code through the compiler's parser,
16313  # not just through cpp. "Syntax error" is here to catch this case.
16314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315/* end confdefs.h.  */
16316#ifdef __STDC__
16317# include <limits.h>
16318#else
16319# include <assert.h>
16320#endif
16321		     Syntax error
16322_ACEOF
16323if ac_fn_cxx_try_cpp "$LINENO"; then :
16324
16325else
16326  # Broken: fails on valid input.
16327continue
16328fi
16329rm -f conftest.err conftest.i conftest.$ac_ext
16330
16331  # OK, works on sane cases.  Now check whether nonexistent headers
16332  # can be detected and how.
16333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16334/* end confdefs.h.  */
16335#include <ac_nonexistent.h>
16336_ACEOF
16337if ac_fn_cxx_try_cpp "$LINENO"; then :
16338  # Broken: success on invalid input.
16339continue
16340else
16341  # Passes both tests.
16342ac_preproc_ok=:
16343break
16344fi
16345rm -f conftest.err conftest.i conftest.$ac_ext
16346
16347done
16348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16349rm -f conftest.i conftest.err conftest.$ac_ext
16350if $ac_preproc_ok; then :
16351  break
16352fi
16353
16354    done
16355    ac_cv_prog_CXXCPP=$CXXCPP
16356
16357fi
16358  CXXCPP=$ac_cv_prog_CXXCPP
16359else
16360  ac_cv_prog_CXXCPP=$CXXCPP
16361fi
16362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16363$as_echo "$CXXCPP" >&6; }
16364ac_preproc_ok=false
16365for ac_cxx_preproc_warn_flag in '' yes
16366do
16367  # Use a header file that comes with gcc, so configuring glibc
16368  # with a fresh cross-compiler works.
16369  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16370  # <limits.h> exists even on freestanding compilers.
16371  # On the NeXT, cc -E runs the code through the compiler's parser,
16372  # not just through cpp. "Syntax error" is here to catch this case.
16373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374/* end confdefs.h.  */
16375#ifdef __STDC__
16376# include <limits.h>
16377#else
16378# include <assert.h>
16379#endif
16380		     Syntax error
16381_ACEOF
16382if ac_fn_cxx_try_cpp "$LINENO"; then :
16383
16384else
16385  # Broken: fails on valid input.
16386continue
16387fi
16388rm -f conftest.err conftest.i conftest.$ac_ext
16389
16390  # OK, works on sane cases.  Now check whether nonexistent headers
16391  # can be detected and how.
16392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393/* end confdefs.h.  */
16394#include <ac_nonexistent.h>
16395_ACEOF
16396if ac_fn_cxx_try_cpp "$LINENO"; then :
16397  # Broken: success on invalid input.
16398continue
16399else
16400  # Passes both tests.
16401ac_preproc_ok=:
16402break
16403fi
16404rm -f conftest.err conftest.i conftest.$ac_ext
16405
16406done
16407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16408rm -f conftest.i conftest.err conftest.$ac_ext
16409if $ac_preproc_ok; then :
16410
16411else
16412  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16414as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16415See \`config.log' for more details" "$LINENO" 5; }
16416fi
16417
16418ac_ext=c
16419ac_cpp='$CPP $CPPFLAGS'
16420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16422ac_compiler_gnu=$ac_cv_c_compiler_gnu
16423
16424else
16425  _lt_caught_CXX_error=yes
16426fi
16427
16428ac_ext=cpp
16429ac_cpp='$CXXCPP $CPPFLAGS'
16430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16433
16434archive_cmds_need_lc_CXX=no
16435allow_undefined_flag_CXX=
16436always_export_symbols_CXX=no
16437archive_expsym_cmds_CXX=
16438compiler_needs_object_CXX=no
16439export_dynamic_flag_spec_CXX=
16440hardcode_direct_CXX=no
16441hardcode_direct_absolute_CXX=no
16442hardcode_libdir_flag_spec_CXX=
16443hardcode_libdir_separator_CXX=
16444hardcode_minus_L_CXX=no
16445hardcode_shlibpath_var_CXX=unsupported
16446hardcode_automatic_CXX=no
16447inherit_rpath_CXX=no
16448module_cmds_CXX=
16449module_expsym_cmds_CXX=
16450link_all_deplibs_CXX=unknown
16451old_archive_cmds_CXX=$old_archive_cmds
16452reload_flag_CXX=$reload_flag
16453reload_cmds_CXX=$reload_cmds
16454no_undefined_flag_CXX=
16455whole_archive_flag_spec_CXX=
16456enable_shared_with_static_runtimes_CXX=no
16457
16458# Source file extension for C++ test sources.
16459ac_ext=cpp
16460
16461# Object file extension for compiled C++ test sources.
16462objext=o
16463objext_CXX=$objext
16464
16465# No sense in running all these tests if we already determined that
16466# the CXX compiler isn't working.  Some variables (like enable_shared)
16467# are currently assumed to apply to all compilers on this platform,
16468# and will be corrupted by setting them based on a non-working compiler.
16469if test yes != "$_lt_caught_CXX_error"; then
16470  # Code to be used in simple compile tests
16471  lt_simple_compile_test_code="int some_variable = 0;"
16472
16473  # Code to be used in simple link tests
16474  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16475
16476  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16477
16478
16479
16480
16481
16482
16483# If no C compiler was specified, use CC.
16484LTCC=${LTCC-"$CC"}
16485
16486# If no C compiler flags were specified, use CFLAGS.
16487LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16488
16489# Allow CC to be a program name with arguments.
16490compiler=$CC
16491
16492
16493  # save warnings/boilerplate of simple test code
16494  ac_outfile=conftest.$ac_objext
16495echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16496eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16497_lt_compiler_boilerplate=`cat conftest.err`
16498$RM conftest*
16499
16500  ac_outfile=conftest.$ac_objext
16501echo "$lt_simple_link_test_code" >conftest.$ac_ext
16502eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16503_lt_linker_boilerplate=`cat conftest.err`
16504$RM -r conftest*
16505
16506
16507  # Allow CC to be a program name with arguments.
16508  lt_save_CC=$CC
16509  lt_save_CFLAGS=$CFLAGS
16510  lt_save_LD=$LD
16511  lt_save_GCC=$GCC
16512  GCC=$GXX
16513  lt_save_with_gnu_ld=$with_gnu_ld
16514  lt_save_path_LD=$lt_cv_path_LD
16515  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16516    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16517  else
16518    $as_unset lt_cv_prog_gnu_ld
16519  fi
16520  if test -n "${lt_cv_path_LDCXX+set}"; then
16521    lt_cv_path_LD=$lt_cv_path_LDCXX
16522  else
16523    $as_unset lt_cv_path_LD
16524  fi
16525  test -z "${LDCXX+set}" || LD=$LDCXX
16526  CC=${CXX-"c++"}
16527  CFLAGS=$CXXFLAGS
16528  compiler=$CC
16529  compiler_CXX=$CC
16530  func_cc_basename $compiler
16531cc_basename=$func_cc_basename_result
16532
16533
16534  if test -n "$compiler"; then
16535    # We don't want -fno-exception when compiling C++ code, so set the
16536    # no_builtin_flag separately
16537    if test yes = "$GXX"; then
16538      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16539    else
16540      lt_prog_compiler_no_builtin_flag_CXX=
16541    fi
16542
16543    if test yes = "$GXX"; then
16544      # Set up default GNU C++ configuration
16545
16546
16547
16548# Check whether --with-gnu-ld was given.
16549if test "${with_gnu_ld+set}" = set; then :
16550  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16551else
16552  with_gnu_ld=no
16553fi
16554
16555ac_prog=ld
16556if test yes = "$GCC"; then
16557  # Check if gcc -print-prog-name=ld gives a path.
16558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16559$as_echo_n "checking for ld used by $CC... " >&6; }
16560  case $host in
16561  *-*-mingw*)
16562    # gcc leaves a trailing carriage return, which upsets mingw
16563    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16564  *)
16565    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16566  esac
16567  case $ac_prog in
16568    # Accept absolute paths.
16569    [\\/]* | ?:[\\/]*)
16570      re_direlt='/[^/][^/]*/\.\./'
16571      # Canonicalize the pathname of ld
16572      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16573      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16574	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16575      done
16576      test -z "$LD" && LD=$ac_prog
16577      ;;
16578  "")
16579    # If it fails, then pretend we aren't using GCC.
16580    ac_prog=ld
16581    ;;
16582  *)
16583    # If it is relative, then search for the first ld in PATH.
16584    with_gnu_ld=unknown
16585    ;;
16586  esac
16587elif test yes = "$with_gnu_ld"; then
16588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16589$as_echo_n "checking for GNU ld... " >&6; }
16590else
16591  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16592$as_echo_n "checking for non-GNU ld... " >&6; }
16593fi
16594if ${lt_cv_path_LD+:} false; then :
16595  $as_echo_n "(cached) " >&6
16596else
16597  if test -z "$LD"; then
16598  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16599  for ac_dir in $PATH; do
16600    IFS=$lt_save_ifs
16601    test -z "$ac_dir" && ac_dir=.
16602    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16603      lt_cv_path_LD=$ac_dir/$ac_prog
16604      # Check to see if the program is GNU ld.  I'd rather use --version,
16605      # but apparently some variants of GNU ld only accept -v.
16606      # Break only if it was the GNU/non-GNU ld that we prefer.
16607      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16608      *GNU* | *'with BFD'*)
16609	test no != "$with_gnu_ld" && break
16610	;;
16611      *)
16612	test yes != "$with_gnu_ld" && break
16613	;;
16614      esac
16615    fi
16616  done
16617  IFS=$lt_save_ifs
16618else
16619  lt_cv_path_LD=$LD # Let the user override the test with a path.
16620fi
16621fi
16622
16623LD=$lt_cv_path_LD
16624if test -n "$LD"; then
16625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16626$as_echo "$LD" >&6; }
16627else
16628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16629$as_echo "no" >&6; }
16630fi
16631test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16633$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16634if ${lt_cv_prog_gnu_ld+:} false; then :
16635  $as_echo_n "(cached) " >&6
16636else
16637  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16638case `$LD -v 2>&1 </dev/null` in
16639*GNU* | *'with BFD'*)
16640  lt_cv_prog_gnu_ld=yes
16641  ;;
16642*)
16643  lt_cv_prog_gnu_ld=no
16644  ;;
16645esac
16646fi
16647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16648$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16649with_gnu_ld=$lt_cv_prog_gnu_ld
16650
16651
16652
16653
16654
16655
16656
16657      # Check if GNU C++ uses GNU ld as the underlying linker, since the
16658      # archiving commands below assume that GNU ld is being used.
16659      if test yes = "$with_gnu_ld"; then
16660        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16661        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16662
16663        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16664        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16665
16666        # If archive_cmds runs LD, not CC, wlarc should be empty
16667        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16668        #     investigate it a little bit more. (MM)
16669        wlarc='$wl'
16670
16671        # ancient GNU ld didn't support --whole-archive et. al.
16672        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16673	  $GREP 'no-whole-archive' > /dev/null; then
16674          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16675        else
16676          whole_archive_flag_spec_CXX=
16677        fi
16678      else
16679        with_gnu_ld=no
16680        wlarc=
16681
16682        # A generic and very simple default shared library creation
16683        # command for GNU C++ for the case where it uses the native
16684        # linker, instead of GNU ld.  If possible, this setting should
16685        # overridden to take advantage of the native linker features on
16686        # the platform it is being used on.
16687        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16688      fi
16689
16690      # Commands to make compiler produce verbose output that lists
16691      # what "hidden" libraries, object files and flags are used when
16692      # linking a shared library.
16693      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16694
16695    else
16696      GXX=no
16697      with_gnu_ld=no
16698      wlarc=
16699    fi
16700
16701    # PORTME: fill in a description of your system's C++ link characteristics
16702    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16703$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16704    ld_shlibs_CXX=yes
16705    case $host_os in
16706      aix3*)
16707        # FIXME: insert proper C++ library support
16708        ld_shlibs_CXX=no
16709        ;;
16710      aix[4-9]*)
16711        if test ia64 = "$host_cpu"; then
16712          # On IA64, the linker does run time linking by default, so we don't
16713          # have to do anything special.
16714          aix_use_runtimelinking=no
16715          exp_sym_flag='-Bexport'
16716          no_entry_flag=
16717        else
16718          aix_use_runtimelinking=no
16719
16720          # Test if we are trying to use run time linking or normal
16721          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16722          # have runtime linking enabled, and use it for executables.
16723          # For shared libraries, we enable/disable runtime linking
16724          # depending on the kind of the shared library created -
16725          # when "with_aix_soname,aix_use_runtimelinking" is:
16726          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16727          # "aix,yes"  lib.so          shared, rtl:yes, for executables
16728          #            lib.a           static archive
16729          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
16730          #            lib.a(lib.so.V) shared, rtl:no,  for executables
16731          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16732          #            lib.a(lib.so.V) shared, rtl:no
16733          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16734          #            lib.a           static archive
16735          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16736	    for ld_flag in $LDFLAGS; do
16737	      case $ld_flag in
16738	      *-brtl*)
16739	        aix_use_runtimelinking=yes
16740	        break
16741	        ;;
16742	      esac
16743	    done
16744	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16745	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
16746	      # so we don't have lib.a shared libs to link our executables.
16747	      # We have to force runtime linking in this case.
16748	      aix_use_runtimelinking=yes
16749	      LDFLAGS="$LDFLAGS -Wl,-brtl"
16750	    fi
16751	    ;;
16752          esac
16753
16754          exp_sym_flag='-bexport'
16755          no_entry_flag='-bnoentry'
16756        fi
16757
16758        # When large executables or shared objects are built, AIX ld can
16759        # have problems creating the table of contents.  If linking a library
16760        # or program results in "error TOC overflow" add -mminimal-toc to
16761        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16762        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16763
16764        archive_cmds_CXX=''
16765        hardcode_direct_CXX=yes
16766        hardcode_direct_absolute_CXX=yes
16767        hardcode_libdir_separator_CXX=':'
16768        link_all_deplibs_CXX=yes
16769        file_list_spec_CXX='$wl-f,'
16770        case $with_aix_soname,$aix_use_runtimelinking in
16771        aix,*) ;;	# no import file
16772        svr4,* | *,yes) # use import file
16773          # The Import File defines what to hardcode.
16774          hardcode_direct_CXX=no
16775          hardcode_direct_absolute_CXX=no
16776          ;;
16777        esac
16778
16779        if test yes = "$GXX"; then
16780          case $host_os in aix4.[012]|aix4.[012].*)
16781          # We only want to do this on AIX 4.2 and lower, the check
16782          # below for broken collect2 doesn't work under 4.3+
16783	  collect2name=`$CC -print-prog-name=collect2`
16784	  if test -f "$collect2name" &&
16785	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16786	  then
16787	    # We have reworked collect2
16788	    :
16789	  else
16790	    # We have old collect2
16791	    hardcode_direct_CXX=unsupported
16792	    # It fails to find uninstalled libraries when the uninstalled
16793	    # path is not listed in the libpath.  Setting hardcode_minus_L
16794	    # to unsupported forces relinking
16795	    hardcode_minus_L_CXX=yes
16796	    hardcode_libdir_flag_spec_CXX='-L$libdir'
16797	    hardcode_libdir_separator_CXX=
16798	  fi
16799          esac
16800          shared_flag='-shared'
16801	  if test yes = "$aix_use_runtimelinking"; then
16802	    shared_flag=$shared_flag' $wl-G'
16803	  fi
16804	  # Need to ensure runtime linking is disabled for the traditional
16805	  # shared library, or the linker may eventually find shared libraries
16806	  # /with/ Import File - we do not want to mix them.
16807	  shared_flag_aix='-shared'
16808	  shared_flag_svr4='-shared $wl-G'
16809        else
16810          # not using gcc
16811          if test ia64 = "$host_cpu"; then
16812	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16813	  # chokes on -Wl,-G. The following line is correct:
16814	  shared_flag='-G'
16815          else
16816	    if test yes = "$aix_use_runtimelinking"; then
16817	      shared_flag='$wl-G'
16818	    else
16819	      shared_flag='$wl-bM:SRE'
16820	    fi
16821	    shared_flag_aix='$wl-bM:SRE'
16822	    shared_flag_svr4='$wl-G'
16823          fi
16824        fi
16825
16826        export_dynamic_flag_spec_CXX='$wl-bexpall'
16827        # It seems that -bexpall does not export symbols beginning with
16828        # underscore (_), so it is better to generate a list of symbols to
16829	# export.
16830        always_export_symbols_CXX=yes
16831	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16832          # Warning - without using the other runtime loading flags (-brtl),
16833          # -berok will link without error, but may produce a broken library.
16834          # The "-G" linker flag allows undefined symbols.
16835          no_undefined_flag_CXX='-bernotok'
16836          # Determine the default libpath from the value encoded in an empty
16837          # executable.
16838          if test set = "${lt_cv_aix_libpath+set}"; then
16839  aix_libpath=$lt_cv_aix_libpath
16840else
16841  if ${lt_cv_aix_libpath__CXX+:} false; then :
16842  $as_echo_n "(cached) " >&6
16843else
16844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845/* end confdefs.h.  */
16846
16847int
16848main ()
16849{
16850
16851  ;
16852  return 0;
16853}
16854_ACEOF
16855if ac_fn_cxx_try_link "$LINENO"; then :
16856
16857  lt_aix_libpath_sed='
16858      /Import File Strings/,/^$/ {
16859	  /^0/ {
16860	      s/^0  *\([^ ]*\) *$/\1/
16861	      p
16862	  }
16863      }'
16864  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16865  # Check for a 64-bit object if we didn't find anything.
16866  if test -z "$lt_cv_aix_libpath__CXX"; then
16867    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16868  fi
16869fi
16870rm -f core conftest.err conftest.$ac_objext \
16871    conftest$ac_exeext conftest.$ac_ext
16872  if test -z "$lt_cv_aix_libpath__CXX"; then
16873    lt_cv_aix_libpath__CXX=/usr/lib:/lib
16874  fi
16875
16876fi
16877
16878  aix_libpath=$lt_cv_aix_libpath__CXX
16879fi
16880
16881          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16882
16883          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
16884        else
16885          if test ia64 = "$host_cpu"; then
16886	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16887	    allow_undefined_flag_CXX="-z nodefs"
16888	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
16889          else
16890	    # Determine the default libpath from the value encoded in an
16891	    # empty executable.
16892	    if test set = "${lt_cv_aix_libpath+set}"; then
16893  aix_libpath=$lt_cv_aix_libpath
16894else
16895  if ${lt_cv_aix_libpath__CXX+:} false; then :
16896  $as_echo_n "(cached) " >&6
16897else
16898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899/* end confdefs.h.  */
16900
16901int
16902main ()
16903{
16904
16905  ;
16906  return 0;
16907}
16908_ACEOF
16909if ac_fn_cxx_try_link "$LINENO"; then :
16910
16911  lt_aix_libpath_sed='
16912      /Import File Strings/,/^$/ {
16913	  /^0/ {
16914	      s/^0  *\([^ ]*\) *$/\1/
16915	      p
16916	  }
16917      }'
16918  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16919  # Check for a 64-bit object if we didn't find anything.
16920  if test -z "$lt_cv_aix_libpath__CXX"; then
16921    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16922  fi
16923fi
16924rm -f core conftest.err conftest.$ac_objext \
16925    conftest$ac_exeext conftest.$ac_ext
16926  if test -z "$lt_cv_aix_libpath__CXX"; then
16927    lt_cv_aix_libpath__CXX=/usr/lib:/lib
16928  fi
16929
16930fi
16931
16932  aix_libpath=$lt_cv_aix_libpath__CXX
16933fi
16934
16935	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16936	    # Warning - without using the other run time loading flags,
16937	    # -berok will link without error, but may produce a broken library.
16938	    no_undefined_flag_CXX=' $wl-bernotok'
16939	    allow_undefined_flag_CXX=' $wl-berok'
16940	    if test yes = "$with_gnu_ld"; then
16941	      # We only use this code for GNU lds that support --whole-archive.
16942	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16943	    else
16944	      # Exported symbols can be pulled into shared objects from archives
16945	      whole_archive_flag_spec_CXX='$convenience'
16946	    fi
16947	    archive_cmds_need_lc_CXX=yes
16948	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16949	    # -brtl affects multiple linker settings, -berok does not and is overridden later
16950	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16951	    if test svr4 != "$with_aix_soname"; then
16952	      # This is similar to how AIX traditionally builds its shared
16953	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16954	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16955	    fi
16956	    if test aix != "$with_aix_soname"; then
16957	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16958	    else
16959	      # used by -dlpreopen to get the symbols
16960	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16961	    fi
16962	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16963          fi
16964        fi
16965        ;;
16966
16967      beos*)
16968	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16969	  allow_undefined_flag_CXX=unsupported
16970	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16971	  # support --undefined.  This deserves some investigation.  FIXME
16972	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16973	else
16974	  ld_shlibs_CXX=no
16975	fi
16976	;;
16977
16978      chorus*)
16979        case $cc_basename in
16980          *)
16981	  # FIXME: insert proper C++ library support
16982	  ld_shlibs_CXX=no
16983	  ;;
16984        esac
16985        ;;
16986
16987      cygwin* | mingw* | pw32* | cegcc*)
16988	case $GXX,$cc_basename in
16989	,cl* | no,cl*)
16990	  # Native MSVC
16991	  # hardcode_libdir_flag_spec is actually meaningless, as there is
16992	  # no search path for DLLs.
16993	  hardcode_libdir_flag_spec_CXX=' '
16994	  allow_undefined_flag_CXX=unsupported
16995	  always_export_symbols_CXX=yes
16996	  file_list_spec_CXX='@'
16997	  # Tell ltmain to make .lib files, not .a files.
16998	  libext=lib
16999	  # Tell ltmain to make .dll files, not .so files.
17000	  shrext_cmds=.dll
17001	  # FIXME: Setting linknames here is a bad hack.
17002	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17003	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17004              cp "$export_symbols" "$output_objdir/$soname.def";
17005              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17006            else
17007              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17008            fi~
17009            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17010            linknames='
17011	  # The linker will not automatically build a static lib if we build a DLL.
17012	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17013	  enable_shared_with_static_runtimes_CXX=yes
17014	  # Don't use ranlib
17015	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
17016	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17017            lt_tool_outputfile="@TOOL_OUTPUT@"~
17018            case $lt_outputfile in
17019              *.exe|*.EXE) ;;
17020              *)
17021                lt_outputfile=$lt_outputfile.exe
17022                lt_tool_outputfile=$lt_tool_outputfile.exe
17023                ;;
17024            esac~
17025            func_to_tool_file "$lt_outputfile"~
17026            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17027              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17028              $RM "$lt_outputfile.manifest";
17029            fi'
17030	  ;;
17031	*)
17032	  # g++
17033	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17034	  # as there is no search path for DLLs.
17035	  hardcode_libdir_flag_spec_CXX='-L$libdir'
17036	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
17037	  allow_undefined_flag_CXX=unsupported
17038	  always_export_symbols_CXX=no
17039	  enable_shared_with_static_runtimes_CXX=yes
17040
17041	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17042	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17043	    # If the export-symbols file already is a .def file, use it as
17044	    # is; otherwise, prepend EXPORTS...
17045	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17046              cp $export_symbols $output_objdir/$soname.def;
17047            else
17048              echo EXPORTS > $output_objdir/$soname.def;
17049              cat $export_symbols >> $output_objdir/$soname.def;
17050            fi~
17051            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17052	  else
17053	    ld_shlibs_CXX=no
17054	  fi
17055	  ;;
17056	esac
17057	;;
17058      darwin* | rhapsody*)
17059
17060
17061  archive_cmds_need_lc_CXX=no
17062  hardcode_direct_CXX=no
17063  hardcode_automatic_CXX=yes
17064  hardcode_shlibpath_var_CXX=unsupported
17065  if test yes = "$lt_cv_ld_force_load"; then
17066    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17067
17068  else
17069    whole_archive_flag_spec_CXX=''
17070  fi
17071  link_all_deplibs_CXX=yes
17072  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17073  case $cc_basename in
17074     ifort*|nagfor*)
17075        lt_prog_compiler_wl_CXX='-Wl,'
17076        _lt_dar_can_shared=yes
17077      ;;
17078     *) _lt_dar_can_shared=$GCC ;;
17079  esac
17080  if test yes = "$_lt_dar_can_shared"; then
17081    output_verbose_link_cmd=func_echo_all
17082    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17083    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17084    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
17085    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
17086       if test yes != "$lt_cv_apple_cc_single_mod"; then
17087      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
17088      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
17089    fi
17090
17091  else
17092  ld_shlibs_CXX=no
17093  fi
17094
17095	;;
17096
17097      os2*)
17098	hardcode_libdir_flag_spec_CXX='-L$libdir'
17099	hardcode_minus_L_CXX=yes
17100	allow_undefined_flag_CXX=unsupported
17101	shrext_cmds=.dll
17102	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17103	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17104	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17105	  $ECHO EXPORTS >> $output_objdir/$libname.def~
17106	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17107	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17108	  emximp -o $lib $output_objdir/$libname.def'
17109	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17110	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17111	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17112	  $ECHO EXPORTS >> $output_objdir/$libname.def~
17113	  prefix_cmds="$SED"~
17114	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
17115	    prefix_cmds="$prefix_cmds -e 1d";
17116	  fi~
17117	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17118	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17119	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17120	  emximp -o $lib $output_objdir/$libname.def'
17121	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17122	enable_shared_with_static_runtimes_CXX=yes
17123	;;
17124
17125      dgux*)
17126        case $cc_basename in
17127          ec++*)
17128	    # FIXME: insert proper C++ library support
17129	    ld_shlibs_CXX=no
17130	    ;;
17131          ghcx*)
17132	    # Green Hills C++ Compiler
17133	    # FIXME: insert proper C++ library support
17134	    ld_shlibs_CXX=no
17135	    ;;
17136          *)
17137	    # FIXME: insert proper C++ library support
17138	    ld_shlibs_CXX=no
17139	    ;;
17140        esac
17141        ;;
17142
17143      freebsd2.*)
17144        # C++ shared libraries reported to be fairly broken before
17145	# switch to ELF
17146        ld_shlibs_CXX=no
17147        ;;
17148
17149      freebsd-elf*)
17150        archive_cmds_need_lc_CXX=no
17151        ;;
17152
17153      freebsd* | dragonfly*)
17154        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17155        # conventions
17156        ld_shlibs_CXX=yes
17157        ;;
17158
17159      haiku*)
17160        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17161        link_all_deplibs_CXX=yes
17162        ;;
17163
17164      hpux9*)
17165        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17166        hardcode_libdir_separator_CXX=:
17167        export_dynamic_flag_spec_CXX='$wl-E'
17168        hardcode_direct_CXX=yes
17169        hardcode_minus_L_CXX=yes # Not in the search PATH,
17170				             # but as the default
17171				             # location of the library.
17172
17173        case $cc_basename in
17174          CC*)
17175            # FIXME: insert proper C++ library support
17176            ld_shlibs_CXX=no
17177            ;;
17178          aCC*)
17179            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17180            # Commands to make compiler produce verbose output that lists
17181            # what "hidden" libraries, object files and flags are used when
17182            # linking a shared library.
17183            #
17184            # There doesn't appear to be a way to prevent this compiler from
17185            # explicitly linking system object files so we need to strip them
17186            # from the output so that they don't get included in the library
17187            # dependencies.
17188            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17189            ;;
17190          *)
17191            if test yes = "$GXX"; then
17192              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17193            else
17194              # FIXME: insert proper C++ library support
17195              ld_shlibs_CXX=no
17196            fi
17197            ;;
17198        esac
17199        ;;
17200
17201      hpux10*|hpux11*)
17202        if test no = "$with_gnu_ld"; then
17203	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17204	  hardcode_libdir_separator_CXX=:
17205
17206          case $host_cpu in
17207            hppa*64*|ia64*)
17208              ;;
17209            *)
17210	      export_dynamic_flag_spec_CXX='$wl-E'
17211              ;;
17212          esac
17213        fi
17214        case $host_cpu in
17215          hppa*64*|ia64*)
17216            hardcode_direct_CXX=no
17217            hardcode_shlibpath_var_CXX=no
17218            ;;
17219          *)
17220            hardcode_direct_CXX=yes
17221            hardcode_direct_absolute_CXX=yes
17222            hardcode_minus_L_CXX=yes # Not in the search PATH,
17223					         # but as the default
17224					         # location of the library.
17225            ;;
17226        esac
17227
17228        case $cc_basename in
17229          CC*)
17230	    # FIXME: insert proper C++ library support
17231	    ld_shlibs_CXX=no
17232	    ;;
17233          aCC*)
17234	    case $host_cpu in
17235	      hppa*64*)
17236	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17237	        ;;
17238	      ia64*)
17239	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17240	        ;;
17241	      *)
17242	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17243	        ;;
17244	    esac
17245	    # Commands to make compiler produce verbose output that lists
17246	    # what "hidden" libraries, object files and flags are used when
17247	    # linking a shared library.
17248	    #
17249	    # There doesn't appear to be a way to prevent this compiler from
17250	    # explicitly linking system object files so we need to strip them
17251	    # from the output so that they don't get included in the library
17252	    # dependencies.
17253	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17254	    ;;
17255          *)
17256	    if test yes = "$GXX"; then
17257	      if test no = "$with_gnu_ld"; then
17258	        case $host_cpu in
17259	          hppa*64*)
17260	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17261	            ;;
17262	          ia64*)
17263	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17264	            ;;
17265	          *)
17266	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17267	            ;;
17268	        esac
17269	      fi
17270	    else
17271	      # FIXME: insert proper C++ library support
17272	      ld_shlibs_CXX=no
17273	    fi
17274	    ;;
17275        esac
17276        ;;
17277
17278      interix[3-9]*)
17279	hardcode_direct_CXX=no
17280	hardcode_shlibpath_var_CXX=no
17281	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17282	export_dynamic_flag_spec_CXX='$wl-E'
17283	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17284	# Instead, shared libraries are loaded at an image base (0x10000000 by
17285	# default) and relocated if they conflict, which is a slow very memory
17286	# consuming and fragmenting process.  To avoid this, we pick a random,
17287	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17288	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17289	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17290	archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17291	;;
17292      irix5* | irix6*)
17293        case $cc_basename in
17294          CC*)
17295	    # SGI C++
17296	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17297
17298	    # Archives containing C++ object files must be created using
17299	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17300	    # necessary to make sure instantiated templates are included
17301	    # in the archive.
17302	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17303	    ;;
17304          *)
17305	    if test yes = "$GXX"; then
17306	      if test no = "$with_gnu_ld"; then
17307	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17308	      else
17309	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
17310	      fi
17311	    fi
17312	    link_all_deplibs_CXX=yes
17313	    ;;
17314        esac
17315        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17316        hardcode_libdir_separator_CXX=:
17317        inherit_rpath_CXX=yes
17318        ;;
17319
17320      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17321        case $cc_basename in
17322          KCC*)
17323	    # Kuck and Associates, Inc. (KAI) C++ Compiler
17324
17325	    # KCC will only create a shared library if the output file
17326	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
17327	    # to its proper name (with version) after linking.
17328	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17329	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
17330	    # Commands to make compiler produce verbose output that lists
17331	    # what "hidden" libraries, object files and flags are used when
17332	    # linking a shared library.
17333	    #
17334	    # There doesn't appear to be a way to prevent this compiler from
17335	    # explicitly linking system object files so we need to strip them
17336	    # from the output so that they don't get included in the library
17337	    # dependencies.
17338	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17339
17340	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17341	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17342
17343	    # Archives containing C++ object files must be created using
17344	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17345	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17346	    ;;
17347	  icpc* | ecpc* )
17348	    # Intel C++
17349	    with_gnu_ld=yes
17350	    # version 8.0 and above of icpc choke on multiply defined symbols
17351	    # if we add $predep_objects and $postdep_objects, however 7.1 and
17352	    # earlier do not add the objects themselves.
17353	    case `$CC -V 2>&1` in
17354	      *"Version 7."*)
17355	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17356		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17357		;;
17358	      *)  # Version 8.0 or newer
17359	        tmp_idyn=
17360	        case $host_cpu in
17361		  ia64*) tmp_idyn=' -i_dynamic';;
17362		esac
17363	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17364		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17365		;;
17366	    esac
17367	    archive_cmds_need_lc_CXX=no
17368	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17369	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17370	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17371	    ;;
17372          pgCC* | pgcpp*)
17373            # Portland Group C++ compiler
17374	    case `$CC -V` in
17375	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17376	      prelink_cmds_CXX='tpldir=Template.dir~
17377               rm -rf $tpldir~
17378               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17379               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17380	      old_archive_cmds_CXX='tpldir=Template.dir~
17381                rm -rf $tpldir~
17382                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17383                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17384                $RANLIB $oldlib'
17385	      archive_cmds_CXX='tpldir=Template.dir~
17386                rm -rf $tpldir~
17387                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17388                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17389	      archive_expsym_cmds_CXX='tpldir=Template.dir~
17390                rm -rf $tpldir~
17391                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17392                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17393	      ;;
17394	    *) # Version 6 and above use weak symbols
17395	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17396	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17397	      ;;
17398	    esac
17399
17400	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17401	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17402	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
17403            ;;
17404	  cxx*)
17405	    # Compaq C++
17406	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17407	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
17408
17409	    runpath_var=LD_RUN_PATH
17410	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17411	    hardcode_libdir_separator_CXX=:
17412
17413	    # Commands to make compiler produce verbose output that lists
17414	    # what "hidden" libraries, object files and flags are used when
17415	    # linking a shared library.
17416	    #
17417	    # There doesn't appear to be a way to prevent this compiler from
17418	    # explicitly linking system object files so we need to strip them
17419	    # from the output so that they don't get included in the library
17420	    # dependencies.
17421	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
17422	    ;;
17423	  xl* | mpixl* | bgxl*)
17424	    # IBM XL 8.0 on PPC, with GNU ld
17425	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17426	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17427	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17428	    if test yes = "$supports_anon_versioning"; then
17429	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17430                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17431                echo "local: *; };" >> $output_objdir/$libname.ver~
17432                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17433	    fi
17434	    ;;
17435	  *)
17436	    case `$CC -V 2>&1 | sed 5q` in
17437	    *Sun\ C*)
17438	      # Sun C++ 5.9
17439	      no_undefined_flag_CXX=' -zdefs'
17440	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17441	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
17442	      hardcode_libdir_flag_spec_CXX='-R$libdir'
17443	      whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
17444	      compiler_needs_object_CXX=yes
17445
17446	      # Not sure whether something based on
17447	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17448	      # would be better.
17449	      output_verbose_link_cmd='func_echo_all'
17450
17451	      # Archives containing C++ object files must be created using
17452	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17453	      # necessary to make sure instantiated templates are included
17454	      # in the archive.
17455	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17456	      ;;
17457	    esac
17458	    ;;
17459	esac
17460	;;
17461
17462      lynxos*)
17463        # FIXME: insert proper C++ library support
17464	ld_shlibs_CXX=no
17465	;;
17466
17467      m88k*)
17468        # FIXME: insert proper C++ library support
17469        ld_shlibs_CXX=no
17470	;;
17471
17472      mvs*)
17473        case $cc_basename in
17474          cxx*)
17475	    # FIXME: insert proper C++ library support
17476	    ld_shlibs_CXX=no
17477	    ;;
17478	  *)
17479	    # FIXME: insert proper C++ library support
17480	    ld_shlibs_CXX=no
17481	    ;;
17482	esac
17483	;;
17484
17485      netbsd*)
17486        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17487	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17488	  wlarc=
17489	  hardcode_libdir_flag_spec_CXX='-R$libdir'
17490	  hardcode_direct_CXX=yes
17491	  hardcode_shlibpath_var_CXX=no
17492	fi
17493	# Workaround some broken pre-1.5 toolchains
17494	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17495	;;
17496
17497      *nto* | *qnx*)
17498        ld_shlibs_CXX=yes
17499	;;
17500
17501      openbsd* | bitrig*)
17502	if test -f /usr/libexec/ld.so; then
17503	  hardcode_direct_CXX=yes
17504	  hardcode_shlibpath_var_CXX=no
17505	  hardcode_direct_absolute_CXX=yes
17506	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17507	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17508	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17509	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17510	    export_dynamic_flag_spec_CXX='$wl-E'
17511	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17512	  fi
17513	  output_verbose_link_cmd=func_echo_all
17514	else
17515	  ld_shlibs_CXX=no
17516	fi
17517	;;
17518
17519      osf3* | osf4* | osf5*)
17520        case $cc_basename in
17521          KCC*)
17522	    # Kuck and Associates, Inc. (KAI) C++ Compiler
17523
17524	    # KCC will only create a shared library if the output file
17525	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
17526	    # to its proper name (with version) after linking.
17527	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17528
17529	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17530	    hardcode_libdir_separator_CXX=:
17531
17532	    # Archives containing C++ object files must be created using
17533	    # the KAI C++ compiler.
17534	    case $host in
17535	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17536	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17537	    esac
17538	    ;;
17539          RCC*)
17540	    # Rational C++ 2.4.1
17541	    # FIXME: insert proper C++ library support
17542	    ld_shlibs_CXX=no
17543	    ;;
17544          cxx*)
17545	    case $host in
17546	      osf3*)
17547	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17548	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17549	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17550		;;
17551	      *)
17552	        allow_undefined_flag_CXX=' -expect_unresolved \*'
17553	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
17554	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17555                  echo "-hidden">> $lib.exp~
17556                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
17557                  $RM $lib.exp'
17558	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17559		;;
17560	    esac
17561
17562	    hardcode_libdir_separator_CXX=:
17563
17564	    # Commands to make compiler produce verbose output that lists
17565	    # what "hidden" libraries, object files and flags are used when
17566	    # linking a shared library.
17567	    #
17568	    # There doesn't appear to be a way to prevent this compiler from
17569	    # explicitly linking system object files so we need to strip them
17570	    # from the output so that they don't get included in the library
17571	    # dependencies.
17572	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17573	    ;;
17574	  *)
17575	    if test yes,no = "$GXX,$with_gnu_ld"; then
17576	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17577	      case $host in
17578	        osf3*)
17579	          archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17580		  ;;
17581	        *)
17582	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
17583		  ;;
17584	      esac
17585
17586	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17587	      hardcode_libdir_separator_CXX=:
17588
17589	      # Commands to make compiler produce verbose output that lists
17590	      # what "hidden" libraries, object files and flags are used when
17591	      # linking a shared library.
17592	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17593
17594	    else
17595	      # FIXME: insert proper C++ library support
17596	      ld_shlibs_CXX=no
17597	    fi
17598	    ;;
17599        esac
17600        ;;
17601
17602      psos*)
17603        # FIXME: insert proper C++ library support
17604        ld_shlibs_CXX=no
17605        ;;
17606
17607      sunos4*)
17608        case $cc_basename in
17609          CC*)
17610	    # Sun C++ 4.x
17611	    # FIXME: insert proper C++ library support
17612	    ld_shlibs_CXX=no
17613	    ;;
17614          lcc*)
17615	    # Lucid
17616	    # FIXME: insert proper C++ library support
17617	    ld_shlibs_CXX=no
17618	    ;;
17619          *)
17620	    # FIXME: insert proper C++ library support
17621	    ld_shlibs_CXX=no
17622	    ;;
17623        esac
17624        ;;
17625
17626      solaris*)
17627        case $cc_basename in
17628          CC* | sunCC*)
17629	    # Sun C++ 4.2, 5.x and Centerline C++
17630            archive_cmds_need_lc_CXX=yes
17631	    no_undefined_flag_CXX=' -zdefs'
17632	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17633	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17634              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17635
17636	    hardcode_libdir_flag_spec_CXX='-R$libdir'
17637	    hardcode_shlibpath_var_CXX=no
17638	    case $host_os in
17639	      solaris2.[0-5] | solaris2.[0-5].*) ;;
17640	      *)
17641		# The compiler driver will combine and reorder linker options,
17642		# but understands '-z linker_flag'.
17643	        # Supported since Solaris 2.6 (maybe 2.5.1?)
17644		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17645	        ;;
17646	    esac
17647	    link_all_deplibs_CXX=yes
17648
17649	    output_verbose_link_cmd='func_echo_all'
17650
17651	    # Archives containing C++ object files must be created using
17652	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17653	    # necessary to make sure instantiated templates are included
17654	    # in the archive.
17655	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17656	    ;;
17657          gcx*)
17658	    # Green Hills C++ Compiler
17659	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17660
17661	    # The C++ compiler must be used to create the archive.
17662	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17663	    ;;
17664          *)
17665	    # GNU C++ compiler with Solaris linker
17666	    if test yes,no = "$GXX,$with_gnu_ld"; then
17667	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
17668	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17669	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17670	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17671                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17672
17673	        # Commands to make compiler produce verbose output that lists
17674	        # what "hidden" libraries, object files and flags are used when
17675	        # linking a shared library.
17676	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17677	      else
17678	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
17679	        # platform.
17680	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17681	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17682                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17683
17684	        # Commands to make compiler produce verbose output that lists
17685	        # what "hidden" libraries, object files and flags are used when
17686	        # linking a shared library.
17687	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17688	      fi
17689
17690	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17691	      case $host_os in
17692		solaris2.[0-5] | solaris2.[0-5].*) ;;
17693		*)
17694		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17695		  ;;
17696	      esac
17697	    fi
17698	    ;;
17699        esac
17700        ;;
17701
17702    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17703      no_undefined_flag_CXX='$wl-z,text'
17704      archive_cmds_need_lc_CXX=no
17705      hardcode_shlibpath_var_CXX=no
17706      runpath_var='LD_RUN_PATH'
17707
17708      case $cc_basename in
17709        CC*)
17710	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17711	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17712	  ;;
17713	*)
17714	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17715	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17716	  ;;
17717      esac
17718      ;;
17719
17720      sysv5* | sco3.2v5* | sco5v6*)
17721	# Note: We CANNOT use -z defs as we might desire, because we do not
17722	# link with -lc, and that would cause any symbols used from libc to
17723	# always be unresolved, which means just about no library would
17724	# ever link correctly.  If we're not using GNU ld we use -z text
17725	# though, which does catch some bad symbols but isn't as heavy-handed
17726	# as -z defs.
17727	no_undefined_flag_CXX='$wl-z,text'
17728	allow_undefined_flag_CXX='$wl-z,nodefs'
17729	archive_cmds_need_lc_CXX=no
17730	hardcode_shlibpath_var_CXX=no
17731	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17732	hardcode_libdir_separator_CXX=':'
17733	link_all_deplibs_CXX=yes
17734	export_dynamic_flag_spec_CXX='$wl-Bexport'
17735	runpath_var='LD_RUN_PATH'
17736
17737	case $cc_basename in
17738          CC*)
17739	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17740	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17741	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17742              '"$old_archive_cmds_CXX"
17743	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17744              '"$reload_cmds_CXX"
17745	    ;;
17746	  *)
17747	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17748	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17749	    ;;
17750	esac
17751      ;;
17752
17753      tandem*)
17754        case $cc_basename in
17755          NCC*)
17756	    # NonStop-UX NCC 3.20
17757	    # FIXME: insert proper C++ library support
17758	    ld_shlibs_CXX=no
17759	    ;;
17760          *)
17761	    # FIXME: insert proper C++ library support
17762	    ld_shlibs_CXX=no
17763	    ;;
17764        esac
17765        ;;
17766
17767      vxworks*)
17768        # FIXME: insert proper C++ library support
17769        ld_shlibs_CXX=no
17770        ;;
17771
17772      *)
17773        # FIXME: insert proper C++ library support
17774        ld_shlibs_CXX=no
17775        ;;
17776    esac
17777
17778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17779$as_echo "$ld_shlibs_CXX" >&6; }
17780    test no = "$ld_shlibs_CXX" && can_build_shared=no
17781
17782    GCC_CXX=$GXX
17783    LD_CXX=$LD
17784
17785    ## CAVEAT EMPTOR:
17786    ## There is no encapsulation within the following macros, do not change
17787    ## the running order or otherwise move them around unless you know exactly
17788    ## what you are doing...
17789    # Dependencies to place before and after the object being linked:
17790predep_objects_CXX=
17791postdep_objects_CXX=
17792predeps_CXX=
17793postdeps_CXX=
17794compiler_lib_search_path_CXX=
17795
17796cat > conftest.$ac_ext <<_LT_EOF
17797class Foo
17798{
17799public:
17800  Foo (void) { a = 0; }
17801private:
17802  int a;
17803};
17804_LT_EOF
17805
17806
17807_lt_libdeps_save_CFLAGS=$CFLAGS
17808case "$CC $CFLAGS " in #(
17809*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17810*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17811*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17812esac
17813
17814if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17815  (eval $ac_compile) 2>&5
17816  ac_status=$?
17817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17818  test $ac_status = 0; }; then
17819  # Parse the compiler output and extract the necessary
17820  # objects, libraries and library flags.
17821
17822  # Sentinel used to keep track of whether or not we are before
17823  # the conftest object file.
17824  pre_test_object_deps_done=no
17825
17826  for p in `eval "$output_verbose_link_cmd"`; do
17827    case $prev$p in
17828
17829    -L* | -R* | -l*)
17830       # Some compilers place space between "-{L,R}" and the path.
17831       # Remove the space.
17832       if test x-L = "$p" ||
17833          test x-R = "$p"; then
17834	 prev=$p
17835	 continue
17836       fi
17837
17838       # Expand the sysroot to ease extracting the directories later.
17839       if test -z "$prev"; then
17840         case $p in
17841         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17842         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17843         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17844         esac
17845       fi
17846       case $p in
17847       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17848       esac
17849       if test no = "$pre_test_object_deps_done"; then
17850	 case $prev in
17851	 -L | -R)
17852	   # Internal compiler library paths should come after those
17853	   # provided the user.  The postdeps already come after the
17854	   # user supplied libs so there is no need to process them.
17855	   if test -z "$compiler_lib_search_path_CXX"; then
17856	     compiler_lib_search_path_CXX=$prev$p
17857	   else
17858	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17859	   fi
17860	   ;;
17861	 # The "-l" case would never come before the object being
17862	 # linked, so don't bother handling this case.
17863	 esac
17864       else
17865	 if test -z "$postdeps_CXX"; then
17866	   postdeps_CXX=$prev$p
17867	 else
17868	   postdeps_CXX="${postdeps_CXX} $prev$p"
17869	 fi
17870       fi
17871       prev=
17872       ;;
17873
17874    *.lto.$objext) ;; # Ignore GCC LTO objects
17875    *.$objext)
17876       # This assumes that the test object file only shows up
17877       # once in the compiler output.
17878       if test "$p" = "conftest.$objext"; then
17879	 pre_test_object_deps_done=yes
17880	 continue
17881       fi
17882
17883       if test no = "$pre_test_object_deps_done"; then
17884	 if test -z "$predep_objects_CXX"; then
17885	   predep_objects_CXX=$p
17886	 else
17887	   predep_objects_CXX="$predep_objects_CXX $p"
17888	 fi
17889       else
17890	 if test -z "$postdep_objects_CXX"; then
17891	   postdep_objects_CXX=$p
17892	 else
17893	   postdep_objects_CXX="$postdep_objects_CXX $p"
17894	 fi
17895       fi
17896       ;;
17897
17898    *) ;; # Ignore the rest.
17899
17900    esac
17901  done
17902
17903  # Clean up.
17904  rm -f a.out a.exe
17905else
17906  echo "libtool.m4: error: problem compiling CXX test program"
17907fi
17908
17909$RM -f confest.$objext
17910CFLAGS=$_lt_libdeps_save_CFLAGS
17911
17912# PORTME: override above test on systems where it is broken
17913case $host_os in
17914interix[3-9]*)
17915  # Interix 3.5 installs completely hosed .la files for C++, so rather than
17916  # hack all around it, let's just trust "g++" to DTRT.
17917  predep_objects_CXX=
17918  postdep_objects_CXX=
17919  postdeps_CXX=
17920  ;;
17921esac
17922
17923
17924case " $postdeps_CXX " in
17925*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17926esac
17927 compiler_lib_search_dirs_CXX=
17928if test -n "${compiler_lib_search_path_CXX}"; then
17929 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17930fi
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962    lt_prog_compiler_wl_CXX=
17963lt_prog_compiler_pic_CXX=
17964lt_prog_compiler_static_CXX=
17965
17966
17967  # C++ specific cases for pic, static, wl, etc.
17968  if test yes = "$GXX"; then
17969    lt_prog_compiler_wl_CXX='-Wl,'
17970    lt_prog_compiler_static_CXX='-static'
17971
17972    case $host_os in
17973    aix*)
17974      # All AIX code is PIC.
17975      if test ia64 = "$host_cpu"; then
17976	# AIX 5 now supports IA64 processor
17977	lt_prog_compiler_static_CXX='-Bstatic'
17978      fi
17979      lt_prog_compiler_pic_CXX='-fPIC'
17980      ;;
17981
17982    amigaos*)
17983      case $host_cpu in
17984      powerpc)
17985            # see comment about AmigaOS4 .so support
17986            lt_prog_compiler_pic_CXX='-fPIC'
17987        ;;
17988      m68k)
17989            # FIXME: we need at least 68020 code to build shared libraries, but
17990            # adding the '-m68020' flag to GCC prevents building anything better,
17991            # like '-m68040'.
17992            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17993        ;;
17994      esac
17995      ;;
17996
17997    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17998      # PIC is the default for these OSes.
17999      ;;
18000    mingw* | cygwin* | os2* | pw32* | cegcc*)
18001      # This hack is so that the source file can tell whether it is being
18002      # built for inclusion in a dll (and should export symbols for example).
18003      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18004      # (--disable-auto-import) libraries
18005      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18006      case $host_os in
18007      os2*)
18008	lt_prog_compiler_static_CXX='$wl-static'
18009	;;
18010      esac
18011      ;;
18012    darwin* | rhapsody*)
18013      # PIC is the default on this platform
18014      # Common symbols not allowed in MH_DYLIB files
18015      lt_prog_compiler_pic_CXX='-fno-common'
18016      ;;
18017    *djgpp*)
18018      # DJGPP does not support shared libraries at all
18019      lt_prog_compiler_pic_CXX=
18020      ;;
18021    haiku*)
18022      # PIC is the default for Haiku.
18023      # The "-static" flag exists, but is broken.
18024      lt_prog_compiler_static_CXX=
18025      ;;
18026    interix[3-9]*)
18027      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18028      # Instead, we relocate shared libraries at runtime.
18029      ;;
18030    sysv4*MP*)
18031      if test -d /usr/nec; then
18032	lt_prog_compiler_pic_CXX=-Kconform_pic
18033      fi
18034      ;;
18035    hpux*)
18036      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18037      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18038      # sets the default TLS model and affects inlining.
18039      case $host_cpu in
18040      hppa*64*)
18041	;;
18042      *)
18043	lt_prog_compiler_pic_CXX='-fPIC'
18044	;;
18045      esac
18046      ;;
18047    *qnx* | *nto*)
18048      # QNX uses GNU C++, but need to define -shared option too, otherwise
18049      # it will coredump.
18050      lt_prog_compiler_pic_CXX='-fPIC -shared'
18051      ;;
18052    *)
18053      lt_prog_compiler_pic_CXX='-fPIC'
18054      ;;
18055    esac
18056  else
18057    case $host_os in
18058      aix[4-9]*)
18059	# All AIX code is PIC.
18060	if test ia64 = "$host_cpu"; then
18061	  # AIX 5 now supports IA64 processor
18062	  lt_prog_compiler_static_CXX='-Bstatic'
18063	else
18064	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18065	fi
18066	;;
18067      chorus*)
18068	case $cc_basename in
18069	cxch68*)
18070	  # Green Hills C++ Compiler
18071	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
18072	  ;;
18073	esac
18074	;;
18075      mingw* | cygwin* | os2* | pw32* | cegcc*)
18076	# This hack is so that the source file can tell whether it is being
18077	# built for inclusion in a dll (and should export symbols for example).
18078	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18079	;;
18080      dgux*)
18081	case $cc_basename in
18082	  ec++*)
18083	    lt_prog_compiler_pic_CXX='-KPIC'
18084	    ;;
18085	  ghcx*)
18086	    # Green Hills C++ Compiler
18087	    lt_prog_compiler_pic_CXX='-pic'
18088	    ;;
18089	  *)
18090	    ;;
18091	esac
18092	;;
18093      freebsd* | dragonfly*)
18094	# FreeBSD uses GNU C++
18095	;;
18096      hpux9* | hpux10* | hpux11*)
18097	case $cc_basename in
18098	  CC*)
18099	    lt_prog_compiler_wl_CXX='-Wl,'
18100	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18101	    if test ia64 != "$host_cpu"; then
18102	      lt_prog_compiler_pic_CXX='+Z'
18103	    fi
18104	    ;;
18105	  aCC*)
18106	    lt_prog_compiler_wl_CXX='-Wl,'
18107	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18108	    case $host_cpu in
18109	    hppa*64*|ia64*)
18110	      # +Z the default
18111	      ;;
18112	    *)
18113	      lt_prog_compiler_pic_CXX='+Z'
18114	      ;;
18115	    esac
18116	    ;;
18117	  *)
18118	    ;;
18119	esac
18120	;;
18121      interix*)
18122	# This is c89, which is MS Visual C++ (no shared libs)
18123	# Anyone wants to do a port?
18124	;;
18125      irix5* | irix6* | nonstopux*)
18126	case $cc_basename in
18127	  CC*)
18128	    lt_prog_compiler_wl_CXX='-Wl,'
18129	    lt_prog_compiler_static_CXX='-non_shared'
18130	    # CC pic flag -KPIC is the default.
18131	    ;;
18132	  *)
18133	    ;;
18134	esac
18135	;;
18136      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18137	case $cc_basename in
18138	  KCC*)
18139	    # KAI C++ Compiler
18140	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18141	    lt_prog_compiler_pic_CXX='-fPIC'
18142	    ;;
18143	  ecpc* )
18144	    # old Intel C++ for x86_64, which still supported -KPIC.
18145	    lt_prog_compiler_wl_CXX='-Wl,'
18146	    lt_prog_compiler_pic_CXX='-KPIC'
18147	    lt_prog_compiler_static_CXX='-static'
18148	    ;;
18149	  icpc* )
18150	    # Intel C++, used to be incompatible with GCC.
18151	    # ICC 10 doesn't accept -KPIC any more.
18152	    lt_prog_compiler_wl_CXX='-Wl,'
18153	    lt_prog_compiler_pic_CXX='-fPIC'
18154	    lt_prog_compiler_static_CXX='-static'
18155	    ;;
18156	  pgCC* | pgcpp*)
18157	    # Portland Group C++ compiler
18158	    lt_prog_compiler_wl_CXX='-Wl,'
18159	    lt_prog_compiler_pic_CXX='-fpic'
18160	    lt_prog_compiler_static_CXX='-Bstatic'
18161	    ;;
18162	  cxx*)
18163	    # Compaq C++
18164	    # Make sure the PIC flag is empty.  It appears that all Alpha
18165	    # Linux and Compaq Tru64 Unix objects are PIC.
18166	    lt_prog_compiler_pic_CXX=
18167	    lt_prog_compiler_static_CXX='-non_shared'
18168	    ;;
18169	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18170	    # IBM XL 8.0, 9.0 on PPC and BlueGene
18171	    lt_prog_compiler_wl_CXX='-Wl,'
18172	    lt_prog_compiler_pic_CXX='-qpic'
18173	    lt_prog_compiler_static_CXX='-qstaticlink'
18174	    ;;
18175	  *)
18176	    case `$CC -V 2>&1 | sed 5q` in
18177	    *Sun\ C*)
18178	      # Sun C++ 5.9
18179	      lt_prog_compiler_pic_CXX='-KPIC'
18180	      lt_prog_compiler_static_CXX='-Bstatic'
18181	      lt_prog_compiler_wl_CXX='-Qoption ld '
18182	      ;;
18183	    esac
18184	    ;;
18185	esac
18186	;;
18187      lynxos*)
18188	;;
18189      m88k*)
18190	;;
18191      mvs*)
18192	case $cc_basename in
18193	  cxx*)
18194	    lt_prog_compiler_pic_CXX='-W c,exportall'
18195	    ;;
18196	  *)
18197	    ;;
18198	esac
18199	;;
18200      netbsd*)
18201	;;
18202      *qnx* | *nto*)
18203        # QNX uses GNU C++, but need to define -shared option too, otherwise
18204        # it will coredump.
18205        lt_prog_compiler_pic_CXX='-fPIC -shared'
18206        ;;
18207      osf3* | osf4* | osf5*)
18208	case $cc_basename in
18209	  KCC*)
18210	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18211	    ;;
18212	  RCC*)
18213	    # Rational C++ 2.4.1
18214	    lt_prog_compiler_pic_CXX='-pic'
18215	    ;;
18216	  cxx*)
18217	    # Digital/Compaq C++
18218	    lt_prog_compiler_wl_CXX='-Wl,'
18219	    # Make sure the PIC flag is empty.  It appears that all Alpha
18220	    # Linux and Compaq Tru64 Unix objects are PIC.
18221	    lt_prog_compiler_pic_CXX=
18222	    lt_prog_compiler_static_CXX='-non_shared'
18223	    ;;
18224	  *)
18225	    ;;
18226	esac
18227	;;
18228      psos*)
18229	;;
18230      solaris*)
18231	case $cc_basename in
18232	  CC* | sunCC*)
18233	    # Sun C++ 4.2, 5.x and Centerline C++
18234	    lt_prog_compiler_pic_CXX='-KPIC'
18235	    lt_prog_compiler_static_CXX='-Bstatic'
18236	    lt_prog_compiler_wl_CXX='-Qoption ld '
18237	    ;;
18238	  gcx*)
18239	    # Green Hills C++ Compiler
18240	    lt_prog_compiler_pic_CXX='-PIC'
18241	    ;;
18242	  *)
18243	    ;;
18244	esac
18245	;;
18246      sunos4*)
18247	case $cc_basename in
18248	  CC*)
18249	    # Sun C++ 4.x
18250	    lt_prog_compiler_pic_CXX='-pic'
18251	    lt_prog_compiler_static_CXX='-Bstatic'
18252	    ;;
18253	  lcc*)
18254	    # Lucid
18255	    lt_prog_compiler_pic_CXX='-pic'
18256	    ;;
18257	  *)
18258	    ;;
18259	esac
18260	;;
18261      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18262	case $cc_basename in
18263	  CC*)
18264	    lt_prog_compiler_wl_CXX='-Wl,'
18265	    lt_prog_compiler_pic_CXX='-KPIC'
18266	    lt_prog_compiler_static_CXX='-Bstatic'
18267	    ;;
18268	esac
18269	;;
18270      tandem*)
18271	case $cc_basename in
18272	  NCC*)
18273	    # NonStop-UX NCC 3.20
18274	    lt_prog_compiler_pic_CXX='-KPIC'
18275	    ;;
18276	  *)
18277	    ;;
18278	esac
18279	;;
18280      vxworks*)
18281	;;
18282      *)
18283	lt_prog_compiler_can_build_shared_CXX=no
18284	;;
18285    esac
18286  fi
18287
18288case $host_os in
18289  # For platforms that do not support PIC, -DPIC is meaningless:
18290  *djgpp*)
18291    lt_prog_compiler_pic_CXX=
18292    ;;
18293  *)
18294    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18295    ;;
18296esac
18297
18298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18299$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18300if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18301  $as_echo_n "(cached) " >&6
18302else
18303  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18304fi
18305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18306$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18307lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18308
18309#
18310# Check to make sure the PIC flag actually works.
18311#
18312if test -n "$lt_prog_compiler_pic_CXX"; then
18313  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18314$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18315if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18316  $as_echo_n "(cached) " >&6
18317else
18318  lt_cv_prog_compiler_pic_works_CXX=no
18319   ac_outfile=conftest.$ac_objext
18320   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18321   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
18322   # Insert the option either (1) after the last *FLAGS variable, or
18323   # (2) before a word containing "conftest.", or (3) at the end.
18324   # Note that $ac_compile itself does not contain backslashes and begins
18325   # with a dollar sign (not a hyphen), so the echo should work correctly.
18326   # The option is referenced via a variable to avoid confusing sed.
18327   lt_compile=`echo "$ac_compile" | $SED \
18328   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18329   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18330   -e 's:$: $lt_compiler_flag:'`
18331   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18332   (eval "$lt_compile" 2>conftest.err)
18333   ac_status=$?
18334   cat conftest.err >&5
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   if (exit $ac_status) && test -s "$ac_outfile"; then
18337     # The compiler can only warn and ignore the option if not recognized
18338     # So say no if there are warnings other than the usual output.
18339     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18340     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18341     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18342       lt_cv_prog_compiler_pic_works_CXX=yes
18343     fi
18344   fi
18345   $RM conftest*
18346
18347fi
18348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18349$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18350
18351if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18352    case $lt_prog_compiler_pic_CXX in
18353     "" | " "*) ;;
18354     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18355     esac
18356else
18357    lt_prog_compiler_pic_CXX=
18358     lt_prog_compiler_can_build_shared_CXX=no
18359fi
18360
18361fi
18362
18363
18364
18365
18366
18367#
18368# Check to make sure the static flag actually works.
18369#
18370wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18372$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18373if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18374  $as_echo_n "(cached) " >&6
18375else
18376  lt_cv_prog_compiler_static_works_CXX=no
18377   save_LDFLAGS=$LDFLAGS
18378   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18379   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18380   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18381     # The linker can only warn and ignore the option if not recognized
18382     # So say no if there are warnings
18383     if test -s conftest.err; then
18384       # Append any errors to the config.log.
18385       cat conftest.err 1>&5
18386       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18387       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18388       if diff conftest.exp conftest.er2 >/dev/null; then
18389         lt_cv_prog_compiler_static_works_CXX=yes
18390       fi
18391     else
18392       lt_cv_prog_compiler_static_works_CXX=yes
18393     fi
18394   fi
18395   $RM -r conftest*
18396   LDFLAGS=$save_LDFLAGS
18397
18398fi
18399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18400$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18401
18402if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18403    :
18404else
18405    lt_prog_compiler_static_CXX=
18406fi
18407
18408
18409
18410
18411    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18412$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18413if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18414  $as_echo_n "(cached) " >&6
18415else
18416  lt_cv_prog_compiler_c_o_CXX=no
18417   $RM -r conftest 2>/dev/null
18418   mkdir conftest
18419   cd conftest
18420   mkdir out
18421   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18422
18423   lt_compiler_flag="-o out/conftest2.$ac_objext"
18424   # Insert the option either (1) after the last *FLAGS variable, or
18425   # (2) before a word containing "conftest.", or (3) at the end.
18426   # Note that $ac_compile itself does not contain backslashes and begins
18427   # with a dollar sign (not a hyphen), so the echo should work correctly.
18428   lt_compile=`echo "$ac_compile" | $SED \
18429   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18430   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18431   -e 's:$: $lt_compiler_flag:'`
18432   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18433   (eval "$lt_compile" 2>out/conftest.err)
18434   ac_status=$?
18435   cat out/conftest.err >&5
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18438   then
18439     # The compiler can only warn and ignore the option if not recognized
18440     # So say no if there are warnings
18441     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18442     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18443     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18444       lt_cv_prog_compiler_c_o_CXX=yes
18445     fi
18446   fi
18447   chmod u+w . 2>&5
18448   $RM conftest*
18449   # SGI C++ compiler will create directory out/ii_files/ for
18450   # template instantiation
18451   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18452   $RM out/* && rmdir out
18453   cd ..
18454   $RM -r conftest
18455   $RM conftest*
18456
18457fi
18458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18459$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18460
18461
18462
18463    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18464$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18465if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18466  $as_echo_n "(cached) " >&6
18467else
18468  lt_cv_prog_compiler_c_o_CXX=no
18469   $RM -r conftest 2>/dev/null
18470   mkdir conftest
18471   cd conftest
18472   mkdir out
18473   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18474
18475   lt_compiler_flag="-o out/conftest2.$ac_objext"
18476   # Insert the option either (1) after the last *FLAGS variable, or
18477   # (2) before a word containing "conftest.", or (3) at the end.
18478   # Note that $ac_compile itself does not contain backslashes and begins
18479   # with a dollar sign (not a hyphen), so the echo should work correctly.
18480   lt_compile=`echo "$ac_compile" | $SED \
18481   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18482   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18483   -e 's:$: $lt_compiler_flag:'`
18484   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18485   (eval "$lt_compile" 2>out/conftest.err)
18486   ac_status=$?
18487   cat out/conftest.err >&5
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18490   then
18491     # The compiler can only warn and ignore the option if not recognized
18492     # So say no if there are warnings
18493     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18494     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18495     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18496       lt_cv_prog_compiler_c_o_CXX=yes
18497     fi
18498   fi
18499   chmod u+w . 2>&5
18500   $RM conftest*
18501   # SGI C++ compiler will create directory out/ii_files/ for
18502   # template instantiation
18503   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18504   $RM out/* && rmdir out
18505   cd ..
18506   $RM -r conftest
18507   $RM conftest*
18508
18509fi
18510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18511$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18512
18513
18514
18515
18516hard_links=nottested
18517if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18518  # do not overwrite the value of need_locks provided by the user
18519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18520$as_echo_n "checking if we can lock with hard links... " >&6; }
18521  hard_links=yes
18522  $RM conftest*
18523  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18524  touch conftest.a
18525  ln conftest.a conftest.b 2>&5 || hard_links=no
18526  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18528$as_echo "$hard_links" >&6; }
18529  if test no = "$hard_links"; then
18530    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18531$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18532    need_locks=warn
18533  fi
18534else
18535  need_locks=no
18536fi
18537
18538
18539
18540    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18541$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18542
18543  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18544  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18545  case $host_os in
18546  aix[4-9]*)
18547    # If we're using GNU nm, then we don't want the "-C" option.
18548    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18549    # Without the "-l" option, or with the "-B" option, AIX nm treats
18550    # weak defined symbols like other global defined symbols, whereas
18551    # GNU nm marks them as "W".
18552    # While the 'weak' keyword is ignored in the Export File, we need
18553    # it in the Import File for the 'aix-soname' feature, so we have
18554    # to replace the "-B" option with "-P" for AIX nm.
18555    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18556      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
18557    else
18558      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
18559    fi
18560    ;;
18561  pw32*)
18562    export_symbols_cmds_CXX=$ltdll_cmds
18563    ;;
18564  cygwin* | mingw* | cegcc*)
18565    case $cc_basename in
18566    cl*)
18567      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18568      ;;
18569    *)
18570      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18571      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18572      ;;
18573    esac
18574    ;;
18575  *)
18576    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18577    ;;
18578  esac
18579
18580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18581$as_echo "$ld_shlibs_CXX" >&6; }
18582test no = "$ld_shlibs_CXX" && can_build_shared=no
18583
18584with_gnu_ld_CXX=$with_gnu_ld
18585
18586
18587
18588
18589
18590
18591#
18592# Do we need to explicitly link libc?
18593#
18594case "x$archive_cmds_need_lc_CXX" in
18595x|xyes)
18596  # Assume -lc should be added
18597  archive_cmds_need_lc_CXX=yes
18598
18599  if test yes,yes = "$GCC,$enable_shared"; then
18600    case $archive_cmds_CXX in
18601    *'~'*)
18602      # FIXME: we may have to deal with multi-command sequences.
18603      ;;
18604    '$CC '*)
18605      # Test whether the compiler implicitly links with -lc since on some
18606      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18607      # to ld, don't add -lc before -lgcc.
18608      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18609$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18610if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18611  $as_echo_n "(cached) " >&6
18612else
18613  $RM conftest*
18614	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18615
18616	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18617  (eval $ac_compile) 2>&5
18618  ac_status=$?
18619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18620  test $ac_status = 0; } 2>conftest.err; then
18621	  soname=conftest
18622	  lib=conftest
18623	  libobjs=conftest.$ac_objext
18624	  deplibs=
18625	  wl=$lt_prog_compiler_wl_CXX
18626	  pic_flag=$lt_prog_compiler_pic_CXX
18627	  compiler_flags=-v
18628	  linker_flags=-v
18629	  verstring=
18630	  output_objdir=.
18631	  libname=conftest
18632	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18633	  allow_undefined_flag_CXX=
18634	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18635  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18636  ac_status=$?
18637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18638  test $ac_status = 0; }
18639	  then
18640	    lt_cv_archive_cmds_need_lc_CXX=no
18641	  else
18642	    lt_cv_archive_cmds_need_lc_CXX=yes
18643	  fi
18644	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18645	else
18646	  cat conftest.err 1>&5
18647	fi
18648	$RM conftest*
18649
18650fi
18651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18652$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18653      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18654      ;;
18655    esac
18656  fi
18657  ;;
18658esac
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18722$as_echo_n "checking dynamic linker characteristics... " >&6; }
18723
18724library_names_spec=
18725libname_spec='lib$name'
18726soname_spec=
18727shrext_cmds=.so
18728postinstall_cmds=
18729postuninstall_cmds=
18730finish_cmds=
18731finish_eval=
18732shlibpath_var=
18733shlibpath_overrides_runpath=unknown
18734version_type=none
18735dynamic_linker="$host_os ld.so"
18736sys_lib_dlsearch_path_spec="/lib /usr/lib"
18737need_lib_prefix=unknown
18738hardcode_into_libs=no
18739
18740# when you set need_version to no, make sure it does not cause -set_version
18741# flags to be left without arguments
18742need_version=unknown
18743
18744
18745
18746case $host_os in
18747aix3*)
18748  version_type=linux # correct to gnu/linux during the next big refactor
18749  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18750  shlibpath_var=LIBPATH
18751
18752  # AIX 3 has no versioning support, so we append a major version to the name.
18753  soname_spec='$libname$release$shared_ext$major'
18754  ;;
18755
18756aix[4-9]*)
18757  version_type=linux # correct to gnu/linux during the next big refactor
18758  need_lib_prefix=no
18759  need_version=no
18760  hardcode_into_libs=yes
18761  if test ia64 = "$host_cpu"; then
18762    # AIX 5 supports IA64
18763    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18764    shlibpath_var=LD_LIBRARY_PATH
18765  else
18766    # With GCC up to 2.95.x, collect2 would create an import file
18767    # for dependence libraries.  The import file would start with
18768    # the line '#! .'.  This would cause the generated library to
18769    # depend on '.', always an invalid library.  This was fixed in
18770    # development snapshots of GCC prior to 3.0.
18771    case $host_os in
18772      aix4 | aix4.[01] | aix4.[01].*)
18773      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18774	   echo ' yes '
18775	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18776	:
18777      else
18778	can_build_shared=no
18779      fi
18780      ;;
18781    esac
18782    # Using Import Files as archive members, it is possible to support
18783    # filename-based versioning of shared library archives on AIX. While
18784    # this would work for both with and without runtime linking, it will
18785    # prevent static linking of such archives. So we do filename-based
18786    # shared library versioning with .so extension only, which is used
18787    # when both runtime linking and shared linking is enabled.
18788    # Unfortunately, runtime linking may impact performance, so we do
18789    # not want this to be the default eventually. Also, we use the
18790    # versioned .so libs for executables only if there is the -brtl
18791    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18792    # To allow for filename-based versioning support, we need to create
18793    # libNAME.so.V as an archive file, containing:
18794    # *) an Import File, referring to the versioned filename of the
18795    #    archive as well as the shared archive member, telling the
18796    #    bitwidth (32 or 64) of that shared object, and providing the
18797    #    list of exported symbols of that shared object, eventually
18798    #    decorated with the 'weak' keyword
18799    # *) the shared object with the F_LOADONLY flag set, to really avoid
18800    #    it being seen by the linker.
18801    # At run time we better use the real file rather than another symlink,
18802    # but for link time we create the symlink libNAME.so -> libNAME.so.V
18803
18804    case $with_aix_soname,$aix_use_runtimelinking in
18805    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18806    # soname into executable. Probably we can add versioning support to
18807    # collect2, so additional links can be useful in future.
18808    aix,yes) # traditional libtool
18809      dynamic_linker='AIX unversionable lib.so'
18810      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18811      # instead of lib<name>.a to let people know that these are not
18812      # typical AIX shared libraries.
18813      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18814      ;;
18815    aix,no) # traditional AIX only
18816      dynamic_linker='AIX lib.a(lib.so.V)'
18817      # We preserve .a as extension for shared libraries through AIX4.2
18818      # and later when we are not doing run time linking.
18819      library_names_spec='$libname$release.a $libname.a'
18820      soname_spec='$libname$release$shared_ext$major'
18821      ;;
18822    svr4,*) # full svr4 only
18823      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18824      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18825      # We do not specify a path in Import Files, so LIBPATH fires.
18826      shlibpath_overrides_runpath=yes
18827      ;;
18828    *,yes) # both, prefer svr4
18829      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18830      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18831      # unpreferred sharedlib libNAME.a needs extra handling
18832      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
18833      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
18834      # We do not specify a path in Import Files, so LIBPATH fires.
18835      shlibpath_overrides_runpath=yes
18836      ;;
18837    *,no) # both, prefer aix
18838      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18839      library_names_spec='$libname$release.a $libname.a'
18840      soname_spec='$libname$release$shared_ext$major'
18841      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18842      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
18843      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
18844      ;;
18845    esac
18846    shlibpath_var=LIBPATH
18847  fi
18848  ;;
18849
18850amigaos*)
18851  case $host_cpu in
18852  powerpc)
18853    # Since July 2007 AmigaOS4 officially supports .so libraries.
18854    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18855    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18856    ;;
18857  m68k)
18858    library_names_spec='$libname.ixlibrary $libname.a'
18859    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18860    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18861    ;;
18862  esac
18863  ;;
18864
18865beos*)
18866  library_names_spec='$libname$shared_ext'
18867  dynamic_linker="$host_os ld.so"
18868  shlibpath_var=LIBRARY_PATH
18869  ;;
18870
18871bsdi[45]*)
18872  version_type=linux # correct to gnu/linux during the next big refactor
18873  need_version=no
18874  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18875  soname_spec='$libname$release$shared_ext$major'
18876  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18877  shlibpath_var=LD_LIBRARY_PATH
18878  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18879  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18880  # the default ld.so.conf also contains /usr/contrib/lib and
18881  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18882  # libtool to hard-code these into programs
18883  ;;
18884
18885cygwin* | mingw* | pw32* | cegcc*)
18886  version_type=windows
18887  shrext_cmds=.dll
18888  need_version=no
18889  need_lib_prefix=no
18890
18891  case $GCC,$cc_basename in
18892  yes,*)
18893    # gcc
18894    library_names_spec='$libname.dll.a'
18895    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18896    postinstall_cmds='base_file=`basename \$file`~
18897      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18898      dldir=$destdir/`dirname \$dlpath`~
18899      test -d \$dldir || mkdir -p \$dldir~
18900      $install_prog $dir/$dlname \$dldir/$dlname~
18901      chmod a+x \$dldir/$dlname~
18902      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18903        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18904      fi'
18905    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18906      dlpath=$dir/\$dldll~
18907       $RM \$dlpath'
18908    shlibpath_overrides_runpath=yes
18909
18910    case $host_os in
18911    cygwin*)
18912      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18913      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18914
18915      ;;
18916    mingw* | cegcc*)
18917      # MinGW DLLs use traditional 'lib' prefix
18918      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18919      ;;
18920    pw32*)
18921      # pw32 DLLs use 'pw' prefix rather than 'lib'
18922      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18923      ;;
18924    esac
18925    dynamic_linker='Win32 ld.exe'
18926    ;;
18927
18928  *,cl*)
18929    # Native MSVC
18930    libname_spec='$name'
18931    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18932    library_names_spec='$libname.dll.lib'
18933
18934    case $build_os in
18935    mingw*)
18936      sys_lib_search_path_spec=
18937      lt_save_ifs=$IFS
18938      IFS=';'
18939      for lt_path in $LIB
18940      do
18941        IFS=$lt_save_ifs
18942        # Let DOS variable expansion print the short 8.3 style file name.
18943        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18944        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18945      done
18946      IFS=$lt_save_ifs
18947      # Convert to MSYS style.
18948      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18949      ;;
18950    cygwin*)
18951      # Convert to unix form, then to dos form, then back to unix form
18952      # but this time dos style (no spaces!) so that the unix form looks
18953      # like /cygdrive/c/PROGRA~1:/cygdr...
18954      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18955      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18956      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18957      ;;
18958    *)
18959      sys_lib_search_path_spec=$LIB
18960      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18961        # It is most probably a Windows format PATH.
18962        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18963      else
18964        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18965      fi
18966      # FIXME: find the short name or the path components, as spaces are
18967      # common. (e.g. "Program Files" -> "PROGRA~1")
18968      ;;
18969    esac
18970
18971    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18972    postinstall_cmds='base_file=`basename \$file`~
18973      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18974      dldir=$destdir/`dirname \$dlpath`~
18975      test -d \$dldir || mkdir -p \$dldir~
18976      $install_prog $dir/$dlname \$dldir/$dlname'
18977    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18978      dlpath=$dir/\$dldll~
18979       $RM \$dlpath'
18980    shlibpath_overrides_runpath=yes
18981    dynamic_linker='Win32 link.exe'
18982    ;;
18983
18984  *)
18985    # Assume MSVC wrapper
18986    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18987    dynamic_linker='Win32 ld.exe'
18988    ;;
18989  esac
18990  # FIXME: first we should search . and the directory the executable is in
18991  shlibpath_var=PATH
18992  ;;
18993
18994darwin* | rhapsody*)
18995  dynamic_linker="$host_os dyld"
18996  version_type=darwin
18997  need_lib_prefix=no
18998  need_version=no
18999  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19000  soname_spec='$libname$release$major$shared_ext'
19001  shlibpath_overrides_runpath=yes
19002  shlibpath_var=DYLD_LIBRARY_PATH
19003  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19004
19005  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19006  ;;
19007
19008dgux*)
19009  version_type=linux # correct to gnu/linux during the next big refactor
19010  need_lib_prefix=no
19011  need_version=no
19012  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19013  soname_spec='$libname$release$shared_ext$major'
19014  shlibpath_var=LD_LIBRARY_PATH
19015  ;;
19016
19017freebsd* | dragonfly*)
19018  # DragonFly does not have aout.  When/if they implement a new
19019  # versioning mechanism, adjust this.
19020  if test -x /usr/bin/objformat; then
19021    objformat=`/usr/bin/objformat`
19022  else
19023    case $host_os in
19024    freebsd[23].*) objformat=aout ;;
19025    *) objformat=elf ;;
19026    esac
19027  fi
19028  version_type=freebsd-$objformat
19029  case $version_type in
19030    freebsd-elf*)
19031      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19032      soname_spec='$libname$release$shared_ext$major'
19033      need_version=no
19034      need_lib_prefix=no
19035      ;;
19036    freebsd-*)
19037      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19038      need_version=yes
19039      ;;
19040  esac
19041  shlibpath_var=LD_LIBRARY_PATH
19042  case $host_os in
19043  freebsd2.*)
19044    shlibpath_overrides_runpath=yes
19045    ;;
19046  freebsd3.[01]* | freebsdelf3.[01]*)
19047    shlibpath_overrides_runpath=yes
19048    hardcode_into_libs=yes
19049    ;;
19050  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19051  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19052    shlibpath_overrides_runpath=no
19053    hardcode_into_libs=yes
19054    ;;
19055  *) # from 4.6 on, and DragonFly
19056    shlibpath_overrides_runpath=yes
19057    hardcode_into_libs=yes
19058    ;;
19059  esac
19060  ;;
19061
19062haiku*)
19063  version_type=linux # correct to gnu/linux during the next big refactor
19064  need_lib_prefix=no
19065  need_version=no
19066  dynamic_linker="$host_os runtime_loader"
19067  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19068  soname_spec='$libname$release$shared_ext$major'
19069  shlibpath_var=LIBRARY_PATH
19070  shlibpath_overrides_runpath=no
19071  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19072  hardcode_into_libs=yes
19073  ;;
19074
19075hpux9* | hpux10* | hpux11*)
19076  # Give a soname corresponding to the major version so that dld.sl refuses to
19077  # link against other versions.
19078  version_type=sunos
19079  need_lib_prefix=no
19080  need_version=no
19081  case $host_cpu in
19082  ia64*)
19083    shrext_cmds='.so'
19084    hardcode_into_libs=yes
19085    dynamic_linker="$host_os dld.so"
19086    shlibpath_var=LD_LIBRARY_PATH
19087    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19088    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19089    soname_spec='$libname$release$shared_ext$major'
19090    if test 32 = "$HPUX_IA64_MODE"; then
19091      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19092      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19093    else
19094      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19095      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19096    fi
19097    ;;
19098  hppa*64*)
19099    shrext_cmds='.sl'
19100    hardcode_into_libs=yes
19101    dynamic_linker="$host_os dld.sl"
19102    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19103    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19104    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19105    soname_spec='$libname$release$shared_ext$major'
19106    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19107    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19108    ;;
19109  *)
19110    shrext_cmds='.sl'
19111    dynamic_linker="$host_os dld.sl"
19112    shlibpath_var=SHLIB_PATH
19113    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19114    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19115    soname_spec='$libname$release$shared_ext$major'
19116    ;;
19117  esac
19118  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19119  postinstall_cmds='chmod 555 $lib'
19120  # or fails outright, so override atomically:
19121  install_override_mode=555
19122  ;;
19123
19124interix[3-9]*)
19125  version_type=linux # correct to gnu/linux during the next big refactor
19126  need_lib_prefix=no
19127  need_version=no
19128  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19129  soname_spec='$libname$release$shared_ext$major'
19130  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19131  shlibpath_var=LD_LIBRARY_PATH
19132  shlibpath_overrides_runpath=no
19133  hardcode_into_libs=yes
19134  ;;
19135
19136irix5* | irix6* | nonstopux*)
19137  case $host_os in
19138    nonstopux*) version_type=nonstopux ;;
19139    *)
19140	if test yes = "$lt_cv_prog_gnu_ld"; then
19141		version_type=linux # correct to gnu/linux during the next big refactor
19142	else
19143		version_type=irix
19144	fi ;;
19145  esac
19146  need_lib_prefix=no
19147  need_version=no
19148  soname_spec='$libname$release$shared_ext$major'
19149  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19150  case $host_os in
19151  irix5* | nonstopux*)
19152    libsuff= shlibsuff=
19153    ;;
19154  *)
19155    case $LD in # libtool.m4 will add one of these switches to LD
19156    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19157      libsuff= shlibsuff= libmagic=32-bit;;
19158    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19159      libsuff=32 shlibsuff=N32 libmagic=N32;;
19160    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19161      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19162    *) libsuff= shlibsuff= libmagic=never-match;;
19163    esac
19164    ;;
19165  esac
19166  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19167  shlibpath_overrides_runpath=no
19168  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19169  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19170  hardcode_into_libs=yes
19171  ;;
19172
19173# No shared lib support for Linux oldld, aout, or coff.
19174linux*oldld* | linux*aout* | linux*coff*)
19175  dynamic_linker=no
19176  ;;
19177
19178linux*android*)
19179  version_type=none # Android doesn't support versioned libraries.
19180  need_lib_prefix=no
19181  need_version=no
19182  library_names_spec='$libname$release$shared_ext'
19183  soname_spec='$libname$release$shared_ext'
19184  finish_cmds=
19185  shlibpath_var=LD_LIBRARY_PATH
19186  shlibpath_overrides_runpath=yes
19187
19188  # This implies no fast_install, which is unacceptable.
19189  # Some rework will be needed to allow for fast_install
19190  # before this can be enabled.
19191  hardcode_into_libs=yes
19192
19193  dynamic_linker='Android linker'
19194  # Don't embed -rpath directories since the linker doesn't support them.
19195  hardcode_libdir_flag_spec_CXX='-L$libdir'
19196  ;;
19197
19198# This must be glibc/ELF.
19199linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19200  version_type=linux # correct to gnu/linux during the next big refactor
19201  need_lib_prefix=no
19202  need_version=no
19203  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19204  soname_spec='$libname$release$shared_ext$major'
19205  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19206  shlibpath_var=LD_LIBRARY_PATH
19207  shlibpath_overrides_runpath=no
19208
19209  # Some binutils ld are patched to set DT_RUNPATH
19210  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19211  $as_echo_n "(cached) " >&6
19212else
19213  lt_cv_shlibpath_overrides_runpath=no
19214    save_LDFLAGS=$LDFLAGS
19215    save_libdir=$libdir
19216    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19217	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19218    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19219/* end confdefs.h.  */
19220
19221int
19222main ()
19223{
19224
19225  ;
19226  return 0;
19227}
19228_ACEOF
19229if ac_fn_cxx_try_link "$LINENO"; then :
19230  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19231  lt_cv_shlibpath_overrides_runpath=yes
19232fi
19233fi
19234rm -f core conftest.err conftest.$ac_objext \
19235    conftest$ac_exeext conftest.$ac_ext
19236    LDFLAGS=$save_LDFLAGS
19237    libdir=$save_libdir
19238
19239fi
19240
19241  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19242
19243  # This implies no fast_install, which is unacceptable.
19244  # Some rework will be needed to allow for fast_install
19245  # before this can be enabled.
19246  hardcode_into_libs=yes
19247
19248  # Ideally, we could use ldconfig to report *all* directores which are
19249  # searched for libraries, however this is still not possible.  Aside from not
19250  # being certain /sbin/ldconfig is available, command
19251  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19252  # even though it is searched at run-time.  Try to do the best guess by
19253  # appending ld.so.conf contents (and includes) to the search path.
19254
19255  # There is no easy way to reliably detect the sys dlsearch path. We will first
19256  # assume ldconfig reports the path correctly, but check it with the current
19257  # ld cache. If any cached path is not present in the generated path_spec, then
19258  # we know ldconfig is bad and should manually parse the ld.so.conf files.
19259  # Note the reported paths can be a superset of the cached paths.
19260  # The catch is that the default path may not be in the ld.so.conf. We have to
19261  # add any missing one back to the path_spec (from the cached paths).
19262
19263  if test -x /sbin/ldconfig; then
19264    sys_lib_dlsearch_path_spec=`/sbin/ldconfig -N -X -v 2>/dev/null | grep ^/ | sed -e 's/:.*//g' | tr '\n' ' '`
19265    cached_lib_dlsearch_path=`/sbin/ldconfig -p | sed -e 's/.*=> //g' | grep '^/' | while read p; do dirname $p; done | sort | uniq | tr '\n' ' '`
19266    for p in `echo $cached_lib_dlsearch_path`; do
19267      case "$sys_lib_dlsearch_path_spec" in
19268        *$p*)
19269            bad_ldconfig=no
19270            ;;
19271           *)
19272            # ldconfig is bad if cached path is not reported
19273            bad_ldconfig=yes
19274            break
19275            ;;
19276      esac
19277    done
19278  else
19279    bad_ldconfig=yes
19280  fi
19281
19282  if test "$bad_ldconfig" = "yes"; then
19283    if test -f /etc/ld.so.conf; then
19284      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
19285      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19286    fi
19287
19288    # catch anything that in the cached path but not in the conf files
19289    for p in `echo $cached_lib_dlsearch_path`; do
19290      case "$sys_lib_dlsearch_path_spec" in
19291        *$p*)
19292            ;;
19293           *)
19294            sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $p"
19295            ;;
19296      esac
19297    done
19298  fi
19299
19300  # We used to test for /lib/ld.so.1 and disable shared libraries on
19301  # powerpc, because MkLinux only supported shared libraries with the
19302  # GNU dynamic linker.  Since this was broken with cross compilers,
19303  # most powerpc-linux boxes support dynamic linking these days and
19304  # people can always --disable-shared, the test was removed, and we
19305  # assume the GNU/Linux dynamic linker is in use.
19306  dynamic_linker='GNU/Linux ld.so'
19307  ;;
19308
19309netbsd*)
19310  version_type=sunos
19311  need_lib_prefix=no
19312  need_version=no
19313  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19314    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19315    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19316    dynamic_linker='NetBSD (a.out) ld.so'
19317  else
19318    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19319    soname_spec='$libname$release$shared_ext$major'
19320    dynamic_linker='NetBSD ld.elf_so'
19321  fi
19322  shlibpath_var=LD_LIBRARY_PATH
19323  shlibpath_overrides_runpath=yes
19324  hardcode_into_libs=yes
19325  ;;
19326
19327newsos6)
19328  version_type=linux # correct to gnu/linux during the next big refactor
19329  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19330  shlibpath_var=LD_LIBRARY_PATH
19331  shlibpath_overrides_runpath=yes
19332  ;;
19333
19334*nto* | *qnx*)
19335  version_type=qnx
19336  need_lib_prefix=no
19337  need_version=no
19338  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19339  soname_spec='$libname$release$shared_ext$major'
19340  shlibpath_var=LD_LIBRARY_PATH
19341  shlibpath_overrides_runpath=no
19342  hardcode_into_libs=yes
19343  dynamic_linker='ldqnx.so'
19344  ;;
19345
19346openbsd* | bitrig*)
19347  version_type=sunos
19348  sys_lib_dlsearch_path_spec=/usr/lib
19349  need_lib_prefix=no
19350  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19351    need_version=no
19352  else
19353    need_version=yes
19354  fi
19355  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19356  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19357  shlibpath_var=LD_LIBRARY_PATH
19358  shlibpath_overrides_runpath=yes
19359  ;;
19360
19361os2*)
19362  libname_spec='$name'
19363  version_type=windows
19364  shrext_cmds=.dll
19365  need_version=no
19366  need_lib_prefix=no
19367  # OS/2 can only load a DLL with a base name of 8 characters or less.
19368  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19369    v=$($ECHO $release$versuffix | tr -d .-);
19370    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19371    $ECHO $n$v`$shared_ext'
19372  library_names_spec='${libname}_dll.$libext'
19373  dynamic_linker='OS/2 ld.exe'
19374  shlibpath_var=BEGINLIBPATH
19375  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19376  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19377  postinstall_cmds='base_file=`basename \$file`~
19378    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19379    dldir=$destdir/`dirname \$dlpath`~
19380    test -d \$dldir || mkdir -p \$dldir~
19381    $install_prog $dir/$dlname \$dldir/$dlname~
19382    chmod a+x \$dldir/$dlname~
19383    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19384      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19385    fi'
19386  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19387    dlpath=$dir/\$dldll~
19388    $RM \$dlpath'
19389  ;;
19390
19391osf3* | osf4* | osf5*)
19392  version_type=osf
19393  need_lib_prefix=no
19394  need_version=no
19395  soname_spec='$libname$release$shared_ext$major'
19396  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19397  shlibpath_var=LD_LIBRARY_PATH
19398  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19399  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19400  ;;
19401
19402rdos*)
19403  dynamic_linker=no
19404  ;;
19405
19406solaris*)
19407  version_type=linux # correct to gnu/linux during the next big refactor
19408  need_lib_prefix=no
19409  need_version=no
19410  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19411  soname_spec='$libname$release$shared_ext$major'
19412  shlibpath_var=LD_LIBRARY_PATH
19413  shlibpath_overrides_runpath=yes
19414  hardcode_into_libs=yes
19415  # ldd complains unless libraries are executable
19416  postinstall_cmds='chmod +x $lib'
19417  ;;
19418
19419sunos4*)
19420  version_type=sunos
19421  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19422  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19423  shlibpath_var=LD_LIBRARY_PATH
19424  shlibpath_overrides_runpath=yes
19425  if test yes = "$with_gnu_ld"; then
19426    need_lib_prefix=no
19427  fi
19428  need_version=yes
19429  ;;
19430
19431sysv4 | sysv4.3*)
19432  version_type=linux # correct to gnu/linux during the next big refactor
19433  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19434  soname_spec='$libname$release$shared_ext$major'
19435  shlibpath_var=LD_LIBRARY_PATH
19436  case $host_vendor in
19437    sni)
19438      shlibpath_overrides_runpath=no
19439      need_lib_prefix=no
19440      runpath_var=LD_RUN_PATH
19441      ;;
19442    siemens)
19443      need_lib_prefix=no
19444      ;;
19445    motorola)
19446      need_lib_prefix=no
19447      need_version=no
19448      shlibpath_overrides_runpath=no
19449      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19450      ;;
19451  esac
19452  ;;
19453
19454sysv4*MP*)
19455  if test -d /usr/nec; then
19456    version_type=linux # correct to gnu/linux during the next big refactor
19457    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19458    soname_spec='$libname$shared_ext.$major'
19459    shlibpath_var=LD_LIBRARY_PATH
19460  fi
19461  ;;
19462
19463sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19464  version_type=sco
19465  need_lib_prefix=no
19466  need_version=no
19467  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19468  soname_spec='$libname$release$shared_ext$major'
19469  shlibpath_var=LD_LIBRARY_PATH
19470  shlibpath_overrides_runpath=yes
19471  hardcode_into_libs=yes
19472  if test yes = "$with_gnu_ld"; then
19473    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19474  else
19475    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19476    case $host_os in
19477      sco3.2v5*)
19478        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19479	;;
19480    esac
19481  fi
19482  sys_lib_dlsearch_path_spec='/usr/lib'
19483  ;;
19484
19485tpf*)
19486  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19487  version_type=linux # correct to gnu/linux during the next big refactor
19488  need_lib_prefix=no
19489  need_version=no
19490  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19491  shlibpath_var=LD_LIBRARY_PATH
19492  shlibpath_overrides_runpath=no
19493  hardcode_into_libs=yes
19494  ;;
19495
19496uts4*)
19497  version_type=linux # correct to gnu/linux during the next big refactor
19498  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19499  soname_spec='$libname$release$shared_ext$major'
19500  shlibpath_var=LD_LIBRARY_PATH
19501  ;;
19502
19503*)
19504  dynamic_linker=no
19505  ;;
19506esac
19507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19508$as_echo "$dynamic_linker" >&6; }
19509test no = "$dynamic_linker" && can_build_shared=no
19510
19511variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19512if test yes = "$GCC"; then
19513  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19514fi
19515
19516if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19517  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19518fi
19519
19520if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19521  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19522fi
19523
19524# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19525configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19526
19527# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19528func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19529
19530# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19531configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19573$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19574hardcode_action_CXX=
19575if test -n "$hardcode_libdir_flag_spec_CXX" ||
19576   test -n "$runpath_var_CXX" ||
19577   test yes = "$hardcode_automatic_CXX"; then
19578
19579  # We can hardcode non-existent directories.
19580  if test no != "$hardcode_direct_CXX" &&
19581     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19582     # have to relink, otherwise we might link with an installed library
19583     # when we should be linking with a yet-to-be-installed one
19584     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19585     test no != "$hardcode_minus_L_CXX"; then
19586    # Linking always hardcodes the temporary library directory.
19587    hardcode_action_CXX=relink
19588  else
19589    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19590    hardcode_action_CXX=immediate
19591  fi
19592else
19593  # We cannot hardcode anything, or else we can only hardcode existing
19594  # directories.
19595  hardcode_action_CXX=unsupported
19596fi
19597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19598$as_echo "$hardcode_action_CXX" >&6; }
19599
19600if test relink = "$hardcode_action_CXX" ||
19601   test yes = "$inherit_rpath_CXX"; then
19602  # Fast installation is not supported
19603  enable_fast_install=no
19604elif test yes = "$shlibpath_overrides_runpath" ||
19605     test no = "$enable_shared"; then
19606  # Fast installation is not necessary
19607  enable_fast_install=needless
19608fi
19609
19610
19611
19612
19613
19614
19615
19616  fi # test -n "$compiler"
19617
19618  CC=$lt_save_CC
19619  CFLAGS=$lt_save_CFLAGS
19620  LDCXX=$LD
19621  LD=$lt_save_LD
19622  GCC=$lt_save_GCC
19623  with_gnu_ld=$lt_save_with_gnu_ld
19624  lt_cv_path_LDCXX=$lt_cv_path_LD
19625  lt_cv_path_LD=$lt_save_path_LD
19626  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19627  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19628fi # test yes != "$_lt_caught_CXX_error"
19629
19630ac_ext=c
19631ac_cpp='$CPP $CPPFLAGS'
19632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19634ac_compiler_gnu=$ac_cv_c_compiler_gnu
19635
19636
19637
19638# suppress default "-g -O2" from AC_PROG_FC
19639: ${FCFLAGS=""}
19640ac_ext=${ac_fc_srcext-f}
19641ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
19642ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
19643ac_compiler_gnu=$ac_cv_fc_compiler_gnu
19644if test -n "$ac_tool_prefix"; then
19645  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
19646  do
19647    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19648set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19650$as_echo_n "checking for $ac_word... " >&6; }
19651if ${ac_cv_prog_FC+:} false; then :
19652  $as_echo_n "(cached) " >&6
19653else
19654  if test -n "$FC"; then
19655  ac_cv_prog_FC="$FC" # Let the user override the test.
19656else
19657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19658for as_dir in $PATH
19659do
19660  IFS=$as_save_IFS
19661  test -z "$as_dir" && as_dir=.
19662    for ac_exec_ext in '' $ac_executable_extensions; do
19663  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19664    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
19665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19666    break 2
19667  fi
19668done
19669  done
19670IFS=$as_save_IFS
19671
19672fi
19673fi
19674FC=$ac_cv_prog_FC
19675if test -n "$FC"; then
19676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
19677$as_echo "$FC" >&6; }
19678else
19679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19680$as_echo "no" >&6; }
19681fi
19682
19683
19684    test -n "$FC" && break
19685  done
19686fi
19687if test -z "$FC"; then
19688  ac_ct_FC=$FC
19689  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
19690do
19691  # Extract the first word of "$ac_prog", so it can be a program name with args.
19692set dummy $ac_prog; ac_word=$2
19693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19694$as_echo_n "checking for $ac_word... " >&6; }
19695if ${ac_cv_prog_ac_ct_FC+:} false; then :
19696  $as_echo_n "(cached) " >&6
19697else
19698  if test -n "$ac_ct_FC"; then
19699  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
19700else
19701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19702for as_dir in $PATH
19703do
19704  IFS=$as_save_IFS
19705  test -z "$as_dir" && as_dir=.
19706    for ac_exec_ext in '' $ac_executable_extensions; do
19707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19708    ac_cv_prog_ac_ct_FC="$ac_prog"
19709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19710    break 2
19711  fi
19712done
19713  done
19714IFS=$as_save_IFS
19715
19716fi
19717fi
19718ac_ct_FC=$ac_cv_prog_ac_ct_FC
19719if test -n "$ac_ct_FC"; then
19720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
19721$as_echo "$ac_ct_FC" >&6; }
19722else
19723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19724$as_echo "no" >&6; }
19725fi
19726
19727
19728  test -n "$ac_ct_FC" && break
19729done
19730
19731  if test "x$ac_ct_FC" = x; then
19732    FC=""
19733  else
19734    case $cross_compiling:$ac_tool_warned in
19735yes:)
19736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19738ac_tool_warned=yes ;;
19739esac
19740    FC=$ac_ct_FC
19741  fi
19742fi
19743
19744
19745# Provide some information about the compiler.
19746$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
19747set X $ac_compile
19748ac_compiler=$2
19749for ac_option in --version -v -V -qversion; do
19750  { { ac_try="$ac_compiler $ac_option >&5"
19751case "(($ac_try" in
19752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753  *) ac_try_echo=$ac_try;;
19754esac
19755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19756$as_echo "$ac_try_echo"; } >&5
19757  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19758  ac_status=$?
19759  if test -s conftest.err; then
19760    sed '10a\
19761... rest of stderr output deleted ...
19762         10q' conftest.err >conftest.er1
19763    cat conftest.er1 >&5
19764  fi
19765  rm -f conftest.er1 conftest.err
19766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19767  test $ac_status = 0; }
19768done
19769rm -f a.out
19770
19771# If we don't use `.F' as extension, the preprocessor is not run on the
19772# input file.  (Note that this only needs to work for GNU compilers.)
19773ac_save_ext=$ac_ext
19774ac_ext=F
19775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
19776$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
19777if ${ac_cv_fc_compiler_gnu+:} false; then :
19778  $as_echo_n "(cached) " >&6
19779else
19780  cat > conftest.$ac_ext <<_ACEOF
19781      program main
19782#ifndef __GNUC__
19783       choke me
19784#endif
19785
19786      end
19787_ACEOF
19788if ac_fn_fc_try_compile "$LINENO"; then :
19789  ac_compiler_gnu=yes
19790else
19791  ac_compiler_gnu=no
19792fi
19793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19794ac_cv_fc_compiler_gnu=$ac_compiler_gnu
19795
19796fi
19797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
19798$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
19799ac_ext=$ac_save_ext
19800ac_test_FCFLAGS=${FCFLAGS+set}
19801ac_save_FCFLAGS=$FCFLAGS
19802FCFLAGS=
19803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
19804$as_echo_n "checking whether $FC accepts -g... " >&6; }
19805if ${ac_cv_prog_fc_g+:} false; then :
19806  $as_echo_n "(cached) " >&6
19807else
19808  FCFLAGS=-g
19809cat > conftest.$ac_ext <<_ACEOF
19810      program main
19811
19812      end
19813_ACEOF
19814if ac_fn_fc_try_compile "$LINENO"; then :
19815  ac_cv_prog_fc_g=yes
19816else
19817  ac_cv_prog_fc_g=no
19818fi
19819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19820
19821fi
19822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
19823$as_echo "$ac_cv_prog_fc_g" >&6; }
19824if test "$ac_test_FCFLAGS" = set; then
19825  FCFLAGS=$ac_save_FCFLAGS
19826elif test $ac_cv_prog_fc_g = yes; then
19827  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
19828    FCFLAGS="-g -O2"
19829  else
19830    FCFLAGS="-g"
19831  fi
19832else
19833  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
19834    FCFLAGS="-O2"
19835  else
19836    FCFLAGS=
19837  fi
19838fi
19839
19840if test $ac_compiler_gnu = yes; then
19841  GFC=yes
19842else
19843  GFC=
19844fi
19845ac_ext=c
19846ac_cpp='$CPP $CPPFLAGS'
19847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19849ac_compiler_gnu=$ac_cv_c_compiler_gnu
19850
19851      ac_ext=${ac_fc_srcext-f}
19852ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
19853ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
19854ac_compiler_gnu=$ac_cv_fc_compiler_gnu
19855
19856
19857if test -z "$FC" || test no = "$FC"; then
19858  _lt_disable_FC=yes
19859fi
19860
19861archive_cmds_need_lc_FC=no
19862allow_undefined_flag_FC=
19863always_export_symbols_FC=no
19864archive_expsym_cmds_FC=
19865export_dynamic_flag_spec_FC=
19866hardcode_direct_FC=no
19867hardcode_direct_absolute_FC=no
19868hardcode_libdir_flag_spec_FC=
19869hardcode_libdir_separator_FC=
19870hardcode_minus_L_FC=no
19871hardcode_automatic_FC=no
19872inherit_rpath_FC=no
19873module_cmds_FC=
19874module_expsym_cmds_FC=
19875link_all_deplibs_FC=unknown
19876old_archive_cmds_FC=$old_archive_cmds
19877reload_flag_FC=$reload_flag
19878reload_cmds_FC=$reload_cmds
19879no_undefined_flag_FC=
19880whole_archive_flag_spec_FC=
19881enable_shared_with_static_runtimes_FC=no
19882
19883# Source file extension for fc test sources.
19884ac_ext=${ac_fc_srcext-f}
19885
19886# Object file extension for compiled fc test sources.
19887objext=o
19888objext_FC=$objext
19889
19890# No sense in running all these tests if we already determined that
19891# the FC compiler isn't working.  Some variables (like enable_shared)
19892# are currently assumed to apply to all compilers on this platform,
19893# and will be corrupted by setting them based on a non-working compiler.
19894if test yes != "$_lt_disable_FC"; then
19895  # Code to be used in simple compile tests
19896  lt_simple_compile_test_code="\
19897      subroutine t
19898      return
19899      end
19900"
19901
19902  # Code to be used in simple link tests
19903  lt_simple_link_test_code="\
19904      program t
19905      end
19906"
19907
19908  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19909
19910
19911
19912
19913
19914
19915# If no C compiler was specified, use CC.
19916LTCC=${LTCC-"$CC"}
19917
19918# If no C compiler flags were specified, use CFLAGS.
19919LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19920
19921# Allow CC to be a program name with arguments.
19922compiler=$CC
19923
19924
19925  # save warnings/boilerplate of simple test code
19926  ac_outfile=conftest.$ac_objext
19927echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19928eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19929_lt_compiler_boilerplate=`cat conftest.err`
19930$RM conftest*
19931
19932  ac_outfile=conftest.$ac_objext
19933echo "$lt_simple_link_test_code" >conftest.$ac_ext
19934eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19935_lt_linker_boilerplate=`cat conftest.err`
19936$RM -r conftest*
19937
19938
19939  # Allow CC to be a program name with arguments.
19940  lt_save_CC=$CC
19941  lt_save_GCC=$GCC
19942  lt_save_CFLAGS=$CFLAGS
19943  CC=${FC-"f95"}
19944  CFLAGS=$FCFLAGS
19945  compiler=$CC
19946  GCC=$ac_cv_fc_compiler_gnu
19947
19948  compiler_FC=$CC
19949  func_cc_basename $compiler
19950cc_basename=$func_cc_basename_result
19951
19952
19953  if test -n "$compiler"; then
19954    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19955$as_echo_n "checking if libtool supports shared libraries... " >&6; }
19956    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19957$as_echo "$can_build_shared" >&6; }
19958
19959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19960$as_echo_n "checking whether to build shared libraries... " >&6; }
19961    test no = "$can_build_shared" && enable_shared=no
19962
19963    # On AIX, shared libraries and static libraries use the same namespace, and
19964    # are all built from PIC.
19965    case $host_os in
19966      aix3*)
19967        test yes = "$enable_shared" && enable_static=no
19968        if test -n "$RANLIB"; then
19969          archive_cmds="$archive_cmds~\$RANLIB \$lib"
19970          postinstall_cmds='$RANLIB $lib'
19971        fi
19972        ;;
19973      aix[4-9]*)
19974	if test ia64 != "$host_cpu"; then
19975	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19976	  yes,aix,yes) ;;		# shared object as lib.so file only
19977	  yes,svr4,*) ;;		# shared object as lib.so archive member only
19978	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19979	  esac
19980	fi
19981        ;;
19982    esac
19983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19984$as_echo "$enable_shared" >&6; }
19985
19986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19987$as_echo_n "checking whether to build static libraries... " >&6; }
19988    # Make sure either enable_shared or enable_static is yes.
19989    test yes = "$enable_shared" || enable_static=yes
19990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19991$as_echo "$enable_static" >&6; }
19992
19993    GCC_FC=$ac_cv_fc_compiler_gnu
19994    LD_FC=$LD
19995
19996    ## CAVEAT EMPTOR:
19997    ## There is no encapsulation within the following macros, do not change
19998    ## the running order or otherwise move them around unless you know exactly
19999    ## what you are doing...
20000    # Dependencies to place before and after the object being linked:
20001predep_objects_FC=
20002postdep_objects_FC=
20003predeps_FC=
20004postdeps_FC=
20005compiler_lib_search_path_FC=
20006
20007cat > conftest.$ac_ext <<_LT_EOF
20008      subroutine foo
20009      implicit none
20010      integer a
20011      a=0
20012      return
20013      end
20014_LT_EOF
20015
20016
20017_lt_libdeps_save_CFLAGS=$CFLAGS
20018case "$CC $CFLAGS " in #(
20019*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20020*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20021*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20022esac
20023
20024if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20025  (eval $ac_compile) 2>&5
20026  ac_status=$?
20027  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20028  test $ac_status = 0; }; then
20029  # Parse the compiler output and extract the necessary
20030  # objects, libraries and library flags.
20031
20032  # Sentinel used to keep track of whether or not we are before
20033  # the conftest object file.
20034  pre_test_object_deps_done=no
20035
20036  for p in `eval "$output_verbose_link_cmd"`; do
20037    case $prev$p in
20038
20039    -L* | -R* | -l*)
20040       # Some compilers place space between "-{L,R}" and the path.
20041       # Remove the space.
20042       if test x-L = "$p" ||
20043          test x-R = "$p"; then
20044	 prev=$p
20045	 continue
20046       fi
20047
20048       # Expand the sysroot to ease extracting the directories later.
20049       if test -z "$prev"; then
20050         case $p in
20051         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20052         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20053         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20054         esac
20055       fi
20056       case $p in
20057       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20058       esac
20059       if test no = "$pre_test_object_deps_done"; then
20060	 case $prev in
20061	 -L | -R)
20062	   # Internal compiler library paths should come after those
20063	   # provided the user.  The postdeps already come after the
20064	   # user supplied libs so there is no need to process them.
20065	   if test -z "$compiler_lib_search_path_FC"; then
20066	     compiler_lib_search_path_FC=$prev$p
20067	   else
20068	     compiler_lib_search_path_FC="${compiler_lib_search_path_FC} $prev$p"
20069	   fi
20070	   ;;
20071	 # The "-l" case would never come before the object being
20072	 # linked, so don't bother handling this case.
20073	 esac
20074       else
20075	 if test -z "$postdeps_FC"; then
20076	   postdeps_FC=$prev$p
20077	 else
20078	   postdeps_FC="${postdeps_FC} $prev$p"
20079	 fi
20080       fi
20081       prev=
20082       ;;
20083
20084    *.lto.$objext) ;; # Ignore GCC LTO objects
20085    *.$objext)
20086       # This assumes that the test object file only shows up
20087       # once in the compiler output.
20088       if test "$p" = "conftest.$objext"; then
20089	 pre_test_object_deps_done=yes
20090	 continue
20091       fi
20092
20093       if test no = "$pre_test_object_deps_done"; then
20094	 if test -z "$predep_objects_FC"; then
20095	   predep_objects_FC=$p
20096	 else
20097	   predep_objects_FC="$predep_objects_FC $p"
20098	 fi
20099       else
20100	 if test -z "$postdep_objects_FC"; then
20101	   postdep_objects_FC=$p
20102	 else
20103	   postdep_objects_FC="$postdep_objects_FC $p"
20104	 fi
20105       fi
20106       ;;
20107
20108    *) ;; # Ignore the rest.
20109
20110    esac
20111  done
20112
20113  # Clean up.
20114  rm -f a.out a.exe
20115else
20116  echo "libtool.m4: error: problem compiling FC test program"
20117fi
20118
20119$RM -f confest.$objext
20120CFLAGS=$_lt_libdeps_save_CFLAGS
20121
20122# PORTME: override above test on systems where it is broken
20123
20124
20125case " $postdeps_FC " in
20126*" -lc "*) archive_cmds_need_lc_FC=no ;;
20127esac
20128 compiler_lib_search_dirs_FC=
20129if test -n "${compiler_lib_search_path_FC}"; then
20130 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | $SED -e 's! -L! !g' -e 's!^ !!'`
20131fi
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145    lt_prog_compiler_wl_FC=
20146lt_prog_compiler_pic_FC=
20147lt_prog_compiler_static_FC=
20148
20149
20150  if test yes = "$GCC"; then
20151    lt_prog_compiler_wl_FC='-Wl,'
20152    lt_prog_compiler_static_FC='-static'
20153
20154    case $host_os in
20155      aix*)
20156      # All AIX code is PIC.
20157      if test ia64 = "$host_cpu"; then
20158	# AIX 5 now supports IA64 processor
20159	lt_prog_compiler_static_FC='-Bstatic'
20160      fi
20161      lt_prog_compiler_pic_FC='-fPIC'
20162      ;;
20163
20164    amigaos*)
20165      case $host_cpu in
20166      powerpc)
20167            # see comment about AmigaOS4 .so support
20168            lt_prog_compiler_pic_FC='-fPIC'
20169        ;;
20170      m68k)
20171            # FIXME: we need at least 68020 code to build shared libraries, but
20172            # adding the '-m68020' flag to GCC prevents building anything better,
20173            # like '-m68040'.
20174            lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
20175        ;;
20176      esac
20177      ;;
20178
20179    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20180      # PIC is the default for these OSes.
20181      ;;
20182
20183    mingw* | cygwin* | pw32* | os2* | cegcc*)
20184      # This hack is so that the source file can tell whether it is being
20185      # built for inclusion in a dll (and should export symbols for example).
20186      # Although the cygwin gcc ignores -fPIC, still need this for old-style
20187      # (--disable-auto-import) libraries
20188      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
20189      case $host_os in
20190      os2*)
20191	lt_prog_compiler_static_FC='$wl-static'
20192	;;
20193      esac
20194      ;;
20195
20196    darwin* | rhapsody*)
20197      # PIC is the default on this platform
20198      # Common symbols not allowed in MH_DYLIB files
20199      lt_prog_compiler_pic_FC='-fno-common'
20200      ;;
20201
20202    haiku*)
20203      # PIC is the default for Haiku.
20204      # The "-static" flag exists, but is broken.
20205      lt_prog_compiler_static_FC=
20206      ;;
20207
20208    hpux*)
20209      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20210      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20211      # sets the default TLS model and affects inlining.
20212      case $host_cpu in
20213      hppa*64*)
20214	# +Z the default
20215	;;
20216      *)
20217	lt_prog_compiler_pic_FC='-fPIC'
20218	;;
20219      esac
20220      ;;
20221
20222    interix[3-9]*)
20223      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20224      # Instead, we relocate shared libraries at runtime.
20225      ;;
20226
20227    msdosdjgpp*)
20228      # Just because we use GCC doesn't mean we suddenly get shared libraries
20229      # on systems that don't support them.
20230      lt_prog_compiler_can_build_shared_FC=no
20231      enable_shared=no
20232      ;;
20233
20234    *nto* | *qnx*)
20235      # QNX uses GNU C++, but need to define -shared option too, otherwise
20236      # it will coredump.
20237      lt_prog_compiler_pic_FC='-fPIC -shared'
20238      ;;
20239
20240    sysv4*MP*)
20241      if test -d /usr/nec; then
20242	lt_prog_compiler_pic_FC=-Kconform_pic
20243      fi
20244      ;;
20245
20246    *)
20247      lt_prog_compiler_pic_FC='-fPIC'
20248      ;;
20249    esac
20250
20251    case $cc_basename in
20252    nvcc*) # Cuda Compiler Driver 2.2
20253      lt_prog_compiler_wl_FC='-Xlinker '
20254      if test -n "$lt_prog_compiler_pic_FC"; then
20255        lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC"
20256      fi
20257      ;;
20258    esac
20259  else
20260    # PORTME Check for flag to pass linker flags through the system compiler.
20261    case $host_os in
20262    aix*)
20263      lt_prog_compiler_wl_FC='-Wl,'
20264      if test ia64 = "$host_cpu"; then
20265	# AIX 5 now supports IA64 processor
20266	lt_prog_compiler_static_FC='-Bstatic'
20267      else
20268	lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
20269      fi
20270      ;;
20271
20272    darwin* | rhapsody*)
20273      # PIC is the default on this platform
20274      # Common symbols not allowed in MH_DYLIB files
20275      lt_prog_compiler_pic_FC='-fno-common'
20276      case $cc_basename in
20277      nagfor*)
20278        # NAG Fortran compiler
20279        lt_prog_compiler_wl_FC='-Wl,-Wl,,'
20280        lt_prog_compiler_pic_FC='-PIC'
20281        lt_prog_compiler_static_FC='-Bstatic'
20282        ;;
20283      esac
20284      ;;
20285
20286    mingw* | cygwin* | pw32* | os2* | cegcc*)
20287      # This hack is so that the source file can tell whether it is being
20288      # built for inclusion in a dll (and should export symbols for example).
20289      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
20290      case $host_os in
20291      os2*)
20292	lt_prog_compiler_static_FC='$wl-static'
20293	;;
20294      esac
20295      ;;
20296
20297    hpux9* | hpux10* | hpux11*)
20298      lt_prog_compiler_wl_FC='-Wl,'
20299      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20300      # not for PA HP-UX.
20301      case $host_cpu in
20302      hppa*64*|ia64*)
20303	# +Z the default
20304	;;
20305      *)
20306	lt_prog_compiler_pic_FC='+Z'
20307	;;
20308      esac
20309      # Is there a better lt_prog_compiler_static that works with the bundled CC?
20310      lt_prog_compiler_static_FC='$wl-a ${wl}archive'
20311      ;;
20312
20313    irix5* | irix6* | nonstopux*)
20314      lt_prog_compiler_wl_FC='-Wl,'
20315      # PIC (with -KPIC) is the default.
20316      lt_prog_compiler_static_FC='-non_shared'
20317      ;;
20318
20319    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20320      case $cc_basename in
20321      # old Intel for x86_64, which still supported -KPIC.
20322      ecc*)
20323	lt_prog_compiler_wl_FC='-Wl,'
20324	lt_prog_compiler_pic_FC='-KPIC'
20325	lt_prog_compiler_static_FC='-static'
20326        ;;
20327      # flang / f18
20328      flang* | f18*)
20329       lt_prog_compiler_wl_FC='-Wl,'
20330       lt_prog_compiler_pic_FC='-fPIC'
20331       lt_prog_compiler_static_FC='-static'
20332        ;;
20333      # icc used to be incompatible with GCC.
20334      # ICC 10 doesn't accept -KPIC any more.
20335      icc* | ifort*)
20336	lt_prog_compiler_wl_FC='-Wl,'
20337	lt_prog_compiler_pic_FC='-fPIC'
20338	lt_prog_compiler_static_FC='-static'
20339        ;;
20340      # Lahey Fortran 8.1.
20341      lf95*)
20342	lt_prog_compiler_wl_FC='-Wl,'
20343	lt_prog_compiler_pic_FC='--shared'
20344	lt_prog_compiler_static_FC='--static'
20345	;;
20346      nagfor*)
20347	# NAG Fortran compiler
20348	lt_prog_compiler_wl_FC='-Wl,-Wl,,'
20349	lt_prog_compiler_pic_FC='-PIC'
20350	lt_prog_compiler_static_FC='-Bstatic'
20351	;;
20352      tcc*)
20353	# Fabrice Bellard et al's Tiny C Compiler
20354	lt_prog_compiler_wl_FC='-Wl,'
20355	lt_prog_compiler_pic_FC='-fPIC'
20356	lt_prog_compiler_static_FC='-static'
20357	;;
20358      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
20359        # Portland Group compilers (*not* the Pentium gcc compiler,
20360	# which looks to be a dead project)
20361	lt_prog_compiler_wl_FC='-Wl,'
20362	lt_prog_compiler_pic_FC='-fpic'
20363	lt_prog_compiler_static_FC='-Bstatic'
20364        ;;
20365      ccc*)
20366        lt_prog_compiler_wl_FC='-Wl,'
20367        # All Alpha code is PIC.
20368        lt_prog_compiler_static_FC='-non_shared'
20369        ;;
20370      xl* | bgxl* | bgf* | mpixl*)
20371	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
20372	lt_prog_compiler_wl_FC='-Wl,'
20373	lt_prog_compiler_pic_FC='-qpic'
20374	lt_prog_compiler_static_FC='-qstaticlink'
20375	;;
20376      armclang* | armclang++* | armflang*)
20377        # ARM LLVM C/C++/Fortran
20378        lt_prog_compiler_wl_FC='-Wl,'
20379        ;;
20380      *)
20381	case `$CC -V 2>&1 | sed 5q` in
20382	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
20383	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
20384	  lt_prog_compiler_pic_FC='-KPIC'
20385	  lt_prog_compiler_static_FC='-Bstatic'
20386	  lt_prog_compiler_wl_FC=''
20387	  ;;
20388	*Sun\ F* | *Sun*Fortran* | *Studio*Fortran*)
20389	  lt_prog_compiler_pic_FC='-KPIC'
20390	  lt_prog_compiler_static_FC='-Bstatic'
20391	  lt_prog_compiler_wl_FC='-Qoption ld '
20392	  ;;
20393	*Sun\ C*)
20394	  # Sun C 5.9
20395	  lt_prog_compiler_pic_FC='-KPIC'
20396	  lt_prog_compiler_static_FC='-Bstatic'
20397	  lt_prog_compiler_wl_FC='-Wl,'
20398	  ;;
20399        *Intel*\ [CF]*Compiler*)
20400	  lt_prog_compiler_wl_FC='-Wl,'
20401	  lt_prog_compiler_pic_FC='-fPIC'
20402	  lt_prog_compiler_static_FC='-static'
20403	  ;;
20404	*Portland\ Group*)
20405	  lt_prog_compiler_wl_FC='-Wl,'
20406	  lt_prog_compiler_pic_FC='-fpic'
20407	  lt_prog_compiler_static_FC='-Bstatic'
20408	  ;;
20409	esac
20410	;;
20411      esac
20412      ;;
20413
20414    newsos6)
20415      lt_prog_compiler_pic_FC='-KPIC'
20416      lt_prog_compiler_static_FC='-Bstatic'
20417      ;;
20418
20419    *nto* | *qnx*)
20420      # QNX uses GNU C++, but need to define -shared option too, otherwise
20421      # it will coredump.
20422      lt_prog_compiler_pic_FC='-fPIC -shared'
20423      ;;
20424
20425    osf3* | osf4* | osf5*)
20426      lt_prog_compiler_wl_FC='-Wl,'
20427      # All OSF/1 code is PIC.
20428      lt_prog_compiler_static_FC='-non_shared'
20429      ;;
20430
20431    rdos*)
20432      lt_prog_compiler_static_FC='-non_shared'
20433      ;;
20434
20435    solaris*)
20436      lt_prog_compiler_pic_FC='-KPIC'
20437      lt_prog_compiler_static_FC='-Bstatic'
20438      case $cc_basename in
20439      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
20440	lt_prog_compiler_wl_FC='-Qoption ld ';;
20441      *)
20442	lt_prog_compiler_wl_FC='-Wl,';;
20443      esac
20444      ;;
20445
20446    sunos4*)
20447      lt_prog_compiler_wl_FC='-Qoption ld '
20448      lt_prog_compiler_pic_FC='-PIC'
20449      lt_prog_compiler_static_FC='-Bstatic'
20450      ;;
20451
20452    sysv4 | sysv4.2uw2* | sysv4.3*)
20453      lt_prog_compiler_wl_FC='-Wl,'
20454      lt_prog_compiler_pic_FC='-KPIC'
20455      lt_prog_compiler_static_FC='-Bstatic'
20456      ;;
20457
20458    sysv4*MP*)
20459      if test -d /usr/nec; then
20460	lt_prog_compiler_pic_FC='-Kconform_pic'
20461	lt_prog_compiler_static_FC='-Bstatic'
20462      fi
20463      ;;
20464
20465    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20466      lt_prog_compiler_wl_FC='-Wl,'
20467      lt_prog_compiler_pic_FC='-KPIC'
20468      lt_prog_compiler_static_FC='-Bstatic'
20469      ;;
20470
20471    unicos*)
20472      lt_prog_compiler_wl_FC='-Wl,'
20473      lt_prog_compiler_can_build_shared_FC=no
20474      ;;
20475
20476    uts4*)
20477      lt_prog_compiler_pic_FC='-pic'
20478      lt_prog_compiler_static_FC='-Bstatic'
20479      ;;
20480
20481    *)
20482      lt_prog_compiler_can_build_shared_FC=no
20483      ;;
20484    esac
20485  fi
20486
20487case $host_os in
20488  # For platforms that do not support PIC, -DPIC is meaningless:
20489  *djgpp*)
20490    lt_prog_compiler_pic_FC=
20491    ;;
20492  *)
20493    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
20494    ;;
20495esac
20496
20497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20498$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20499if ${lt_cv_prog_compiler_pic_FC+:} false; then :
20500  $as_echo_n "(cached) " >&6
20501else
20502  lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC
20503fi
20504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5
20505$as_echo "$lt_cv_prog_compiler_pic_FC" >&6; }
20506lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC
20507
20508#
20509# Check to make sure the PIC flag actually works.
20510#
20511if test -n "$lt_prog_compiler_pic_FC"; then
20512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
20513$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
20514if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
20515  $as_echo_n "(cached) " >&6
20516else
20517  lt_cv_prog_compiler_pic_works_FC=no
20518   ac_outfile=conftest.$ac_objext
20519   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20520   lt_compiler_flag="$lt_prog_compiler_pic_FC"  ## exclude from sc_useless_quotes_in_assignment
20521   # Insert the option either (1) after the last *FLAGS variable, or
20522   # (2) before a word containing "conftest.", or (3) at the end.
20523   # Note that $ac_compile itself does not contain backslashes and begins
20524   # with a dollar sign (not a hyphen), so the echo should work correctly.
20525   # The option is referenced via a variable to avoid confusing sed.
20526   lt_compile=`echo "$ac_compile" | $SED \
20527   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20528   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20529   -e 's:$: $lt_compiler_flag:'`
20530   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20531   (eval "$lt_compile" 2>conftest.err)
20532   ac_status=$?
20533   cat conftest.err >&5
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   if (exit $ac_status) && test -s "$ac_outfile"; then
20536     # The compiler can only warn and ignore the option if not recognized
20537     # So say no if there are warnings other than the usual output.
20538     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20539     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20540     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20541       lt_cv_prog_compiler_pic_works_FC=yes
20542     fi
20543   fi
20544   $RM conftest*
20545
20546fi
20547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
20548$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
20549
20550if test yes = "$lt_cv_prog_compiler_pic_works_FC"; then
20551    case $lt_prog_compiler_pic_FC in
20552     "" | " "*) ;;
20553     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
20554     esac
20555else
20556    lt_prog_compiler_pic_FC=
20557     lt_prog_compiler_can_build_shared_FC=no
20558fi
20559
20560fi
20561
20562
20563
20564
20565
20566#
20567# Check to make sure the static flag actually works.
20568#
20569wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
20570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20571$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20572if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
20573  $as_echo_n "(cached) " >&6
20574else
20575  lt_cv_prog_compiler_static_works_FC=no
20576   save_LDFLAGS=$LDFLAGS
20577   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20578   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20579   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20580     # The linker can only warn and ignore the option if not recognized
20581     # So say no if there are warnings
20582     if test -s conftest.err; then
20583       # Append any errors to the config.log.
20584       cat conftest.err 1>&5
20585       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20586       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20587       if diff conftest.exp conftest.er2 >/dev/null; then
20588         lt_cv_prog_compiler_static_works_FC=yes
20589       fi
20590     else
20591       lt_cv_prog_compiler_static_works_FC=yes
20592     fi
20593   fi
20594   $RM -r conftest*
20595   LDFLAGS=$save_LDFLAGS
20596
20597fi
20598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
20599$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
20600
20601if test yes = "$lt_cv_prog_compiler_static_works_FC"; then
20602    :
20603else
20604    lt_prog_compiler_static_FC=
20605fi
20606
20607
20608
20609
20610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20611$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20612if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
20613  $as_echo_n "(cached) " >&6
20614else
20615  lt_cv_prog_compiler_c_o_FC=no
20616   $RM -r conftest 2>/dev/null
20617   mkdir conftest
20618   cd conftest
20619   mkdir out
20620   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20621
20622   lt_compiler_flag="-o out/conftest2.$ac_objext"
20623   # Insert the option either (1) after the last *FLAGS variable, or
20624   # (2) before a word containing "conftest.", or (3) at the end.
20625   # Note that $ac_compile itself does not contain backslashes and begins
20626   # with a dollar sign (not a hyphen), so the echo should work correctly.
20627   lt_compile=`echo "$ac_compile" | $SED \
20628   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20629   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20630   -e 's:$: $lt_compiler_flag:'`
20631   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20632   (eval "$lt_compile" 2>out/conftest.err)
20633   ac_status=$?
20634   cat out/conftest.err >&5
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20637   then
20638     # The compiler can only warn and ignore the option if not recognized
20639     # So say no if there are warnings
20640     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20641     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20642     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20643       lt_cv_prog_compiler_c_o_FC=yes
20644     fi
20645   fi
20646   chmod u+w . 2>&5
20647   $RM conftest*
20648   # SGI C++ compiler will create directory out/ii_files/ for
20649   # template instantiation
20650   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20651   $RM out/* && rmdir out
20652   cd ..
20653   $RM -r conftest
20654   $RM conftest*
20655
20656fi
20657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
20658$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
20659
20660
20661
20662    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20663$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20664if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
20665  $as_echo_n "(cached) " >&6
20666else
20667  lt_cv_prog_compiler_c_o_FC=no
20668   $RM -r conftest 2>/dev/null
20669   mkdir conftest
20670   cd conftest
20671   mkdir out
20672   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20673
20674   lt_compiler_flag="-o out/conftest2.$ac_objext"
20675   # Insert the option either (1) after the last *FLAGS variable, or
20676   # (2) before a word containing "conftest.", or (3) at the end.
20677   # Note that $ac_compile itself does not contain backslashes and begins
20678   # with a dollar sign (not a hyphen), so the echo should work correctly.
20679   lt_compile=`echo "$ac_compile" | $SED \
20680   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20681   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20682   -e 's:$: $lt_compiler_flag:'`
20683   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20684   (eval "$lt_compile" 2>out/conftest.err)
20685   ac_status=$?
20686   cat out/conftest.err >&5
20687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20689   then
20690     # The compiler can only warn and ignore the option if not recognized
20691     # So say no if there are warnings
20692     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20693     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20694     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20695       lt_cv_prog_compiler_c_o_FC=yes
20696     fi
20697   fi
20698   chmod u+w . 2>&5
20699   $RM conftest*
20700   # SGI C++ compiler will create directory out/ii_files/ for
20701   # template instantiation
20702   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20703   $RM out/* && rmdir out
20704   cd ..
20705   $RM -r conftest
20706   $RM conftest*
20707
20708fi
20709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
20710$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
20711
20712
20713
20714
20715hard_links=nottested
20716if test no = "$lt_cv_prog_compiler_c_o_FC" && test no != "$need_locks"; then
20717  # do not overwrite the value of need_locks provided by the user
20718  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20719$as_echo_n "checking if we can lock with hard links... " >&6; }
20720  hard_links=yes
20721  $RM conftest*
20722  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20723  touch conftest.a
20724  ln conftest.a conftest.b 2>&5 || hard_links=no
20725  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20727$as_echo "$hard_links" >&6; }
20728  if test no = "$hard_links"; then
20729    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
20730$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
20731    need_locks=warn
20732  fi
20733else
20734  need_locks=no
20735fi
20736
20737
20738
20739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20740$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20741
20742  runpath_var=
20743  allow_undefined_flag_FC=
20744  always_export_symbols_FC=no
20745  archive_cmds_FC=
20746  archive_expsym_cmds_FC=
20747  compiler_needs_object_FC=no
20748  enable_shared_with_static_runtimes_FC=no
20749  export_dynamic_flag_spec_FC=
20750  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20751  hardcode_automatic_FC=no
20752  hardcode_direct_FC=no
20753  hardcode_direct_absolute_FC=no
20754  hardcode_libdir_flag_spec_FC=
20755  hardcode_libdir_separator_FC=
20756  hardcode_minus_L_FC=no
20757  hardcode_shlibpath_var_FC=unsupported
20758  inherit_rpath_FC=no
20759  link_all_deplibs_FC=unknown
20760  module_cmds_FC=
20761  module_expsym_cmds_FC=
20762  old_archive_from_new_cmds_FC=
20763  old_archive_from_expsyms_cmds_FC=
20764  thread_safe_flag_spec_FC=
20765  whole_archive_flag_spec_FC=
20766  # include_expsyms should be a list of space-separated symbols to be *always*
20767  # included in the symbol list
20768  include_expsyms_FC=
20769  # exclude_expsyms can be an extended regexp of symbols to exclude
20770  # it will be wrapped by ' (' and ')$', so one must not match beginning or
20771  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
20772  # as well as any symbol that contains 'd'.
20773  exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20774  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20775  # platforms (ab)use it in PIC code, but their linkers get confused if
20776  # the symbol is explicitly referenced.  Since portable code cannot
20777  # rely on this symbol name, it's probably fine to never include it in
20778  # preloaded symbol tables.
20779  # Exclude shared library initialization/finalization symbols.
20780  extract_expsyms_cmds=
20781
20782  case $host_os in
20783  cygwin* | mingw* | pw32* | cegcc*)
20784    # FIXME: the MSVC++ port hasn't been tested in a loooong time
20785    # When not using gcc, we currently assume that we are using
20786    # Microsoft Visual C++.
20787    if test yes != "$GCC"; then
20788      with_gnu_ld=no
20789    fi
20790    ;;
20791  interix*)
20792    # we just hope/assume this is gcc and not c89 (= MSVC++)
20793    with_gnu_ld=yes
20794    ;;
20795  openbsd* | bitrig*)
20796    with_gnu_ld=no
20797    ;;
20798  esac
20799
20800  ld_shlibs_FC=yes
20801
20802  # On some targets, GNU ld is compatible enough with the native linker
20803  # that we're better off using the native interface for both.
20804  lt_use_gnu_ld_interface=no
20805  if test yes = "$with_gnu_ld"; then
20806    case $host_os in
20807      aix*)
20808	# The AIX port of GNU ld has always aspired to compatibility
20809	# with the native linker.  However, as the warning in the GNU ld
20810	# block says, versions before 2.19.5* couldn't really create working
20811	# shared libraries, regardless of the interface used.
20812	case `$LD -v 2>&1` in
20813	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
20814	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
20815	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
20816	  *)
20817	    lt_use_gnu_ld_interface=yes
20818	    ;;
20819	esac
20820	;;
20821      *)
20822	lt_use_gnu_ld_interface=yes
20823	;;
20824    esac
20825  fi
20826
20827  if test yes = "$lt_use_gnu_ld_interface"; then
20828    # If archive_cmds runs LD, not CC, wlarc should be empty
20829    wlarc='$wl'
20830
20831    # Set some defaults for GNU ld with shared library support. These
20832    # are reset later if shared libraries are not supported. Putting them
20833    # here allows them to be overridden if necessary.
20834    runpath_var=LD_RUN_PATH
20835    hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
20836    export_dynamic_flag_spec_FC='$wl--export-dynamic'
20837    # ancient GNU ld didn't support --whole-archive et. al.
20838    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
20839      whole_archive_flag_spec_FC=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
20840    else
20841      whole_archive_flag_spec_FC=
20842    fi
20843    supports_anon_versioning=no
20844    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
20845      *GNU\ gold*) supports_anon_versioning=yes ;;
20846      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20847      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20848      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20849      *\ 2.11.*) ;; # other 2.11 versions
20850      *) supports_anon_versioning=yes ;;
20851    esac
20852
20853    # See if GNU ld supports shared libraries.
20854    case $host_os in
20855    aix[3-9]*)
20856      # On AIX/PPC, the GNU linker is very broken
20857      if test ia64 != "$host_cpu"; then
20858	ld_shlibs_FC=no
20859	cat <<_LT_EOF 1>&2
20860
20861*** Warning: the GNU linker, at least up to release 2.19, is reported
20862*** to be unable to reliably create shared libraries on AIX.
20863*** Therefore, libtool is disabling shared libraries support.  If you
20864*** really care for shared libraries, you may want to install binutils
20865*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
20866*** You will then need to restart the configuration process.
20867
20868_LT_EOF
20869      fi
20870      ;;
20871
20872    amigaos*)
20873      case $host_cpu in
20874      powerpc)
20875            # see comment about AmigaOS4 .so support
20876            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20877            archive_expsym_cmds_FC=''
20878        ;;
20879      m68k)
20880            archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
20881            hardcode_libdir_flag_spec_FC='-L$libdir'
20882            hardcode_minus_L_FC=yes
20883        ;;
20884      esac
20885      ;;
20886
20887    beos*)
20888      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20889	allow_undefined_flag_FC=unsupported
20890	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20891	# support --undefined.  This deserves some investigation.  FIXME
20892	archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20893      else
20894	ld_shlibs_FC=no
20895      fi
20896      ;;
20897
20898    cygwin* | mingw* | pw32* | cegcc*)
20899      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
20900      # as there is no search path for DLLs.
20901      hardcode_libdir_flag_spec_FC='-L$libdir'
20902      export_dynamic_flag_spec_FC='$wl--export-all-symbols'
20903      allow_undefined_flag_FC=unsupported
20904      always_export_symbols_FC=no
20905      enable_shared_with_static_runtimes_FC=yes
20906      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20907      exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20908
20909      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20910        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20911	# If the export-symbols file already is a .def file, use it as
20912	# is; otherwise, prepend EXPORTS...
20913	archive_expsym_cmds_FC='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
20914          cp $export_symbols $output_objdir/$soname.def;
20915        else
20916          echo EXPORTS > $output_objdir/$soname.def;
20917          cat $export_symbols >> $output_objdir/$soname.def;
20918        fi~
20919        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20920      else
20921	ld_shlibs_FC=no
20922      fi
20923      ;;
20924
20925    haiku*)
20926      archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20927      link_all_deplibs_FC=yes
20928      ;;
20929
20930    os2*)
20931      hardcode_libdir_flag_spec_FC='-L$libdir'
20932      hardcode_minus_L_FC=yes
20933      allow_undefined_flag_FC=unsupported
20934      shrext_cmds=.dll
20935      archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20936	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20937	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20938	$ECHO EXPORTS >> $output_objdir/$libname.def~
20939	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20940	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20941	emximp -o $lib $output_objdir/$libname.def'
20942      archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20943	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20944	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20945	$ECHO EXPORTS >> $output_objdir/$libname.def~
20946	prefix_cmds="$SED"~
20947	if test EXPORTS = "`$SED 1q $export_symbols`"; then
20948	  prefix_cmds="$prefix_cmds -e 1d";
20949	fi~
20950	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20951	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20952	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20953	emximp -o $lib $output_objdir/$libname.def'
20954      old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20955      enable_shared_with_static_runtimes_FC=yes
20956      ;;
20957
20958    interix[3-9]*)
20959      hardcode_direct_FC=no
20960      hardcode_shlibpath_var_FC=no
20961      hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
20962      export_dynamic_flag_spec_FC='$wl-E'
20963      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20964      # Instead, shared libraries are loaded at an image base (0x10000000 by
20965      # default) and relocated if they conflict, which is a slow very memory
20966      # consuming and fragmenting process.  To avoid this, we pick a random,
20967      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20968      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20969      archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20970      archive_expsym_cmds_FC='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20971      ;;
20972
20973    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
20974      tmp_diet=no
20975      if test linux-dietlibc = "$host_os"; then
20976	case $cc_basename in
20977	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
20978	esac
20979      fi
20980      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
20981	 && test no = "$tmp_diet"
20982      then
20983	tmp_addflag=' $pic_flag'
20984	tmp_sharedflag='-shared'
20985	case $cc_basename,$host_cpu in
20986        pgcc*)				# Portland Group C compiler
20987	  whole_archive_flag_spec_FC='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
20988	  tmp_addflag=' $pic_flag'
20989	  ;;
20990	pgf77* | pgf90* | pgf95* | pgfortran*)
20991					# Portland Group f77 and f90 compilers
20992	  whole_archive_flag_spec_FC='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
20993	  tmp_addflag=' $pic_flag -Mnomain' ;;
20994	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
20995	  tmp_addflag=' -i_dynamic' ;;
20996	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
20997	  tmp_addflag=' -i_dynamic -nofor_main' ;;
20998	ifc* | ifort*)			# Intel Fortran compiler
20999	  tmp_addflag=' -nofor_main' ;;
21000	lf95*)				# Lahey Fortran 8.1
21001	  whole_archive_flag_spec_FC=
21002	  tmp_sharedflag='--shared' ;;
21003        nagfor*)                        # NAGFOR 5.3
21004          tmp_sharedflag='-Wl,-shared' ;;
21005	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
21006	  tmp_sharedflag='-qmkshrobj'
21007	  tmp_addflag= ;;
21008	nvcc*)	# Cuda Compiler Driver 2.2
21009	  whole_archive_flag_spec_FC='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
21010	  compiler_needs_object_FC=yes
21011	  ;;
21012	esac
21013	case `$CC -V 2>&1 | sed 5q` in
21014	*Sun\ C*)			# Sun C 5.9
21015	  whole_archive_flag_spec_FC='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
21016	  compiler_needs_object_FC=yes
21017	  tmp_sharedflag='-G' ;;
21018	*Sun\ F* | *Sun*Fortran* | *Studio*Fortran*)
21019	  tmp_sharedflag='-G' ;;
21020	esac
21021	archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21022
21023        if test yes = "$supports_anon_versioning"; then
21024          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
21025            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21026            echo "local: *; };" >> $output_objdir/$libname.ver~
21027            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
21028        fi
21029
21030	case $cc_basename in
21031	tcc*)
21032	  export_dynamic_flag_spec_FC='-rdynamic'
21033	  ;;
21034	xlf* | bgf* | bgxlf* | mpixlf*)
21035          XLF_VERSION=$($CC -qversion 2>/dev/null | sed 1q | sed -e "s+^.*V++" | sed -e "s+\..*++")
21036          if test $XLF_VERSION -ge 13; then
21037              archive_cmds_FC='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21038              if test yes = "$supports_anon_versioning"; then
21039                archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
21040                  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21041                  echo "local: *; };" >> $output_objdir/$libname.ver~
21042                  $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
21043              fi
21044          else
21045              # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
21046              whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
21047              hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
21048              archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
21049              if test yes = "$supports_anon_versioning"; then
21050                archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
21051                  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21052                  echo "local: *; };" >> $output_objdir/$libname.ver~
21053                  $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
21054              fi
21055          fi
21056	  ;;
21057	esac
21058      else
21059        ld_shlibs_FC=no
21060      fi
21061      ;;
21062
21063    netbsd*)
21064      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21065	archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21066	wlarc=
21067      else
21068	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21069	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21070      fi
21071      ;;
21072
21073    solaris*)
21074      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
21075	ld_shlibs_FC=no
21076	cat <<_LT_EOF 1>&2
21077
21078*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21079*** create shared libraries on Solaris systems.  Therefore, libtool
21080*** is disabling shared libraries support.  We urge you to upgrade GNU
21081*** binutils to release 2.9.1 or newer.  Another option is to modify
21082*** your PATH or compiler configuration so that the native linker is
21083*** used, and then restart.
21084
21085_LT_EOF
21086      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21087	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21088	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21089      else
21090	ld_shlibs_FC=no
21091      fi
21092      ;;
21093
21094    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21095      case `$LD -v 2>&1` in
21096        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21097	ld_shlibs_FC=no
21098	cat <<_LT_EOF 1>&2
21099
21100*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
21101*** reliably create shared libraries on SCO systems.  Therefore, libtool
21102*** is disabling shared libraries support.  We urge you to upgrade GNU
21103*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21104*** your PATH or compiler configuration so that the native linker is
21105*** used, and then restart.
21106
21107_LT_EOF
21108	;;
21109	*)
21110	  # For security reasons, it is highly recommended that you always
21111	  # use absolute paths for naming shared libraries, and exclude the
21112	  # DT_RUNPATH tag from executables and libraries.  But doing so
21113	  # requires that you compile everything twice, which is a pain.
21114	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21115	    hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
21116	    archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21117	    archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21118	  else
21119	    ld_shlibs_FC=no
21120	  fi
21121	;;
21122      esac
21123      ;;
21124
21125    sunos4*)
21126      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21127      wlarc=
21128      hardcode_direct_FC=yes
21129      hardcode_shlibpath_var_FC=no
21130      ;;
21131
21132    *)
21133      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21134	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21135	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21136      else
21137	ld_shlibs_FC=no
21138      fi
21139      ;;
21140    esac
21141
21142    if test no = "$ld_shlibs_FC"; then
21143      runpath_var=
21144      hardcode_libdir_flag_spec_FC=
21145      export_dynamic_flag_spec_FC=
21146      whole_archive_flag_spec_FC=
21147    fi
21148  else
21149    # PORTME fill in a description of your system's linker (not GNU ld)
21150    case $host_os in
21151    aix3*)
21152      allow_undefined_flag_FC=unsupported
21153      always_export_symbols_FC=yes
21154      archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
21155      # Note: this linker hardcodes the directories in LIBPATH if there
21156      # are no directories specified by -L.
21157      hardcode_minus_L_FC=yes
21158      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
21159	# Neither direct hardcoding nor static linking is supported with a
21160	# broken collect2.
21161	hardcode_direct_FC=unsupported
21162      fi
21163      ;;
21164
21165    aix[4-9]*)
21166      if test ia64 = "$host_cpu"; then
21167	# On IA64, the linker does run time linking by default, so we don't
21168	# have to do anything special.
21169	aix_use_runtimelinking=no
21170	exp_sym_flag='-Bexport'
21171	no_entry_flag=
21172      else
21173	# If we're using GNU nm, then we don't want the "-C" option.
21174	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
21175	# Without the "-l" option, or with the "-B" option, AIX nm treats
21176	# weak defined symbols like other global defined symbols, whereas
21177	# GNU nm marks them as "W".
21178	# While the 'weak' keyword is ignored in the Export File, we need
21179	# it in the Import File for the 'aix-soname' feature, so we have
21180	# to replace the "-B" option with "-P" for AIX nm.
21181	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21182	  export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
21183	else
21184	  export_symbols_cmds_FC='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
21185	fi
21186	aix_use_runtimelinking=no
21187
21188	# Test if we are trying to use run time linking or normal
21189	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21190	# have runtime linking enabled, and use it for executables.
21191	# For shared libraries, we enable/disable runtime linking
21192	# depending on the kind of the shared library created -
21193	# when "with_aix_soname,aix_use_runtimelinking" is:
21194	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
21195	# "aix,yes"  lib.so          shared, rtl:yes, for executables
21196	#            lib.a           static archive
21197	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
21198	#            lib.a(lib.so.V) shared, rtl:no,  for executables
21199	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
21200	#            lib.a(lib.so.V) shared, rtl:no
21201	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
21202	#            lib.a           static archive
21203	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21204	  for ld_flag in $LDFLAGS; do
21205	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
21206	    aix_use_runtimelinking=yes
21207	    break
21208	  fi
21209	  done
21210	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
21211	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
21212	    # so we don't have lib.a shared libs to link our executables.
21213	    # We have to force runtime linking in this case.
21214	    aix_use_runtimelinking=yes
21215	    LDFLAGS="$LDFLAGS -Wl,-brtl"
21216	  fi
21217	  ;;
21218	esac
21219
21220	exp_sym_flag='-bexport'
21221	no_entry_flag='-bnoentry'
21222      fi
21223
21224      # When large executables or shared objects are built, AIX ld can
21225      # have problems creating the table of contents.  If linking a library
21226      # or program results in "error TOC overflow" add -mminimal-toc to
21227      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21228      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21229
21230      archive_cmds_FC=''
21231      hardcode_direct_FC=yes
21232      hardcode_direct_absolute_FC=yes
21233      hardcode_libdir_separator_FC=':'
21234      link_all_deplibs_FC=yes
21235      file_list_spec_FC='$wl-f,'
21236      case $with_aix_soname,$aix_use_runtimelinking in
21237      aix,*) ;; # traditional, no import file
21238      svr4,* | *,yes) # use import file
21239	# The Import File defines what to hardcode.
21240	hardcode_direct_FC=no
21241	hardcode_direct_absolute_FC=no
21242	;;
21243      esac
21244
21245      if test yes = "$GCC"; then
21246	case $host_os in aix4.[012]|aix4.[012].*)
21247	# We only want to do this on AIX 4.2 and lower, the check
21248	# below for broken collect2 doesn't work under 4.3+
21249	  collect2name=`$CC -print-prog-name=collect2`
21250	  if test -f "$collect2name" &&
21251	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
21252	  then
21253	  # We have reworked collect2
21254	  :
21255	  else
21256	  # We have old collect2
21257	  hardcode_direct_FC=unsupported
21258	  # It fails to find uninstalled libraries when the uninstalled
21259	  # path is not listed in the libpath.  Setting hardcode_minus_L
21260	  # to unsupported forces relinking
21261	  hardcode_minus_L_FC=yes
21262	  hardcode_libdir_flag_spec_FC='-L$libdir'
21263	  hardcode_libdir_separator_FC=
21264	  fi
21265	  ;;
21266	esac
21267	shared_flag='-shared'
21268	if test yes = "$aix_use_runtimelinking"; then
21269	  shared_flag="$shared_flag "'$wl-G'
21270	fi
21271	# Need to ensure runtime linking is disabled for the traditional
21272	# shared library, or the linker may eventually find shared libraries
21273	# /with/ Import File - we do not want to mix them.
21274	shared_flag_aix='-shared'
21275	shared_flag_svr4='-shared $wl-G'
21276      else
21277	# not using gcc
21278	if test ia64 = "$host_cpu"; then
21279	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21280	# chokes on -Wl,-G. The following line is correct:
21281	  shared_flag='-G'
21282	else
21283	  if test yes = "$aix_use_runtimelinking"; then
21284	    shared_flag='$wl-G'
21285	  else
21286	    shared_flag='$wl-bM:SRE'
21287	  fi
21288	  shared_flag_aix='$wl-bM:SRE'
21289	  shared_flag_svr4='$wl-G'
21290	fi
21291      fi
21292
21293      export_dynamic_flag_spec_FC='$wl-bexpall'
21294      # It seems that -bexpall does not export symbols beginning with
21295      # underscore (_), so it is better to generate a list of symbols to export.
21296      always_export_symbols_FC=yes
21297      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
21298	# Warning - without using the other runtime loading flags (-brtl),
21299	# -berok will link without error, but may produce a broken library.
21300	allow_undefined_flag_FC='-berok'
21301        # Determine the default libpath from the value encoded in an
21302        # empty executable.
21303        if test set = "${lt_cv_aix_libpath+set}"; then
21304  aix_libpath=$lt_cv_aix_libpath
21305else
21306  if ${lt_cv_aix_libpath__FC+:} false; then :
21307  $as_echo_n "(cached) " >&6
21308else
21309  cat > conftest.$ac_ext <<_ACEOF
21310      program main
21311
21312      end
21313_ACEOF
21314if ac_fn_fc_try_link "$LINENO"; then :
21315
21316  lt_aix_libpath_sed='
21317      /Import File Strings/,/^$/ {
21318	  /^0/ {
21319	      s/^0  *\([^ ]*\) *$/\1/
21320	      p
21321	  }
21322      }'
21323  lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21324  # Check for a 64-bit object if we didn't find anything.
21325  if test -z "$lt_cv_aix_libpath__FC"; then
21326    lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21327  fi
21328fi
21329rm -f core conftest.err conftest.$ac_objext \
21330    conftest$ac_exeext conftest.$ac_ext
21331  if test -z "$lt_cv_aix_libpath__FC"; then
21332    lt_cv_aix_libpath__FC=/usr/lib:/lib
21333  fi
21334
21335fi
21336
21337  aix_libpath=$lt_cv_aix_libpath__FC
21338fi
21339
21340        hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath"
21341        archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
21342      else
21343	if test ia64 = "$host_cpu"; then
21344	  hardcode_libdir_flag_spec_FC='$wl-R $libdir:/usr/lib:/lib'
21345	  allow_undefined_flag_FC="-z nodefs"
21346	  archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
21347	else
21348	 # Determine the default libpath from the value encoded in an
21349	 # empty executable.
21350	 if test set = "${lt_cv_aix_libpath+set}"; then
21351  aix_libpath=$lt_cv_aix_libpath
21352else
21353  if ${lt_cv_aix_libpath__FC+:} false; then :
21354  $as_echo_n "(cached) " >&6
21355else
21356  cat > conftest.$ac_ext <<_ACEOF
21357      program main
21358
21359      end
21360_ACEOF
21361if ac_fn_fc_try_link "$LINENO"; then :
21362
21363  lt_aix_libpath_sed='
21364      /Import File Strings/,/^$/ {
21365	  /^0/ {
21366	      s/^0  *\([^ ]*\) *$/\1/
21367	      p
21368	  }
21369      }'
21370  lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21371  # Check for a 64-bit object if we didn't find anything.
21372  if test -z "$lt_cv_aix_libpath__FC"; then
21373    lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21374  fi
21375fi
21376rm -f core conftest.err conftest.$ac_objext \
21377    conftest$ac_exeext conftest.$ac_ext
21378  if test -z "$lt_cv_aix_libpath__FC"; then
21379    lt_cv_aix_libpath__FC=/usr/lib:/lib
21380  fi
21381
21382fi
21383
21384  aix_libpath=$lt_cv_aix_libpath__FC
21385fi
21386
21387	 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath"
21388	  # Warning - without using the other run time loading flags,
21389	  # -berok will link without error, but may produce a broken library.
21390	  no_undefined_flag_FC=' $wl-bernotok'
21391	  allow_undefined_flag_FC=' $wl-berok'
21392	  if test yes = "$with_gnu_ld"; then
21393	    # We only use this code for GNU lds that support --whole-archive.
21394	    whole_archive_flag_spec_FC='$wl--whole-archive$convenience $wl--no-whole-archive'
21395	  else
21396	    # Exported symbols can be pulled into shared objects from archives
21397	    whole_archive_flag_spec_FC='$convenience'
21398	  fi
21399	  archive_cmds_need_lc_FC=yes
21400	  archive_expsym_cmds_FC='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
21401	  # -brtl affects multiple linker settings, -berok does not and is overridden later
21402	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
21403	  if test svr4 != "$with_aix_soname"; then
21404	    # This is similar to how AIX traditionally builds its shared libraries.
21405	    archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
21406	  fi
21407	  if test aix != "$with_aix_soname"; then
21408	    archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
21409	  else
21410	    # used by -dlpreopen to get the symbols
21411	    archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
21412	  fi
21413	  archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$RM -r $output_objdir/$realname.d'
21414	fi
21415      fi
21416      ;;
21417
21418    amigaos*)
21419      case $host_cpu in
21420      powerpc)
21421            # see comment about AmigaOS4 .so support
21422            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21423            archive_expsym_cmds_FC=''
21424        ;;
21425      m68k)
21426            archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
21427            hardcode_libdir_flag_spec_FC='-L$libdir'
21428            hardcode_minus_L_FC=yes
21429        ;;
21430      esac
21431      ;;
21432
21433    bsdi[45]*)
21434      export_dynamic_flag_spec_FC=-rdynamic
21435      ;;
21436
21437    cygwin* | mingw* | pw32* | cegcc*)
21438      # When not using gcc, we currently assume that we are using
21439      # Microsoft Visual C++.
21440      # hardcode_libdir_flag_spec is actually meaningless, as there is
21441      # no search path for DLLs.
21442      case $cc_basename in
21443      cl*)
21444	# Native MSVC
21445	hardcode_libdir_flag_spec_FC=' '
21446	allow_undefined_flag_FC=unsupported
21447	always_export_symbols_FC=yes
21448	file_list_spec_FC='@'
21449	# Tell ltmain to make .lib files, not .a files.
21450	libext=lib
21451	# Tell ltmain to make .dll files, not .so files.
21452	shrext_cmds=.dll
21453	# FIXME: Setting linknames here is a bad hack.
21454	archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
21455	archive_expsym_cmds_FC='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
21456            cp "$export_symbols" "$output_objdir/$soname.def";
21457            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
21458          else
21459            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
21460          fi~
21461          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
21462          linknames='
21463	# The linker will not automatically build a static lib if we build a DLL.
21464	# _LT_TAGVAR(old_archive_from_new_cmds, FC)='true'
21465	enable_shared_with_static_runtimes_FC=yes
21466	exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21467	export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21468	# Don't use ranlib
21469	old_postinstall_cmds_FC='chmod 644 $oldlib'
21470	postlink_cmds_FC='lt_outputfile="@OUTPUT@"~
21471          lt_tool_outputfile="@TOOL_OUTPUT@"~
21472          case $lt_outputfile in
21473            *.exe|*.EXE) ;;
21474            *)
21475              lt_outputfile=$lt_outputfile.exe
21476              lt_tool_outputfile=$lt_tool_outputfile.exe
21477              ;;
21478          esac~
21479          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
21480            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
21481            $RM "$lt_outputfile.manifest";
21482          fi'
21483	;;
21484      *)
21485	# Assume MSVC wrapper
21486	hardcode_libdir_flag_spec_FC=' '
21487	allow_undefined_flag_FC=unsupported
21488	# Tell ltmain to make .lib files, not .a files.
21489	libext=lib
21490	# Tell ltmain to make .dll files, not .so files.
21491	shrext_cmds=.dll
21492	# FIXME: Setting linknames here is a bad hack.
21493	archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
21494	# The linker will automatically build a .lib file if we build a DLL.
21495	old_archive_from_new_cmds_FC='true'
21496	# FIXME: Should let the user specify the lib program.
21497	old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
21498	enable_shared_with_static_runtimes_FC=yes
21499	;;
21500      esac
21501      ;;
21502
21503    darwin* | rhapsody*)
21504
21505
21506  archive_cmds_need_lc_FC=no
21507  hardcode_direct_FC=no
21508  hardcode_automatic_FC=yes
21509  hardcode_shlibpath_var_FC=unsupported
21510  if test yes = "$lt_cv_ld_force_load"; then
21511    whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
21512    compiler_needs_object_FC=yes
21513  else
21514    whole_archive_flag_spec_FC=''
21515  fi
21516  link_all_deplibs_FC=yes
21517  allow_undefined_flag_FC=$_lt_dar_allow_undefined
21518  case $cc_basename in
21519     ifort*|nagfor*)
21520        lt_prog_compiler_wl_FC='-Wl,'
21521        _lt_dar_can_shared=yes
21522      ;;
21523     *) _lt_dar_can_shared=$GCC ;;
21524  esac
21525  if test yes = "$_lt_dar_can_shared"; then
21526    output_verbose_link_cmd=func_echo_all
21527    archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
21528    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
21529    archive_expsym_cmds_FC="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
21530    module_expsym_cmds_FC="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
21531
21532  else
21533  ld_shlibs_FC=no
21534  fi
21535
21536      ;;
21537
21538    dgux*)
21539      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21540      hardcode_libdir_flag_spec_FC='-L$libdir'
21541      hardcode_shlibpath_var_FC=no
21542      ;;
21543
21544    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21545    # support.  Future versions do this automatically, but an explicit c++rt0.o
21546    # does not break anything, and helps significantly (at the cost of a little
21547    # extra space).
21548    freebsd2.2*)
21549      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21550      hardcode_libdir_flag_spec_FC='-R$libdir'
21551      hardcode_direct_FC=yes
21552      hardcode_shlibpath_var_FC=no
21553      ;;
21554
21555    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21556    freebsd2.*)
21557      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21558      hardcode_direct_FC=yes
21559      hardcode_minus_L_FC=yes
21560      hardcode_shlibpath_var_FC=no
21561      ;;
21562
21563    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21564    freebsd* | dragonfly*)
21565      archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21566      hardcode_libdir_flag_spec_FC='-R$libdir'
21567      hardcode_direct_FC=yes
21568      hardcode_shlibpath_var_FC=no
21569      ;;
21570
21571    hpux9*)
21572      if test yes = "$GCC"; then
21573	archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
21574      else
21575	archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
21576      fi
21577      hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
21578      hardcode_libdir_separator_FC=:
21579      hardcode_direct_FC=yes
21580
21581      # hardcode_minus_L: Not really in the search PATH,
21582      # but as the default location of the library.
21583      hardcode_minus_L_FC=yes
21584      export_dynamic_flag_spec_FC='$wl-E'
21585      ;;
21586
21587    hpux10*)
21588      if test yes,no = "$GCC,$with_gnu_ld"; then
21589	archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21590      else
21591	archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21592      fi
21593      if test no = "$with_gnu_ld"; then
21594	hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
21595	hardcode_libdir_separator_FC=:
21596	hardcode_direct_FC=yes
21597	hardcode_direct_absolute_FC=yes
21598	export_dynamic_flag_spec_FC='$wl-E'
21599	# hardcode_minus_L: Not really in the search PATH,
21600	# but as the default location of the library.
21601	hardcode_minus_L_FC=yes
21602      fi
21603      ;;
21604
21605    hpux11*)
21606      if test yes,no = "$GCC,$with_gnu_ld"; then
21607	case $host_cpu in
21608	hppa*64*)
21609	  archive_cmds_FC='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
21610	  ;;
21611	ia64*)
21612	  archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21613	  ;;
21614	*)
21615	  archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21616	  ;;
21617	esac
21618      else
21619	case $host_cpu in
21620	hppa*64*)
21621	  archive_cmds_FC='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
21622	  ;;
21623	ia64*)
21624	  archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21625	  ;;
21626	*)
21627	archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21628	  ;;
21629	esac
21630      fi
21631      if test no = "$with_gnu_ld"; then
21632	hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
21633	hardcode_libdir_separator_FC=:
21634
21635	case $host_cpu in
21636	hppa*64*|ia64*)
21637	  hardcode_direct_FC=no
21638	  hardcode_shlibpath_var_FC=no
21639	  ;;
21640	*)
21641	  hardcode_direct_FC=yes
21642	  hardcode_direct_absolute_FC=yes
21643	  export_dynamic_flag_spec_FC='$wl-E'
21644
21645	  # hardcode_minus_L: Not really in the search PATH,
21646	  # but as the default location of the library.
21647	  hardcode_minus_L_FC=yes
21648	  ;;
21649	esac
21650      fi
21651      ;;
21652
21653    irix5* | irix6* | nonstopux*)
21654      if test yes = "$GCC"; then
21655	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
21656	# Try to use the -exported_symbol ld option, if it does not
21657	# work, assume that -exports_file does not work either and
21658	# implicitly export all symbols.
21659	# This should be the same for all languages, so no per-tag cache variable.
21660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
21661$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
21662if ${lt_cv_irix_exported_symbol+:} false; then :
21663  $as_echo_n "(cached) " >&6
21664else
21665  save_LDFLAGS=$LDFLAGS
21666	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
21667	   cat > conftest.$ac_ext <<_ACEOF
21668
21669      subroutine foo
21670      end
21671_ACEOF
21672if ac_fn_fc_try_link "$LINENO"; then :
21673  lt_cv_irix_exported_symbol=yes
21674else
21675  lt_cv_irix_exported_symbol=no
21676fi
21677rm -f core conftest.err conftest.$ac_objext \
21678    conftest$ac_exeext conftest.$ac_ext
21679           LDFLAGS=$save_LDFLAGS
21680fi
21681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
21682$as_echo "$lt_cv_irix_exported_symbol" >&6; }
21683	if test yes = "$lt_cv_irix_exported_symbol"; then
21684          archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
21685	fi
21686      else
21687	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
21688	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
21689      fi
21690      archive_cmds_need_lc_FC='no'
21691      hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
21692      hardcode_libdir_separator_FC=:
21693      inherit_rpath_FC=yes
21694      link_all_deplibs_FC=yes
21695      ;;
21696
21697    linux*)
21698      case $cc_basename in
21699      tcc*)
21700	# Fabrice Bellard et al's Tiny C Compiler
21701	ld_shlibs_FC=yes
21702	archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21703	;;
21704      esac
21705      ;;
21706
21707    netbsd*)
21708      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21709	archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21710      else
21711	archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21712      fi
21713      hardcode_libdir_flag_spec_FC='-R$libdir'
21714      hardcode_direct_FC=yes
21715      hardcode_shlibpath_var_FC=no
21716      ;;
21717
21718    newsos6)
21719      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21720      hardcode_direct_FC=yes
21721      hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
21722      hardcode_libdir_separator_FC=:
21723      hardcode_shlibpath_var_FC=no
21724      ;;
21725
21726    *nto* | *qnx*)
21727      ;;
21728
21729    openbsd* | bitrig*)
21730      if test -f /usr/libexec/ld.so; then
21731	hardcode_direct_FC=yes
21732	hardcode_shlibpath_var_FC=no
21733	hardcode_direct_absolute_FC=yes
21734	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21735	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21736	  archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
21737	  hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
21738	  export_dynamic_flag_spec_FC='$wl-E'
21739	else
21740	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21741	  hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
21742	fi
21743      else
21744	ld_shlibs_FC=no
21745      fi
21746      ;;
21747
21748    os2*)
21749      hardcode_libdir_flag_spec_FC='-L$libdir'
21750      hardcode_minus_L_FC=yes
21751      allow_undefined_flag_FC=unsupported
21752      shrext_cmds=.dll
21753      archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21754	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21755	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21756	$ECHO EXPORTS >> $output_objdir/$libname.def~
21757	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
21758	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21759	emximp -o $lib $output_objdir/$libname.def'
21760      archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21761	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21762	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21763	$ECHO EXPORTS >> $output_objdir/$libname.def~
21764	prefix_cmds="$SED"~
21765	if test EXPORTS = "`$SED 1q $export_symbols`"; then
21766	  prefix_cmds="$prefix_cmds -e 1d";
21767	fi~
21768	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
21769	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
21770	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21771	emximp -o $lib $output_objdir/$libname.def'
21772      old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
21773      enable_shared_with_static_runtimes_FC=yes
21774      ;;
21775
21776    osf3*)
21777      if test yes = "$GCC"; then
21778	allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*'
21779	archive_cmds_FC='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
21780      else
21781	allow_undefined_flag_FC=' -expect_unresolved \*'
21782	archive_cmds_FC='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
21783      fi
21784      archive_cmds_need_lc_FC='no'
21785      hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
21786      hardcode_libdir_separator_FC=:
21787      ;;
21788
21789    osf4* | osf5*)	# as osf3* with the addition of -msym flag
21790      if test yes = "$GCC"; then
21791	allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*'
21792	archive_cmds_FC='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
21793	hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
21794      else
21795	allow_undefined_flag_FC=' -expect_unresolved \*'
21796	archive_cmds_FC='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
21797	archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
21798          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
21799
21800	# Both c and cxx compiler support -rpath directly
21801	hardcode_libdir_flag_spec_FC='-rpath $libdir'
21802      fi
21803      archive_cmds_need_lc_FC='no'
21804      hardcode_libdir_separator_FC=:
21805      ;;
21806
21807    solaris*)
21808      no_undefined_flag_FC=' -z defs'
21809      if test yes = "$GCC"; then
21810	wlarc='$wl'
21811	archive_cmds_FC='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
21812	archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21813          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21814      else
21815	case `$CC -V 2>&1` in
21816	*"Compilers 5.0"*)
21817	  wlarc=''
21818	  archive_cmds_FC='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
21819	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21820            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
21821	  ;;
21822	*)
21823	  wlarc='$wl'
21824	  archive_cmds_FC='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
21825	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21826            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21827	  ;;
21828	esac
21829      fi
21830      hardcode_libdir_flag_spec_FC='-R$libdir'
21831      hardcode_shlibpath_var_FC=no
21832      case $host_os in
21833      solaris2.[0-5] | solaris2.[0-5].*) ;;
21834      *)
21835	# The compiler driver will combine and reorder linker options,
21836	# but understands '-z linker_flag'.  GCC discards it without '$wl',
21837	# but is careful enough not to reorder.
21838	# Supported since Solaris 2.6 (maybe 2.5.1?)
21839	if test yes = "$GCC"; then
21840	  whole_archive_flag_spec_FC='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
21841	else
21842	  whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
21843	fi
21844	;;
21845      esac
21846      link_all_deplibs_FC=yes
21847      ;;
21848
21849    sunos4*)
21850      if test sequent = "$host_vendor"; then
21851	# Use $CC to link under sequent, because it throws in some extra .o
21852	# files that make .init and .fini sections work.
21853	archive_cmds_FC='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21854      else
21855	archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21856      fi
21857      hardcode_libdir_flag_spec_FC='-L$libdir'
21858      hardcode_direct_FC=yes
21859      hardcode_minus_L_FC=yes
21860      hardcode_shlibpath_var_FC=no
21861      ;;
21862
21863    sysv4)
21864      case $host_vendor in
21865	sni)
21866	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21867	  hardcode_direct_FC=yes # is this really true???
21868	;;
21869	siemens)
21870	  ## LD is ld it makes a PLAMLIB
21871	  ## CC just makes a GrossModule.
21872	  archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21873	  reload_cmds_FC='$CC -r -o $output$reload_objs'
21874	  hardcode_direct_FC=no
21875        ;;
21876	motorola)
21877	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21878	  hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
21879	;;
21880      esac
21881      runpath_var='LD_RUN_PATH'
21882      hardcode_shlibpath_var_FC=no
21883      ;;
21884
21885    sysv4.3*)
21886      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21887      hardcode_shlibpath_var_FC=no
21888      export_dynamic_flag_spec_FC='-Bexport'
21889      ;;
21890
21891    sysv4*MP*)
21892      if test -d /usr/nec; then
21893	archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21894	hardcode_shlibpath_var_FC=no
21895	runpath_var=LD_RUN_PATH
21896	hardcode_runpath_var=yes
21897	ld_shlibs_FC=yes
21898      fi
21899      ;;
21900
21901    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21902      no_undefined_flag_FC='$wl-z,text'
21903      archive_cmds_need_lc_FC=no
21904      hardcode_shlibpath_var_FC=no
21905      runpath_var='LD_RUN_PATH'
21906
21907      if test yes = "$GCC"; then
21908	archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21909	archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21910      else
21911	archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21912	archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21913      fi
21914      ;;
21915
21916    sysv5* | sco3.2v5* | sco5v6*)
21917      # Note: We CANNOT use -z defs as we might desire, because we do not
21918      # link with -lc, and that would cause any symbols used from libc to
21919      # always be unresolved, which means just about no library would
21920      # ever link correctly.  If we're not using GNU ld we use -z text
21921      # though, which does catch some bad symbols but isn't as heavy-handed
21922      # as -z defs.
21923      no_undefined_flag_FC='$wl-z,text'
21924      allow_undefined_flag_FC='$wl-z,nodefs'
21925      archive_cmds_need_lc_FC=no
21926      hardcode_shlibpath_var_FC=no
21927      hardcode_libdir_flag_spec_FC='$wl-R,$libdir'
21928      hardcode_libdir_separator_FC=':'
21929      link_all_deplibs_FC=yes
21930      export_dynamic_flag_spec_FC='$wl-Bexport'
21931      runpath_var='LD_RUN_PATH'
21932
21933      if test yes = "$GCC"; then
21934	archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21935	archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21936      else
21937	archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21938	archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21939      fi
21940      ;;
21941
21942    uts4*)
21943      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21944      hardcode_libdir_flag_spec_FC='-L$libdir'
21945      hardcode_shlibpath_var_FC=no
21946      ;;
21947
21948    *)
21949      ld_shlibs_FC=no
21950      ;;
21951    esac
21952
21953    if test sni = "$host_vendor"; then
21954      case $host in
21955      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21956	export_dynamic_flag_spec_FC='$wl-Blargedynsym'
21957	;;
21958      esac
21959    fi
21960  fi
21961
21962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
21963$as_echo "$ld_shlibs_FC" >&6; }
21964test no = "$ld_shlibs_FC" && can_build_shared=no
21965
21966with_gnu_ld_FC=$with_gnu_ld
21967
21968
21969
21970
21971
21972
21973#
21974# Do we need to explicitly link libc?
21975#
21976case "x$archive_cmds_need_lc_FC" in
21977x|xyes)
21978  # Assume -lc should be added
21979  archive_cmds_need_lc_FC=yes
21980
21981  if test yes,yes = "$GCC,$enable_shared"; then
21982    case $archive_cmds_FC in
21983    *'~'*)
21984      # FIXME: we may have to deal with multi-command sequences.
21985      ;;
21986    '$CC '*)
21987      # Test whether the compiler implicitly links with -lc since on some
21988      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21989      # to ld, don't add -lc before -lgcc.
21990      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21991$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21992if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
21993  $as_echo_n "(cached) " >&6
21994else
21995  $RM conftest*
21996	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21997
21998	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21999  (eval $ac_compile) 2>&5
22000  ac_status=$?
22001  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22002  test $ac_status = 0; } 2>conftest.err; then
22003	  soname=conftest
22004	  lib=conftest
22005	  libobjs=conftest.$ac_objext
22006	  deplibs=
22007	  wl=$lt_prog_compiler_wl_FC
22008	  pic_flag=$lt_prog_compiler_pic_FC
22009	  compiler_flags=-v
22010	  linker_flags=-v
22011	  verstring=
22012	  output_objdir=.
22013	  libname=conftest
22014	  lt_save_allow_undefined_flag=$allow_undefined_flag_FC
22015	  allow_undefined_flag_FC=
22016	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22017  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22018  ac_status=$?
22019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22020  test $ac_status = 0; }
22021	  then
22022	    lt_cv_archive_cmds_need_lc_FC=no
22023	  else
22024	    lt_cv_archive_cmds_need_lc_FC=yes
22025	  fi
22026	  allow_undefined_flag_FC=$lt_save_allow_undefined_flag
22027	else
22028	  cat conftest.err 1>&5
22029	fi
22030	$RM conftest*
22031
22032fi
22033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
22034$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
22035      archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
22036      ;;
22037    esac
22038  fi
22039  ;;
22040esac
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22104$as_echo_n "checking dynamic linker characteristics... " >&6; }
22105
22106library_names_spec=
22107libname_spec='lib$name'
22108soname_spec=
22109shrext_cmds=.so
22110postinstall_cmds=
22111postuninstall_cmds=
22112finish_cmds=
22113finish_eval=
22114shlibpath_var=
22115shlibpath_overrides_runpath=unknown
22116version_type=none
22117dynamic_linker="$host_os ld.so"
22118sys_lib_dlsearch_path_spec="/lib /usr/lib"
22119need_lib_prefix=unknown
22120hardcode_into_libs=no
22121
22122# when you set need_version to no, make sure it does not cause -set_version
22123# flags to be left without arguments
22124need_version=unknown
22125
22126
22127
22128case $host_os in
22129aix3*)
22130  version_type=linux # correct to gnu/linux during the next big refactor
22131  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
22132  shlibpath_var=LIBPATH
22133
22134  # AIX 3 has no versioning support, so we append a major version to the name.
22135  soname_spec='$libname$release$shared_ext$major'
22136  ;;
22137
22138aix[4-9]*)
22139  version_type=linux # correct to gnu/linux during the next big refactor
22140  need_lib_prefix=no
22141  need_version=no
22142  hardcode_into_libs=yes
22143  if test ia64 = "$host_cpu"; then
22144    # AIX 5 supports IA64
22145    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
22146    shlibpath_var=LD_LIBRARY_PATH
22147  else
22148    # With GCC up to 2.95.x, collect2 would create an import file
22149    # for dependence libraries.  The import file would start with
22150    # the line '#! .'.  This would cause the generated library to
22151    # depend on '.', always an invalid library.  This was fixed in
22152    # development snapshots of GCC prior to 3.0.
22153    case $host_os in
22154      aix4 | aix4.[01] | aix4.[01].*)
22155      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22156	   echo ' yes '
22157	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
22158	:
22159      else
22160	can_build_shared=no
22161      fi
22162      ;;
22163    esac
22164    # Using Import Files as archive members, it is possible to support
22165    # filename-based versioning of shared library archives on AIX. While
22166    # this would work for both with and without runtime linking, it will
22167    # prevent static linking of such archives. So we do filename-based
22168    # shared library versioning with .so extension only, which is used
22169    # when both runtime linking and shared linking is enabled.
22170    # Unfortunately, runtime linking may impact performance, so we do
22171    # not want this to be the default eventually. Also, we use the
22172    # versioned .so libs for executables only if there is the -brtl
22173    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
22174    # To allow for filename-based versioning support, we need to create
22175    # libNAME.so.V as an archive file, containing:
22176    # *) an Import File, referring to the versioned filename of the
22177    #    archive as well as the shared archive member, telling the
22178    #    bitwidth (32 or 64) of that shared object, and providing the
22179    #    list of exported symbols of that shared object, eventually
22180    #    decorated with the 'weak' keyword
22181    # *) the shared object with the F_LOADONLY flag set, to really avoid
22182    #    it being seen by the linker.
22183    # At run time we better use the real file rather than another symlink,
22184    # but for link time we create the symlink libNAME.so -> libNAME.so.V
22185
22186    case $with_aix_soname,$aix_use_runtimelinking in
22187    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
22188    # soname into executable. Probably we can add versioning support to
22189    # collect2, so additional links can be useful in future.
22190    aix,yes) # traditional libtool
22191      dynamic_linker='AIX unversionable lib.so'
22192      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22193      # instead of lib<name>.a to let people know that these are not
22194      # typical AIX shared libraries.
22195      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22196      ;;
22197    aix,no) # traditional AIX only
22198      dynamic_linker='AIX lib.a(lib.so.V)'
22199      # We preserve .a as extension for shared libraries through AIX4.2
22200      # and later when we are not doing run time linking.
22201      library_names_spec='$libname$release.a $libname.a'
22202      soname_spec='$libname$release$shared_ext$major'
22203      ;;
22204    svr4,*) # full svr4 only
22205      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
22206      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22207      # We do not specify a path in Import Files, so LIBPATH fires.
22208      shlibpath_overrides_runpath=yes
22209      ;;
22210    *,yes) # both, prefer svr4
22211      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
22212      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22213      # unpreferred sharedlib libNAME.a needs extra handling
22214      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
22215      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
22216      # We do not specify a path in Import Files, so LIBPATH fires.
22217      shlibpath_overrides_runpath=yes
22218      ;;
22219    *,no) # both, prefer aix
22220      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
22221      library_names_spec='$libname$release.a $libname.a'
22222      soname_spec='$libname$release$shared_ext$major'
22223      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
22224      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
22225      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
22226      ;;
22227    esac
22228    shlibpath_var=LIBPATH
22229  fi
22230  ;;
22231
22232amigaos*)
22233  case $host_cpu in
22234  powerpc)
22235    # Since July 2007 AmigaOS4 officially supports .so libraries.
22236    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22237    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22238    ;;
22239  m68k)
22240    library_names_spec='$libname.ixlibrary $libname.a'
22241    # Create ${libname}_ixlibrary.a entries in /sys/libs.
22242    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
22243    ;;
22244  esac
22245  ;;
22246
22247beos*)
22248  library_names_spec='$libname$shared_ext'
22249  dynamic_linker="$host_os ld.so"
22250  shlibpath_var=LIBRARY_PATH
22251  ;;
22252
22253bsdi[45]*)
22254  version_type=linux # correct to gnu/linux during the next big refactor
22255  need_version=no
22256  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22257  soname_spec='$libname$release$shared_ext$major'
22258  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22259  shlibpath_var=LD_LIBRARY_PATH
22260  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22261  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22262  # the default ld.so.conf also contains /usr/contrib/lib and
22263  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22264  # libtool to hard-code these into programs
22265  ;;
22266
22267cygwin* | mingw* | pw32* | cegcc*)
22268  version_type=windows
22269  shrext_cmds=.dll
22270  need_version=no
22271  need_lib_prefix=no
22272
22273  case $GCC,$cc_basename in
22274  yes,*)
22275    # gcc
22276    library_names_spec='$libname.dll.a'
22277    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22278    postinstall_cmds='base_file=`basename \$file`~
22279      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
22280      dldir=$destdir/`dirname \$dlpath`~
22281      test -d \$dldir || mkdir -p \$dldir~
22282      $install_prog $dir/$dlname \$dldir/$dlname~
22283      chmod a+x \$dldir/$dlname~
22284      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22285        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22286      fi'
22287    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22288      dlpath=$dir/\$dldll~
22289       $RM \$dlpath'
22290    shlibpath_overrides_runpath=yes
22291
22292    case $host_os in
22293    cygwin*)
22294      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22295      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22296
22297      ;;
22298    mingw* | cegcc*)
22299      # MinGW DLLs use traditional 'lib' prefix
22300      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22301      ;;
22302    pw32*)
22303      # pw32 DLLs use 'pw' prefix rather than 'lib'
22304      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22305      ;;
22306    esac
22307    dynamic_linker='Win32 ld.exe'
22308    ;;
22309
22310  *,cl*)
22311    # Native MSVC
22312    libname_spec='$name'
22313    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22314    library_names_spec='$libname.dll.lib'
22315
22316    case $build_os in
22317    mingw*)
22318      sys_lib_search_path_spec=
22319      lt_save_ifs=$IFS
22320      IFS=';'
22321      for lt_path in $LIB
22322      do
22323        IFS=$lt_save_ifs
22324        # Let DOS variable expansion print the short 8.3 style file name.
22325        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
22326        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
22327      done
22328      IFS=$lt_save_ifs
22329      # Convert to MSYS style.
22330      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
22331      ;;
22332    cygwin*)
22333      # Convert to unix form, then to dos form, then back to unix form
22334      # but this time dos style (no spaces!) so that the unix form looks
22335      # like /cygdrive/c/PROGRA~1:/cygdr...
22336      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
22337      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
22338      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22339      ;;
22340    *)
22341      sys_lib_search_path_spec=$LIB
22342      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
22343        # It is most probably a Windows format PATH.
22344        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22345      else
22346        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22347      fi
22348      # FIXME: find the short name or the path components, as spaces are
22349      # common. (e.g. "Program Files" -> "PROGRA~1")
22350      ;;
22351    esac
22352
22353    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22354    postinstall_cmds='base_file=`basename \$file`~
22355      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
22356      dldir=$destdir/`dirname \$dlpath`~
22357      test -d \$dldir || mkdir -p \$dldir~
22358      $install_prog $dir/$dlname \$dldir/$dlname'
22359    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22360      dlpath=$dir/\$dldll~
22361       $RM \$dlpath'
22362    shlibpath_overrides_runpath=yes
22363    dynamic_linker='Win32 link.exe'
22364    ;;
22365
22366  *)
22367    # Assume MSVC wrapper
22368    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
22369    dynamic_linker='Win32 ld.exe'
22370    ;;
22371  esac
22372  # FIXME: first we should search . and the directory the executable is in
22373  shlibpath_var=PATH
22374  ;;
22375
22376darwin* | rhapsody*)
22377  dynamic_linker="$host_os dyld"
22378  version_type=darwin
22379  need_lib_prefix=no
22380  need_version=no
22381  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
22382  soname_spec='$libname$release$major$shared_ext'
22383  shlibpath_overrides_runpath=yes
22384  shlibpath_var=DYLD_LIBRARY_PATH
22385  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22386
22387  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22388  ;;
22389
22390dgux*)
22391  version_type=linux # correct to gnu/linux during the next big refactor
22392  need_lib_prefix=no
22393  need_version=no
22394  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22395  soname_spec='$libname$release$shared_ext$major'
22396  shlibpath_var=LD_LIBRARY_PATH
22397  ;;
22398
22399freebsd* | dragonfly*)
22400  # DragonFly does not have aout.  When/if they implement a new
22401  # versioning mechanism, adjust this.
22402  if test -x /usr/bin/objformat; then
22403    objformat=`/usr/bin/objformat`
22404  else
22405    case $host_os in
22406    freebsd[23].*) objformat=aout ;;
22407    *) objformat=elf ;;
22408    esac
22409  fi
22410  version_type=freebsd-$objformat
22411  case $version_type in
22412    freebsd-elf*)
22413      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22414      soname_spec='$libname$release$shared_ext$major'
22415      need_version=no
22416      need_lib_prefix=no
22417      ;;
22418    freebsd-*)
22419      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22420      need_version=yes
22421      ;;
22422  esac
22423  shlibpath_var=LD_LIBRARY_PATH
22424  case $host_os in
22425  freebsd2.*)
22426    shlibpath_overrides_runpath=yes
22427    ;;
22428  freebsd3.[01]* | freebsdelf3.[01]*)
22429    shlibpath_overrides_runpath=yes
22430    hardcode_into_libs=yes
22431    ;;
22432  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22433  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22434    shlibpath_overrides_runpath=no
22435    hardcode_into_libs=yes
22436    ;;
22437  *) # from 4.6 on, and DragonFly
22438    shlibpath_overrides_runpath=yes
22439    hardcode_into_libs=yes
22440    ;;
22441  esac
22442  ;;
22443
22444haiku*)
22445  version_type=linux # correct to gnu/linux during the next big refactor
22446  need_lib_prefix=no
22447  need_version=no
22448  dynamic_linker="$host_os runtime_loader"
22449  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22450  soname_spec='$libname$release$shared_ext$major'
22451  shlibpath_var=LIBRARY_PATH
22452  shlibpath_overrides_runpath=no
22453  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22454  hardcode_into_libs=yes
22455  ;;
22456
22457hpux9* | hpux10* | hpux11*)
22458  # Give a soname corresponding to the major version so that dld.sl refuses to
22459  # link against other versions.
22460  version_type=sunos
22461  need_lib_prefix=no
22462  need_version=no
22463  case $host_cpu in
22464  ia64*)
22465    shrext_cmds='.so'
22466    hardcode_into_libs=yes
22467    dynamic_linker="$host_os dld.so"
22468    shlibpath_var=LD_LIBRARY_PATH
22469    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22470    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22471    soname_spec='$libname$release$shared_ext$major'
22472    if test 32 = "$HPUX_IA64_MODE"; then
22473      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22474      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
22475    else
22476      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22477      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
22478    fi
22479    ;;
22480  hppa*64*)
22481    shrext_cmds='.sl'
22482    hardcode_into_libs=yes
22483    dynamic_linker="$host_os dld.sl"
22484    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22485    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22486    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22487    soname_spec='$libname$release$shared_ext$major'
22488    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22489    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22490    ;;
22491  *)
22492    shrext_cmds='.sl'
22493    dynamic_linker="$host_os dld.sl"
22494    shlibpath_var=SHLIB_PATH
22495    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22496    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22497    soname_spec='$libname$release$shared_ext$major'
22498    ;;
22499  esac
22500  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22501  postinstall_cmds='chmod 555 $lib'
22502  # or fails outright, so override atomically:
22503  install_override_mode=555
22504  ;;
22505
22506interix[3-9]*)
22507  version_type=linux # correct to gnu/linux during the next big refactor
22508  need_lib_prefix=no
22509  need_version=no
22510  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22511  soname_spec='$libname$release$shared_ext$major'
22512  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22513  shlibpath_var=LD_LIBRARY_PATH
22514  shlibpath_overrides_runpath=no
22515  hardcode_into_libs=yes
22516  ;;
22517
22518irix5* | irix6* | nonstopux*)
22519  case $host_os in
22520    nonstopux*) version_type=nonstopux ;;
22521    *)
22522	if test yes = "$lt_cv_prog_gnu_ld"; then
22523		version_type=linux # correct to gnu/linux during the next big refactor
22524	else
22525		version_type=irix
22526	fi ;;
22527  esac
22528  need_lib_prefix=no
22529  need_version=no
22530  soname_spec='$libname$release$shared_ext$major'
22531  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
22532  case $host_os in
22533  irix5* | nonstopux*)
22534    libsuff= shlibsuff=
22535    ;;
22536  *)
22537    case $LD in # libtool.m4 will add one of these switches to LD
22538    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22539      libsuff= shlibsuff= libmagic=32-bit;;
22540    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22541      libsuff=32 shlibsuff=N32 libmagic=N32;;
22542    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22543      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22544    *) libsuff= shlibsuff= libmagic=never-match;;
22545    esac
22546    ;;
22547  esac
22548  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22549  shlibpath_overrides_runpath=no
22550  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
22551  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
22552  hardcode_into_libs=yes
22553  ;;
22554
22555# No shared lib support for Linux oldld, aout, or coff.
22556linux*oldld* | linux*aout* | linux*coff*)
22557  dynamic_linker=no
22558  ;;
22559
22560linux*android*)
22561  version_type=none # Android doesn't support versioned libraries.
22562  need_lib_prefix=no
22563  need_version=no
22564  library_names_spec='$libname$release$shared_ext'
22565  soname_spec='$libname$release$shared_ext'
22566  finish_cmds=
22567  shlibpath_var=LD_LIBRARY_PATH
22568  shlibpath_overrides_runpath=yes
22569
22570  # This implies no fast_install, which is unacceptable.
22571  # Some rework will be needed to allow for fast_install
22572  # before this can be enabled.
22573  hardcode_into_libs=yes
22574
22575  dynamic_linker='Android linker'
22576  # Don't embed -rpath directories since the linker doesn't support them.
22577  hardcode_libdir_flag_spec_FC='-L$libdir'
22578  ;;
22579
22580# This must be glibc/ELF.
22581linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22582  version_type=linux # correct to gnu/linux during the next big refactor
22583  need_lib_prefix=no
22584  need_version=no
22585  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22586  soname_spec='$libname$release$shared_ext$major'
22587  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22588  shlibpath_var=LD_LIBRARY_PATH
22589  shlibpath_overrides_runpath=no
22590
22591  # Some binutils ld are patched to set DT_RUNPATH
22592  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22593  $as_echo_n "(cached) " >&6
22594else
22595  lt_cv_shlibpath_overrides_runpath=no
22596    save_LDFLAGS=$LDFLAGS
22597    save_libdir=$libdir
22598    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
22599	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
22600    cat > conftest.$ac_ext <<_ACEOF
22601      program main
22602
22603      end
22604_ACEOF
22605if ac_fn_fc_try_link "$LINENO"; then :
22606  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22607  lt_cv_shlibpath_overrides_runpath=yes
22608fi
22609fi
22610rm -f core conftest.err conftest.$ac_objext \
22611    conftest$ac_exeext conftest.$ac_ext
22612    LDFLAGS=$save_LDFLAGS
22613    libdir=$save_libdir
22614
22615fi
22616
22617  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22618
22619  # This implies no fast_install, which is unacceptable.
22620  # Some rework will be needed to allow for fast_install
22621  # before this can be enabled.
22622  hardcode_into_libs=yes
22623
22624  # Ideally, we could use ldconfig to report *all* directores which are
22625  # searched for libraries, however this is still not possible.  Aside from not
22626  # being certain /sbin/ldconfig is available, command
22627  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
22628  # even though it is searched at run-time.  Try to do the best guess by
22629  # appending ld.so.conf contents (and includes) to the search path.
22630
22631  # There is no easy way to reliably detect the sys dlsearch path. We will first
22632  # assume ldconfig reports the path correctly, but check it with the current
22633  # ld cache. If any cached path is not present in the generated path_spec, then
22634  # we know ldconfig is bad and should manually parse the ld.so.conf files.
22635  # Note the reported paths can be a superset of the cached paths.
22636  # The catch is that the default path may not be in the ld.so.conf. We have to
22637  # add any missing one back to the path_spec (from the cached paths).
22638
22639  if test -x /sbin/ldconfig; then
22640    sys_lib_dlsearch_path_spec=`/sbin/ldconfig -N -X -v 2>/dev/null | grep ^/ | sed -e 's/:.*//g' | tr '\n' ' '`
22641    cached_lib_dlsearch_path=`/sbin/ldconfig -p | sed -e 's/.*=> //g' | grep '^/' | while read p; do dirname $p; done | sort | uniq | tr '\n' ' '`
22642    for p in `echo $cached_lib_dlsearch_path`; do
22643      case "$sys_lib_dlsearch_path_spec" in
22644        *$p*)
22645            bad_ldconfig=no
22646            ;;
22647           *)
22648            # ldconfig is bad if cached path is not reported
22649            bad_ldconfig=yes
22650            break
22651            ;;
22652      esac
22653    done
22654  else
22655    bad_ldconfig=yes
22656  fi
22657
22658  if test "$bad_ldconfig" = "yes"; then
22659    if test -f /etc/ld.so.conf; then
22660      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
22661      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22662    fi
22663
22664    # catch anything that in the cached path but not in the conf files
22665    for p in `echo $cached_lib_dlsearch_path`; do
22666      case "$sys_lib_dlsearch_path_spec" in
22667        *$p*)
22668            ;;
22669           *)
22670            sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $p"
22671            ;;
22672      esac
22673    done
22674  fi
22675
22676  # We used to test for /lib/ld.so.1 and disable shared libraries on
22677  # powerpc, because MkLinux only supported shared libraries with the
22678  # GNU dynamic linker.  Since this was broken with cross compilers,
22679  # most powerpc-linux boxes support dynamic linking these days and
22680  # people can always --disable-shared, the test was removed, and we
22681  # assume the GNU/Linux dynamic linker is in use.
22682  dynamic_linker='GNU/Linux ld.so'
22683  ;;
22684
22685netbsd*)
22686  version_type=sunos
22687  need_lib_prefix=no
22688  need_version=no
22689  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22690    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22691    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22692    dynamic_linker='NetBSD (a.out) ld.so'
22693  else
22694    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22695    soname_spec='$libname$release$shared_ext$major'
22696    dynamic_linker='NetBSD ld.elf_so'
22697  fi
22698  shlibpath_var=LD_LIBRARY_PATH
22699  shlibpath_overrides_runpath=yes
22700  hardcode_into_libs=yes
22701  ;;
22702
22703newsos6)
22704  version_type=linux # correct to gnu/linux during the next big refactor
22705  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22706  shlibpath_var=LD_LIBRARY_PATH
22707  shlibpath_overrides_runpath=yes
22708  ;;
22709
22710*nto* | *qnx*)
22711  version_type=qnx
22712  need_lib_prefix=no
22713  need_version=no
22714  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22715  soname_spec='$libname$release$shared_ext$major'
22716  shlibpath_var=LD_LIBRARY_PATH
22717  shlibpath_overrides_runpath=no
22718  hardcode_into_libs=yes
22719  dynamic_linker='ldqnx.so'
22720  ;;
22721
22722openbsd* | bitrig*)
22723  version_type=sunos
22724  sys_lib_dlsearch_path_spec=/usr/lib
22725  need_lib_prefix=no
22726  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
22727    need_version=no
22728  else
22729    need_version=yes
22730  fi
22731  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22732  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22733  shlibpath_var=LD_LIBRARY_PATH
22734  shlibpath_overrides_runpath=yes
22735  ;;
22736
22737os2*)
22738  libname_spec='$name'
22739  version_type=windows
22740  shrext_cmds=.dll
22741  need_version=no
22742  need_lib_prefix=no
22743  # OS/2 can only load a DLL with a base name of 8 characters or less.
22744  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
22745    v=$($ECHO $release$versuffix | tr -d .-);
22746    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
22747    $ECHO $n$v`$shared_ext'
22748  library_names_spec='${libname}_dll.$libext'
22749  dynamic_linker='OS/2 ld.exe'
22750  shlibpath_var=BEGINLIBPATH
22751  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22752  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22753  postinstall_cmds='base_file=`basename \$file`~
22754    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
22755    dldir=$destdir/`dirname \$dlpath`~
22756    test -d \$dldir || mkdir -p \$dldir~
22757    $install_prog $dir/$dlname \$dldir/$dlname~
22758    chmod a+x \$dldir/$dlname~
22759    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22760      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22761    fi'
22762  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
22763    dlpath=$dir/\$dldll~
22764    $RM \$dlpath'
22765  ;;
22766
22767osf3* | osf4* | osf5*)
22768  version_type=osf
22769  need_lib_prefix=no
22770  need_version=no
22771  soname_spec='$libname$release$shared_ext$major'
22772  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22773  shlibpath_var=LD_LIBRARY_PATH
22774  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22775  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22776  ;;
22777
22778rdos*)
22779  dynamic_linker=no
22780  ;;
22781
22782solaris*)
22783  version_type=linux # correct to gnu/linux during the next big refactor
22784  need_lib_prefix=no
22785  need_version=no
22786  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22787  soname_spec='$libname$release$shared_ext$major'
22788  shlibpath_var=LD_LIBRARY_PATH
22789  shlibpath_overrides_runpath=yes
22790  hardcode_into_libs=yes
22791  # ldd complains unless libraries are executable
22792  postinstall_cmds='chmod +x $lib'
22793  ;;
22794
22795sunos4*)
22796  version_type=sunos
22797  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22798  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22799  shlibpath_var=LD_LIBRARY_PATH
22800  shlibpath_overrides_runpath=yes
22801  if test yes = "$with_gnu_ld"; then
22802    need_lib_prefix=no
22803  fi
22804  need_version=yes
22805  ;;
22806
22807sysv4 | sysv4.3*)
22808  version_type=linux # correct to gnu/linux during the next big refactor
22809  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22810  soname_spec='$libname$release$shared_ext$major'
22811  shlibpath_var=LD_LIBRARY_PATH
22812  case $host_vendor in
22813    sni)
22814      shlibpath_overrides_runpath=no
22815      need_lib_prefix=no
22816      runpath_var=LD_RUN_PATH
22817      ;;
22818    siemens)
22819      need_lib_prefix=no
22820      ;;
22821    motorola)
22822      need_lib_prefix=no
22823      need_version=no
22824      shlibpath_overrides_runpath=no
22825      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22826      ;;
22827  esac
22828  ;;
22829
22830sysv4*MP*)
22831  if test -d /usr/nec; then
22832    version_type=linux # correct to gnu/linux during the next big refactor
22833    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
22834    soname_spec='$libname$shared_ext.$major'
22835    shlibpath_var=LD_LIBRARY_PATH
22836  fi
22837  ;;
22838
22839sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22840  version_type=sco
22841  need_lib_prefix=no
22842  need_version=no
22843  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
22844  soname_spec='$libname$release$shared_ext$major'
22845  shlibpath_var=LD_LIBRARY_PATH
22846  shlibpath_overrides_runpath=yes
22847  hardcode_into_libs=yes
22848  if test yes = "$with_gnu_ld"; then
22849    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22850  else
22851    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22852    case $host_os in
22853      sco3.2v5*)
22854        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22855	;;
22856    esac
22857  fi
22858  sys_lib_dlsearch_path_spec='/usr/lib'
22859  ;;
22860
22861tpf*)
22862  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
22863  version_type=linux # correct to gnu/linux during the next big refactor
22864  need_lib_prefix=no
22865  need_version=no
22866  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22867  shlibpath_var=LD_LIBRARY_PATH
22868  shlibpath_overrides_runpath=no
22869  hardcode_into_libs=yes
22870  ;;
22871
22872uts4*)
22873  version_type=linux # correct to gnu/linux during the next big refactor
22874  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22875  soname_spec='$libname$release$shared_ext$major'
22876  shlibpath_var=LD_LIBRARY_PATH
22877  ;;
22878
22879*)
22880  dynamic_linker=no
22881  ;;
22882esac
22883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22884$as_echo "$dynamic_linker" >&6; }
22885test no = "$dynamic_linker" && can_build_shared=no
22886
22887variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22888if test yes = "$GCC"; then
22889  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22890fi
22891
22892if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22893  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22894fi
22895
22896if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22897  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22898fi
22899
22900# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22901configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22902
22903# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22904func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22905
22906# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22907configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22949$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22950hardcode_action_FC=
22951if test -n "$hardcode_libdir_flag_spec_FC" ||
22952   test -n "$runpath_var_FC" ||
22953   test yes = "$hardcode_automatic_FC"; then
22954
22955  # We can hardcode non-existent directories.
22956  if test no != "$hardcode_direct_FC" &&
22957     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22958     # have to relink, otherwise we might link with an installed library
22959     # when we should be linking with a yet-to-be-installed one
22960     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" &&
22961     test no != "$hardcode_minus_L_FC"; then
22962    # Linking always hardcodes the temporary library directory.
22963    hardcode_action_FC=relink
22964  else
22965    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22966    hardcode_action_FC=immediate
22967  fi
22968else
22969  # We cannot hardcode anything, or else we can only hardcode existing
22970  # directories.
22971  hardcode_action_FC=unsupported
22972fi
22973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
22974$as_echo "$hardcode_action_FC" >&6; }
22975
22976if test relink = "$hardcode_action_FC" ||
22977   test yes = "$inherit_rpath_FC"; then
22978  # Fast installation is not supported
22979  enable_fast_install=no
22980elif test yes = "$shlibpath_overrides_runpath" ||
22981     test no = "$enable_shared"; then
22982  # Fast installation is not necessary
22983  enable_fast_install=needless
22984fi
22985
22986
22987
22988
22989
22990
22991
22992  fi # test -n "$compiler"
22993
22994  GCC=$lt_save_GCC
22995  CC=$lt_save_CC
22996  CFLAGS=$lt_save_CFLAGS
22997fi # test yes != "$_lt_disable_FC"
22998
22999ac_ext=c
23000ac_cpp='$CPP $CPPFLAGS'
23001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23003ac_compiler_gnu=$ac_cv_c_compiler_gnu
23004
23005
23006
23007save_IFS="$IFS"
23008IFS=","
23009enable_f77=no
23010enable_fc=no
23011for option in $enable_fortran ; do
23012    case "$option" in
23013        yes|all)
23014		enable_f77=yes
23015		enable_fc=yes
23016		;;
23017        no|none)
23018		;;
23019        f77)
23020		enable_f77=yes
23021		;;
23022        fc)
23023		enable_fc=yes
23024		;;
23025        *)
23026		IFS="$save_IFS"
23027		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $option for --enable-fortran" >&5
23028$as_echo "$as_me: WARNING: Unknown value $option for --enable-fortran" >&2;}
23029		IFS=","
23030		;;
23031    esac
23032done
23033IFS="$save_IFS"
23034
23035if test "$enable_f77" = "no" ; then
23036   if test "$enable_fc" = "yes" ; then
23037      as_fn_error $? "Fortran 90 support requires enabling Fortran 77" "$LINENO" 5
23038   fi
23039fi
23040
23041if test ! -z "$FC" -a -z "$F77" ; then
23042   F77=$FC
23043   if test ! -z "$FCFLAGS" -a -z "$FFLAGS" ; then
23044      FFLAGS=$FCFLAGS
23045   fi
23046fi
23047
23048 if test "$F77" != "$FC" -a "$FFLAGS" != "$FCFLAGS"; then
23049  INSTALL_MPIF77_TRUE=
23050  INSTALL_MPIF77_FALSE='#'
23051else
23052  INSTALL_MPIF77_TRUE='#'
23053  INSTALL_MPIF77_FALSE=
23054fi
23055
23056
23057# This needs to come after we've potentially set F77=$FC. Otherwise, we could
23058# override the user's Fortran compiler selection when only specifying FC at configure
23059# time, as is allowed.
23060# suppress default "-g -O2" from AC_PROG_F77
23061: ${FFLAGS=""}
23062ac_ext=f
23063ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23064ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23065ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23066if test -n "$ac_tool_prefix"; then
23067  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
23068  do
23069    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23070set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23072$as_echo_n "checking for $ac_word... " >&6; }
23073if ${ac_cv_prog_F77+:} false; then :
23074  $as_echo_n "(cached) " >&6
23075else
23076  if test -n "$F77"; then
23077  ac_cv_prog_F77="$F77" # Let the user override the test.
23078else
23079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23080for as_dir in $PATH
23081do
23082  IFS=$as_save_IFS
23083  test -z "$as_dir" && as_dir=.
23084    for ac_exec_ext in '' $ac_executable_extensions; do
23085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23086    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
23087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23088    break 2
23089  fi
23090done
23091  done
23092IFS=$as_save_IFS
23093
23094fi
23095fi
23096F77=$ac_cv_prog_F77
23097if test -n "$F77"; then
23098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
23099$as_echo "$F77" >&6; }
23100else
23101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23102$as_echo "no" >&6; }
23103fi
23104
23105
23106    test -n "$F77" && break
23107  done
23108fi
23109if test -z "$F77"; then
23110  ac_ct_F77=$F77
23111  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
23112do
23113  # Extract the first word of "$ac_prog", so it can be a program name with args.
23114set dummy $ac_prog; ac_word=$2
23115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23116$as_echo_n "checking for $ac_word... " >&6; }
23117if ${ac_cv_prog_ac_ct_F77+:} false; then :
23118  $as_echo_n "(cached) " >&6
23119else
23120  if test -n "$ac_ct_F77"; then
23121  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
23122else
23123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23124for as_dir in $PATH
23125do
23126  IFS=$as_save_IFS
23127  test -z "$as_dir" && as_dir=.
23128    for ac_exec_ext in '' $ac_executable_extensions; do
23129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23130    ac_cv_prog_ac_ct_F77="$ac_prog"
23131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23132    break 2
23133  fi
23134done
23135  done
23136IFS=$as_save_IFS
23137
23138fi
23139fi
23140ac_ct_F77=$ac_cv_prog_ac_ct_F77
23141if test -n "$ac_ct_F77"; then
23142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
23143$as_echo "$ac_ct_F77" >&6; }
23144else
23145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23146$as_echo "no" >&6; }
23147fi
23148
23149
23150  test -n "$ac_ct_F77" && break
23151done
23152
23153  if test "x$ac_ct_F77" = x; then
23154    F77=""
23155  else
23156    case $cross_compiling:$ac_tool_warned in
23157yes:)
23158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23160ac_tool_warned=yes ;;
23161esac
23162    F77=$ac_ct_F77
23163  fi
23164fi
23165
23166
23167# Provide some information about the compiler.
23168$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
23169set X $ac_compile
23170ac_compiler=$2
23171for ac_option in --version -v -V -qversion; do
23172  { { ac_try="$ac_compiler $ac_option >&5"
23173case "(($ac_try" in
23174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23175  *) ac_try_echo=$ac_try;;
23176esac
23177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23178$as_echo "$ac_try_echo"; } >&5
23179  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23180  ac_status=$?
23181  if test -s conftest.err; then
23182    sed '10a\
23183... rest of stderr output deleted ...
23184         10q' conftest.err >conftest.er1
23185    cat conftest.er1 >&5
23186  fi
23187  rm -f conftest.er1 conftest.err
23188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23189  test $ac_status = 0; }
23190done
23191rm -f a.out
23192
23193# If we don't use `.F' as extension, the preprocessor is not run on the
23194# input file.  (Note that this only needs to work for GNU compilers.)
23195ac_save_ext=$ac_ext
23196ac_ext=F
23197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
23198$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
23199if ${ac_cv_f77_compiler_gnu+:} false; then :
23200  $as_echo_n "(cached) " >&6
23201else
23202  cat > conftest.$ac_ext <<_ACEOF
23203      program main
23204#ifndef __GNUC__
23205       choke me
23206#endif
23207
23208      end
23209_ACEOF
23210if ac_fn_f77_try_compile "$LINENO"; then :
23211  ac_compiler_gnu=yes
23212else
23213  ac_compiler_gnu=no
23214fi
23215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23216ac_cv_f77_compiler_gnu=$ac_compiler_gnu
23217
23218fi
23219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
23220$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
23221ac_ext=$ac_save_ext
23222ac_test_FFLAGS=${FFLAGS+set}
23223ac_save_FFLAGS=$FFLAGS
23224FFLAGS=
23225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
23226$as_echo_n "checking whether $F77 accepts -g... " >&6; }
23227if ${ac_cv_prog_f77_g+:} false; then :
23228  $as_echo_n "(cached) " >&6
23229else
23230  FFLAGS=-g
23231cat > conftest.$ac_ext <<_ACEOF
23232      program main
23233
23234      end
23235_ACEOF
23236if ac_fn_f77_try_compile "$LINENO"; then :
23237  ac_cv_prog_f77_g=yes
23238else
23239  ac_cv_prog_f77_g=no
23240fi
23241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23242
23243fi
23244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
23245$as_echo "$ac_cv_prog_f77_g" >&6; }
23246if test "$ac_test_FFLAGS" = set; then
23247  FFLAGS=$ac_save_FFLAGS
23248elif test $ac_cv_prog_f77_g = yes; then
23249  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
23250    FFLAGS="-g -O2"
23251  else
23252    FFLAGS="-g"
23253  fi
23254else
23255  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
23256    FFLAGS="-O2"
23257  else
23258    FFLAGS=
23259  fi
23260fi
23261
23262if test $ac_compiler_gnu = yes; then
23263  G77=yes
23264else
23265  G77=
23266fi
23267ac_ext=c
23268ac_cpp='$CPP $CPPFLAGS'
23269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23271ac_compiler_gnu=$ac_cv_c_compiler_gnu
23272
23273      ac_ext=f
23274ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23275ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23276ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23277
23278if test -z "$F77" || test no = "$F77"; then
23279  _lt_disable_F77=yes
23280fi
23281
23282archive_cmds_need_lc_F77=no
23283allow_undefined_flag_F77=
23284always_export_symbols_F77=no
23285archive_expsym_cmds_F77=
23286export_dynamic_flag_spec_F77=
23287hardcode_direct_F77=no
23288hardcode_direct_absolute_F77=no
23289hardcode_libdir_flag_spec_F77=
23290hardcode_libdir_separator_F77=
23291hardcode_minus_L_F77=no
23292hardcode_automatic_F77=no
23293inherit_rpath_F77=no
23294module_cmds_F77=
23295module_expsym_cmds_F77=
23296link_all_deplibs_F77=unknown
23297old_archive_cmds_F77=$old_archive_cmds
23298reload_flag_F77=$reload_flag
23299reload_cmds_F77=$reload_cmds
23300no_undefined_flag_F77=
23301whole_archive_flag_spec_F77=
23302enable_shared_with_static_runtimes_F77=no
23303
23304# Source file extension for f77 test sources.
23305ac_ext=f
23306
23307# Object file extension for compiled f77 test sources.
23308objext=o
23309objext_F77=$objext
23310
23311# No sense in running all these tests if we already determined that
23312# the F77 compiler isn't working.  Some variables (like enable_shared)
23313# are currently assumed to apply to all compilers on this platform,
23314# and will be corrupted by setting them based on a non-working compiler.
23315if test yes != "$_lt_disable_F77"; then
23316  # Code to be used in simple compile tests
23317  lt_simple_compile_test_code="\
23318      subroutine t
23319      return
23320      end
23321"
23322
23323  # Code to be used in simple link tests
23324  lt_simple_link_test_code="\
23325      program t
23326      end
23327"
23328
23329  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23330
23331
23332
23333
23334
23335
23336# If no C compiler was specified, use CC.
23337LTCC=${LTCC-"$CC"}
23338
23339# If no C compiler flags were specified, use CFLAGS.
23340LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23341
23342# Allow CC to be a program name with arguments.
23343compiler=$CC
23344
23345
23346  # save warnings/boilerplate of simple test code
23347  ac_outfile=conftest.$ac_objext
23348echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23349eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23350_lt_compiler_boilerplate=`cat conftest.err`
23351$RM conftest*
23352
23353  ac_outfile=conftest.$ac_objext
23354echo "$lt_simple_link_test_code" >conftest.$ac_ext
23355eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23356_lt_linker_boilerplate=`cat conftest.err`
23357$RM -r conftest*
23358
23359
23360  # Allow CC to be a program name with arguments.
23361  lt_save_CC=$CC
23362  lt_save_GCC=$GCC
23363  lt_save_CFLAGS=$CFLAGS
23364  CC=${F77-"f77"}
23365  CFLAGS=$FFLAGS
23366  compiler=$CC
23367  compiler_F77=$CC
23368  func_cc_basename $compiler
23369cc_basename=$func_cc_basename_result
23370
23371  GCC=$G77
23372  if test -n "$compiler"; then
23373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
23374$as_echo_n "checking if libtool supports shared libraries... " >&6; }
23375    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
23376$as_echo "$can_build_shared" >&6; }
23377
23378    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
23379$as_echo_n "checking whether to build shared libraries... " >&6; }
23380    test no = "$can_build_shared" && enable_shared=no
23381
23382    # On AIX, shared libraries and static libraries use the same namespace, and
23383    # are all built from PIC.
23384    case $host_os in
23385      aix3*)
23386        test yes = "$enable_shared" && enable_static=no
23387        if test -n "$RANLIB"; then
23388          archive_cmds="$archive_cmds~\$RANLIB \$lib"
23389          postinstall_cmds='$RANLIB $lib'
23390        fi
23391        ;;
23392      aix[4-9]*)
23393	if test ia64 != "$host_cpu"; then
23394	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
23395	  yes,aix,yes) ;;		# shared object as lib.so file only
23396	  yes,svr4,*) ;;		# shared object as lib.so archive member only
23397	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
23398	  esac
23399	fi
23400        ;;
23401    esac
23402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
23403$as_echo "$enable_shared" >&6; }
23404
23405    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
23406$as_echo_n "checking whether to build static libraries... " >&6; }
23407    # Make sure either enable_shared or enable_static is yes.
23408    test yes = "$enable_shared" || enable_static=yes
23409    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
23410$as_echo "$enable_static" >&6; }
23411
23412    GCC_F77=$G77
23413    LD_F77=$LD
23414
23415    ## CAVEAT EMPTOR:
23416    ## There is no encapsulation within the following macros, do not change
23417    ## the running order or otherwise move them around unless you know exactly
23418    ## what you are doing...
23419    lt_prog_compiler_wl_F77=
23420lt_prog_compiler_pic_F77=
23421lt_prog_compiler_static_F77=
23422
23423
23424  if test yes = "$GCC"; then
23425    lt_prog_compiler_wl_F77='-Wl,'
23426    lt_prog_compiler_static_F77='-static'
23427
23428    case $host_os in
23429      aix*)
23430      # All AIX code is PIC.
23431      if test ia64 = "$host_cpu"; then
23432	# AIX 5 now supports IA64 processor
23433	lt_prog_compiler_static_F77='-Bstatic'
23434      fi
23435      lt_prog_compiler_pic_F77='-fPIC'
23436      ;;
23437
23438    amigaos*)
23439      case $host_cpu in
23440      powerpc)
23441            # see comment about AmigaOS4 .so support
23442            lt_prog_compiler_pic_F77='-fPIC'
23443        ;;
23444      m68k)
23445            # FIXME: we need at least 68020 code to build shared libraries, but
23446            # adding the '-m68020' flag to GCC prevents building anything better,
23447            # like '-m68040'.
23448            lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
23449        ;;
23450      esac
23451      ;;
23452
23453    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23454      # PIC is the default for these OSes.
23455      ;;
23456
23457    mingw* | cygwin* | pw32* | os2* | cegcc*)
23458      # This hack is so that the source file can tell whether it is being
23459      # built for inclusion in a dll (and should export symbols for example).
23460      # Although the cygwin gcc ignores -fPIC, still need this for old-style
23461      # (--disable-auto-import) libraries
23462      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
23463      case $host_os in
23464      os2*)
23465	lt_prog_compiler_static_F77='$wl-static'
23466	;;
23467      esac
23468      ;;
23469
23470    darwin* | rhapsody*)
23471      # PIC is the default on this platform
23472      # Common symbols not allowed in MH_DYLIB files
23473      lt_prog_compiler_pic_F77='-fno-common'
23474      ;;
23475
23476    haiku*)
23477      # PIC is the default for Haiku.
23478      # The "-static" flag exists, but is broken.
23479      lt_prog_compiler_static_F77=
23480      ;;
23481
23482    hpux*)
23483      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
23484      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
23485      # sets the default TLS model and affects inlining.
23486      case $host_cpu in
23487      hppa*64*)
23488	# +Z the default
23489	;;
23490      *)
23491	lt_prog_compiler_pic_F77='-fPIC'
23492	;;
23493      esac
23494      ;;
23495
23496    interix[3-9]*)
23497      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23498      # Instead, we relocate shared libraries at runtime.
23499      ;;
23500
23501    msdosdjgpp*)
23502      # Just because we use GCC doesn't mean we suddenly get shared libraries
23503      # on systems that don't support them.
23504      lt_prog_compiler_can_build_shared_F77=no
23505      enable_shared=no
23506      ;;
23507
23508    *nto* | *qnx*)
23509      # QNX uses GNU C++, but need to define -shared option too, otherwise
23510      # it will coredump.
23511      lt_prog_compiler_pic_F77='-fPIC -shared'
23512      ;;
23513
23514    sysv4*MP*)
23515      if test -d /usr/nec; then
23516	lt_prog_compiler_pic_F77=-Kconform_pic
23517      fi
23518      ;;
23519
23520    *)
23521      lt_prog_compiler_pic_F77='-fPIC'
23522      ;;
23523    esac
23524
23525    case $cc_basename in
23526    nvcc*) # Cuda Compiler Driver 2.2
23527      lt_prog_compiler_wl_F77='-Xlinker '
23528      if test -n "$lt_prog_compiler_pic_F77"; then
23529        lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
23530      fi
23531      ;;
23532    esac
23533  else
23534    # PORTME Check for flag to pass linker flags through the system compiler.
23535    case $host_os in
23536    aix*)
23537      lt_prog_compiler_wl_F77='-Wl,'
23538      if test ia64 = "$host_cpu"; then
23539	# AIX 5 now supports IA64 processor
23540	lt_prog_compiler_static_F77='-Bstatic'
23541      else
23542	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
23543      fi
23544      ;;
23545
23546    darwin* | rhapsody*)
23547      # PIC is the default on this platform
23548      # Common symbols not allowed in MH_DYLIB files
23549      lt_prog_compiler_pic_F77='-fno-common'
23550      case $cc_basename in
23551      nagfor*)
23552        # NAG Fortran compiler
23553        lt_prog_compiler_wl_F77='-Wl,-Wl,,'
23554        lt_prog_compiler_pic_F77='-PIC'
23555        lt_prog_compiler_static_F77='-Bstatic'
23556        ;;
23557      esac
23558      ;;
23559
23560    mingw* | cygwin* | pw32* | os2* | cegcc*)
23561      # This hack is so that the source file can tell whether it is being
23562      # built for inclusion in a dll (and should export symbols for example).
23563      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
23564      case $host_os in
23565      os2*)
23566	lt_prog_compiler_static_F77='$wl-static'
23567	;;
23568      esac
23569      ;;
23570
23571    hpux9* | hpux10* | hpux11*)
23572      lt_prog_compiler_wl_F77='-Wl,'
23573      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23574      # not for PA HP-UX.
23575      case $host_cpu in
23576      hppa*64*|ia64*)
23577	# +Z the default
23578	;;
23579      *)
23580	lt_prog_compiler_pic_F77='+Z'
23581	;;
23582      esac
23583      # Is there a better lt_prog_compiler_static that works with the bundled CC?
23584      lt_prog_compiler_static_F77='$wl-a ${wl}archive'
23585      ;;
23586
23587    irix5* | irix6* | nonstopux*)
23588      lt_prog_compiler_wl_F77='-Wl,'
23589      # PIC (with -KPIC) is the default.
23590      lt_prog_compiler_static_F77='-non_shared'
23591      ;;
23592
23593    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
23594      case $cc_basename in
23595      # old Intel for x86_64, which still supported -KPIC.
23596      ecc*)
23597	lt_prog_compiler_wl_F77='-Wl,'
23598	lt_prog_compiler_pic_F77='-KPIC'
23599	lt_prog_compiler_static_F77='-static'
23600        ;;
23601      # flang / f18
23602      flang* | f18*)
23603       lt_prog_compiler_wl_F77='-Wl,'
23604       lt_prog_compiler_pic_F77='-fPIC'
23605       lt_prog_compiler_static_F77='-static'
23606        ;;
23607      # icc used to be incompatible with GCC.
23608      # ICC 10 doesn't accept -KPIC any more.
23609      icc* | ifort*)
23610	lt_prog_compiler_wl_F77='-Wl,'
23611	lt_prog_compiler_pic_F77='-fPIC'
23612	lt_prog_compiler_static_F77='-static'
23613        ;;
23614      # Lahey Fortran 8.1.
23615      lf95*)
23616	lt_prog_compiler_wl_F77='-Wl,'
23617	lt_prog_compiler_pic_F77='--shared'
23618	lt_prog_compiler_static_F77='--static'
23619	;;
23620      nagfor*)
23621	# NAG Fortran compiler
23622	lt_prog_compiler_wl_F77='-Wl,-Wl,,'
23623	lt_prog_compiler_pic_F77='-PIC'
23624	lt_prog_compiler_static_F77='-Bstatic'
23625	;;
23626      tcc*)
23627	# Fabrice Bellard et al's Tiny C Compiler
23628	lt_prog_compiler_wl_F77='-Wl,'
23629	lt_prog_compiler_pic_F77='-fPIC'
23630	lt_prog_compiler_static_F77='-static'
23631	;;
23632      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
23633        # Portland Group compilers (*not* the Pentium gcc compiler,
23634	# which looks to be a dead project)
23635	lt_prog_compiler_wl_F77='-Wl,'
23636	lt_prog_compiler_pic_F77='-fpic'
23637	lt_prog_compiler_static_F77='-Bstatic'
23638        ;;
23639      ccc*)
23640        lt_prog_compiler_wl_F77='-Wl,'
23641        # All Alpha code is PIC.
23642        lt_prog_compiler_static_F77='-non_shared'
23643        ;;
23644      xl* | bgxl* | bgf* | mpixl*)
23645	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
23646	lt_prog_compiler_wl_F77='-Wl,'
23647	lt_prog_compiler_pic_F77='-qpic'
23648	lt_prog_compiler_static_F77='-qstaticlink'
23649	;;
23650      armclang* | armclang++* | armflang*)
23651        # ARM LLVM C/C++/Fortran
23652        lt_prog_compiler_wl_F77='-Wl,'
23653        ;;
23654      *)
23655	case `$CC -V 2>&1 | sed 5q` in
23656	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
23657	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
23658	  lt_prog_compiler_pic_F77='-KPIC'
23659	  lt_prog_compiler_static_F77='-Bstatic'
23660	  lt_prog_compiler_wl_F77=''
23661	  ;;
23662	*Sun\ F* | *Sun*Fortran* | *Studio*Fortran*)
23663	  lt_prog_compiler_pic_F77='-KPIC'
23664	  lt_prog_compiler_static_F77='-Bstatic'
23665	  lt_prog_compiler_wl_F77='-Qoption ld '
23666	  ;;
23667	*Sun\ C*)
23668	  # Sun C 5.9
23669	  lt_prog_compiler_pic_F77='-KPIC'
23670	  lt_prog_compiler_static_F77='-Bstatic'
23671	  lt_prog_compiler_wl_F77='-Wl,'
23672	  ;;
23673        *Intel*\ [CF]*Compiler*)
23674	  lt_prog_compiler_wl_F77='-Wl,'
23675	  lt_prog_compiler_pic_F77='-fPIC'
23676	  lt_prog_compiler_static_F77='-static'
23677	  ;;
23678	*Portland\ Group*)
23679	  lt_prog_compiler_wl_F77='-Wl,'
23680	  lt_prog_compiler_pic_F77='-fpic'
23681	  lt_prog_compiler_static_F77='-Bstatic'
23682	  ;;
23683	esac
23684	;;
23685      esac
23686      ;;
23687
23688    newsos6)
23689      lt_prog_compiler_pic_F77='-KPIC'
23690      lt_prog_compiler_static_F77='-Bstatic'
23691      ;;
23692
23693    *nto* | *qnx*)
23694      # QNX uses GNU C++, but need to define -shared option too, otherwise
23695      # it will coredump.
23696      lt_prog_compiler_pic_F77='-fPIC -shared'
23697      ;;
23698
23699    osf3* | osf4* | osf5*)
23700      lt_prog_compiler_wl_F77='-Wl,'
23701      # All OSF/1 code is PIC.
23702      lt_prog_compiler_static_F77='-non_shared'
23703      ;;
23704
23705    rdos*)
23706      lt_prog_compiler_static_F77='-non_shared'
23707      ;;
23708
23709    solaris*)
23710      lt_prog_compiler_pic_F77='-KPIC'
23711      lt_prog_compiler_static_F77='-Bstatic'
23712      case $cc_basename in
23713      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
23714	lt_prog_compiler_wl_F77='-Qoption ld ';;
23715      *)
23716	lt_prog_compiler_wl_F77='-Wl,';;
23717      esac
23718      ;;
23719
23720    sunos4*)
23721      lt_prog_compiler_wl_F77='-Qoption ld '
23722      lt_prog_compiler_pic_F77='-PIC'
23723      lt_prog_compiler_static_F77='-Bstatic'
23724      ;;
23725
23726    sysv4 | sysv4.2uw2* | sysv4.3*)
23727      lt_prog_compiler_wl_F77='-Wl,'
23728      lt_prog_compiler_pic_F77='-KPIC'
23729      lt_prog_compiler_static_F77='-Bstatic'
23730      ;;
23731
23732    sysv4*MP*)
23733      if test -d /usr/nec; then
23734	lt_prog_compiler_pic_F77='-Kconform_pic'
23735	lt_prog_compiler_static_F77='-Bstatic'
23736      fi
23737      ;;
23738
23739    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23740      lt_prog_compiler_wl_F77='-Wl,'
23741      lt_prog_compiler_pic_F77='-KPIC'
23742      lt_prog_compiler_static_F77='-Bstatic'
23743      ;;
23744
23745    unicos*)
23746      lt_prog_compiler_wl_F77='-Wl,'
23747      lt_prog_compiler_can_build_shared_F77=no
23748      ;;
23749
23750    uts4*)
23751      lt_prog_compiler_pic_F77='-pic'
23752      lt_prog_compiler_static_F77='-Bstatic'
23753      ;;
23754
23755    *)
23756      lt_prog_compiler_can_build_shared_F77=no
23757      ;;
23758    esac
23759  fi
23760
23761case $host_os in
23762  # For platforms that do not support PIC, -DPIC is meaningless:
23763  *djgpp*)
23764    lt_prog_compiler_pic_F77=
23765    ;;
23766  *)
23767    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
23768    ;;
23769esac
23770
23771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
23772$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
23773if ${lt_cv_prog_compiler_pic_F77+:} false; then :
23774  $as_echo_n "(cached) " >&6
23775else
23776  lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
23777fi
23778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
23779$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
23780lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
23781
23782#
23783# Check to make sure the PIC flag actually works.
23784#
23785if test -n "$lt_prog_compiler_pic_F77"; then
23786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
23787$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
23788if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
23789  $as_echo_n "(cached) " >&6
23790else
23791  lt_cv_prog_compiler_pic_works_F77=no
23792   ac_outfile=conftest.$ac_objext
23793   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23794   lt_compiler_flag="$lt_prog_compiler_pic_F77"  ## exclude from sc_useless_quotes_in_assignment
23795   # Insert the option either (1) after the last *FLAGS variable, or
23796   # (2) before a word containing "conftest.", or (3) at the end.
23797   # Note that $ac_compile itself does not contain backslashes and begins
23798   # with a dollar sign (not a hyphen), so the echo should work correctly.
23799   # The option is referenced via a variable to avoid confusing sed.
23800   lt_compile=`echo "$ac_compile" | $SED \
23801   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23802   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23803   -e 's:$: $lt_compiler_flag:'`
23804   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23805   (eval "$lt_compile" 2>conftest.err)
23806   ac_status=$?
23807   cat conftest.err >&5
23808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809   if (exit $ac_status) && test -s "$ac_outfile"; then
23810     # The compiler can only warn and ignore the option if not recognized
23811     # So say no if there are warnings other than the usual output.
23812     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
23813     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23814     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23815       lt_cv_prog_compiler_pic_works_F77=yes
23816     fi
23817   fi
23818   $RM conftest*
23819
23820fi
23821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
23822$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
23823
23824if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then
23825    case $lt_prog_compiler_pic_F77 in
23826     "" | " "*) ;;
23827     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
23828     esac
23829else
23830    lt_prog_compiler_pic_F77=
23831     lt_prog_compiler_can_build_shared_F77=no
23832fi
23833
23834fi
23835
23836
23837
23838
23839
23840#
23841# Check to make sure the static flag actually works.
23842#
23843wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
23844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23845$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
23846if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
23847  $as_echo_n "(cached) " >&6
23848else
23849  lt_cv_prog_compiler_static_works_F77=no
23850   save_LDFLAGS=$LDFLAGS
23851   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23852   echo "$lt_simple_link_test_code" > conftest.$ac_ext
23853   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23854     # The linker can only warn and ignore the option if not recognized
23855     # So say no if there are warnings
23856     if test -s conftest.err; then
23857       # Append any errors to the config.log.
23858       cat conftest.err 1>&5
23859       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
23860       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23861       if diff conftest.exp conftest.er2 >/dev/null; then
23862         lt_cv_prog_compiler_static_works_F77=yes
23863       fi
23864     else
23865       lt_cv_prog_compiler_static_works_F77=yes
23866     fi
23867   fi
23868   $RM -r conftest*
23869   LDFLAGS=$save_LDFLAGS
23870
23871fi
23872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
23873$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
23874
23875if test yes = "$lt_cv_prog_compiler_static_works_F77"; then
23876    :
23877else
23878    lt_prog_compiler_static_F77=
23879fi
23880
23881
23882
23883
23884    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23885$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23886if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
23887  $as_echo_n "(cached) " >&6
23888else
23889  lt_cv_prog_compiler_c_o_F77=no
23890   $RM -r conftest 2>/dev/null
23891   mkdir conftest
23892   cd conftest
23893   mkdir out
23894   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23895
23896   lt_compiler_flag="-o out/conftest2.$ac_objext"
23897   # Insert the option either (1) after the last *FLAGS variable, or
23898   # (2) before a word containing "conftest.", or (3) at the end.
23899   # Note that $ac_compile itself does not contain backslashes and begins
23900   # with a dollar sign (not a hyphen), so the echo should work correctly.
23901   lt_compile=`echo "$ac_compile" | $SED \
23902   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23903   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23904   -e 's:$: $lt_compiler_flag:'`
23905   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23906   (eval "$lt_compile" 2>out/conftest.err)
23907   ac_status=$?
23908   cat out/conftest.err >&5
23909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910   if (exit $ac_status) && test -s out/conftest2.$ac_objext
23911   then
23912     # The compiler can only warn and ignore the option if not recognized
23913     # So say no if there are warnings
23914     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23915     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23916     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23917       lt_cv_prog_compiler_c_o_F77=yes
23918     fi
23919   fi
23920   chmod u+w . 2>&5
23921   $RM conftest*
23922   # SGI C++ compiler will create directory out/ii_files/ for
23923   # template instantiation
23924   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23925   $RM out/* && rmdir out
23926   cd ..
23927   $RM -r conftest
23928   $RM conftest*
23929
23930fi
23931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
23932$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
23933
23934
23935
23936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
23937$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
23938if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
23939  $as_echo_n "(cached) " >&6
23940else
23941  lt_cv_prog_compiler_c_o_F77=no
23942   $RM -r conftest 2>/dev/null
23943   mkdir conftest
23944   cd conftest
23945   mkdir out
23946   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23947
23948   lt_compiler_flag="-o out/conftest2.$ac_objext"
23949   # Insert the option either (1) after the last *FLAGS variable, or
23950   # (2) before a word containing "conftest.", or (3) at the end.
23951   # Note that $ac_compile itself does not contain backslashes and begins
23952   # with a dollar sign (not a hyphen), so the echo should work correctly.
23953   lt_compile=`echo "$ac_compile" | $SED \
23954   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23955   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23956   -e 's:$: $lt_compiler_flag:'`
23957   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
23958   (eval "$lt_compile" 2>out/conftest.err)
23959   ac_status=$?
23960   cat out/conftest.err >&5
23961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962   if (exit $ac_status) && test -s out/conftest2.$ac_objext
23963   then
23964     # The compiler can only warn and ignore the option if not recognized
23965     # So say no if there are warnings
23966     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
23967     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23968     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23969       lt_cv_prog_compiler_c_o_F77=yes
23970     fi
23971   fi
23972   chmod u+w . 2>&5
23973   $RM conftest*
23974   # SGI C++ compiler will create directory out/ii_files/ for
23975   # template instantiation
23976   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
23977   $RM out/* && rmdir out
23978   cd ..
23979   $RM -r conftest
23980   $RM conftest*
23981
23982fi
23983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
23984$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
23985
23986
23987
23988
23989hard_links=nottested
23990if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then
23991  # do not overwrite the value of need_locks provided by the user
23992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
23993$as_echo_n "checking if we can lock with hard links... " >&6; }
23994  hard_links=yes
23995  $RM conftest*
23996  ln conftest.a conftest.b 2>/dev/null && hard_links=no
23997  touch conftest.a
23998  ln conftest.a conftest.b 2>&5 || hard_links=no
23999  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
24001$as_echo "$hard_links" >&6; }
24002  if test no = "$hard_links"; then
24003    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
24004$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
24005    need_locks=warn
24006  fi
24007else
24008  need_locks=no
24009fi
24010
24011
24012
24013    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24014$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
24015
24016  runpath_var=
24017  allow_undefined_flag_F77=
24018  always_export_symbols_F77=no
24019  archive_cmds_F77=
24020  archive_expsym_cmds_F77=
24021  compiler_needs_object_F77=no
24022  enable_shared_with_static_runtimes_F77=no
24023  export_dynamic_flag_spec_F77=
24024  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24025  hardcode_automatic_F77=no
24026  hardcode_direct_F77=no
24027  hardcode_direct_absolute_F77=no
24028  hardcode_libdir_flag_spec_F77=
24029  hardcode_libdir_separator_F77=
24030  hardcode_minus_L_F77=no
24031  hardcode_shlibpath_var_F77=unsupported
24032  inherit_rpath_F77=no
24033  link_all_deplibs_F77=unknown
24034  module_cmds_F77=
24035  module_expsym_cmds_F77=
24036  old_archive_from_new_cmds_F77=
24037  old_archive_from_expsyms_cmds_F77=
24038  thread_safe_flag_spec_F77=
24039  whole_archive_flag_spec_F77=
24040  # include_expsyms should be a list of space-separated symbols to be *always*
24041  # included in the symbol list
24042  include_expsyms_F77=
24043  # exclude_expsyms can be an extended regexp of symbols to exclude
24044  # it will be wrapped by ' (' and ')$', so one must not match beginning or
24045  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
24046  # as well as any symbol that contains 'd'.
24047  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24048  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24049  # platforms (ab)use it in PIC code, but their linkers get confused if
24050  # the symbol is explicitly referenced.  Since portable code cannot
24051  # rely on this symbol name, it's probably fine to never include it in
24052  # preloaded symbol tables.
24053  # Exclude shared library initialization/finalization symbols.
24054  extract_expsyms_cmds=
24055
24056  case $host_os in
24057  cygwin* | mingw* | pw32* | cegcc*)
24058    # FIXME: the MSVC++ port hasn't been tested in a loooong time
24059    # When not using gcc, we currently assume that we are using
24060    # Microsoft Visual C++.
24061    if test yes != "$GCC"; then
24062      with_gnu_ld=no
24063    fi
24064    ;;
24065  interix*)
24066    # we just hope/assume this is gcc and not c89 (= MSVC++)
24067    with_gnu_ld=yes
24068    ;;
24069  openbsd* | bitrig*)
24070    with_gnu_ld=no
24071    ;;
24072  esac
24073
24074  ld_shlibs_F77=yes
24075
24076  # On some targets, GNU ld is compatible enough with the native linker
24077  # that we're better off using the native interface for both.
24078  lt_use_gnu_ld_interface=no
24079  if test yes = "$with_gnu_ld"; then
24080    case $host_os in
24081      aix*)
24082	# The AIX port of GNU ld has always aspired to compatibility
24083	# with the native linker.  However, as the warning in the GNU ld
24084	# block says, versions before 2.19.5* couldn't really create working
24085	# shared libraries, regardless of the interface used.
24086	case `$LD -v 2>&1` in
24087	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
24088	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
24089	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
24090	  *)
24091	    lt_use_gnu_ld_interface=yes
24092	    ;;
24093	esac
24094	;;
24095      *)
24096	lt_use_gnu_ld_interface=yes
24097	;;
24098    esac
24099  fi
24100
24101  if test yes = "$lt_use_gnu_ld_interface"; then
24102    # If archive_cmds runs LD, not CC, wlarc should be empty
24103    wlarc='$wl'
24104
24105    # Set some defaults for GNU ld with shared library support. These
24106    # are reset later if shared libraries are not supported. Putting them
24107    # here allows them to be overridden if necessary.
24108    runpath_var=LD_RUN_PATH
24109    hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
24110    export_dynamic_flag_spec_F77='$wl--export-dynamic'
24111    # ancient GNU ld didn't support --whole-archive et. al.
24112    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
24113      whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
24114    else
24115      whole_archive_flag_spec_F77=
24116    fi
24117    supports_anon_versioning=no
24118    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
24119      *GNU\ gold*) supports_anon_versioning=yes ;;
24120      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24121      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24122      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24123      *\ 2.11.*) ;; # other 2.11 versions
24124      *) supports_anon_versioning=yes ;;
24125    esac
24126
24127    # See if GNU ld supports shared libraries.
24128    case $host_os in
24129    aix[3-9]*)
24130      # On AIX/PPC, the GNU linker is very broken
24131      if test ia64 != "$host_cpu"; then
24132	ld_shlibs_F77=no
24133	cat <<_LT_EOF 1>&2
24134
24135*** Warning: the GNU linker, at least up to release 2.19, is reported
24136*** to be unable to reliably create shared libraries on AIX.
24137*** Therefore, libtool is disabling shared libraries support.  If you
24138*** really care for shared libraries, you may want to install binutils
24139*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
24140*** You will then need to restart the configuration process.
24141
24142_LT_EOF
24143      fi
24144      ;;
24145
24146    amigaos*)
24147      case $host_cpu in
24148      powerpc)
24149            # see comment about AmigaOS4 .so support
24150            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
24151            archive_expsym_cmds_F77=''
24152        ;;
24153      m68k)
24154            archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
24155            hardcode_libdir_flag_spec_F77='-L$libdir'
24156            hardcode_minus_L_F77=yes
24157        ;;
24158      esac
24159      ;;
24160
24161    beos*)
24162      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
24163	allow_undefined_flag_F77=unsupported
24164	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24165	# support --undefined.  This deserves some investigation.  FIXME
24166	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
24167      else
24168	ld_shlibs_F77=no
24169      fi
24170      ;;
24171
24172    cygwin* | mingw* | pw32* | cegcc*)
24173      # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
24174      # as there is no search path for DLLs.
24175      hardcode_libdir_flag_spec_F77='-L$libdir'
24176      export_dynamic_flag_spec_F77='$wl--export-all-symbols'
24177      allow_undefined_flag_F77=unsupported
24178      always_export_symbols_F77=no
24179      enable_shared_with_static_runtimes_F77=yes
24180      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
24181      exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
24182
24183      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
24184        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24185	# If the export-symbols file already is a .def file, use it as
24186	# is; otherwise, prepend EXPORTS...
24187	archive_expsym_cmds_F77='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
24188          cp $export_symbols $output_objdir/$soname.def;
24189        else
24190          echo EXPORTS > $output_objdir/$soname.def;
24191          cat $export_symbols >> $output_objdir/$soname.def;
24192        fi~
24193        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24194      else
24195	ld_shlibs_F77=no
24196      fi
24197      ;;
24198
24199    haiku*)
24200      archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
24201      link_all_deplibs_F77=yes
24202      ;;
24203
24204    os2*)
24205      hardcode_libdir_flag_spec_F77='-L$libdir'
24206      hardcode_minus_L_F77=yes
24207      allow_undefined_flag_F77=unsupported
24208      shrext_cmds=.dll
24209      archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
24210	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
24211	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
24212	$ECHO EXPORTS >> $output_objdir/$libname.def~
24213	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
24214	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
24215	emximp -o $lib $output_objdir/$libname.def'
24216      archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
24217	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
24218	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
24219	$ECHO EXPORTS >> $output_objdir/$libname.def~
24220	prefix_cmds="$SED"~
24221	if test EXPORTS = "`$SED 1q $export_symbols`"; then
24222	  prefix_cmds="$prefix_cmds -e 1d";
24223	fi~
24224	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
24225	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
24226	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
24227	emximp -o $lib $output_objdir/$libname.def'
24228      old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
24229      enable_shared_with_static_runtimes_F77=yes
24230      ;;
24231
24232    interix[3-9]*)
24233      hardcode_direct_F77=no
24234      hardcode_shlibpath_var_F77=no
24235      hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
24236      export_dynamic_flag_spec_F77='$wl-E'
24237      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24238      # Instead, shared libraries are loaded at an image base (0x10000000 by
24239      # default) and relocated if they conflict, which is a slow very memory
24240      # consuming and fragmenting process.  To avoid this, we pick a random,
24241      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24242      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24243      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24244      archive_expsym_cmds_F77='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24245      ;;
24246
24247    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
24248      tmp_diet=no
24249      if test linux-dietlibc = "$host_os"; then
24250	case $cc_basename in
24251	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
24252	esac
24253      fi
24254      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
24255	 && test no = "$tmp_diet"
24256      then
24257	tmp_addflag=' $pic_flag'
24258	tmp_sharedflag='-shared'
24259	case $cc_basename,$host_cpu in
24260        pgcc*)				# Portland Group C compiler
24261	  whole_archive_flag_spec_F77='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
24262	  tmp_addflag=' $pic_flag'
24263	  ;;
24264	pgf77* | pgf90* | pgf95* | pgfortran*)
24265					# Portland Group f77 and f90 compilers
24266	  whole_archive_flag_spec_F77='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
24267	  tmp_addflag=' $pic_flag -Mnomain' ;;
24268	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
24269	  tmp_addflag=' -i_dynamic' ;;
24270	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
24271	  tmp_addflag=' -i_dynamic -nofor_main' ;;
24272	ifc* | ifort*)			# Intel Fortran compiler
24273	  tmp_addflag=' -nofor_main' ;;
24274	lf95*)				# Lahey Fortran 8.1
24275	  whole_archive_flag_spec_F77=
24276	  tmp_sharedflag='--shared' ;;
24277        nagfor*)                        # NAGFOR 5.3
24278          tmp_sharedflag='-Wl,-shared' ;;
24279	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
24280	  tmp_sharedflag='-qmkshrobj'
24281	  tmp_addflag= ;;
24282	nvcc*)	# Cuda Compiler Driver 2.2
24283	  whole_archive_flag_spec_F77='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
24284	  compiler_needs_object_F77=yes
24285	  ;;
24286	esac
24287	case `$CC -V 2>&1 | sed 5q` in
24288	*Sun\ C*)			# Sun C 5.9
24289	  whole_archive_flag_spec_F77='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
24290	  compiler_needs_object_F77=yes
24291	  tmp_sharedflag='-G' ;;
24292	*Sun\ F* | *Sun*Fortran* | *Studio*Fortran*)
24293	  tmp_sharedflag='-G' ;;
24294	esac
24295	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
24296
24297        if test yes = "$supports_anon_versioning"; then
24298          archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
24299            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24300            echo "local: *; };" >> $output_objdir/$libname.ver~
24301            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
24302        fi
24303
24304	case $cc_basename in
24305	tcc*)
24306	  export_dynamic_flag_spec_F77='-rdynamic'
24307	  ;;
24308	xlf* | bgf* | bgxlf* | mpixlf*)
24309          XLF_VERSION=$($CC -qversion 2>/dev/null | sed 1q | sed -e "s+^.*V++" | sed -e "s+\..*++")
24310          if test $XLF_VERSION -ge 13; then
24311              archive_cmds_F77='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
24312              if test yes = "$supports_anon_versioning"; then
24313                archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
24314                  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24315                  echo "local: *; };" >> $output_objdir/$libname.ver~
24316                  $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
24317              fi
24318          else
24319              # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
24320              whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
24321              hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
24322              archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
24323              if test yes = "$supports_anon_versioning"; then
24324                archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
24325                  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24326                  echo "local: *; };" >> $output_objdir/$libname.ver~
24327                  $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
24328              fi
24329          fi
24330	  ;;
24331	esac
24332      else
24333        ld_shlibs_F77=no
24334      fi
24335      ;;
24336
24337    netbsd*)
24338      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24339	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24340	wlarc=
24341      else
24342	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
24343	archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
24344      fi
24345      ;;
24346
24347    solaris*)
24348      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
24349	ld_shlibs_F77=no
24350	cat <<_LT_EOF 1>&2
24351
24352*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24353*** create shared libraries on Solaris systems.  Therefore, libtool
24354*** is disabling shared libraries support.  We urge you to upgrade GNU
24355*** binutils to release 2.9.1 or newer.  Another option is to modify
24356*** your PATH or compiler configuration so that the native linker is
24357*** used, and then restart.
24358
24359_LT_EOF
24360      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
24361	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
24362	archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
24363      else
24364	ld_shlibs_F77=no
24365      fi
24366      ;;
24367
24368    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24369      case `$LD -v 2>&1` in
24370        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24371	ld_shlibs_F77=no
24372	cat <<_LT_EOF 1>&2
24373
24374*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
24375*** reliably create shared libraries on SCO systems.  Therefore, libtool
24376*** is disabling shared libraries support.  We urge you to upgrade GNU
24377*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24378*** your PATH or compiler configuration so that the native linker is
24379*** used, and then restart.
24380
24381_LT_EOF
24382	;;
24383	*)
24384	  # For security reasons, it is highly recommended that you always
24385	  # use absolute paths for naming shared libraries, and exclude the
24386	  # DT_RUNPATH tag from executables and libraries.  But doing so
24387	  # requires that you compile everything twice, which is a pain.
24388	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
24389	    hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
24390	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
24391	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
24392	  else
24393	    ld_shlibs_F77=no
24394	  fi
24395	;;
24396      esac
24397      ;;
24398
24399    sunos4*)
24400      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24401      wlarc=
24402      hardcode_direct_F77=yes
24403      hardcode_shlibpath_var_F77=no
24404      ;;
24405
24406    *)
24407      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
24408	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
24409	archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
24410      else
24411	ld_shlibs_F77=no
24412      fi
24413      ;;
24414    esac
24415
24416    if test no = "$ld_shlibs_F77"; then
24417      runpath_var=
24418      hardcode_libdir_flag_spec_F77=
24419      export_dynamic_flag_spec_F77=
24420      whole_archive_flag_spec_F77=
24421    fi
24422  else
24423    # PORTME fill in a description of your system's linker (not GNU ld)
24424    case $host_os in
24425    aix3*)
24426      allow_undefined_flag_F77=unsupported
24427      always_export_symbols_F77=yes
24428      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
24429      # Note: this linker hardcodes the directories in LIBPATH if there
24430      # are no directories specified by -L.
24431      hardcode_minus_L_F77=yes
24432      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
24433	# Neither direct hardcoding nor static linking is supported with a
24434	# broken collect2.
24435	hardcode_direct_F77=unsupported
24436      fi
24437      ;;
24438
24439    aix[4-9]*)
24440      if test ia64 = "$host_cpu"; then
24441	# On IA64, the linker does run time linking by default, so we don't
24442	# have to do anything special.
24443	aix_use_runtimelinking=no
24444	exp_sym_flag='-Bexport'
24445	no_entry_flag=
24446      else
24447	# If we're using GNU nm, then we don't want the "-C" option.
24448	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
24449	# Without the "-l" option, or with the "-B" option, AIX nm treats
24450	# weak defined symbols like other global defined symbols, whereas
24451	# GNU nm marks them as "W".
24452	# While the 'weak' keyword is ignored in the Export File, we need
24453	# it in the Import File for the 'aix-soname' feature, so we have
24454	# to replace the "-B" option with "-P" for AIX nm.
24455	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
24456	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
24457	else
24458	  export_symbols_cmds_F77='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
24459	fi
24460	aix_use_runtimelinking=no
24461
24462	# Test if we are trying to use run time linking or normal
24463	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24464	# have runtime linking enabled, and use it for executables.
24465	# For shared libraries, we enable/disable runtime linking
24466	# depending on the kind of the shared library created -
24467	# when "with_aix_soname,aix_use_runtimelinking" is:
24468	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
24469	# "aix,yes"  lib.so          shared, rtl:yes, for executables
24470	#            lib.a           static archive
24471	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
24472	#            lib.a(lib.so.V) shared, rtl:no,  for executables
24473	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
24474	#            lib.a(lib.so.V) shared, rtl:no
24475	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
24476	#            lib.a           static archive
24477	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
24478	  for ld_flag in $LDFLAGS; do
24479	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
24480	    aix_use_runtimelinking=yes
24481	    break
24482	  fi
24483	  done
24484	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
24485	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
24486	    # so we don't have lib.a shared libs to link our executables.
24487	    # We have to force runtime linking in this case.
24488	    aix_use_runtimelinking=yes
24489	    LDFLAGS="$LDFLAGS -Wl,-brtl"
24490	  fi
24491	  ;;
24492	esac
24493
24494	exp_sym_flag='-bexport'
24495	no_entry_flag='-bnoentry'
24496      fi
24497
24498      # When large executables or shared objects are built, AIX ld can
24499      # have problems creating the table of contents.  If linking a library
24500      # or program results in "error TOC overflow" add -mminimal-toc to
24501      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24502      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24503
24504      archive_cmds_F77=''
24505      hardcode_direct_F77=yes
24506      hardcode_direct_absolute_F77=yes
24507      hardcode_libdir_separator_F77=':'
24508      link_all_deplibs_F77=yes
24509      file_list_spec_F77='$wl-f,'
24510      case $with_aix_soname,$aix_use_runtimelinking in
24511      aix,*) ;; # traditional, no import file
24512      svr4,* | *,yes) # use import file
24513	# The Import File defines what to hardcode.
24514	hardcode_direct_F77=no
24515	hardcode_direct_absolute_F77=no
24516	;;
24517      esac
24518
24519      if test yes = "$GCC"; then
24520	case $host_os in aix4.[012]|aix4.[012].*)
24521	# We only want to do this on AIX 4.2 and lower, the check
24522	# below for broken collect2 doesn't work under 4.3+
24523	  collect2name=`$CC -print-prog-name=collect2`
24524	  if test -f "$collect2name" &&
24525	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
24526	  then
24527	  # We have reworked collect2
24528	  :
24529	  else
24530	  # We have old collect2
24531	  hardcode_direct_F77=unsupported
24532	  # It fails to find uninstalled libraries when the uninstalled
24533	  # path is not listed in the libpath.  Setting hardcode_minus_L
24534	  # to unsupported forces relinking
24535	  hardcode_minus_L_F77=yes
24536	  hardcode_libdir_flag_spec_F77='-L$libdir'
24537	  hardcode_libdir_separator_F77=
24538	  fi
24539	  ;;
24540	esac
24541	shared_flag='-shared'
24542	if test yes = "$aix_use_runtimelinking"; then
24543	  shared_flag="$shared_flag "'$wl-G'
24544	fi
24545	# Need to ensure runtime linking is disabled for the traditional
24546	# shared library, or the linker may eventually find shared libraries
24547	# /with/ Import File - we do not want to mix them.
24548	shared_flag_aix='-shared'
24549	shared_flag_svr4='-shared $wl-G'
24550      else
24551	# not using gcc
24552	if test ia64 = "$host_cpu"; then
24553	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24554	# chokes on -Wl,-G. The following line is correct:
24555	  shared_flag='-G'
24556	else
24557	  if test yes = "$aix_use_runtimelinking"; then
24558	    shared_flag='$wl-G'
24559	  else
24560	    shared_flag='$wl-bM:SRE'
24561	  fi
24562	  shared_flag_aix='$wl-bM:SRE'
24563	  shared_flag_svr4='$wl-G'
24564	fi
24565      fi
24566
24567      export_dynamic_flag_spec_F77='$wl-bexpall'
24568      # It seems that -bexpall does not export symbols beginning with
24569      # underscore (_), so it is better to generate a list of symbols to export.
24570      always_export_symbols_F77=yes
24571      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
24572	# Warning - without using the other runtime loading flags (-brtl),
24573	# -berok will link without error, but may produce a broken library.
24574	allow_undefined_flag_F77='-berok'
24575        # Determine the default libpath from the value encoded in an
24576        # empty executable.
24577        if test set = "${lt_cv_aix_libpath+set}"; then
24578  aix_libpath=$lt_cv_aix_libpath
24579else
24580  if ${lt_cv_aix_libpath__F77+:} false; then :
24581  $as_echo_n "(cached) " >&6
24582else
24583  cat > conftest.$ac_ext <<_ACEOF
24584      program main
24585
24586      end
24587_ACEOF
24588if ac_fn_f77_try_link "$LINENO"; then :
24589
24590  lt_aix_libpath_sed='
24591      /Import File Strings/,/^$/ {
24592	  /^0/ {
24593	      s/^0  *\([^ ]*\) *$/\1/
24594	      p
24595	  }
24596      }'
24597  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24598  # Check for a 64-bit object if we didn't find anything.
24599  if test -z "$lt_cv_aix_libpath__F77"; then
24600    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24601  fi
24602fi
24603rm -f core conftest.err conftest.$ac_objext \
24604    conftest$ac_exeext conftest.$ac_ext
24605  if test -z "$lt_cv_aix_libpath__F77"; then
24606    lt_cv_aix_libpath__F77=/usr/lib:/lib
24607  fi
24608
24609fi
24610
24611  aix_libpath=$lt_cv_aix_libpath__F77
24612fi
24613
24614        hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
24615        archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
24616      else
24617	if test ia64 = "$host_cpu"; then
24618	  hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib'
24619	  allow_undefined_flag_F77="-z nodefs"
24620	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
24621	else
24622	 # Determine the default libpath from the value encoded in an
24623	 # empty executable.
24624	 if test set = "${lt_cv_aix_libpath+set}"; then
24625  aix_libpath=$lt_cv_aix_libpath
24626else
24627  if ${lt_cv_aix_libpath__F77+:} false; then :
24628  $as_echo_n "(cached) " >&6
24629else
24630  cat > conftest.$ac_ext <<_ACEOF
24631      program main
24632
24633      end
24634_ACEOF
24635if ac_fn_f77_try_link "$LINENO"; then :
24636
24637  lt_aix_libpath_sed='
24638      /Import File Strings/,/^$/ {
24639	  /^0/ {
24640	      s/^0  *\([^ ]*\) *$/\1/
24641	      p
24642	  }
24643      }'
24644  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24645  # Check for a 64-bit object if we didn't find anything.
24646  if test -z "$lt_cv_aix_libpath__F77"; then
24647    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24648  fi
24649fi
24650rm -f core conftest.err conftest.$ac_objext \
24651    conftest$ac_exeext conftest.$ac_ext
24652  if test -z "$lt_cv_aix_libpath__F77"; then
24653    lt_cv_aix_libpath__F77=/usr/lib:/lib
24654  fi
24655
24656fi
24657
24658  aix_libpath=$lt_cv_aix_libpath__F77
24659fi
24660
24661	 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
24662	  # Warning - without using the other run time loading flags,
24663	  # -berok will link without error, but may produce a broken library.
24664	  no_undefined_flag_F77=' $wl-bernotok'
24665	  allow_undefined_flag_F77=' $wl-berok'
24666	  if test yes = "$with_gnu_ld"; then
24667	    # We only use this code for GNU lds that support --whole-archive.
24668	    whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive'
24669	  else
24670	    # Exported symbols can be pulled into shared objects from archives
24671	    whole_archive_flag_spec_F77='$convenience'
24672	  fi
24673	  archive_cmds_need_lc_F77=yes
24674	  archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
24675	  # -brtl affects multiple linker settings, -berok does not and is overridden later
24676	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
24677	  if test svr4 != "$with_aix_soname"; then
24678	    # This is similar to how AIX traditionally builds its shared libraries.
24679	    archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
24680	  fi
24681	  if test aix != "$with_aix_soname"; then
24682	    archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
24683	  else
24684	    # used by -dlpreopen to get the symbols
24685	    archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
24686	  fi
24687	  archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d'
24688	fi
24689      fi
24690      ;;
24691
24692    amigaos*)
24693      case $host_cpu in
24694      powerpc)
24695            # see comment about AmigaOS4 .so support
24696            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
24697            archive_expsym_cmds_F77=''
24698        ;;
24699      m68k)
24700            archive_cmds_F77='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
24701            hardcode_libdir_flag_spec_F77='-L$libdir'
24702            hardcode_minus_L_F77=yes
24703        ;;
24704      esac
24705      ;;
24706
24707    bsdi[45]*)
24708      export_dynamic_flag_spec_F77=-rdynamic
24709      ;;
24710
24711    cygwin* | mingw* | pw32* | cegcc*)
24712      # When not using gcc, we currently assume that we are using
24713      # Microsoft Visual C++.
24714      # hardcode_libdir_flag_spec is actually meaningless, as there is
24715      # no search path for DLLs.
24716      case $cc_basename in
24717      cl*)
24718	# Native MSVC
24719	hardcode_libdir_flag_spec_F77=' '
24720	allow_undefined_flag_F77=unsupported
24721	always_export_symbols_F77=yes
24722	file_list_spec_F77='@'
24723	# Tell ltmain to make .lib files, not .a files.
24724	libext=lib
24725	# Tell ltmain to make .dll files, not .so files.
24726	shrext_cmds=.dll
24727	# FIXME: Setting linknames here is a bad hack.
24728	archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
24729	archive_expsym_cmds_F77='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
24730            cp "$export_symbols" "$output_objdir/$soname.def";
24731            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
24732          else
24733            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
24734          fi~
24735          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
24736          linknames='
24737	# The linker will not automatically build a static lib if we build a DLL.
24738	# _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
24739	enable_shared_with_static_runtimes_F77=yes
24740	exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
24741	export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
24742	# Don't use ranlib
24743	old_postinstall_cmds_F77='chmod 644 $oldlib'
24744	postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
24745          lt_tool_outputfile="@TOOL_OUTPUT@"~
24746          case $lt_outputfile in
24747            *.exe|*.EXE) ;;
24748            *)
24749              lt_outputfile=$lt_outputfile.exe
24750              lt_tool_outputfile=$lt_tool_outputfile.exe
24751              ;;
24752          esac~
24753          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
24754            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
24755            $RM "$lt_outputfile.manifest";
24756          fi'
24757	;;
24758      *)
24759	# Assume MSVC wrapper
24760	hardcode_libdir_flag_spec_F77=' '
24761	allow_undefined_flag_F77=unsupported
24762	# Tell ltmain to make .lib files, not .a files.
24763	libext=lib
24764	# Tell ltmain to make .dll files, not .so files.
24765	shrext_cmds=.dll
24766	# FIXME: Setting linknames here is a bad hack.
24767	archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
24768	# The linker will automatically build a .lib file if we build a DLL.
24769	old_archive_from_new_cmds_F77='true'
24770	# FIXME: Should let the user specify the lib program.
24771	old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
24772	enable_shared_with_static_runtimes_F77=yes
24773	;;
24774      esac
24775      ;;
24776
24777    darwin* | rhapsody*)
24778
24779
24780  archive_cmds_need_lc_F77=no
24781  hardcode_direct_F77=no
24782  hardcode_automatic_F77=yes
24783  hardcode_shlibpath_var_F77=unsupported
24784  if test yes = "$lt_cv_ld_force_load"; then
24785    whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
24786    compiler_needs_object_F77=yes
24787  else
24788    whole_archive_flag_spec_F77=''
24789  fi
24790  link_all_deplibs_F77=yes
24791  allow_undefined_flag_F77=$_lt_dar_allow_undefined
24792  case $cc_basename in
24793     ifort*|nagfor*)
24794        lt_prog_compiler_wl_F77='-Wl,'
24795        _lt_dar_can_shared=yes
24796      ;;
24797     *) _lt_dar_can_shared=$GCC ;;
24798  esac
24799  if test yes = "$_lt_dar_can_shared"; then
24800    output_verbose_link_cmd=func_echo_all
24801    archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
24802    module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
24803    archive_expsym_cmds_F77="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
24804    module_expsym_cmds_F77="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
24805
24806  else
24807  ld_shlibs_F77=no
24808  fi
24809
24810      ;;
24811
24812    dgux*)
24813      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24814      hardcode_libdir_flag_spec_F77='-L$libdir'
24815      hardcode_shlibpath_var_F77=no
24816      ;;
24817
24818    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24819    # support.  Future versions do this automatically, but an explicit c++rt0.o
24820    # does not break anything, and helps significantly (at the cost of a little
24821    # extra space).
24822    freebsd2.2*)
24823      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24824      hardcode_libdir_flag_spec_F77='-R$libdir'
24825      hardcode_direct_F77=yes
24826      hardcode_shlibpath_var_F77=no
24827      ;;
24828
24829    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24830    freebsd2.*)
24831      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24832      hardcode_direct_F77=yes
24833      hardcode_minus_L_F77=yes
24834      hardcode_shlibpath_var_F77=no
24835      ;;
24836
24837    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24838    freebsd* | dragonfly*)
24839      archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24840      hardcode_libdir_flag_spec_F77='-R$libdir'
24841      hardcode_direct_F77=yes
24842      hardcode_shlibpath_var_F77=no
24843      ;;
24844
24845    hpux9*)
24846      if test yes = "$GCC"; then
24847	archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
24848      else
24849	archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
24850      fi
24851      hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
24852      hardcode_libdir_separator_F77=:
24853      hardcode_direct_F77=yes
24854
24855      # hardcode_minus_L: Not really in the search PATH,
24856      # but as the default location of the library.
24857      hardcode_minus_L_F77=yes
24858      export_dynamic_flag_spec_F77='$wl-E'
24859      ;;
24860
24861    hpux10*)
24862      if test yes,no = "$GCC,$with_gnu_ld"; then
24863	archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24864      else
24865	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24866      fi
24867      if test no = "$with_gnu_ld"; then
24868	hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
24869	hardcode_libdir_separator_F77=:
24870	hardcode_direct_F77=yes
24871	hardcode_direct_absolute_F77=yes
24872	export_dynamic_flag_spec_F77='$wl-E'
24873	# hardcode_minus_L: Not really in the search PATH,
24874	# but as the default location of the library.
24875	hardcode_minus_L_F77=yes
24876      fi
24877      ;;
24878
24879    hpux11*)
24880      if test yes,no = "$GCC,$with_gnu_ld"; then
24881	case $host_cpu in
24882	hppa*64*)
24883	  archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
24884	  ;;
24885	ia64*)
24886	  archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24887	  ;;
24888	*)
24889	  archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24890	  ;;
24891	esac
24892      else
24893	case $host_cpu in
24894	hppa*64*)
24895	  archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
24896	  ;;
24897	ia64*)
24898	  archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24899	  ;;
24900	*)
24901	archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24902	  ;;
24903	esac
24904      fi
24905      if test no = "$with_gnu_ld"; then
24906	hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
24907	hardcode_libdir_separator_F77=:
24908
24909	case $host_cpu in
24910	hppa*64*|ia64*)
24911	  hardcode_direct_F77=no
24912	  hardcode_shlibpath_var_F77=no
24913	  ;;
24914	*)
24915	  hardcode_direct_F77=yes
24916	  hardcode_direct_absolute_F77=yes
24917	  export_dynamic_flag_spec_F77='$wl-E'
24918
24919	  # hardcode_minus_L: Not really in the search PATH,
24920	  # but as the default location of the library.
24921	  hardcode_minus_L_F77=yes
24922	  ;;
24923	esac
24924      fi
24925      ;;
24926
24927    irix5* | irix6* | nonstopux*)
24928      if test yes = "$GCC"; then
24929	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
24930	# Try to use the -exported_symbol ld option, if it does not
24931	# work, assume that -exports_file does not work either and
24932	# implicitly export all symbols.
24933	# This should be the same for all languages, so no per-tag cache variable.
24934	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
24935$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
24936if ${lt_cv_irix_exported_symbol+:} false; then :
24937  $as_echo_n "(cached) " >&6
24938else
24939  save_LDFLAGS=$LDFLAGS
24940	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
24941	   cat > conftest.$ac_ext <<_ACEOF
24942
24943      subroutine foo
24944      end
24945_ACEOF
24946if ac_fn_f77_try_link "$LINENO"; then :
24947  lt_cv_irix_exported_symbol=yes
24948else
24949  lt_cv_irix_exported_symbol=no
24950fi
24951rm -f core conftest.err conftest.$ac_objext \
24952    conftest$ac_exeext conftest.$ac_ext
24953           LDFLAGS=$save_LDFLAGS
24954fi
24955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
24956$as_echo "$lt_cv_irix_exported_symbol" >&6; }
24957	if test yes = "$lt_cv_irix_exported_symbol"; then
24958          archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
24959	fi
24960      else
24961	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
24962	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
24963      fi
24964      archive_cmds_need_lc_F77='no'
24965      hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
24966      hardcode_libdir_separator_F77=:
24967      inherit_rpath_F77=yes
24968      link_all_deplibs_F77=yes
24969      ;;
24970
24971    linux*)
24972      case $cc_basename in
24973      tcc*)
24974	# Fabrice Bellard et al's Tiny C Compiler
24975	ld_shlibs_F77=yes
24976	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24977	;;
24978      esac
24979      ;;
24980
24981    netbsd*)
24982      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
24983	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24984      else
24985	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24986      fi
24987      hardcode_libdir_flag_spec_F77='-R$libdir'
24988      hardcode_direct_F77=yes
24989      hardcode_shlibpath_var_F77=no
24990      ;;
24991
24992    newsos6)
24993      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24994      hardcode_direct_F77=yes
24995      hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
24996      hardcode_libdir_separator_F77=:
24997      hardcode_shlibpath_var_F77=no
24998      ;;
24999
25000    *nto* | *qnx*)
25001      ;;
25002
25003    openbsd* | bitrig*)
25004      if test -f /usr/libexec/ld.so; then
25005	hardcode_direct_F77=yes
25006	hardcode_shlibpath_var_F77=no
25007	hardcode_direct_absolute_F77=yes
25008	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
25009	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25010	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
25011	  hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
25012	  export_dynamic_flag_spec_F77='$wl-E'
25013	else
25014	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25015	  hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
25016	fi
25017      else
25018	ld_shlibs_F77=no
25019      fi
25020      ;;
25021
25022    os2*)
25023      hardcode_libdir_flag_spec_F77='-L$libdir'
25024      hardcode_minus_L_F77=yes
25025      allow_undefined_flag_F77=unsupported
25026      shrext_cmds=.dll
25027      archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
25028	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
25029	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
25030	$ECHO EXPORTS >> $output_objdir/$libname.def~
25031	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
25032	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
25033	emximp -o $lib $output_objdir/$libname.def'
25034      archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
25035	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
25036	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
25037	$ECHO EXPORTS >> $output_objdir/$libname.def~
25038	prefix_cmds="$SED"~
25039	if test EXPORTS = "`$SED 1q $export_symbols`"; then
25040	  prefix_cmds="$prefix_cmds -e 1d";
25041	fi~
25042	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
25043	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
25044	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
25045	emximp -o $lib $output_objdir/$libname.def'
25046      old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
25047      enable_shared_with_static_runtimes_F77=yes
25048      ;;
25049
25050    osf3*)
25051      if test yes = "$GCC"; then
25052	allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
25053	archive_cmds_F77='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
25054      else
25055	allow_undefined_flag_F77=' -expect_unresolved \*'
25056	archive_cmds_F77='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
25057      fi
25058      archive_cmds_need_lc_F77='no'
25059      hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
25060      hardcode_libdir_separator_F77=:
25061      ;;
25062
25063    osf4* | osf5*)	# as osf3* with the addition of -msym flag
25064      if test yes = "$GCC"; then
25065	allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
25066	archive_cmds_F77='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
25067	hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
25068      else
25069	allow_undefined_flag_F77=' -expect_unresolved \*'
25070	archive_cmds_F77='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
25071	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
25072          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
25073
25074	# Both c and cxx compiler support -rpath directly
25075	hardcode_libdir_flag_spec_F77='-rpath $libdir'
25076      fi
25077      archive_cmds_need_lc_F77='no'
25078      hardcode_libdir_separator_F77=:
25079      ;;
25080
25081    solaris*)
25082      no_undefined_flag_F77=' -z defs'
25083      if test yes = "$GCC"; then
25084	wlarc='$wl'
25085	archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
25086	archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
25087          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
25088      else
25089	case `$CC -V 2>&1` in
25090	*"Compilers 5.0"*)
25091	  wlarc=''
25092	  archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
25093	  archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
25094            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
25095	  ;;
25096	*)
25097	  wlarc='$wl'
25098	  archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
25099	  archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
25100            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
25101	  ;;
25102	esac
25103      fi
25104      hardcode_libdir_flag_spec_F77='-R$libdir'
25105      hardcode_shlibpath_var_F77=no
25106      case $host_os in
25107      solaris2.[0-5] | solaris2.[0-5].*) ;;
25108      *)
25109	# The compiler driver will combine and reorder linker options,
25110	# but understands '-z linker_flag'.  GCC discards it without '$wl',
25111	# but is careful enough not to reorder.
25112	# Supported since Solaris 2.6 (maybe 2.5.1?)
25113	if test yes = "$GCC"; then
25114	  whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
25115	else
25116	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
25117	fi
25118	;;
25119      esac
25120      link_all_deplibs_F77=yes
25121      ;;
25122
25123    sunos4*)
25124      if test sequent = "$host_vendor"; then
25125	# Use $CC to link under sequent, because it throws in some extra .o
25126	# files that make .init and .fini sections work.
25127	archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25128      else
25129	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25130      fi
25131      hardcode_libdir_flag_spec_F77='-L$libdir'
25132      hardcode_direct_F77=yes
25133      hardcode_minus_L_F77=yes
25134      hardcode_shlibpath_var_F77=no
25135      ;;
25136
25137    sysv4)
25138      case $host_vendor in
25139	sni)
25140	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25141	  hardcode_direct_F77=yes # is this really true???
25142	;;
25143	siemens)
25144	  ## LD is ld it makes a PLAMLIB
25145	  ## CC just makes a GrossModule.
25146	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25147	  reload_cmds_F77='$CC -r -o $output$reload_objs'
25148	  hardcode_direct_F77=no
25149        ;;
25150	motorola)
25151	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25152	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
25153	;;
25154      esac
25155      runpath_var='LD_RUN_PATH'
25156      hardcode_shlibpath_var_F77=no
25157      ;;
25158
25159    sysv4.3*)
25160      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25161      hardcode_shlibpath_var_F77=no
25162      export_dynamic_flag_spec_F77='-Bexport'
25163      ;;
25164
25165    sysv4*MP*)
25166      if test -d /usr/nec; then
25167	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25168	hardcode_shlibpath_var_F77=no
25169	runpath_var=LD_RUN_PATH
25170	hardcode_runpath_var=yes
25171	ld_shlibs_F77=yes
25172      fi
25173      ;;
25174
25175    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
25176      no_undefined_flag_F77='$wl-z,text'
25177      archive_cmds_need_lc_F77=no
25178      hardcode_shlibpath_var_F77=no
25179      runpath_var='LD_RUN_PATH'
25180
25181      if test yes = "$GCC"; then
25182	archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25183	archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25184      else
25185	archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25186	archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25187      fi
25188      ;;
25189
25190    sysv5* | sco3.2v5* | sco5v6*)
25191      # Note: We CANNOT use -z defs as we might desire, because we do not
25192      # link with -lc, and that would cause any symbols used from libc to
25193      # always be unresolved, which means just about no library would
25194      # ever link correctly.  If we're not using GNU ld we use -z text
25195      # though, which does catch some bad symbols but isn't as heavy-handed
25196      # as -z defs.
25197      no_undefined_flag_F77='$wl-z,text'
25198      allow_undefined_flag_F77='$wl-z,nodefs'
25199      archive_cmds_need_lc_F77=no
25200      hardcode_shlibpath_var_F77=no
25201      hardcode_libdir_flag_spec_F77='$wl-R,$libdir'
25202      hardcode_libdir_separator_F77=':'
25203      link_all_deplibs_F77=yes
25204      export_dynamic_flag_spec_F77='$wl-Bexport'
25205      runpath_var='LD_RUN_PATH'
25206
25207      if test yes = "$GCC"; then
25208	archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25209	archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25210      else
25211	archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25212	archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25213      fi
25214      ;;
25215
25216    uts4*)
25217      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25218      hardcode_libdir_flag_spec_F77='-L$libdir'
25219      hardcode_shlibpath_var_F77=no
25220      ;;
25221
25222    *)
25223      ld_shlibs_F77=no
25224      ;;
25225    esac
25226
25227    if test sni = "$host_vendor"; then
25228      case $host in
25229      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
25230	export_dynamic_flag_spec_F77='$wl-Blargedynsym'
25231	;;
25232      esac
25233    fi
25234  fi
25235
25236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
25237$as_echo "$ld_shlibs_F77" >&6; }
25238test no = "$ld_shlibs_F77" && can_build_shared=no
25239
25240with_gnu_ld_F77=$with_gnu_ld
25241
25242
25243
25244
25245
25246
25247#
25248# Do we need to explicitly link libc?
25249#
25250case "x$archive_cmds_need_lc_F77" in
25251x|xyes)
25252  # Assume -lc should be added
25253  archive_cmds_need_lc_F77=yes
25254
25255  if test yes,yes = "$GCC,$enable_shared"; then
25256    case $archive_cmds_F77 in
25257    *'~'*)
25258      # FIXME: we may have to deal with multi-command sequences.
25259      ;;
25260    '$CC '*)
25261      # Test whether the compiler implicitly links with -lc since on some
25262      # systems, -lgcc has to come before -lc. If gcc already passes -lc
25263      # to ld, don't add -lc before -lgcc.
25264      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
25265$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
25266if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
25267  $as_echo_n "(cached) " >&6
25268else
25269  $RM conftest*
25270	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25271
25272	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
25273  (eval $ac_compile) 2>&5
25274  ac_status=$?
25275  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25276  test $ac_status = 0; } 2>conftest.err; then
25277	  soname=conftest
25278	  lib=conftest
25279	  libobjs=conftest.$ac_objext
25280	  deplibs=
25281	  wl=$lt_prog_compiler_wl_F77
25282	  pic_flag=$lt_prog_compiler_pic_F77
25283	  compiler_flags=-v
25284	  linker_flags=-v
25285	  verstring=
25286	  output_objdir=.
25287	  libname=conftest
25288	  lt_save_allow_undefined_flag=$allow_undefined_flag_F77
25289	  allow_undefined_flag_F77=
25290	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
25291  (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
25292  ac_status=$?
25293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294  test $ac_status = 0; }
25295	  then
25296	    lt_cv_archive_cmds_need_lc_F77=no
25297	  else
25298	    lt_cv_archive_cmds_need_lc_F77=yes
25299	  fi
25300	  allow_undefined_flag_F77=$lt_save_allow_undefined_flag
25301	else
25302	  cat conftest.err 1>&5
25303	fi
25304	$RM conftest*
25305
25306fi
25307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
25308$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
25309      archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
25310      ;;
25311    esac
25312  fi
25313  ;;
25314esac
25315
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
25378$as_echo_n "checking dynamic linker characteristics... " >&6; }
25379
25380library_names_spec=
25381libname_spec='lib$name'
25382soname_spec=
25383shrext_cmds=.so
25384postinstall_cmds=
25385postuninstall_cmds=
25386finish_cmds=
25387finish_eval=
25388shlibpath_var=
25389shlibpath_overrides_runpath=unknown
25390version_type=none
25391dynamic_linker="$host_os ld.so"
25392sys_lib_dlsearch_path_spec="/lib /usr/lib"
25393need_lib_prefix=unknown
25394hardcode_into_libs=no
25395
25396# when you set need_version to no, make sure it does not cause -set_version
25397# flags to be left without arguments
25398need_version=unknown
25399
25400
25401
25402case $host_os in
25403aix3*)
25404  version_type=linux # correct to gnu/linux during the next big refactor
25405  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
25406  shlibpath_var=LIBPATH
25407
25408  # AIX 3 has no versioning support, so we append a major version to the name.
25409  soname_spec='$libname$release$shared_ext$major'
25410  ;;
25411
25412aix[4-9]*)
25413  version_type=linux # correct to gnu/linux during the next big refactor
25414  need_lib_prefix=no
25415  need_version=no
25416  hardcode_into_libs=yes
25417  if test ia64 = "$host_cpu"; then
25418    # AIX 5 supports IA64
25419    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
25420    shlibpath_var=LD_LIBRARY_PATH
25421  else
25422    # With GCC up to 2.95.x, collect2 would create an import file
25423    # for dependence libraries.  The import file would start with
25424    # the line '#! .'.  This would cause the generated library to
25425    # depend on '.', always an invalid library.  This was fixed in
25426    # development snapshots of GCC prior to 3.0.
25427    case $host_os in
25428      aix4 | aix4.[01] | aix4.[01].*)
25429      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25430	   echo ' yes '
25431	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
25432	:
25433      else
25434	can_build_shared=no
25435      fi
25436      ;;
25437    esac
25438    # Using Import Files as archive members, it is possible to support
25439    # filename-based versioning of shared library archives on AIX. While
25440    # this would work for both with and without runtime linking, it will
25441    # prevent static linking of such archives. So we do filename-based
25442    # shared library versioning with .so extension only, which is used
25443    # when both runtime linking and shared linking is enabled.
25444    # Unfortunately, runtime linking may impact performance, so we do
25445    # not want this to be the default eventually. Also, we use the
25446    # versioned .so libs for executables only if there is the -brtl
25447    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
25448    # To allow for filename-based versioning support, we need to create
25449    # libNAME.so.V as an archive file, containing:
25450    # *) an Import File, referring to the versioned filename of the
25451    #    archive as well as the shared archive member, telling the
25452    #    bitwidth (32 or 64) of that shared object, and providing the
25453    #    list of exported symbols of that shared object, eventually
25454    #    decorated with the 'weak' keyword
25455    # *) the shared object with the F_LOADONLY flag set, to really avoid
25456    #    it being seen by the linker.
25457    # At run time we better use the real file rather than another symlink,
25458    # but for link time we create the symlink libNAME.so -> libNAME.so.V
25459
25460    case $with_aix_soname,$aix_use_runtimelinking in
25461    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
25462    # soname into executable. Probably we can add versioning support to
25463    # collect2, so additional links can be useful in future.
25464    aix,yes) # traditional libtool
25465      dynamic_linker='AIX unversionable lib.so'
25466      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25467      # instead of lib<name>.a to let people know that these are not
25468      # typical AIX shared libraries.
25469      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25470      ;;
25471    aix,no) # traditional AIX only
25472      dynamic_linker='AIX lib.a(lib.so.V)'
25473      # We preserve .a as extension for shared libraries through AIX4.2
25474      # and later when we are not doing run time linking.
25475      library_names_spec='$libname$release.a $libname.a'
25476      soname_spec='$libname$release$shared_ext$major'
25477      ;;
25478    svr4,*) # full svr4 only
25479      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
25480      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
25481      # We do not specify a path in Import Files, so LIBPATH fires.
25482      shlibpath_overrides_runpath=yes
25483      ;;
25484    *,yes) # both, prefer svr4
25485      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
25486      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
25487      # unpreferred sharedlib libNAME.a needs extra handling
25488      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
25489      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
25490      # We do not specify a path in Import Files, so LIBPATH fires.
25491      shlibpath_overrides_runpath=yes
25492      ;;
25493    *,no) # both, prefer aix
25494      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
25495      library_names_spec='$libname$release.a $libname.a'
25496      soname_spec='$libname$release$shared_ext$major'
25497      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
25498      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
25499      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
25500      ;;
25501    esac
25502    shlibpath_var=LIBPATH
25503  fi
25504  ;;
25505
25506amigaos*)
25507  case $host_cpu in
25508  powerpc)
25509    # Since July 2007 AmigaOS4 officially supports .so libraries.
25510    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
25511    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25512    ;;
25513  m68k)
25514    library_names_spec='$libname.ixlibrary $libname.a'
25515    # Create ${libname}_ixlibrary.a entries in /sys/libs.
25516    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
25517    ;;
25518  esac
25519  ;;
25520
25521beos*)
25522  library_names_spec='$libname$shared_ext'
25523  dynamic_linker="$host_os ld.so"
25524  shlibpath_var=LIBRARY_PATH
25525  ;;
25526
25527bsdi[45]*)
25528  version_type=linux # correct to gnu/linux during the next big refactor
25529  need_version=no
25530  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25531  soname_spec='$libname$release$shared_ext$major'
25532  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25533  shlibpath_var=LD_LIBRARY_PATH
25534  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25535  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25536  # the default ld.so.conf also contains /usr/contrib/lib and
25537  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25538  # libtool to hard-code these into programs
25539  ;;
25540
25541cygwin* | mingw* | pw32* | cegcc*)
25542  version_type=windows
25543  shrext_cmds=.dll
25544  need_version=no
25545  need_lib_prefix=no
25546
25547  case $GCC,$cc_basename in
25548  yes,*)
25549    # gcc
25550    library_names_spec='$libname.dll.a'
25551    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25552    postinstall_cmds='base_file=`basename \$file`~
25553      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
25554      dldir=$destdir/`dirname \$dlpath`~
25555      test -d \$dldir || mkdir -p \$dldir~
25556      $install_prog $dir/$dlname \$dldir/$dlname~
25557      chmod a+x \$dldir/$dlname~
25558      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
25559        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
25560      fi'
25561    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25562      dlpath=$dir/\$dldll~
25563       $RM \$dlpath'
25564    shlibpath_overrides_runpath=yes
25565
25566    case $host_os in
25567    cygwin*)
25568      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25569      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
25570
25571      ;;
25572    mingw* | cegcc*)
25573      # MinGW DLLs use traditional 'lib' prefix
25574      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
25575      ;;
25576    pw32*)
25577      # pw32 DLLs use 'pw' prefix rather than 'lib'
25578      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
25579      ;;
25580    esac
25581    dynamic_linker='Win32 ld.exe'
25582    ;;
25583
25584  *,cl*)
25585    # Native MSVC
25586    libname_spec='$name'
25587    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
25588    library_names_spec='$libname.dll.lib'
25589
25590    case $build_os in
25591    mingw*)
25592      sys_lib_search_path_spec=
25593      lt_save_ifs=$IFS
25594      IFS=';'
25595      for lt_path in $LIB
25596      do
25597        IFS=$lt_save_ifs
25598        # Let DOS variable expansion print the short 8.3 style file name.
25599        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
25600        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
25601      done
25602      IFS=$lt_save_ifs
25603      # Convert to MSYS style.
25604      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
25605      ;;
25606    cygwin*)
25607      # Convert to unix form, then to dos form, then back to unix form
25608      # but this time dos style (no spaces!) so that the unix form looks
25609      # like /cygdrive/c/PROGRA~1:/cygdr...
25610      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
25611      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
25612      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25613      ;;
25614    *)
25615      sys_lib_search_path_spec=$LIB
25616      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
25617        # It is most probably a Windows format PATH.
25618        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25619      else
25620        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25621      fi
25622      # FIXME: find the short name or the path components, as spaces are
25623      # common. (e.g. "Program Files" -> "PROGRA~1")
25624      ;;
25625    esac
25626
25627    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25628    postinstall_cmds='base_file=`basename \$file`~
25629      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
25630      dldir=$destdir/`dirname \$dlpath`~
25631      test -d \$dldir || mkdir -p \$dldir~
25632      $install_prog $dir/$dlname \$dldir/$dlname'
25633    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25634      dlpath=$dir/\$dldll~
25635       $RM \$dlpath'
25636    shlibpath_overrides_runpath=yes
25637    dynamic_linker='Win32 link.exe'
25638    ;;
25639
25640  *)
25641    # Assume MSVC wrapper
25642    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
25643    dynamic_linker='Win32 ld.exe'
25644    ;;
25645  esac
25646  # FIXME: first we should search . and the directory the executable is in
25647  shlibpath_var=PATH
25648  ;;
25649
25650darwin* | rhapsody*)
25651  dynamic_linker="$host_os dyld"
25652  version_type=darwin
25653  need_lib_prefix=no
25654  need_version=no
25655  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
25656  soname_spec='$libname$release$major$shared_ext'
25657  shlibpath_overrides_runpath=yes
25658  shlibpath_var=DYLD_LIBRARY_PATH
25659  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25660
25661  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25662  ;;
25663
25664dgux*)
25665  version_type=linux # correct to gnu/linux during the next big refactor
25666  need_lib_prefix=no
25667  need_version=no
25668  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25669  soname_spec='$libname$release$shared_ext$major'
25670  shlibpath_var=LD_LIBRARY_PATH
25671  ;;
25672
25673freebsd* | dragonfly*)
25674  # DragonFly does not have aout.  When/if they implement a new
25675  # versioning mechanism, adjust this.
25676  if test -x /usr/bin/objformat; then
25677    objformat=`/usr/bin/objformat`
25678  else
25679    case $host_os in
25680    freebsd[23].*) objformat=aout ;;
25681    *) objformat=elf ;;
25682    esac
25683  fi
25684  version_type=freebsd-$objformat
25685  case $version_type in
25686    freebsd-elf*)
25687      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25688      soname_spec='$libname$release$shared_ext$major'
25689      need_version=no
25690      need_lib_prefix=no
25691      ;;
25692    freebsd-*)
25693      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
25694      need_version=yes
25695      ;;
25696  esac
25697  shlibpath_var=LD_LIBRARY_PATH
25698  case $host_os in
25699  freebsd2.*)
25700    shlibpath_overrides_runpath=yes
25701    ;;
25702  freebsd3.[01]* | freebsdelf3.[01]*)
25703    shlibpath_overrides_runpath=yes
25704    hardcode_into_libs=yes
25705    ;;
25706  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25707  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25708    shlibpath_overrides_runpath=no
25709    hardcode_into_libs=yes
25710    ;;
25711  *) # from 4.6 on, and DragonFly
25712    shlibpath_overrides_runpath=yes
25713    hardcode_into_libs=yes
25714    ;;
25715  esac
25716  ;;
25717
25718haiku*)
25719  version_type=linux # correct to gnu/linux during the next big refactor
25720  need_lib_prefix=no
25721  need_version=no
25722  dynamic_linker="$host_os runtime_loader"
25723  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25724  soname_spec='$libname$release$shared_ext$major'
25725  shlibpath_var=LIBRARY_PATH
25726  shlibpath_overrides_runpath=no
25727  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
25728  hardcode_into_libs=yes
25729  ;;
25730
25731hpux9* | hpux10* | hpux11*)
25732  # Give a soname corresponding to the major version so that dld.sl refuses to
25733  # link against other versions.
25734  version_type=sunos
25735  need_lib_prefix=no
25736  need_version=no
25737  case $host_cpu in
25738  ia64*)
25739    shrext_cmds='.so'
25740    hardcode_into_libs=yes
25741    dynamic_linker="$host_os dld.so"
25742    shlibpath_var=LD_LIBRARY_PATH
25743    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25744    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25745    soname_spec='$libname$release$shared_ext$major'
25746    if test 32 = "$HPUX_IA64_MODE"; then
25747      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25748      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
25749    else
25750      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25751      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
25752    fi
25753    ;;
25754  hppa*64*)
25755    shrext_cmds='.sl'
25756    hardcode_into_libs=yes
25757    dynamic_linker="$host_os dld.sl"
25758    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25759    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25760    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25761    soname_spec='$libname$release$shared_ext$major'
25762    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25763    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25764    ;;
25765  *)
25766    shrext_cmds='.sl'
25767    dynamic_linker="$host_os dld.sl"
25768    shlibpath_var=SHLIB_PATH
25769    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25770    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25771    soname_spec='$libname$release$shared_ext$major'
25772    ;;
25773  esac
25774  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
25775  postinstall_cmds='chmod 555 $lib'
25776  # or fails outright, so override atomically:
25777  install_override_mode=555
25778  ;;
25779
25780interix[3-9]*)
25781  version_type=linux # correct to gnu/linux during the next big refactor
25782  need_lib_prefix=no
25783  need_version=no
25784  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25785  soname_spec='$libname$release$shared_ext$major'
25786  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25787  shlibpath_var=LD_LIBRARY_PATH
25788  shlibpath_overrides_runpath=no
25789  hardcode_into_libs=yes
25790  ;;
25791
25792irix5* | irix6* | nonstopux*)
25793  case $host_os in
25794    nonstopux*) version_type=nonstopux ;;
25795    *)
25796	if test yes = "$lt_cv_prog_gnu_ld"; then
25797		version_type=linux # correct to gnu/linux during the next big refactor
25798	else
25799		version_type=irix
25800	fi ;;
25801  esac
25802  need_lib_prefix=no
25803  need_version=no
25804  soname_spec='$libname$release$shared_ext$major'
25805  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
25806  case $host_os in
25807  irix5* | nonstopux*)
25808    libsuff= shlibsuff=
25809    ;;
25810  *)
25811    case $LD in # libtool.m4 will add one of these switches to LD
25812    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25813      libsuff= shlibsuff= libmagic=32-bit;;
25814    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25815      libsuff=32 shlibsuff=N32 libmagic=N32;;
25816    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25817      libsuff=64 shlibsuff=64 libmagic=64-bit;;
25818    *) libsuff= shlibsuff= libmagic=never-match;;
25819    esac
25820    ;;
25821  esac
25822  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25823  shlibpath_overrides_runpath=no
25824  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
25825  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
25826  hardcode_into_libs=yes
25827  ;;
25828
25829# No shared lib support for Linux oldld, aout, or coff.
25830linux*oldld* | linux*aout* | linux*coff*)
25831  dynamic_linker=no
25832  ;;
25833
25834linux*android*)
25835  version_type=none # Android doesn't support versioned libraries.
25836  need_lib_prefix=no
25837  need_version=no
25838  library_names_spec='$libname$release$shared_ext'
25839  soname_spec='$libname$release$shared_ext'
25840  finish_cmds=
25841  shlibpath_var=LD_LIBRARY_PATH
25842  shlibpath_overrides_runpath=yes
25843
25844  # This implies no fast_install, which is unacceptable.
25845  # Some rework will be needed to allow for fast_install
25846  # before this can be enabled.
25847  hardcode_into_libs=yes
25848
25849  dynamic_linker='Android linker'
25850  # Don't embed -rpath directories since the linker doesn't support them.
25851  hardcode_libdir_flag_spec_F77='-L$libdir'
25852  ;;
25853
25854# This must be glibc/ELF.
25855linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
25856  version_type=linux # correct to gnu/linux during the next big refactor
25857  need_lib_prefix=no
25858  need_version=no
25859  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25860  soname_spec='$libname$release$shared_ext$major'
25861  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25862  shlibpath_var=LD_LIBRARY_PATH
25863  shlibpath_overrides_runpath=no
25864
25865  # Some binutils ld are patched to set DT_RUNPATH
25866  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
25867  $as_echo_n "(cached) " >&6
25868else
25869  lt_cv_shlibpath_overrides_runpath=no
25870    save_LDFLAGS=$LDFLAGS
25871    save_libdir=$libdir
25872    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
25873	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
25874    cat > conftest.$ac_ext <<_ACEOF
25875      program main
25876
25877      end
25878_ACEOF
25879if ac_fn_f77_try_link "$LINENO"; then :
25880  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
25881  lt_cv_shlibpath_overrides_runpath=yes
25882fi
25883fi
25884rm -f core conftest.err conftest.$ac_objext \
25885    conftest$ac_exeext conftest.$ac_ext
25886    LDFLAGS=$save_LDFLAGS
25887    libdir=$save_libdir
25888
25889fi
25890
25891  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
25892
25893  # This implies no fast_install, which is unacceptable.
25894  # Some rework will be needed to allow for fast_install
25895  # before this can be enabled.
25896  hardcode_into_libs=yes
25897
25898  # Ideally, we could use ldconfig to report *all* directores which are
25899  # searched for libraries, however this is still not possible.  Aside from not
25900  # being certain /sbin/ldconfig is available, command
25901  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
25902  # even though it is searched at run-time.  Try to do the best guess by
25903  # appending ld.so.conf contents (and includes) to the search path.
25904
25905  # There is no easy way to reliably detect the sys dlsearch path. We will first
25906  # assume ldconfig reports the path correctly, but check it with the current
25907  # ld cache. If any cached path is not present in the generated path_spec, then
25908  # we know ldconfig is bad and should manually parse the ld.so.conf files.
25909  # Note the reported paths can be a superset of the cached paths.
25910  # The catch is that the default path may not be in the ld.so.conf. We have to
25911  # add any missing one back to the path_spec (from the cached paths).
25912
25913  if test -x /sbin/ldconfig; then
25914    sys_lib_dlsearch_path_spec=`/sbin/ldconfig -N -X -v 2>/dev/null | grep ^/ | sed -e 's/:.*//g' | tr '\n' ' '`
25915    cached_lib_dlsearch_path=`/sbin/ldconfig -p | sed -e 's/.*=> //g' | grep '^/' | while read p; do dirname $p; done | sort | uniq | tr '\n' ' '`
25916    for p in `echo $cached_lib_dlsearch_path`; do
25917      case "$sys_lib_dlsearch_path_spec" in
25918        *$p*)
25919            bad_ldconfig=no
25920            ;;
25921           *)
25922            # ldconfig is bad if cached path is not reported
25923            bad_ldconfig=yes
25924            break
25925            ;;
25926      esac
25927    done
25928  else
25929    bad_ldconfig=yes
25930  fi
25931
25932  if test "$bad_ldconfig" = "yes"; then
25933    if test -f /etc/ld.so.conf; then
25934      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
25935      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25936    fi
25937
25938    # catch anything that in the cached path but not in the conf files
25939    for p in `echo $cached_lib_dlsearch_path`; do
25940      case "$sys_lib_dlsearch_path_spec" in
25941        *$p*)
25942            ;;
25943           *)
25944            sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $p"
25945            ;;
25946      esac
25947    done
25948  fi
25949
25950  # We used to test for /lib/ld.so.1 and disable shared libraries on
25951  # powerpc, because MkLinux only supported shared libraries with the
25952  # GNU dynamic linker.  Since this was broken with cross compilers,
25953  # most powerpc-linux boxes support dynamic linking these days and
25954  # people can always --disable-shared, the test was removed, and we
25955  # assume the GNU/Linux dynamic linker is in use.
25956  dynamic_linker='GNU/Linux ld.so'
25957  ;;
25958
25959netbsd*)
25960  version_type=sunos
25961  need_lib_prefix=no
25962  need_version=no
25963  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
25964    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
25965    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25966    dynamic_linker='NetBSD (a.out) ld.so'
25967  else
25968    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25969    soname_spec='$libname$release$shared_ext$major'
25970    dynamic_linker='NetBSD ld.elf_so'
25971  fi
25972  shlibpath_var=LD_LIBRARY_PATH
25973  shlibpath_overrides_runpath=yes
25974  hardcode_into_libs=yes
25975  ;;
25976
25977newsos6)
25978  version_type=linux # correct to gnu/linux during the next big refactor
25979  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25980  shlibpath_var=LD_LIBRARY_PATH
25981  shlibpath_overrides_runpath=yes
25982  ;;
25983
25984*nto* | *qnx*)
25985  version_type=qnx
25986  need_lib_prefix=no
25987  need_version=no
25988  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
25989  soname_spec='$libname$release$shared_ext$major'
25990  shlibpath_var=LD_LIBRARY_PATH
25991  shlibpath_overrides_runpath=no
25992  hardcode_into_libs=yes
25993  dynamic_linker='ldqnx.so'
25994  ;;
25995
25996openbsd* | bitrig*)
25997  version_type=sunos
25998  sys_lib_dlsearch_path_spec=/usr/lib
25999  need_lib_prefix=no
26000  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
26001    need_version=no
26002  else
26003    need_version=yes
26004  fi
26005  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
26006  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26007  shlibpath_var=LD_LIBRARY_PATH
26008  shlibpath_overrides_runpath=yes
26009  ;;
26010
26011os2*)
26012  libname_spec='$name'
26013  version_type=windows
26014  shrext_cmds=.dll
26015  need_version=no
26016  need_lib_prefix=no
26017  # OS/2 can only load a DLL with a base name of 8 characters or less.
26018  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
26019    v=$($ECHO $release$versuffix | tr -d .-);
26020    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
26021    $ECHO $n$v`$shared_ext'
26022  library_names_spec='${libname}_dll.$libext'
26023  dynamic_linker='OS/2 ld.exe'
26024  shlibpath_var=BEGINLIBPATH
26025  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
26026  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26027  postinstall_cmds='base_file=`basename \$file`~
26028    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
26029    dldir=$destdir/`dirname \$dlpath`~
26030    test -d \$dldir || mkdir -p \$dldir~
26031    $install_prog $dir/$dlname \$dldir/$dlname~
26032    chmod a+x \$dldir/$dlname~
26033    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
26034      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
26035    fi'
26036  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
26037    dlpath=$dir/\$dldll~
26038    $RM \$dlpath'
26039  ;;
26040
26041osf3* | osf4* | osf5*)
26042  version_type=osf
26043  need_lib_prefix=no
26044  need_version=no
26045  soname_spec='$libname$release$shared_ext$major'
26046  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26047  shlibpath_var=LD_LIBRARY_PATH
26048  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26049  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26050  ;;
26051
26052rdos*)
26053  dynamic_linker=no
26054  ;;
26055
26056solaris*)
26057  version_type=linux # correct to gnu/linux during the next big refactor
26058  need_lib_prefix=no
26059  need_version=no
26060  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26061  soname_spec='$libname$release$shared_ext$major'
26062  shlibpath_var=LD_LIBRARY_PATH
26063  shlibpath_overrides_runpath=yes
26064  hardcode_into_libs=yes
26065  # ldd complains unless libraries are executable
26066  postinstall_cmds='chmod +x $lib'
26067  ;;
26068
26069sunos4*)
26070  version_type=sunos
26071  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
26072  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26073  shlibpath_var=LD_LIBRARY_PATH
26074  shlibpath_overrides_runpath=yes
26075  if test yes = "$with_gnu_ld"; then
26076    need_lib_prefix=no
26077  fi
26078  need_version=yes
26079  ;;
26080
26081sysv4 | sysv4.3*)
26082  version_type=linux # correct to gnu/linux during the next big refactor
26083  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26084  soname_spec='$libname$release$shared_ext$major'
26085  shlibpath_var=LD_LIBRARY_PATH
26086  case $host_vendor in
26087    sni)
26088      shlibpath_overrides_runpath=no
26089      need_lib_prefix=no
26090      runpath_var=LD_RUN_PATH
26091      ;;
26092    siemens)
26093      need_lib_prefix=no
26094      ;;
26095    motorola)
26096      need_lib_prefix=no
26097      need_version=no
26098      shlibpath_overrides_runpath=no
26099      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26100      ;;
26101  esac
26102  ;;
26103
26104sysv4*MP*)
26105  if test -d /usr/nec; then
26106    version_type=linux # correct to gnu/linux during the next big refactor
26107    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
26108    soname_spec='$libname$shared_ext.$major'
26109    shlibpath_var=LD_LIBRARY_PATH
26110  fi
26111  ;;
26112
26113sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26114  version_type=sco
26115  need_lib_prefix=no
26116  need_version=no
26117  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
26118  soname_spec='$libname$release$shared_ext$major'
26119  shlibpath_var=LD_LIBRARY_PATH
26120  shlibpath_overrides_runpath=yes
26121  hardcode_into_libs=yes
26122  if test yes = "$with_gnu_ld"; then
26123    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26124  else
26125    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26126    case $host_os in
26127      sco3.2v5*)
26128        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26129	;;
26130    esac
26131  fi
26132  sys_lib_dlsearch_path_spec='/usr/lib'
26133  ;;
26134
26135tpf*)
26136  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
26137  version_type=linux # correct to gnu/linux during the next big refactor
26138  need_lib_prefix=no
26139  need_version=no
26140  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26141  shlibpath_var=LD_LIBRARY_PATH
26142  shlibpath_overrides_runpath=no
26143  hardcode_into_libs=yes
26144  ;;
26145
26146uts4*)
26147  version_type=linux # correct to gnu/linux during the next big refactor
26148  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
26149  soname_spec='$libname$release$shared_ext$major'
26150  shlibpath_var=LD_LIBRARY_PATH
26151  ;;
26152
26153*)
26154  dynamic_linker=no
26155  ;;
26156esac
26157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
26158$as_echo "$dynamic_linker" >&6; }
26159test no = "$dynamic_linker" && can_build_shared=no
26160
26161variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26162if test yes = "$GCC"; then
26163  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26164fi
26165
26166if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
26167  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
26168fi
26169
26170if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
26171  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
26172fi
26173
26174# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
26175configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
26176
26177# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
26178func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
26179
26180# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
26181configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
26223$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
26224hardcode_action_F77=
26225if test -n "$hardcode_libdir_flag_spec_F77" ||
26226   test -n "$runpath_var_F77" ||
26227   test yes = "$hardcode_automatic_F77"; then
26228
26229  # We can hardcode non-existent directories.
26230  if test no != "$hardcode_direct_F77" &&
26231     # If the only mechanism to avoid hardcoding is shlibpath_var, we
26232     # have to relink, otherwise we might link with an installed library
26233     # when we should be linking with a yet-to-be-installed one
26234     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" &&
26235     test no != "$hardcode_minus_L_F77"; then
26236    # Linking always hardcodes the temporary library directory.
26237    hardcode_action_F77=relink
26238  else
26239    # We can link without hardcoding, and we can hardcode nonexisting dirs.
26240    hardcode_action_F77=immediate
26241  fi
26242else
26243  # We cannot hardcode anything, or else we can only hardcode existing
26244  # directories.
26245  hardcode_action_F77=unsupported
26246fi
26247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
26248$as_echo "$hardcode_action_F77" >&6; }
26249
26250if test relink = "$hardcode_action_F77" ||
26251   test yes = "$inherit_rpath_F77"; then
26252  # Fast installation is not supported
26253  enable_fast_install=no
26254elif test yes = "$shlibpath_overrides_runpath" ||
26255     test no = "$enable_shared"; then
26256  # Fast installation is not necessary
26257  enable_fast_install=needless
26258fi
26259
26260
26261
26262
26263
26264
26265
26266  fi # test -n "$compiler"
26267
26268  GCC=$lt_save_GCC
26269  CC=$lt_save_CC
26270  CFLAGS=$lt_save_CFLAGS
26271fi # test yes != "$_lt_disable_F77"
26272
26273ac_ext=c
26274ac_cpp='$CPP $CPPFLAGS'
26275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26277ac_compiler_gnu=$ac_cv_c_compiler_gnu
26278
26279
26280
26281# compute canonical system types
26282
26283
26284# TARGET not needed, MPICH isn't a compiler
26285
26286# Enable better caching control
26287
26288# Check whether --enable-cache was given.
26289if test "${enable_cache+set}" = set; then :
26290  enableval=$enable_cache;
26291else
26292  enable_cache="notgiven"
26293fi
26294
26295
26296
26297# Set CFLAGS for enable strict if necessary.  Do this *first* because
26298# it may influence the output of the other tests
26299
26300# Check whether --enable-strict was given.
26301if test "${enable_strict+set}" = set; then :
26302  enableval=$enable_strict;
26303else
26304  enable_strict=no
26305fi
26306
26307
26308export enable_strict_done
26309if test "$enable_strict_done" != "yes" ; then
26310    # make sure we don't add the below flags multiple times
26311    enable_strict_done=yes
26312
26313    # Some comments on strict warning options.
26314    # These were added to improve portability
26315    #   -Wstack-usage=262144 -- 32 bit FreeBSD did not like the mprobe test
26316    #       allocating a big variable on the stack. (See tt#2160).  The "right"
26317    #       value requires further investigation; 1 MiB would have at least
26318    #       caught #2160 at compile-time, and only two other tests show a
26319    #       warning at 256k.
26320    #
26321    # These were added to reduce warnings:
26322    #   -Wno-missing-field-initializers  -- We want to allow a struct to be
26323    #       initialized to zero using "struct x y = {0};" and not require
26324    #       each field to be initialized individually.
26325    #   -Wno-unused-parameter -- For portability, some parameters go unused
26326    #	    when we have different implementations of functions for
26327    #	    different platforms
26328    #   -Wno-unused-label -- We add fn_exit: and fn_fail: on all functions,
26329    #	    but fn_fail may not be used if the function doesn't return an
26330    #	    error.
26331    #   -Wno-sign-compare -- read() and write() return bytes read/written
26332    #       as a signed value, but we often compare this to size_t (or
26333    #	    msg_sz_t) variables.
26334    # These were removed to reduce warnings:
26335    #   -Wcast-qual -- Sometimes we need to cast "volatile char*" to
26336    #	    "char*", e.g., for memcpy.
26337    #   -Wpadded -- We catch struct padding with asserts when we need to
26338    #   -Wredundant-decls -- Having redundant declarations is benign and the
26339    #	    code already has some.
26340    #   -Waggregate-return -- This seems to be a performance-related warning
26341    #       aggregate return values are legal in ANSI C, but they may be returned
26342    #	    in memory rather than through a register.  We do use aggregate return
26343    #	    values, but they are structs of a single basic type (used to enforce
26344    #	    type checking for relative vs. absolute ptrs), and with optimization
26345    #	    the aggregate value is converted to a scalar.
26346    #   -Wdeclaration-after-statement -- This is a C89
26347    #       requirement. When compiling with C99, this should be
26348    #       disabled.
26349    #   -Wfloat-equal -- There are places in hwloc that set a float var to 0, then
26350    #       compare it to 0 later to see if it was updated.  Also when using strtod()
26351    #       one needs to compare the return value with 0 to see whether a conversion
26352    #       was performed.
26353    #   -Werror-implicit-function-declaration -- implicit function declarations
26354    #       should never be tolerated.  This also ensures that we get quick
26355    #       compilation failures rather than later link failures that usually
26356    #       come from a function name typo.
26357    #   -Wcast-align -- Casting alignment warnings.  This is an
26358    #       important check, but is temporarily disabled, since it is
26359    #       throwing too many (correct) warnings currently, causing us
26360    #       to miss other warnings.
26361    #   -Wshorten-64-to-32 -- Bad type-casting warnings.  This is an
26362    #       important check, but is temporarily disabled, since it is
26363    #       throwing too many (correct) warnings currently, causing us
26364    #       to miss other warnings.
26365    #
26366    # This was removed because it masks important failures (see ticket #2094).
26367    # However, since Intel compiler currently does not include -Wtype-limits
26368    # in -Wextra, -Wtype-limits was added to handle warnings with the Intel
26369    # compiler.
26370    #   -Wno-type-limits -- There are places where we compare an unsigned to
26371    #	    a constant that happens to be zero e.g., if x is unsigned and
26372    #	    MIN_VAL is zero, we'd like to do "MPIR_Assert(x >= MIN_VAL);".
26373    #       Note this option is not supported by gcc 4.2.  This needs to be added
26374    #	    after most other warning flags, so that we catch a gcc bug on 32-bit
26375    #	    that doesn't give a warning that this is unsupported, unless another
26376    #	    warning is triggered, and then if gives an error.
26377    # the embedded newlines in this string are safe because we evaluate each
26378    # argument in the for-loop below and append them to the CFLAGS with a space
26379    # as the separator instead
26380    pac_common_strict_flags="
26381        -Wall
26382        -Wextra
26383        -Wno-missing-field-initializers
26384        -Wstrict-prototypes
26385        -Wmissing-prototypes
26386        -DGCC_WALL
26387        -Wno-unused-parameter
26388        -Wno-unused-label
26389        -Wshadow
26390        -Wmissing-declarations
26391        -Wno-long-long
26392        -Wundef
26393        -Wno-endif-labels
26394        -Wpointer-arith
26395        -Wbad-function-cast
26396        -Wwrite-strings
26397        -Wno-sign-compare
26398        -Wold-style-definition
26399        -Wno-multichar
26400        -Wno-deprecated-declarations
26401        -Wnested-externs
26402        -Winvalid-pch
26403        -Wno-pointer-sign
26404        -Wvariadic-macros
26405        -Wtype-limits
26406        -Werror-implicit-function-declaration
26407        -Wstack-usage=262144
26408        -diag-disable=all
26409    "
26410
26411    if test -z "$enable_strict"; then
26412        flags=no
26413    else
26414        flags="`echo $enable_strict | sed -e 's/:/ /g' -e 's/,/ /g'`"
26415    fi
26416    add_cflags=yes
26417    c_std=c99
26418    posix_std=2001
26419    enable_opt=yes
26420    pac_cc_strict_werror=no
26421    for flag in ${flags}; do
26422        case "$flag" in
26423             error)
26424                # note: we can't enable -Werror early as it will break many config tests
26425                #       Need apply to CFLAGS at the end of configure.
26426                pac_cc_strict_werror=yes
26427                ;;
26428	     stdc89)
26429	        c_std=c89
26430		;;
26431	     stdc99)
26432	        c_std=c99
26433		;;
26434	     stdgnu99)
26435	        c_std=gnu99
26436		;;
26437	     nostdc)
26438		c_std=none
26439		;;
26440	     posix1995)
26441		posix_std=1995
26442		;;
26443	     posix2001)
26444		posix_std=2001
26445		;;
26446	     posix2008)
26447		posix_std=2008
26448		;;
26449	     noposix)
26450		posix_std=none
26451		;;
26452	     opt)
26453		enable_opt=yes
26454		;;
26455	     noopt)
26456		enable_opt=no
26457		;;
26458	     all|yes)
26459		# leave the defaults
26460	        ;;
26461	     no|none)
26462		add_cflags=no
26463		;;
26464	     *)
26465		if test -n "$flag" ; then
26466		   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized value for enable-strict:$flag" >&5
26467$as_echo "$as_me: WARNING: Unrecognized value for enable-strict:$flag" >&2;}
26468		fi
26469		;;
26470	esac
26471    done
26472
26473    pac_cc_strict_flags=""
26474    if test "${add_cflags}" = "yes" ; then
26475       # common flags
26476       pac_cc_strict_flags="$pac_cc_strict_flags $pac_common_strict_flags"
26477
26478       # optimization flags
26479       if test "${enable_opt}" = "yes" ; then
26480
26481
26482	if echo "$pac_cc_strict_flags" | $FGREP -e "\<-O2\>" >/dev/null 2>&1; then :
26483  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-O2', not appending" >&5
26484else
26485  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-O2', appending" >&5
26486		pac_cc_strict_flags="$pac_cc_strict_flags -O2"
26487
26488fi
26489
26490       fi
26491
26492       # stdc flags
26493       case "${c_std}" in
26494	    none)
26495		:
26496		;;
26497	    c89)
26498
26499
26500	if echo "$pac_cc_strict_flags" | $FGREP -e "\<-std=c89\>" >/dev/null 2>&1; then :
26501  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-std=c89', not appending" >&5
26502else
26503  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-std=c89', appending" >&5
26504		pac_cc_strict_flags="$pac_cc_strict_flags -std=c89"
26505
26506fi
26507
26508
26509
26510	if echo "$pac_cc_strict_flags" | $FGREP -e "\<-Wdeclaration-after-statement\>" >/dev/null 2>&1; then :
26511  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-Wdeclaration-after-statement', not appending" >&5
26512else
26513  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-Wdeclaration-after-statement', appending" >&5
26514		pac_cc_strict_flags="$pac_cc_strict_flags -Wdeclaration-after-statement"
26515
26516fi
26517
26518		;;
26519	    c99)
26520
26521
26522	if echo "$pac_cc_strict_flags" | $FGREP -e "\<-std=c99\>" >/dev/null 2>&1; then :
26523  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-std=c99', not appending" >&5
26524else
26525  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-std=c99', appending" >&5
26526		pac_cc_strict_flags="$pac_cc_strict_flags -std=c99"
26527
26528fi
26529
26530		# Use -D_STDC_C99= for Solaris compilers. See
26531		# http://lists.gnu.org/archive/html/autoconf/2010-12/msg00059.html
26532		# for discussion on why not to use -xc99
26533
26534
26535	if echo "$pac_cc_strict_flags" | $FGREP -e "\<-D_STDC_C99=\>" >/dev/null 2>&1; then :
26536  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-D_STDC_C99=', not appending" >&5
26537else
26538  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-D_STDC_C99=', appending" >&5
26539		pac_cc_strict_flags="$pac_cc_strict_flags -D_STDC_C99="
26540
26541fi
26542
26543		;;
26544	    gnu99)
26545
26546
26547	if echo "$pac_cc_strict_flags" | $FGREP -e "\<-std=gnu99\>" >/dev/null 2>&1; then :
26548  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-std=gnu99', not appending" >&5
26549else
26550  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-std=gnu99', appending" >&5
26551		pac_cc_strict_flags="$pac_cc_strict_flags -std=gnu99"
26552
26553fi
26554
26555		;;
26556	    *)
26557		as_fn_error $? "internal error, unexpected C std version: '$c_std'" "$LINENO" 5
26558		;;
26559       esac
26560
26561       # posix flags
26562       case "${posix_std}" in
26563            none) : ;;
26564            1995)
26565
26566	if echo "$pac_cc_strict_flags" | $FGREP -e "\<-D_POSIX_C_SOURCE=199506L\>" >/dev/null 2>&1; then :
26567  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-D_POSIX_C_SOURCE=199506L', not appending" >&5
26568else
26569  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-D_POSIX_C_SOURCE=199506L', appending" >&5
26570		pac_cc_strict_flags="$pac_cc_strict_flags -D_POSIX_C_SOURCE=199506L"
26571
26572fi
26573 ;;
26574            2001)
26575
26576	if echo "$pac_cc_strict_flags" | $FGREP -e "\<-D_POSIX_C_SOURCE=200112L\>" >/dev/null 2>&1; then :
26577  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-D_POSIX_C_SOURCE=200112L', not appending" >&5
26578else
26579  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-D_POSIX_C_SOURCE=200112L', appending" >&5
26580		pac_cc_strict_flags="$pac_cc_strict_flags -D_POSIX_C_SOURCE=200112L"
26581
26582fi
26583 ;;
26584            2008)
26585
26586	if echo "$pac_cc_strict_flags" | $FGREP -e "\<-D_POSIX_C_SOURCE=200809L\>" >/dev/null 2>&1; then :
26587  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-D_POSIX_C_SOURCE=200809L', not appending" >&5
26588else
26589  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-D_POSIX_C_SOURCE=200809L', appending" >&5
26590		pac_cc_strict_flags="$pac_cc_strict_flags -D_POSIX_C_SOURCE=200809L"
26591
26592fi
26593 ;;
26594            *)    as_fn_error $? "internal error, unexpected POSIX version: '$posix_std'" "$LINENO" 5 ;;
26595       esac
26596       if test "${posix_std}" != "none" ; then
26597           case $host in #(
26598  *-*-darwin*) :
26599
26600
26601	if echo "$pac_cc_strict_flags" | $FGREP -e "\<-D_DARWIN_C_SOURCE\>" >/dev/null 2>&1; then :
26602  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') contains '-D_DARWIN_C_SOURCE', not appending" >&5
26603else
26604  echo "pac_cc_strict_flags(='$pac_cc_strict_flags') does not contain '-D_DARWIN_C_SOURCE', appending" >&5
26605		pac_cc_strict_flags="$pac_cc_strict_flags -D_DARWIN_C_SOURCE"
26606
26607fi
26608 ;; #(
26609  *) :
26610     ;;
26611esac
26612       fi
26613    fi
26614
26615    # See if the above options work with the compiler
26616    accepted_flags=""
26617    for flag in $pac_cc_strict_flags ; do
26618
26619	if test -z "${pac_save_CFLAGS_nesting}" ; then
26620	   pac_save_CFLAGS_nesting=0
26621	fi
26622	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
26623	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
26624
26625	CFLAGS="$CFLAGS $accepted_flags"
26626
26627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts option $flag" >&5
26628$as_echo_n "checking whether C compiler accepts option $flag... " >&6; }
26629pac_opt="$flag"
26630ac_ext=c
26631ac_cpp='$CPP $CPPFLAGS'
26632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26634ac_compiler_gnu=$ac_cv_c_compiler_gnu
26635
26636CFLAGS_orig="$CFLAGS"
26637CFLAGS_opt="$pac_opt $CFLAGS"
26638pac_result="unknown"
26639
26640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26641/* end confdefs.h.  */
26642
26643	#include <stdio.h>
26644                          const char hw[] = "Hello, World\n";
26645int
26646main ()
26647{
26648fputs (hw, stdout);
26649  ;
26650  return 0;
26651}
26652
26653_ACEOF
26654CFLAGS="$CFLAGS_orig"
26655rm -f pac_test1.log
26656
26657
26658# START of PUSHVAL
26659
26660if ${pac_stk_ac_link_level+:} false; then :
26661
26662    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
26663
26664else
26665
26666    pac_stk_ac_link_level=0
26667
26668fi
26669eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
26670if test "x$pac_stk_ac_link_level" = x0; then :
26671
26672        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
26673
26674fi
26675
26676        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
26677
26678
26679# END of PUSHVAL
26680
26681ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`"
26682if ac_fn_c_try_link "$LINENO"; then :
26683
26684
26685    CFLAGS="$CFLAGS_opt"
26686    rm -f pac_test2.log
26687
26688
26689# START of PUSHVAL
26690
26691if ${pac_stk_ac_link_level+:} false; then :
26692
26693    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
26694
26695else
26696
26697    pac_stk_ac_link_level=0
26698
26699fi
26700eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
26701if test "x$pac_stk_ac_link_level" = x0; then :
26702
26703        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
26704
26705fi
26706
26707        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
26708
26709
26710# END of PUSHVAL
26711
26712ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`"
26713if ac_fn_c_try_link "$LINENO"; then :
26714
26715
26716
26717pac_TESTLOG="pac_test.log"
26718rm -f $pac_TESTLOG
26719
26720if
26721{ $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5
26722  (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5
26723  ac_status=$?
26724  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725  test $ac_status = 0; }; then :
26726
26727
26728    pac_result=yes
26729
26730
26731else
26732
26733    $as_echo "$as_me: program exited with status $ac_status" >&5
26734
26735        (exit $ac_status)
26736
26737    $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5
26738    cat $pac_TESTLOG >&5
26739    pac_result=no
26740
26741
26742
26743
26744fi
26745
26746rm -f $pac_TESTLOG
26747
26748
26749
26750else
26751
26752
26753        pac_result=no
26754
26755
26756fi
26757rm -f core conftest.err conftest.$ac_objext \
26758    conftest$ac_exeext
26759
26760# START of POPVAL
26761
26762if ${pac_stk_ac_link_level+:} false; then :
26763
26764    if test "x$pac_stk_ac_link_level" = x-1; then :
26765
26766        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
26767$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
26768
26769else
26770
26771                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
26772                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
26773
26774fi
26775
26776else
26777
26778    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
26779$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
26780
26781fi
26782
26783# END of POPVAL
26784
26785
26786
26787
26788else
26789
26790
26791    pac_result=no
26792
26793
26794fi
26795rm -f core conftest.err conftest.$ac_objext \
26796    conftest$ac_exeext
26797
26798# START of POPVAL
26799
26800if ${pac_stk_ac_link_level+:} false; then :
26801
26802    if test "x$pac_stk_ac_link_level" = x-1; then :
26803
26804        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
26805$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
26806
26807else
26808
26809                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
26810                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
26811
26812fi
26813
26814else
26815
26816    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
26817$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
26818
26819fi
26820
26821# END of POPVAL
26822
26823
26824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
26825$as_echo "$pac_result" >&6; }
26826rm -f conftest.$ac_ext
26827
26828if test "$pac_result" = "yes" ; then
26829    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5
26830$as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; }
26831    pac_result=unknown
26832    CFLAGS="$CFLAGS_orig"
26833    rm -f pac_test3.log
26834
26835
26836# START of PUSHVAL
26837
26838if ${pac_stk_ac_compile_level+:} false; then :
26839
26840    as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val
26841
26842else
26843
26844    pac_stk_ac_compile_level=0
26845
26846fi
26847eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile"
26848if test "x$pac_stk_ac_compile_level" = x0; then :
26849
26850        eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
26851
26852fi
26853
26854        eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
26855
26856
26857# END of PUSHVAL
26858
26859ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`"
26860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26861/* end confdefs.h.  */
26862
26863
26864            int foo(void);
26865            int foo(void){return 0;}
26866
26867
26868_ACEOF
26869if ac_fn_c_try_compile "$LINENO"; then :
26870
26871
26872
26873{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
26874  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
26875  ac_status=$?
26876  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877  test $ac_status = 0; }
26878        saved_LIBS="$LIBS"
26879        LIBS="pac_conftest.$OBJEXT $LIBS"
26880
26881        rm -f pac_test4.log
26882
26883
26884# START of PUSHVAL
26885
26886if ${pac_stk_ac_link_level+:} false; then :
26887
26888    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
26889
26890else
26891
26892    pac_stk_ac_link_level=0
26893
26894fi
26895eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
26896if test "x$pac_stk_ac_link_level" = x0; then :
26897
26898        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
26899
26900fi
26901
26902        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
26903
26904
26905# END of PUSHVAL
26906
26907ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`"
26908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26909/* end confdefs.h.  */
26910
26911int
26912main ()
26913{
26914
26915  ;
26916  return 0;
26917}
26918_ACEOF
26919if ac_fn_c_try_link "$LINENO"; then :
26920
26921
26922            CFLAGS="$CFLAGS_opt"
26923            rm -f pac_test5.log
26924
26925
26926# START of PUSHVAL
26927
26928if ${pac_stk_ac_link_level+:} false; then :
26929
26930    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
26931
26932else
26933
26934    pac_stk_ac_link_level=0
26935
26936fi
26937eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
26938if test "x$pac_stk_ac_link_level" = x0; then :
26939
26940        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
26941
26942fi
26943
26944        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
26945
26946
26947# END of PUSHVAL
26948
26949ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test5.log 2>\&1|g'`"
26950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26951/* end confdefs.h.  */
26952
26953int
26954main ()
26955{
26956
26957  ;
26958  return 0;
26959}
26960_ACEOF
26961if ac_fn_c_try_link "$LINENO"; then :
26962
26963
26964
26965pac_TESTLOG="pac_test.log"
26966rm -f $pac_TESTLOG
26967
26968if
26969{ $as_echo "$as_me:$LINENO: diff -b pac_test4.log pac_test5.log > $pac_TESTLOG" >&5
26970  (eval diff -b pac_test4.log pac_test5.log > $pac_TESTLOG) 2>&5
26971  ac_status=$?
26972  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973  test $ac_status = 0; }; then :
26974
26975
26976    pac_result=yes
26977
26978
26979else
26980
26981    $as_echo "$as_me: program exited with status $ac_status" >&5
26982
26983        (exit $ac_status)
26984
26985    $as_echo "*** diff -b pac_test4.log pac_test5.log :" >&5
26986    cat $pac_TESTLOG >&5
26987    pac_result=no
26988
26989
26990
26991
26992fi
26993
26994rm -f $pac_TESTLOG
26995
26996
26997
26998else
26999
27000
27001                pac_result=no
27002
27003
27004fi
27005rm -f core conftest.err conftest.$ac_objext \
27006    conftest$ac_exeext conftest.$ac_ext
27007
27008# START of POPVAL
27009
27010if ${pac_stk_ac_link_level+:} false; then :
27011
27012    if test "x$pac_stk_ac_link_level" = x-1; then :
27013
27014        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
27015$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
27016
27017else
27018
27019                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
27020                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
27021
27022fi
27023
27024else
27025
27026    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
27027$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
27028
27029fi
27030
27031# END of POPVAL
27032
27033
27034
27035
27036else
27037
27038
27039            pac_result=no
27040
27041
27042fi
27043rm -f core conftest.err conftest.$ac_objext \
27044    conftest$ac_exeext conftest.$ac_ext
27045
27046# START of POPVAL
27047
27048if ${pac_stk_ac_link_level+:} false; then :
27049
27050    if test "x$pac_stk_ac_link_level" = x-1; then :
27051
27052        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
27053$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
27054
27055else
27056
27057                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
27058                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
27059
27060fi
27061
27062else
27063
27064    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
27065$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
27066
27067fi
27068
27069# END of POPVAL
27070
27071
27072        LIBS="$saved_LIBS"
27073        rm -f pac_conftest.$OBJEXT
27074
27075
27076else
27077
27078
27079        pac_result=no
27080
27081
27082fi
27083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27084
27085# START of POPVAL
27086
27087if ${pac_stk_ac_compile_level+:} false; then :
27088
27089    if test "x$pac_stk_ac_compile_level" = x-1; then :
27090
27091        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5
27092$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;}
27093
27094else
27095
27096                eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
27097                as_fn_arith  $pac_stk_ac_compile_level - 1  && pac_stk_ac_compile_level=$as_val
27098
27099fi
27100
27101else
27102
27103    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5
27104$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;}
27105
27106fi
27107
27108# END of POPVAL
27109
27110
27111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
27112$as_echo "$pac_result" >&6; }
27113    rm -f pac_test3.log pac_test4.log pac_test5.log
27114fi
27115rm -f pac_test1.log pac_test2.log
27116
27117CFLAGS="$CFLAGS_orig"
27118if test "$pac_result" = "yes" ; then
27119     accepted_flags="$accepted_flags $flag"
27120else
27121     :
27122fi
27123ac_ext=c
27124ac_cpp='$CPP $CPPFLAGS'
27125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27127ac_compiler_gnu=$ac_cv_c_compiler_gnu
27128
27129
27130
27131	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
27132	eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
27133	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
27134
27135    done
27136    pac_cc_strict_flags=$accepted_flags
27137fi
27138
27139CFLAGS="$CFLAGS $pac_cc_strict_flags"
27140export CFLAGS
27141
27142
27143# -----------------------------------------------------------------------------
27144# First check that we have a clean build if we are doing a VPATH build
27145
27146# This is needed for Mac OSX 10.5
27147rm -rf conftest.dSYM
27148rm -f conftest*
27149date >conftest$$
27150# If creating a file in the current directory does not show up in the srcdir
27151# then we're doing a VPATH build (or something is very wrong)
27152if test ! -s $srcdir/conftest$$ ; then
27153    pac_dirtyfiles=""
27154    pac_dirtydirs=""
27155    pac_header=""
27156
27157    for file in config.status $pac_header src/include/mpi.h src/env/mpicc ; do
27158        if test -f $srcdir/$file ; then
27159	    pac_dirtyfiles="$pac_dirtyfiles $file"
27160	fi
27161    done
27162
27163 	for dir in lib ; do
27164            if test -d $srcdir/$dir ; then
27165                pac_dirtydirs="$pac_dirtydirs $dir"
27166	    fi
27167	done
27168
27169
27170    if test -n "$pac_dirtyfiles" -o -n "$pac_dirtydirs" ; then
27171	# Create a nice message about what to remove
27172	rmmsg=""
27173	if test -n "$pac_dirtyfiles" ; then
27174	    rmmsg="files $pac_dirtyfiles"
27175        fi
27176 	if test -n "$pac_dirtydirs" ; then
27177	    if test -n "$rmmsg" ; then
27178	        rmmsg="$rmmsg and directories $pac_dirtydirs"
27179            else
27180                rmmsg="directories $pac_dirtydirs"
27181            fi
27182        fi
27183        if test -f $srcdir/Makefile ; then
27184            as_fn_error $? "You cannot do a VPATH build if the source directory has been
27185    configured.  Run \"make distclean\" in $srcdir first and make sure that the
27186    $rmmsg have been removed." "$LINENO" 5
27187        else
27188            as_fn_error $? "You cannot do a VPATH build if the source directory has been
27189    configured.  Remove the $rmmsg in $srcdir." "$LINENO" 5
27190        fi
27191    fi
27192fi
27193# This is needed for Mac OSX 10.5
27194rm -rf conftest.dSYM
27195rm -f conftest*
27196
27197
27198# ----------------------------------------------------------------------------
27199# This test is complicated by the fact that top_srcdir is not set until
27200# the very end of configure.  Instead, we get it ourselves
27201if test -z "$top_srcdir" ; then
27202   use_top_srcdir=$srcdir
27203else
27204   use_top_srcdir=$top_srcdir
27205fi
27206if test -z "$main_top_srcdir" ; then
27207    # This needs to be an absolute pathname
27208    case "$use_top_srcdir" in
27209    /*) ;;
27210    *)
27211        use_top_srcdir=`(cd $use_top_srcdir && pwd)`
27212	;;
27213    esac
27214    main_top_srcdir=$use_top_srcdir
27215fi
27216# Get the directory that we're running in...
27217if test -z "$main_top_builddir" ; then
27218   main_top_builddir="`pwd`"
27219fi
27220
27221
27222export main_top_builddir
27223export main_top_srcdir
27224
27225if test -z "$with_cross"; then
27226  if test -f "$main_top_srcdir/src/cross/$host_alias"; then
27227    with_cross="$main_top_srcdir/src/cross/$host_alias"
27228  else
27229    with_cross=no
27230  fi
27231fi
27232if test "$with_cross" != "no"; then
27233  { $as_echo "$as_me:${as_lineno-$LINENO}: Using cross file: $with_cross" >&5
27234$as_echo "$as_me: Using cross file: $with_cross" >&6;}
27235fi
27236
27237# ----------------------------------------------------------------------------
27238export CC
27239export CFLAGS
27240export CPPFLAGS
27241export CXX
27242export CXXFLAGS
27243export F77
27244export FC
27245export FCFLAGS
27246export FFLAGS
27247export LDFLAGS
27248export LIBS
27249export MPILIBNAME
27250export PMPILIBNAME
27251export OPALIBNAME
27252export MPLLIBNAME
27253# ----------------------------------------------------------------------------
27254# with-device
27255#
27256# Extract the device name from any options
27257# Allow the device to specify a directory; if no directory, use the
27258# included directories
27259#
27260DEVICE=$with_device
27261
27262
27263device_name=`echo $with_device | sed -e 's/:.*$//'`
27264
27265device_args=`echo $with_device | sed -e 's/^[^:]*//' -e 's/^://'`
27266
27267
27268devicedir=$use_top_srcdir/src/mpid/$device_name
27269devicereldir=src/mpid/$device_name
27270export device_name
27271export device_args
27272export devicedir
27273
27274# expand all of the prereq macros in the correct order
27275
27276## begin expansion of PAC_SUBCFG_PREREQ_src_mpi_datatype_typerep_src
27277
27278## end expansion of PAC_SUBCFG_PREREQ_src_mpi_datatype_typerep_src
27279
27280## begin expansion of PAC_SUBCFG_PREREQ_src_util_logging
27281
27282
27283## end expansion of PAC_SUBCFG_PREREQ_src_util_logging
27284
27285## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4
27286
27287 if test "$device_name" = "ch4"; then
27288  BUILD_CH4_TRUE=
27289  BUILD_CH4_FALSE='#'
27290else
27291  BUILD_CH4_TRUE='#'
27292  BUILD_CH4_FALSE=
27293fi
27294
27295
27296if test -z "$BUILD_CH4_TRUE"; then :
27297
27298{ $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING PREREQ FOR CH4 DEVICE" >&5
27299$as_echo "$as_me: RUNNING PREREQ FOR CH4 DEVICE" >&6;}
27300
27301# check availability of libfabric
27302if test x"$with_libfabric" != x"embedded" ; then
27303
27304
27305# Check whether --with-libfabric was given.
27306if test "${with_libfabric+set}" = set; then :
27307  withval=$with_libfabric;
27308fi
27309
27310
27311
27312# Check whether --with-libfabric-include was given.
27313if test "${with_libfabric_include+set}" = set; then :
27314  withval=$with_libfabric_include; case "$withval" in #(
27315  yes|no|'') :
27316    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-libfabric-include=PATH expects a valid PATH" >&5
27317$as_echo "$as_me: WARNING: --without-libfabric-include=PATH expects a valid PATH" >&2;}
27318                          with_libfabric_include="" ;; #(
27319  *) :
27320     ;;
27321esac
27322fi
27323
27324
27325# Check whether --with-libfabric-lib was given.
27326if test "${with_libfabric_lib+set}" = set; then :
27327  withval=$with_libfabric_lib; case "$withval" in #(
27328  yes|no|'') :
27329    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-libfabric-lib=PATH expects a valid PATH" >&5
27330$as_echo "$as_me: WARNING: --without-libfabric-lib=PATH expects a valid PATH" >&2;}
27331                          with_libfabric_lib="" ;; #(
27332  *) :
27333     ;;
27334esac
27335fi
27336
27337
27338    # The args have been sanitized into empty/non-empty values above.
27339    # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
27340    # taking priority
27341
27342    case "${with_libfabric}" in
27343        embedded)
27344            as_fn_error $? "embedded libfabric is requested but we do not have the embedded version" "$LINENO" 5
27345            ;;
27346        yes|no)
27347            # skip
27348            ;;
27349        *)
27350    if test -n "${with_libfabric_include}"; then :
27351
27352
27353	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_libfabric_include}\>" >/dev/null 2>&1; then :
27354  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_libfabric_include}', not appending" >&5
27355else
27356  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_libfabric_include}', appending" >&5
27357		CPPFLAGS="$CPPFLAGS -I${with_libfabric_include}"
27358
27359fi
27360
27361else
27362  if test -n "${with_libfabric}"; then :
27363
27364
27365	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_libfabric}/include\>" >/dev/null 2>&1; then :
27366  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_libfabric}/include', not appending" >&5
27367else
27368  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_libfabric}/include', appending" >&5
27369		CPPFLAGS="$CPPFLAGS -I${with_libfabric}/include"
27370
27371fi
27372
27373fi
27374fi
27375
27376    if test -n "${with_libfabric_lib}"; then :
27377
27378
27379	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_libfabric_lib}\>" >/dev/null 2>&1; then :
27380  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_libfabric_lib}', not appending" >&5
27381else
27382  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_libfabric_lib}', appending" >&5
27383		LDFLAGS="$LDFLAGS -L${with_libfabric_lib}"
27384
27385fi
27386
27387else
27388  if test -n "${with_libfabric}"; then :
27389
27390
27391	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_libfabric}/lib\>" >/dev/null 2>&1; then :
27392  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_libfabric}/lib', not appending" >&5
27393else
27394  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_libfabric}/lib', appending" >&5
27395		LDFLAGS="$LDFLAGS -L${with_libfabric}/lib"
27396
27397fi
27398
27399                  if test -d "${with_libfabric}/lib64"; then :
27400
27401
27402	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_libfabric}/lib64\>" >/dev/null 2>&1; then :
27403  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_libfabric}/lib64', not appending" >&5
27404else
27405  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_libfabric}/lib64', appending" >&5
27406		LDFLAGS="$LDFLAGS -L${with_libfabric}/lib64"
27407
27408fi
27409
27410fi
27411
27412fi
27413
27414fi
27415            ;;
27416    esac
27417
27418
27419	if test -z "${pac_save_LIBS_nesting}" ; then
27420	   pac_save_LIBS_nesting=0
27421	fi
27422	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
27423	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
27424
27425
27426    failure=no
27427    ac_fn_c_check_header_mongrel "$LINENO" "rdma/fabric.h" "ac_cv_header_rdma_fabric_h" "$ac_includes_default"
27428if test "x$ac_cv_header_rdma_fabric_h" = xyes; then :
27429
27430else
27431  failure=yes
27432fi
27433
27434
27435
27436	if test -z "${pac_save_LIBS_nesting}" ; then
27437	   pac_save_LIBS_nesting=0
27438	fi
27439	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
27440	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
27441
27442    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fi_getinfo in -lfabric" >&5
27443$as_echo_n "checking for fi_getinfo in -lfabric... " >&6; }
27444if ${ac_cv_lib_fabric_fi_getinfo+:} false; then :
27445  $as_echo_n "(cached) " >&6
27446else
27447  ac_check_lib_save_LIBS=$LIBS
27448LIBS="-lfabric  $LIBS"
27449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27450/* end confdefs.h.  */
27451
27452/* Override any GCC internal prototype to avoid an error.
27453   Use char because int might match the return type of a GCC
27454   builtin and then its argument prototype would still apply.  */
27455#ifdef __cplusplus
27456extern "C"
27457#endif
27458char fi_getinfo ();
27459int
27460main ()
27461{
27462return fi_getinfo ();
27463  ;
27464  return 0;
27465}
27466_ACEOF
27467if ac_fn_c_try_link "$LINENO"; then :
27468  ac_cv_lib_fabric_fi_getinfo=yes
27469else
27470  ac_cv_lib_fabric_fi_getinfo=no
27471fi
27472rm -f core conftest.err conftest.$ac_objext \
27473    conftest$ac_exeext conftest.$ac_ext
27474LIBS=$ac_check_lib_save_LIBS
27475fi
27476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fabric_fi_getinfo" >&5
27477$as_echo "$ac_cv_lib_fabric_fi_getinfo" >&6; }
27478if test "x$ac_cv_lib_fabric_fi_getinfo" = xyes; then :
27479  cat >>confdefs.h <<_ACEOF
27480#define HAVE_LIBFABRIC 1
27481_ACEOF
27482
27483  LIBS="-lfabric $LIBS"
27484
27485else
27486  failure=yes
27487fi
27488
27489
27490	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
27491	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
27492	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
27493
27494    if test "$failure" = "no" ; then
27495       have_libfabric=yes
27496    else
27497       have_libfabric=no
27498    fi
27499
27500
27501	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
27502	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
27503	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
27504
27505else
27506    have_libfabric=no
27507fi
27508
27509# check availability of ucx
27510if test x"$with_ucx" != x"embedded" ; then
27511
27512
27513# Check whether --with-ucx was given.
27514if test "${with_ucx+set}" = set; then :
27515  withval=$with_ucx;
27516fi
27517
27518
27519
27520# Check whether --with-ucx-include was given.
27521if test "${with_ucx_include+set}" = set; then :
27522  withval=$with_ucx_include; case "$withval" in #(
27523  yes|no|'') :
27524    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ucx-include=PATH expects a valid PATH" >&5
27525$as_echo "$as_me: WARNING: --without-ucx-include=PATH expects a valid PATH" >&2;}
27526                          with_ucx_include="" ;; #(
27527  *) :
27528     ;;
27529esac
27530fi
27531
27532
27533# Check whether --with-ucx-lib was given.
27534if test "${with_ucx_lib+set}" = set; then :
27535  withval=$with_ucx_lib; case "$withval" in #(
27536  yes|no|'') :
27537    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ucx-lib=PATH expects a valid PATH" >&5
27538$as_echo "$as_me: WARNING: --without-ucx-lib=PATH expects a valid PATH" >&2;}
27539                          with_ucx_lib="" ;; #(
27540  *) :
27541     ;;
27542esac
27543fi
27544
27545
27546    # The args have been sanitized into empty/non-empty values above.
27547    # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
27548    # taking priority
27549
27550    case "${with_ucx}" in
27551        embedded)
27552            as_fn_error $? "embedded ucx is requested but we do not have the embedded version" "$LINENO" 5
27553            ;;
27554        yes|no)
27555            # skip
27556            ;;
27557        *)
27558    if test -n "${with_ucx_include}"; then :
27559
27560
27561	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ucx_include}\>" >/dev/null 2>&1; then :
27562  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ucx_include}', not appending" >&5
27563else
27564  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ucx_include}', appending" >&5
27565		CPPFLAGS="$CPPFLAGS -I${with_ucx_include}"
27566
27567fi
27568
27569else
27570  if test -n "${with_ucx}"; then :
27571
27572
27573	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ucx}/include\>" >/dev/null 2>&1; then :
27574  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ucx}/include', not appending" >&5
27575else
27576  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ucx}/include', appending" >&5
27577		CPPFLAGS="$CPPFLAGS -I${with_ucx}/include"
27578
27579fi
27580
27581fi
27582fi
27583
27584    if test -n "${with_ucx_lib}"; then :
27585
27586
27587	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ucx_lib}\>" >/dev/null 2>&1; then :
27588  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ucx_lib}', not appending" >&5
27589else
27590  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ucx_lib}', appending" >&5
27591		LDFLAGS="$LDFLAGS -L${with_ucx_lib}"
27592
27593fi
27594
27595else
27596  if test -n "${with_ucx}"; then :
27597
27598
27599	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ucx}/lib\>" >/dev/null 2>&1; then :
27600  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ucx}/lib', not appending" >&5
27601else
27602  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ucx}/lib', appending" >&5
27603		LDFLAGS="$LDFLAGS -L${with_ucx}/lib"
27604
27605fi
27606
27607                  if test -d "${with_ucx}/lib64"; then :
27608
27609
27610	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ucx}/lib64\>" >/dev/null 2>&1; then :
27611  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ucx}/lib64', not appending" >&5
27612else
27613  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ucx}/lib64', appending" >&5
27614		LDFLAGS="$LDFLAGS -L${with_ucx}/lib64"
27615
27616fi
27617
27618fi
27619
27620fi
27621
27622fi
27623            ;;
27624    esac
27625
27626
27627	if test -z "${pac_save_LIBS_nesting}" ; then
27628	   pac_save_LIBS_nesting=0
27629	fi
27630	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
27631	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
27632
27633
27634    failure=no
27635    ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default"
27636if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then :
27637
27638else
27639  failure=yes
27640fi
27641
27642
27643
27644	if test -z "${pac_save_LIBS_nesting}" ; then
27645	   pac_save_LIBS_nesting=0
27646	fi
27647	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
27648	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
27649
27650    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucp_config_read in -lucp" >&5
27651$as_echo_n "checking for ucp_config_read in -lucp... " >&6; }
27652if ${ac_cv_lib_ucp_ucp_config_read+:} false; then :
27653  $as_echo_n "(cached) " >&6
27654else
27655  ac_check_lib_save_LIBS=$LIBS
27656LIBS="-lucp  $LIBS"
27657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27658/* end confdefs.h.  */
27659
27660/* Override any GCC internal prototype to avoid an error.
27661   Use char because int might match the return type of a GCC
27662   builtin and then its argument prototype would still apply.  */
27663#ifdef __cplusplus
27664extern "C"
27665#endif
27666char ucp_config_read ();
27667int
27668main ()
27669{
27670return ucp_config_read ();
27671  ;
27672  return 0;
27673}
27674_ACEOF
27675if ac_fn_c_try_link "$LINENO"; then :
27676  ac_cv_lib_ucp_ucp_config_read=yes
27677else
27678  ac_cv_lib_ucp_ucp_config_read=no
27679fi
27680rm -f core conftest.err conftest.$ac_objext \
27681    conftest$ac_exeext conftest.$ac_ext
27682LIBS=$ac_check_lib_save_LIBS
27683fi
27684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucp_ucp_config_read" >&5
27685$as_echo "$ac_cv_lib_ucp_ucp_config_read" >&6; }
27686if test "x$ac_cv_lib_ucp_ucp_config_read" = xyes; then :
27687  cat >>confdefs.h <<_ACEOF
27688#define HAVE_LIBUCP 1
27689_ACEOF
27690
27691  LIBS="-lucp $LIBS"
27692
27693else
27694  failure=yes
27695fi
27696
27697
27698	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
27699	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
27700	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
27701
27702    if test "$failure" = "no" ; then
27703       have_ucx=yes
27704    else
27705       have_ucx=no
27706    fi
27707
27708
27709	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
27710	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
27711	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
27712
27713else
27714    have_ucx=no
27715fi
27716
27717# the CH4 device depends on the common NBC scheduler code
27718build_mpid_common_sched=yes
27719build_mpid_common_datatype=yes
27720build_mpid_common_thread=yes
27721build_mpid_common_bc=yes
27722build_mpid_common_genq=yes
27723
27724MPID_MAX_THREAD_LEVEL=MPI_THREAD_MULTIPLE
27725MPID_MAX_PROCESSOR_NAME=128
27726MPID_MAX_ERROR_STRING=512
27727
27728# $device_args - contains the netmods
27729if test -z "${device_args}" ; then
27730  case $host_os in #(
27731  linux*) :
27732
27733        if test $have_ucx = "yes" -a $have_libfabric = "no" ; then
27734        ch4_netmods=ucx
27735    elif test $have_ucx = "no" -a $have_libfabric = "yes" ; then
27736        ch4_netmods=ofi
27737    else
27738                as_fn_error $? "no ch4 netmod selected
27739
27740  The default ch4 device could not detect a preferred network
27741  library. Supported options are ofi (libfabric) and ucx:
27742
27743    --with-device=ch4:ofi or --with-device=ch4:ucx
27744
27745  Configure will use an embedded copy of libfabric or ucx if one is
27746  not found in the user environment. An installation can be specified
27747  by adding
27748
27749    --with-libfabric=<path/to/install> or --with-ucx=<path/to/install>
27750
27751  to the configuration.
27752
27753  The previous MPICH default device (ch3) is also available and
27754  supported with option:
27755
27756    --with-device=ch3
27757    " "$LINENO" 5
27758    fi ;; #(
27759  *) :
27760
27761            ch4_netmods=ofi
27762     ;;
27763esac
27764else
27765
27766    netmod_args=`echo ${device_args} | sed -e 's/^[^:]*//' -e 's/^://' -e 's/,/ /g'`
27767
27768    ch4_netmods=`echo ${device_args} | sed -e 's/:.*$//' -e 's/,/ /g'`
27769fi
27770export ch4_netmods
27771export netmod_args
27772{ $as_echo "$as_me:${as_lineno-$LINENO}: CH4 select netmod: $ch4_netmods $netmod_args" >&5
27773$as_echo "$as_me: CH4 select netmod: $ch4_netmods $netmod_args" >&6;}
27774
27775#
27776# reset DEVICE so that it (a) always includes the channel name, and (b) does not include channel options
27777#
27778DEVICE="${device_name}:${ch4_netmods}"
27779
27780ch4_nets_func_decl=""
27781ch4_nets_native_func_decl=""
27782ch4_nets_func_array=""
27783ch4_nets_native_func_array=""
27784ch4_nets_strings=""
27785net_index=0
27786for net in $ch4_netmods ; do
27787    if test ! -d $srcdir/src/mpid/ch4/netmod/${net} ; then
27788        as_fn_error $? "Network module ${net} is unknown \"$srcdir/src/mpid/ch4/netmod/${net}\"" "$LINENO" 5
27789    fi
27790    net_macro=`echo $net | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27791    net_macro="MPIDI_CH4_${net_macro}"
27792
27793    if test -z "$ch4_nets_array" ; then
27794        ch4_nets_array="$net_macro"
27795    else
27796        ch4_nets_array="$ch4_nets_array, $net_macro"
27797    fi
27798
27799    if test -z "$ch4_nets_func_decl" ; then
27800        ch4_nets_func_decl="MPIDI_NM_${net}_funcs"
27801    else
27802        ch4_nets_func_decl="${ch4_nets_func_decl}, MPIDI_NM_${net}_funcs"
27803    fi
27804
27805    if test -z "$ch4_nets_native_func_decl" ; then
27806        ch4_nets_native_func_decl="MPIDI_NM_native_${net}_funcs"
27807    else
27808        ch4_nets_native_func_decl="${ch4_nets_native_func_decl}, MPIDI_NM_native_${net}_funcs"
27809    fi
27810
27811    if test -z "$ch4_nets_func_array" ; then
27812        ch4_nets_func_array="&MPIDI_NM_${net}_funcs"
27813    else
27814        ch4_nets_func_array="${ch4_nets_func_array}, &MPIDI_NM_${net}_funcs"
27815    fi
27816
27817    if test -z "$ch4_nets_native_func_array" ; then
27818        ch4_nets_native_func_array="&MPIDI_NM_native_${net}_funcs"
27819    else
27820        ch4_nets_native_func_array="${ch4_nets_native_func_array}, &MPIDI_NM_native_${net}_funcs"
27821    fi
27822
27823    if test -z "$ch4_nets_strings" ; then
27824        ch4_nets_strings="\"$net\""
27825    else
27826        ch4_nets_strings="$ch4_nets_strings, \"$net\""
27827    fi
27828
27829    if test -z "$ch4_netmod_coll_globals_default" ; then
27830        ch4_netmod_coll_globals_default="#include \"../netmod/${net}/${net}_coll_globals_default.c\""
27831    else
27832        ch4_netmod_coll_globals_default="${ch4_netmod_coll_globals_default}
27833#include \"../netmod/${net}/${net}_coll_globals_default.c\""
27834    fi
27835
27836    if test -z "$ch4_netmod_pre_include" ; then
27837        ch4_netmod_pre_include="#include \"../netmod/${net}/${net}_pre.h\""
27838    else
27839        ch4_netmod_pre_include="${ch4_netmod_pre_include}
27840#include \"../netmod/${net}/${net}_pre.h\""
27841    fi
27842
27843    if test -z "$ch4_netmod_coll_params_include" ; then
27844        ch4_netmod_coll_params_include="#include \"../netmod/${net}/${net}_coll_params.h\""
27845    else
27846        ch4_netmod_coll_params_include="${ch4_netmod_coll_params_include}
27847#include \"../netmod/${net}/${net}_coll_params.h\""
27848    fi
27849
27850    net_upper=`echo ${net} | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27851    if test -z "$ch4_netmod_amrequest_decl" ; then
27852        ch4_netmod_amrequest_decl="MPIDI_${net_upper}_am_request_t ${net};"
27853    else
27854        ch4_netmod_amrequest_decl="${ch4_netmod_amrequest_decl} \\
27855MPIDI_${net_upper}_am_request_t ${net};"
27856    fi
27857
27858    if test -z "$ch4_netmod_request_decl" ; then
27859        ch4_netmod_request_decl="MPIDI_${net_upper}_request_t ${net};"
27860    else
27861        ch4_netmod_request_decl="${ch4_netmod_request_decl} \\
27862MPIDI_${net_upper}_request_t ${net};"
27863    fi
27864
27865    if test -z "$ch4_netmod_comm_decl" ; then
27866        ch4_netmod_comm_decl="MPIDI_${net_upper}_comm_t ${net};"
27867    else
27868        ch4_netmod_comm_decl="${ch4_netmod_comm_decl} \\
27869MPIDI_${net_upper}_comm_t ${net};"
27870    fi
27871    if test -z "$ch4_netmod_dt_decl" ; then
27872        ch4_netmod_dt_decl="MPIDI_${net_upper}_dt_t ${net};"
27873    else
27874        ch4_netmod_dt_decl="${ch4_netmod_dt_decl} \\
27875MPIDI_${net_upper}_dt_t ${net};"
27876    fi
27877    if test -z "$ch4_netmod_op_decl" ; then
27878        ch4_netmod_op_decl="MPIDI_${net_upper}_op_t ${net};"
27879    else
27880        ch4_netmod_op_decl="${ch4_netmod_op_decl} \\
27881MPIDI_${net_upper}_op_t ${net};"
27882    fi
27883    if test -z "$ch4_netmod_win_decl" ; then
27884        ch4_netmod_win_decl="MPIDI_${net_upper}_win_t ${net};"
27885    else
27886        ch4_netmod_win_decl="${ch4_netmod_win_decl} \\
27887MPIDI_${net_upper}_win_t ${net};"
27888    fi
27889    if test -z "$ch4_netmod_addr_decl" ; then
27890        ch4_netmod_addr_decl="MPIDI_${net_upper}_addr_t ${net};"
27891    else
27892        ch4_netmod_addr_decl="${ch4_netmod_addr_decl} \\
27893MPIDI_${net_upper}_addr_t ${net};"
27894    fi
27895
27896
27897
27898
27899net_index=`expr $net_index + 1`
27900done
27901ch4_nets_array_sz=$net_index
27902
27903
27904
27905
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926
27927
27928
27929
27930
27931
27932
27933# Check whether --enable-ch4-netmod-inline was given.
27934if test "${enable_ch4_netmod_inline+set}" = set; then :
27935  enableval=$enable_ch4_netmod_inline;
27936else
27937  enable_ch4_netmod_inline=yes
27938fi
27939
27940
27941
27942# Check whether --enable-ch4-netmod-direct was given.
27943if test "${enable_ch4_netmod_direct+set}" = set; then :
27944  enableval=$enable_ch4_netmod_direct;
27945fi
27946
27947
27948if test "$ch4_nets_array_sz" = "1" && (test "$enable_ch4_netmod_inline" = "yes" || test "$enable_ch4_netmod_direct" = "yes") ;  then
27949
27950
27951	if echo "$CPPFLAGS" | $FGREP -e "\<-DNETMOD_INLINE=__netmod_inline_${ch4_netmods}__\>" >/dev/null 2>&1; then :
27952  echo "CPPFLAGS(='$CPPFLAGS') contains '-DNETMOD_INLINE=__netmod_inline_${ch4_netmods}__', not appending" >&5
27953else
27954  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-DNETMOD_INLINE=__netmod_inline_${ch4_netmods}__', appending" >&5
27955		CPPFLAGS="$CPPFLAGS -DNETMOD_INLINE=__netmod_inline_${ch4_netmods}__"
27956
27957fi
27958
27959fi
27960
27961# Check whether --enable-ch4-direct was given.
27962if test "${enable_ch4_direct+set}" = set; then :
27963  enableval=$enable_ch4_direct; enable_ch4_direct=yes
27964else
27965  enable_ch4_direct=no
27966fi
27967
27968if test "${enable_ch4_direct}" = "yes" ; then
27969    as_fn_error $? "do not use --enable-ch4-direct; use --without-ch4-shmmods instead" "$LINENO" 5
27970fi
27971
27972# setup shared memory submodules
27973
27974# Check whether --with-ch4-shmmods was given.
27975if test "${with_ch4_shmmods+set}" = set; then :
27976  withval=$with_ch4_shmmods; with_ch4_shmmods=$withval
27977else
27978  with_ch4_shmmods=auto
27979fi
27980
27981# shmmod0,shmmod1,... format
27982# (posix is always enabled thus ch4_shm is not checked in posix module)
27983ch4_shm="`echo $with_ch4_shmmods | sed -e 's/,/ /g'`"
27984export ch4_shm
27985
27986# setup default direct communication routine
27987if test "${with_ch4_shmmods}" = "auto" -a "${ch4_netmods}" = "ucx" ; then
27988    # ucx can only choose direct netmod because it does not handle any_src
27989    # receive when both nemod and shared memory are used.
27990    with_ch4_shmmods=none
27991fi
27992
27993if test "${with_ch4_shmmods}" = "none" -o "${with_ch4_shmmods}" = "no" ; then
27994
27995$as_echo "#define MPIDI_CH4_DIRECT_NETMOD 1" >>confdefs.h
27996
27997else
27998    # This variable can be set either when CH4 controls the data transfer routine
27999    # or when the netmod doesn't want to implement its own locality information
28000
28001$as_echo "#define MPIDI_BUILD_CH4_LOCALITY_INFO 1" >>confdefs.h
28002
28003fi
28004
28005# Check whether --enable-ch4-am-only was given.
28006if test "${enable_ch4_am_only+set}" = set; then :
28007  enableval=$enable_ch4_am_only;
28008else
28009  enable_ch4_am_only=no
28010fi
28011
28012
28013if test "${enable_ch4_am_only}" = "yes"; then
28014
28015$as_echo "#define MPIDI_ENABLE_AM_ONLY 1" >>confdefs.h
28016
28017fi
28018
28019
28020fi
28021## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4
28022
28023## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_ucx
28024
28025    if test -z "$BUILD_CH4_TRUE"; then :
28026
28027        for net in $ch4_netmods ; do
28028            case $net in #(
28029  ucx) :
28030    build_ch4_netmod_ucx=yes ;; #(
28031  *) :
28032     ;;
28033esac
28034	    if test $net = "ucx" ; then
28035
28036$as_echo "#define HAVE_CH4_NETMOD_UCX 1" >>confdefs.h
28037
28038	       if test "$build_ch4_locality_info" != "yes" ; then
28039
28040$as_echo "#define MPIDI_BUILD_CH4_LOCALITY_INFO 1" >>confdefs.h
28041
28042		  build_ch4_locality_info="yes"
28043	       fi
28044	    fi
28045        done
28046
28047fi
28048     if test "X$build_ch4_netmod_ucx" = "Xyes"; then
28049  BUILD_CH4_NETMOD_UCX_TRUE=
28050  BUILD_CH4_NETMOD_UCX_FALSE='#'
28051else
28052  BUILD_CH4_NETMOD_UCX_TRUE='#'
28053  BUILD_CH4_NETMOD_UCX_FALSE=
28054fi
28055
28056
28057## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_ucx
28058
28059## begin expansion of PAC_SUBCFG_PREREQ_src_pm
28060
28061
28062## end expansion of PAC_SUBCFG_PREREQ_src_pm
28063
28064## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_stubshm
28065
28066    if test -z "$BUILD_CH4_TRUE"; then :
28067
28068        for shm in $ch4_shm ; do
28069            case $shm in #(
28070  stubshm) :
28071    build_ch4_shm_stubshm=yes ;; #(
28072  *) :
28073     ;;
28074esac
28075        done
28076
28077fi
28078     if test "X$build_ch4_shm_stubshm" = "Xyes"; then
28079  BUILD_SHM_STUBSHM_TRUE=
28080  BUILD_SHM_STUBSHM_FALSE='#'
28081else
28082  BUILD_SHM_STUBSHM_TRUE='#'
28083  BUILD_SHM_STUBSHM_FALSE=
28084fi
28085
28086
28087## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_stubshm
28088
28089## begin expansion of PAC_SUBCFG_PREREQ_src_binding_fortran_use_mpi
28090
28091 if test "X$enable_fc" = "Xyes"; then
28092  BUILD_FC_BINDING_TRUE=
28093  BUILD_FC_BINDING_FALSE='#'
28094else
28095  BUILD_FC_BINDING_TRUE='#'
28096  BUILD_FC_BINDING_FALSE=
28097fi
28098
28099
28100## end expansion of PAC_SUBCFG_PREREQ_src_binding_fortran_use_mpi
28101
28102## begin expansion of PAC_SUBCFG_PREREQ_src_pm_gforker
28103
28104
28105## end expansion of PAC_SUBCFG_PREREQ_src_pm_gforker
28106
28107## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_ipc_gpu
28108
28109    if test -z "$BUILD_CH4_TRUE"; then :
28110
28111        for shm in $ch4_shm ; do
28112            if test "x$shm" = "xgpudirect"; then :
28113  build_ch4_shm_ipc_gpu=yes
28114elif test "x$shm" = "xauto"; then :
28115  build_ch4_shm_ipc_gpu=yes
28116fi
28117        done
28118
28119        if test "$build_ch4_shm_ipc_gpu" = "yes" ; then
28120
28121$as_echo "#define MPIDI_CH4_SHM_ENABLE_GPU 1" >>confdefs.h
28122
28123        fi
28124
28125fi
28126     if test "X$build_ch4_shm_ipc_gpu" = "Xyes"; then
28127  BUILD_SHM_IPC_GPU_TRUE=
28128  BUILD_SHM_IPC_GPU_FALSE='#'
28129else
28130  BUILD_SHM_IPC_GPU_TRUE='#'
28131  BUILD_SHM_IPC_GPU_FALSE=
28132fi
28133
28134
28135## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_ipc_gpu
28136
28137## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_ipc_xpmem
28138
28139    if test -z "$BUILD_CH4_TRUE"; then :
28140
28141        for shm in $ch4_shm ; do
28142            if test "x$shm" = "xxpmem"; then :
28143  build_ch4_shm_ipc_xpmem=yes
28144elif test "x$shm" = "xauto"; then :
28145  build_ch4_shm_ipc_xpmem=auto
28146fi
28147        done
28148
28149fi
28150     if test -n "$build_ch4_shm_ipc_xpmem"; then
28151  BUILD_SHM_IPC_XPMEM_TRUE=
28152  BUILD_SHM_IPC_XPMEM_FALSE='#'
28153else
28154  BUILD_SHM_IPC_XPMEM_TRUE='#'
28155  BUILD_SHM_IPC_XPMEM_FALSE=
28156fi
28157
28158
28159## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_ipc_xpmem
28160
28161## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_stubnm
28162
28163    if test -z "$BUILD_CH4_TRUE"; then :
28164
28165        for net in $ch4_netmods ; do
28166            case $net in #(
28167  stubnm) :
28168    build_ch4_netmod_stubnm=yes ;; #(
28169  *) :
28170     ;;
28171esac
28172        done
28173
28174fi
28175     if test "X$build_ch4_netmod_stubnm" = "Xyes"; then
28176  BUILD_CH4_NETMOD_STUBNM_TRUE=
28177  BUILD_CH4_NETMOD_STUBNM_FALSE='#'
28178else
28179  BUILD_CH4_NETMOD_STUBNM_TRUE='#'
28180  BUILD_CH4_NETMOD_STUBNM_FALSE=
28181fi
28182
28183
28184## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_stubnm
28185
28186## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_common_genq
28187
28188     if test "$build_mpid_common_genq" = "yes"; then
28189  BUILD_MPID_COMMON_GENQ_TRUE=
28190  BUILD_MPID_COMMON_GENQ_FALSE='#'
28191else
28192  BUILD_MPID_COMMON_GENQ_TRUE='#'
28193  BUILD_MPID_COMMON_GENQ_FALSE=
28194fi
28195
28196
28197## end expansion of PAC_SUBCFG_PREREQ_src_mpid_common_genq
28198
28199## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_common_hcoll
28200
28201
28202
28203# Check whether --with-hcoll was given.
28204if test "${with_hcoll+set}" = set; then :
28205  withval=$with_hcoll;
28206fi
28207
28208
28209
28210# Check whether --with-hcoll-include was given.
28211if test "${with_hcoll_include+set}" = set; then :
28212  withval=$with_hcoll_include; case "$withval" in #(
28213  yes|no|'') :
28214    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-hcoll-include=PATH expects a valid PATH" >&5
28215$as_echo "$as_me: WARNING: --without-hcoll-include=PATH expects a valid PATH" >&2;}
28216                          with_hcoll_include="" ;; #(
28217  *) :
28218     ;;
28219esac
28220fi
28221
28222
28223# Check whether --with-hcoll-lib was given.
28224if test "${with_hcoll_lib+set}" = set; then :
28225  withval=$with_hcoll_lib; case "$withval" in #(
28226  yes|no|'') :
28227    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-hcoll-lib=PATH expects a valid PATH" >&5
28228$as_echo "$as_me: WARNING: --without-hcoll-lib=PATH expects a valid PATH" >&2;}
28229                          with_hcoll_lib="" ;; #(
28230  *) :
28231     ;;
28232esac
28233fi
28234
28235
28236    # The args have been sanitized into empty/non-empty values above.
28237    # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
28238    # taking priority
28239
28240    case "${with_hcoll}" in
28241        embedded)
28242            as_fn_error $? "embedded hcoll is requested but we do not have the embedded version" "$LINENO" 5
28243            ;;
28244        yes|no)
28245            # skip
28246            ;;
28247        *)
28248    if test -n "${with_hcoll_include}"; then :
28249
28250
28251	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_hcoll_include}\>" >/dev/null 2>&1; then :
28252  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_hcoll_include}', not appending" >&5
28253else
28254  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_hcoll_include}', appending" >&5
28255		CPPFLAGS="$CPPFLAGS -I${with_hcoll_include}"
28256
28257fi
28258
28259else
28260  if test -n "${with_hcoll}"; then :
28261
28262
28263	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_hcoll}/include\>" >/dev/null 2>&1; then :
28264  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_hcoll}/include', not appending" >&5
28265else
28266  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_hcoll}/include', appending" >&5
28267		CPPFLAGS="$CPPFLAGS -I${with_hcoll}/include"
28268
28269fi
28270
28271fi
28272fi
28273
28274    if test -n "${with_hcoll_lib}"; then :
28275
28276
28277	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_hcoll_lib}\>" >/dev/null 2>&1; then :
28278  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hcoll_lib}', not appending" >&5
28279else
28280  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hcoll_lib}', appending" >&5
28281		LDFLAGS="$LDFLAGS -L${with_hcoll_lib}"
28282
28283fi
28284
28285else
28286  if test -n "${with_hcoll}"; then :
28287
28288
28289	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_hcoll}/lib\>" >/dev/null 2>&1; then :
28290  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hcoll}/lib', not appending" >&5
28291else
28292  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hcoll}/lib', appending" >&5
28293		LDFLAGS="$LDFLAGS -L${with_hcoll}/lib"
28294
28295fi
28296
28297                  if test -d "${with_hcoll}/lib64"; then :
28298
28299
28300	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_hcoll}/lib64\>" >/dev/null 2>&1; then :
28301  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hcoll}/lib64', not appending" >&5
28302else
28303  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hcoll}/lib64', appending" >&5
28304		LDFLAGS="$LDFLAGS -L${with_hcoll}/lib64"
28305
28306fi
28307
28308fi
28309
28310fi
28311
28312fi
28313            ;;
28314    esac
28315
28316
28317	if test -z "${pac_save_LIBS_nesting}" ; then
28318	   pac_save_LIBS_nesting=0
28319	fi
28320	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
28321	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
28322
28323
28324    failure=no
28325    ac_fn_c_check_header_mongrel "$LINENO" "hcoll/api/hcoll_api.h" "ac_cv_header_hcoll_api_hcoll_api_h" "$ac_includes_default"
28326if test "x$ac_cv_header_hcoll_api_hcoll_api_h" = xyes; then :
28327
28328else
28329  failure=yes
28330fi
28331
28332
28333
28334	if test -z "${pac_save_LIBS_nesting}" ; then
28335	   pac_save_LIBS_nesting=0
28336	fi
28337	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
28338	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
28339
28340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hcoll_init in -lhcoll" >&5
28341$as_echo_n "checking for hcoll_init in -lhcoll... " >&6; }
28342if ${ac_cv_lib_hcoll_hcoll_init+:} false; then :
28343  $as_echo_n "(cached) " >&6
28344else
28345  ac_check_lib_save_LIBS=$LIBS
28346LIBS="-lhcoll  $LIBS"
28347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28348/* end confdefs.h.  */
28349
28350/* Override any GCC internal prototype to avoid an error.
28351   Use char because int might match the return type of a GCC
28352   builtin and then its argument prototype would still apply.  */
28353#ifdef __cplusplus
28354extern "C"
28355#endif
28356char hcoll_init ();
28357int
28358main ()
28359{
28360return hcoll_init ();
28361  ;
28362  return 0;
28363}
28364_ACEOF
28365if ac_fn_c_try_link "$LINENO"; then :
28366  ac_cv_lib_hcoll_hcoll_init=yes
28367else
28368  ac_cv_lib_hcoll_hcoll_init=no
28369fi
28370rm -f core conftest.err conftest.$ac_objext \
28371    conftest$ac_exeext conftest.$ac_ext
28372LIBS=$ac_check_lib_save_LIBS
28373fi
28374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hcoll_hcoll_init" >&5
28375$as_echo "$ac_cv_lib_hcoll_hcoll_init" >&6; }
28376if test "x$ac_cv_lib_hcoll_hcoll_init" = xyes; then :
28377  cat >>confdefs.h <<_ACEOF
28378#define HAVE_LIBHCOLL 1
28379_ACEOF
28380
28381  LIBS="-lhcoll $LIBS"
28382
28383else
28384  failure=yes
28385fi
28386
28387
28388	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
28389	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
28390	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
28391
28392    if test "$failure" = "no" ; then
28393       have_hcoll=yes
28394    else
28395       have_hcoll=no
28396    fi
28397
28398	if test "${with_hcoll}" = "no" ; then
28399	   have_hcoll=no;
28400	elif test "${have_hcoll}" = "yes" ; then
28401
28402
28403	if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lhcoll\>" >/dev/null 2>&1; then :
28404  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lhcoll', not appending" >&5
28405else
28406  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lhcoll', appending" >&5
28407		WRAPPER_LIBS="$WRAPPER_LIBS -lhcoll"
28408
28409fi
28410
28411	elif test -n "${with_hcoll}" -o -n "${with_hcoll_lib}" -o -n "${with_hcoll_include}" ; then
28412	   as_fn_error $? "'hcoll/api/hcoll_api.h or libhcoll library not found.'" "$LINENO" 5
28413	fi
28414
28415	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
28416	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
28417	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
28418
28419	 if test "$have_hcoll" = "yes"; then
28420  BUILD_HCOLL_TRUE=
28421  BUILD_HCOLL_FALSE='#'
28422else
28423  BUILD_HCOLL_TRUE='#'
28424  BUILD_HCOLL_FALSE=
28425fi
28426
28427
28428## end expansion of PAC_SUBCFG_PREREQ_src_mpid_common_hcoll
28429
28430## begin expansion of PAC_SUBCFG_PREREQ_src_pm_remshell
28431
28432
28433## end expansion of PAC_SUBCFG_PREREQ_src_pm_remshell
28434
28435## begin expansion of PAC_SUBCFG_PREREQ_src_pm_util
28436
28437
28438## end expansion of PAC_SUBCFG_PREREQ_src_pm_util
28439
28440## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_posix
28441
28442    if test -z "$BUILD_CH4_TRUE"; then :
28443
28444    # always enable POSIX
28445    build_ch4_shm_posix=yes
28446
28447
28448# Check whether --with-ch4-posix-eager-modules was given.
28449if test "${with_ch4_posix_eager_modules+set}" = set; then :
28450  withval=$with_ch4_posix_eager_modules; posix_eager_modules=$withval
28451else
28452  posix_eager_modules=
28453fi
28454
28455
28456    if test -z "${posix_eager_modules}" ; then
28457        ch4_posix_eager_modules="iqueue"
28458    else
28459        ch4_posix_eager_modules=`echo ${posix_eager_modules} | sed -e 's/,/ /g'`
28460    fi
28461
28462    export ch4_posix_eager_modules
28463
28464    ch4_posix_eager_func_decl=""
28465    ch4_posix_eager_func_array=""
28466    ch4_posix_eager_strings=""
28467    ch4_posix_eager_pre_include=""
28468    ch4_posix_eager_recv_transaction_decl=""
28469
28470    posix_eager_index=0
28471
28472    echo "Parsing POSIX eager arguments"
28473
28474    for posix_eager in $ch4_posix_eager_modules; do
28475
28476        if test ! -d $srcdir/src/mpid/ch4/shm/posix/eager/${posix_eager} ; then
28477            as_fn_error $? "POSIX eager module ${posix_eager} is unknown \"$srcdir/src/mpid/ch4/shm/posix/eager/${posix_eager}\"" "$LINENO" 5
28478        fi
28479
28480        posix_eager_macro=`echo $posix_eager | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
28481        posix_eager_macro="MPIDI_POSIX_${posix_eager_macro}"
28482
28483        if test -z "$ch4_posix_eager_array" ; then
28484            ch4_posix_eager_array="$posix_eager_macro"
28485        else
28486            ch4_posix_eager_array="$ch4_posix_eager_array, $posix_eager_macro"
28487        fi
28488
28489        if test -z "$ch4_posix_eager_func_decl" ; then
28490            ch4_posix_eager_func_decl="MPIDI_POSIX_eager_${posix_eager}_funcs"
28491        else
28492            ch4_posix_eager_func_decl="${ch4_posix_eager_func_decl}, MPIDI_POSIX_eager_${posix_eager}_funcs"
28493        fi
28494
28495        if test -z "$ch4_posix_eager_func_array" ; then
28496            ch4_posix_eager_func_array="&MPIDI_POSIX_eager_${posix_eager}_funcs"
28497        else
28498            ch4_posix_eager_func_array="${ch4_posix_eager_func_array}, &MPIDI_POSIX_eager_${posix_eager}_funcs"
28499        fi
28500
28501        if test -z "$ch4_posix_eager_strings" ; then
28502            ch4_posix_eager_strings="\"$posix_eager\""
28503        else
28504            ch4_posix_eager_strings="$ch4_posix_eager_strings, \"$posix_eager\""
28505        fi
28506
28507        if test -z "$ch4_posix_eager_pre_include" ; then
28508            ch4_posix_eager_pre_include="#include \"../${posix_eager}/${posix_eager}_pre.h\""
28509        else
28510            ch4_posix_eager_pre_include="${ch4_posix_eager_pre_include}
28511#include \"../${posix_eager}/${posix_eager}_pre.h\""
28512        fi
28513
28514        if test -z "$ch4_posix_eager_recv_transaction_decl" ; then
28515            ch4_posix_eager_recv_transaction_decl="MPIDI_POSIX_eager_${posix_eager}_recv_transaction_t ${posix_eager};"
28516        else
28517            ch4_posix_eager_recv_transaction_decl="${ch4_posix_eager_recv_transaction_decl} \\
28518MPIDI_POSIX_eager_${posix_eager}_recv_transaction_t ${posix_eager};"
28519        fi
28520
28521        posix_eager_index=`expr $posix_eager_index + 1`
28522
28523    done
28524
28525    ch4_posix_eager_array_sz=$posix_eager_index
28526
28527    echo "There are $ch4_posix_eager_array_sz POSIX eager modules (${ch4_posix_eager_modules})"
28528
28529
28530
28531
28532
28533
28534
28535
28536
28537
28538    if test "$ch4_posix_eager_array_sz" = "1" && (test "$enable_ch4_shm_inline" = "yes" || test "$enable_ch4_shm_direct" = "yes") ;  then
28539
28540
28541	if echo "$CPPFLAGS" | $FGREP -e "\<-DPOSIX_EAGER_INLINE=__posix_eager_inline_${ch4_posix_eager_modules}__\>" >/dev/null 2>&1; then :
28542  echo "CPPFLAGS(='$CPPFLAGS') contains '-DPOSIX_EAGER_INLINE=__posix_eager_inline_${ch4_posix_eager_modules}__', not appending" >&5
28543else
28544  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-DPOSIX_EAGER_INLINE=__posix_eager_inline_${ch4_posix_eager_modules}__', appending" >&5
28545		CPPFLAGS="$CPPFLAGS -DPOSIX_EAGER_INLINE=__posix_eager_inline_${ch4_posix_eager_modules}__"
28546
28547fi
28548
28549    fi
28550
28551    ac_config_files="$ac_config_files src/mpid/ch4/shm/posix/posix_eager_array.c src/mpid/ch4/shm/posix/eager/include/posix_eager_pre.h"
28552
28553
28554    # the POSIX shmmod depends on the common shm code
28555    build_mpid_common_shm=yes
28556
28557fi
28558     if test "X$build_ch4_shm_posix" = "Xyes"; then
28559  BUILD_SHM_POSIX_TRUE=
28560  BUILD_SHM_POSIX_FALSE='#'
28561else
28562  BUILD_SHM_POSIX_TRUE='#'
28563  BUILD_SHM_POSIX_FALSE=
28564fi
28565
28566
28567## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_posix
28568
28569## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_posix_eager_iqueue
28570
28571    if test -z "$BUILD_CH4_TRUE"; then :
28572
28573        for eager in $ch4_posix_eager_modules ; do
28574            case $eager in #(
28575  iqueue) :
28576    build_ch4_shm_posix_eager_iqueue=yes ;; #(
28577  *) :
28578     ;;
28579esac
28580            if test $eager = "iqueue" ; then
28581
28582$as_echo "#define HAVE_CH4_SHM_EAGER_IQUEUE 1" >>confdefs.h
28583
28584            fi
28585        done
28586
28587fi
28588     if test "X$build_ch4_shm_posix_eager_iqueue" = "Xyes"; then
28589  BUILD_CH4_SHM_POSIX_EAGER_IQUEUE_TRUE=
28590  BUILD_CH4_SHM_POSIX_EAGER_IQUEUE_FALSE='#'
28591else
28592  BUILD_CH4_SHM_POSIX_EAGER_IQUEUE_TRUE='#'
28593  BUILD_CH4_SHM_POSIX_EAGER_IQUEUE_FALSE=
28594fi
28595
28596
28597## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_posix_eager_iqueue
28598
28599## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_posix_eager_stub
28600
28601    if test -z "$BUILD_CH4_TRUE"; then :
28602
28603        for eager in $ch4_posix_eager_modules ; do
28604            case $eager in #(
28605  stub) :
28606    build_ch4_shm_posix_eager_stub=yes ;; #(
28607  *) :
28608     ;;
28609esac
28610            if test $eager = "stub" ; then
28611
28612$as_echo "#define HAVE_CH4_SHM_EAGER_STUB 1" >>confdefs.h
28613
28614            fi
28615        done
28616
28617fi
28618     if test "X$build_ch4_shm_posix_eager_stub" = "Xyes"; then
28619  BUILD_CH4_SHM_POSIX_EAGER_STUB_TRUE=
28620  BUILD_CH4_SHM_POSIX_EAGER_STUB_FALSE='#'
28621else
28622  BUILD_CH4_SHM_POSIX_EAGER_STUB_TRUE='#'
28623  BUILD_CH4_SHM_POSIX_EAGER_STUB_FALSE=
28624fi
28625
28626
28627## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_shm_posix_eager_stub
28628
28629## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_common_bc
28630
28631     if test "$build_mpid_common_bc" = "yes"; then
28632  BUILD_MPID_COMMON_BC_TRUE=
28633  BUILD_MPID_COMMON_BC_FALSE='#'
28634else
28635  BUILD_MPID_COMMON_BC_TRUE='#'
28636  BUILD_MPID_COMMON_BC_FALSE=
28637fi
28638
28639
28640## end expansion of PAC_SUBCFG_PREREQ_src_mpid_common_bc
28641
28642## begin expansion of PAC_SUBCFG_PREREQ_src_pmi
28643
28644
28645## end expansion of PAC_SUBCFG_PREREQ_src_pmi
28646
28647## begin expansion of PAC_SUBCFG_PREREQ_src_pmi_slurm
28648
28649
28650## end expansion of PAC_SUBCFG_PREREQ_src_pmi_slurm
28651
28652## begin expansion of PAC_SUBCFG_PREREQ_src_pmi_pmi2
28653
28654
28655## end expansion of PAC_SUBCFG_PREREQ_src_pmi_pmi2
28656
28657## begin expansion of PAC_SUBCFG_PREREQ_src_pmi_pmi2_simple
28658
28659
28660## end expansion of PAC_SUBCFG_PREREQ_src_pmi_pmi2_simple
28661
28662## begin expansion of PAC_SUBCFG_PREREQ_src_pmi_bgq
28663
28664
28665## end expansion of PAC_SUBCFG_PREREQ_src_pmi_bgq
28666
28667## begin expansion of PAC_SUBCFG_PREREQ_src_pmi_cray
28668
28669
28670## end expansion of PAC_SUBCFG_PREREQ_src_pmi_cray
28671
28672## begin expansion of PAC_SUBCFG_PREREQ_src_pmi_simple
28673
28674
28675## end expansion of PAC_SUBCFG_PREREQ_src_pmi_simple
28676
28677## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3
28678
28679 if test "$device_name" = "ch3"; then
28680  BUILD_CH3_TRUE=
28681  BUILD_CH3_FALSE='#'
28682else
28683  BUILD_CH3_TRUE='#'
28684  BUILD_CH3_FALSE=
28685fi
28686
28687
28688if test -z "$BUILD_CH3_TRUE"; then :
28689
28690
28691# Set a value for the maximum processor name.
28692MPID_MAX_PROCESSOR_NAME=128
28693
28694# code that formerly lived in setup_device.args
28695if test -z "${device_args}" ; then
28696    device_args="nemesis"
28697fi
28698channel_name=`echo ${device_args} | sed -e 's/:.*$//'`
28699# observe the [] quoting below
28700channel_args=`echo ${device_args} | sed -e 's/^[^:]*//' -e 's/^://'`
28701
28702#
28703# reset DEVICE so that it (a) always includes the channel name, and (b) does not include channel options
28704#
28705DEVICE="${device_name}:${channel_name}"
28706
28707dir=${main_top_srcdir}/src/mpid/${device_name}/channels/${channel_name}
28708if test ! -d $dir ; then
28709    echo "ERROR: ${dir} does not exist"
28710    exit 1
28711fi
28712## TODO this code can/should be eliminated
28713file=${dir}/setup_channel
28714if test -f $file ; then
28715    echo sourcing $file
28716    . $file
28717fi
28718
28719export channel_name
28720export channel_args
28721
28722
28723
28724# end old setup_device code
28725
28726if test ! -d $srcdir/src/mpid/ch3/channels/${channel_name} ; then
28727    as_fn_error $? "Channel ${channel_name} is unknown" "$LINENO" 5
28728elif test ! -f $srcdir/src/mpid/ch3/channels/${channel_name}/subconfigure.m4 ; then
28729    as_fn_error $? "Channel ${channel_name} has no subconfigure.m4" "$LINENO" 5
28730fi
28731
28732# the CH3 device depends on the common NBC scheduler code
28733build_mpid_common_sched=yes
28734build_mpid_common_datatype=yes
28735build_mpid_common_thread=yes
28736
28737
28738fi
28739## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3
28740
28741## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis
28742
28743 if test "X$device_name" = "Xch3" -a "X$channel_name" = "Xnemesis"; then
28744  BUILD_CH3_NEMESIS_TRUE=
28745  BUILD_CH3_NEMESIS_FALSE='#'
28746else
28747  BUILD_CH3_NEMESIS_TRUE='#'
28748  BUILD_CH3_NEMESIS_FALSE=
28749fi
28750
28751if test -z "$BUILD_CH3_NEMESIS_TRUE"; then :
28752
28753{ $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING PREREQ FOR ch3:nemesis" >&5
28754$as_echo "$as_me: RUNNING PREREQ FOR ch3:nemesis" >&6;}
28755MPID_MAX_THREAD_LEVEL=MPI_THREAD_MULTIPLE
28756
28757## code that formerly lived in setup_channel.args
28758# Variables of interest...
28759#
28760# $with_device - device name and arguments
28761# $device_name - name of the device
28762# $device_args - contains name of channel select plus an channel args
28763# $channel_name - name of the channel
28764# $main_top_srcdir - top-level source directory
28765# $main_top_builddir - top-level build directory
28766# $ac_configure_args - all arguments passed to configure
28767if test -z "${channel_args}" ; then
28768    nemesis_networks="tcp"
28769else
28770    nemesis_networks=`echo ${channel_args} | sed -e 's/,/ /g'`
28771fi
28772export nemesis_networks
28773
28774# the nemesis channel depends on the common shm code
28775build_mpid_common_shm=yes
28776
28777fi
28778## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis
28779
28780## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_common_shm
28781
28782     if test "X$build_mpid_common_shm" = "Xyes"; then
28783  BUILD_MPID_COMMON_SHM_TRUE=
28784  BUILD_MPID_COMMON_SHM_FALSE='#'
28785else
28786  BUILD_MPID_COMMON_SHM_TRUE='#'
28787  BUILD_MPID_COMMON_SHM_FALSE=
28788fi
28789
28790
28791## end expansion of PAC_SUBCFG_PREREQ_src_mpid_common_shm
28792
28793## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_ofi
28794
28795    if test -z "$BUILD_CH3_NEMESIS_TRUE"; then :
28796
28797        for net in $nemesis_networks ; do
28798            case $net in #(
28799  ofi) :
28800    build_nemesis_netmod_ofi=yes ;; #(
28801  *) :
28802     ;;
28803esac
28804        done
28805
28806fi
28807     if test "X$build_nemesis_netmod_ofi" = "Xyes"; then
28808  BUILD_NEMESIS_NETMOD_OFI_TRUE=
28809  BUILD_NEMESIS_NETMOD_OFI_FALSE='#'
28810else
28811  BUILD_NEMESIS_NETMOD_OFI_TRUE='#'
28812  BUILD_NEMESIS_NETMOD_OFI_FALSE=
28813fi
28814
28815
28816## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_ofi
28817
28818## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_tcp
28819
28820    if test -z "$BUILD_CH3_NEMESIS_TRUE"; then :
28821
28822        for net in $nemesis_networks ; do
28823            case $net in #(
28824  tcp) :
28825    build_nemesis_netmod_tcp=yes ;; #(
28826  *) :
28827     ;;
28828esac
28829        done
28830
28831fi
28832     if test "X$build_nemesis_netmod_tcp" = "Xyes"; then
28833  BUILD_NEMESIS_NETMOD_TCP_TRUE=
28834  BUILD_NEMESIS_NETMOD_TCP_FALSE='#'
28835else
28836  BUILD_NEMESIS_NETMOD_TCP_TRUE='#'
28837  BUILD_NEMESIS_NETMOD_TCP_FALSE=
28838fi
28839
28840
28841## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_nemesis_netmod_tcp
28842
28843## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_common_thread
28844
28845 if test "X$build_mpid_common_thread" = "Xyes"; then
28846  BUILD_MPID_COMMON_THREAD_TRUE=
28847  BUILD_MPID_COMMON_THREAD_FALSE='#'
28848else
28849  BUILD_MPID_COMMON_THREAD_TRUE='#'
28850  BUILD_MPID_COMMON_THREAD_FALSE=
28851fi
28852
28853
28854## end expansion of PAC_SUBCFG_PREREQ_src_mpid_common_thread
28855
28856## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_common_sched
28857
28858     if test "X$build_mpid_common_sched" = "Xyes"; then
28859  BUILD_MPID_COMMON_SCHED_TRUE=
28860  BUILD_MPID_COMMON_SCHED_FALSE='#'
28861else
28862  BUILD_MPID_COMMON_SCHED_TRUE='#'
28863  BUILD_MPID_COMMON_SCHED_FALSE=
28864fi
28865
28866
28867## end expansion of PAC_SUBCFG_PREREQ_src_mpid_common_sched
28868
28869## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_sock
28870
28871     if test "X$device_name" = "Xch3" -a "X$channel_name" = "Xsock"; then
28872  BUILD_CH3_SOCK_TRUE=
28873  BUILD_CH3_SOCK_FALSE='#'
28874else
28875  BUILD_CH3_SOCK_TRUE='#'
28876  BUILD_CH3_SOCK_FALSE=
28877fi
28878
28879    if test -z "$BUILD_CH3_SOCK_TRUE"; then :
28880
28881        { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING PREREQ FOR ch3:sock" >&5
28882$as_echo "$as_me: RUNNING PREREQ FOR ch3:sock" >&6;}
28883        # this channel depends on the sock utilities
28884        build_ch3u_sock=yes
28885
28886        MPID_MAX_THREAD_LEVEL=MPI_THREAD_MULTIPLE
28887        MPID_CH3I_CH_HCOLL_BCOL="basesmuma,basesmuma,ptpcoll"
28888
28889        # code that formerly lived in setup_args
28890        #
28891        # Variables of interest...
28892        #
28893        # $with_device - device name and arguments
28894        # $device_name - name of the device
28895        # $device_args - contains name of channel select plus an channel args
28896        # $channel_name - name of the channel
28897        # $main_top_srcdir - top-level source directory
28898        # $main_top_builddir - top-level build directory
28899        # $ac_configure_args - all arguments passed to configure
28900        #
28901
28902        found_dir="no"
28903        for sys in $devsubsystems ; do
28904            if test "$sys" = "src/mpid/common/sock" ; then
28905               found_dir="yes"
28906               break
28907            fi
28908        done
28909        if test "$found_dir" = "no" ; then
28910           devsubsystems="$devsubsystems src/mpid/common/sock"
28911        fi
28912
28913        # FIXME: The setup file has a weird requirement that it needs to be
28914        # run *before* the MPICH device (not the setup directory itself) is
28915        # configured, but the actual configuration of the associated directory
28916        # needs to be done *after* the device is configured.
28917        file=${main_top_srcdir}/src/mpid/common/sock/setup
28918        if test -f $file ; then
28919           echo sourcing $file
28920           . $file
28921        fi
28922
28923        pathlist=""
28924        pathlist="$pathlist src/mpid/${device_name}/channels/${channel_name}/include"
28925        pathlist="$pathlist src/util/wrappers"
28926        ## TODO delete this -I junk
28927        ##for path in $pathlist ; do
28928        ##    CPPFLAGS="$CPPFLAGS -I${main_top_builddir}/${path} -I${main_top_srcdir}/${path}"
28929        ##done
28930
28931# Adding this prevents the pesky "(strerror() not found)" problem, which can be
28932# very frustrating in the sock code, the most likely to receive an error code
28933# from the system. [goodell@ 2008-01-10]
28934for ac_func in strerror
28935do :
28936  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
28937if test "x$ac_cv_func_strerror" = xyes; then :
28938  cat >>confdefs.h <<_ACEOF
28939#define HAVE_STRERROR 1
28940_ACEOF
28941
28942fi
28943done
28944
28945
28946# Check whether --enable-sock-debug was given.
28947if test "${enable_sock_debug+set}" = set; then :
28948  enableval=$enable_sock_debug;
28949else
28950  enable_sock_debug=no
28951fi
28952
28953
28954if test "$enable_sock_debug" = yes ; then
28955
28956$as_echo "#define USE_SOCK_VERIFY 1" >>confdefs.h
28957
28958fi
28959
28960ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
28961if test "x$ac_cv_func_poll" = xyes; then :
28962  pac_cv_have_func_poll=yes
28963else
28964  pac_cv_have_func_poll=no
28965fi
28966
28967if test "X$pac_cv_have_func_poll" = "Xno" ; then
28968    if test -f /sw/include/sys/poll.h ; then
28969                                                CFLAGS="$CFLAGS -I/sw/include"
28970        LIBS="$LIBS -L/sw/lib -lpoll"
28971    else
28972        as_fn_error $? "This device requires the poll function" "$LINENO" 5
28973    fi
28974fi
28975
28976for ac_header in assert.h errno.h fcntl.h limits.h netdb.h netinet/in.h netinet/tcp.h
28977do :
28978  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28979ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28980if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28981  cat >>confdefs.h <<_ACEOF
28982#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28983_ACEOF
28984
28985fi
28986
28987done
28988
28989for ac_header in poll.h stdlib.h sys/param.h sys/poll.h sys/types.h sys/uio.h unistd.h
28990do :
28991  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28992ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28993if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28994  cat >>confdefs.h <<_ACEOF
28995#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28996_ACEOF
28997
28998fi
28999
29000done
29001
29002
29003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct poll is defined" >&5
29004$as_echo_n "checking if struct poll is defined... " >&6; };
29005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29006/* end confdefs.h.  */
29007
29008#if defined(HAVE_POLL_H)
29009#include <poll.h>
29010#endif
29011#if defined(HAVE_SYS_POLL_H)
29012#include <sys/poll.h>
29013#endif
29014
29015int
29016main ()
29017{
29018
29019struct pollfd pollfd;
29020pollfd.fd = -1;
29021
29022  ;
29023  return 0;
29024}
29025_ACEOF
29026if ac_fn_c_try_compile "$LINENO"; then :
29027
29028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29029$as_echo "yes" >&6; }
29030
29031else
29032
29033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29034$as_echo "no" >&6; }
29035as_fn_error $? "This device requires the poll function" "$LINENO" 5
29036
29037fi
29038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29039
29040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if a simple program using poll() can be compiled" >&5
29041$as_echo_n "checking if a simple program using poll() can be compiled... " >&6; };
29042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29043/* end confdefs.h.  */
29044
29045#if defined(HAVE_POLL_H)
29046#include <poll.h>
29047#endif
29048#if defined(HAVE_SYS_POLL_H)
29049#include <sys/poll.h>
29050#endif
29051
29052int
29053main ()
29054{
29055
29056struct pollfd pollfds[2];
29057int n_fds;
29058pollfds[0].fd = -1;
29059pollfds[1].fd = -1;
29060n_fds = poll(pollfds, 2, -1);
29061
29062  ;
29063  return 0;
29064}
29065_ACEOF
29066if ac_fn_c_try_compile "$LINENO"; then :
29067
29068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29069$as_echo "yes" >&6; }
29070
29071else
29072
29073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29074$as_echo "no" >&6; }
29075as_fn_error $? "This device requires the poll function" "$LINENO" 5
29076
29077fi
29078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29079
29080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bit fields work in ip.h" >&5
29081$as_echo_n "checking whether bit fields work in ip.h... " >&6; };
29082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29083/* end confdefs.h.  */
29084
29085#include <netinet/tcp.h>
29086
29087int
29088main ()
29089{
29090
29091int i;
29092
29093  ;
29094  return 0;
29095}
29096_ACEOF
29097if ac_fn_c_try_compile "$LINENO"; then :
29098
29099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29100$as_echo "yes" >&6; }
29101bit_fields=yes
29102
29103else
29104
29105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29106$as_echo "no" >&6; }
29107bit_fields=no
29108
29109fi
29110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29111if test "$bit_fields" = "no" ; then
29112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding -D_NO_BITFIELDS to CFLAGS" >&5
29113$as_echo "Adding -D_NO_BITFIELDS to CFLAGS" >&6; }
29114     CFLAGS="$CFLAGS -D_NO_BITFIELDS"
29115fi
29116
29117
29118for ac_func in gethostname
29119do :
29120  ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
29121if test "x$ac_cv_func_gethostname" = xyes; then :
29122  cat >>confdefs.h <<_ACEOF
29123#define HAVE_GETHOSTNAME 1
29124_ACEOF
29125
29126fi
29127done
29128
29129if test "$ac_cv_func_gethostname" = "yes" ; then
29130    # Do we need to declare gethostname?
29131
29132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostname needs a declaration" >&5
29133$as_echo_n "checking whether gethostname needs a declaration... " >&6; }
29134if ${pac_cv_func_decl_gethostname+:} false; then :
29135  $as_echo_n "(cached) " >&6
29136else
29137
29138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29139/* end confdefs.h.  */
29140#include <unistd.h>
29141void (*fptr)(void) = (void(*)(void))gethostname;
29142int
29143main ()
29144{
29145
29146  ;
29147  return 0;
29148}
29149_ACEOF
29150if ac_fn_c_try_compile "$LINENO"; then :
29151  pac_cv_func_decl_gethostname=no
29152else
29153  pac_cv_func_decl_gethostname=yes
29154fi
29155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29156fi
29157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_gethostname" >&5
29158$as_echo "$pac_cv_func_decl_gethostname" >&6; }
29159if test "$pac_cv_func_decl_gethostname" = "yes" ; then
29160
29161cat >>confdefs.h <<_ACEOF
29162#define NEEDS_GETHOSTNAME_DECL 1
29163_ACEOF
29164
29165
29166fi
29167
29168fi
29169
29170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
29171$as_echo_n "checking for library containing socket... " >&6; }
29172if ${ac_cv_search_socket+:} false; then :
29173  $as_echo_n "(cached) " >&6
29174else
29175  ac_func_search_save_LIBS=$LIBS
29176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29177/* end confdefs.h.  */
29178
29179/* Override any GCC internal prototype to avoid an error.
29180   Use char because int might match the return type of a GCC
29181   builtin and then its argument prototype would still apply.  */
29182#ifdef __cplusplus
29183extern "C"
29184#endif
29185char socket ();
29186int
29187main ()
29188{
29189return socket ();
29190  ;
29191  return 0;
29192}
29193_ACEOF
29194for ac_lib in '' socket; do
29195  if test -z "$ac_lib"; then
29196    ac_res="none required"
29197  else
29198    ac_res=-l$ac_lib
29199    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29200  fi
29201  if ac_fn_c_try_link "$LINENO"; then :
29202  ac_cv_search_socket=$ac_res
29203fi
29204rm -f core conftest.err conftest.$ac_objext \
29205    conftest$ac_exeext
29206  if ${ac_cv_search_socket+:} false; then :
29207  break
29208fi
29209done
29210if ${ac_cv_search_socket+:} false; then :
29211
29212else
29213  ac_cv_search_socket=no
29214fi
29215rm conftest.$ac_ext
29216LIBS=$ac_func_search_save_LIBS
29217fi
29218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
29219$as_echo "$ac_cv_search_socket" >&6; }
29220ac_res=$ac_cv_search_socket
29221if test "$ac_res" != no; then :
29222  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29223
29224fi
29225
29226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
29227$as_echo_n "checking for library containing gethostbyname... " >&6; }
29228if ${ac_cv_search_gethostbyname+:} false; then :
29229  $as_echo_n "(cached) " >&6
29230else
29231  ac_func_search_save_LIBS=$LIBS
29232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29233/* end confdefs.h.  */
29234
29235/* Override any GCC internal prototype to avoid an error.
29236   Use char because int might match the return type of a GCC
29237   builtin and then its argument prototype would still apply.  */
29238#ifdef __cplusplus
29239extern "C"
29240#endif
29241char gethostbyname ();
29242int
29243main ()
29244{
29245return gethostbyname ();
29246  ;
29247  return 0;
29248}
29249_ACEOF
29250for ac_lib in '' nsl; do
29251  if test -z "$ac_lib"; then
29252    ac_res="none required"
29253  else
29254    ac_res=-l$ac_lib
29255    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29256  fi
29257  if ac_fn_c_try_link "$LINENO"; then :
29258  ac_cv_search_gethostbyname=$ac_res
29259fi
29260rm -f core conftest.err conftest.$ac_objext \
29261    conftest$ac_exeext
29262  if ${ac_cv_search_gethostbyname+:} false; then :
29263  break
29264fi
29265done
29266if ${ac_cv_search_gethostbyname+:} false; then :
29267
29268else
29269  ac_cv_search_gethostbyname=no
29270fi
29271rm conftest.$ac_ext
29272LIBS=$ac_func_search_save_LIBS
29273fi
29274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
29275$as_echo "$ac_cv_search_gethostbyname" >&6; }
29276ac_res=$ac_cv_search_gethostbyname
29277if test "$ac_res" != no; then :
29278  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29279
29280fi
29281
29282
29283# Check first for sys/socket.h .  We check not only for existence but whether
29284# it can be compiled (!), as we have seen some problems with this.
29285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29286/* end confdefs.h.  */
29287
29288#include <sys/types.h>
29289#include <sys/socket.h>
29290
29291int
29292main ()
29293{
29294int a;
29295  ;
29296  return 0;
29297}
29298_ACEOF
29299if ac_fn_c_try_compile "$LINENO"; then :
29300  ac_cv_header_sys_socket_h=yes
29301else
29302  ac_cv_header_sys_socket_h=no
29303fi
29304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29305if test "$ac_cv_header_sys_socket_h" = yes ; then
29306
29307$as_echo "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
29308
29309fi
29310# Check for socklen_t .  If undefined, define it as int
29311# (note the conditional inclusion of sys/socket.h)
29312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t is defined (in sys/socket.h if present)" >&5
29313$as_echo_n "checking whether socklen_t is defined (in sys/socket.h if present)... " >&6; }
29314if ${pac_cv_have_socklen_t+:} false; then :
29315  $as_echo_n "(cached) " >&6
29316else
29317
29318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29319/* end confdefs.h.  */
29320
29321#include <sys/types.h>
29322#ifdef HAVE_SYS_SOCKET_H
29323#include <sys/socket.h>
29324#endif
29325typedef struct { double a; int b; } socklen_t;
29326int
29327main ()
29328{
29329socklen_t a;a.a=1.0;
29330  ;
29331  return 0;
29332}
29333_ACEOF
29334if ac_fn_c_try_compile "$LINENO"; then :
29335  pac_cv_have_socklen_t=no
29336else
29337  pac_cv_have_socklen_t=yes
29338fi
29339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29340fi
29341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_socklen_t" >&5
29342$as_echo "$pac_cv_have_socklen_t" >&6; }
29343if test "X$pac_cv_have_socklen_t" = Xno ; then
29344
29345$as_echo "#define socklen_t int" >>confdefs.h
29346
29347fi
29348
29349
29350fi
29351
29352## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_channels_sock
29353
29354## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_util_sock
29355
29356    # channels (like ch3:sock) that want to use this package should set build_ch3u_sock=yes
29357     if test "x$build_ch3u_sock" = "xyes"; then
29358  BUILD_CH3_UTIL_SOCK_TRUE=
29359  BUILD_CH3_UTIL_SOCK_FALSE='#'
29360else
29361  BUILD_CH3_UTIL_SOCK_TRUE='#'
29362  BUILD_CH3_UTIL_SOCK_FALSE=
29363fi
29364
29365
29366## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch3_util_sock
29367
29368## begin expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_ofi
29369
29370    if test -z "$BUILD_CH4_TRUE"; then :
29371
29372        for net in $ch4_netmods ; do
29373            case $net in #(
29374  ofi) :
29375    build_ch4_netmod_ofi=yes ;; #(
29376  *) :
29377     ;;
29378esac
29379	    if test $net = "ofi" ; then
29380
29381$as_echo "#define HAVE_CH4_NETMOD_OFI 1" >>confdefs.h
29382
29383
29384$as_echo "#define MPIDI_BUILD_CH4_LOCALITY_INFO 1" >>confdefs.h
29385
29386	    fi
29387        done
29388
29389
29390# Check whether --with-ch4-ofi-direct-provider was given.
29391if test "${with_ch4_ofi_direct_provider+set}" = set; then :
29392  withval=$with_ch4_ofi_direct_provider; ofi_direct_provider=$withval
29393else
29394  ofi_direct_provider=
29395fi
29396
29397
29398    if test "x$ofi_direct_provider" != "x"; then
29399       { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling OFI netmod direct provider" >&5
29400$as_echo "$as_me: Enabling OFI netmod direct provider" >&6;}
29401    fi
29402
29403
29404fi
29405     if test "X$build_ch4_netmod_ofi" = "Xyes"; then
29406  BUILD_CH4_NETMOD_OFI_TRUE=
29407  BUILD_CH4_NETMOD_OFI_FALSE='#'
29408else
29409  BUILD_CH4_NETMOD_OFI_TRUE='#'
29410  BUILD_CH4_NETMOD_OFI_FALSE=
29411fi
29412
29413
29414## end expansion of PAC_SUBCFG_PREREQ_src_mpid_ch4_netmod_ofi
29415
29416
29417# ----------------------------------------------------------------------------
29418# Set default library names if names haven't already been provided
29419
29420
29421
29422
29423MPILIBNAME=${MPILIBNAME:-"mpi"}
29424PMPILIBNAME_set=no
29425if test -n "$PMPILIBNAME" ; then
29426   PMPILIBNAME_set=yes
29427fi
29428PMPILIBNAME=${PMPILIBNAME:-"p$MPILIBNAME"}
29429# Note that the name for this library may be updated after we check for
29430# enable_shmem
29431# Fortran names are set later.
29432# We use a different library for the C++ wrappers to avoid problems when
29433# creating shared libraries
29434if test -z "$MPICXXLIBNAME" ; then MPICXXLIBNAME="${MPILIBNAME}cxx" ; fi
29435if test -z "$MPIFCLIBNAME" ; then MPIFCLIBNAME="${MPILIBNAME}fort" ; fi
29436export MPICXXLIBNAME
29437export MPIFCLIBNAME
29438
29439
29440
29441# We'll set FORTRAN_BINDING to 1 if we support Fortran
29442FORTRAN_BINDING=0
29443
29444# enable-fast
29445# strip off multiple options, separated by commas
29446save_IFS="$IFS"
29447IFS=","
29448for option in $enable_fast ; do
29449    case "$option" in
29450        O*)
29451        enable_fast_opts=$option
29452        ;;
29453        ndebug)
29454        enable_fast_ndebug=yes
29455        ;;
29456        no-strict-alignment)
29457        enable_fast_no_strict_alignment=yes
29458        ;;
29459        alwaysinline) # No op in MPICH. See mpl/configure.ac
29460        ;;
29461        all|yes)
29462        enable_fast_ndebug=yes
29463        enable_fast_opts=O2
29464        ;;
29465        none|no)
29466        enable_fast_ndebug=no
29467        enable_fast_opts=O0
29468        ;;
29469        *)
29470	IFS="$save_IFS"
29471        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $option for --enable-fast" >&5
29472$as_echo "$as_me: WARNING: Unknown value $option for --enable-fast" >&2;}
29473	IFS=","
29474        ;;
29475    esac
29476done
29477IFS="$save_IFS"
29478
29479if test -n "$enable_fast_opts" ; then
29480   # Allows O<n> where <n> can be [0-9] or ' '.
29481   opt_flags=`echo $enable_fast_opts | sed -e 's%\(O0-9 \)%\1%g'`
29482   if test -n "$opt_flags" ; then
29483      MPI_DEFAULT_COPTS="-$enable_fast_opts"
29484      MPI_DEFAULT_CXXOPTS="-$enable_fast_opts"
29485      MPI_DEFAULT_FOPTS="-$enable_fast_opts"
29486      MPI_DEFAULT_FCOPTS="-$enable_fast_opts"
29487   else
29488      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $enable_fast_opts for --enable-fast" >&5
29489$as_echo "$as_me: WARNING: Unknown value $enable_fast_opts for --enable-fast" >&2;}
29490   fi
29491fi
29492
29493if test "$enable_fast_ndebug" = "yes" ; then
29494    CFLAGS="$CFLAGS -DNDEBUG -DNVALGRIND"
29495    CXXFLAGS="$CXXFLAGS -DNDEBUG -DNVALGRIND"
29496    # MPICH does NOT assume any preprocessing support from the Fortran compiler,
29497    # so no Fortran files contain any preprocessing statements.
29498    # Don't set FFLAGS or FCFLAGS with any -D.
29499fi
29500
29501if test -z "$enable_fast_no_strict_alignment" ; then
29502    # we need observe strict alignment to pass ubsan check
29503
29504$as_echo "#define NEEDS_STRICT_ALIGNMENT 1" >>confdefs.h
29505
29506fi
29507
29508# error-checking
29509# Change default into the specific value of the default
29510if test "$enable_error_checking" = "yes" ; then
29511   enable_error_checking=all
29512fi
29513# mpir_ext.h needs the variable HAVE_ERROR_CHECKING to have the value 0 or 1
29514HAVE_ERROR_CHECKING=0
29515case "$enable_error_checking" in
29516    no)
29517    # if error checking has been disabled, then automatically disable the error
29518    # checking tests in the test suite
29519    ac_configure_args="${ac_configure_args} --disable-checkerrors"
29520    ;;
29521    all|runtime)
29522    error_checking_kind=`echo $enable_error_checking | \
29523    tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
29524    error_checking_kind=MPID_ERROR_LEVEL_$error_checking_kind
29525
29526cat >>confdefs.h <<_ACEOF
29527#define HAVE_ERROR_CHECKING $error_checking_kind
29528_ACEOF
29529
29530    HAVE_ERROR_CHECKING=1
29531    ;;
29532    *)
29533    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $enable_error_checking for enable-error-checking" >&5
29534$as_echo "$as_me: WARNING: Unknown value $enable_error_checking for enable-error-checking" >&2;}
29535    ;;
29536esac
29537# permit @HAVE_ERROR_CHECKING@ substitution in mpir_ext.h
29538
29539
29540# error-messages
29541case "$enable_error_messages" in
29542    no|none)
29543        error_message_kind="MPICH_ERROR_MSG__NONE"
29544    ;;
29545    all|yes)
29546	error_message_kind="MPICH_ERROR_MSG__ALL"
29547    ;;
29548    generic)
29549	error_message_kind="MPICH_ERROR_MSG__GENERIC"
29550    ;;
29551    class)
29552	error_message_kind="MPICH_ERROR_MSG__CLASS"
29553    ;;
29554    *)
29555    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $enable_error_messages for enable-error-messages" >&5
29556$as_echo "$as_me: WARNING: Unknown value $enable_error_messages for enable-error-messages" >&2;}
29557    ;;
29558esac
29559
29560cat >>confdefs.h <<_ACEOF
29561#define MPICH_ERROR_MSG_LEVEL $error_message_kind
29562_ACEOF
29563
29564
29565#error-tags
29566if test "$enable_tag_error_bits" = "yes" ; then
29567
29568$as_echo "#define HAVE_TAG_ERROR_BITS 1" >>confdefs.h
29569
29570fi
29571
29572# context bits
29573if test "$enable_extended_context_bits" = "yes" ; then
29574
29575$as_echo "#define HAVE_EXTENDED_CONTEXT_BITS 1" >>confdefs.h
29576
29577fi
29578
29579# MPL
29580
29581MPLLIBNAME=${MPLLIBNAME:-"mpl"}
29582export MPLLIBNAME
29583
29584
29585# Check whether --with-mpl-prefix was given.
29586if test "${with_mpl_prefix+set}" = set; then :
29587  withval=$with_mpl_prefix;
29588else
29589              with_mpl_prefix=embedded
29590fi
29591 mplsrcdir=""
29592
29593mpllibdir=""
29594
29595mpllib=""
29596
29597if test "$with_mpl_prefix" = "embedded" ; then
29598    # no need for libtool versioning when embedding MPL
29599    mpl_subdir_args="--disable-versioning --enable-embedded"
29600
29601        pac_dir="src/mpl"
29602        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring src/mpl =====" >&5
29603$as_echo "$as_me: ===== configuring src/mpl =====" >&6;}
29604
29605	pac_abs_srcdir=`(cd $srcdir && pwd)`
29606
29607	if test -f $pac_abs_srcdir/src/mpl/setup ; then
29608           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/src/mpl/setup" >&5
29609$as_echo "$as_me: sourcing $pac_abs_srcdir/src/mpl/setup" >&6;}
29610	   . $pac_abs_srcdir/src/mpl/setup
29611	fi
29612
29613        # Adapted for MPICH from the autoconf-2.67 implementation of
29614        # AC_CONFIG_SUBDIRS.  Search for "MPICH note:" for relevant commentary and
29615        # local modifications.
29616
29617        # Remove --cache-file, --srcdir, and --disable-option-checking arguments
29618        # so they do not pile up.  Otherwise relative paths (like --srcdir=.. from
29619        # make distcheck) will be incorrect.
29620        pac_sub_configure_args="$mpl_subdir_args"
29621        pac_prev=
29622        eval "set x $ac_configure_args"
29623        shift
29624        for pac_arg
29625        do
29626          if test -n "$pac_prev"; then
29627            pac_prev=
29628            continue
29629          fi
29630          case $pac_arg in
29631          -cache-file | --cache-file | --cache-fil | --cache-fi \
29632          | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
29633            pac_prev=cache_file ;;
29634          -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
29635          | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
29636          | --c=*)
29637            ;;
29638          --config-cache | -C)
29639            ;;
29640          -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
29641            pac_prev=srcdir ;;
29642          -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
29643            ;;
29644          -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
29645            pac_prev=prefix ;;
29646          -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
29647            ;;
29648          --disable-option-checking)
29649            ;;
29650          *)
29651            # MPICH note: this is a more robust version of the "precious
29652            # variable" propagation code that was present in the previous
29653            # incarnation of this macro
29654            for pac_pvar in $ac_precious_vars ; do
29655                # check if configure argument token contains the
29656                # precious variable, i.e. "name_of_prec_var=".
29657                if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then
29658                    # check if current precious variable is set in env
29659                    eval pvar_set=\${$pac_pvar+set}
29660                    if test "$pvar_set" = "set" ; then
29661                        # Append 'name_of_prec_var=value_of_prec_var'
29662                        # to the subconfigure arguments list, where
29663                        # value_of_prec_var is fetched from the env.
29664                        # this also overrides any value set on the command line
29665                        eval pac_pval=\${$pac_pvar}
29666                        pac_arg="$pac_pvar=$pac_pval"
29667                        break
29668                    fi
29669                fi
29670            done
29671            case $pac_arg in
29672            *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
29673            esac
29674            as_fn_append pac_sub_configure_args " '$pac_arg'" ;;
29675          esac
29676        done
29677
29678        # Always prepend --prefix to ensure using the same prefix
29679        # in subdir configurations.
29680        # MPICH note: see tt#983 for an example of why this is necessary
29681        pac_arg="--prefix=$prefix"
29682        case $pac_arg in
29683        *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
29684        esac
29685        pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args"
29686
29687        # Pass --silent
29688        if test "$silent" = yes; then
29689          pac_sub_configure_args="--silent $pac_sub_configure_args"
29690        fi
29691
29692        # Always prepend --disable-option-checking to silence warnings, since
29693        # different subdirs can have different --enable and --with options.
29694        pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args"
29695
29696        pac_popdir=`pwd`
29697
29698        # Do not complain, so a configure script can configure whichever
29699        # parts of a large source tree are present.
29700        test -d "$srcdir/$pac_dir" || continue
29701
29702        # MPICH note: modified to remove the internal "_AS_*" macro usage, also
29703        # msg is already printed at top
29704        as_dir="$pac_dir"; as_fn_mkdir_p
29705        # MPICH note: we leave this internal macro reference for now.  We can clone
29706        # the macro locally if this turns out to be non-portable across several autoconf
29707        # versions.  It sets the following variables: ac_builddir,
29708        # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir,
29709        # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir
29710        ac_builddir=.
29711
29712case "$pac_dir" in
29713.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29714*)
29715  ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'`
29716  # A ".." for each directory in $ac_dir_suffix.
29717  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29718  case $ac_top_builddir_sub in
29719  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29720  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29721  esac ;;
29722esac
29723ac_abs_top_builddir=$ac_pwd
29724ac_abs_builddir=$ac_pwd$ac_dir_suffix
29725# for backward compatibility:
29726ac_top_builddir=$ac_top_build_prefix
29727
29728case $srcdir in
29729  .)  # We are building in place.
29730    ac_srcdir=.
29731    ac_top_srcdir=$ac_top_builddir_sub
29732    ac_abs_top_srcdir=$ac_pwd ;;
29733  [\\/]* | ?:[\\/]* )  # Absolute name.
29734    ac_srcdir=$srcdir$ac_dir_suffix;
29735    ac_top_srcdir=$srcdir
29736    ac_abs_top_srcdir=$srcdir ;;
29737  *) # Relative name.
29738    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29739    ac_top_srcdir=$ac_top_build_prefix$srcdir
29740    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29741esac
29742ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29743
29744
29745        cd "$pac_dir"
29746
29747        # Check for guested configure; otherwise get Cygnus style configure.
29748        if test -f "$ac_srcdir/configure.gnu"; then
29749          pac_sub_configure=$ac_srcdir/configure.gnu
29750        elif test -f "$ac_srcdir/configure"; then
29751          pac_sub_configure=$ac_srcdir/configure
29752        elif test -f "$ac_srcdir/configure.ac"; then
29753          # This should be Cygnus configure.
29754          pac_sub_configure=$ac_aux_dir/configure
29755        else
29756          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5
29757$as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;}
29758          pac_sub_configure=
29759        fi
29760
29761        # The recursion is here.
29762        if test -n "$pac_sub_configure"; then
29763          # MPICH note: overriding the cache file on purpose to prevent strange
29764          # issues resulting from inter-dir caching
29765          pac_sub_cache_file="/dev/null"
29766
29767          { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5
29768$as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
29769          # The eval makes quoting arguments work.
29770          # MPICH note: we want to execute the provided actions, not be silent
29771          # or error out if the subconfigure succeeded/failed
29772          if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \
29773               --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\""
29774          then
29775            # restore the current dir for the provided actions
29776            cd "$pac_popdir"
29777
29778          else
29779            # restore the current dir for the provided actions
29780            cd "$pac_popdir"
29781            as_fn_error $? "MPL configure failed" "$LINENO" 5
29782          fi
29783        fi
29784
29785        cd "$pac_popdir"
29786
29787        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with src/mpl configure =====" >&5
29788$as_echo "$as_me: ===== done with src/mpl configure =====" >&6;}
29789
29790	# Check for any localdefs files.  These may be created, so we
29791	# look in the local directory first.
29792	if test -f src/mpl/localdefs ; then
29793           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing src/mpl/localdefs" >&5
29794$as_echo "$as_me: sourcing src/mpl/localdefs" >&6;}
29795	   . src/mpl/localdefs
29796	elif test -f $pac_abs_srcdir/src/mpl/localdefs ; then
29797           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/src/mpl/localdefs" >&5
29798$as_echo "$as_me: sourcing $pac_abs_srcdir/src/mpl/localdefs" >&6;}
29799	   . $pac_abs_srcdir/src/mpl/localdefs
29800	fi
29801
29802
29803
29804	if echo "$CPPFLAGS" | $FGREP -e "\<-I${main_top_builddir}/src/mpl/include\>" >/dev/null 2>&1; then :
29805  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${main_top_builddir}/src/mpl/include', not appending" >&5
29806else
29807  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${main_top_builddir}/src/mpl/include', appending" >&5
29808		CPPFLAGS="$CPPFLAGS -I${main_top_builddir}/src/mpl/include"
29809
29810fi
29811
29812
29813
29814	if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/src/mpl/include\>" >/dev/null 2>&1; then :
29815  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/src/mpl/include', not appending" >&5
29816else
29817  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/src/mpl/include', appending" >&5
29818		CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/src/mpl/include"
29819
29820fi
29821
29822
29823    mplsrcdir="src/mpl"
29824    mpllib="src/mpl/lib${MPLLIBNAME}.la"
29825else
29826    # The user specified an already-installed MPL; just sanity check, don't
29827    # subconfigure it
29828    if test -s "${with_mpl_prefix}/include/mplconfig.h"; then :
29829  :
29830else
29831  as_fn_error $? "the MPL installation in \"${with_mpl_prefix}\" appears broken" "$LINENO" 5
29832fi
29833
29834
29835	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_mpl_prefix}/include\>" >/dev/null 2>&1; then :
29836  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_mpl_prefix}/include', not appending" >&5
29837else
29838  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_mpl_prefix}/include', appending" >&5
29839		CPPFLAGS="$CPPFLAGS -I${with_mpl_prefix}/include"
29840
29841fi
29842
29843
29844
29845        if echo "$WRAPPER_LIBS" | $FGREP -e "\<-l${MPLLIBNAME}\>" >/dev/null 2>&1; then :
29846  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-l${MPLLIBNAME}', not prepending" >&5
29847else
29848  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-l${MPLLIBNAME}', prepending" >&5
29849                WRAPPER_LIBS="-l${MPLLIBNAME} $WRAPPER_LIBS"
29850
29851fi
29852
29853
29854
29855	if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_mpl_prefix}/lib\>" >/dev/null 2>&1; then :
29856  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_mpl_prefix}/lib', not appending" >&5
29857else
29858  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_mpl_prefix}/lib', appending" >&5
29859		WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_mpl_prefix}/lib"
29860
29861fi
29862
29863    mpllibdir="-L${with_mpl_prefix}/lib"
29864fi
29865
29866# Izem
29867
29868# Check whether --enable-izem-queue was given.
29869if test "${enable_izem_queue+set}" = set; then :
29870  enableval=$enable_izem_queue;
29871else
29872  enable_izem_queue=no
29873fi
29874
29875if test "${enable_izem_queue}" = "yes" ; then
29876
29877$as_echo "#define ENABLE_IZEM_QUEUE 1" >>confdefs.h
29878
29879fi
29880
29881
29882ZMLIBNAME=${ZMLIBNAME:-"zm"}
29883export ZMLIBNAME
29884
29885
29886# Check whether --with-zm-prefix was given.
29887if test "${with_zm_prefix+set}" = set; then :
29888  withval=$with_zm_prefix;
29889else
29890  with_zm_prefix=no
29891fi
29892
29893
29894zmsrcdir=""
29895
29896zmlibdir=""
29897
29898zmlib=""
29899
29900
29901if test "$enable_izem_queue" != "no" && test "$enable_izem_queue" != "none"; then
29902    if test "$with_zm_prefix" = "yes" || test "$with_zm_prefix" = "embedded"; then
29903        if test -e "${use_top_srcdir}/modules/izem" ; then
29904            zm_subdir_args="--enable-embedded"
29905
29906        pac_dir="modules/izem"
29907        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring modules/izem =====" >&5
29908$as_echo "$as_me: ===== configuring modules/izem =====" >&6;}
29909
29910	pac_abs_srcdir=`(cd $srcdir && pwd)`
29911
29912	if test -f $pac_abs_srcdir/modules/izem/setup ; then
29913           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/modules/izem/setup" >&5
29914$as_echo "$as_me: sourcing $pac_abs_srcdir/modules/izem/setup" >&6;}
29915	   . $pac_abs_srcdir/modules/izem/setup
29916	fi
29917
29918        # Adapted for MPICH from the autoconf-2.67 implementation of
29919        # AC_CONFIG_SUBDIRS.  Search for "MPICH note:" for relevant commentary and
29920        # local modifications.
29921
29922        # Remove --cache-file, --srcdir, and --disable-option-checking arguments
29923        # so they do not pile up.  Otherwise relative paths (like --srcdir=.. from
29924        # make distcheck) will be incorrect.
29925        pac_sub_configure_args="$zm_subdir_args"
29926        pac_prev=
29927        eval "set x $ac_configure_args"
29928        shift
29929        for pac_arg
29930        do
29931          if test -n "$pac_prev"; then
29932            pac_prev=
29933            continue
29934          fi
29935          case $pac_arg in
29936          -cache-file | --cache-file | --cache-fil | --cache-fi \
29937          | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
29938            pac_prev=cache_file ;;
29939          -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
29940          | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
29941          | --c=*)
29942            ;;
29943          --config-cache | -C)
29944            ;;
29945          -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
29946            pac_prev=srcdir ;;
29947          -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
29948            ;;
29949          -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
29950            pac_prev=prefix ;;
29951          -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
29952            ;;
29953          --disable-option-checking)
29954            ;;
29955          *)
29956            # MPICH note: this is a more robust version of the "precious
29957            # variable" propagation code that was present in the previous
29958            # incarnation of this macro
29959            for pac_pvar in $ac_precious_vars ; do
29960                # check if configure argument token contains the
29961                # precious variable, i.e. "name_of_prec_var=".
29962                if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then
29963                    # check if current precious variable is set in env
29964                    eval pvar_set=\${$pac_pvar+set}
29965                    if test "$pvar_set" = "set" ; then
29966                        # Append 'name_of_prec_var=value_of_prec_var'
29967                        # to the subconfigure arguments list, where
29968                        # value_of_prec_var is fetched from the env.
29969                        # this also overrides any value set on the command line
29970                        eval pac_pval=\${$pac_pvar}
29971                        pac_arg="$pac_pvar=$pac_pval"
29972                        break
29973                    fi
29974                fi
29975            done
29976            case $pac_arg in
29977            *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
29978            esac
29979            as_fn_append pac_sub_configure_args " '$pac_arg'" ;;
29980          esac
29981        done
29982
29983        # Always prepend --prefix to ensure using the same prefix
29984        # in subdir configurations.
29985        # MPICH note: see tt#983 for an example of why this is necessary
29986        pac_arg="--prefix=$prefix"
29987        case $pac_arg in
29988        *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
29989        esac
29990        pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args"
29991
29992        # Pass --silent
29993        if test "$silent" = yes; then
29994          pac_sub_configure_args="--silent $pac_sub_configure_args"
29995        fi
29996
29997        # Always prepend --disable-option-checking to silence warnings, since
29998        # different subdirs can have different --enable and --with options.
29999        pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args"
30000
30001        pac_popdir=`pwd`
30002
30003        # Do not complain, so a configure script can configure whichever
30004        # parts of a large source tree are present.
30005        test -d "$srcdir/$pac_dir" || continue
30006
30007        # MPICH note: modified to remove the internal "_AS_*" macro usage, also
30008        # msg is already printed at top
30009        as_dir="$pac_dir"; as_fn_mkdir_p
30010        # MPICH note: we leave this internal macro reference for now.  We can clone
30011        # the macro locally if this turns out to be non-portable across several autoconf
30012        # versions.  It sets the following variables: ac_builddir,
30013        # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir,
30014        # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir
30015        ac_builddir=.
30016
30017case "$pac_dir" in
30018.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30019*)
30020  ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'`
30021  # A ".." for each directory in $ac_dir_suffix.
30022  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30023  case $ac_top_builddir_sub in
30024  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30025  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30026  esac ;;
30027esac
30028ac_abs_top_builddir=$ac_pwd
30029ac_abs_builddir=$ac_pwd$ac_dir_suffix
30030# for backward compatibility:
30031ac_top_builddir=$ac_top_build_prefix
30032
30033case $srcdir in
30034  .)  # We are building in place.
30035    ac_srcdir=.
30036    ac_top_srcdir=$ac_top_builddir_sub
30037    ac_abs_top_srcdir=$ac_pwd ;;
30038  [\\/]* | ?:[\\/]* )  # Absolute name.
30039    ac_srcdir=$srcdir$ac_dir_suffix;
30040    ac_top_srcdir=$srcdir
30041    ac_abs_top_srcdir=$srcdir ;;
30042  *) # Relative name.
30043    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30044    ac_top_srcdir=$ac_top_build_prefix$srcdir
30045    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30046esac
30047ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30048
30049
30050        cd "$pac_dir"
30051
30052        # Check for guested configure; otherwise get Cygnus style configure.
30053        if test -f "$ac_srcdir/configure.gnu"; then
30054          pac_sub_configure=$ac_srcdir/configure.gnu
30055        elif test -f "$ac_srcdir/configure"; then
30056          pac_sub_configure=$ac_srcdir/configure
30057        elif test -f "$ac_srcdir/configure.ac"; then
30058          # This should be Cygnus configure.
30059          pac_sub_configure=$ac_aux_dir/configure
30060        else
30061          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5
30062$as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;}
30063          pac_sub_configure=
30064        fi
30065
30066        # The recursion is here.
30067        if test -n "$pac_sub_configure"; then
30068          # MPICH note: overriding the cache file on purpose to prevent strange
30069          # issues resulting from inter-dir caching
30070          pac_sub_cache_file="/dev/null"
30071
30072          { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5
30073$as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
30074          # The eval makes quoting arguments work.
30075          # MPICH note: we want to execute the provided actions, not be silent
30076          # or error out if the subconfigure succeeded/failed
30077          if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \
30078               --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\""
30079          then
30080            # restore the current dir for the provided actions
30081            cd "$pac_popdir"
30082
30083          else
30084            # restore the current dir for the provided actions
30085            cd "$pac_popdir"
30086            as_fn_error $? "Izem configure failed" "$LINENO" 5
30087          fi
30088        fi
30089
30090        cd "$pac_popdir"
30091
30092        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with modules/izem configure =====" >&5
30093$as_echo "$as_me: ===== done with modules/izem configure =====" >&6;}
30094
30095	# Check for any localdefs files.  These may be created, so we
30096	# look in the local directory first.
30097	if test -f modules/izem/localdefs ; then
30098           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing modules/izem/localdefs" >&5
30099$as_echo "$as_me: sourcing modules/izem/localdefs" >&6;}
30100	   . modules/izem/localdefs
30101	elif test -f $pac_abs_srcdir/modules/izem/localdefs ; then
30102           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/modules/izem/localdefs" >&5
30103$as_echo "$as_me: sourcing $pac_abs_srcdir/modules/izem/localdefs" >&6;}
30104	   . $pac_abs_srcdir/modules/izem/localdefs
30105	fi
30106
30107            zmsrcdir="${main_top_builddir}/modules/izem"
30108            zmlib="${main_top_builddir}/modules/izem/src/lib${ZMLIBNAME}.la"
30109
30110
30111	if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/modules/izem/src/include\>" >/dev/null 2>&1; then :
30112  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/modules/izem/src/include', not appending" >&5
30113else
30114  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/modules/izem/src/include', appending" >&5
30115		CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/modules/izem/src/include"
30116
30117fi
30118
30119
30120
30121	if echo "$CPPFLAGS" | $FGREP -e "\<-I${main_top_builddir}/modules/izem/src/include\>" >/dev/null 2>&1; then :
30122  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${main_top_builddir}/modules/izem/src/include', not appending" >&5
30123else
30124  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${main_top_builddir}/modules/izem/src/include', appending" >&5
30125		CPPFLAGS="$CPPFLAGS -I${main_top_builddir}/modules/izem/src/include"
30126
30127fi
30128
30129        else
30130            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Attempted to use the embedded Izem source tree in \"modules/izem\", but it is missing.  Configuration or compilation may fail later." >&5
30131$as_echo "$as_me: WARNING: Attempted to use the embedded Izem source tree in \"modules/izem\", but it is missing.  Configuration or compilation may fail later." >&2;}
30132        fi
30133    elif test "$with_zm_prefix" = "system"; then
30134        # check if an Izem installation exists on this system
30135
30136	if test -z "${pac_save_LIBS_nesting}" ; then
30137	   pac_save_LIBS_nesting=0
30138	fi
30139	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
30140	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
30141
30142
30143
30144        if echo "$LIBS" | $FGREP -e "\<-l${ZMLIBNAME}\>" >/dev/null 2>&1; then :
30145  echo "LIBS(='$LIBS') contains '-l${ZMLIBNAME}', not prepending" >&5
30146else
30147  echo "LIBS(='$LIBS') does not contain '-l${ZMLIBNAME}', prepending" >&5
30148                LIBS="-l${ZMLIBNAME} $LIBS"
30149
30150fi
30151
30152        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30153/* end confdefs.h.  */
30154#include "lock/zm_ticket.h"
30155
30156int
30157main ()
30158{
30159zm_ticket_t lock;
30160                                         zm_ticket_init(&lock);
30161                                         zm_ticket_acquire(&lock);
30162                                         zm_ticket_release(&lock);
30163  ;
30164  return 0;
30165}
30166_ACEOF
30167if ac_fn_c_try_link "$LINENO"; then :
30168  as_fn_error $? "No usable Izem installation was found on this system" "$LINENO" 5
30169else
30170
30171
30172        if echo "$WRAPPER_LIBS" | $FGREP -e "\<-l${ZMLIBNAME}\>" >/dev/null 2>&1; then :
30173  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-l${ZMLIBNAME}', not prepending" >&5
30174else
30175  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-l${ZMLIBNAME}', prepending" >&5
30176                WRAPPER_LIBS="-l${ZMLIBNAME} $WRAPPER_LIBS"
30177
30178fi
30179
30180fi
30181rm -f core conftest.err conftest.$ac_objext \
30182    conftest$ac_exeext conftest.$ac_ext
30183
30184	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
30185	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
30186	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
30187
30188    elif test "$with_zm_prefix" = "no"; then
30189        as_fn_error $? "Izem features were requested with --enable-izem but Izem was disabled." "$LINENO" 5
30190    else
30191        # The user specified an already-installed Izem; just sanity check, don't
30192        # subconfigure it
30193
30194        if test -s "${with_zm_prefix}/include/lock/zm_lock.h" -a -s "${with_zm_prefix}/include/cond/zm_cond.h"; then :
30195  :
30196else
30197  as_fn_error $? "Izem headers at \"${with_zm_prefix}/include\" are missing" "$LINENO" 5
30198fi
30199
30200
30201	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_zm_prefix}/include\>" >/dev/null 2>&1; then :
30202  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_zm_prefix}/include', not appending" >&5
30203else
30204  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_zm_prefix}/include', appending" >&5
30205		CPPFLAGS="$CPPFLAGS -I${with_zm_prefix}/include"
30206
30207fi
30208
30209
30210
30211	if test -z "${pac_save_LIBS_nesting}" ; then
30212	   pac_save_LIBS_nesting=0
30213	fi
30214	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
30215	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
30216
30217
30218	if test -z "${pac_save_LDFLAGS_nesting}" ; then
30219	   pac_save_LDFLAGS_nesting=0
30220	fi
30221	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"'
30222	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1`
30223
30224
30225
30226        if echo "$LIBS" | $FGREP -e "\<-l${ZMLIBNAME}\>" >/dev/null 2>&1; then :
30227  echo "LIBS(='$LIBS') contains '-l${ZMLIBNAME}', not prepending" >&5
30228else
30229  echo "LIBS(='$LIBS') does not contain '-l${ZMLIBNAME}', prepending" >&5
30230                LIBS="-l${ZMLIBNAME} $LIBS"
30231
30232fi
30233
30234
30235
30236	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_zm_prefix}/lib\>" >/dev/null 2>&1; then :
30237  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_zm_prefix}/lib', not appending" >&5
30238else
30239  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_zm_prefix}/lib', appending" >&5
30240		LDFLAGS="$LDFLAGS -L${with_zm_prefix}/lib"
30241
30242fi
30243
30244        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30245/* end confdefs.h.  */
30246#include "lock/zm_ticket.h"
30247
30248int
30249main ()
30250{
30251zm_ticket_t lock;
30252                                         zm_ticket_init(&lock);
30253                                         zm_ticket_acquire(&lock);
30254                                         zm_ticket_release(&lock);
30255  ;
30256  return 0;
30257}
30258_ACEOF
30259if ac_fn_c_try_link "$LINENO"; then :
30260
30261else
30262  as_fn_error $? "The Izem installation at \"${with_zm_prefix}\" seems broken" "$LINENO" 5
30263fi
30264rm -f core conftest.err conftest.$ac_objext \
30265    conftest$ac_exeext conftest.$ac_ext
30266
30267	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
30268	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
30269	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
30270
30271
30272	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1`
30273	eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}"
30274	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}=""
30275
30276
30277
30278	if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_zm_prefix}/lib\>" >/dev/null 2>&1; then :
30279  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_zm_prefix}/lib', not appending" >&5
30280else
30281  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_zm_prefix}/lib', appending" >&5
30282		WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_zm_prefix}/lib"
30283
30284fi
30285
30286
30287
30288        if echo "$WRAPPER_LIBS" | $FGREP -e "\<-l${ZMLIBNAME}\>" >/dev/null 2>&1; then :
30289  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-l${ZMLIBNAME}', not prepending" >&5
30290else
30291  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-l${ZMLIBNAME}', prepending" >&5
30292                WRAPPER_LIBS="-l${ZMLIBNAME} $WRAPPER_LIBS"
30293
30294fi
30295
30296        zmlibdir="-L${with_zm_prefix}/lib"
30297    fi
30298fi
30299
30300# YAKSA
30301
30302YAKSALIBNAME=${YAKSALIBNAME:-"yaksa"}
30303export YAKSALIBNAME
30304
30305
30306# Check whether --with-yaksa-prefix was given.
30307if test "${with_yaksa_prefix+set}" = set; then :
30308  withval=$with_yaksa_prefix;
30309else
30310              with_yaksa_prefix=embedded
30311fi
30312
30313yaksasrcdir=""
30314
30315yaksalibdir=""
30316
30317yaksalib=""
30318
30319
30320if test "$with_yaksa_prefix" = "embedded" ; then
30321    # no need for libtool versioning when embedding YAKSA
30322    yaksa_subdir_args="--enable-embedded"
30323
30324        pac_dir="modules/yaksa"
30325        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring modules/yaksa =====" >&5
30326$as_echo "$as_me: ===== configuring modules/yaksa =====" >&6;}
30327
30328	pac_abs_srcdir=`(cd $srcdir && pwd)`
30329
30330	if test -f $pac_abs_srcdir/modules/yaksa/setup ; then
30331           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/modules/yaksa/setup" >&5
30332$as_echo "$as_me: sourcing $pac_abs_srcdir/modules/yaksa/setup" >&6;}
30333	   . $pac_abs_srcdir/modules/yaksa/setup
30334	fi
30335
30336        # Adapted for MPICH from the autoconf-2.67 implementation of
30337        # AC_CONFIG_SUBDIRS.  Search for "MPICH note:" for relevant commentary and
30338        # local modifications.
30339
30340        # Remove --cache-file, --srcdir, and --disable-option-checking arguments
30341        # so they do not pile up.  Otherwise relative paths (like --srcdir=.. from
30342        # make distcheck) will be incorrect.
30343        pac_sub_configure_args="$yaksa_subdir_args"
30344        pac_prev=
30345        eval "set x $ac_configure_args"
30346        shift
30347        for pac_arg
30348        do
30349          if test -n "$pac_prev"; then
30350            pac_prev=
30351            continue
30352          fi
30353          case $pac_arg in
30354          -cache-file | --cache-file | --cache-fil | --cache-fi \
30355          | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30356            pac_prev=cache_file ;;
30357          -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
30358          | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30359          | --c=*)
30360            ;;
30361          --config-cache | -C)
30362            ;;
30363          -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30364            pac_prev=srcdir ;;
30365          -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30366            ;;
30367          -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30368            pac_prev=prefix ;;
30369          -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30370            ;;
30371          --disable-option-checking)
30372            ;;
30373          *)
30374            # MPICH note: this is a more robust version of the "precious
30375            # variable" propagation code that was present in the previous
30376            # incarnation of this macro
30377            for pac_pvar in $ac_precious_vars ; do
30378                # check if configure argument token contains the
30379                # precious variable, i.e. "name_of_prec_var=".
30380                if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then
30381                    # check if current precious variable is set in env
30382                    eval pvar_set=\${$pac_pvar+set}
30383                    if test "$pvar_set" = "set" ; then
30384                        # Append 'name_of_prec_var=value_of_prec_var'
30385                        # to the subconfigure arguments list, where
30386                        # value_of_prec_var is fetched from the env.
30387                        # this also overrides any value set on the command line
30388                        eval pac_pval=\${$pac_pvar}
30389                        pac_arg="$pac_pvar=$pac_pval"
30390                        break
30391                    fi
30392                fi
30393            done
30394            case $pac_arg in
30395            *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30396            esac
30397            as_fn_append pac_sub_configure_args " '$pac_arg'" ;;
30398          esac
30399        done
30400
30401        # Always prepend --prefix to ensure using the same prefix
30402        # in subdir configurations.
30403        # MPICH note: see tt#983 for an example of why this is necessary
30404        pac_arg="--prefix=$prefix"
30405        case $pac_arg in
30406        *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30407        esac
30408        pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args"
30409
30410        # Pass --silent
30411        if test "$silent" = yes; then
30412          pac_sub_configure_args="--silent $pac_sub_configure_args"
30413        fi
30414
30415        # Always prepend --disable-option-checking to silence warnings, since
30416        # different subdirs can have different --enable and --with options.
30417        pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args"
30418
30419        pac_popdir=`pwd`
30420
30421        # Do not complain, so a configure script can configure whichever
30422        # parts of a large source tree are present.
30423        test -d "$srcdir/$pac_dir" || continue
30424
30425        # MPICH note: modified to remove the internal "_AS_*" macro usage, also
30426        # msg is already printed at top
30427        as_dir="$pac_dir"; as_fn_mkdir_p
30428        # MPICH note: we leave this internal macro reference for now.  We can clone
30429        # the macro locally if this turns out to be non-portable across several autoconf
30430        # versions.  It sets the following variables: ac_builddir,
30431        # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir,
30432        # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir
30433        ac_builddir=.
30434
30435case "$pac_dir" in
30436.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30437*)
30438  ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'`
30439  # A ".." for each directory in $ac_dir_suffix.
30440  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30441  case $ac_top_builddir_sub in
30442  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30443  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30444  esac ;;
30445esac
30446ac_abs_top_builddir=$ac_pwd
30447ac_abs_builddir=$ac_pwd$ac_dir_suffix
30448# for backward compatibility:
30449ac_top_builddir=$ac_top_build_prefix
30450
30451case $srcdir in
30452  .)  # We are building in place.
30453    ac_srcdir=.
30454    ac_top_srcdir=$ac_top_builddir_sub
30455    ac_abs_top_srcdir=$ac_pwd ;;
30456  [\\/]* | ?:[\\/]* )  # Absolute name.
30457    ac_srcdir=$srcdir$ac_dir_suffix;
30458    ac_top_srcdir=$srcdir
30459    ac_abs_top_srcdir=$srcdir ;;
30460  *) # Relative name.
30461    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30462    ac_top_srcdir=$ac_top_build_prefix$srcdir
30463    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30464esac
30465ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30466
30467
30468        cd "$pac_dir"
30469
30470        # Check for guested configure; otherwise get Cygnus style configure.
30471        if test -f "$ac_srcdir/configure.gnu"; then
30472          pac_sub_configure=$ac_srcdir/configure.gnu
30473        elif test -f "$ac_srcdir/configure"; then
30474          pac_sub_configure=$ac_srcdir/configure
30475        elif test -f "$ac_srcdir/configure.ac"; then
30476          # This should be Cygnus configure.
30477          pac_sub_configure=$ac_aux_dir/configure
30478        else
30479          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5
30480$as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;}
30481          pac_sub_configure=
30482        fi
30483
30484        # The recursion is here.
30485        if test -n "$pac_sub_configure"; then
30486          # MPICH note: overriding the cache file on purpose to prevent strange
30487          # issues resulting from inter-dir caching
30488          pac_sub_cache_file="/dev/null"
30489
30490          { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5
30491$as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
30492          # The eval makes quoting arguments work.
30493          # MPICH note: we want to execute the provided actions, not be silent
30494          # or error out if the subconfigure succeeded/failed
30495          if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \
30496               --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\""
30497          then
30498            # restore the current dir for the provided actions
30499            cd "$pac_popdir"
30500
30501          else
30502            # restore the current dir for the provided actions
30503            cd "$pac_popdir"
30504            as_fn_error $? "YAKSA configure failed" "$LINENO" 5
30505          fi
30506        fi
30507
30508        cd "$pac_popdir"
30509
30510        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with modules/yaksa configure =====" >&5
30511$as_echo "$as_me: ===== done with modules/yaksa configure =====" >&6;}
30512
30513	# Check for any localdefs files.  These may be created, so we
30514	# look in the local directory first.
30515	if test -f modules/yaksa/localdefs ; then
30516           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing modules/yaksa/localdefs" >&5
30517$as_echo "$as_me: sourcing modules/yaksa/localdefs" >&6;}
30518	   . modules/yaksa/localdefs
30519	elif test -f $pac_abs_srcdir/modules/yaksa/localdefs ; then
30520           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/modules/yaksa/localdefs" >&5
30521$as_echo "$as_me: sourcing $pac_abs_srcdir/modules/yaksa/localdefs" >&6;}
30522	   . $pac_abs_srcdir/modules/yaksa/localdefs
30523	fi
30524
30525
30526
30527	if echo "$CPPFLAGS" | $FGREP -e "\<-I${main_top_builddir}/modules/yaksa/src/frontend/include\>" >/dev/null 2>&1; then :
30528  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${main_top_builddir}/modules/yaksa/src/frontend/include', not appending" >&5
30529else
30530  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${main_top_builddir}/modules/yaksa/src/frontend/include', appending" >&5
30531		CPPFLAGS="$CPPFLAGS -I${main_top_builddir}/modules/yaksa/src/frontend/include"
30532
30533fi
30534
30535
30536
30537	if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/modules/yaksa/src/frontend/include\>" >/dev/null 2>&1; then :
30538  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/modules/yaksa/src/frontend/include', not appending" >&5
30539else
30540  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/modules/yaksa/src/frontend/include', appending" >&5
30541		CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/modules/yaksa/src/frontend/include"
30542
30543fi
30544
30545
30546    yaksasrcdir="modules/yaksa"
30547    yaksalib="modules/yaksa/lib${YAKSALIBNAME}.la"
30548else
30549    # The user specified an already-installed YAKSA; just sanity check, don't
30550    # subconfigure it
30551    if test -s "${with_yaksa_prefix}/include/yaksa_config.h"; then :
30552  :
30553else
30554  as_fn_error $? "the YAKSA installation in \"${with_yaksa_prefix}\" appears broken" "$LINENO" 5
30555fi
30556
30557
30558	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_yaksa_prefix}/include\>" >/dev/null 2>&1; then :
30559  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_yaksa_prefix}/include', not appending" >&5
30560else
30561  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_yaksa_prefix}/include', appending" >&5
30562		CPPFLAGS="$CPPFLAGS -I${with_yaksa_prefix}/include"
30563
30564fi
30565
30566
30567
30568        if echo "$WRAPPER_LIBS" | $FGREP -e "\<-l${YAKSALIBNAME}\>" >/dev/null 2>&1; then :
30569  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-l${YAKSALIBNAME}', not prepending" >&5
30570else
30571  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-l${YAKSALIBNAME}', prepending" >&5
30572                WRAPPER_LIBS="-l${YAKSALIBNAME} $WRAPPER_LIBS"
30573
30574fi
30575
30576
30577
30578	if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_yaksa_prefix}/lib\>" >/dev/null 2>&1; then :
30579  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_yaksa_prefix}/lib', not appending" >&5
30580else
30581  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_yaksa_prefix}/lib', appending" >&5
30582		WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_yaksa_prefix}/lib"
30583
30584fi
30585
30586    yaksalibdir="-L${with_yaksa_prefix}/lib"
30587fi
30588
30589
30590# Set NEEDSPLIB to yes if link commands need both -l$MPILIBNAME
30591# and -lp$MPILIBNAME.
30592NEEDSPLIB=yes
30593if test $enable_weak_symbols = yes ; then
30594    # Turn off weak symbols if they aren't available
30595
30596pragma_extra_message=""
30597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of weak symbol alias support" >&5
30598$as_echo_n "checking for type of weak symbol alias support... " >&6; }
30599if ${pac_cv_prog_c_weak_symbols+:} false; then :
30600  $as_echo_n "(cached) " >&6
30601else
30602
30603# Test for weak symbol support...
30604# We can't put # in the message because it causes autoconf to generate
30605# incorrect code
30606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30607/* end confdefs.h.  */
30608
30609extern int PFoo(int);
30610#pragma weak PFoo = Foo
30611int Foo(int a) { return a; }
30612
30613int
30614main ()
30615{
30616return PFoo(1);
30617  ;
30618  return 0;
30619}
30620_ACEOF
30621if ac_fn_c_try_link "$LINENO"; then :
30622  has_pragma_weak=yes
30623fi
30624rm -f core conftest.err conftest.$ac_objext \
30625    conftest$ac_exeext conftest.$ac_ext
30626#
30627# Some systems (Linux ia64 and ecc, for example), support weak symbols
30628# only within a single object file!  This tests that case.
30629# Note that there is an extern int PFoo declaration before the
30630# pragma.  Some compilers require this in order to make the weak symbol
30631# externally visible.
30632if test "$has_pragma_weak" = yes ; then
30633
30634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30635/* end confdefs.h.  */
30636
30637
30638extern int PFoo(int);
30639#pragma weak PFoo = Foo
30640int Foo(int);
30641int Foo(int a) { return a; }
30642
30643
30644_ACEOF
30645if ac_fn_c_try_compile "$LINENO"; then :
30646
30647
30648{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
30649  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
30650  ac_status=$?
30651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652  test $ac_status = 0; }
30653
30654# START of PUSHVAL
30655
30656if ${pac_stk_LIBS_level+:} false; then :
30657
30658    as_fn_arith $pac_stk_LIBS_level + 1 && pac_stk_LIBS_level=$as_val
30659
30660else
30661
30662    pac_stk_LIBS_level=0
30663
30664fi
30665eval "pac_stk_LIBS_$pac_stk_LIBS_level=\$LIBS"
30666if test "x$pac_stk_LIBS_level" = x0; then :
30667
30668        eval pac_FirstSavedValueOf_LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level
30669
30670fi
30671
30672        eval pac_LastSavedValueOf_LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level
30673
30674
30675# END of PUSHVAL
30676
30677    LIBS="pac_conftest.$OBJEXT $pac_FirstSavedValueOf_LIBS"
30678    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30679/* end confdefs.h.  */
30680
30681
30682extern int PFoo(int);
30683int main(int argc, char **argv) {
30684return PFoo(0);}
30685
30686
30687_ACEOF
30688if ac_fn_c_try_link "$LINENO"; then :
30689
30690
30691
30692cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30693/* end confdefs.h.  */
30694
30695
30696extern int PFoo(int);
30697#pragma weak PFoo = Foo
30698int Foo(int);
30699int Foo(int a) { return a; }
30700
30701
30702_ACEOF
30703if ac_fn_c_try_compile "$LINENO"; then :
30704
30705
30706{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
30707  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
30708  ac_status=$?
30709  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710  test $ac_status = 0; }
30711
30712# START of PUSHVAL
30713
30714if ${pac_stk_LIBS_level+:} false; then :
30715
30716    as_fn_arith $pac_stk_LIBS_level + 1 && pac_stk_LIBS_level=$as_val
30717
30718else
30719
30720    pac_stk_LIBS_level=0
30721
30722fi
30723eval "pac_stk_LIBS_$pac_stk_LIBS_level=\$LIBS"
30724if test "x$pac_stk_LIBS_level" = x0; then :
30725
30726        eval pac_FirstSavedValueOf_LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level
30727
30728fi
30729
30730        eval pac_LastSavedValueOf_LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level
30731
30732
30733# END of PUSHVAL
30734
30735    LIBS="pac_conftest.$OBJEXT $pac_FirstSavedValueOf_LIBS"
30736    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30737/* end confdefs.h.  */
30738
30739
30740extern int Foo(int);
30741int PFoo(int a) { return a+1;}
30742int main(int argc, char **argv) {
30743return Foo(0);}
30744
30745
30746_ACEOF
30747if ac_fn_c_try_link "$LINENO"; then :
30748
30749
30750            pac_cv_prog_c_weak_symbols="pragma weak"
30751
30752
30753else
30754
30755
30756            has_pragma_weak=0
30757            pragma_extra_message="pragma weak accepted but does not work (probably creates two non-weak entries)"
30758
30759
30760fi
30761rm -f core conftest.err conftest.$ac_objext \
30762    conftest$ac_exeext conftest.$ac_ext
30763
30764# START of POPVAL
30765
30766if ${pac_stk_LIBS_level+:} false; then :
30767
30768    if test "x$pac_stk_LIBS_level" = x-1; then :
30769
30770        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of LIBS\"" >&5
30771$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of LIBS\"" >&2;}
30772
30773else
30774
30775                eval LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level
30776                as_fn_arith  $pac_stk_LIBS_level - 1  && pac_stk_LIBS_level=$as_val
30777
30778fi
30779
30780else
30781
30782    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of LIBS\"" >&5
30783$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of LIBS\"" >&2;}
30784
30785fi
30786
30787# END of POPVAL
30788
30789    rm -f pac_conftest.$OBJEXT
30790
30791else
30792
30793
30794            has_pragma_weak=0
30795            pragma_extra_message="pragma weak accepted but does not work (probably creates two non-weak entries)"
30796
30797
30798fi
30799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30800
30801
30802
30803else
30804
30805
30806        has_pragma_weak=0
30807        pragma_extra_message="pragma weak accepted but does not work (probably creates two non-weak entries)"
30808
30809
30810fi
30811rm -f core conftest.err conftest.$ac_objext \
30812    conftest$ac_exeext conftest.$ac_ext
30813
30814# START of POPVAL
30815
30816if ${pac_stk_LIBS_level+:} false; then :
30817
30818    if test "x$pac_stk_LIBS_level" = x-1; then :
30819
30820        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of LIBS\"" >&5
30821$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of LIBS\"" >&2;}
30822
30823else
30824
30825                eval LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level
30826                as_fn_arith  $pac_stk_LIBS_level - 1  && pac_stk_LIBS_level=$as_val
30827
30828fi
30829
30830else
30831
30832    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of LIBS\"" >&5
30833$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of LIBS\"" >&2;}
30834
30835fi
30836
30837# END of POPVAL
30838
30839    rm -f pac_conftest.$OBJEXT
30840
30841else
30842
30843
30844        has_pragma_weak=0
30845        pragma_extra_message="pragma weak accepted but does not work (probably creates two non-weak entries)"
30846
30847
30848fi
30849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30850
30851fi
30852if test -z "$pac_cv_prog_c_weak_symbols" ; then
30853    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30854/* end confdefs.h.  */
30855
30856extern int PFoo(int);
30857#pragma _HP_SECONDARY_DEF Foo  PFoo
30858int Foo(int a) { return a; }
30859
30860int
30861main ()
30862{
30863return PFoo(1);
30864  ;
30865  return 0;
30866}
30867_ACEOF
30868if ac_fn_c_try_link "$LINENO"; then :
30869  pac_cv_prog_c_weak_symbols="pragma _HP_SECONDARY_DEF"
30870fi
30871rm -f core conftest.err conftest.$ac_objext \
30872    conftest$ac_exeext conftest.$ac_ext
30873fi
30874if test -z "$pac_cv_prog_c_weak_symbols" ; then
30875    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30876/* end confdefs.h.  */
30877
30878extern int PFoo(int);
30879#pragma _CRI duplicate PFoo as Foo
30880int Foo(int a) { return a; }
30881
30882int
30883main ()
30884{
30885return PFoo(1);
30886  ;
30887  return 0;
30888}
30889_ACEOF
30890if ac_fn_c_try_link "$LINENO"; then :
30891  pac_cv_prog_c_weak_symbols="pragma _CRI duplicate x as y"
30892fi
30893rm -f core conftest.err conftest.$ac_objext \
30894    conftest$ac_exeext conftest.$ac_ext
30895fi
30896if test -z "$pac_cv_prog_c_weak_symbols" ; then
30897    pac_cv_prog_c_weak_symbols="no"
30898fi
30899if test -n "$pragma_extra_message" ; then
30900    echo $pragma_extra_message
30901fi
30902
30903fi
30904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_c_weak_symbols" >&5
30905$as_echo "$pac_cv_prog_c_weak_symbols" >&6; }
30906if test "$pac_cv_prog_c_weak_symbols" != "no" ; then
30907    case "$pac_cv_prog_c_weak_symbols" in
30908        "pragma weak")
30909$as_echo "#define HAVE_PRAGMA_WEAK 1" >>confdefs.h
30910
30911        ;;
30912        "pragma _HP")
30913$as_echo "#define HAVE_PRAGMA_HP_SEC_DEF 1" >>confdefs.h
30914
30915        ;;
30916        "pragma _CRI")
30917$as_echo "#define HAVE_PRAGMA_CRI_DUP 1" >>confdefs.h
30918
30919        ;;
30920    esac
30921fi
30922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ ((weak)) allowed" >&5
30923$as_echo_n "checking whether __attribute__ ((weak)) allowed... " >&6; }
30924if ${pac_cv_attr_weak+:} false; then :
30925  $as_echo_n "(cached) " >&6
30926else
30927
30928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30929/* end confdefs.h.  */
30930int foo(int) __attribute__ ((weak));
30931int
30932main ()
30933{
30934int a;
30935  ;
30936  return 0;
30937}
30938_ACEOF
30939if ac_fn_c_try_compile "$LINENO"; then :
30940  pac_cv_attr_weak=yes
30941else
30942  pac_cv_attr_weak=no
30943fi
30944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30945fi
30946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_attr_weak" >&5
30947$as_echo "$pac_cv_attr_weak" >&6; }
30948# Note that being able to compile with weak_import doesn't mean that
30949# it works.
30950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ ((weak_import)) allowed" >&5
30951$as_echo_n "checking whether __attribute__ ((weak_import)) allowed... " >&6; }
30952if ${pac_cv_attr_weak_import+:} false; then :
30953  $as_echo_n "(cached) " >&6
30954else
30955
30956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30957/* end confdefs.h.  */
30958int foo(int) __attribute__ ((weak_import));
30959int
30960main ()
30961{
30962int a;
30963  ;
30964  return 0;
30965}
30966_ACEOF
30967if ac_fn_c_try_compile "$LINENO"; then :
30968  pac_cv_attr_weak_import=yes
30969else
30970  pac_cv_attr_weak_import=no
30971fi
30972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30973fi
30974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_attr_weak_import" >&5
30975$as_echo "$pac_cv_attr_weak_import" >&6; }
30976# Check if the alias option for weak attributes is allowed
30977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((weak,alias(...))) allowed" >&5
30978$as_echo_n "checking whether __attribute__((weak,alias(...))) allowed... " >&6; }
30979if ${pac_cv_attr_weak_alias+:} false; then :
30980  $as_echo_n "(cached) " >&6
30981else
30982
30983
30984	if test -z "${pac_save_CFLAGS_nesting}" ; then
30985	   pac_save_CFLAGS_nesting=0
30986	fi
30987	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
30988	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
30989
30990# force an error exit if the weak attribute isn't understood
30991CFLAGS=-Werror
30992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30993/* end confdefs.h.  */
30994int __foo(int a){return 0;} int foo(int) __attribute__((weak,alias("__foo")));
30995int
30996main ()
30997{
30998int a;
30999  ;
31000  return 0;
31001}
31002_ACEOF
31003if ac_fn_c_try_compile "$LINENO"; then :
31004  pac_cv_attr_weak_alias=yes
31005else
31006  pac_cv_attr_weak_alias=no
31007fi
31008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31009# Restore original CFLAGS
31010
31011	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
31012	eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
31013	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
31014
31015fi
31016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_attr_weak_alias" >&5
31017$as_echo "$pac_cv_attr_weak_alias" >&6; }
31018if test "$pac_cv_attr_weak_alias" = "yes" ; then
31019
31020$as_echo "#define HAVE_WEAK_ATTRIBUTE 1" >>confdefs.h
31021
31022fi
31023if test "$pac_cv_prog_c_weak_symbols" = "no" -a "$pac_cv_attr_weak_alias" = "no" ; then
31024    enable_weak_symbols=no
31025else
31026    :
31027fi
31028
31029fi
31030if test $enable_weak_symbols = "yes" ; then
31031
31032$as_echo "#define USE_WEAK_SYMBOLS 1" >>confdefs.h
31033
31034    NEEDSPLIB=no
31035    # Check for the ability to support multiple weak symbols
31036    if test "$pac_cv_prog_c_weak_symbols" = "pragma weak" ; then
31037
31038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiple weak symbol support" >&5
31039$as_echo_n "checking for multiple weak symbol support... " >&6; }
31040if ${pac_cv_prog_c_multiple_weak_symbols+:} false; then :
31041  $as_echo_n "(cached) " >&6
31042else
31043
31044# Test for multiple weak symbol support...
31045
31046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31047/* end confdefs.h.  */
31048
31049
31050extern int PFoo(int);
31051extern int PFoo_(int);
31052extern int pfoo_(int);
31053#pragma weak PFoo = Foo
31054#pragma weak PFoo_ = Foo
31055#pragma weak pfoo_ = Foo
31056int Foo(int);
31057int Foo(a) { return a; }
31058
31059
31060_ACEOF
31061if ac_fn_c_try_compile "$LINENO"; then :
31062
31063
31064{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
31065  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
31066  ac_status=$?
31067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068  test $ac_status = 0; }
31069
31070# START of PUSHVAL
31071
31072if ${pac_stk_LIBS_level+:} false; then :
31073
31074    as_fn_arith $pac_stk_LIBS_level + 1 && pac_stk_LIBS_level=$as_val
31075
31076else
31077
31078    pac_stk_LIBS_level=0
31079
31080fi
31081eval "pac_stk_LIBS_$pac_stk_LIBS_level=\$LIBS"
31082if test "x$pac_stk_LIBS_level" = x0; then :
31083
31084        eval pac_FirstSavedValueOf_LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level
31085
31086fi
31087
31088        eval pac_LastSavedValueOf_LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level
31089
31090
31091# END of PUSHVAL
31092
31093    LIBS="pac_conftest.$OBJEXT $pac_FirstSavedValueOf_LIBS"
31094    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31095/* end confdefs.h.  */
31096
31097
31098extern int PFoo(int), PFoo_(int), pfoo_(int);
31099int main() {
31100return PFoo(0) + PFoo_(1) + pfoo_(2);}
31101
31102
31103_ACEOF
31104if ac_fn_c_try_link "$LINENO"; then :
31105
31106
31107    pac_cv_prog_c_multiple_weak_symbols="yes"
31108
31109
31110else
31111
31112        :
31113
31114fi
31115rm -f core conftest.err conftest.$ac_objext \
31116    conftest$ac_exeext conftest.$ac_ext
31117
31118# START of POPVAL
31119
31120if ${pac_stk_LIBS_level+:} false; then :
31121
31122    if test "x$pac_stk_LIBS_level" = x-1; then :
31123
31124        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of LIBS\"" >&5
31125$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of LIBS\"" >&2;}
31126
31127else
31128
31129                eval LIBS=\$pac_stk_LIBS_$pac_stk_LIBS_level
31130                as_fn_arith  $pac_stk_LIBS_level - 1  && pac_stk_LIBS_level=$as_val
31131
31132fi
31133
31134else
31135
31136    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of LIBS\"" >&5
31137$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of LIBS\"" >&2;}
31138
31139fi
31140
31141# END of POPVAL
31142
31143    rm -f pac_conftest.$OBJEXT
31144
31145else
31146
31147    :
31148
31149fi
31150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31151
31152
31153fi
31154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_c_multiple_weak_symbols" >&5
31155$as_echo "$pac_cv_prog_c_multiple_weak_symbols" >&6; }
31156if test "$pac_cv_prog_c_multiple_weak_symbols" = "yes" ; then
31157
31158$as_echo "#define HAVE_MULTIPLE_PRAGMA_WEAK 1" >>confdefs.h
31159
31160else
31161    :
31162fi
31163
31164    fi
31165fi
31166export NEEDSPLIB
31167
31168 if test "$NEEDSPLIB" = "yes"; then
31169  BUILD_PROFILING_LIB_TRUE=
31170  BUILD_PROFILING_LIB_FALSE='#'
31171else
31172  BUILD_PROFILING_LIB_TRUE='#'
31173  BUILD_PROFILING_LIB_FALSE=
31174fi
31175
31176
31177    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
31178
31179
31180    # Check if the compiler has support for visibility, like some
31181    # versions of gcc, icc, Sun Studio cc.
31182    # Check whether --enable-visibility was given.
31183if test "${enable_visibility+set}" = set; then :
31184  enableval=$enable_visibility;
31185fi
31186
31187
31188    case ${target} in
31189        *-*-aix*|*-*-mingw*|*-*-cygwin*|*-*-hpux*)
31190            enable_visibility=no
31191            ;;
31192    esac
31193
31194    mpich_visibility_define=0
31195    mpich_msg="whether to enable symbol visibility"
31196    if test "$enable_visibility" = "no"; then
31197        { $as_echo "$as_me:${as_lineno-$LINENO}: checking $mpich_msg" >&5
31198$as_echo_n "checking $mpich_msg... " >&6; }
31199        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5
31200$as_echo "no (disabled)" >&6; }
31201    else
31202        CFLAGS_orig=$CFLAGS
31203        mpich_add=-fvisibility=hidden
31204        CFLAGS="$CFLAGS_orig $mpich_add -Werror"
31205
31206        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $mpich_add" >&5
31207$as_echo_n "checking if $CC supports $mpich_add... " >&6; }
31208        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31209/* end confdefs.h.  */
31210
31211            #include <stdio.h>
31212            __attribute__((visibility("default"))) int foo;
31213
31214int
31215main ()
31216{
31217fprintf(stderr, "Hello, world\n");
31218  ;
31219  return 0;
31220}
31221_ACEOF
31222if ac_fn_c_try_link "$LINENO"; then :
31223  if test -s conftest.err; then :
31224  $GREP -iq visibility conftest.err
31225                    # If we find "visibility" in the stderr, then
31226                    # assume it doesn't work
31227                    if test "$?" = "0"; then :
31228  mpich_add=
31229fi
31230fi
31231
31232else
31233  mpich_add=
31234fi
31235rm -f core conftest.err conftest.$ac_objext \
31236    conftest$ac_exeext conftest.$ac_ext
31237        if test "$mpich_add" = ""; then :
31238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31239$as_echo "no" >&6; }
31240else
31241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31242$as_echo "yes" >&6; }
31243fi
31244
31245        CFLAGS=$CFLAGS_orig
31246        VISIBILITY_CFLAGS=$mpich_add
31247
31248        if test "$mpich_add" != "" ; then
31249            mpich_visibility_define=1
31250            { $as_echo "$as_me:${as_lineno-$LINENO}: checking $mpich_msg" >&5
31251$as_echo_n "checking $mpich_msg... " >&6; }
31252            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (via $mpich_add)" >&5
31253$as_echo "yes (via $mpich_add)" >&6; }
31254        elif test "$enable_visibility" = "yes"; then
31255            as_fn_error $? "Symbol visibility support requested but compiler does not seem to support it.  Aborting" "$LINENO" 5
31256        else
31257            { $as_echo "$as_me:${as_lineno-$LINENO}: checking $mpich_msg" >&5
31258$as_echo_n "checking $mpich_msg... " >&6; }
31259            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (unsupported)" >&5
31260$as_echo "no (unsupported)" >&6; }
31261        fi
31262        unset mpich_add
31263    fi
31264
31265
31266cat >>confdefs.h <<_ACEOF
31267#define HAVE_VISIBILITY $mpich_visibility_define
31268_ACEOF
31269
31270
31271
31272# disable visibility if building profiling library
31273if test "$NEEDSPLIB" = "yes" ; then
31274    VISIBILITY_CFLAGS=""
31275fi
31276
31277
31278# ----------------------------------------------------------------------------
31279# HWLOC
31280# ----------------------------------------------------------------------------
31281# Allow the user to override the hwloc location (from embedded to user
31282# or system path)
31283
31284
31285# Check whether --with-hwloc-prefix was given.
31286if test "${with_hwloc_prefix+set}" = set; then :
31287  withval=$with_hwloc_prefix; if test "$withval" = "system" ; then
31288                 :
31289             elif test "$withval" = "embedded" ; then
31290                 :
31291             elif test "$withval" = "no" ; then
31292                 :
31293             else
31294
31295
31296	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_hwloc_prefix}/include\>" >/dev/null 2>&1; then :
31297  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_hwloc_prefix}/include', not appending" >&5
31298else
31299  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_hwloc_prefix}/include', appending" >&5
31300		CPPFLAGS="$CPPFLAGS -I${with_hwloc_prefix}/include"
31301
31302fi
31303
31304                 if test -d "${with_hwloc_prefix}/lib64" ; then
31305
31306
31307	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_hwloc_prefix}/lib64\>" >/dev/null 2>&1; then :
31308  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hwloc_prefix}/lib64', not appending" >&5
31309else
31310  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hwloc_prefix}/lib64', appending" >&5
31311		LDFLAGS="$LDFLAGS -L${with_hwloc_prefix}/lib64"
31312
31313fi
31314
31315                 fi
31316
31317
31318	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_hwloc_prefix}/lib\>" >/dev/null 2>&1; then :
31319  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_hwloc_prefix}/lib', not appending" >&5
31320else
31321  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_hwloc_prefix}/lib', appending" >&5
31322		LDFLAGS="$LDFLAGS -L${with_hwloc_prefix}/lib"
31323
31324fi
31325
31326             fi
31327
31328else
31329  with_hwloc_prefix="embedded"
31330fi
31331
31332
31333
31334hwlocsrcdir=""
31335
31336hwloclibdir=""
31337
31338hwloclib=""
31339
31340
31341if test "$with_hwloc_prefix" = "no" ; then
31342   have_hwloc=no
31343elif test "$with_hwloc_prefix" = "embedded" ; then
31344   # Disable visibility when setting up hwloc
31345
31346	if test -z "${pac_save_enable_visibility_nesting}" ; then
31347	   pac_save_enable_visibility_nesting=0
31348	fi
31349	eval pac_save_enable_visibility_${pac_save_enable_visibility_nesting}='"$enable_visibility"'
31350	pac_save_enable_visibility_nesting=`expr ${pac_save_enable_visibility_nesting} + 1`
31351
31352   enable_visibility=no;
31353
31354
31355
31356if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31357	if test -n "$ac_tool_prefix"; then
31358  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31359set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31361$as_echo_n "checking for $ac_word... " >&6; }
31362if ${ac_cv_path_PKG_CONFIG+:} false; then :
31363  $as_echo_n "(cached) " >&6
31364else
31365  case $PKG_CONFIG in
31366  [\\/]* | ?:[\\/]*)
31367  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31368  ;;
31369  *)
31370  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31371for as_dir in $PATH
31372do
31373  IFS=$as_save_IFS
31374  test -z "$as_dir" && as_dir=.
31375    for ac_exec_ext in '' $ac_executable_extensions; do
31376  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31377    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31379    break 2
31380  fi
31381done
31382  done
31383IFS=$as_save_IFS
31384
31385  ;;
31386esac
31387fi
31388PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31389if test -n "$PKG_CONFIG"; then
31390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
31391$as_echo "$PKG_CONFIG" >&6; }
31392else
31393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31394$as_echo "no" >&6; }
31395fi
31396
31397
31398fi
31399if test -z "$ac_cv_path_PKG_CONFIG"; then
31400  ac_pt_PKG_CONFIG=$PKG_CONFIG
31401  # Extract the first word of "pkg-config", so it can be a program name with args.
31402set dummy pkg-config; ac_word=$2
31403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31404$as_echo_n "checking for $ac_word... " >&6; }
31405if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
31406  $as_echo_n "(cached) " >&6
31407else
31408  case $ac_pt_PKG_CONFIG in
31409  [\\/]* | ?:[\\/]*)
31410  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31411  ;;
31412  *)
31413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31414for as_dir in $PATH
31415do
31416  IFS=$as_save_IFS
31417  test -z "$as_dir" && as_dir=.
31418    for ac_exec_ext in '' $ac_executable_extensions; do
31419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31420    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31422    break 2
31423  fi
31424done
31425  done
31426IFS=$as_save_IFS
31427
31428  ;;
31429esac
31430fi
31431ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31432if test -n "$ac_pt_PKG_CONFIG"; then
31433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
31434$as_echo "$ac_pt_PKG_CONFIG" >&6; }
31435else
31436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31437$as_echo "no" >&6; }
31438fi
31439
31440  if test "x$ac_pt_PKG_CONFIG" = x; then
31441    PKG_CONFIG=""
31442  else
31443    case $cross_compiling:$ac_tool_warned in
31444yes:)
31445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31447ac_tool_warned=yes ;;
31448esac
31449    PKG_CONFIG=$ac_pt_PKG_CONFIG
31450  fi
31451else
31452  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31453fi
31454
31455fi
31456if test -n "$PKG_CONFIG"; then
31457	HWLOC_pkg_min_version=0.9.0
31458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $HWLOC_pkg_min_version" >&5
31459$as_echo_n "checking pkg-config is at least version $HWLOC_pkg_min_version... " >&6; }
31460	if $PKG_CONFIG --atleast-pkgconfig-version $HWLOC_pkg_min_version; then
31461		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31462$as_echo "yes" >&6; }
31463	else
31464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31465$as_echo "no" >&6; }
31466		PKG_CONFIG=""
31467	fi
31468
31469fi
31470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
31471$as_echo_n "checking for X... " >&6; }
31472
31473
31474# Check whether --with-x was given.
31475if test "${with_x+set}" = set; then :
31476  withval=$with_x;
31477fi
31478
31479# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31480if test "x$with_x" = xno; then
31481  # The user explicitly disabled X.
31482  have_x=disabled
31483else
31484  case $x_includes,$x_libraries in #(
31485    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
31486    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
31487  $as_echo_n "(cached) " >&6
31488else
31489  # One or both of the vars are not set, and there is no cached value.
31490ac_x_includes=no ac_x_libraries=no
31491rm -f -r conftest.dir
31492if mkdir conftest.dir; then
31493  cd conftest.dir
31494  cat >Imakefile <<'_ACEOF'
31495incroot:
31496	@echo incroot='${INCROOT}'
31497usrlibdir:
31498	@echo usrlibdir='${USRLIBDIR}'
31499libdir:
31500	@echo libdir='${LIBDIR}'
31501_ACEOF
31502  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31503    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
31504    for ac_var in incroot usrlibdir libdir; do
31505      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31506    done
31507    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31508    for ac_extension in a so sl dylib la dll; do
31509      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31510	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
31511	ac_im_usrlibdir=$ac_im_libdir; break
31512      fi
31513    done
31514    # Screen out bogus values from the imake configuration.  They are
31515    # bogus both because they are the default anyway, and because
31516    # using them would break gcc on systems where it needs fixed includes.
31517    case $ac_im_incroot in
31518	/usr/include) ac_x_includes= ;;
31519	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31520    esac
31521    case $ac_im_usrlibdir in
31522	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
31523	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31524    esac
31525  fi
31526  cd ..
31527  rm -f -r conftest.dir
31528fi
31529
31530# Standard set of common directories for X headers.
31531# Check X11 before X11Rn because it is often a symlink to the current release.
31532ac_x_header_dirs='
31533/usr/X11/include
31534/usr/X11R7/include
31535/usr/X11R6/include
31536/usr/X11R5/include
31537/usr/X11R4/include
31538
31539/usr/include/X11
31540/usr/include/X11R7
31541/usr/include/X11R6
31542/usr/include/X11R5
31543/usr/include/X11R4
31544
31545/usr/local/X11/include
31546/usr/local/X11R7/include
31547/usr/local/X11R6/include
31548/usr/local/X11R5/include
31549/usr/local/X11R4/include
31550
31551/usr/local/include/X11
31552/usr/local/include/X11R7
31553/usr/local/include/X11R6
31554/usr/local/include/X11R5
31555/usr/local/include/X11R4
31556
31557/usr/X386/include
31558/usr/x386/include
31559/usr/XFree86/include/X11
31560
31561/usr/include
31562/usr/local/include
31563/usr/unsupported/include
31564/usr/athena/include
31565/usr/local/x11r5/include
31566/usr/lpp/Xamples/include
31567
31568/usr/openwin/include
31569/usr/openwin/share/include'
31570
31571if test "$ac_x_includes" = no; then
31572  # Guess where to find include files, by looking for Xlib.h.
31573  # First, try using that file with no special directory specified.
31574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31575/* end confdefs.h.  */
31576#include <X11/Xlib.h>
31577_ACEOF
31578if ac_fn_c_try_cpp "$LINENO"; then :
31579  # We can compile using X headers with no special include directory.
31580ac_x_includes=
31581else
31582  for ac_dir in $ac_x_header_dirs; do
31583  if test -r "$ac_dir/X11/Xlib.h"; then
31584    ac_x_includes=$ac_dir
31585    break
31586  fi
31587done
31588fi
31589rm -f conftest.err conftest.i conftest.$ac_ext
31590fi # $ac_x_includes = no
31591
31592if test "$ac_x_libraries" = no; then
31593  # Check for the libraries.
31594  # See if we find them without any special options.
31595  # Don't add to $LIBS permanently.
31596  ac_save_LIBS=$LIBS
31597  LIBS="-lX11 $LIBS"
31598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31599/* end confdefs.h.  */
31600#include <X11/Xlib.h>
31601int
31602main ()
31603{
31604XrmInitialize ()
31605  ;
31606  return 0;
31607}
31608_ACEOF
31609if ac_fn_c_try_link "$LINENO"; then :
31610  LIBS=$ac_save_LIBS
31611# We can link X programs with no special library path.
31612ac_x_libraries=
31613else
31614  LIBS=$ac_save_LIBS
31615for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
31616do
31617  # Don't even attempt the hair of trying to link an X program!
31618  for ac_extension in a so sl dylib la dll; do
31619    if test -r "$ac_dir/libX11.$ac_extension"; then
31620      ac_x_libraries=$ac_dir
31621      break 2
31622    fi
31623  done
31624done
31625fi
31626rm -f core conftest.err conftest.$ac_objext \
31627    conftest$ac_exeext conftest.$ac_ext
31628fi # $ac_x_libraries = no
31629
31630case $ac_x_includes,$ac_x_libraries in #(
31631  no,* | *,no | *\'*)
31632    # Didn't find X, or a directory has "'" in its name.
31633    ac_cv_have_x="have_x=no";; #(
31634  *)
31635    # Record where we found X for the cache.
31636    ac_cv_have_x="have_x=yes\
31637	ac_x_includes='$ac_x_includes'\
31638	ac_x_libraries='$ac_x_libraries'"
31639esac
31640fi
31641;; #(
31642    *) have_x=yes;;
31643  esac
31644  eval "$ac_cv_have_x"
31645fi # $with_x != no
31646
31647if test "$have_x" != yes; then
31648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
31649$as_echo "$have_x" >&6; }
31650  no_x=yes
31651else
31652  # If each of the values was on the command line, it overrides each guess.
31653  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
31654  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
31655  # Update the cache value to reflect the command line values.
31656  ac_cv_have_x="have_x=yes\
31657	ac_x_includes='$x_includes'\
31658	ac_x_libraries='$x_libraries'"
31659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
31660$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
31661fi
31662
31663
31664
31665
31666
31667
31668    if test "x1" != "x"; then :
31669  cat <<EOF
31670
31671###
31672### Configuring hwloc core
31673###
31674EOF
31675fi
31676
31677    # If no prefix was defined, set a good value
31678
31679
31680    # Unless previously set to "standalone" mode, default to embedded
31681    # mode
31682    if test "$hwloc_mode" = ""; then :
31683  hwloc_mode=embedded
31684fi
31685    { $as_echo "$as_me:${as_lineno-$LINENO}: checking hwloc building mode" >&5
31686$as_echo_n "checking hwloc building mode... " >&6; }
31687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_mode" >&5
31688$as_echo "$hwloc_mode" >&6; }
31689
31690    # Get hwloc's absolute top builddir (which may not be the same as
31691    # the real $top_builddir, because we may be building in embedded
31692    # mode).
31693    HWLOC_startdir=`pwd`
31694    if test x"modules/hwloc/" != "x" -a ! -d "modules/hwloc/"; then
31695        mkdir -p "modules/hwloc/"
31696    fi
31697    if test x"modules/hwloc/" != "x"; then
31698        cd "modules/hwloc/"
31699    fi
31700    HWLOC_top_builddir=`pwd`
31701
31702
31703    # Get hwloc's absolute top srcdir (which may not be the same as
31704    # the real $top_srcdir, because we may be building in embedded
31705    # mode).  First, go back to the startdir incase the $srcdir is
31706    # relative.
31707
31708    cd "$HWLOC_startdir"
31709    cd "$srcdir"/modules/hwloc/
31710    HWLOC_top_srcdir="`pwd`"
31711
31712
31713    # Go back to where we started
31714    cd "$HWLOC_startdir"
31715
31716    { $as_echo "$as_me:${as_lineno-$LINENO}: hwloc builddir: $HWLOC_top_builddir" >&5
31717$as_echo "$as_me: hwloc builddir: $HWLOC_top_builddir" >&6;}
31718    { $as_echo "$as_me:${as_lineno-$LINENO}: hwloc srcdir: $HWLOC_top_srcdir" >&5
31719$as_echo "$as_me: hwloc srcdir: $HWLOC_top_srcdir" >&6;}
31720    if test "$HWLOC_top_builddir" != "$HWLOC_top_srcdir"; then
31721        { $as_echo "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5
31722$as_echo "$as_me: Detected VPATH build" >&6;}
31723    fi
31724
31725    # Get the version of hwloc that we are installing
31726    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc version" >&5
31727$as_echo_n "checking for hwloc version... " >&6; }
31728    HWLOC_VERSION=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION"`
31729    if test "$?" != "0"; then
31730        as_fn_error $? "Cannot continue" "$LINENO" 5
31731    fi
31732    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HWLOC_VERSION" >&5
31733$as_echo "$HWLOC_VERSION" >&6; }
31734
31735
31736cat >>confdefs.h <<_ACEOF
31737#define HWLOC_VERSION "$HWLOC_VERSION"
31738_ACEOF
31739
31740
31741    HWLOC_VERSION_MAJOR=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --major`
31742
31743cat >>confdefs.h <<_ACEOF
31744#define HWLOC_VERSION_MAJOR $HWLOC_VERSION_MAJOR
31745_ACEOF
31746
31747    HWLOC_VERSION_MINOR=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --minor`
31748
31749cat >>confdefs.h <<_ACEOF
31750#define HWLOC_VERSION_MINOR $HWLOC_VERSION_MINOR
31751_ACEOF
31752
31753    HWLOC_VERSION_RELEASE=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --release`
31754
31755cat >>confdefs.h <<_ACEOF
31756#define HWLOC_VERSION_RELEASE $HWLOC_VERSION_RELEASE
31757_ACEOF
31758
31759    HWLOC_VERSION_GREEK=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --greek`
31760
31761cat >>confdefs.h <<_ACEOF
31762#define HWLOC_VERSION_GREEK "$HWLOC_VERSION_GREEK"
31763_ACEOF
31764
31765
31766    HWLOC_RELEASE_DATE=`sh "$HWLOC_top_srcdir/config/hwloc_get_version.sh" "$HWLOC_top_srcdir/VERSION" --release-date`
31767
31768
31769    # Debug mode?
31770    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want hwloc maintainer support" >&5
31771$as_echo_n "checking if want hwloc maintainer support... " >&6; }
31772    hwloc_debug=
31773
31774    # Unconditionally disable debug mode in embedded mode; if someone
31775    # asks, we can add a configure-time option for it.  Disable it
31776    # now, however, because --enable-debug is not even added as an
31777    # option when configuring in embedded mode, and we wouldn't want
31778    # to hijack the enclosing application's --enable-debug configure
31779    # switch.
31780    if test "$hwloc_mode" = "embedded"; then :
31781  hwloc_debug=0
31782           hwloc_debug_msg="disabled (embedded mode)"
31783fi
31784    if test "$hwloc_debug" = "" -a "$enable_debug" = "yes"; then :
31785  hwloc_debug=1
31786           hwloc_debug_msg="enabled"
31787fi
31788    if test "$hwloc_debug" = ""; then :
31789  hwloc_debug=0
31790           hwloc_debug_msg="disabled"
31791fi
31792    # Grr; we use #ifndef for HWLOC_DEBUG!  :-(
31793
31794    if test "$hwloc_debug" = "1"; then :
31795  $as_echo "#define HWLOC_DEBUG 1" >>confdefs.h
31796
31797fi
31798    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_debug_msg" >&5
31799$as_echo "$hwloc_debug_msg" >&6; }
31800
31801    # We need to set a path for header, etc files depending on whether
31802    # we're standalone or embedded. this is taken care of by HWLOC_EMBEDDED.
31803
31804    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc directory prefix" >&5
31805$as_echo_n "checking for hwloc directory prefix... " >&6; }
31806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: modules/hwloc/" >&5
31807$as_echo "modules/hwloc/" >&6; }
31808
31809    # Note that private/config.h *MUST* be listed first so that it
31810    # becomes the "main" config header file.  Any AC-CONFIG-HEADERS
31811    # after that (hwloc/config.h) will only have selective #defines
31812    # replaced, not the entire file.
31813    ac_config_headers="$ac_config_headers modules/hwloc/include/private/autogen/config.h"
31814
31815    ac_config_headers="$ac_config_headers modules/hwloc/include/hwloc/autogen/config.h"
31816
31817
31818    # What prefix are we using?
31819    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc symbol prefix" >&5
31820$as_echo_n "checking for hwloc symbol prefix... " >&6; }
31821    if test "$hwloc_symbol_prefix_value" = ""; then :
31822  if test "$with_hwloc_symbol_prefix" = ""; then :
31823  hwloc_symbol_prefix_value=hwloc_
31824else
31825  hwloc_symbol_prefix_value=$with_hwloc_symbol_prefix
31826fi
31827fi
31828
31829cat >>confdefs.h <<_ACEOF
31830#define HWLOC_SYM_PREFIX $hwloc_symbol_prefix_value
31831_ACEOF
31832
31833    # Ensure to [] escape the whole next line so that we can get the
31834    # proper tr tokens
31835    hwloc_symbol_prefix_value_caps="`echo $hwloc_symbol_prefix_value | tr '[:lower:]' '[:upper:]'`"
31836
31837cat >>confdefs.h <<_ACEOF
31838#define HWLOC_SYM_PREFIX_CAPS $hwloc_symbol_prefix_value_caps
31839_ACEOF
31840
31841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_symbol_prefix_value" >&5
31842$as_echo "$hwloc_symbol_prefix_value" >&6; }
31843
31844    # Give an easy #define to know if we need to transform all the
31845    # hwloc names
31846
31847    if test "$hwloc_symbol_prefix_value" = "hwloc_"; then :
31848  $as_echo "#define HWLOC_SYM_TRANSFORM 0" >>confdefs.h
31849
31850else
31851  $as_echo "#define HWLOC_SYM_TRANSFORM 1" >>confdefs.h
31852
31853fi
31854
31855    # hwloc 2.0+ requires a C99 compliant compiler
31856       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
31857$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
31858if ${ac_cv_prog_cc_c99+:} false; then :
31859  $as_echo_n "(cached) " >&6
31860else
31861  ac_cv_prog_cc_c99=no
31862ac_save_CC=$CC
31863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31864/* end confdefs.h.  */
31865#include <stdarg.h>
31866#include <stdbool.h>
31867#include <stdlib.h>
31868#include <wchar.h>
31869#include <stdio.h>
31870
31871// Check varargs macros.  These examples are taken from C99 6.10.3.5.
31872#define debug(...) fprintf (stderr, __VA_ARGS__)
31873#define showlist(...) puts (#__VA_ARGS__)
31874#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
31875static void
31876test_varargs_macros (void)
31877{
31878  int x = 1234;
31879  int y = 5678;
31880  debug ("Flag");
31881  debug ("X = %d\n", x);
31882  showlist (The first, second, and third items.);
31883  report (x>y, "x is %d but y is %d", x, y);
31884}
31885
31886// Check long long types.
31887#define BIG64 18446744073709551615ull
31888#define BIG32 4294967295ul
31889#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
31890#if !BIG_OK
31891  your preprocessor is broken;
31892#endif
31893#if BIG_OK
31894#else
31895  your preprocessor is broken;
31896#endif
31897static long long int bignum = -9223372036854775807LL;
31898static unsigned long long int ubignum = BIG64;
31899
31900struct incomplete_array
31901{
31902  int datasize;
31903  double data[];
31904};
31905
31906struct named_init {
31907  int number;
31908  const wchar_t *name;
31909  double average;
31910};
31911
31912typedef const char *ccp;
31913
31914static inline int
31915test_restrict (ccp restrict text)
31916{
31917  // See if C++-style comments work.
31918  // Iterate through items via the restricted pointer.
31919  // Also check for declarations in for loops.
31920  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
31921    continue;
31922  return 0;
31923}
31924
31925// Check varargs and va_copy.
31926static void
31927test_varargs (const char *format, ...)
31928{
31929  va_list args;
31930  va_start (args, format);
31931  va_list args_copy;
31932  va_copy (args_copy, args);
31933
31934  const char *str;
31935  int number;
31936  float fnumber;
31937
31938  while (*format)
31939    {
31940      switch (*format++)
31941	{
31942	case 's': // string
31943	  str = va_arg (args_copy, const char *);
31944	  break;
31945	case 'd': // int
31946	  number = va_arg (args_copy, int);
31947	  break;
31948	case 'f': // float
31949	  fnumber = va_arg (args_copy, double);
31950	  break;
31951	default:
31952	  break;
31953	}
31954    }
31955  va_end (args_copy);
31956  va_end (args);
31957}
31958
31959int
31960main ()
31961{
31962
31963  // Check bool.
31964  _Bool success = false;
31965
31966  // Check restrict.
31967  if (test_restrict ("String literal") == 0)
31968    success = true;
31969  char *restrict newvar = "Another string";
31970
31971  // Check varargs.
31972  test_varargs ("s, d' f .", "string", 65, 34.234);
31973  test_varargs_macros ();
31974
31975  // Check flexible array members.
31976  struct incomplete_array *ia =
31977    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
31978  ia->datasize = 10;
31979  for (int i = 0; i < ia->datasize; ++i)
31980    ia->data[i] = i * 1.234;
31981
31982  // Check named initializers.
31983  struct named_init ni = {
31984    .number = 34,
31985    .name = L"Test wide string",
31986    .average = 543.34343,
31987  };
31988
31989  ni.number = 58;
31990
31991  int dynamic_array[ni.number];
31992  dynamic_array[ni.number - 1] = 543;
31993
31994  // work around unused variable warnings
31995  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
31996	  || dynamic_array[ni.number - 1] != 543);
31997
31998  ;
31999  return 0;
32000}
32001_ACEOF
32002for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
32003do
32004  CC="$ac_save_CC $ac_arg"
32005  if ac_fn_c_try_compile "$LINENO"; then :
32006  ac_cv_prog_cc_c99=$ac_arg
32007fi
32008rm -f core conftest.err conftest.$ac_objext
32009  test "x$ac_cv_prog_cc_c99" != "xno" && break
32010done
32011rm -f conftest.$ac_ext
32012CC=$ac_save_CC
32013
32014fi
32015# AC_CACHE_VAL
32016case "x$ac_cv_prog_cc_c99" in
32017  x)
32018    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
32019$as_echo "none needed" >&6; } ;;
32020  xno)
32021    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
32022$as_echo "unsupported" >&6; } ;;
32023  *)
32024    CC="$CC $ac_cv_prog_cc_c99"
32025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
32026$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
32027esac
32028if test "x$ac_cv_prog_cc_c99" != xno; then :
32029
32030fi
32031
32032
32033    # The result of AC_PROG_CC_C99 is stored in ac_cv_prog_cc_c99
32034    if test "x$ac_cv_prog_cc_c99" = xno ; then
32035        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hwloc requires a C99 compiler" >&5
32036$as_echo "$as_me: WARNING: hwloc requires a C99 compiler" >&2;}
32037        as_fn_error $? "Aborting." "$LINENO" 5
32038    fi
32039
32040    # GCC specifics.
32041
32042
32043
32044    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C compiler vendor" >&5
32045$as_echo_n "checking for the C compiler vendor... " >&6; }
32046if ${hwloc_cv_c_compiler_vendor+:} false; then :
32047  $as_echo_n "(cached) " >&6
32048else
32049  ac_ext=c
32050ac_cpp='$CPP $CPPFLAGS'
32051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32053ac_compiler_gnu=$ac_cv_c_compiler_gnu
32054
32055
32056    hwloc_check_compiler_vendor_result="unknown"
32057
32058    # GNU is probably the most common, so check that one as soon as
32059    # possible. Intel and Android pretend to be GNU, so need to
32060    # check Intel and Android before checking for GNU.
32061
32062    # Android
32063    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32064
32065    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32066/* end confdefs.h.  */
32067
32068#ifndef __ANDROID__
32069#error "symbol __ANDROID__ not defined"
32070choke me
32071#endif
32072_ACEOF
32073if ac_fn_c_try_compile "$LINENO"; then :
32074  hwloc_check_compiler_vendor_result="android"
32075fi
32076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32077fi
32078
32079    # Intel
32080    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32081
32082    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32083/* end confdefs.h.  */
32084
32085#if !( defined(__INTEL_COMPILER) || defined(__ICC) )
32086#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met"
32087choke me
32088#endif
32089_ACEOF
32090if ac_fn_c_try_compile "$LINENO"; then :
32091  hwloc_check_compiler_vendor_result="intel"
32092fi
32093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32094fi
32095
32096    # Portland Group
32097    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32098
32099    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32100/* end confdefs.h.  */
32101
32102#ifndef __PGI
32103#error "symbol __PGI not defined"
32104choke me
32105#endif
32106_ACEOF
32107if ac_fn_c_try_compile "$LINENO"; then :
32108  hwloc_check_compiler_vendor_result="portland group"
32109fi
32110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32111fi
32112
32113    # Borland Turbo C
32114    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32115
32116    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32117/* end confdefs.h.  */
32118
32119#ifndef __TURBOC__
32120#error "symbol __TURBOC__ not defined"
32121choke me
32122#endif
32123_ACEOF
32124if ac_fn_c_try_compile "$LINENO"; then :
32125  hwloc_check_compiler_vendor_result="borland"
32126fi
32127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32128fi
32129
32130    # Borland C++
32131    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32132
32133    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32134/* end confdefs.h.  */
32135
32136#ifndef __BORLANDC__
32137#error "symbol __BORLANDC__ not defined"
32138choke me
32139#endif
32140_ACEOF
32141if ac_fn_c_try_compile "$LINENO"; then :
32142  hwloc_check_compiler_vendor_result="borland"
32143fi
32144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32145fi
32146
32147    # Comeau C++
32148    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32149
32150    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32151/* end confdefs.h.  */
32152
32153#ifndef __COMO__
32154#error "symbol __COMO__ not defined"
32155choke me
32156#endif
32157_ACEOF
32158if ac_fn_c_try_compile "$LINENO"; then :
32159  hwloc_check_compiler_vendor_result="comeau"
32160fi
32161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32162fi
32163
32164    # Compaq C/C++
32165    # OSF part actually not needed anymore but doesn't hurt
32166    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32167
32168    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32169/* end confdefs.h.  */
32170
32171#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) )
32172#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met"
32173choke me
32174#endif
32175_ACEOF
32176if ac_fn_c_try_compile "$LINENO"; then :
32177  hwloc_check_compiler_vendor_result="compaq"
32178else
32179
32180    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32181/* end confdefs.h.  */
32182
32183#if !( defined(__osf__) && defined(__LANGUAGE_C__) )
32184#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met"
32185choke me
32186#endif
32187_ACEOF
32188if ac_fn_c_try_compile "$LINENO"; then :
32189  hwloc_check_compiler_vendor_result="compaq"
32190else
32191
32192    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32193/* end confdefs.h.  */
32194
32195#ifndef __DECCXX
32196#error "symbol __DECCXX not defined"
32197choke me
32198#endif
32199_ACEOF
32200if ac_fn_c_try_compile "$LINENO"; then :
32201  hwloc_check_compiler_vendor_result="compaq"
32202fi
32203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32204fi
32205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32206fi
32207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32208fi
32209
32210    # Cray C/C++
32211    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32212
32213    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32214/* end confdefs.h.  */
32215
32216#ifndef _CRAYC
32217#error "symbol _CRAYC not defined"
32218choke me
32219#endif
32220_ACEOF
32221if ac_fn_c_try_compile "$LINENO"; then :
32222  hwloc_check_compiler_vendor_result="cray"
32223fi
32224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32225fi
32226
32227    # Diab C/C++
32228    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32229
32230    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32231/* end confdefs.h.  */
32232
32233#ifndef __DCC__
32234#error "symbol __DCC__ not defined"
32235choke me
32236#endif
32237_ACEOF
32238if ac_fn_c_try_compile "$LINENO"; then :
32239  hwloc_check_compiler_vendor_result="diab"
32240fi
32241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32242fi
32243
32244    # Digital Mars
32245    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32246
32247    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32248/* end confdefs.h.  */
32249
32250#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) )
32251#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met"
32252choke me
32253#endif
32254_ACEOF
32255if ac_fn_c_try_compile "$LINENO"; then :
32256  hwloc_check_compiler_vendor_result="digital mars"
32257fi
32258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32259fi
32260
32261    # HP ANSI C / aC++
32262    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32263
32264    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32265/* end confdefs.h.  */
32266
32267#if !( defined(__HP_cc) || defined(__HP_aCC) )
32268#error "condition defined(__HP_cc) || defined(__HP_aCC) not met"
32269choke me
32270#endif
32271_ACEOF
32272if ac_fn_c_try_compile "$LINENO"; then :
32273  hwloc_check_compiler_vendor_result="hp"
32274fi
32275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32276fi
32277
32278    # IBM XL C/C++
32279    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32280
32281    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32282/* end confdefs.h.  */
32283
32284#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__ibmxl__) )
32285#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) || defined(__ibmxl__) not met"
32286choke me
32287#endif
32288_ACEOF
32289if ac_fn_c_try_compile "$LINENO"; then :
32290  hwloc_check_compiler_vendor_result="ibm"
32291else
32292
32293    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32294/* end confdefs.h.  */
32295
32296#if !( defined(_AIX) && !defined(__GNUC__) )
32297#error "condition defined(_AIX) && !defined(__GNUC__) not met"
32298choke me
32299#endif
32300_ACEOF
32301if ac_fn_c_try_compile "$LINENO"; then :
32302  hwloc_check_compiler_vendor_result="ibm"
32303fi
32304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32305fi
32306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32307fi
32308
32309    # KAI C++ (rest in peace)
32310    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32311
32312    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32313/* end confdefs.h.  */
32314
32315#ifndef __KCC
32316#error "symbol __KCC not defined"
32317choke me
32318#endif
32319_ACEOF
32320if ac_fn_c_try_compile "$LINENO"; then :
32321  hwloc_check_compiler_vendor_result="kai"
32322fi
32323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32324fi
32325
32326    # LCC
32327    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32328
32329    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32330/* end confdefs.h.  */
32331
32332#ifndef __LCC__
32333#error "symbol __LCC__ not defined"
32334choke me
32335#endif
32336_ACEOF
32337if ac_fn_c_try_compile "$LINENO"; then :
32338  hwloc_check_compiler_vendor_result="lcc"
32339fi
32340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32341fi
32342
32343    # MetaWare High C/C++
32344    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32345
32346    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32347/* end confdefs.h.  */
32348
32349#ifndef __HIGHC__
32350#error "symbol __HIGHC__ not defined"
32351choke me
32352#endif
32353_ACEOF
32354if ac_fn_c_try_compile "$LINENO"; then :
32355  hwloc_check_compiler_vendor_result="metaware high"
32356fi
32357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32358fi
32359
32360    # Metrowerks Codewarrior
32361    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32362
32363    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32364/* end confdefs.h.  */
32365
32366#ifndef __MWERKS__
32367#error "symbol __MWERKS__ not defined"
32368choke me
32369#endif
32370_ACEOF
32371if ac_fn_c_try_compile "$LINENO"; then :
32372  hwloc_check_compiler_vendor_result="metrowerks"
32373fi
32374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32375fi
32376
32377    # MIPSpro (SGI)
32378    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32379
32380    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32381/* end confdefs.h.  */
32382
32383#if !( defined(sgi) || defined(__sgi) )
32384#error "condition defined(sgi) || defined(__sgi) not met"
32385choke me
32386#endif
32387_ACEOF
32388if ac_fn_c_try_compile "$LINENO"; then :
32389  hwloc_check_compiler_vendor_result="sgi"
32390fi
32391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32392fi
32393
32394    # MPW C++
32395    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32396
32397    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32398/* end confdefs.h.  */
32399
32400#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) )
32401#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met"
32402choke me
32403#endif
32404_ACEOF
32405if ac_fn_c_try_compile "$LINENO"; then :
32406  hwloc_check_compiler_vendor_result="mpw"
32407fi
32408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32409fi
32410
32411    # Microsoft
32412    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32413  # Always use C compiler when checking for Microsoft, as
32414           # Visual C++ doesn't recognize .cc as a C++ file.
32415           ac_ext=c
32416ac_cpp='$CPP $CPPFLAGS'
32417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32419ac_compiler_gnu=$ac_cv_c_compiler_gnu
32420
32421
32422    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32423/* end confdefs.h.  */
32424
32425#if !( defined(_MSC_VER) || defined(__MSC_VER) )
32426#error "condition defined(_MSC_VER) || defined(__MSC_VER) not met"
32427choke me
32428#endif
32429_ACEOF
32430if ac_fn_c_try_compile "$LINENO"; then :
32431  hwloc_check_compiler_vendor_result="microsoft"
32432fi
32433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32434           ac_ext=c
32435ac_cpp='$CPP $CPPFLAGS'
32436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32438ac_compiler_gnu=$ac_cv_c_compiler_gnu
32439
32440fi
32441
32442    # Norcroft C
32443    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32444
32445    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32446/* end confdefs.h.  */
32447
32448#ifndef __CC_NORCROFT
32449#error "symbol __CC_NORCROFT not defined"
32450choke me
32451#endif
32452_ACEOF
32453if ac_fn_c_try_compile "$LINENO"; then :
32454  hwloc_check_compiler_vendor_result="norcroft"
32455fi
32456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32457fi
32458
32459    # Pelles C
32460    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32461
32462    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32463/* end confdefs.h.  */
32464
32465#ifndef __POCC__
32466#error "symbol __POCC__ not defined"
32467choke me
32468#endif
32469_ACEOF
32470if ac_fn_c_try_compile "$LINENO"; then :
32471  hwloc_check_compiler_vendor_result="pelles"
32472fi
32473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32474fi
32475
32476    # SAS/C
32477    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32478
32479    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32480/* end confdefs.h.  */
32481
32482#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) )
32483#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met"
32484choke me
32485#endif
32486_ACEOF
32487if ac_fn_c_try_compile "$LINENO"; then :
32488  hwloc_check_compiler_vendor_result="sas"
32489fi
32490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32491fi
32492
32493    # Sun Workshop C/C++
32494    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32495
32496    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32497/* end confdefs.h.  */
32498
32499#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) )
32500#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met"
32501choke me
32502#endif
32503_ACEOF
32504if ac_fn_c_try_compile "$LINENO"; then :
32505  hwloc_check_compiler_vendor_result="sun"
32506fi
32507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32508fi
32509
32510    # TenDRA C/C++
32511    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32512
32513    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32514/* end confdefs.h.  */
32515
32516#ifndef __TenDRA__
32517#error "symbol __TenDRA__ not defined"
32518choke me
32519#endif
32520_ACEOF
32521if ac_fn_c_try_compile "$LINENO"; then :
32522  hwloc_check_compiler_vendor_result="tendra"
32523fi
32524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32525fi
32526
32527    # Tiny C
32528    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32529
32530    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32531/* end confdefs.h.  */
32532
32533#ifndef __TINYC__
32534#error "symbol __TINYC__ not defined"
32535choke me
32536#endif
32537_ACEOF
32538if ac_fn_c_try_compile "$LINENO"; then :
32539  hwloc_check_compiler_vendor_result="tiny"
32540fi
32541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32542fi
32543
32544    # USL C
32545    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32546
32547    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32548/* end confdefs.h.  */
32549
32550#ifndef __USLC__
32551#error "symbol __USLC__ not defined"
32552choke me
32553#endif
32554_ACEOF
32555if ac_fn_c_try_compile "$LINENO"; then :
32556  hwloc_check_compiler_vendor_result="usl"
32557fi
32558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32559fi
32560
32561    # Watcom C++
32562    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32563
32564    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32565/* end confdefs.h.  */
32566
32567#ifndef __WATCOMC__
32568#error "symbol __WATCOMC__ not defined"
32569choke me
32570#endif
32571_ACEOF
32572if ac_fn_c_try_compile "$LINENO"; then :
32573  hwloc_check_compiler_vendor_result="watcom"
32574fi
32575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32576fi
32577
32578    # GNU
32579    if test "$hwloc_check_compiler_vendor_result" = "unknown"; then :
32580
32581    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32582/* end confdefs.h.  */
32583
32584#ifndef __GNUC__
32585#error "symbol __GNUC__ not defined"
32586choke me
32587#endif
32588_ACEOF
32589if ac_fn_c_try_compile "$LINENO"; then :
32590  hwloc_check_compiler_vendor_result="gnu"
32591fi
32592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32593fi
32594
32595    hwloc_cv_c_compiler_vendor="$hwloc_check_compiler_vendor_result"
32596    unset hwloc_check_compiler_vendor_result
32597
32598         ac_ext=c
32599ac_cpp='$CPP $CPPFLAGS'
32600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32602ac_compiler_gnu=$ac_cv_c_compiler_gnu
32603
32604fi
32605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_cv_c_compiler_vendor" >&5
32606$as_echo "$hwloc_cv_c_compiler_vendor" >&6; }
32607
32608    hwloc_c_vendor="$hwloc_cv_c_compiler_vendor"
32609
32610    if test "$hwloc_c_vendor" = "gnu"; then
32611        HWLOC_GCC_CFLAGS="-Wall -Wmissing-prototypes -Wundef"
32612        HWLOC_GCC_CFLAGS="$HWLOC_GCC_CFLAGS -Wpointer-arith -Wcast-align"
32613    fi
32614
32615    # Enample system extensions for O_DIRECTORY, fdopen, fssl, etc.
32616
32617
32618$as_echo "#define _HPUX_SOURCE 1" >>confdefs.h
32619
32620
32621    ac_ext=c
32622ac_cpp='$CPP $CPPFLAGS'
32623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32625ac_compiler_gnu=$ac_cv_c_compiler_gnu
32626
32627
32628    # Check to see if we're producing a 32 or 64 bit executable by
32629    # checking the sizeof void*.  Note that AC CHECK_SIZEOF even works
32630    # when cross compiling (!), according to the AC 2.64 docs.  This
32631    # check is needed because on some systems, you can instruct the
32632    # compiler to specifically build 32 or 64 bit executables -- even
32633    # though the $target may indicate something different.
32634    # The cast to long int works around a bug in the HP C Compiler
32635# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32636# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32637# This bug is HP SR number 8606223364.
32638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
32639$as_echo_n "checking size of void *... " >&6; }
32640if ${ac_cv_sizeof_void_p+:} false; then :
32641  $as_echo_n "(cached) " >&6
32642else
32643  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
32644
32645else
32646  if test "$ac_cv_type_void_p" = yes; then
32647     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32649as_fn_error 77 "cannot compute sizeof (void *)
32650See \`config.log' for more details" "$LINENO" 5; }
32651   else
32652     ac_cv_sizeof_void_p=0
32653   fi
32654fi
32655
32656fi
32657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
32658$as_echo "$ac_cv_sizeof_void_p" >&6; }
32659
32660
32661
32662cat >>confdefs.h <<_ACEOF
32663#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
32664_ACEOF
32665
32666
32667
32668    #
32669    # List of components to be built, either statically or dynamically.
32670    # To be enlarged below.
32671    #
32672    hwloc_components="noos xml synthetic xml_nolibxml"
32673
32674    #
32675    # Check OS support
32676    #
32677    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which OS support to include" >&5
32678$as_echo_n "checking which OS support to include... " >&6; }
32679    case ${target} in
32680      powerpc64-bgq-linux*) # must be before Linux
32681
32682$as_echo "#define HWLOC_BGQ_SYS 1" >>confdefs.h
32683
32684	hwloc_bgq=yes
32685	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: bgq" >&5
32686$as_echo "bgq" >&6; }
32687	hwloc_components="$hwloc_components bgq"
32688	;;
32689      *-*-linux*)
32690
32691$as_echo "#define HWLOC_LINUX_SYS 1" >>confdefs.h
32692
32693        hwloc_linux=yes
32694        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
32695$as_echo "Linux" >&6; }
32696        hwloc_components="$hwloc_components linux"
32697        if test "x$enable_io" != xno; then
32698
32699$as_echo "#define HWLOC_HAVE_LINUXIO 1" >>confdefs.h
32700
32701	  hwloc_linuxio_happy=yes
32702	  if test x$enable_pci != xno; then
32703
32704$as_echo "#define HWLOC_HAVE_LINUXPCI 1" >>confdefs.h
32705
32706	    hwloc_linuxpci_happy=yes
32707	  fi
32708	fi
32709        ;;
32710      *-*-irix*)
32711
32712$as_echo "#define HWLOC_IRIX_SYS 1" >>confdefs.h
32713
32714        hwloc_irix=yes
32715        { $as_echo "$as_me:${as_lineno-$LINENO}: result: IRIX" >&5
32716$as_echo "IRIX" >&6; }
32717        # no irix component yet
32718        ;;
32719      *-*-darwin*)
32720
32721$as_echo "#define HWLOC_DARWIN_SYS 1" >>confdefs.h
32722
32723        hwloc_darwin=yes
32724        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
32725$as_echo "Darwin" >&6; }
32726        hwloc_components="$hwloc_components darwin"
32727        ;;
32728      *-*-solaris*)
32729
32730$as_echo "#define HWLOC_SOLARIS_SYS 1" >>confdefs.h
32731
32732        hwloc_solaris=yes
32733        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris" >&5
32734$as_echo "Solaris" >&6; }
32735        hwloc_components="$hwloc_components solaris"
32736        ;;
32737      *-*-aix*)
32738
32739$as_echo "#define HWLOC_AIX_SYS 1" >>confdefs.h
32740
32741        hwloc_aix=yes
32742        { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX" >&5
32743$as_echo "AIX" >&6; }
32744        hwloc_components="$hwloc_components aix"
32745        ;;
32746      *-*-hpux*)
32747
32748$as_echo "#define HWLOC_HPUX_SYS 1" >>confdefs.h
32749
32750        hwloc_hpux=yes
32751        { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX" >&5
32752$as_echo "HP-UX" >&6; }
32753        hwloc_components="$hwloc_components hpux"
32754        ;;
32755      *-*-mingw*|*-*-cygwin*)
32756
32757$as_echo "#define HWLOC_WIN_SYS 1" >>confdefs.h
32758
32759        hwloc_windows=yes
32760        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
32761$as_echo "Windows" >&6; }
32762        hwloc_components="$hwloc_components windows"
32763        ;;
32764      *-*-*freebsd*)
32765
32766$as_echo "#define HWLOC_FREEBSD_SYS 1" >>confdefs.h
32767
32768        hwloc_freebsd=yes
32769        { $as_echo "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
32770$as_echo "FreeBSD" >&6; }
32771        hwloc_components="$hwloc_components freebsd"
32772        ;;
32773      *-*-*netbsd*)
32774
32775$as_echo "#define HWLOC_NETBSD_SYS 1" >>confdefs.h
32776
32777        hwloc_netbsd=yes
32778        { $as_echo "$as_me:${as_lineno-$LINENO}: result: NetBSD" >&5
32779$as_echo "NetBSD" >&6; }
32780        hwloc_components="$hwloc_components netbsd"
32781        ;;
32782      *)
32783        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported! ($target)" >&5
32784$as_echo "Unsupported! ($target)" >&6; }
32785
32786$as_echo "#define HWLOC_UNSUPPORTED_SYS 1" >>confdefs.h
32787
32788        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5
32789$as_echo "$as_me: WARNING: ***********************************************************" >&2;}
32790        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc does not support this system." >&5
32791$as_echo "$as_me: WARNING: *** hwloc does not support this system." >&2;}
32792        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&5
32793$as_echo "$as_me: WARNING: *** hwloc will *attempt* to build (but it may not work)." >&2;}
32794        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** hwloc run-time results may be reduced to showing just one processor," >&5
32795$as_echo "$as_me: WARNING: *** hwloc run-time results may be reduced to showing just one processor," >&2;}
32796        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** and binding will not be supported." >&5
32797$as_echo "$as_me: WARNING: *** and binding will not be supported." >&2;}
32798        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** You have been warned." >&5
32799$as_echo "$as_me: WARNING: *** You have been warned." >&2;}
32800        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Pausing to give you time to read this message..." >&5
32801$as_echo "$as_me: WARNING: *** Pausing to give you time to read this message..." >&2;}
32802        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***********************************************************" >&5
32803$as_echo "$as_me: WARNING: ***********************************************************" >&2;}
32804        sleep 10
32805        ;;
32806    esac
32807
32808    #
32809    # Check CPU support
32810    #
32811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which CPU support to include" >&5
32812$as_echo_n "checking which CPU support to include... " >&6; }
32813    case ${target} in
32814      i*86-*-*|x86_64-*-*|amd64-*-*)
32815        case ${ac_cv_sizeof_void_p} in
32816          4)
32817
32818$as_echo "#define HWLOC_X86_32_ARCH 1" >>confdefs.h
32819
32820            hwloc_x86_32=yes
32821	    HWLOC_MS_LIB_ARCH=X86
32822            { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86_32" >&5
32823$as_echo "x86_32" >&6; }
32824            ;;
32825          8)
32826
32827$as_echo "#define HWLOC_X86_64_ARCH 1" >>confdefs.h
32828
32829            hwloc_x86_64=yes
32830	    HWLOC_MS_LIB_ARCH=X64
32831            { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86_64" >&5
32832$as_echo "x86_64" >&6; }
32833            ;;
32834          *)
32835
32836$as_echo "#define HWLOC_X86_64_ARCH 1" >>confdefs.h
32837
32838            hwloc_x86_64=yes
32839	    HWLOC_MS_LIB_ARCH=X64
32840            { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown -- assuming x86_64" >&5
32841$as_echo "unknown -- assuming x86_64" >&6; }
32842            ;;
32843        esac
32844        ;;
32845      *)
32846        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
32847$as_echo "unknown" >&6; }
32848        ;;
32849    esac
32850
32851
32852    # The cast to long int works around a bug in the HP C Compiler
32853# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32854# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32855# This bug is HP SR number 8606223364.
32856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
32857$as_echo_n "checking size of unsigned long... " >&6; }
32858if ${ac_cv_sizeof_unsigned_long+:} false; then :
32859  $as_echo_n "(cached) " >&6
32860else
32861  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
32862
32863else
32864  if test "$ac_cv_type_unsigned_long" = yes; then
32865     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32867as_fn_error 77 "cannot compute sizeof (unsigned long)
32868See \`config.log' for more details" "$LINENO" 5; }
32869   else
32870     ac_cv_sizeof_unsigned_long=0
32871   fi
32872fi
32873
32874fi
32875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
32876$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
32877
32878
32879
32880cat >>confdefs.h <<_ACEOF
32881#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
32882_ACEOF
32883
32884
32885
32886cat >>confdefs.h <<_ACEOF
32887#define HWLOC_SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
32888_ACEOF
32889
32890    # The cast to long int works around a bug in the HP C Compiler
32891# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32892# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32893# This bug is HP SR number 8606223364.
32894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
32895$as_echo_n "checking size of unsigned int... " >&6; }
32896if ${ac_cv_sizeof_unsigned_int+:} false; then :
32897  $as_echo_n "(cached) " >&6
32898else
32899  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
32900
32901else
32902  if test "$ac_cv_type_unsigned_int" = yes; then
32903     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32905as_fn_error 77 "cannot compute sizeof (unsigned int)
32906See \`config.log' for more details" "$LINENO" 5; }
32907   else
32908     ac_cv_sizeof_unsigned_int=0
32909   fi
32910fi
32911
32912fi
32913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
32914$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
32915
32916
32917
32918cat >>confdefs.h <<_ACEOF
32919#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
32920_ACEOF
32921
32922
32923
32924cat >>confdefs.h <<_ACEOF
32925#define HWLOC_SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
32926_ACEOF
32927
32928
32929    #
32930    # Check for compiler attributes and visibility
32931    #
32932
32933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
32934$as_echo_n "checking for __attribute__... " >&6; }
32935
32936  if ${hwloc_cv___attribute__+:} false; then :
32937  $as_echo_n "(cached) " >&6
32938else
32939
32940    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32941/* end confdefs.h.  */
32942#include <stdlib.h>
32943       /* Check for the longest available __attribute__ (since gcc-2.3) */
32944       struct foo {
32945           char a;
32946           int x[2] __attribute__ ((__packed__));
32947        };
32948
32949int
32950main ()
32951{
32952
32953  ;
32954  return 0;
32955}
32956_ACEOF
32957if ac_fn_c_try_compile "$LINENO"; then :
32958  hwloc_cv___attribute__=1
32959else
32960  hwloc_cv___attribute__=0
32961fi
32962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32963
32964    if test "$hwloc_cv___attribute__" = "1" ; then
32965        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32966/* end confdefs.h.  */
32967#include <stdlib.h>
32968           /* Check for the longest available __attribute__ (since gcc-2.3) */
32969           struct foo {
32970               char a;
32971               int x[2] __attribute__ ((__packed__));
32972            };
32973
32974int
32975main ()
32976{
32977
32978  ;
32979  return 0;
32980}
32981_ACEOF
32982if ac_fn_c_try_compile "$LINENO"; then :
32983  hwloc_cv___attribute__=1
32984else
32985  hwloc_cv___attribute__=0
32986fi
32987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32988    fi
32989
32990fi
32991
32992
32993cat >>confdefs.h <<_ACEOF
32994#define HWLOC_HAVE_ATTRIBUTE $hwloc_cv___attribute__
32995_ACEOF
32996
32997
32998#
32999# Now that we know the compiler support __attribute__ let's check which kind of
33000# attributed are supported.
33001#
33002  if test "$hwloc_cv___attribute__" = "0" ; then
33003    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33004$as_echo "no" >&6; }
33005    hwloc_cv___attribute__aligned=0
33006    hwloc_cv___attribute__always_inline=0
33007    hwloc_cv___attribute__cold=0
33008    hwloc_cv___attribute__const=0
33009    hwloc_cv___attribute__deprecated=0
33010    hwloc_cv___attribute__format=0
33011    hwloc_cv___attribute__hot=0
33012    hwloc_cv___attribute__malloc=0
33013    hwloc_cv___attribute__may_alias=0
33014    hwloc_cv___attribute__no_instrument_function=0
33015    hwloc_cv___attribute__nonnull=0
33016    hwloc_cv___attribute__noreturn=0
33017    hwloc_cv___attribute__packed=0
33018    hwloc_cv___attribute__pure=0
33019    hwloc_cv___attribute__sentinel=0
33020    hwloc_cv___attribute__unused=0
33021    hwloc_cv___attribute__warn_unused_result=0
33022    hwloc_cv___attribute__weak_alias=0
33023  else
33024    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33025$as_echo "yes" >&6; }
33026
33027
33028    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(aligned)" >&5
33029$as_echo_n "checking for __attribute__(aligned)... " >&6; }
33030    if ${hwloc_cv___attribute__aligned+:} false; then :
33031  $as_echo_n "(cached) " >&6
33032else
33033
33034        #
33035        # Try to compile using the C compiler
33036        #
33037        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33038/* end confdefs.h.  */
33039struct foo { char text[4]; }  __attribute__ ((__aligned__(8)));
33040int
33041main ()
33042{
33043
33044  ;
33045  return 0;
33046}
33047_ACEOF
33048if ac_fn_c_try_compile "$LINENO"; then :
33049
33050                        #
33051                        # In case we did succeed: Fine, but was this due to the
33052                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
33053                        # and if found, reset the hwloc_cv__attribute__var=0
33054                        #
33055                        hwloc_cv___attribute__aligned=1
33056
33057    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33058
33059
33060    if test -s conftest.err ; then
33061        for i in ignore skip ; do
33062            $GREP -iq $i conftest.err
33063            if test "$?" = "0" ; then
33064                hwloc_cv___attribute__aligned=0
33065                break;
33066            fi
33067        done
33068    fi
33069
33070
33071else
33072  hwloc_cv___attribute__aligned=0
33073fi
33074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33075
33076        #
33077        # If the attribute is supported by both compilers,
33078        # try to recompile a *cross-check*, IFF defined.
33079        #
33080        if test '(' "$hwloc_cv___attribute__aligned" = "1" -a "" != "" ')' ; then
33081            ac_c_werror_flag_safe=$ac_c_werror_flag
33082            ac_c_werror_flag="yes"
33083            CFLAGS_safe=$CFLAGS
33084            CFLAGS="$CFLAGS "
33085
33086            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33087/* end confdefs.h.  */
33088
33089int
33090main ()
33091{
33092
33093                 int i=4711;
33094                 i=usage(&i);
33095
33096  ;
33097  return 0;
33098}
33099_ACEOF
33100if ac_fn_c_try_compile "$LINENO"; then :
33101  hwloc_cv___attribute__aligned=0
33102else
33103
33104                 #
33105                 # In case we did NOT succeed: Fine, but was this due to the
33106                 # attribute being ignored? Grep for IgNoRe in conftest.err
33107                 # and if found, reset the hwloc_cv__attribute__var=0
33108                 #
33109                 hwloc_cv___attribute__aligned=1
33110
33111    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33112
33113
33114    if test -s conftest.err ; then
33115        for i in ignore skip ; do
33116            $GREP -iq $i conftest.err
33117            if test "$?" = "0" ; then
33118                hwloc_cv___attribute__aligned=0
33119                break;
33120            fi
33121        done
33122    fi
33123
33124
33125fi
33126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33127
33128            ac_c_werror_flag=$ac_c_werror_flag_safe
33129            CFLAGS=$CFLAGS_safe
33130        fi
33131
33132fi
33133
33134
33135    if test "$hwloc_cv___attribute__aligned" = "1" ; then
33136        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33137$as_echo "yes" >&6; }
33138    else
33139        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33140$as_echo "no" >&6; }
33141    fi
33142
33143
33144    #
33145    # Ignored by PGI-6.2.5; -- recognized by output-parser
33146    #
33147
33148    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(always_inline)" >&5
33149$as_echo_n "checking for __attribute__(always_inline)... " >&6; }
33150    if ${hwloc_cv___attribute__always_inline+:} false; then :
33151  $as_echo_n "(cached) " >&6
33152else
33153
33154        #
33155        # Try to compile using the C compiler
33156        #
33157        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33158/* end confdefs.h.  */
33159int foo (int arg) __attribute__ ((__always_inline__));
33160int
33161main ()
33162{
33163
33164  ;
33165  return 0;
33166}
33167_ACEOF
33168if ac_fn_c_try_compile "$LINENO"; then :
33169
33170                        #
33171                        # In case we did succeed: Fine, but was this due to the
33172                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
33173                        # and if found, reset the hwloc_cv__attribute__var=0
33174                        #
33175                        hwloc_cv___attribute__always_inline=1
33176
33177    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33178
33179
33180    if test -s conftest.err ; then
33181        for i in ignore skip ; do
33182            $GREP -iq $i conftest.err
33183            if test "$?" = "0" ; then
33184                hwloc_cv___attribute__always_inline=0
33185                break;
33186            fi
33187        done
33188    fi
33189
33190
33191else
33192  hwloc_cv___attribute__always_inline=0
33193fi
33194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33195
33196        #
33197        # If the attribute is supported by both compilers,
33198        # try to recompile a *cross-check*, IFF defined.
33199        #
33200        if test '(' "$hwloc_cv___attribute__always_inline" = "1" -a "" != "" ')' ; then
33201            ac_c_werror_flag_safe=$ac_c_werror_flag
33202            ac_c_werror_flag="yes"
33203            CFLAGS_safe=$CFLAGS
33204            CFLAGS="$CFLAGS "
33205
33206            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33207/* end confdefs.h.  */
33208
33209int
33210main ()
33211{
33212
33213                 int i=4711;
33214                 i=usage(&i);
33215
33216  ;
33217  return 0;
33218}
33219_ACEOF
33220if ac_fn_c_try_compile "$LINENO"; then :
33221  hwloc_cv___attribute__always_inline=0
33222else
33223
33224                 #
33225                 # In case we did NOT succeed: Fine, but was this due to the
33226                 # attribute being ignored? Grep for IgNoRe in conftest.err
33227                 # and if found, reset the hwloc_cv__attribute__var=0
33228                 #
33229                 hwloc_cv___attribute__always_inline=1
33230
33231    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33232
33233
33234    if test -s conftest.err ; then
33235        for i in ignore skip ; do
33236            $GREP -iq $i conftest.err
33237            if test "$?" = "0" ; then
33238                hwloc_cv___attribute__always_inline=0
33239                break;
33240            fi
33241        done
33242    fi
33243
33244
33245fi
33246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33247
33248            ac_c_werror_flag=$ac_c_werror_flag_safe
33249            CFLAGS=$CFLAGS_safe
33250        fi
33251
33252fi
33253
33254
33255    if test "$hwloc_cv___attribute__always_inline" = "1" ; then
33256        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33257$as_echo "yes" >&6; }
33258    else
33259        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33260$as_echo "no" >&6; }
33261    fi
33262
33263
33264
33265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(cold)" >&5
33266$as_echo_n "checking for __attribute__(cold)... " >&6; }
33267    if ${hwloc_cv___attribute__cold+:} false; then :
33268  $as_echo_n "(cached) " >&6
33269else
33270
33271        #
33272        # Try to compile using the C compiler
33273        #
33274        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33275/* end confdefs.h.  */
33276
33277         int foo(int arg1, int arg2) __attribute__ ((__cold__));
33278         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
33279
33280int
33281main ()
33282{
33283
33284  ;
33285  return 0;
33286}
33287_ACEOF
33288if ac_fn_c_try_compile "$LINENO"; then :
33289
33290                        #
33291                        # In case we did succeed: Fine, but was this due to the
33292                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
33293                        # and if found, reset the hwloc_cv__attribute__var=0
33294                        #
33295                        hwloc_cv___attribute__cold=1
33296
33297    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33298
33299
33300    if test -s conftest.err ; then
33301        for i in ignore skip ; do
33302            $GREP -iq $i conftest.err
33303            if test "$?" = "0" ; then
33304                hwloc_cv___attribute__cold=0
33305                break;
33306            fi
33307        done
33308    fi
33309
33310
33311else
33312  hwloc_cv___attribute__cold=0
33313fi
33314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33315
33316        #
33317        # If the attribute is supported by both compilers,
33318        # try to recompile a *cross-check*, IFF defined.
33319        #
33320        if test '(' "$hwloc_cv___attribute__cold" = "1" -a "" != "" ')' ; then
33321            ac_c_werror_flag_safe=$ac_c_werror_flag
33322            ac_c_werror_flag="yes"
33323            CFLAGS_safe=$CFLAGS
33324            CFLAGS="$CFLAGS "
33325
33326            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33327/* end confdefs.h.  */
33328
33329int
33330main ()
33331{
33332
33333                 int i=4711;
33334                 i=usage(&i);
33335
33336  ;
33337  return 0;
33338}
33339_ACEOF
33340if ac_fn_c_try_compile "$LINENO"; then :
33341  hwloc_cv___attribute__cold=0
33342else
33343
33344                 #
33345                 # In case we did NOT succeed: Fine, but was this due to the
33346                 # attribute being ignored? Grep for IgNoRe in conftest.err
33347                 # and if found, reset the hwloc_cv__attribute__var=0
33348                 #
33349                 hwloc_cv___attribute__cold=1
33350
33351    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33352
33353
33354    if test -s conftest.err ; then
33355        for i in ignore skip ; do
33356            $GREP -iq $i conftest.err
33357            if test "$?" = "0" ; then
33358                hwloc_cv___attribute__cold=0
33359                break;
33360            fi
33361        done
33362    fi
33363
33364
33365fi
33366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33367
33368            ac_c_werror_flag=$ac_c_werror_flag_safe
33369            CFLAGS=$CFLAGS_safe
33370        fi
33371
33372fi
33373
33374
33375    if test "$hwloc_cv___attribute__cold" = "1" ; then
33376        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33377$as_echo "yes" >&6; }
33378    else
33379        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33380$as_echo "no" >&6; }
33381    fi
33382
33383
33384
33385    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(const)" >&5
33386$as_echo_n "checking for __attribute__(const)... " >&6; }
33387    if ${hwloc_cv___attribute__const+:} false; then :
33388  $as_echo_n "(cached) " >&6
33389else
33390
33391        #
33392        # Try to compile using the C compiler
33393        #
33394        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33395/* end confdefs.h.  */
33396
33397         int foo(int arg1, int arg2) __attribute__ ((__const__));
33398         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
33399
33400int
33401main ()
33402{
33403
33404  ;
33405  return 0;
33406}
33407_ACEOF
33408if ac_fn_c_try_compile "$LINENO"; then :
33409
33410                        #
33411                        # In case we did succeed: Fine, but was this due to the
33412                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
33413                        # and if found, reset the hwloc_cv__attribute__var=0
33414                        #
33415                        hwloc_cv___attribute__const=1
33416
33417    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33418
33419
33420    if test -s conftest.err ; then
33421        for i in ignore skip ; do
33422            $GREP -iq $i conftest.err
33423            if test "$?" = "0" ; then
33424                hwloc_cv___attribute__const=0
33425                break;
33426            fi
33427        done
33428    fi
33429
33430
33431else
33432  hwloc_cv___attribute__const=0
33433fi
33434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33435
33436        #
33437        # If the attribute is supported by both compilers,
33438        # try to recompile a *cross-check*, IFF defined.
33439        #
33440        if test '(' "$hwloc_cv___attribute__const" = "1" -a "" != "" ')' ; then
33441            ac_c_werror_flag_safe=$ac_c_werror_flag
33442            ac_c_werror_flag="yes"
33443            CFLAGS_safe=$CFLAGS
33444            CFLAGS="$CFLAGS "
33445
33446            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33447/* end confdefs.h.  */
33448
33449int
33450main ()
33451{
33452
33453                 int i=4711;
33454                 i=usage(&i);
33455
33456  ;
33457  return 0;
33458}
33459_ACEOF
33460if ac_fn_c_try_compile "$LINENO"; then :
33461  hwloc_cv___attribute__const=0
33462else
33463
33464                 #
33465                 # In case we did NOT succeed: Fine, but was this due to the
33466                 # attribute being ignored? Grep for IgNoRe in conftest.err
33467                 # and if found, reset the hwloc_cv__attribute__var=0
33468                 #
33469                 hwloc_cv___attribute__const=1
33470
33471    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33472
33473
33474    if test -s conftest.err ; then
33475        for i in ignore skip ; do
33476            $GREP -iq $i conftest.err
33477            if test "$?" = "0" ; then
33478                hwloc_cv___attribute__const=0
33479                break;
33480            fi
33481        done
33482    fi
33483
33484
33485fi
33486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33487
33488            ac_c_werror_flag=$ac_c_werror_flag_safe
33489            CFLAGS=$CFLAGS_safe
33490        fi
33491
33492fi
33493
33494
33495    if test "$hwloc_cv___attribute__const" = "1" ; then
33496        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33497$as_echo "yes" >&6; }
33498    else
33499        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33500$as_echo "no" >&6; }
33501    fi
33502
33503
33504
33505
33506    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(deprecated)" >&5
33507$as_echo_n "checking for __attribute__(deprecated)... " >&6; }
33508    if ${hwloc_cv___attribute__deprecated+:} false; then :
33509  $as_echo_n "(cached) " >&6
33510else
33511
33512        #
33513        # Try to compile using the C compiler
33514        #
33515        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33516/* end confdefs.h.  */
33517
33518         int foo(int arg1, int arg2) __attribute__ ((__deprecated__));
33519         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
33520
33521int
33522main ()
33523{
33524
33525  ;
33526  return 0;
33527}
33528_ACEOF
33529if ac_fn_c_try_compile "$LINENO"; then :
33530
33531                        #
33532                        # In case we did succeed: Fine, but was this due to the
33533                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
33534                        # and if found, reset the hwloc_cv__attribute__var=0
33535                        #
33536                        hwloc_cv___attribute__deprecated=1
33537
33538    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33539
33540
33541    if test -s conftest.err ; then
33542        for i in ignore skip ; do
33543            $GREP -iq $i conftest.err
33544            if test "$?" = "0" ; then
33545                hwloc_cv___attribute__deprecated=0
33546                break;
33547            fi
33548        done
33549    fi
33550
33551
33552else
33553  hwloc_cv___attribute__deprecated=0
33554fi
33555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33556
33557        #
33558        # If the attribute is supported by both compilers,
33559        # try to recompile a *cross-check*, IFF defined.
33560        #
33561        if test '(' "$hwloc_cv___attribute__deprecated" = "1" -a "" != "" ')' ; then
33562            ac_c_werror_flag_safe=$ac_c_werror_flag
33563            ac_c_werror_flag="yes"
33564            CFLAGS_safe=$CFLAGS
33565            CFLAGS="$CFLAGS "
33566
33567            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33568/* end confdefs.h.  */
33569
33570int
33571main ()
33572{
33573
33574                 int i=4711;
33575                 i=usage(&i);
33576
33577  ;
33578  return 0;
33579}
33580_ACEOF
33581if ac_fn_c_try_compile "$LINENO"; then :
33582  hwloc_cv___attribute__deprecated=0
33583else
33584
33585                 #
33586                 # In case we did NOT succeed: Fine, but was this due to the
33587                 # attribute being ignored? Grep for IgNoRe in conftest.err
33588                 # and if found, reset the hwloc_cv__attribute__var=0
33589                 #
33590                 hwloc_cv___attribute__deprecated=1
33591
33592    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33593
33594
33595    if test -s conftest.err ; then
33596        for i in ignore skip ; do
33597            $GREP -iq $i conftest.err
33598            if test "$?" = "0" ; then
33599                hwloc_cv___attribute__deprecated=0
33600                break;
33601            fi
33602        done
33603    fi
33604
33605
33606fi
33607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33608
33609            ac_c_werror_flag=$ac_c_werror_flag_safe
33610            CFLAGS=$CFLAGS_safe
33611        fi
33612
33613fi
33614
33615
33616    if test "$hwloc_cv___attribute__deprecated" = "1" ; then
33617        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33618$as_echo "yes" >&6; }
33619    else
33620        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33621$as_echo "no" >&6; }
33622    fi
33623
33624
33625
33626    HWLOC_ATTRIBUTE_CFLAGS=
33627    case "$hwloc_c_vendor" in
33628        gnu)
33629            HWLOC_ATTRIBUTE_CFLAGS="-Wall"
33630            ;;
33631        intel)
33632            # we want specifically the warning on format string conversion
33633            HWLOC_ATTRIBUTE_CFLAGS="-we181"
33634            ;;
33635    esac
33636
33637    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(format)" >&5
33638$as_echo_n "checking for __attribute__(format)... " >&6; }
33639    if ${hwloc_cv___attribute__format+:} false; then :
33640  $as_echo_n "(cached) " >&6
33641else
33642
33643        #
33644        # Try to compile using the C compiler
33645        #
33646        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33647/* end confdefs.h.  */
33648
33649         int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
33650
33651int
33652main ()
33653{
33654
33655  ;
33656  return 0;
33657}
33658_ACEOF
33659if ac_fn_c_try_compile "$LINENO"; then :
33660
33661                        #
33662                        # In case we did succeed: Fine, but was this due to the
33663                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
33664                        # and if found, reset the hwloc_cv__attribute__var=0
33665                        #
33666                        hwloc_cv___attribute__format=1
33667
33668    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33669
33670
33671    if test -s conftest.err ; then
33672        for i in ignore skip ; do
33673            $GREP -iq $i conftest.err
33674            if test "$?" = "0" ; then
33675                hwloc_cv___attribute__format=0
33676                break;
33677            fi
33678        done
33679    fi
33680
33681
33682else
33683  hwloc_cv___attribute__format=0
33684fi
33685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33686
33687        #
33688        # If the attribute is supported by both compilers,
33689        # try to recompile a *cross-check*, IFF defined.
33690        #
33691        if test '(' "$hwloc_cv___attribute__format" = "1" -a "
33692         static int usage (int * argument);
33693         extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
33694
33695         static int usage (int * argument) {
33696             return this_printf (*argument, "%d", argument); /* This should produce a format warning */
33697         }
33698         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
33699         int main(void);
33700        " != "" ')' ; then
33701            ac_c_werror_flag_safe=$ac_c_werror_flag
33702            ac_c_werror_flag="yes"
33703            CFLAGS_safe=$CFLAGS
33704            CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"
33705
33706            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33707/* end confdefs.h.  */
33708
33709         static int usage (int * argument);
33710         extern int this_printf (int arg1, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
33711
33712         static int usage (int * argument) {
33713             return this_printf (*argument, "%d", argument); /* This should produce a format warning */
33714         }
33715         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
33716         int main(void);
33717
33718int
33719main ()
33720{
33721
33722                 int i=4711;
33723                 i=usage(&i);
33724
33725  ;
33726  return 0;
33727}
33728_ACEOF
33729if ac_fn_c_try_compile "$LINENO"; then :
33730  hwloc_cv___attribute__format=0
33731else
33732
33733                 #
33734                 # In case we did NOT succeed: Fine, but was this due to the
33735                 # attribute being ignored? Grep for IgNoRe in conftest.err
33736                 # and if found, reset the hwloc_cv__attribute__var=0
33737                 #
33738                 hwloc_cv___attribute__format=1
33739
33740    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33741
33742
33743    if test -s conftest.err ; then
33744        for i in ignore skip ; do
33745            $GREP -iq $i conftest.err
33746            if test "$?" = "0" ; then
33747                hwloc_cv___attribute__format=0
33748                break;
33749            fi
33750        done
33751    fi
33752
33753
33754fi
33755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33756
33757            ac_c_werror_flag=$ac_c_werror_flag_safe
33758            CFLAGS=$CFLAGS_safe
33759        fi
33760
33761fi
33762
33763
33764    if test "$hwloc_cv___attribute__format" = "1" ; then
33765        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33766$as_echo "yes" >&6; }
33767    else
33768        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33769$as_echo "no" >&6; }
33770    fi
33771
33772
33773
33774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(hot)" >&5
33775$as_echo_n "checking for __attribute__(hot)... " >&6; }
33776    if ${hwloc_cv___attribute__hot+:} false; then :
33777  $as_echo_n "(cached) " >&6
33778else
33779
33780        #
33781        # Try to compile using the C compiler
33782        #
33783        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33784/* end confdefs.h.  */
33785
33786         int foo(int arg1, int arg2) __attribute__ ((__hot__));
33787         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
33788
33789int
33790main ()
33791{
33792
33793  ;
33794  return 0;
33795}
33796_ACEOF
33797if ac_fn_c_try_compile "$LINENO"; then :
33798
33799                        #
33800                        # In case we did succeed: Fine, but was this due to the
33801                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
33802                        # and if found, reset the hwloc_cv__attribute__var=0
33803                        #
33804                        hwloc_cv___attribute__hot=1
33805
33806    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33807
33808
33809    if test -s conftest.err ; then
33810        for i in ignore skip ; do
33811            $GREP -iq $i conftest.err
33812            if test "$?" = "0" ; then
33813                hwloc_cv___attribute__hot=0
33814                break;
33815            fi
33816        done
33817    fi
33818
33819
33820else
33821  hwloc_cv___attribute__hot=0
33822fi
33823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33824
33825        #
33826        # If the attribute is supported by both compilers,
33827        # try to recompile a *cross-check*, IFF defined.
33828        #
33829        if test '(' "$hwloc_cv___attribute__hot" = "1" -a "" != "" ')' ; then
33830            ac_c_werror_flag_safe=$ac_c_werror_flag
33831            ac_c_werror_flag="yes"
33832            CFLAGS_safe=$CFLAGS
33833            CFLAGS="$CFLAGS "
33834
33835            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33836/* end confdefs.h.  */
33837
33838int
33839main ()
33840{
33841
33842                 int i=4711;
33843                 i=usage(&i);
33844
33845  ;
33846  return 0;
33847}
33848_ACEOF
33849if ac_fn_c_try_compile "$LINENO"; then :
33850  hwloc_cv___attribute__hot=0
33851else
33852
33853                 #
33854                 # In case we did NOT succeed: Fine, but was this due to the
33855                 # attribute being ignored? Grep for IgNoRe in conftest.err
33856                 # and if found, reset the hwloc_cv__attribute__var=0
33857                 #
33858                 hwloc_cv___attribute__hot=1
33859
33860    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33861
33862
33863    if test -s conftest.err ; then
33864        for i in ignore skip ; do
33865            $GREP -iq $i conftest.err
33866            if test "$?" = "0" ; then
33867                hwloc_cv___attribute__hot=0
33868                break;
33869            fi
33870        done
33871    fi
33872
33873
33874fi
33875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33876
33877            ac_c_werror_flag=$ac_c_werror_flag_safe
33878            CFLAGS=$CFLAGS_safe
33879        fi
33880
33881fi
33882
33883
33884    if test "$hwloc_cv___attribute__hot" = "1" ; then
33885        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33886$as_echo "yes" >&6; }
33887    else
33888        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33889$as_echo "no" >&6; }
33890    fi
33891
33892
33893
33894    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(malloc)" >&5
33895$as_echo_n "checking for __attribute__(malloc)... " >&6; }
33896    if ${hwloc_cv___attribute__malloc+:} false; then :
33897  $as_echo_n "(cached) " >&6
33898else
33899
33900        #
33901        # Try to compile using the C compiler
33902        #
33903        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33904/* end confdefs.h.  */
33905
33906#ifdef HAVE_STDLIB_H
33907#  include <stdlib.h>
33908#endif
33909         int * foo(int arg1) __attribute__ ((__malloc__));
33910         int * foo(int arg1) { return (int*) malloc(arg1); }
33911
33912int
33913main ()
33914{
33915
33916  ;
33917  return 0;
33918}
33919_ACEOF
33920if ac_fn_c_try_compile "$LINENO"; then :
33921
33922                        #
33923                        # In case we did succeed: Fine, but was this due to the
33924                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
33925                        # and if found, reset the hwloc_cv__attribute__var=0
33926                        #
33927                        hwloc_cv___attribute__malloc=1
33928
33929    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33930
33931
33932    if test -s conftest.err ; then
33933        for i in ignore skip ; do
33934            $GREP -iq $i conftest.err
33935            if test "$?" = "0" ; then
33936                hwloc_cv___attribute__malloc=0
33937                break;
33938            fi
33939        done
33940    fi
33941
33942
33943else
33944  hwloc_cv___attribute__malloc=0
33945fi
33946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33947
33948        #
33949        # If the attribute is supported by both compilers,
33950        # try to recompile a *cross-check*, IFF defined.
33951        #
33952        if test '(' "$hwloc_cv___attribute__malloc" = "1" -a "" != "" ')' ; then
33953            ac_c_werror_flag_safe=$ac_c_werror_flag
33954            ac_c_werror_flag="yes"
33955            CFLAGS_safe=$CFLAGS
33956            CFLAGS="$CFLAGS "
33957
33958            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33959/* end confdefs.h.  */
33960
33961int
33962main ()
33963{
33964
33965                 int i=4711;
33966                 i=usage(&i);
33967
33968  ;
33969  return 0;
33970}
33971_ACEOF
33972if ac_fn_c_try_compile "$LINENO"; then :
33973  hwloc_cv___attribute__malloc=0
33974else
33975
33976                 #
33977                 # In case we did NOT succeed: Fine, but was this due to the
33978                 # attribute being ignored? Grep for IgNoRe in conftest.err
33979                 # and if found, reset the hwloc_cv__attribute__var=0
33980                 #
33981                 hwloc_cv___attribute__malloc=1
33982
33983    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
33984
33985
33986    if test -s conftest.err ; then
33987        for i in ignore skip ; do
33988            $GREP -iq $i conftest.err
33989            if test "$?" = "0" ; then
33990                hwloc_cv___attribute__malloc=0
33991                break;
33992            fi
33993        done
33994    fi
33995
33996
33997fi
33998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33999
34000            ac_c_werror_flag=$ac_c_werror_flag_safe
34001            CFLAGS=$CFLAGS_safe
34002        fi
34003
34004fi
34005
34006
34007    if test "$hwloc_cv___attribute__malloc" = "1" ; then
34008        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34009$as_echo "yes" >&6; }
34010    else
34011        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34012$as_echo "no" >&6; }
34013    fi
34014
34015
34016
34017    #
34018    # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers
34019    # Ignored by intel-9.1.045 -- turn off with -wd1292
34020    # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check
34021    # The test case is chosen to match our only use in topology-xml-*.c, and reproduces an xlc-13.1.0 bug.
34022    #
34023
34024    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(may_alias)" >&5
34025$as_echo_n "checking for __attribute__(may_alias)... " >&6; }
34026    if ${hwloc_cv___attribute__may_alias+:} false; then :
34027  $as_echo_n "(cached) " >&6
34028else
34029
34030        #
34031        # Try to compile using the C compiler
34032        #
34033        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34034/* end confdefs.h.  */
34035struct { int i; } __attribute__ ((__may_alias__)) * p_value;
34036int
34037main ()
34038{
34039
34040  ;
34041  return 0;
34042}
34043_ACEOF
34044if ac_fn_c_try_compile "$LINENO"; then :
34045
34046                        #
34047                        # In case we did succeed: Fine, but was this due to the
34048                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
34049                        # and if found, reset the hwloc_cv__attribute__var=0
34050                        #
34051                        hwloc_cv___attribute__may_alias=1
34052
34053    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34054
34055
34056    if test -s conftest.err ; then
34057        for i in ignore skip ; do
34058            $GREP -iq $i conftest.err
34059            if test "$?" = "0" ; then
34060                hwloc_cv___attribute__may_alias=0
34061                break;
34062            fi
34063        done
34064    fi
34065
34066
34067else
34068  hwloc_cv___attribute__may_alias=0
34069fi
34070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34071
34072        #
34073        # If the attribute is supported by both compilers,
34074        # try to recompile a *cross-check*, IFF defined.
34075        #
34076        if test '(' "$hwloc_cv___attribute__may_alias" = "1" -a "" != "" ')' ; then
34077            ac_c_werror_flag_safe=$ac_c_werror_flag
34078            ac_c_werror_flag="yes"
34079            CFLAGS_safe=$CFLAGS
34080            CFLAGS="$CFLAGS "
34081
34082            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34083/* end confdefs.h.  */
34084
34085int
34086main ()
34087{
34088
34089                 int i=4711;
34090                 i=usage(&i);
34091
34092  ;
34093  return 0;
34094}
34095_ACEOF
34096if ac_fn_c_try_compile "$LINENO"; then :
34097  hwloc_cv___attribute__may_alias=0
34098else
34099
34100                 #
34101                 # In case we did NOT succeed: Fine, but was this due to the
34102                 # attribute being ignored? Grep for IgNoRe in conftest.err
34103                 # and if found, reset the hwloc_cv__attribute__var=0
34104                 #
34105                 hwloc_cv___attribute__may_alias=1
34106
34107    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34108
34109
34110    if test -s conftest.err ; then
34111        for i in ignore skip ; do
34112            $GREP -iq $i conftest.err
34113            if test "$?" = "0" ; then
34114                hwloc_cv___attribute__may_alias=0
34115                break;
34116            fi
34117        done
34118    fi
34119
34120
34121fi
34122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34123
34124            ac_c_werror_flag=$ac_c_werror_flag_safe
34125            CFLAGS=$CFLAGS_safe
34126        fi
34127
34128fi
34129
34130
34131    if test "$hwloc_cv___attribute__may_alias" = "1" ; then
34132        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34133$as_echo "yes" >&6; }
34134    else
34135        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34136$as_echo "no" >&6; }
34137    fi
34138
34139
34140
34141
34142    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(no_instrument_function)" >&5
34143$as_echo_n "checking for __attribute__(no_instrument_function)... " >&6; }
34144    if ${hwloc_cv___attribute__no_instrument_function+:} false; then :
34145  $as_echo_n "(cached) " >&6
34146else
34147
34148        #
34149        # Try to compile using the C compiler
34150        #
34151        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34152/* end confdefs.h.  */
34153int * foo(int arg1) __attribute__ ((__no_instrument_function__));
34154int
34155main ()
34156{
34157
34158  ;
34159  return 0;
34160}
34161_ACEOF
34162if ac_fn_c_try_compile "$LINENO"; then :
34163
34164                        #
34165                        # In case we did succeed: Fine, but was this due to the
34166                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
34167                        # and if found, reset the hwloc_cv__attribute__var=0
34168                        #
34169                        hwloc_cv___attribute__no_instrument_function=1
34170
34171    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34172
34173
34174    if test -s conftest.err ; then
34175        for i in ignore skip ; do
34176            $GREP -iq $i conftest.err
34177            if test "$?" = "0" ; then
34178                hwloc_cv___attribute__no_instrument_function=0
34179                break;
34180            fi
34181        done
34182    fi
34183
34184
34185else
34186  hwloc_cv___attribute__no_instrument_function=0
34187fi
34188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34189
34190        #
34191        # If the attribute is supported by both compilers,
34192        # try to recompile a *cross-check*, IFF defined.
34193        #
34194        if test '(' "$hwloc_cv___attribute__no_instrument_function" = "1" -a "" != "" ')' ; then
34195            ac_c_werror_flag_safe=$ac_c_werror_flag
34196            ac_c_werror_flag="yes"
34197            CFLAGS_safe=$CFLAGS
34198            CFLAGS="$CFLAGS "
34199
34200            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34201/* end confdefs.h.  */
34202
34203int
34204main ()
34205{
34206
34207                 int i=4711;
34208                 i=usage(&i);
34209
34210  ;
34211  return 0;
34212}
34213_ACEOF
34214if ac_fn_c_try_compile "$LINENO"; then :
34215  hwloc_cv___attribute__no_instrument_function=0
34216else
34217
34218                 #
34219                 # In case we did NOT succeed: Fine, but was this due to the
34220                 # attribute being ignored? Grep for IgNoRe in conftest.err
34221                 # and if found, reset the hwloc_cv__attribute__var=0
34222                 #
34223                 hwloc_cv___attribute__no_instrument_function=1
34224
34225    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34226
34227
34228    if test -s conftest.err ; then
34229        for i in ignore skip ; do
34230            $GREP -iq $i conftest.err
34231            if test "$?" = "0" ; then
34232                hwloc_cv___attribute__no_instrument_function=0
34233                break;
34234            fi
34235        done
34236    fi
34237
34238
34239fi
34240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34241
34242            ac_c_werror_flag=$ac_c_werror_flag_safe
34243            CFLAGS=$CFLAGS_safe
34244        fi
34245
34246fi
34247
34248
34249    if test "$hwloc_cv___attribute__no_instrument_function" = "1" ; then
34250        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34251$as_echo "yes" >&6; }
34252    else
34253        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34254$as_echo "no" >&6; }
34255    fi
34256
34257
34258
34259    #
34260    # Attribute nonnull:
34261    # Ignored by intel-compiler 9.1.045 -- recognized by cross-check
34262    # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check
34263    #
34264    HWLOC_ATTRIBUTE_CFLAGS=
34265    case "$hwloc_c_vendor" in
34266        gnu)
34267            HWLOC_ATTRIBUTE_CFLAGS="-Wall"
34268            ;;
34269        intel)
34270            # we do not want to get ignored attributes warnings, but rather real warnings
34271            HWLOC_ATTRIBUTE_CFLAGS="-wd1292"
34272            ;;
34273    esac
34274
34275    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(nonnull)" >&5
34276$as_echo_n "checking for __attribute__(nonnull)... " >&6; }
34277    if ${hwloc_cv___attribute__nonnull+:} false; then :
34278  $as_echo_n "(cached) " >&6
34279else
34280
34281        #
34282        # Try to compile using the C compiler
34283        #
34284        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34285/* end confdefs.h.  */
34286
34287         int square(int *arg) __attribute__ ((__nonnull__));
34288         int square(int *arg) { return *arg; }
34289
34290int
34291main ()
34292{
34293
34294  ;
34295  return 0;
34296}
34297_ACEOF
34298if ac_fn_c_try_compile "$LINENO"; then :
34299
34300                        #
34301                        # In case we did succeed: Fine, but was this due to the
34302                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
34303                        # and if found, reset the hwloc_cv__attribute__var=0
34304                        #
34305                        hwloc_cv___attribute__nonnull=1
34306
34307    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34308
34309
34310    if test -s conftest.err ; then
34311        for i in ignore skip ; do
34312            $GREP -iq $i conftest.err
34313            if test "$?" = "0" ; then
34314                hwloc_cv___attribute__nonnull=0
34315                break;
34316            fi
34317        done
34318    fi
34319
34320
34321else
34322  hwloc_cv___attribute__nonnull=0
34323fi
34324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34325
34326        #
34327        # If the attribute is supported by both compilers,
34328        # try to recompile a *cross-check*, IFF defined.
34329        #
34330        if test '(' "$hwloc_cv___attribute__nonnull" = "1" -a "
34331         static int usage(int * argument);
34332         int square(int * argument) __attribute__ ((__nonnull__));
34333         int square(int * argument) { return (*argument) * (*argument); }
34334
34335         static int usage(int * argument) {
34336             return square( ((void*)0) );    /* This should produce an argument must be nonnull warning */
34337         }
34338         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
34339         int main(void);
34340        " != "" ')' ; then
34341            ac_c_werror_flag_safe=$ac_c_werror_flag
34342            ac_c_werror_flag="yes"
34343            CFLAGS_safe=$CFLAGS
34344            CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"
34345
34346            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34347/* end confdefs.h.  */
34348
34349         static int usage(int * argument);
34350         int square(int * argument) __attribute__ ((__nonnull__));
34351         int square(int * argument) { return (*argument) * (*argument); }
34352
34353         static int usage(int * argument) {
34354             return square( ((void*)0) );    /* This should produce an argument must be nonnull warning */
34355         }
34356         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
34357         int main(void);
34358
34359int
34360main ()
34361{
34362
34363                 int i=4711;
34364                 i=usage(&i);
34365
34366  ;
34367  return 0;
34368}
34369_ACEOF
34370if ac_fn_c_try_compile "$LINENO"; then :
34371  hwloc_cv___attribute__nonnull=0
34372else
34373
34374                 #
34375                 # In case we did NOT succeed: Fine, but was this due to the
34376                 # attribute being ignored? Grep for IgNoRe in conftest.err
34377                 # and if found, reset the hwloc_cv__attribute__var=0
34378                 #
34379                 hwloc_cv___attribute__nonnull=1
34380
34381    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34382
34383
34384    if test -s conftest.err ; then
34385        for i in ignore skip ; do
34386            $GREP -iq $i conftest.err
34387            if test "$?" = "0" ; then
34388                hwloc_cv___attribute__nonnull=0
34389                break;
34390            fi
34391        done
34392    fi
34393
34394
34395fi
34396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34397
34398            ac_c_werror_flag=$ac_c_werror_flag_safe
34399            CFLAGS=$CFLAGS_safe
34400        fi
34401
34402fi
34403
34404
34405    if test "$hwloc_cv___attribute__nonnull" = "1" ; then
34406        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34407$as_echo "yes" >&6; }
34408    else
34409        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34410$as_echo "no" >&6; }
34411    fi
34412
34413
34414
34415
34416    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noreturn)" >&5
34417$as_echo_n "checking for __attribute__(noreturn)... " >&6; }
34418    if ${hwloc_cv___attribute__noreturn+:} false; then :
34419  $as_echo_n "(cached) " >&6
34420else
34421
34422        #
34423        # Try to compile using the C compiler
34424        #
34425        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34426/* end confdefs.h.  */
34427
34428#ifdef HAVE_UNISTD_H
34429#  include <unistd.h>
34430#endif
34431#ifdef HAVE_STDLIB_H
34432#  include <stdlib.h>
34433#endif
34434         void fatal(int arg1) __attribute__ ((__noreturn__));
34435         void fatal(int arg1) { exit(arg1); }
34436
34437int
34438main ()
34439{
34440
34441  ;
34442  return 0;
34443}
34444_ACEOF
34445if ac_fn_c_try_compile "$LINENO"; then :
34446
34447                        #
34448                        # In case we did succeed: Fine, but was this due to the
34449                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
34450                        # and if found, reset the hwloc_cv__attribute__var=0
34451                        #
34452                        hwloc_cv___attribute__noreturn=1
34453
34454    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34455
34456
34457    if test -s conftest.err ; then
34458        for i in ignore skip ; do
34459            $GREP -iq $i conftest.err
34460            if test "$?" = "0" ; then
34461                hwloc_cv___attribute__noreturn=0
34462                break;
34463            fi
34464        done
34465    fi
34466
34467
34468else
34469  hwloc_cv___attribute__noreturn=0
34470fi
34471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34472
34473        #
34474        # If the attribute is supported by both compilers,
34475        # try to recompile a *cross-check*, IFF defined.
34476        #
34477        if test '(' "$hwloc_cv___attribute__noreturn" = "1" -a "" != "" ')' ; then
34478            ac_c_werror_flag_safe=$ac_c_werror_flag
34479            ac_c_werror_flag="yes"
34480            CFLAGS_safe=$CFLAGS
34481            CFLAGS="$CFLAGS "
34482
34483            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34484/* end confdefs.h.  */
34485
34486int
34487main ()
34488{
34489
34490                 int i=4711;
34491                 i=usage(&i);
34492
34493  ;
34494  return 0;
34495}
34496_ACEOF
34497if ac_fn_c_try_compile "$LINENO"; then :
34498  hwloc_cv___attribute__noreturn=0
34499else
34500
34501                 #
34502                 # In case we did NOT succeed: Fine, but was this due to the
34503                 # attribute being ignored? Grep for IgNoRe in conftest.err
34504                 # and if found, reset the hwloc_cv__attribute__var=0
34505                 #
34506                 hwloc_cv___attribute__noreturn=1
34507
34508    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34509
34510
34511    if test -s conftest.err ; then
34512        for i in ignore skip ; do
34513            $GREP -iq $i conftest.err
34514            if test "$?" = "0" ; then
34515                hwloc_cv___attribute__noreturn=0
34516                break;
34517            fi
34518        done
34519    fi
34520
34521
34522fi
34523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34524
34525            ac_c_werror_flag=$ac_c_werror_flag_safe
34526            CFLAGS=$CFLAGS_safe
34527        fi
34528
34529fi
34530
34531
34532    if test "$hwloc_cv___attribute__noreturn" = "1" ; then
34533        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34534$as_echo "yes" >&6; }
34535    else
34536        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34537$as_echo "no" >&6; }
34538    fi
34539
34540
34541
34542    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(packed)" >&5
34543$as_echo_n "checking for __attribute__(packed)... " >&6; }
34544    if ${hwloc_cv___attribute__packed+:} false; then :
34545  $as_echo_n "(cached) " >&6
34546else
34547
34548        #
34549        # Try to compile using the C compiler
34550        #
34551        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34552/* end confdefs.h.  */
34553
34554         struct foo {
34555             char a;
34556             int x[2] __attribute__ ((__packed__));
34557         };
34558
34559int
34560main ()
34561{
34562
34563  ;
34564  return 0;
34565}
34566_ACEOF
34567if ac_fn_c_try_compile "$LINENO"; then :
34568
34569                        #
34570                        # In case we did succeed: Fine, but was this due to the
34571                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
34572                        # and if found, reset the hwloc_cv__attribute__var=0
34573                        #
34574                        hwloc_cv___attribute__packed=1
34575
34576    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34577
34578
34579    if test -s conftest.err ; then
34580        for i in ignore skip ; do
34581            $GREP -iq $i conftest.err
34582            if test "$?" = "0" ; then
34583                hwloc_cv___attribute__packed=0
34584                break;
34585            fi
34586        done
34587    fi
34588
34589
34590else
34591  hwloc_cv___attribute__packed=0
34592fi
34593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34594
34595        #
34596        # If the attribute is supported by both compilers,
34597        # try to recompile a *cross-check*, IFF defined.
34598        #
34599        if test '(' "$hwloc_cv___attribute__packed" = "1" -a "" != "" ')' ; then
34600            ac_c_werror_flag_safe=$ac_c_werror_flag
34601            ac_c_werror_flag="yes"
34602            CFLAGS_safe=$CFLAGS
34603            CFLAGS="$CFLAGS "
34604
34605            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34606/* end confdefs.h.  */
34607
34608int
34609main ()
34610{
34611
34612                 int i=4711;
34613                 i=usage(&i);
34614
34615  ;
34616  return 0;
34617}
34618_ACEOF
34619if ac_fn_c_try_compile "$LINENO"; then :
34620  hwloc_cv___attribute__packed=0
34621else
34622
34623                 #
34624                 # In case we did NOT succeed: Fine, but was this due to the
34625                 # attribute being ignored? Grep for IgNoRe in conftest.err
34626                 # and if found, reset the hwloc_cv__attribute__var=0
34627                 #
34628                 hwloc_cv___attribute__packed=1
34629
34630    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34631
34632
34633    if test -s conftest.err ; then
34634        for i in ignore skip ; do
34635            $GREP -iq $i conftest.err
34636            if test "$?" = "0" ; then
34637                hwloc_cv___attribute__packed=0
34638                break;
34639            fi
34640        done
34641    fi
34642
34643
34644fi
34645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34646
34647            ac_c_werror_flag=$ac_c_werror_flag_safe
34648            CFLAGS=$CFLAGS_safe
34649        fi
34650
34651fi
34652
34653
34654    if test "$hwloc_cv___attribute__packed" = "1" ; then
34655        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34656$as_echo "yes" >&6; }
34657    else
34658        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34659$as_echo "no" >&6; }
34660    fi
34661
34662
34663
34664    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(pure)" >&5
34665$as_echo_n "checking for __attribute__(pure)... " >&6; }
34666    if ${hwloc_cv___attribute__pure+:} false; then :
34667  $as_echo_n "(cached) " >&6
34668else
34669
34670        #
34671        # Try to compile using the C compiler
34672        #
34673        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34674/* end confdefs.h.  */
34675
34676         int square(int arg) __attribute__ ((__pure__));
34677         int square(int arg) { return arg * arg; }
34678
34679int
34680main ()
34681{
34682
34683  ;
34684  return 0;
34685}
34686_ACEOF
34687if ac_fn_c_try_compile "$LINENO"; then :
34688
34689                        #
34690                        # In case we did succeed: Fine, but was this due to the
34691                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
34692                        # and if found, reset the hwloc_cv__attribute__var=0
34693                        #
34694                        hwloc_cv___attribute__pure=1
34695
34696    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34697
34698
34699    if test -s conftest.err ; then
34700        for i in ignore skip ; do
34701            $GREP -iq $i conftest.err
34702            if test "$?" = "0" ; then
34703                hwloc_cv___attribute__pure=0
34704                break;
34705            fi
34706        done
34707    fi
34708
34709
34710else
34711  hwloc_cv___attribute__pure=0
34712fi
34713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34714
34715        #
34716        # If the attribute is supported by both compilers,
34717        # try to recompile a *cross-check*, IFF defined.
34718        #
34719        if test '(' "$hwloc_cv___attribute__pure" = "1" -a "" != "" ')' ; then
34720            ac_c_werror_flag_safe=$ac_c_werror_flag
34721            ac_c_werror_flag="yes"
34722            CFLAGS_safe=$CFLAGS
34723            CFLAGS="$CFLAGS "
34724
34725            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34726/* end confdefs.h.  */
34727
34728int
34729main ()
34730{
34731
34732                 int i=4711;
34733                 i=usage(&i);
34734
34735  ;
34736  return 0;
34737}
34738_ACEOF
34739if ac_fn_c_try_compile "$LINENO"; then :
34740  hwloc_cv___attribute__pure=0
34741else
34742
34743                 #
34744                 # In case we did NOT succeed: Fine, but was this due to the
34745                 # attribute being ignored? Grep for IgNoRe in conftest.err
34746                 # and if found, reset the hwloc_cv__attribute__var=0
34747                 #
34748                 hwloc_cv___attribute__pure=1
34749
34750    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34751
34752
34753    if test -s conftest.err ; then
34754        for i in ignore skip ; do
34755            $GREP -iq $i conftest.err
34756            if test "$?" = "0" ; then
34757                hwloc_cv___attribute__pure=0
34758                break;
34759            fi
34760        done
34761    fi
34762
34763
34764fi
34765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34766
34767            ac_c_werror_flag=$ac_c_werror_flag_safe
34768            CFLAGS=$CFLAGS_safe
34769        fi
34770
34771fi
34772
34773
34774    if test "$hwloc_cv___attribute__pure" = "1" ; then
34775        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34776$as_echo "yes" >&6; }
34777    else
34778        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34779$as_echo "no" >&6; }
34780    fi
34781
34782
34783    #
34784    # Attribute sentinel:
34785    # Ignored by the intel-9.1.045 -- recognized by cross-check
34786    #                intel-10.0beta works fine
34787    # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check
34788    # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
34789    #
34790    HWLOC_ATTRIBUTE_CFLAGS=
34791    case "$hwloc_c_vendor" in
34792        gnu)
34793            HWLOC_ATTRIBUTE_CFLAGS="-Wall"
34794            ;;
34795        intel)
34796            # we do not want to get ignored attributes warnings
34797            HWLOC_ATTRIBUTE_CFLAGS="-wd1292"
34798            ;;
34799    esac
34800
34801    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(sentinel)" >&5
34802$as_echo_n "checking for __attribute__(sentinel)... " >&6; }
34803    if ${hwloc_cv___attribute__sentinel+:} false; then :
34804  $as_echo_n "(cached) " >&6
34805else
34806
34807        #
34808        # Try to compile using the C compiler
34809        #
34810        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34811/* end confdefs.h.  */
34812
34813         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));
34814
34815int
34816main ()
34817{
34818
34819  ;
34820  return 0;
34821}
34822_ACEOF
34823if ac_fn_c_try_compile "$LINENO"; then :
34824
34825                        #
34826                        # In case we did succeed: Fine, but was this due to the
34827                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
34828                        # and if found, reset the hwloc_cv__attribute__var=0
34829                        #
34830                        hwloc_cv___attribute__sentinel=1
34831
34832    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34833
34834
34835    if test -s conftest.err ; then
34836        for i in ignore skip ; do
34837            $GREP -iq $i conftest.err
34838            if test "$?" = "0" ; then
34839                hwloc_cv___attribute__sentinel=0
34840                break;
34841            fi
34842        done
34843    fi
34844
34845
34846else
34847  hwloc_cv___attribute__sentinel=0
34848fi
34849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34850
34851        #
34852        # If the attribute is supported by both compilers,
34853        # try to recompile a *cross-check*, IFF defined.
34854        #
34855        if test '(' "$hwloc_cv___attribute__sentinel" = "1" -a "
34856         static int usage(int * argument);
34857         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));
34858
34859         static int usage(int * argument) {
34860             void * last_arg_should_be_null = argument;
34861             return my_execlp ("lala", "/home/there", last_arg_should_be_null);   /* This should produce a warning */
34862         }
34863         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
34864         int main(void);
34865        " != "" ')' ; then
34866            ac_c_werror_flag_safe=$ac_c_werror_flag
34867            ac_c_werror_flag="yes"
34868            CFLAGS_safe=$CFLAGS
34869            CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"
34870
34871            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34872/* end confdefs.h.  */
34873
34874         static int usage(int * argument);
34875         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));
34876
34877         static int usage(int * argument) {
34878             void * last_arg_should_be_null = argument;
34879             return my_execlp ("lala", "/home/there", last_arg_should_be_null);   /* This should produce a warning */
34880         }
34881         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
34882         int main(void);
34883
34884int
34885main ()
34886{
34887
34888                 int i=4711;
34889                 i=usage(&i);
34890
34891  ;
34892  return 0;
34893}
34894_ACEOF
34895if ac_fn_c_try_compile "$LINENO"; then :
34896  hwloc_cv___attribute__sentinel=0
34897else
34898
34899                 #
34900                 # In case we did NOT succeed: Fine, but was this due to the
34901                 # attribute being ignored? Grep for IgNoRe in conftest.err
34902                 # and if found, reset the hwloc_cv__attribute__var=0
34903                 #
34904                 hwloc_cv___attribute__sentinel=1
34905
34906    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34907
34908
34909    if test -s conftest.err ; then
34910        for i in ignore skip ; do
34911            $GREP -iq $i conftest.err
34912            if test "$?" = "0" ; then
34913                hwloc_cv___attribute__sentinel=0
34914                break;
34915            fi
34916        done
34917    fi
34918
34919
34920fi
34921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34922
34923            ac_c_werror_flag=$ac_c_werror_flag_safe
34924            CFLAGS=$CFLAGS_safe
34925        fi
34926
34927fi
34928
34929
34930    if test "$hwloc_cv___attribute__sentinel" = "1" ; then
34931        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34932$as_echo "yes" >&6; }
34933    else
34934        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34935$as_echo "no" >&6; }
34936    fi
34937
34938
34939
34940    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(unused)" >&5
34941$as_echo_n "checking for __attribute__(unused)... " >&6; }
34942    if ${hwloc_cv___attribute__unused+:} false; then :
34943  $as_echo_n "(cached) " >&6
34944else
34945
34946        #
34947        # Try to compile using the C compiler
34948        #
34949        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34950/* end confdefs.h.  */
34951
34952         int square(int arg1 __attribute__ ((__unused__)), int arg2);
34953         int square(int arg1, int arg2) { return arg2; }
34954
34955int
34956main ()
34957{
34958
34959  ;
34960  return 0;
34961}
34962_ACEOF
34963if ac_fn_c_try_compile "$LINENO"; then :
34964
34965                        #
34966                        # In case we did succeed: Fine, but was this due to the
34967                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
34968                        # and if found, reset the hwloc_cv__attribute__var=0
34969                        #
34970                        hwloc_cv___attribute__unused=1
34971
34972    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
34973
34974
34975    if test -s conftest.err ; then
34976        for i in ignore skip ; do
34977            $GREP -iq $i conftest.err
34978            if test "$?" = "0" ; then
34979                hwloc_cv___attribute__unused=0
34980                break;
34981            fi
34982        done
34983    fi
34984
34985
34986else
34987  hwloc_cv___attribute__unused=0
34988fi
34989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34990
34991        #
34992        # If the attribute is supported by both compilers,
34993        # try to recompile a *cross-check*, IFF defined.
34994        #
34995        if test '(' "$hwloc_cv___attribute__unused" = "1" -a "" != "" ')' ; then
34996            ac_c_werror_flag_safe=$ac_c_werror_flag
34997            ac_c_werror_flag="yes"
34998            CFLAGS_safe=$CFLAGS
34999            CFLAGS="$CFLAGS "
35000
35001            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35002/* end confdefs.h.  */
35003
35004int
35005main ()
35006{
35007
35008                 int i=4711;
35009                 i=usage(&i);
35010
35011  ;
35012  return 0;
35013}
35014_ACEOF
35015if ac_fn_c_try_compile "$LINENO"; then :
35016  hwloc_cv___attribute__unused=0
35017else
35018
35019                 #
35020                 # In case we did NOT succeed: Fine, but was this due to the
35021                 # attribute being ignored? Grep for IgNoRe in conftest.err
35022                 # and if found, reset the hwloc_cv__attribute__var=0
35023                 #
35024                 hwloc_cv___attribute__unused=1
35025
35026    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
35027
35028
35029    if test -s conftest.err ; then
35030        for i in ignore skip ; do
35031            $GREP -iq $i conftest.err
35032            if test "$?" = "0" ; then
35033                hwloc_cv___attribute__unused=0
35034                break;
35035            fi
35036        done
35037    fi
35038
35039
35040fi
35041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35042
35043            ac_c_werror_flag=$ac_c_werror_flag_safe
35044            CFLAGS=$CFLAGS_safe
35045        fi
35046
35047fi
35048
35049
35050    if test "$hwloc_cv___attribute__unused" = "1" ; then
35051        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35052$as_echo "yes" >&6; }
35053    else
35054        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35055$as_echo "no" >&6; }
35056    fi
35057
35058
35059
35060    #
35061    # Attribute warn_unused_result:
35062    # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check
35063    # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
35064    #
35065    HWLOC_ATTRIBUTE_CFLAGS=
35066    case "$hwloc_c_vendor" in
35067        gnu)
35068            HWLOC_ATTRIBUTE_CFLAGS="-Wall"
35069            ;;
35070        intel)
35071            # we do not want to get ignored attributes warnings
35072            HWLOC_ATTRIBUTE_CFLAGS="-wd1292"
35073            ;;
35074    esac
35075
35076    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(warn_unused_result)" >&5
35077$as_echo_n "checking for __attribute__(warn_unused_result)... " >&6; }
35078    if ${hwloc_cv___attribute__warn_unused_result+:} false; then :
35079  $as_echo_n "(cached) " >&6
35080else
35081
35082        #
35083        # Try to compile using the C compiler
35084        #
35085        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35086/* end confdefs.h.  */
35087
35088         int foo(int arg) __attribute__ ((__warn_unused_result__));
35089         int foo(int arg) { return arg + 3; }
35090
35091int
35092main ()
35093{
35094
35095  ;
35096  return 0;
35097}
35098_ACEOF
35099if ac_fn_c_try_compile "$LINENO"; then :
35100
35101                        #
35102                        # In case we did succeed: Fine, but was this due to the
35103                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
35104                        # and if found, reset the hwloc_cv__attribute__var=0
35105                        #
35106                        hwloc_cv___attribute__warn_unused_result=1
35107
35108    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
35109
35110
35111    if test -s conftest.err ; then
35112        for i in ignore skip ; do
35113            $GREP -iq $i conftest.err
35114            if test "$?" = "0" ; then
35115                hwloc_cv___attribute__warn_unused_result=0
35116                break;
35117            fi
35118        done
35119    fi
35120
35121
35122else
35123  hwloc_cv___attribute__warn_unused_result=0
35124fi
35125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35126
35127        #
35128        # If the attribute is supported by both compilers,
35129        # try to recompile a *cross-check*, IFF defined.
35130        #
35131        if test '(' "$hwloc_cv___attribute__warn_unused_result" = "1" -a "
35132         static int usage(int * argument);
35133         int foo(int arg) __attribute__ ((__warn_unused_result__));
35134
35135         int foo(int arg) { return arg + 3; }
35136         static int usage(int * argument) {
35137           foo (*argument);        /* Should produce an unused result warning */
35138           return 0;
35139         }
35140
35141         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
35142         int main(void);
35143        " != "" ')' ; then
35144            ac_c_werror_flag_safe=$ac_c_werror_flag
35145            ac_c_werror_flag="yes"
35146            CFLAGS_safe=$CFLAGS
35147            CFLAGS="$CFLAGS $HWLOC_ATTRIBUTE_CFLAGS"
35148
35149            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35150/* end confdefs.h.  */
35151
35152         static int usage(int * argument);
35153         int foo(int arg) __attribute__ ((__warn_unused_result__));
35154
35155         int foo(int arg) { return arg + 3; }
35156         static int usage(int * argument) {
35157           foo (*argument);        /* Should produce an unused result warning */
35158           return 0;
35159         }
35160
35161         /* The autoconf-generated main-function is int main(), which produces a warning by itself */
35162         int main(void);
35163
35164int
35165main ()
35166{
35167
35168                 int i=4711;
35169                 i=usage(&i);
35170
35171  ;
35172  return 0;
35173}
35174_ACEOF
35175if ac_fn_c_try_compile "$LINENO"; then :
35176  hwloc_cv___attribute__warn_unused_result=0
35177else
35178
35179                 #
35180                 # In case we did NOT succeed: Fine, but was this due to the
35181                 # attribute being ignored? Grep for IgNoRe in conftest.err
35182                 # and if found, reset the hwloc_cv__attribute__var=0
35183                 #
35184                 hwloc_cv___attribute__warn_unused_result=1
35185
35186    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
35187
35188
35189    if test -s conftest.err ; then
35190        for i in ignore skip ; do
35191            $GREP -iq $i conftest.err
35192            if test "$?" = "0" ; then
35193                hwloc_cv___attribute__warn_unused_result=0
35194                break;
35195            fi
35196        done
35197    fi
35198
35199
35200fi
35201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35202
35203            ac_c_werror_flag=$ac_c_werror_flag_safe
35204            CFLAGS=$CFLAGS_safe
35205        fi
35206
35207fi
35208
35209
35210    if test "$hwloc_cv___attribute__warn_unused_result" = "1" ; then
35211        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35212$as_echo "yes" >&6; }
35213    else
35214        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35215$as_echo "no" >&6; }
35216    fi
35217
35218
35219
35220
35221    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(weak_alias)" >&5
35222$as_echo_n "checking for __attribute__(weak_alias)... " >&6; }
35223    if ${hwloc_cv___attribute__weak_alias+:} false; then :
35224  $as_echo_n "(cached) " >&6
35225else
35226
35227        #
35228        # Try to compile using the C compiler
35229        #
35230        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35231/* end confdefs.h.  */
35232
35233         int foo(int arg);
35234         int foo(int arg) { return arg + 3; }
35235         int foo2(int arg) __attribute__ ((__weak__, __alias__("foo")));
35236
35237int
35238main ()
35239{
35240
35241  ;
35242  return 0;
35243}
35244_ACEOF
35245if ac_fn_c_try_compile "$LINENO"; then :
35246
35247                        #
35248                        # In case we did succeed: Fine, but was this due to the
35249                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
35250                        # and if found, reset the hwloc_cv__attribute__var=0
35251                        #
35252                        hwloc_cv___attribute__weak_alias=1
35253
35254    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
35255
35256
35257    if test -s conftest.err ; then
35258        for i in ignore skip ; do
35259            $GREP -iq $i conftest.err
35260            if test "$?" = "0" ; then
35261                hwloc_cv___attribute__weak_alias=0
35262                break;
35263            fi
35264        done
35265    fi
35266
35267
35268else
35269  hwloc_cv___attribute__weak_alias=0
35270fi
35271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35272
35273        #
35274        # If the attribute is supported by both compilers,
35275        # try to recompile a *cross-check*, IFF defined.
35276        #
35277        if test '(' "$hwloc_cv___attribute__weak_alias" = "1" -a "" != "" ')' ; then
35278            ac_c_werror_flag_safe=$ac_c_werror_flag
35279            ac_c_werror_flag="yes"
35280            CFLAGS_safe=$CFLAGS
35281            CFLAGS="$CFLAGS "
35282
35283            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35284/* end confdefs.h.  */
35285
35286int
35287main ()
35288{
35289
35290                 int i=4711;
35291                 i=usage(&i);
35292
35293  ;
35294  return 0;
35295}
35296_ACEOF
35297if ac_fn_c_try_compile "$LINENO"; then :
35298  hwloc_cv___attribute__weak_alias=0
35299else
35300
35301                 #
35302                 # In case we did NOT succeed: Fine, but was this due to the
35303                 # attribute being ignored? Grep for IgNoRe in conftest.err
35304                 # and if found, reset the hwloc_cv__attribute__var=0
35305                 #
35306                 hwloc_cv___attribute__weak_alias=1
35307
35308    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
35309
35310
35311    if test -s conftest.err ; then
35312        for i in ignore skip ; do
35313            $GREP -iq $i conftest.err
35314            if test "$?" = "0" ; then
35315                hwloc_cv___attribute__weak_alias=0
35316                break;
35317            fi
35318        done
35319    fi
35320
35321
35322fi
35323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35324
35325            ac_c_werror_flag=$ac_c_werror_flag_safe
35326            CFLAGS=$CFLAGS_safe
35327        fi
35328
35329fi
35330
35331
35332    if test "$hwloc_cv___attribute__weak_alias" = "1" ; then
35333        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35334$as_echo "yes" >&6; }
35335    else
35336        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35337$as_echo "no" >&6; }
35338    fi
35339
35340
35341  fi
35342
35343  # Now that all the values are set, define them
35344
35345
35346cat >>confdefs.h <<_ACEOF
35347#define HWLOC_HAVE_ATTRIBUTE_ALIGNED $hwloc_cv___attribute__aligned
35348_ACEOF
35349
35350
35351cat >>confdefs.h <<_ACEOF
35352#define HWLOC_HAVE_ATTRIBUTE_ALWAYS_INLINE $hwloc_cv___attribute__always_inline
35353_ACEOF
35354
35355
35356cat >>confdefs.h <<_ACEOF
35357#define HWLOC_HAVE_ATTRIBUTE_COLD $hwloc_cv___attribute__cold
35358_ACEOF
35359
35360
35361cat >>confdefs.h <<_ACEOF
35362#define HWLOC_HAVE_ATTRIBUTE_CONST $hwloc_cv___attribute__const
35363_ACEOF
35364
35365
35366cat >>confdefs.h <<_ACEOF
35367#define HWLOC_HAVE_ATTRIBUTE_DEPRECATED $hwloc_cv___attribute__deprecated
35368_ACEOF
35369
35370
35371cat >>confdefs.h <<_ACEOF
35372#define HWLOC_HAVE_ATTRIBUTE_FORMAT $hwloc_cv___attribute__format
35373_ACEOF
35374
35375
35376cat >>confdefs.h <<_ACEOF
35377#define HWLOC_HAVE_ATTRIBUTE_HOT $hwloc_cv___attribute__hot
35378_ACEOF
35379
35380
35381cat >>confdefs.h <<_ACEOF
35382#define HWLOC_HAVE_ATTRIBUTE_MALLOC $hwloc_cv___attribute__malloc
35383_ACEOF
35384
35385
35386cat >>confdefs.h <<_ACEOF
35387#define HWLOC_HAVE_ATTRIBUTE_MAY_ALIAS $hwloc_cv___attribute__may_alias
35388_ACEOF
35389
35390
35391cat >>confdefs.h <<_ACEOF
35392#define HWLOC_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION $hwloc_cv___attribute__no_instrument_function
35393_ACEOF
35394
35395
35396cat >>confdefs.h <<_ACEOF
35397#define HWLOC_HAVE_ATTRIBUTE_NONNULL $hwloc_cv___attribute__nonnull
35398_ACEOF
35399
35400
35401cat >>confdefs.h <<_ACEOF
35402#define HWLOC_HAVE_ATTRIBUTE_NORETURN $hwloc_cv___attribute__noreturn
35403_ACEOF
35404
35405
35406cat >>confdefs.h <<_ACEOF
35407#define HWLOC_HAVE_ATTRIBUTE_PACKED $hwloc_cv___attribute__packed
35408_ACEOF
35409
35410
35411cat >>confdefs.h <<_ACEOF
35412#define HWLOC_HAVE_ATTRIBUTE_PURE $hwloc_cv___attribute__pure
35413_ACEOF
35414
35415
35416cat >>confdefs.h <<_ACEOF
35417#define HWLOC_HAVE_ATTRIBUTE_SENTINEL $hwloc_cv___attribute__sentinel
35418_ACEOF
35419
35420
35421cat >>confdefs.h <<_ACEOF
35422#define HWLOC_HAVE_ATTRIBUTE_UNUSED $hwloc_cv___attribute__unused
35423_ACEOF
35424
35425
35426cat >>confdefs.h <<_ACEOF
35427#define HWLOC_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT $hwloc_cv___attribute__warn_unused_result
35428_ACEOF
35429
35430
35431cat >>confdefs.h <<_ACEOF
35432#define HWLOC_HAVE_ATTRIBUTE_WEAK_ALIAS $hwloc_cv___attribute__weak_alias
35433_ACEOF
35434
35435
35436
35437    # Be safe for systems that have ancient Autoconf's (e.g., RHEL5)
35438
35439
35440    # Check if the compiler has support for visibility, like some
35441    # versions of gcc, icc, Sun Studio cc.
35442    # Check whether --enable-visibility was given.
35443if test "${enable_visibility+set}" = set; then :
35444  enableval=$enable_visibility;
35445fi
35446
35447
35448    case ${target} in
35449        *-*-aix*|*-*-mingw*|*-*-cygwin*|*-*-hpux*)
35450            enable_visibility=no
35451            ;;
35452    esac
35453
35454    hwloc_visibility_define=0
35455    hwloc_msg="whether to enable symbol visibility"
35456    if test "$enable_visibility" = "no"; then
35457        { $as_echo "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5
35458$as_echo_n "checking $hwloc_msg... " >&6; }
35459        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5
35460$as_echo "no (disabled)" >&6; }
35461    else
35462        CFLAGS_orig=$CFLAGS
35463
35464        hwloc_add=
35465        case "$hwloc_c_vendor" in
35466        sun)
35467            # Check using Sun Studio -xldscope=hidden flag
35468            hwloc_add=-xldscope=hidden
35469            CFLAGS="$CFLAGS_orig $hwloc_add -errwarn=%all"
35470            ;;
35471
35472        *)
35473            # Check using -fvisibility=hidden
35474            hwloc_add=-fvisibility=hidden
35475            CFLAGS="$CFLAGS_orig $hwloc_add -Werror"
35476            ;;
35477        esac
35478
35479        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $hwloc_add" >&5
35480$as_echo_n "checking if $CC supports $hwloc_add... " >&6; }
35481        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35482/* end confdefs.h.  */
35483
35484            #include <stdio.h>
35485            __attribute__((visibility("default"))) int foo;
35486
35487int
35488main ()
35489{
35490fprintf(stderr, "Hello, world\n");
35491  ;
35492  return 0;
35493}
35494_ACEOF
35495if ac_fn_c_try_link "$LINENO"; then :
35496  if test -s conftest.err; then :
35497  $GREP -iq visibility conftest.err
35498                    # If we find "visibility" in the stderr, then
35499                    # assume it doesn't work
35500                    if test "$?" = "0"; then :
35501  hwloc_add=
35502fi
35503fi
35504
35505else
35506  hwloc_add=
35507fi
35508rm -f core conftest.err conftest.$ac_objext \
35509    conftest$ac_exeext conftest.$ac_ext
35510        if test "$hwloc_add" = ""; then :
35511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35512$as_echo "no" >&6; }
35513else
35514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35515$as_echo "yes" >&6; }
35516fi
35517
35518        CFLAGS=$CFLAGS_orig
35519        HWLOC_VISIBILITY_CFLAGS=$hwloc_add
35520
35521        if test "$hwloc_add" != "" ; then
35522            hwloc_visibility_define=1
35523            { $as_echo "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5
35524$as_echo_n "checking $hwloc_msg... " >&6; }
35525            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (via $hwloc_add)" >&5
35526$as_echo "yes (via $hwloc_add)" >&6; }
35527        elif test "$enable_visibility" = "yes"; then
35528            as_fn_error $? "Symbol visibility support requested but compiler does not seem to support it.  Aborting" "$LINENO" 5
35529        else
35530            { $as_echo "$as_me:${as_lineno-$LINENO}: checking $hwloc_msg" >&5
35531$as_echo_n "checking $hwloc_msg... " >&6; }
35532            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (unsupported)" >&5
35533$as_echo "no (unsupported)" >&6; }
35534        fi
35535        unset hwloc_add
35536    fi
35537
35538
35539cat >>confdefs.h <<_ACEOF
35540#define HWLOC_C_HAVE_VISIBILITY $hwloc_visibility_define
35541_ACEOF
35542
35543
35544    HWLOC_CFLAGS="$HWLOC_FLAGS $HWLOC_VISIBILITY_CFLAGS"
35545    if test "$HWLOC_VISIBILITY_CFLAGS" != ""; then :
35546  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&5
35547$as_echo "$as_me: WARNING: \"$HWLOC_VISIBILITY_CFLAGS\" has been added to the hwloc CFLAGS" >&2;}
35548fi
35549
35550    # Make sure the compiler returns an error code when function arg
35551    # count is wrong, otherwise sched_setaffinity checks may fail.
35552    HWLOC_STRICT_ARGS_CFLAGS=
35553    hwloc_args_check=0
35554    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler rejects function calls with too many arguments" >&5
35555$as_echo_n "checking whether the C compiler rejects function calls with too many arguments... " >&6; }
35556    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35557/* end confdefs.h.  */
35558
35559        extern int one_arg(int x);
35560        int foo(void) { return one_arg(1, 2); }
35561
35562int
35563main ()
35564{
35565
35566  ;
35567  return 0;
35568}
35569_ACEOF
35570if ac_fn_c_try_compile "$LINENO"; then :
35571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35572$as_echo "no" >&6; }
35573else
35574  hwloc_args_check=1
35575       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35576$as_echo "yes" >&6; }
35577fi
35578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35579    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler rejects function calls with too few arguments" >&5
35580$as_echo_n "checking whether the C compiler rejects function calls with too few arguments... " >&6; }
35581    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35582/* end confdefs.h.  */
35583
35584        extern int two_arg(int x, int y);
35585        int foo(void) { return two_arg(3); }
35586
35587int
35588main ()
35589{
35590
35591  ;
35592  return 0;
35593}
35594_ACEOF
35595if ac_fn_c_try_compile "$LINENO"; then :
35596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35597$as_echo "no" >&6; }
35598else
35599  hwloc_args_check=`expr $hwloc_args_check + 1`
35600       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35601$as_echo "yes" >&6; }
35602fi
35603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35604    if test "$hwloc_args_check" != "2"; then :
35605
35606         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your C compiler does not consider incorrect argument counts to be a fatal error." >&5
35607$as_echo "$as_me: WARNING: Your C compiler does not consider incorrect argument counts to be a fatal error." >&2;}
35608        case "$hwloc_c_vendor" in
35609        ibm)
35610            HWLOC_STRICT_ARGS_CFLAGS="-qhalt=e"
35611            ;;
35612        intel)
35613            HWLOC_STRICT_ARGS_CFLAGS="-we140"
35614            ;;
35615        *)
35616            HWLOC_STRICT_ARGS_CFLAGS=FAIL
35617            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please report this warning and configure using a different C compiler if possible." >&5
35618$as_echo "$as_me: WARNING: Please report this warning and configure using a different C compiler if possible." >&2;}
35619            ;;
35620        esac
35621        if test "$HWLOC_STRICT_ARGS_CFLAGS" != "FAIL"; then :
35622
35623            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configure will append '$HWLOC_STRICT_ARGS_CFLAGS' to the value of CFLAGS when needed." >&5
35624$as_echo "$as_me: WARNING: Configure will append '$HWLOC_STRICT_ARGS_CFLAGS' to the value of CFLAGS when needed." >&2;}
35625             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Alternatively you may configure with a different compiler." >&5
35626$as_echo "$as_me: WARNING: Alternatively you may configure with a different compiler." >&2;}
35627
35628fi
35629
35630fi
35631
35632    if test "$hwloc_mode" = "standalone"; then :
35633
35634        # For the common developer case, if we're in a developer checkout and
35635        # using the GNU compilers, turn on maximum warnings unless
35636        # specifically disabled by the user.
35637        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable \"picky\" compiler mode" >&5
35638$as_echo_n "checking whether to enable \"picky\" compiler mode... " >&6; }
35639        hwloc_want_picky=0
35640        if test "$hwloc_c_vendor" = "gnu"; then :
35641  if test -e "$srcdir/.git"; then :
35642  hwloc_want_picky=1
35643fi
35644fi
35645        if test "$enable_picky" = "yes"; then
35646            if test "$hwloc_c_vendor" = "gnu"; then
35647                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35648$as_echo "yes" >&6; }
35649                hwloc_want_picky=1
35650            else
35651                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35652$as_echo "no" >&6; }
35653                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: --enable-picky used, but is currently only defined for the GCC compiler set -- automatically disabled" >&5
35654$as_echo "$as_me: WARNING: Warning: --enable-picky used, but is currently only defined for the GCC compiler set -- automatically disabled" >&2;}
35655                hwloc_want_picky=0
35656            fi
35657        elif test "$enable_picky" = "no"; then
35658            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35659$as_echo "no" >&6; }
35660            hwloc_want_picky=0
35661        else
35662            if test "$hwloc_want_picky" = 1; then
35663                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5
35664$as_echo "yes (default)" >&6; }
35665            else
35666                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (default)" >&5
35667$as_echo "no (default)" >&6; }
35668            fi
35669        fi
35670        if test "$hwloc_want_picky" = 1; then
35671            add="-Wall -Wextra -Wunused-parameter -Wundef -Wno-long-long -Wsign-compare"
35672            add="$add -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes"
35673            add="$add -Wcomment -pedantic -Wshadow -Wwrite-strings -Wnested-externs"
35674            add="$add -Wpointer-arith -Wbad-function-cast -Wold-style-definition"
35675            add="$add -Werror-implicit-function-declaration"
35676
35677
35678    tmp_save_CFLAGS="$CFLAGS"
35679    CFLAGS="-Wdiscarded-qualifiers -Werror"
35680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wdiscarded-qualifiers" >&5
35681$as_echo_n "checking if gcc supports -Wdiscarded-qualifiers... " >&6; }
35682    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35683/* end confdefs.h.  */
35684int i;
35685int
35686main ()
35687{
35688
35689  ;
35690  return 0;
35691}
35692_ACEOF
35693if ac_fn_c_try_compile "$LINENO"; then :
35694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35695$as_echo "yes" >&6; }
35696		       add="$add -Wdiscarded-qualifiers"
35697
35698else
35699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35700$as_echo "no" >&6; }
35701fi
35702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35703    CFLAGS="$tmp_save_CFLAGS"
35704
35705
35706    tmp_save_CFLAGS="$CFLAGS"
35707    CFLAGS="-Wvariadic-macros -Werror"
35708    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wvariadic-macros" >&5
35709$as_echo_n "checking if gcc supports -Wvariadic-macros... " >&6; }
35710    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35711/* end confdefs.h.  */
35712int i;
35713int
35714main ()
35715{
35716
35717  ;
35718  return 0;
35719}
35720_ACEOF
35721if ac_fn_c_try_compile "$LINENO"; then :
35722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35723$as_echo "yes" >&6; }
35724		       add="$add -Wvariadic-macros"
35725
35726else
35727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35728$as_echo "no" >&6; }
35729fi
35730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35731    CFLAGS="$tmp_save_CFLAGS"
35732
35733
35734    tmp_save_CFLAGS="$CFLAGS"
35735    CFLAGS="-Wtype-limits -Werror"
35736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wtype-limits" >&5
35737$as_echo_n "checking if gcc supports -Wtype-limits... " >&6; }
35738    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35739/* end confdefs.h.  */
35740int i;
35741int
35742main ()
35743{
35744
35745  ;
35746  return 0;
35747}
35748_ACEOF
35749if ac_fn_c_try_compile "$LINENO"; then :
35750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35751$as_echo "yes" >&6; }
35752		       add="$add -Wtype-limits"
35753
35754else
35755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35756$as_echo "no" >&6; }
35757fi
35758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35759    CFLAGS="$tmp_save_CFLAGS"
35760
35761
35762    tmp_save_CFLAGS="$CFLAGS"
35763    CFLAGS="-Wstack-usage=262144 -Werror"
35764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wstack-usage=262144" >&5
35765$as_echo_n "checking if gcc supports -Wstack-usage=262144... " >&6; }
35766    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35767/* end confdefs.h.  */
35768int i;
35769int
35770main ()
35771{
35772
35773  ;
35774  return 0;
35775}
35776_ACEOF
35777if ac_fn_c_try_compile "$LINENO"; then :
35778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35779$as_echo "yes" >&6; }
35780		       add="$add -Wstack-usage=262144"
35781
35782else
35783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35784$as_echo "no" >&6; }
35785fi
35786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35787    CFLAGS="$tmp_save_CFLAGS"
35788
35789
35790	    # -Wextra enables some -Wfoo that we want to disable it at some place
35791
35792    tmp_save_CFLAGS="$CFLAGS"
35793    CFLAGS="-Wmissing-field-initializers -Werror"
35794    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wmissing-field-initializers" >&5
35795$as_echo_n "checking if gcc supports -Wmissing-field-initializers... " >&6; }
35796    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35797/* end confdefs.h.  */
35798int i;
35799int
35800main ()
35801{
35802
35803  ;
35804  return 0;
35805}
35806_ACEOF
35807if ac_fn_c_try_compile "$LINENO"; then :
35808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35809$as_echo "yes" >&6; }
35810		       add="$add -Wmissing-field-initializers"
35811
35812$as_echo "#define HWLOC_HAVE_GCC_W_MISSING_FIELD_INITIALIZERS 1" >>confdefs.h
35813
35814else
35815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35816$as_echo "no" >&6; }
35817fi
35818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35819    CFLAGS="$tmp_save_CFLAGS"
35820
35821
35822    tmp_save_CFLAGS="$CFLAGS"
35823    CFLAGS="-Wcast-function-type -Werror"
35824    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wcast-function-type" >&5
35825$as_echo_n "checking if gcc supports -Wcast-function-type... " >&6; }
35826    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35827/* end confdefs.h.  */
35828int i;
35829int
35830main ()
35831{
35832
35833  ;
35834  return 0;
35835}
35836_ACEOF
35837if ac_fn_c_try_compile "$LINENO"; then :
35838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35839$as_echo "yes" >&6; }
35840		       add="$add -Wcast-function-type"
35841
35842$as_echo "#define HWLOC_HAVE_GCC_W_CAST_FUNCTION_TYPE 1" >>confdefs.h
35843
35844else
35845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35846$as_echo "no" >&6; }
35847fi
35848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35849    CFLAGS="$tmp_save_CFLAGS"
35850
35851
35852            HWLOC_CFLAGS="$HWLOC_CFLAGS $add"
35853        fi
35854
35855fi
35856
35857    #
35858    # Now detect support
35859    #
35860
35861    for ac_header in unistd.h
35862do :
35863  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
35864if test "x$ac_cv_header_unistd_h" = xyes; then :
35865  cat >>confdefs.h <<_ACEOF
35866#define HAVE_UNISTD_H 1
35867_ACEOF
35868
35869fi
35870
35871done
35872
35873    for ac_header in dirent.h
35874do :
35875  ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
35876if test "x$ac_cv_header_dirent_h" = xyes; then :
35877  cat >>confdefs.h <<_ACEOF
35878#define HAVE_DIRENT_H 1
35879_ACEOF
35880
35881fi
35882
35883done
35884
35885    for ac_header in strings.h
35886do :
35887  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
35888if test "x$ac_cv_header_strings_h" = xyes; then :
35889  cat >>confdefs.h <<_ACEOF
35890#define HAVE_STRINGS_H 1
35891_ACEOF
35892
35893fi
35894
35895done
35896
35897    for ac_header in ctype.h
35898do :
35899  ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
35900if test "x$ac_cv_header_ctype_h" = xyes; then :
35901  cat >>confdefs.h <<_ACEOF
35902#define HAVE_CTYPE_H 1
35903_ACEOF
35904
35905fi
35906
35907done
35908
35909
35910    for ac_func in strcasecmp
35911do :
35912  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
35913if test "x$ac_cv_func_strcasecmp" = xyes; then :
35914  cat >>confdefs.h <<_ACEOF
35915#define HAVE_STRCASECMP 1
35916_ACEOF
35917
35918
35919  ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default"
35920if test "x$ac_cv_have_decl_strcasecmp" = xyes; then :
35921
35922    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function strcasecmp has a complete prototype" >&5
35923$as_echo_n "checking whether function strcasecmp has a complete prototype... " >&6; }
35924
35925    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35926/* end confdefs.h.  */
35927$ac_includes_default
35928int
35929main ()
35930{
35931strcasecmp(1,2,3,4,5,6,7,8,9,10);
35932
35933  ;
35934  return 0;
35935}
35936_ACEOF
35937if ac_fn_c_try_compile "$LINENO"; then :
35938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35939$as_echo "no" >&6; }
35940
35941else
35942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35943$as_echo "yes" >&6; }
35944
35945
35946$as_echo "#define HWLOC_HAVE_DECL_STRCASECMP 1" >>confdefs.h
35947
35948
35949
35950fi
35951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35952fi
35953
35954
35955
35956fi
35957done
35958
35959    for ac_func in strncasecmp
35960do :
35961  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
35962if test "x$ac_cv_func_strncasecmp" = xyes; then :
35963  cat >>confdefs.h <<_ACEOF
35964#define HAVE_STRNCASECMP 1
35965_ACEOF
35966
35967
35968  ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
35969if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
35970
35971    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function strncasecmp has a complete prototype" >&5
35972$as_echo_n "checking whether function strncasecmp has a complete prototype... " >&6; }
35973
35974    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35975/* end confdefs.h.  */
35976$ac_includes_default
35977int
35978main ()
35979{
35980strncasecmp(1,2,3,4,5,6,7,8,9,10);
35981
35982  ;
35983  return 0;
35984}
35985_ACEOF
35986if ac_fn_c_try_compile "$LINENO"; then :
35987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35988$as_echo "no" >&6; }
35989
35990else
35991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35992$as_echo "yes" >&6; }
35993
35994
35995$as_echo "#define HWLOC_HAVE_DECL_STRNCASECMP 1" >>confdefs.h
35996
35997
35998
35999fi
36000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36001fi
36002
36003
36004
36005fi
36006done
36007
36008
36009    for ac_func in strftime
36010do :
36011  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
36012if test "x$ac_cv_func_strftime" = xyes; then :
36013  cat >>confdefs.h <<_ACEOF
36014#define HAVE_STRFTIME 1
36015_ACEOF
36016
36017fi
36018done
36019
36020    for ac_func in setlocale
36021do :
36022  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
36023if test "x$ac_cv_func_setlocale" = xyes; then :
36024  cat >>confdefs.h <<_ACEOF
36025#define HAVE_SETLOCALE 1
36026_ACEOF
36027
36028fi
36029done
36030
36031
36032    ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
36033if test "x$ac_cv_header_stdint_h" = xyes; then :
36034
36035
36036$as_echo "#define HWLOC_HAVE_STDINT_H 1" >>confdefs.h
36037
36038
36039fi
36040
36041
36042    for ac_header in sys/mman.h
36043do :
36044  ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
36045if test "x$ac_cv_header_sys_mman_h" = xyes; then :
36046  cat >>confdefs.h <<_ACEOF
36047#define HAVE_SYS_MMAN_H 1
36048_ACEOF
36049
36050fi
36051
36052done
36053
36054
36055    if test x$hwloc_freebsd = xyes; then
36056      echo
36057      echo "**** FreeBSD-specific checks"
36058
36059      for ac_header in sys/domainset.h
36060do :
36061  ac_fn_c_check_header_mongrel "$LINENO" "sys/domainset.h" "ac_cv_header_sys_domainset_h" "$ac_includes_default"
36062if test "x$ac_cv_header_sys_domainset_h" = xyes; then :
36063  cat >>confdefs.h <<_ACEOF
36064#define HAVE_SYS_DOMAINSET_H 1
36065_ACEOF
36066
36067fi
36068
36069done
36070
36071      for ac_header in sys/thr.h
36072do :
36073  ac_fn_c_check_header_mongrel "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "$ac_includes_default"
36074if test "x$ac_cv_header_sys_thr_h" = xyes; then :
36075  cat >>confdefs.h <<_ACEOF
36076#define HAVE_SYS_THR_H 1
36077_ACEOF
36078
36079fi
36080
36081done
36082
36083      for ac_header in pthread_np.h
36084do :
36085  ac_fn_c_check_header_mongrel "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default"
36086if test "x$ac_cv_header_pthread_np_h" = xyes; then :
36087  cat >>confdefs.h <<_ACEOF
36088#define HAVE_PTHREAD_NP_H 1
36089_ACEOF
36090
36091fi
36092
36093done
36094
36095      for ac_header in sys/cpuset.h
36096do :
36097  ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "#include <sys/param.h>
36098"
36099if test "x$ac_cv_header_sys_cpuset_h" = xyes; then :
36100  cat >>confdefs.h <<_ACEOF
36101#define HAVE_SYS_CPUSET_H 1
36102_ACEOF
36103
36104fi
36105
36106done
36107
36108      for ac_func in cpuset_setaffinity
36109do :
36110  ac_fn_c_check_func "$LINENO" "cpuset_setaffinity" "ac_cv_func_cpuset_setaffinity"
36111if test "x$ac_cv_func_cpuset_setaffinity" = xyes; then :
36112  cat >>confdefs.h <<_ACEOF
36113#define HAVE_CPUSET_SETAFFINITY 1
36114_ACEOF
36115
36116fi
36117done
36118
36119      for ac_func in cpuset_setid
36120do :
36121  ac_fn_c_check_func "$LINENO" "cpuset_setid" "ac_cv_func_cpuset_setid"
36122if test "x$ac_cv_func_cpuset_setid" = xyes; then :
36123  cat >>confdefs.h <<_ACEOF
36124#define HAVE_CPUSET_SETID 1
36125_ACEOF
36126
36127fi
36128done
36129
36130
36131      echo "**** end of FreeBSD-specific checks"
36132      echo
36133    fi
36134
36135    if test x$hwloc_windows = xyes; then
36136      echo
36137      echo "**** Windows-specific checks"
36138
36139      ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
36140if test "x$ac_cv_header_windows_h" = xyes; then :
36141
36142
36143$as_echo "#define HWLOC_HAVE_WINDOWS_H 1" >>confdefs.h
36144
36145
36146fi
36147
36148
36149
36150      old_CPPFLAGS="$CPPFLAGS"
36151      CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0601"
36152      ac_fn_c_check_type "$LINENO" "KAFFINITY" "ac_cv_type_KAFFINITY" "#include <windows.h>
36153"
36154if test "x$ac_cv_type_KAFFINITY" = xyes; then :
36155
36156cat >>confdefs.h <<_ACEOF
36157#define HAVE_KAFFINITY 1
36158_ACEOF
36159
36160
36161fi
36162ac_fn_c_check_type "$LINENO" "PROCESSOR_CACHE_TYPE" "ac_cv_type_PROCESSOR_CACHE_TYPE" "#include <windows.h>
36163"
36164if test "x$ac_cv_type_PROCESSOR_CACHE_TYPE" = xyes; then :
36165
36166cat >>confdefs.h <<_ACEOF
36167#define HAVE_PROCESSOR_CACHE_TYPE 1
36168_ACEOF
36169
36170
36171fi
36172ac_fn_c_check_type "$LINENO" "CACHE_DESCRIPTOR" "ac_cv_type_CACHE_DESCRIPTOR" "#include <windows.h>
36173"
36174if test "x$ac_cv_type_CACHE_DESCRIPTOR" = xyes; then :
36175
36176cat >>confdefs.h <<_ACEOF
36177#define HAVE_CACHE_DESCRIPTOR 1
36178_ACEOF
36179
36180
36181fi
36182ac_fn_c_check_type "$LINENO" "LOGICAL_PROCESSOR_RELATIONSHIP" "ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" "#include <windows.h>
36183"
36184if test "x$ac_cv_type_LOGICAL_PROCESSOR_RELATIONSHIP" = xyes; then :
36185
36186cat >>confdefs.h <<_ACEOF
36187#define HAVE_LOGICAL_PROCESSOR_RELATIONSHIP 1
36188_ACEOF
36189
36190
36191fi
36192ac_fn_c_check_type "$LINENO" "RelationProcessorPackage" "ac_cv_type_RelationProcessorPackage" "#include <windows.h>
36193"
36194if test "x$ac_cv_type_RelationProcessorPackage" = xyes; then :
36195
36196cat >>confdefs.h <<_ACEOF
36197#define HAVE_RELATIONPROCESSORPACKAGE 1
36198_ACEOF
36199
36200
36201fi
36202ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" "#include <windows.h>
36203"
36204if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION" = xyes; then :
36205
36206cat >>confdefs.h <<_ACEOF
36207#define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION 1
36208_ACEOF
36209
36210
36211fi
36212ac_fn_c_check_type "$LINENO" "GROUP_AFFINITY" "ac_cv_type_GROUP_AFFINITY" "#include <windows.h>
36213"
36214if test "x$ac_cv_type_GROUP_AFFINITY" = xyes; then :
36215
36216cat >>confdefs.h <<_ACEOF
36217#define HAVE_GROUP_AFFINITY 1
36218_ACEOF
36219
36220
36221fi
36222ac_fn_c_check_type "$LINENO" "PROCESSOR_RELATIONSHIP" "ac_cv_type_PROCESSOR_RELATIONSHIP" "#include <windows.h>
36223"
36224if test "x$ac_cv_type_PROCESSOR_RELATIONSHIP" = xyes; then :
36225
36226cat >>confdefs.h <<_ACEOF
36227#define HAVE_PROCESSOR_RELATIONSHIP 1
36228_ACEOF
36229
36230
36231fi
36232ac_fn_c_check_type "$LINENO" "NUMA_NODE_RELATIONSHIP" "ac_cv_type_NUMA_NODE_RELATIONSHIP" "#include <windows.h>
36233"
36234if test "x$ac_cv_type_NUMA_NODE_RELATIONSHIP" = xyes; then :
36235
36236cat >>confdefs.h <<_ACEOF
36237#define HAVE_NUMA_NODE_RELATIONSHIP 1
36238_ACEOF
36239
36240
36241fi
36242ac_fn_c_check_type "$LINENO" "CACHE_RELATIONSHIP" "ac_cv_type_CACHE_RELATIONSHIP" "#include <windows.h>
36243"
36244if test "x$ac_cv_type_CACHE_RELATIONSHIP" = xyes; then :
36245
36246cat >>confdefs.h <<_ACEOF
36247#define HAVE_CACHE_RELATIONSHIP 1
36248_ACEOF
36249
36250
36251fi
36252ac_fn_c_check_type "$LINENO" "PROCESSOR_GROUP_INFO" "ac_cv_type_PROCESSOR_GROUP_INFO" "#include <windows.h>
36253"
36254if test "x$ac_cv_type_PROCESSOR_GROUP_INFO" = xyes; then :
36255
36256cat >>confdefs.h <<_ACEOF
36257#define HAVE_PROCESSOR_GROUP_INFO 1
36258_ACEOF
36259
36260
36261fi
36262ac_fn_c_check_type "$LINENO" "GROUP_RELATIONSHIP" "ac_cv_type_GROUP_RELATIONSHIP" "#include <windows.h>
36263"
36264if test "x$ac_cv_type_GROUP_RELATIONSHIP" = xyes; then :
36265
36266cat >>confdefs.h <<_ACEOF
36267#define HAVE_GROUP_RELATIONSHIP 1
36268_ACEOF
36269
36270
36271fi
36272ac_fn_c_check_type "$LINENO" "SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" "#include <windows.h>
36273"
36274if test "x$ac_cv_type_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX" = xyes; then :
36275
36276cat >>confdefs.h <<_ACEOF
36277#define HAVE_SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX 1
36278_ACEOF
36279
36280
36281fi
36282ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_BLOCK" "ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" "#include <windows.h>
36283"
36284if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_BLOCK" = xyes; then :
36285
36286cat >>confdefs.h <<_ACEOF
36287#define HAVE_PSAPI_WORKING_SET_EX_BLOCK 1
36288_ACEOF
36289
36290
36291fi
36292ac_fn_c_check_type "$LINENO" "PSAPI_WORKING_SET_EX_INFORMATION" "ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" "#include <windows.h>
36293"
36294if test "x$ac_cv_type_PSAPI_WORKING_SET_EX_INFORMATION" = xyes; then :
36295
36296cat >>confdefs.h <<_ACEOF
36297#define HAVE_PSAPI_WORKING_SET_EX_INFORMATION 1
36298_ACEOF
36299
36300
36301fi
36302ac_fn_c_check_type "$LINENO" "PROCESSOR_NUMBER" "ac_cv_type_PROCESSOR_NUMBER" "#include <windows.h>
36303"
36304if test "x$ac_cv_type_PROCESSOR_NUMBER" = xyes; then :
36305
36306cat >>confdefs.h <<_ACEOF
36307#define HAVE_PROCESSOR_NUMBER 1
36308_ACEOF
36309
36310
36311fi
36312
36313      CPPFLAGS="$old_CPPFLAGS"
36314
36315      ac_fn_c_check_decl "$LINENO" "GetModuleFileName" "ac_cv_have_decl_GetModuleFileName" "#include <windows.h>
36316"
36317if test "x$ac_cv_have_decl_GetModuleFileName" = xyes; then :
36318  ac_have_decl=1
36319else
36320  ac_have_decl=0
36321fi
36322
36323cat >>confdefs.h <<_ACEOF
36324#define HAVE_DECL_GETMODULEFILENAME $ac_have_decl
36325_ACEOF
36326
36327
36328      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgdi32" >&5
36329$as_echo_n "checking for main in -lgdi32... " >&6; }
36330if ${ac_cv_lib_gdi32_main+:} false; then :
36331  $as_echo_n "(cached) " >&6
36332else
36333  ac_check_lib_save_LIBS=$LIBS
36334LIBS="-lgdi32  $LIBS"
36335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36336/* end confdefs.h.  */
36337
36338
36339int
36340main ()
36341{
36342return main ();
36343  ;
36344  return 0;
36345}
36346_ACEOF
36347if ac_fn_c_try_link "$LINENO"; then :
36348  ac_cv_lib_gdi32_main=yes
36349else
36350  ac_cv_lib_gdi32_main=no
36351fi
36352rm -f core conftest.err conftest.$ac_objext \
36353    conftest$ac_exeext conftest.$ac_ext
36354LIBS=$ac_check_lib_save_LIBS
36355fi
36356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdi32_main" >&5
36357$as_echo "$ac_cv_lib_gdi32_main" >&6; }
36358if test "x$ac_cv_lib_gdi32_main" = xyes; then :
36359  HWLOC_LIBS="-lgdi32 $HWLOC_LIBS"
36360
36361$as_echo "#define HAVE_LIBGDI32 1" >>confdefs.h
36362
36363fi
36364
36365      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostQuitMessage in -luser32" >&5
36366$as_echo_n "checking for PostQuitMessage in -luser32... " >&6; }
36367if ${ac_cv_lib_user32_PostQuitMessage+:} false; then :
36368  $as_echo_n "(cached) " >&6
36369else
36370  ac_check_lib_save_LIBS=$LIBS
36371LIBS="-luser32  $LIBS"
36372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36373/* end confdefs.h.  */
36374
36375/* Override any GCC internal prototype to avoid an error.
36376   Use char because int might match the return type of a GCC
36377   builtin and then its argument prototype would still apply.  */
36378#ifdef __cplusplus
36379extern "C"
36380#endif
36381char PostQuitMessage ();
36382int
36383main ()
36384{
36385return PostQuitMessage ();
36386  ;
36387  return 0;
36388}
36389_ACEOF
36390if ac_fn_c_try_link "$LINENO"; then :
36391  ac_cv_lib_user32_PostQuitMessage=yes
36392else
36393  ac_cv_lib_user32_PostQuitMessage=no
36394fi
36395rm -f core conftest.err conftest.$ac_objext \
36396    conftest$ac_exeext conftest.$ac_ext
36397LIBS=$ac_check_lib_save_LIBS
36398fi
36399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_user32_PostQuitMessage" >&5
36400$as_echo "$ac_cv_lib_user32_PostQuitMessage" >&6; }
36401if test "x$ac_cv_lib_user32_PostQuitMessage" = xyes; then :
36402  hwloc_have_user32="yes"
36403fi
36404
36405
36406      for ac_prog in lib
36407do
36408  # Extract the first word of "$ac_prog", so it can be a program name with args.
36409set dummy $ac_prog; ac_word=$2
36410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36411$as_echo_n "checking for $ac_word... " >&6; }
36412if ${ac_cv_path_HWLOC_MS_LIB+:} false; then :
36413  $as_echo_n "(cached) " >&6
36414else
36415  case $HWLOC_MS_LIB in
36416  [\\/]* | ?:[\\/]*)
36417  ac_cv_path_HWLOC_MS_LIB="$HWLOC_MS_LIB" # Let the user override the test with a path.
36418  ;;
36419  *)
36420  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36421for as_dir in $PATH
36422do
36423  IFS=$as_save_IFS
36424  test -z "$as_dir" && as_dir=.
36425    for ac_exec_ext in '' $ac_executable_extensions; do
36426  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36427    ac_cv_path_HWLOC_MS_LIB="$as_dir/$ac_word$ac_exec_ext"
36428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36429    break 2
36430  fi
36431done
36432  done
36433IFS=$as_save_IFS
36434
36435  ;;
36436esac
36437fi
36438HWLOC_MS_LIB=$ac_cv_path_HWLOC_MS_LIB
36439if test -n "$HWLOC_MS_LIB"; then
36440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HWLOC_MS_LIB" >&5
36441$as_echo "$HWLOC_MS_LIB" >&6; }
36442else
36443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36444$as_echo "no" >&6; }
36445fi
36446
36447
36448  test -n "$HWLOC_MS_LIB" && break
36449done
36450
36451
36452
36453      echo "**** end of Windows-specific checks"
36454      echo
36455    fi
36456
36457    if test x$hwloc_solaris = xyes; then
36458      echo
36459      echo "**** Solaris-specific checks"
36460
36461      for ac_header in sys/lgrp_user.h
36462do :
36463  ac_fn_c_check_header_mongrel "$LINENO" "sys/lgrp_user.h" "ac_cv_header_sys_lgrp_user_h" "$ac_includes_default"
36464if test "x$ac_cv_header_sys_lgrp_user_h" = xyes; then :
36465  cat >>confdefs.h <<_ACEOF
36466#define HAVE_SYS_LGRP_USER_H 1
36467_ACEOF
36468
36469        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgrp_init in -llgrp" >&5
36470$as_echo_n "checking for lgrp_init in -llgrp... " >&6; }
36471if ${ac_cv_lib_lgrp_lgrp_init+:} false; then :
36472  $as_echo_n "(cached) " >&6
36473else
36474  ac_check_lib_save_LIBS=$LIBS
36475LIBS="-llgrp  $LIBS"
36476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36477/* end confdefs.h.  */
36478
36479/* Override any GCC internal prototype to avoid an error.
36480   Use char because int might match the return type of a GCC
36481   builtin and then its argument prototype would still apply.  */
36482#ifdef __cplusplus
36483extern "C"
36484#endif
36485char lgrp_init ();
36486int
36487main ()
36488{
36489return lgrp_init ();
36490  ;
36491  return 0;
36492}
36493_ACEOF
36494if ac_fn_c_try_link "$LINENO"; then :
36495  ac_cv_lib_lgrp_lgrp_init=yes
36496else
36497  ac_cv_lib_lgrp_lgrp_init=no
36498fi
36499rm -f core conftest.err conftest.$ac_objext \
36500    conftest$ac_exeext conftest.$ac_ext
36501LIBS=$ac_check_lib_save_LIBS
36502fi
36503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lgrp_lgrp_init" >&5
36504$as_echo "$ac_cv_lib_lgrp_lgrp_init" >&6; }
36505if test "x$ac_cv_lib_lgrp_lgrp_init" = xyes; then :
36506  HWLOC_LIBS="-llgrp $HWLOC_LIBS"
36507
36508$as_echo "#define HAVE_LIBLGRP 1" >>confdefs.h
36509
36510                      ac_fn_c_check_decl "$LINENO" "lgrp_latency_cookie" "ac_cv_have_decl_lgrp_latency_cookie" "#include <sys/lgrp_user.h>
36511"
36512if test "x$ac_cv_have_decl_lgrp_latency_cookie" = xyes; then :
36513  ac_have_decl=1
36514else
36515  ac_have_decl=0
36516fi
36517
36518cat >>confdefs.h <<_ACEOF
36519#define HAVE_DECL_LGRP_LATENCY_COOKIE $ac_have_decl
36520_ACEOF
36521
36522
36523fi
36524
36525
36526fi
36527
36528done
36529
36530      for ac_header in kstat.h
36531do :
36532  ac_fn_c_check_header_mongrel "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default"
36533if test "x$ac_cv_header_kstat_h" = xyes; then :
36534  cat >>confdefs.h <<_ACEOF
36535#define HAVE_KSTAT_H 1
36536_ACEOF
36537
36538        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkstat" >&5
36539$as_echo_n "checking for main in -lkstat... " >&6; }
36540if ${ac_cv_lib_kstat_main+:} false; then :
36541  $as_echo_n "(cached) " >&6
36542else
36543  ac_check_lib_save_LIBS=$LIBS
36544LIBS="-lkstat  $LIBS"
36545cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36546/* end confdefs.h.  */
36547
36548
36549int
36550main ()
36551{
36552return main ();
36553  ;
36554  return 0;
36555}
36556_ACEOF
36557if ac_fn_c_try_link "$LINENO"; then :
36558  ac_cv_lib_kstat_main=yes
36559else
36560  ac_cv_lib_kstat_main=no
36561fi
36562rm -f core conftest.err conftest.$ac_objext \
36563    conftest$ac_exeext conftest.$ac_ext
36564LIBS=$ac_check_lib_save_LIBS
36565fi
36566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_main" >&5
36567$as_echo "$ac_cv_lib_kstat_main" >&6; }
36568if test "x$ac_cv_lib_kstat_main" = xyes; then :
36569  HWLOC_LIBS="-lkstat $HWLOC_LIBS"
36570
36571$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
36572
36573fi
36574
36575
36576fi
36577
36578done
36579
36580
36581      for ac_header in picl.h
36582do :
36583  ac_fn_c_check_header_mongrel "$LINENO" "picl.h" "ac_cv_header_picl_h" "$ac_includes_default"
36584if test "x$ac_cv_header_picl_h" = xyes; then :
36585  cat >>confdefs.h <<_ACEOF
36586#define HAVE_PICL_H 1
36587_ACEOF
36588
36589        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for picl_initialize in -lpicl" >&5
36590$as_echo_n "checking for picl_initialize in -lpicl... " >&6; }
36591if ${ac_cv_lib_picl_picl_initialize+:} false; then :
36592  $as_echo_n "(cached) " >&6
36593else
36594  ac_check_lib_save_LIBS=$LIBS
36595LIBS="-lpicl  $LIBS"
36596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36597/* end confdefs.h.  */
36598
36599/* Override any GCC internal prototype to avoid an error.
36600   Use char because int might match the return type of a GCC
36601   builtin and then its argument prototype would still apply.  */
36602#ifdef __cplusplus
36603extern "C"
36604#endif
36605char picl_initialize ();
36606int
36607main ()
36608{
36609return picl_initialize ();
36610  ;
36611  return 0;
36612}
36613_ACEOF
36614if ac_fn_c_try_link "$LINENO"; then :
36615  ac_cv_lib_picl_picl_initialize=yes
36616else
36617  ac_cv_lib_picl_picl_initialize=no
36618fi
36619rm -f core conftest.err conftest.$ac_objext \
36620    conftest$ac_exeext conftest.$ac_ext
36621LIBS=$ac_check_lib_save_LIBS
36622fi
36623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_picl_picl_initialize" >&5
36624$as_echo "$ac_cv_lib_picl_picl_initialize" >&6; }
36625if test "x$ac_cv_lib_picl_picl_initialize" = xyes; then :
36626  HWLOC_LIBS="-lpicl $HWLOC_LIBS"
36627fi
36628
36629fi
36630
36631done
36632
36633
36634      echo "**** end of Solaris-specific checks"
36635      echo
36636    fi
36637
36638    if test x$hwloc_aix = xyes; then
36639      echo
36640      echo "**** AIX-specific checks"
36641
36642      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getthrds_np" >&5
36643$as_echo_n "checking for library containing pthread_getthrds_np... " >&6; }
36644if ${ac_cv_search_pthread_getthrds_np+:} false; then :
36645  $as_echo_n "(cached) " >&6
36646else
36647  ac_func_search_save_LIBS=$LIBS
36648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36649/* end confdefs.h.  */
36650
36651/* Override any GCC internal prototype to avoid an error.
36652   Use char because int might match the return type of a GCC
36653   builtin and then its argument prototype would still apply.  */
36654#ifdef __cplusplus
36655extern "C"
36656#endif
36657char pthread_getthrds_np ();
36658int
36659main ()
36660{
36661return pthread_getthrds_np ();
36662  ;
36663  return 0;
36664}
36665_ACEOF
36666for ac_lib in '' pthread; do
36667  if test -z "$ac_lib"; then
36668    ac_res="none required"
36669  else
36670    ac_res=-l$ac_lib
36671    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
36672  fi
36673  if ac_fn_c_try_link "$LINENO"; then :
36674  ac_cv_search_pthread_getthrds_np=$ac_res
36675fi
36676rm -f core conftest.err conftest.$ac_objext \
36677    conftest$ac_exeext
36678  if ${ac_cv_search_pthread_getthrds_np+:} false; then :
36679  break
36680fi
36681done
36682if ${ac_cv_search_pthread_getthrds_np+:} false; then :
36683
36684else
36685  ac_cv_search_pthread_getthrds_np=no
36686fi
36687rm conftest.$ac_ext
36688LIBS=$ac_func_search_save_LIBS
36689fi
36690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getthrds_np" >&5
36691$as_echo "$ac_cv_search_pthread_getthrds_np" >&6; }
36692ac_res=$ac_cv_search_pthread_getthrds_np
36693if test "$ac_res" != no; then :
36694  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36695
36696
36697$as_echo "#define HWLOC_HAVE_PTHREAD_GETTHRDS_NP 1" >>confdefs.h
36698
36699
36700fi
36701
36702
36703      echo "**** end of AIX-specific checks"
36704      echo
36705    fi
36706
36707    if test x$hwloc_linux = xyes; then
36708      echo
36709      echo "**** Linux-specific checks"
36710
36711      ac_fn_c_check_decl "$LINENO" "sched_getcpu" "ac_cv_have_decl_sched_getcpu" "
36712        #ifndef _GNU_SOURCE
36713        # define _GNU_SOURCE
36714        #endif
36715        #include <sched.h>
36716
36717"
36718if test "x$ac_cv_have_decl_sched_getcpu" = xyes; then :
36719  ac_have_decl=1
36720else
36721  ac_have_decl=0
36722fi
36723
36724cat >>confdefs.h <<_ACEOF
36725#define HAVE_DECL_SCHED_GETCPU $ac_have_decl
36726_ACEOF
36727if test $ac_have_decl = 1; then :
36728
36729else
36730  :
36731fi
36732
36733
36734
36735  ac_fn_c_check_decl "$LINENO" "sched_setaffinity" "ac_cv_have_decl_sched_setaffinity" "
36736#ifndef _GNU_SOURCE
36737# define _GNU_SOURCE
36738#endif
36739#include <sched.h>
36740
36741
36742"
36743if test "x$ac_cv_have_decl_sched_setaffinity" = xyes; then :
36744
36745    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function sched_setaffinity has a complete prototype" >&5
36746$as_echo_n "checking whether function sched_setaffinity has a complete prototype... " >&6; }
36747
36748    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36749/* end confdefs.h.  */
36750
36751#ifndef _GNU_SOURCE
36752# define _GNU_SOURCE
36753#endif
36754#include <sched.h>
36755
36756
36757int
36758main ()
36759{
36760sched_setaffinity(1,2,3,4,5,6,7,8,9,10);
36761
36762  ;
36763  return 0;
36764}
36765_ACEOF
36766if ac_fn_c_try_compile "$LINENO"; then :
36767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36768$as_echo "no" >&6; }
36769
36770else
36771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36772$as_echo "yes" >&6; }
36773
36774	hwloc_have_sched_setaffinity=yes
36775
36776$as_echo "#define HWLOC_HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
36777
36778        if test "$HWLOC_STRICT_ARGS_CFLAGS" = "FAIL"; then :
36779
36780          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Support for sched_setaffinity() requires a C compiler which" >&5
36781$as_echo "$as_me: WARNING: Support for sched_setaffinity() requires a C compiler which" >&2;}
36782          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: considers incorrect argument counts to be a fatal error." >&5
36783$as_echo "$as_me: WARNING: considers incorrect argument counts to be a fatal error." >&2;}
36784          as_fn_error $? "Cannot continue." "$LINENO" 5
36785
36786fi
36787        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old prototype of sched_setaffinity" >&5
36788$as_echo_n "checking for old prototype of sched_setaffinity... " >&6; }
36789        hwloc_save_CFLAGS=$CFLAGS
36790        CFLAGS="$CFLAGS $HWLOC_STRICT_ARGS_CFLAGS"
36791        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36792/* end confdefs.h.  */
36793
36794
36795              #ifndef _GNU_SOURCE
36796              # define _GNU_SOURCE
36797              #endif
36798              #include <sched.h>
36799              static unsigned long mask;
36800
36801int
36802main ()
36803{
36804 sched_setaffinity(0, (void*) &mask);
36805  ;
36806  return 0;
36807}
36808_ACEOF
36809if ac_fn_c_try_compile "$LINENO"; then :
36810
36811$as_echo "#define HWLOC_HAVE_OLD_SCHED_SETAFFINITY 1" >>confdefs.h
36812
36813             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36814$as_echo "yes" >&6; }
36815else
36816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36817$as_echo "no" >&6; }
36818fi
36819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36820        CFLAGS=$hwloc_save_CFLAGS
36821
36822
36823fi
36824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36825fi
36826
36827
36828
36829      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET" >&5
36830$as_echo_n "checking for working CPU_SET... " >&6; }
36831      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36832/* end confdefs.h.  */
36833
36834
36835          #include <sched.h>
36836          cpu_set_t set;
36837
36838int
36839main ()
36840{
36841 CPU_ZERO(&set); CPU_SET(0, &set);
36842  ;
36843  return 0;
36844}
36845_ACEOF
36846if ac_fn_c_try_link "$LINENO"; then :
36847
36848$as_echo "#define HWLOC_HAVE_CPU_SET 1" >>confdefs.h
36849
36850         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36851$as_echo "yes" >&6; }
36852else
36853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36854$as_echo "no" >&6; }
36855fi
36856rm -f core conftest.err conftest.$ac_objext \
36857    conftest$ac_exeext conftest.$ac_ext
36858
36859      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working CPU_SET_S" >&5
36860$as_echo_n "checking for working CPU_SET_S... " >&6; }
36861      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36862/* end confdefs.h.  */
36863
36864
36865          #include <sched.h>
36866          cpu_set_t *set;
36867
36868int
36869main ()
36870{
36871
36872          set = CPU_ALLOC(1024);
36873          CPU_ZERO_S(CPU_ALLOC_SIZE(1024), set);
36874          CPU_SET_S(CPU_ALLOC_SIZE(1024), 0, set);
36875          CPU_FREE(set);
36876
36877  ;
36878  return 0;
36879}
36880_ACEOF
36881if ac_fn_c_try_link "$LINENO"; then :
36882
36883$as_echo "#define HWLOC_HAVE_CPU_SET_S 1" >>confdefs.h
36884
36885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36886$as_echo "yes" >&6; }
36887else
36888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36889$as_echo "no" >&6; }
36890fi
36891rm -f core conftest.err conftest.$ac_objext \
36892    conftest$ac_exeext conftest.$ac_ext
36893
36894      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working syscall with 6 parameters" >&5
36895$as_echo_n "checking for working syscall with 6 parameters... " >&6; }
36896      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36897/* end confdefs.h.  */
36898
36899
36900          #include <unistd.h>
36901          #include <sys/syscall.h>
36902
36903int
36904main ()
36905{
36906syscall(0, 1, 2, 3, 4, 5, 6);
36907  ;
36908  return 0;
36909}
36910_ACEOF
36911if ac_fn_c_try_link "$LINENO"; then :
36912
36913$as_echo "#define HWLOC_HAVE_SYSCALL 1" >>confdefs.h
36914
36915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36916$as_echo "yes" >&6; }
36917else
36918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36919$as_echo "no" >&6; }
36920fi
36921rm -f core conftest.err conftest.$ac_objext \
36922    conftest$ac_exeext conftest.$ac_ext
36923
36924      # Linux libudev support
36925      if test "x$enable_libudev" != xno; then
36926        for ac_header in libudev.h
36927do :
36928  ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
36929if test "x$ac_cv_header_libudev_h" = xyes; then :
36930  cat >>confdefs.h <<_ACEOF
36931#define HAVE_LIBUDEV_H 1
36932_ACEOF
36933
36934          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_device_new_from_subsystem_sysname in -ludev" >&5
36935$as_echo_n "checking for udev_device_new_from_subsystem_sysname in -ludev... " >&6; }
36936if ${ac_cv_lib_udev_udev_device_new_from_subsystem_sysname+:} false; then :
36937  $as_echo_n "(cached) " >&6
36938else
36939  ac_check_lib_save_LIBS=$LIBS
36940LIBS="-ludev  $LIBS"
36941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36942/* end confdefs.h.  */
36943
36944/* Override any GCC internal prototype to avoid an error.
36945   Use char because int might match the return type of a GCC
36946   builtin and then its argument prototype would still apply.  */
36947#ifdef __cplusplus
36948extern "C"
36949#endif
36950char udev_device_new_from_subsystem_sysname ();
36951int
36952main ()
36953{
36954return udev_device_new_from_subsystem_sysname ();
36955  ;
36956  return 0;
36957}
36958_ACEOF
36959if ac_fn_c_try_link "$LINENO"; then :
36960  ac_cv_lib_udev_udev_device_new_from_subsystem_sysname=yes
36961else
36962  ac_cv_lib_udev_udev_device_new_from_subsystem_sysname=no
36963fi
36964rm -f core conftest.err conftest.$ac_objext \
36965    conftest$ac_exeext conftest.$ac_ext
36966LIBS=$ac_check_lib_save_LIBS
36967fi
36968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" >&5
36969$as_echo "$ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" >&6; }
36970if test "x$ac_cv_lib_udev_udev_device_new_from_subsystem_sysname" = xyes; then :
36971
36972            HWLOC_LIBS="$HWLOC_LIBS -ludev"
36973
36974$as_echo "#define HWLOC_HAVE_LIBUDEV 1" >>confdefs.h
36975
36976
36977fi
36978
36979
36980fi
36981
36982done
36983
36984      fi
36985
36986      echo "**** end of Linux-specific checks"
36987      echo
36988    fi
36989
36990    if test "x$hwloc_linux" != "xyes" ; then
36991      # Don't look for sys/sysctl.h on Linux because it's deprecated and
36992      # generates a warning in GCC10. Also it's unneeded.
36993      for ac_header in sys/param.h
36994do :
36995  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
36996if test "x$ac_cv_header_sys_param_h" = xyes; then :
36997  cat >>confdefs.h <<_ACEOF
36998#define HAVE_SYS_PARAM_H 1
36999_ACEOF
37000
37001fi
37002
37003done
37004
37005      for ac_header in sys/sysctl.h
37006do :
37007  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
37008        $ac_includes_default
37009        #if HAVE_SYS_PARAM_H
37010        #include <sys/param.h>
37011        #endif
37012
37013"
37014if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
37015  cat >>confdefs.h <<_ACEOF
37016#define HAVE_SYS_SYSCTL_H 1
37017_ACEOF
37018
37019        ac_fn_c_check_decl "$LINENO" "CTL_HW" "ac_cv_have_decl_CTL_HW" "
37020        #if HAVE_SYS_PARAM_H
37021        #include <sys/param.h>
37022        #endif
37023        #include <sys/sysctl.h>
37024
37025"
37026if test "x$ac_cv_have_decl_CTL_HW" = xyes; then :
37027  ac_have_decl=1
37028else
37029  ac_have_decl=0
37030fi
37031
37032cat >>confdefs.h <<_ACEOF
37033#define HAVE_DECL_CTL_HW $ac_have_decl
37034_ACEOF
37035ac_fn_c_check_decl "$LINENO" "HW_NCPU" "ac_cv_have_decl_HW_NCPU" "
37036        #if HAVE_SYS_PARAM_H
37037        #include <sys/param.h>
37038        #endif
37039        #include <sys/sysctl.h>
37040
37041"
37042if test "x$ac_cv_have_decl_HW_NCPU" = xyes; then :
37043  ac_have_decl=1
37044else
37045  ac_have_decl=0
37046fi
37047
37048cat >>confdefs.h <<_ACEOF
37049#define HAVE_DECL_HW_NCPU $ac_have_decl
37050_ACEOF
37051ac_fn_c_check_decl "$LINENO" "HW_REALMEM64" "ac_cv_have_decl_HW_REALMEM64" "
37052        #if HAVE_SYS_PARAM_H
37053        #include <sys/param.h>
37054        #endif
37055        #include <sys/sysctl.h>
37056
37057"
37058if test "x$ac_cv_have_decl_HW_REALMEM64" = xyes; then :
37059  ac_have_decl=1
37060else
37061  ac_have_decl=0
37062fi
37063
37064cat >>confdefs.h <<_ACEOF
37065#define HAVE_DECL_HW_REALMEM64 $ac_have_decl
37066_ACEOF
37067ac_fn_c_check_decl "$LINENO" "HW_MEMSIZE64" "ac_cv_have_decl_HW_MEMSIZE64" "
37068        #if HAVE_SYS_PARAM_H
37069        #include <sys/param.h>
37070        #endif
37071        #include <sys/sysctl.h>
37072
37073"
37074if test "x$ac_cv_have_decl_HW_MEMSIZE64" = xyes; then :
37075  ac_have_decl=1
37076else
37077  ac_have_decl=0
37078fi
37079
37080cat >>confdefs.h <<_ACEOF
37081#define HAVE_DECL_HW_MEMSIZE64 $ac_have_decl
37082_ACEOF
37083ac_fn_c_check_decl "$LINENO" "HW_PHYSMEM64" "ac_cv_have_decl_HW_PHYSMEM64" "
37084        #if HAVE_SYS_PARAM_H
37085        #include <sys/param.h>
37086        #endif
37087        #include <sys/sysctl.h>
37088
37089"
37090if test "x$ac_cv_have_decl_HW_PHYSMEM64" = xyes; then :
37091  ac_have_decl=1
37092else
37093  ac_have_decl=0
37094fi
37095
37096cat >>confdefs.h <<_ACEOF
37097#define HAVE_DECL_HW_PHYSMEM64 $ac_have_decl
37098_ACEOF
37099ac_fn_c_check_decl "$LINENO" "HW_USERMEM64" "ac_cv_have_decl_HW_USERMEM64" "
37100        #if HAVE_SYS_PARAM_H
37101        #include <sys/param.h>
37102        #endif
37103        #include <sys/sysctl.h>
37104
37105"
37106if test "x$ac_cv_have_decl_HW_USERMEM64" = xyes; then :
37107  ac_have_decl=1
37108else
37109  ac_have_decl=0
37110fi
37111
37112cat >>confdefs.h <<_ACEOF
37113#define HAVE_DECL_HW_USERMEM64 $ac_have_decl
37114_ACEOF
37115ac_fn_c_check_decl "$LINENO" "HW_REALMEM" "ac_cv_have_decl_HW_REALMEM" "
37116        #if HAVE_SYS_PARAM_H
37117        #include <sys/param.h>
37118        #endif
37119        #include <sys/sysctl.h>
37120
37121"
37122if test "x$ac_cv_have_decl_HW_REALMEM" = xyes; then :
37123  ac_have_decl=1
37124else
37125  ac_have_decl=0
37126fi
37127
37128cat >>confdefs.h <<_ACEOF
37129#define HAVE_DECL_HW_REALMEM $ac_have_decl
37130_ACEOF
37131ac_fn_c_check_decl "$LINENO" "HW_MEMSIZE" "ac_cv_have_decl_HW_MEMSIZE" "
37132        #if HAVE_SYS_PARAM_H
37133        #include <sys/param.h>
37134        #endif
37135        #include <sys/sysctl.h>
37136
37137"
37138if test "x$ac_cv_have_decl_HW_MEMSIZE" = xyes; then :
37139  ac_have_decl=1
37140else
37141  ac_have_decl=0
37142fi
37143
37144cat >>confdefs.h <<_ACEOF
37145#define HAVE_DECL_HW_MEMSIZE $ac_have_decl
37146_ACEOF
37147ac_fn_c_check_decl "$LINENO" "HW_PHYSMEM" "ac_cv_have_decl_HW_PHYSMEM" "
37148        #if HAVE_SYS_PARAM_H
37149        #include <sys/param.h>
37150        #endif
37151        #include <sys/sysctl.h>
37152
37153"
37154if test "x$ac_cv_have_decl_HW_PHYSMEM" = xyes; then :
37155  ac_have_decl=1
37156else
37157  ac_have_decl=0
37158fi
37159
37160cat >>confdefs.h <<_ACEOF
37161#define HAVE_DECL_HW_PHYSMEM $ac_have_decl
37162_ACEOF
37163ac_fn_c_check_decl "$LINENO" "HW_USERMEM" "ac_cv_have_decl_HW_USERMEM" "
37164        #if HAVE_SYS_PARAM_H
37165        #include <sys/param.h>
37166        #endif
37167        #include <sys/sysctl.h>
37168
37169"
37170if test "x$ac_cv_have_decl_HW_USERMEM" = xyes; then :
37171  ac_have_decl=1
37172else
37173  ac_have_decl=0
37174fi
37175
37176cat >>confdefs.h <<_ACEOF
37177#define HAVE_DECL_HW_USERMEM $ac_have_decl
37178_ACEOF
37179
37180
37181fi
37182
37183done
37184
37185
37186      # Don't detect sysctl* on Linux because its sysctl() syscall is
37187      # long deprecated and unneeded. Some libc still expose the symbol
37188      # and raise a big warning at link time.
37189
37190      # Do a full link test instead of just using AC_CHECK_FUNCS, which
37191      # just checks to see if the symbol exists or not.  For example,
37192      # the prototype of sysctl uses u_int, which on some platforms
37193      # (such as FreeBSD) is only defined under __BSD_VISIBLE, __USE_BSD
37194      # or other similar definitions.  So while the symbols "sysctl" and
37195      # "sysctlbyname" might still be available in libc (which autoconf
37196      # checks for), they might not be actually usable.
37197      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
37198$as_echo_n "checking for sysctl... " >&6; }
37199      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37200/* end confdefs.h.  */
37201
37202                 #include <stdio.h>
37203                 #include <sys/types.h>
37204                 #include <sys/sysctl.h>
37205
37206int
37207main ()
37208{
37209return sysctl(NULL,0,NULL,NULL,NULL,0);
37210  ;
37211  return 0;
37212}
37213_ACEOF
37214if ac_fn_c_try_link "$LINENO"; then :
37215
37216$as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
37217
37218                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37219$as_echo "yes" >&6; }
37220else
37221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37222$as_echo "no" >&6; }
37223fi
37224rm -f core conftest.err conftest.$ac_objext \
37225    conftest$ac_exeext conftest.$ac_ext
37226      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctlbyname" >&5
37227$as_echo_n "checking for sysctlbyname... " >&6; }
37228      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37229/* end confdefs.h.  */
37230
37231                 #include <stdio.h>
37232                 #include <sys/types.h>
37233                 #include <sys/sysctl.h>
37234
37235int
37236main ()
37237{
37238return sysctlbyname(NULL,NULL,NULL,NULL,0);
37239  ;
37240  return 0;
37241}
37242_ACEOF
37243if ac_fn_c_try_link "$LINENO"; then :
37244
37245$as_echo "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h
37246
37247                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37248$as_echo "yes" >&6; }
37249else
37250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37251$as_echo "no" >&6; }
37252fi
37253rm -f core conftest.err conftest.$ac_objext \
37254    conftest$ac_exeext conftest.$ac_ext
37255    fi
37256
37257    ac_fn_c_check_decl "$LINENO" "pthread_setaffinity_np" "ac_cv_have_decl_pthread_setaffinity_np" "
37258      #include <pthread.h>
37259      #ifdef HAVE_PTHREAD_NP_H
37260      #  include <pthread_np.h>
37261      #endif
37262
37263"
37264if test "x$ac_cv_have_decl_pthread_setaffinity_np" = xyes; then :
37265  ac_have_decl=1
37266else
37267  ac_have_decl=0
37268fi
37269
37270cat >>confdefs.h <<_ACEOF
37271#define HAVE_DECL_PTHREAD_SETAFFINITY_NP $ac_have_decl
37272_ACEOF
37273if test $ac_have_decl = 1; then :
37274
37275else
37276  :
37277fi
37278
37279    ac_fn_c_check_decl "$LINENO" "pthread_getaffinity_np" "ac_cv_have_decl_pthread_getaffinity_np" "
37280      #include <pthread.h>
37281      #ifdef HAVE_PTHREAD_NP_H
37282      #  include <pthread_np.h>
37283      #endif
37284
37285"
37286if test "x$ac_cv_have_decl_pthread_getaffinity_np" = xyes; then :
37287  ac_have_decl=1
37288else
37289  ac_have_decl=0
37290fi
37291
37292cat >>confdefs.h <<_ACEOF
37293#define HAVE_DECL_PTHREAD_GETAFFINITY_NP $ac_have_decl
37294_ACEOF
37295if test $ac_have_decl = 1; then :
37296
37297else
37298  :
37299fi
37300
37301
37302    ac_fn_c_check_decl "$LINENO" "fabsf" "ac_cv_have_decl_fabsf" "#include <math.h>
37303"
37304if test "x$ac_cv_have_decl_fabsf" = xyes; then :
37305  ac_have_decl=1
37306else
37307  ac_have_decl=0
37308fi
37309
37310cat >>confdefs.h <<_ACEOF
37311#define HAVE_DECL_FABSF $ac_have_decl
37312_ACEOF
37313if test $ac_have_decl = 1; then :
37314
37315      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf in -lm" >&5
37316$as_echo_n "checking for fabsf in -lm... " >&6; }
37317if ${ac_cv_lib_m_fabsf+:} false; then :
37318  $as_echo_n "(cached) " >&6
37319else
37320  ac_check_lib_save_LIBS=$LIBS
37321LIBS="-lm  $LIBS"
37322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37323/* end confdefs.h.  */
37324
37325/* Override any GCC internal prototype to avoid an error.
37326   Use char because int might match the return type of a GCC
37327   builtin and then its argument prototype would still apply.  */
37328#ifdef __cplusplus
37329extern "C"
37330#endif
37331char fabsf ();
37332int
37333main ()
37334{
37335return fabsf ();
37336  ;
37337  return 0;
37338}
37339_ACEOF
37340if ac_fn_c_try_link "$LINENO"; then :
37341  ac_cv_lib_m_fabsf=yes
37342else
37343  ac_cv_lib_m_fabsf=no
37344fi
37345rm -f core conftest.err conftest.$ac_objext \
37346    conftest$ac_exeext conftest.$ac_ext
37347LIBS=$ac_check_lib_save_LIBS
37348fi
37349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsf" >&5
37350$as_echo "$ac_cv_lib_m_fabsf" >&6; }
37351if test "x$ac_cv_lib_m_fabsf" = xyes; then :
37352  need_libm=yes
37353fi
37354
37355
37356fi
37357
37358    ac_fn_c_check_decl "$LINENO" "modff" "ac_cv_have_decl_modff" "#include <math.h>
37359"
37360if test "x$ac_cv_have_decl_modff" = xyes; then :
37361  ac_have_decl=1
37362else
37363  ac_have_decl=0
37364fi
37365
37366cat >>confdefs.h <<_ACEOF
37367#define HAVE_DECL_MODFF $ac_have_decl
37368_ACEOF
37369if test $ac_have_decl = 1; then :
37370
37371      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff in -lm" >&5
37372$as_echo_n "checking for modff in -lm... " >&6; }
37373if ${ac_cv_lib_m_modff+:} false; then :
37374  $as_echo_n "(cached) " >&6
37375else
37376  ac_check_lib_save_LIBS=$LIBS
37377LIBS="-lm  $LIBS"
37378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37379/* end confdefs.h.  */
37380
37381/* Override any GCC internal prototype to avoid an error.
37382   Use char because int might match the return type of a GCC
37383   builtin and then its argument prototype would still apply.  */
37384#ifdef __cplusplus
37385extern "C"
37386#endif
37387char modff ();
37388int
37389main ()
37390{
37391return modff ();
37392  ;
37393  return 0;
37394}
37395_ACEOF
37396if ac_fn_c_try_link "$LINENO"; then :
37397  ac_cv_lib_m_modff=yes
37398else
37399  ac_cv_lib_m_modff=no
37400fi
37401rm -f core conftest.err conftest.$ac_objext \
37402    conftest$ac_exeext conftest.$ac_ext
37403LIBS=$ac_check_lib_save_LIBS
37404fi
37405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_modff" >&5
37406$as_echo "$ac_cv_lib_m_modff" >&6; }
37407if test "x$ac_cv_lib_m_modff" = xyes; then :
37408  need_libm=yes
37409fi
37410
37411
37412fi
37413
37414    if test x$need_libm = xyes; then
37415      HWLOC_LIBS="-lm $HWLOC_LIBS"
37416    fi
37417
37418    ac_fn_c_check_decl "$LINENO" "_SC_NPROCESSORS_ONLN" "ac_cv_have_decl__SC_NPROCESSORS_ONLN" "#include <unistd.h>
37419"
37420if test "x$ac_cv_have_decl__SC_NPROCESSORS_ONLN" = xyes; then :
37421  ac_have_decl=1
37422else
37423  ac_have_decl=0
37424fi
37425
37426cat >>confdefs.h <<_ACEOF
37427#define HAVE_DECL__SC_NPROCESSORS_ONLN $ac_have_decl
37428_ACEOF
37429if test $ac_have_decl = 1; then :
37430
37431else
37432  :
37433fi
37434ac_fn_c_check_decl "$LINENO" "_SC_NPROCESSORS_CONF" "ac_cv_have_decl__SC_NPROCESSORS_CONF" "#include <unistd.h>
37435"
37436if test "x$ac_cv_have_decl__SC_NPROCESSORS_CONF" = xyes; then :
37437  ac_have_decl=1
37438else
37439  ac_have_decl=0
37440fi
37441
37442cat >>confdefs.h <<_ACEOF
37443#define HAVE_DECL__SC_NPROCESSORS_CONF $ac_have_decl
37444_ACEOF
37445if test $ac_have_decl = 1; then :
37446
37447else
37448  :
37449fi
37450ac_fn_c_check_decl "$LINENO" "_SC_NPROC_ONLN" "ac_cv_have_decl__SC_NPROC_ONLN" "#include <unistd.h>
37451"
37452if test "x$ac_cv_have_decl__SC_NPROC_ONLN" = xyes; then :
37453  ac_have_decl=1
37454else
37455  ac_have_decl=0
37456fi
37457
37458cat >>confdefs.h <<_ACEOF
37459#define HAVE_DECL__SC_NPROC_ONLN $ac_have_decl
37460_ACEOF
37461if test $ac_have_decl = 1; then :
37462
37463else
37464  :
37465fi
37466ac_fn_c_check_decl "$LINENO" "_SC_NPROC_CONF" "ac_cv_have_decl__SC_NPROC_CONF" "#include <unistd.h>
37467"
37468if test "x$ac_cv_have_decl__SC_NPROC_CONF" = xyes; then :
37469  ac_have_decl=1
37470else
37471  ac_have_decl=0
37472fi
37473
37474cat >>confdefs.h <<_ACEOF
37475#define HAVE_DECL__SC_NPROC_CONF $ac_have_decl
37476_ACEOF
37477if test $ac_have_decl = 1; then :
37478
37479else
37480  :
37481fi
37482ac_fn_c_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "#include <unistd.h>
37483"
37484if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes; then :
37485  ac_have_decl=1
37486else
37487  ac_have_decl=0
37488fi
37489
37490cat >>confdefs.h <<_ACEOF
37491#define HAVE_DECL__SC_PAGESIZE $ac_have_decl
37492_ACEOF
37493if test $ac_have_decl = 1; then :
37494
37495else
37496  :
37497fi
37498ac_fn_c_check_decl "$LINENO" "_SC_PAGE_SIZE" "ac_cv_have_decl__SC_PAGE_SIZE" "#include <unistd.h>
37499"
37500if test "x$ac_cv_have_decl__SC_PAGE_SIZE" = xyes; then :
37501  ac_have_decl=1
37502else
37503  ac_have_decl=0
37504fi
37505
37506cat >>confdefs.h <<_ACEOF
37507#define HAVE_DECL__SC_PAGE_SIZE $ac_have_decl
37508_ACEOF
37509if test $ac_have_decl = 1; then :
37510
37511else
37512  :
37513fi
37514ac_fn_c_check_decl "$LINENO" "_SC_LARGE_PAGESIZE" "ac_cv_have_decl__SC_LARGE_PAGESIZE" "#include <unistd.h>
37515"
37516if test "x$ac_cv_have_decl__SC_LARGE_PAGESIZE" = xyes; then :
37517  ac_have_decl=1
37518else
37519  ac_have_decl=0
37520fi
37521
37522cat >>confdefs.h <<_ACEOF
37523#define HAVE_DECL__SC_LARGE_PAGESIZE $ac_have_decl
37524_ACEOF
37525if test $ac_have_decl = 1; then :
37526
37527else
37528  :
37529fi
37530
37531
37532    for ac_header in mach/mach_init.h
37533do :
37534  ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_init.h" "ac_cv_header_mach_mach_init_h" "$ac_includes_default"
37535if test "x$ac_cv_header_mach_mach_init_h" = xyes; then :
37536  cat >>confdefs.h <<_ACEOF
37537#define HAVE_MACH_MACH_INIT_H 1
37538_ACEOF
37539
37540fi
37541
37542done
37543
37544    for ac_header in mach_init.h
37545do :
37546  ac_fn_c_check_header_mongrel "$LINENO" "mach_init.h" "ac_cv_header_mach_init_h" "$ac_includes_default"
37547if test "x$ac_cv_header_mach_init_h" = xyes; then :
37548  cat >>confdefs.h <<_ACEOF
37549#define HAVE_MACH_INIT_H 1
37550_ACEOF
37551
37552fi
37553
37554done
37555
37556    for ac_header in mach/mach_host.h
37557do :
37558  ac_fn_c_check_header_mongrel "$LINENO" "mach/mach_host.h" "ac_cv_header_mach_mach_host_h" "$ac_includes_default"
37559if test "x$ac_cv_header_mach_mach_host_h" = xyes; then :
37560  cat >>confdefs.h <<_ACEOF
37561#define HAVE_MACH_MACH_HOST_H 1
37562_ACEOF
37563
37564      for ac_func in host_info
37565do :
37566  ac_fn_c_check_func "$LINENO" "host_info" "ac_cv_func_host_info"
37567if test "x$ac_cv_func_host_info" = xyes; then :
37568  cat >>confdefs.h <<_ACEOF
37569#define HAVE_HOST_INFO 1
37570_ACEOF
37571
37572fi
37573done
37574
37575
37576fi
37577
37578done
37579
37580
37581    ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default
37582"
37583if test "x$ac_cv_have_decl_strtoull" = xyes; then :
37584  ac_have_decl=1
37585else
37586  ac_have_decl=0
37587fi
37588
37589cat >>confdefs.h <<_ACEOF
37590#define HAVE_DECL_STRTOULL $ac_have_decl
37591_ACEOF
37592if test $ac_have_decl = 1; then :
37593
37594else
37595  for ac_func in strtoull
37596do :
37597  ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
37598if test "x$ac_cv_func_strtoull" = xyes; then :
37599  cat >>confdefs.h <<_ACEOF
37600#define HAVE_STRTOULL 1
37601_ACEOF
37602
37603fi
37604done
37605
37606fi
37607
37608
37609    # Needed for Windows in private/misc.h
37610    ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
37611if test "x$ac_cv_type_ssize_t" = xyes; then :
37612
37613cat >>confdefs.h <<_ACEOF
37614#define HAVE_SSIZE_T 1
37615_ACEOF
37616
37617
37618fi
37619
37620    ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default
37621"
37622if test "x$ac_cv_have_decl_snprintf" = xyes; then :
37623  ac_have_decl=1
37624else
37625  ac_have_decl=0
37626fi
37627
37628cat >>confdefs.h <<_ACEOF
37629#define HAVE_DECL_SNPRINTF $ac_have_decl
37630_ACEOF
37631
37632    # strdup and putenv are declared in windows headers but marked deprecated
37633    ac_fn_c_check_decl "$LINENO" "_strdup" "ac_cv_have_decl__strdup" "$ac_includes_default
37634"
37635if test "x$ac_cv_have_decl__strdup" = xyes; then :
37636  ac_have_decl=1
37637else
37638  ac_have_decl=0
37639fi
37640
37641cat >>confdefs.h <<_ACEOF
37642#define HAVE_DECL__STRDUP $ac_have_decl
37643_ACEOF
37644
37645    ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default
37646"
37647if test "x$ac_cv_have_decl__putenv" = xyes; then :
37648  ac_have_decl=1
37649else
37650  ac_have_decl=0
37651fi
37652
37653cat >>confdefs.h <<_ACEOF
37654#define HAVE_DECL__PUTENV $ac_have_decl
37655_ACEOF
37656
37657    # Could add mkdir and access for hwloc-gather-cpuid.c on Windows
37658
37659    broken_snprintf=no
37660    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf is correct" >&5
37661$as_echo_n "checking whether snprintf is correct... " >&6; }
37662    if test "$cross_compiling" = yes; then :
37663
37664	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know (cross-compiling)" >&5
37665$as_echo "don't know (cross-compiling)" >&6; }
37666	  broken_snprintf=maybe
37667
37668else
37669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37670/* end confdefs.h.  */
37671
37672
37673#include <stdio.h>
37674#include <string.h>
37675#include <assert.h>
37676
37677int
37678main ()
37679{
37680
37681char buf[7];
37682assert(snprintf(buf, 7, "abcdef") == 6);
37683assert(snprintf(buf, 6, "abcdef") == 6);
37684assert(snprintf(buf, 5, "abcdef") == 6);
37685assert(snprintf(buf, 0, "abcdef") == 6);
37686assert(snprintf(NULL, 0, "abcdef") == 6);
37687return 0;
37688
37689  ;
37690  return 0;
37691}
37692_ACEOF
37693if ac_fn_c_try_run "$LINENO"; then :
37694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37695$as_echo "yes" >&6; }
37696else
37697
37698	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37699$as_echo "no" >&6; }
37700	  broken_snprintf=yes
37701
37702fi
37703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37704  conftest.$ac_objext conftest.beam conftest.$ac_ext
37705fi
37706
37707
37708    if test x$broken_snprintf = xno; then
37709
37710$as_echo "#define HWLOC_HAVE_CORRECT_SNPRINTF 1" >>confdefs.h
37711
37712    fi
37713
37714    ac_fn_c_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "$ac_includes_default
37715"
37716if test "x$ac_cv_have_decl_getprogname" = xyes; then :
37717  ac_have_decl=1
37718else
37719  ac_have_decl=0
37720fi
37721
37722cat >>confdefs.h <<_ACEOF
37723#define HAVE_DECL_GETPROGNAME $ac_have_decl
37724_ACEOF
37725
37726    ac_fn_c_check_decl "$LINENO" "getexecname" "ac_cv_have_decl_getexecname" "$ac_includes_default
37727"
37728if test "x$ac_cv_have_decl_getexecname" = xyes; then :
37729  ac_have_decl=1
37730else
37731  ac_have_decl=0
37732fi
37733
37734cat >>confdefs.h <<_ACEOF
37735#define HAVE_DECL_GETEXECNAME $ac_have_decl
37736_ACEOF
37737
37738    # program_invocation_name and __progname may be available but not exported in headers
37739    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5
37740$as_echo_n "checking for program_invocation_name... " >&6; }
37741    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37742/* end confdefs.h.  */
37743
37744		#ifndef _GNU_SOURCE
37745		# define _GNU_SOURCE
37746		#endif
37747		#include <errno.h>
37748		#include <stdio.h>
37749		extern char *program_invocation_name;
37750
37751int
37752main ()
37753{
37754
37755		return printf("%s\n", program_invocation_name);
37756
37757  ;
37758  return 0;
37759}
37760_ACEOF
37761if ac_fn_c_try_link "$LINENO"; then :
37762
37763$as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
37764
37765		 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37766$as_echo "yes" >&6; }
37767
37768else
37769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37770$as_echo "no" >&6; }
37771fi
37772rm -f core conftest.err conftest.$ac_objext \
37773    conftest$ac_exeext conftest.$ac_ext
37774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
37775$as_echo_n "checking for __progname... " >&6; }
37776    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37777/* end confdefs.h.  */
37778
37779		#include <stdio.h>
37780		extern char *__progname;
37781
37782int
37783main ()
37784{
37785
37786		return printf("%s\n", __progname);
37787
37788  ;
37789  return 0;
37790}
37791_ACEOF
37792if ac_fn_c_try_link "$LINENO"; then :
37793
37794$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
37795
37796		 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37797$as_echo "yes" >&6; }
37798
37799else
37800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37801$as_echo "no" >&6; }
37802fi
37803rm -f core conftest.err conftest.$ac_objext \
37804    conftest$ac_exeext conftest.$ac_ext
37805
37806    case ${target} in
37807      *-*-mingw*|*-*-cygwin*)
37808        hwloc_pid_t=HANDLE
37809        hwloc_thread_t=HANDLE
37810        ;;
37811      *)
37812        hwloc_pid_t=pid_t
37813        ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "#include <pthread.h>
37814"
37815if test "x$ac_cv_type_pthread_t" = xyes; then :
37816
37817cat >>confdefs.h <<_ACEOF
37818#define HAVE_PTHREAD_T 1
37819_ACEOF
37820
37821hwloc_thread_t=pthread_t
37822else
37823  :
37824fi
37825
37826        ;;
37827    esac
37828
37829cat >>confdefs.h <<_ACEOF
37830#define hwloc_pid_t $hwloc_pid_t
37831_ACEOF
37832
37833    if test "x$hwloc_thread_t" != "x" ; then
37834
37835cat >>confdefs.h <<_ACEOF
37836#define hwloc_thread_t $hwloc_thread_t
37837_ACEOF
37838
37839    fi
37840
37841    # Extract the first word of "bash", so it can be a program name with args.
37842set dummy bash; ac_word=$2
37843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
37844$as_echo_n "checking for $ac_word... " >&6; }
37845if ${ac_cv_path_BASH+:} false; then :
37846  $as_echo_n "(cached) " >&6
37847else
37848  case $BASH in
37849  [\\/]* | ?:[\\/]*)
37850  ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
37851  ;;
37852  *)
37853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37854for as_dir in $PATH
37855do
37856  IFS=$as_save_IFS
37857  test -z "$as_dir" && as_dir=.
37858    for ac_exec_ext in '' $ac_executable_extensions; do
37859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37860    ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
37861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
37862    break 2
37863  fi
37864done
37865  done
37866IFS=$as_save_IFS
37867
37868  ;;
37869esac
37870fi
37871BASH=$ac_cv_path_BASH
37872if test -n "$BASH"; then
37873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
37874$as_echo "$BASH" >&6; }
37875else
37876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37877$as_echo "no" >&6; }
37878fi
37879
37880
37881
37882    for ac_func in ffs
37883do :
37884  ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
37885if test "x$ac_cv_func_ffs" = xyes; then :
37886  cat >>confdefs.h <<_ACEOF
37887#define HAVE_FFS 1
37888_ACEOF
37889
37890
37891  ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
37892if test "x$ac_cv_have_decl_ffs" = xyes; then :
37893
37894    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function ffs has a complete prototype" >&5
37895$as_echo_n "checking whether function ffs has a complete prototype... " >&6; }
37896
37897    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37898/* end confdefs.h.  */
37899$ac_includes_default
37900int
37901main ()
37902{
37903ffs(1,2,3,4,5,6,7,8,9,10);
37904
37905  ;
37906  return 0;
37907}
37908_ACEOF
37909if ac_fn_c_try_compile "$LINENO"; then :
37910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37911$as_echo "no" >&6; }
37912
37913else
37914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37915$as_echo "yes" >&6; }
37916
37917
37918$as_echo "#define HWLOC_HAVE_DECL_FFS 1" >>confdefs.h
37919
37920
37921
37922fi
37923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37924fi
37925
37926
37927
37928$as_echo "#define HWLOC_HAVE_FFS 1" >>confdefs.h
37929
37930      if ( $CC --version | grep gccfss ) >/dev/null 2>&1 ; then
37931
37932$as_echo "#define HWLOC_HAVE_BROKEN_FFS 1" >>confdefs.h
37933
37934      fi
37935
37936fi
37937done
37938
37939    for ac_func in ffsl
37940do :
37941  ac_fn_c_check_func "$LINENO" "ffsl" "ac_cv_func_ffsl"
37942if test "x$ac_cv_func_ffsl" = xyes; then :
37943  cat >>confdefs.h <<_ACEOF
37944#define HAVE_FFSL 1
37945_ACEOF
37946
37947
37948  ac_fn_c_check_decl "$LINENO" "ffsl" "ac_cv_have_decl_ffsl" "$ac_includes_default"
37949if test "x$ac_cv_have_decl_ffsl" = xyes; then :
37950
37951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function ffsl has a complete prototype" >&5
37952$as_echo_n "checking whether function ffsl has a complete prototype... " >&6; }
37953
37954    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37955/* end confdefs.h.  */
37956$ac_includes_default
37957int
37958main ()
37959{
37960ffsl(1,2,3,4,5,6,7,8,9,10);
37961
37962  ;
37963  return 0;
37964}
37965_ACEOF
37966if ac_fn_c_try_compile "$LINENO"; then :
37967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37968$as_echo "no" >&6; }
37969
37970else
37971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37972$as_echo "yes" >&6; }
37973
37974
37975$as_echo "#define HWLOC_HAVE_DECL_FFSL 1" >>confdefs.h
37976
37977
37978
37979fi
37980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37981fi
37982
37983
37984
37985$as_echo "#define HWLOC_HAVE_FFSL 1" >>confdefs.h
37986
37987
37988fi
37989done
37990
37991
37992    for ac_func in fls
37993do :
37994  ac_fn_c_check_func "$LINENO" "fls" "ac_cv_func_fls"
37995if test "x$ac_cv_func_fls" = xyes; then :
37996  cat >>confdefs.h <<_ACEOF
37997#define HAVE_FLS 1
37998_ACEOF
37999
38000
38001  ac_fn_c_check_decl "$LINENO" "fls" "ac_cv_have_decl_fls" "$ac_includes_default"
38002if test "x$ac_cv_have_decl_fls" = xyes; then :
38003
38004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function fls has a complete prototype" >&5
38005$as_echo_n "checking whether function fls has a complete prototype... " >&6; }
38006
38007    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38008/* end confdefs.h.  */
38009$ac_includes_default
38010int
38011main ()
38012{
38013fls(1,2,3,4,5,6,7,8,9,10);
38014
38015  ;
38016  return 0;
38017}
38018_ACEOF
38019if ac_fn_c_try_compile "$LINENO"; then :
38020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38021$as_echo "no" >&6; }
38022
38023else
38024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38025$as_echo "yes" >&6; }
38026
38027
38028$as_echo "#define HWLOC_HAVE_DECL_FLS 1" >>confdefs.h
38029
38030
38031
38032fi
38033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38034fi
38035
38036
38037
38038$as_echo "#define HWLOC_HAVE_FLS 1" >>confdefs.h
38039
38040
38041fi
38042done
38043
38044    for ac_func in flsl
38045do :
38046  ac_fn_c_check_func "$LINENO" "flsl" "ac_cv_func_flsl"
38047if test "x$ac_cv_func_flsl" = xyes; then :
38048  cat >>confdefs.h <<_ACEOF
38049#define HAVE_FLSL 1
38050_ACEOF
38051
38052
38053  ac_fn_c_check_decl "$LINENO" "flsl" "ac_cv_have_decl_flsl" "$ac_includes_default"
38054if test "x$ac_cv_have_decl_flsl" = xyes; then :
38055
38056    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function flsl has a complete prototype" >&5
38057$as_echo_n "checking whether function flsl has a complete prototype... " >&6; }
38058
38059    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38060/* end confdefs.h.  */
38061$ac_includes_default
38062int
38063main ()
38064{
38065flsl(1,2,3,4,5,6,7,8,9,10);
38066
38067  ;
38068  return 0;
38069}
38070_ACEOF
38071if ac_fn_c_try_compile "$LINENO"; then :
38072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38073$as_echo "no" >&6; }
38074
38075else
38076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38077$as_echo "yes" >&6; }
38078
38079
38080$as_echo "#define HWLOC_HAVE_DECL_FLSL 1" >>confdefs.h
38081
38082
38083
38084fi
38085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38086fi
38087
38088
38089
38090$as_echo "#define HWLOC_HAVE_FLSL 1" >>confdefs.h
38091
38092
38093fi
38094done
38095
38096
38097    for ac_func in clz
38098do :
38099  ac_fn_c_check_func "$LINENO" "clz" "ac_cv_func_clz"
38100if test "x$ac_cv_func_clz" = xyes; then :
38101  cat >>confdefs.h <<_ACEOF
38102#define HAVE_CLZ 1
38103_ACEOF
38104
38105
38106  ac_fn_c_check_decl "$LINENO" "clz" "ac_cv_have_decl_clz" "$ac_includes_default"
38107if test "x$ac_cv_have_decl_clz" = xyes; then :
38108
38109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function clz has a complete prototype" >&5
38110$as_echo_n "checking whether function clz has a complete prototype... " >&6; }
38111
38112    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38113/* end confdefs.h.  */
38114$ac_includes_default
38115int
38116main ()
38117{
38118clz(1,2,3,4,5,6,7,8,9,10);
38119
38120  ;
38121  return 0;
38122}
38123_ACEOF
38124if ac_fn_c_try_compile "$LINENO"; then :
38125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38126$as_echo "no" >&6; }
38127
38128else
38129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38130$as_echo "yes" >&6; }
38131
38132
38133$as_echo "#define HWLOC_HAVE_DECL_CLZ 1" >>confdefs.h
38134
38135
38136
38137fi
38138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38139fi
38140
38141
38142
38143$as_echo "#define HWLOC_HAVE_CLZ 1" >>confdefs.h
38144
38145
38146fi
38147done
38148
38149    for ac_func in clzl
38150do :
38151  ac_fn_c_check_func "$LINENO" "clzl" "ac_cv_func_clzl"
38152if test "x$ac_cv_func_clzl" = xyes; then :
38153  cat >>confdefs.h <<_ACEOF
38154#define HAVE_CLZL 1
38155_ACEOF
38156
38157
38158  ac_fn_c_check_decl "$LINENO" "clzl" "ac_cv_have_decl_clzl" "$ac_includes_default"
38159if test "x$ac_cv_have_decl_clzl" = xyes; then :
38160
38161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether function clzl has a complete prototype" >&5
38162$as_echo_n "checking whether function clzl has a complete prototype... " >&6; }
38163
38164    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38165/* end confdefs.h.  */
38166$ac_includes_default
38167int
38168main ()
38169{
38170clzl(1,2,3,4,5,6,7,8,9,10);
38171
38172  ;
38173  return 0;
38174}
38175_ACEOF
38176if ac_fn_c_try_compile "$LINENO"; then :
38177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38178$as_echo "no" >&6; }
38179
38180else
38181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38182$as_echo "yes" >&6; }
38183
38184
38185$as_echo "#define HWLOC_HAVE_DECL_CLZL 1" >>confdefs.h
38186
38187
38188
38189fi
38190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38191fi
38192
38193
38194
38195$as_echo "#define HWLOC_HAVE_CLZL 1" >>confdefs.h
38196
38197
38198fi
38199done
38200
38201
38202    if test "$hwloc_c_vendor" != "android"; then :
38203  for ac_func in openat
38204do :
38205  ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
38206if test "x$ac_cv_func_openat" = xyes; then :
38207  cat >>confdefs.h <<_ACEOF
38208#define HAVE_OPENAT 1
38209_ACEOF
38210 hwloc_have_openat=yes
38211fi
38212done
38213
38214fi
38215
38216    for ac_header in malloc.h
38217do :
38218  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
38219if test "x$ac_cv_header_malloc_h" = xyes; then :
38220  cat >>confdefs.h <<_ACEOF
38221#define HAVE_MALLOC_H 1
38222_ACEOF
38223
38224fi
38225
38226done
38227
38228    for ac_func in getpagesize memalign posix_memalign
38229do :
38230  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38231ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38232if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38233  cat >>confdefs.h <<_ACEOF
38234#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38235_ACEOF
38236
38237fi
38238done
38239
38240
38241    for ac_header in sys/utsname.h
38242do :
38243  ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
38244if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
38245  cat >>confdefs.h <<_ACEOF
38246#define HAVE_SYS_UTSNAME_H 1
38247_ACEOF
38248
38249fi
38250
38251done
38252
38253    for ac_func in uname
38254do :
38255  ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
38256if test "x$ac_cv_func_uname" = xyes; then :
38257  cat >>confdefs.h <<_ACEOF
38258#define HAVE_UNAME 1
38259_ACEOF
38260
38261fi
38262done
38263
38264
38265                                if test "$hwloc_mode" != "embedded"; then :
38266  for ac_header in valgrind/valgrind.h
38267do :
38268  ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
38269if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
38270  cat >>confdefs.h <<_ACEOF
38271#define HAVE_VALGRIND_VALGRIND_H 1
38272_ACEOF
38273
38274fi
38275
38276done
38277
38278         ac_fn_c_check_decl "$LINENO" "RUNNING_ON_VALGRIND" "ac_cv_have_decl_RUNNING_ON_VALGRIND" "#include <valgrind/valgrind.h>
38279"
38280if test "x$ac_cv_have_decl_RUNNING_ON_VALGRIND" = xyes; then :
38281  ac_have_decl=1
38282else
38283  ac_have_decl=0
38284fi
38285
38286cat >>confdefs.h <<_ACEOF
38287#define HAVE_DECL_RUNNING_ON_VALGRIND $ac_have_decl
38288_ACEOF
38289if test $ac_have_decl = 1; then :
38290
38291else
38292  :
38293fi
38294
38295
38296else
38297
38298
38299$as_echo "#define HAVE_DECL_RUNNING_ON_VALGRIND 0" >>confdefs.h
38300
38301
38302fi
38303
38304    if test "x$enable_32bits_pci_domain" = "xyes"; then :
38305
38306
38307$as_echo "#define HWLOC_HAVE_32BITS_PCI_DOMAIN 1" >>confdefs.h
38308
38309
38310fi
38311
38312    # PCI support via libpciaccess.  NOTE: we do not support
38313    # libpci/pciutils because that library is GPL and is incompatible
38314    # with our BSD license.
38315    hwloc_pciaccess_happy=no
38316    if test "x$enable_io" != xno && test "x$enable_pci" != xno; then
38317      hwloc_pciaccess_happy=yes
38318
38319
38320    HWLOC_pkg_failed=no
38321    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
38322$as_echo_n "checking for PCIACCESS... " >&6; }
38323
38324    if test -n "$PKG_CONFIG"; then
38325    if test -n "$HWLOC_PCIACCESS_CFLAGS"; then
38326        HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS="$HWLOC_PCIACCESS_CFLAGS"
38327    else
38328        if test -n "$PKG_CONFIG" && \
38329    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"pciaccess\""; } >&5
38330  ($PKG_CONFIG --exists --silence-errors "pciaccess") 2>&5
38331  ac_status=$?
38332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38333  test $ac_status = 0; }; then
38334    HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess" 2>/dev/null`
38335    else
38336                     HWLOC_pkg_failed=yes
38337fi
38338    fi
38339else
38340	HWLOC_pkg_failed=untried
38341fi
38342
38343    if test -n "$PKG_CONFIG"; then
38344    if test -n "$HWLOC_PCIACCESS_LIBS"; then
38345        HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS="$HWLOC_PCIACCESS_LIBS"
38346    else
38347        if test -n "$PKG_CONFIG" && \
38348    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"pciaccess\""; } >&5
38349  ($PKG_CONFIG --exists --silence-errors "pciaccess") 2>&5
38350  ac_status=$?
38351  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38352  test $ac_status = 0; }; then
38353    HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess" 2>/dev/null`
38354    else
38355                     HWLOC_pkg_failed=yes
38356fi
38357    fi
38358else
38359	HWLOC_pkg_failed=untried
38360fi
38361
38362
38363
38364
38365    # Check for failure of pkg-config
38366    if test $HWLOC_pkg_failed = yes; then
38367
38368if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38369        HWLOC_pkg_short_errors_supported=yes
38370else
38371        HWLOC_pkg_short_errors_supported=no
38372fi
38373        if test $HWLOC_pkg_short_errors_supported = yes; then
38374            HWLOC_PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pciaccess" 2>&1`
38375        else
38376            HWLOC_PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess" 2>&1`
38377        fi
38378        # Put the nasty error message in config.log where it belongs
38379	echo "$HWLOC_PCIACCESS_PKG_ERRORS" >&5
38380
38381	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38382$as_echo "no" >&6; }
38383                hwloc_pciaccess_happy=no
38384    elif test $HWLOC_pkg_failed = untried; then
38385        { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5
38386$as_echo "cannot check without pkg-config" >&6; }
38387		hwloc_pciaccess_happy=no
38388    else
38389        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38390$as_echo "yes" >&6; }
38391
38392        # If we got good results from pkg-config, check that they
38393        # actually work (i.e., that we can link against the resulting
38394        # $LIBS).  The canonical example why we do this is if
38395        # pkg-config returns 64 bit libraries but ./configure was run
38396        # with CFLAGS=-m32 LDFLAGS=-m32.  pkg-config gave us valid
38397        # results, but we'll fail if we try to link.  So detect that
38398        # failure now.
38399        # There are also cases on Mac where pkg-config returns paths
38400        # that do not actually exists until some magic is applied.
38401        # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
38402        # So check whether we find the header as well.
38403        hwloc_cflags_save=$CFLAGS
38404        hwloc_cppflags_save=$CPPFLAGS
38405        hwloc_libs_save=$LIBS
38406        CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS"
38407        CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS"
38408        LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS"
38409        ac_fn_c_check_header_mongrel "$LINENO" "pciaccess.h" "ac_cv_header_pciaccess_h" "$ac_includes_default"
38410if test "x$ac_cv_header_pciaccess_h" = xyes; then :
38411
38412            ac_fn_c_check_func "$LINENO" "pci_slot_match_iterator_create" "ac_cv_func_pci_slot_match_iterator_create"
38413if test "x$ac_cv_func_pci_slot_match_iterator_create" = xyes; then :
38414  hwloc_result=yes
38415else
38416  hwloc_result=no
38417fi
38418
38419
38420else
38421  hwloc_result=no
38422fi
38423
38424
38425        CFLAGS=$hwloc_cflags_save
38426        CPPFLAGS=$hwloc_cppflags_save
38427        LIBS=$hwloc_libs_save
38428
38429        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for final PCIACCESS support" >&5
38430$as_echo_n "checking for final PCIACCESS support... " >&6; }
38431        if test "$hwloc_result" = "yes"; then :
38432  HWLOC_PCIACCESS_CFLAGS=$HWLOC_pkg_cv_HWLOC_PCIACCESS_CFLAGS
38433               HWLOC_PCIACCESS_LIBS=$HWLOC_pkg_cv_HWLOC_PCIACCESS_LIBS
38434               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38435$as_echo "yes" >&6; }
38436               :
38437else
38438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38439$as_echo "no" >&6; }
38440               hwloc_pciaccess_happy=no
38441fi
38442    fi
38443
38444      # Only add the REQUIRES if we got pciaccess through pkg-config.
38445      # Otherwise we don't know if pciaccess.pc is installed
38446      if test "$hwloc_pciaccess_happy" = "yes"; then :
38447  HWLOC_PCIACCESS_REQUIRES=pciaccess
38448fi
38449
38450      # Just for giggles, if we didn't find a pciaccess pkg-config,
38451      # just try looking for its header file and library.
38452      if test "$hwloc_pciaccess_happy" != "yes"; then :
38453  ac_fn_c_check_header_mongrel "$LINENO" "pciaccess.h" "ac_cv_header_pciaccess_h" "$ac_includes_default"
38454if test "x$ac_cv_header_pciaccess_h" = xyes; then :
38455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pci_slot_match_iterator_create in -lpciaccess" >&5
38456$as_echo_n "checking for pci_slot_match_iterator_create in -lpciaccess... " >&6; }
38457if ${ac_cv_lib_pciaccess_pci_slot_match_iterator_create+:} false; then :
38458  $as_echo_n "(cached) " >&6
38459else
38460  ac_check_lib_save_LIBS=$LIBS
38461LIBS="-lpciaccess  $LIBS"
38462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38463/* end confdefs.h.  */
38464
38465/* Override any GCC internal prototype to avoid an error.
38466   Use char because int might match the return type of a GCC
38467   builtin and then its argument prototype would still apply.  */
38468#ifdef __cplusplus
38469extern "C"
38470#endif
38471char pci_slot_match_iterator_create ();
38472int
38473main ()
38474{
38475return pci_slot_match_iterator_create ();
38476  ;
38477  return 0;
38478}
38479_ACEOF
38480if ac_fn_c_try_link "$LINENO"; then :
38481  ac_cv_lib_pciaccess_pci_slot_match_iterator_create=yes
38482else
38483  ac_cv_lib_pciaccess_pci_slot_match_iterator_create=no
38484fi
38485rm -f core conftest.err conftest.$ac_objext \
38486    conftest$ac_exeext conftest.$ac_ext
38487LIBS=$ac_check_lib_save_LIBS
38488fi
38489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pciaccess_pci_slot_match_iterator_create" >&5
38490$as_echo "$ac_cv_lib_pciaccess_pci_slot_match_iterator_create" >&6; }
38491if test "x$ac_cv_lib_pciaccess_pci_slot_match_iterator_create" = xyes; then :
38492  hwloc_pciaccess_happy=yes
38493                    HWLOC_PCIACCESS_LIBS="-lpciaccess"
38494fi
38495
38496
38497fi
38498
38499
38500
38501fi
38502
38503      if test "$hwloc_pciaccess_happy" = "yes"; then :
38504  hwloc_components="$hwloc_components pci"
38505          hwloc_pci_component_maybeplugin=1
38506fi
38507    fi
38508    # If we asked for pci support but couldn't deliver, fail
38509    if test "$enable_pci" = "yes" -a "$hwloc_pciaccess_happy" = "no"; then :
38510  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-pci switch, but could not" >&5
38511$as_echo "$as_me: WARNING: Specified --enable-pci switch, but could not" >&2;}
38512           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
38513$as_echo "$as_me: WARNING: find appropriate support" >&2;}
38514           as_fn_error $? "Cannot continue" "$LINENO" 5
38515fi
38516    # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
38517
38518    # OpenCL support
38519    hwloc_opencl_happy=no
38520    if test "x$enable_io" != xno && test "x$enable_opencl" != "xno"; then
38521      hwloc_opencl_happy=yes
38522      case ${target} in
38523      *-*-darwin*)
38524        # On Darwin, only use the OpenCL framework
38525        for ac_header in OpenCL/cl_ext.h
38526do :
38527  ac_fn_c_check_header_mongrel "$LINENO" "OpenCL/cl_ext.h" "ac_cv_header_OpenCL_cl_ext_h" "$ac_includes_default"
38528if test "x$ac_cv_header_OpenCL_cl_ext_h" = xyes; then :
38529  cat >>confdefs.h <<_ACEOF
38530#define HAVE_OPENCL_CL_EXT_H 1
38531_ACEOF
38532
38533	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the OpenCL framework" >&5
38534$as_echo_n "checking for the OpenCL framework... " >&6; }
38535          tmp_save_LDFLAGS="$LDFLAGS"
38536          LDFLAGS="$LDFLAGS -framework OpenCL"
38537	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38538/* end confdefs.h.  */
38539
38540
38541#include <OpenCL/opencl.h>
38542
38543int
38544main ()
38545{
38546
38547return clGetDeviceIDs(0, 0, 0, NULL, NULL);
38548
38549  ;
38550  return 0;
38551}
38552_ACEOF
38553if ac_fn_c_try_link "$LINENO"; then :
38554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38555$as_echo "yes" >&6; }
38556	   HWLOC_OPENCL_LDFLAGS="-framework OpenCL"
38557else
38558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38559$as_echo "no" >&6; }
38560	   hwloc_opencl_happy=no
38561fi
38562rm -f core conftest.err conftest.$ac_objext \
38563    conftest$ac_exeext conftest.$ac_ext
38564          LDFLAGS="$tmp_save_LDFLAGS"
38565
38566else
38567  hwloc_opencl_happy=no
38568fi
38569
38570done
38571
38572      ;;
38573      *)
38574        # On Others, look for OpenCL at normal locations
38575        for ac_header in CL/cl_ext.h
38576do :
38577  ac_fn_c_check_header_mongrel "$LINENO" "CL/cl_ext.h" "ac_cv_header_CL_cl_ext_h" "$ac_includes_default"
38578if test "x$ac_cv_header_CL_cl_ext_h" = xyes; then :
38579  cat >>confdefs.h <<_ACEOF
38580#define HAVE_CL_CL_EXT_H 1
38581_ACEOF
38582
38583	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetDeviceIDs in -lOpenCL" >&5
38584$as_echo_n "checking for clGetDeviceIDs in -lOpenCL... " >&6; }
38585if ${ac_cv_lib_OpenCL_clGetDeviceIDs+:} false; then :
38586  $as_echo_n "(cached) " >&6
38587else
38588  ac_check_lib_save_LIBS=$LIBS
38589LIBS="-lOpenCL  $LIBS"
38590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38591/* end confdefs.h.  */
38592
38593/* Override any GCC internal prototype to avoid an error.
38594   Use char because int might match the return type of a GCC
38595   builtin and then its argument prototype would still apply.  */
38596#ifdef __cplusplus
38597extern "C"
38598#endif
38599char clGetDeviceIDs ();
38600int
38601main ()
38602{
38603return clGetDeviceIDs ();
38604  ;
38605  return 0;
38606}
38607_ACEOF
38608if ac_fn_c_try_link "$LINENO"; then :
38609  ac_cv_lib_OpenCL_clGetDeviceIDs=yes
38610else
38611  ac_cv_lib_OpenCL_clGetDeviceIDs=no
38612fi
38613rm -f core conftest.err conftest.$ac_objext \
38614    conftest$ac_exeext conftest.$ac_ext
38615LIBS=$ac_check_lib_save_LIBS
38616fi
38617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetDeviceIDs" >&5
38618$as_echo "$ac_cv_lib_OpenCL_clGetDeviceIDs" >&6; }
38619if test "x$ac_cv_lib_OpenCL_clGetDeviceIDs" = xyes; then :
38620  HWLOC_OPENCL_LIBS="-lOpenCL"
38621else
38622  hwloc_opencl_happy=no
38623fi
38624
38625
38626else
38627  hwloc_opencl_happy=no
38628fi
38629
38630done
38631
38632      ;;
38633      esac
38634    fi
38635
38636
38637
38638    # If we asked for opencl support but couldn't deliver, fail
38639    if test "$enable_opencl" = "yes" -a "$hwloc_opencl_happy" = "no"; then :
38640  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-opencl switch, but could not" >&5
38641$as_echo "$as_me: WARNING: Specified --enable-opencl switch, but could not" >&2;}
38642           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
38643$as_echo "$as_me: WARNING: find appropriate support" >&2;}
38644           as_fn_error $? "Cannot continue" "$LINENO" 5
38645fi
38646    if test "x$hwloc_opencl_happy" = "xyes"; then
38647
38648$as_echo "#define HWLOC_HAVE_OPENCL 1" >>confdefs.h
38649
38650      HWLOC_HAVE_OPENCL=1
38651
38652      hwloc_components="$hwloc_components opencl"
38653      hwloc_opencl_component_maybeplugin=1
38654    else
38655      HWLOC_HAVE_OPENCL=0
38656
38657    fi
38658    # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
38659
38660    # CUDA support
38661    hwloc_have_cuda=no
38662    hwloc_have_cudart=no
38663    if test "x$enable_io" != xno && test "x$enable_cuda" != "xno"; then
38664      for ac_header in cuda.h
38665do :
38666  ac_fn_c_check_header_mongrel "$LINENO" "cuda.h" "ac_cv_header_cuda_h" "$ac_includes_default"
38667if test "x$ac_cv_header_cuda_h" = xyes; then :
38668  cat >>confdefs.h <<_ACEOF
38669#define HAVE_CUDA_H 1
38670_ACEOF
38671
38672        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CUDA_VERSION >= 3020" >&5
38673$as_echo_n "checking if CUDA_VERSION >= 3020... " >&6; }
38674        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38675/* end confdefs.h.  */
38676
38677#include <cuda.h>
38678#ifndef CUDA_VERSION
38679#error CUDA_VERSION undefined
38680#elif CUDA_VERSION < 3020
38681#error CUDA_VERSION too old
38682#endif
38683int
38684main ()
38685{
38686int i = 3;
38687  ;
38688  return 0;
38689}
38690_ACEOF
38691if ac_fn_c_try_compile "$LINENO"; then :
38692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38693$as_echo "yes" >&6; }
38694          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cuInit in -lcuda" >&5
38695$as_echo_n "checking for cuInit in -lcuda... " >&6; }
38696if ${ac_cv_lib_cuda_cuInit+:} false; then :
38697  $as_echo_n "(cached) " >&6
38698else
38699  ac_check_lib_save_LIBS=$LIBS
38700LIBS="-lcuda  $LIBS"
38701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38702/* end confdefs.h.  */
38703
38704/* Override any GCC internal prototype to avoid an error.
38705   Use char because int might match the return type of a GCC
38706   builtin and then its argument prototype would still apply.  */
38707#ifdef __cplusplus
38708extern "C"
38709#endif
38710char cuInit ();
38711int
38712main ()
38713{
38714return cuInit ();
38715  ;
38716  return 0;
38717}
38718_ACEOF
38719if ac_fn_c_try_link "$LINENO"; then :
38720  ac_cv_lib_cuda_cuInit=yes
38721else
38722  ac_cv_lib_cuda_cuInit=no
38723fi
38724rm -f core conftest.err conftest.$ac_objext \
38725    conftest$ac_exeext conftest.$ac_ext
38726LIBS=$ac_check_lib_save_LIBS
38727fi
38728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cuda_cuInit" >&5
38729$as_echo "$ac_cv_lib_cuda_cuInit" >&6; }
38730if test "x$ac_cv_lib_cuda_cuInit" = xyes; then :
38731
38732$as_echo "#define HAVE_CUDA 1" >>confdefs.h
38733
38734                        hwloc_have_cuda=yes
38735fi
38736
38737else
38738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38739$as_echo "no" >&6; }
38740fi
38741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38742fi
38743
38744done
38745
38746
38747      for ac_header in cuda_runtime_api.h
38748do :
38749  ac_fn_c_check_header_mongrel "$LINENO" "cuda_runtime_api.h" "ac_cv_header_cuda_runtime_api_h" "$ac_includes_default"
38750if test "x$ac_cv_header_cuda_runtime_api_h" = xyes; then :
38751  cat >>confdefs.h <<_ACEOF
38752#define HAVE_CUDA_RUNTIME_API_H 1
38753_ACEOF
38754
38755        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CUDART_VERSION >= 3020" >&5
38756$as_echo_n "checking if CUDART_VERSION >= 3020... " >&6; }
38757        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38758/* end confdefs.h.  */
38759
38760#include <cuda_runtime_api.h>
38761#ifndef CUDART_VERSION
38762#error CUDART_VERSION undefined
38763#elif CUDART_VERSION < 3020
38764#error CUDART_VERSION too old
38765#endif
38766int
38767main ()
38768{
38769int i = 3;
38770  ;
38771  return 0;
38772}
38773_ACEOF
38774if ac_fn_c_try_compile "$LINENO"; then :
38775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38776$as_echo "yes" >&6; }
38777          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaGetDeviceProperties in -lcudart" >&5
38778$as_echo_n "checking for cudaGetDeviceProperties in -lcudart... " >&6; }
38779if ${ac_cv_lib_cudart_cudaGetDeviceProperties+:} false; then :
38780  $as_echo_n "(cached) " >&6
38781else
38782  ac_check_lib_save_LIBS=$LIBS
38783LIBS="-lcudart  $LIBS"
38784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38785/* end confdefs.h.  */
38786
38787/* Override any GCC internal prototype to avoid an error.
38788   Use char because int might match the return type of a GCC
38789   builtin and then its argument prototype would still apply.  */
38790#ifdef __cplusplus
38791extern "C"
38792#endif
38793char cudaGetDeviceProperties ();
38794int
38795main ()
38796{
38797return cudaGetDeviceProperties ();
38798  ;
38799  return 0;
38800}
38801_ACEOF
38802if ac_fn_c_try_link "$LINENO"; then :
38803  ac_cv_lib_cudart_cudaGetDeviceProperties=yes
38804else
38805  ac_cv_lib_cudart_cudaGetDeviceProperties=no
38806fi
38807rm -f core conftest.err conftest.$ac_objext \
38808    conftest$ac_exeext conftest.$ac_ext
38809LIBS=$ac_check_lib_save_LIBS
38810fi
38811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaGetDeviceProperties" >&5
38812$as_echo "$ac_cv_lib_cudart_cudaGetDeviceProperties" >&6; }
38813if test "x$ac_cv_lib_cudart_cudaGetDeviceProperties" = xyes; then :
38814
38815            HWLOC_CUDA_LIBS="-lcudart"
38816
38817            hwloc_have_cudart=yes
38818
38819$as_echo "#define HWLOC_HAVE_CUDART 1" >>confdefs.h
38820
38821
38822fi
38823
38824
38825fi
38826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38827
38828fi
38829
38830done
38831
38832
38833      if test "$enable_cuda" = "yes" -a "$hwloc_have_cudart" = "no"; then :
38834  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-cuda switch, but could not" >&5
38835$as_echo "$as_me: WARNING: Specified --enable-cuda switch, but could not" >&2;}
38836             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
38837$as_echo "$as_me: WARNING: find appropriate support" >&2;}
38838             as_fn_error $? "Cannot continue" "$LINENO" 5
38839fi
38840
38841      if test "x$hwloc_have_cudart" = "xyes"; then
38842	hwloc_components="$hwloc_components cuda"
38843        hwloc_cuda_component_maybeplugin=1
38844      fi
38845    fi
38846    # don't add LIBS/CFLAGS yet, depends on plugins
38847
38848    # NVML support
38849    hwloc_nvml_happy=no
38850    if test "x$enable_io" != xno && test "x$enable_nvml" != "xno"; then
38851	hwloc_nvml_happy=yes
38852	for ac_header in nvml.h
38853do :
38854  ac_fn_c_check_header_mongrel "$LINENO" "nvml.h" "ac_cv_header_nvml_h" "$ac_includes_default"
38855if test "x$ac_cv_header_nvml_h" = xyes; then :
38856  cat >>confdefs.h <<_ACEOF
38857#define HAVE_NVML_H 1
38858_ACEOF
38859
38860	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvmlInit in -lnvidia-ml" >&5
38861$as_echo_n "checking for nvmlInit in -lnvidia-ml... " >&6; }
38862if ${ac_cv_lib_nvidia_ml_nvmlInit+:} false; then :
38863  $as_echo_n "(cached) " >&6
38864else
38865  ac_check_lib_save_LIBS=$LIBS
38866LIBS="-lnvidia-ml  $LIBS"
38867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38868/* end confdefs.h.  */
38869
38870/* Override any GCC internal prototype to avoid an error.
38871   Use char because int might match the return type of a GCC
38872   builtin and then its argument prototype would still apply.  */
38873#ifdef __cplusplus
38874extern "C"
38875#endif
38876char nvmlInit ();
38877int
38878main ()
38879{
38880return nvmlInit ();
38881  ;
38882  return 0;
38883}
38884_ACEOF
38885if ac_fn_c_try_link "$LINENO"; then :
38886  ac_cv_lib_nvidia_ml_nvmlInit=yes
38887else
38888  ac_cv_lib_nvidia_ml_nvmlInit=no
38889fi
38890rm -f core conftest.err conftest.$ac_objext \
38891    conftest$ac_exeext conftest.$ac_ext
38892LIBS=$ac_check_lib_save_LIBS
38893fi
38894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvidia_ml_nvmlInit" >&5
38895$as_echo "$ac_cv_lib_nvidia_ml_nvmlInit" >&6; }
38896if test "x$ac_cv_lib_nvidia_ml_nvmlInit" = xyes; then :
38897  HWLOC_NVML_LIBS="-lnvidia-ml"
38898else
38899  hwloc_nvml_happy=no
38900fi
38901
38902
38903else
38904  hwloc_nvml_happy=no
38905fi
38906
38907done
38908
38909    fi
38910    if test "x$hwloc_nvml_happy" = "xyes"; then
38911      tmp_save_CFLAGS="$CFLAGS"
38912      CFLAGS="$CFLAGS $HWLOC_NVML_CFLAGS"
38913      tmp_save_LIBS="$LIBS"
38914      LIBS="$LIBS $HWLOC_NVML_LIBS"
38915      ac_fn_c_check_decl "$LINENO" "nvmlDeviceGetMaxPcieLinkGeneration" "ac_cv_have_decl_nvmlDeviceGetMaxPcieLinkGeneration" "#include <nvml.h>
38916"
38917if test "x$ac_cv_have_decl_nvmlDeviceGetMaxPcieLinkGeneration" = xyes; then :
38918  ac_have_decl=1
38919else
38920  ac_have_decl=0
38921fi
38922
38923cat >>confdefs.h <<_ACEOF
38924#define HAVE_DECL_NVMLDEVICEGETMAXPCIELINKGENERATION $ac_have_decl
38925_ACEOF
38926if test $ac_have_decl = 1; then :
38927
38928else
38929  :
38930fi
38931
38932      CFLAGS="$tmp_save_CFLAGS"
38933      LIBS="$tmp_save_LIBS"
38934    fi
38935
38936    # If we asked for nvml support but couldn't deliver, fail
38937    if test "$enable_nvml" = "yes" -a "$hwloc_nvml_happy" = "no"; then :
38938  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-nvml switch, but could not" >&5
38939$as_echo "$as_me: WARNING: Specified --enable-nvml switch, but could not" >&2;}
38940	   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
38941$as_echo "$as_me: WARNING: find appropriate support" >&2;}
38942	   as_fn_error $? "Cannot continue" "$LINENO" 5
38943fi
38944    if test "x$hwloc_nvml_happy" = "xyes"; then
38945
38946$as_echo "#define HWLOC_HAVE_NVML 1" >>confdefs.h
38947
38948      HWLOC_HAVE_NVML=1
38949
38950      hwloc_components="$hwloc_components nvml"
38951      hwloc_nvml_component_maybeplugin=1
38952    else
38953      HWLOC_HAVE_NVML=0
38954
38955    fi
38956    # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
38957
38958    # RSMI support, rocm_smi64 is just library name and not related to 32/64 bits
38959    hwloc_rsmi_happy=no
38960    if test "x$enable_io" != xno && test "x$enable_rsmi" != "xno"; then
38961      hwloc_rsmi_happy=yes
38962      for ac_header in rocm_smi/rocm_smi.h
38963do :
38964  ac_fn_c_check_header_mongrel "$LINENO" "rocm_smi/rocm_smi.h" "ac_cv_header_rocm_smi_rocm_smi_h" "$ac_includes_default"
38965if test "x$ac_cv_header_rocm_smi_rocm_smi_h" = xyes; then :
38966  cat >>confdefs.h <<_ACEOF
38967#define HAVE_ROCM_SMI_ROCM_SMI_H 1
38968_ACEOF
38969
38970        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rsmi_init in -lrocm_smi64" >&5
38971$as_echo_n "checking for rsmi_init in -lrocm_smi64... " >&6; }
38972if ${ac_cv_lib_rocm_smi64_rsmi_init+:} false; then :
38973  $as_echo_n "(cached) " >&6
38974else
38975  ac_check_lib_save_LIBS=$LIBS
38976LIBS="-lrocm_smi64  $LIBS"
38977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38978/* end confdefs.h.  */
38979
38980/* Override any GCC internal prototype to avoid an error.
38981   Use char because int might match the return type of a GCC
38982   builtin and then its argument prototype would still apply.  */
38983#ifdef __cplusplus
38984extern "C"
38985#endif
38986char rsmi_init ();
38987int
38988main ()
38989{
38990return rsmi_init ();
38991  ;
38992  return 0;
38993}
38994_ACEOF
38995if ac_fn_c_try_link "$LINENO"; then :
38996  ac_cv_lib_rocm_smi64_rsmi_init=yes
38997else
38998  ac_cv_lib_rocm_smi64_rsmi_init=no
38999fi
39000rm -f core conftest.err conftest.$ac_objext \
39001    conftest$ac_exeext conftest.$ac_ext
39002LIBS=$ac_check_lib_save_LIBS
39003fi
39004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rocm_smi64_rsmi_init" >&5
39005$as_echo "$ac_cv_lib_rocm_smi64_rsmi_init" >&6; }
39006if test "x$ac_cv_lib_rocm_smi64_rsmi_init" = xyes; then :
39007  HWLOC_RSMI_LIBS="-lrocm_smi64"
39008else
39009  hwloc_rsmi_happy=no
39010fi
39011
39012
39013else
39014  hwloc_rsmi_happy=no
39015fi
39016
39017done
39018
39019    fi
39020
39021    # If we asked for rsmi support but couldn't deliver, fail
39022    if test "$enable_rsmi" = "yes" -a "$hwloc_rsmi_happy" = "no"; then :
39023  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-rsmi switch, but could not" >&5
39024$as_echo "$as_me: WARNING: Specified --enable-rsmi switch, but could not" >&2;}
39025      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
39026$as_echo "$as_me: WARNING: find appropriate support" >&2;}
39027      as_fn_error $? "Cannot continue" "$LINENO" 5
39028fi
39029    if test "x$hwloc_rsmi_happy" = "xyes"; then
39030
39031$as_echo "#define HWLOC_HAVE_RSMI 1" >>confdefs.h
39032
39033      HWLOC_HAVE_RSMI=1
39034
39035      hwloc_components="$hwloc_components rsmi"
39036      hwloc_rsmi_component_maybeplugin=1
39037    else
39038      HWLOC_HAVE_RSMI=0
39039
39040    fi
39041    # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
39042
39043    # GL Support
39044    hwloc_gl_happy=no
39045    if test "x$enable_io" != xno && test "x$enable_gl" != "xno"; then
39046	hwloc_gl_happy=yes
39047
39048        # some X11 support (less then lstopo in hwloc_internal.m4)
39049        if test "$no_x" = yes; then
39050  # Not all programs may use this symbol, but it does not hurt to define it.
39051
39052$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
39053
39054  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
39055else
39056  if test -n "$x_includes"; then
39057    X_CFLAGS="$X_CFLAGS -I$x_includes"
39058  fi
39059
39060  # It would also be nice to do this for all -L options, not just this one.
39061  if test -n "$x_libraries"; then
39062    X_LIBS="$X_LIBS -L$x_libraries"
39063    # For Solaris; some versions of Sun CC require a space after -R and
39064    # others require no space.  Words are not sufficient . . . .
39065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
39066$as_echo_n "checking whether -R must be followed by a space... " >&6; }
39067    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
39068    ac_xsave_c_werror_flag=$ac_c_werror_flag
39069    ac_c_werror_flag=yes
39070    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39071/* end confdefs.h.  */
39072
39073int
39074main ()
39075{
39076
39077  ;
39078  return 0;
39079}
39080_ACEOF
39081if ac_fn_c_try_link "$LINENO"; then :
39082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39083$as_echo "no" >&6; }
39084       X_LIBS="$X_LIBS -R$x_libraries"
39085else
39086  LIBS="$ac_xsave_LIBS -R $x_libraries"
39087       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39088/* end confdefs.h.  */
39089
39090int
39091main ()
39092{
39093
39094  ;
39095  return 0;
39096}
39097_ACEOF
39098if ac_fn_c_try_link "$LINENO"; then :
39099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39100$as_echo "yes" >&6; }
39101	  X_LIBS="$X_LIBS -R $x_libraries"
39102else
39103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
39104$as_echo "neither works" >&6; }
39105fi
39106rm -f core conftest.err conftest.$ac_objext \
39107    conftest$ac_exeext conftest.$ac_ext
39108fi
39109rm -f core conftest.err conftest.$ac_objext \
39110    conftest$ac_exeext conftest.$ac_ext
39111    ac_c_werror_flag=$ac_xsave_c_werror_flag
39112    LIBS=$ac_xsave_LIBS
39113  fi
39114
39115  # Check for system-dependent libraries X programs must link with.
39116  # Do this before checking for the system-independent R6 libraries
39117  # (-lICE), since we may need -lsocket or whatever for X linking.
39118
39119  if test "$ISC" = yes; then
39120    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
39121  else
39122    # Martyn Johnson says this is needed for Ultrix, if the X
39123    # libraries were built with DECnet support.  And Karl Berry says
39124    # the Alpha needs dnet_stub (dnet does not exist).
39125    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
39126    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39127/* end confdefs.h.  */
39128
39129/* Override any GCC internal prototype to avoid an error.
39130   Use char because int might match the return type of a GCC
39131   builtin and then its argument prototype would still apply.  */
39132#ifdef __cplusplus
39133extern "C"
39134#endif
39135char XOpenDisplay ();
39136int
39137main ()
39138{
39139return XOpenDisplay ();
39140  ;
39141  return 0;
39142}
39143_ACEOF
39144if ac_fn_c_try_link "$LINENO"; then :
39145
39146else
39147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
39148$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
39149if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
39150  $as_echo_n "(cached) " >&6
39151else
39152  ac_check_lib_save_LIBS=$LIBS
39153LIBS="-ldnet  $LIBS"
39154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39155/* end confdefs.h.  */
39156
39157/* Override any GCC internal prototype to avoid an error.
39158   Use char because int might match the return type of a GCC
39159   builtin and then its argument prototype would still apply.  */
39160#ifdef __cplusplus
39161extern "C"
39162#endif
39163char dnet_ntoa ();
39164int
39165main ()
39166{
39167return dnet_ntoa ();
39168  ;
39169  return 0;
39170}
39171_ACEOF
39172if ac_fn_c_try_link "$LINENO"; then :
39173  ac_cv_lib_dnet_dnet_ntoa=yes
39174else
39175  ac_cv_lib_dnet_dnet_ntoa=no
39176fi
39177rm -f core conftest.err conftest.$ac_objext \
39178    conftest$ac_exeext conftest.$ac_ext
39179LIBS=$ac_check_lib_save_LIBS
39180fi
39181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
39182$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
39183if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
39184  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
39185fi
39186
39187    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
39188      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
39189$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
39190if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
39191  $as_echo_n "(cached) " >&6
39192else
39193  ac_check_lib_save_LIBS=$LIBS
39194LIBS="-ldnet_stub  $LIBS"
39195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39196/* end confdefs.h.  */
39197
39198/* Override any GCC internal prototype to avoid an error.
39199   Use char because int might match the return type of a GCC
39200   builtin and then its argument prototype would still apply.  */
39201#ifdef __cplusplus
39202extern "C"
39203#endif
39204char dnet_ntoa ();
39205int
39206main ()
39207{
39208return dnet_ntoa ();
39209  ;
39210  return 0;
39211}
39212_ACEOF
39213if ac_fn_c_try_link "$LINENO"; then :
39214  ac_cv_lib_dnet_stub_dnet_ntoa=yes
39215else
39216  ac_cv_lib_dnet_stub_dnet_ntoa=no
39217fi
39218rm -f core conftest.err conftest.$ac_objext \
39219    conftest$ac_exeext conftest.$ac_ext
39220LIBS=$ac_check_lib_save_LIBS
39221fi
39222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
39223$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
39224if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
39225  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
39226fi
39227
39228    fi
39229fi
39230rm -f core conftest.err conftest.$ac_objext \
39231    conftest$ac_exeext conftest.$ac_ext
39232    LIBS="$ac_xsave_LIBS"
39233
39234    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
39235    # to get the SysV transport functions.
39236    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
39237    # needs -lnsl.
39238    # The nsl library prevents programs from opening the X display
39239    # on Irix 5.2, according to T.E. Dickey.
39240    # The functions gethostbyname, getservbyname, and inet_addr are
39241    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
39242    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
39243if test "x$ac_cv_func_gethostbyname" = xyes; then :
39244
39245fi
39246
39247    if test $ac_cv_func_gethostbyname = no; then
39248      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
39249$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
39250if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
39251  $as_echo_n "(cached) " >&6
39252else
39253  ac_check_lib_save_LIBS=$LIBS
39254LIBS="-lnsl  $LIBS"
39255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39256/* end confdefs.h.  */
39257
39258/* Override any GCC internal prototype to avoid an error.
39259   Use char because int might match the return type of a GCC
39260   builtin and then its argument prototype would still apply.  */
39261#ifdef __cplusplus
39262extern "C"
39263#endif
39264char gethostbyname ();
39265int
39266main ()
39267{
39268return gethostbyname ();
39269  ;
39270  return 0;
39271}
39272_ACEOF
39273if ac_fn_c_try_link "$LINENO"; then :
39274  ac_cv_lib_nsl_gethostbyname=yes
39275else
39276  ac_cv_lib_nsl_gethostbyname=no
39277fi
39278rm -f core conftest.err conftest.$ac_objext \
39279    conftest$ac_exeext conftest.$ac_ext
39280LIBS=$ac_check_lib_save_LIBS
39281fi
39282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
39283$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
39284if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
39285  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
39286fi
39287
39288      if test $ac_cv_lib_nsl_gethostbyname = no; then
39289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
39290$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
39291if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
39292  $as_echo_n "(cached) " >&6
39293else
39294  ac_check_lib_save_LIBS=$LIBS
39295LIBS="-lbsd  $LIBS"
39296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39297/* end confdefs.h.  */
39298
39299/* Override any GCC internal prototype to avoid an error.
39300   Use char because int might match the return type of a GCC
39301   builtin and then its argument prototype would still apply.  */
39302#ifdef __cplusplus
39303extern "C"
39304#endif
39305char gethostbyname ();
39306int
39307main ()
39308{
39309return gethostbyname ();
39310  ;
39311  return 0;
39312}
39313_ACEOF
39314if ac_fn_c_try_link "$LINENO"; then :
39315  ac_cv_lib_bsd_gethostbyname=yes
39316else
39317  ac_cv_lib_bsd_gethostbyname=no
39318fi
39319rm -f core conftest.err conftest.$ac_objext \
39320    conftest$ac_exeext conftest.$ac_ext
39321LIBS=$ac_check_lib_save_LIBS
39322fi
39323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
39324$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
39325if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
39326  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
39327fi
39328
39329      fi
39330    fi
39331
39332    # lieder@skyler.mavd.honeywell.com says without -lsocket,
39333    # socket/setsockopt and other routines are undefined under SCO ODT
39334    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
39335    # on later versions), says Simon Leinen: it contains gethostby*
39336    # variants that don't use the name server (or something).  -lsocket
39337    # must be given before -lnsl if both are needed.  We assume that
39338    # if connect needs -lnsl, so does gethostbyname.
39339    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
39340if test "x$ac_cv_func_connect" = xyes; then :
39341
39342fi
39343
39344    if test $ac_cv_func_connect = no; then
39345      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
39346$as_echo_n "checking for connect in -lsocket... " >&6; }
39347if ${ac_cv_lib_socket_connect+:} false; then :
39348  $as_echo_n "(cached) " >&6
39349else
39350  ac_check_lib_save_LIBS=$LIBS
39351LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
39352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39353/* end confdefs.h.  */
39354
39355/* Override any GCC internal prototype to avoid an error.
39356   Use char because int might match the return type of a GCC
39357   builtin and then its argument prototype would still apply.  */
39358#ifdef __cplusplus
39359extern "C"
39360#endif
39361char connect ();
39362int
39363main ()
39364{
39365return connect ();
39366  ;
39367  return 0;
39368}
39369_ACEOF
39370if ac_fn_c_try_link "$LINENO"; then :
39371  ac_cv_lib_socket_connect=yes
39372else
39373  ac_cv_lib_socket_connect=no
39374fi
39375rm -f core conftest.err conftest.$ac_objext \
39376    conftest$ac_exeext conftest.$ac_ext
39377LIBS=$ac_check_lib_save_LIBS
39378fi
39379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
39380$as_echo "$ac_cv_lib_socket_connect" >&6; }
39381if test "x$ac_cv_lib_socket_connect" = xyes; then :
39382  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
39383fi
39384
39385    fi
39386
39387    # Guillermo Gomez says -lposix is necessary on A/UX.
39388    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
39389if test "x$ac_cv_func_remove" = xyes; then :
39390
39391fi
39392
39393    if test $ac_cv_func_remove = no; then
39394      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
39395$as_echo_n "checking for remove in -lposix... " >&6; }
39396if ${ac_cv_lib_posix_remove+:} false; then :
39397  $as_echo_n "(cached) " >&6
39398else
39399  ac_check_lib_save_LIBS=$LIBS
39400LIBS="-lposix  $LIBS"
39401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39402/* end confdefs.h.  */
39403
39404/* Override any GCC internal prototype to avoid an error.
39405   Use char because int might match the return type of a GCC
39406   builtin and then its argument prototype would still apply.  */
39407#ifdef __cplusplus
39408extern "C"
39409#endif
39410char remove ();
39411int
39412main ()
39413{
39414return remove ();
39415  ;
39416  return 0;
39417}
39418_ACEOF
39419if ac_fn_c_try_link "$LINENO"; then :
39420  ac_cv_lib_posix_remove=yes
39421else
39422  ac_cv_lib_posix_remove=no
39423fi
39424rm -f core conftest.err conftest.$ac_objext \
39425    conftest$ac_exeext conftest.$ac_ext
39426LIBS=$ac_check_lib_save_LIBS
39427fi
39428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
39429$as_echo "$ac_cv_lib_posix_remove" >&6; }
39430if test "x$ac_cv_lib_posix_remove" = xyes; then :
39431  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
39432fi
39433
39434    fi
39435
39436    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
39437    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
39438if test "x$ac_cv_func_shmat" = xyes; then :
39439
39440fi
39441
39442    if test $ac_cv_func_shmat = no; then
39443      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
39444$as_echo_n "checking for shmat in -lipc... " >&6; }
39445if ${ac_cv_lib_ipc_shmat+:} false; then :
39446  $as_echo_n "(cached) " >&6
39447else
39448  ac_check_lib_save_LIBS=$LIBS
39449LIBS="-lipc  $LIBS"
39450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39451/* end confdefs.h.  */
39452
39453/* Override any GCC internal prototype to avoid an error.
39454   Use char because int might match the return type of a GCC
39455   builtin and then its argument prototype would still apply.  */
39456#ifdef __cplusplus
39457extern "C"
39458#endif
39459char shmat ();
39460int
39461main ()
39462{
39463return shmat ();
39464  ;
39465  return 0;
39466}
39467_ACEOF
39468if ac_fn_c_try_link "$LINENO"; then :
39469  ac_cv_lib_ipc_shmat=yes
39470else
39471  ac_cv_lib_ipc_shmat=no
39472fi
39473rm -f core conftest.err conftest.$ac_objext \
39474    conftest$ac_exeext conftest.$ac_ext
39475LIBS=$ac_check_lib_save_LIBS
39476fi
39477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
39478$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
39479if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
39480  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
39481fi
39482
39483    fi
39484  fi
39485
39486  # Check for libraries that X11R6 Xt/Xaw programs need.
39487  ac_save_LDFLAGS=$LDFLAGS
39488  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
39489  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
39490  # check for ICE first), but we must link in the order -lSM -lICE or
39491  # we get undefined symbols.  So assume we have SM if we have ICE.
39492  # These have to be linked with before -lX11, unlike the other
39493  # libraries we check for below, so use a different variable.
39494  # John Interrante, Karl Berry
39495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
39496$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
39497if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
39498  $as_echo_n "(cached) " >&6
39499else
39500  ac_check_lib_save_LIBS=$LIBS
39501LIBS="-lICE $X_EXTRA_LIBS $LIBS"
39502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39503/* end confdefs.h.  */
39504
39505/* Override any GCC internal prototype to avoid an error.
39506   Use char because int might match the return type of a GCC
39507   builtin and then its argument prototype would still apply.  */
39508#ifdef __cplusplus
39509extern "C"
39510#endif
39511char IceConnectionNumber ();
39512int
39513main ()
39514{
39515return IceConnectionNumber ();
39516  ;
39517  return 0;
39518}
39519_ACEOF
39520if ac_fn_c_try_link "$LINENO"; then :
39521  ac_cv_lib_ICE_IceConnectionNumber=yes
39522else
39523  ac_cv_lib_ICE_IceConnectionNumber=no
39524fi
39525rm -f core conftest.err conftest.$ac_objext \
39526    conftest$ac_exeext conftest.$ac_ext
39527LIBS=$ac_check_lib_save_LIBS
39528fi
39529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
39530$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
39531if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
39532  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
39533fi
39534
39535  LDFLAGS=$ac_save_LDFLAGS
39536
39537fi
39538
39539
39540        CPPFLAGS_save=$CPPFLAGS
39541        LIBS_save=$LIBS
39542
39543        CPPFLAGS="$CPPFLAGS $X_CFLAGS"
39544        LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
39545        for ac_header in X11/Xlib.h
39546do :
39547  ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
39548if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
39549  cat >>confdefs.h <<_ACEOF
39550#define HAVE_X11_XLIB_H 1
39551_ACEOF
39552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
39553$as_echo_n "checking for XOpenDisplay in -lX11... " >&6; }
39554if ${ac_cv_lib_X11_XOpenDisplay+:} false; then :
39555  $as_echo_n "(cached) " >&6
39556else
39557  ac_check_lib_save_LIBS=$LIBS
39558LIBS="-lX11  $LIBS"
39559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39560/* end confdefs.h.  */
39561
39562/* Override any GCC internal prototype to avoid an error.
39563   Use char because int might match the return type of a GCC
39564   builtin and then its argument prototype would still apply.  */
39565#ifdef __cplusplus
39566extern "C"
39567#endif
39568char XOpenDisplay ();
39569int
39570main ()
39571{
39572return XOpenDisplay ();
39573  ;
39574  return 0;
39575}
39576_ACEOF
39577if ac_fn_c_try_link "$LINENO"; then :
39578  ac_cv_lib_X11_XOpenDisplay=yes
39579else
39580  ac_cv_lib_X11_XOpenDisplay=no
39581fi
39582rm -f core conftest.err conftest.$ac_objext \
39583    conftest$ac_exeext conftest.$ac_ext
39584LIBS=$ac_check_lib_save_LIBS
39585fi
39586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
39587$as_echo "$ac_cv_lib_X11_XOpenDisplay" >&6; }
39588if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes; then :
39589  hwloc_enable_X11=yes
39590fi
39591
39592
39593fi
39594
39595done
39596
39597        CPPFLAGS=$CPPFLAGS_save
39598        LIBS=$LIBS_save
39599
39600        if test "$hwloc_enable_X11" != "yes"; then :
39601  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 not found; GL disabled" >&5
39602$as_echo "$as_me: WARNING: X11 not found; GL disabled" >&2;}
39603               hwloc_gl_happy=no
39604fi
39605
39606        for ac_header in NVCtrl/NVCtrl.h
39607do :
39608  ac_fn_c_check_header_mongrel "$LINENO" "NVCtrl/NVCtrl.h" "ac_cv_header_NVCtrl_NVCtrl_h" "$ac_includes_default"
39609if test "x$ac_cv_header_NVCtrl_NVCtrl_h" = xyes; then :
39610  cat >>confdefs.h <<_ACEOF
39611#define HAVE_NVCTRL_NVCTRL_H 1
39612_ACEOF
39613
39614          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl" >&5
39615$as_echo_n "checking for XNVCTRLQueryTargetAttribute in -lXNVCtrl... " >&6; }
39616if ${ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute+:} false; then :
39617  $as_echo_n "(cached) " >&6
39618else
39619  ac_check_lib_save_LIBS=$LIBS
39620LIBS="-lXNVCtrl -lXext $LIBS"
39621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39622/* end confdefs.h.  */
39623
39624/* Override any GCC internal prototype to avoid an error.
39625   Use char because int might match the return type of a GCC
39626   builtin and then its argument prototype would still apply.  */
39627#ifdef __cplusplus
39628extern "C"
39629#endif
39630char XNVCTRLQueryTargetAttribute ();
39631int
39632main ()
39633{
39634return XNVCTRLQueryTargetAttribute ();
39635  ;
39636  return 0;
39637}
39638_ACEOF
39639if ac_fn_c_try_link "$LINENO"; then :
39640  ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute=yes
39641else
39642  ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute=no
39643fi
39644rm -f core conftest.err conftest.$ac_objext \
39645    conftest$ac_exeext conftest.$ac_ext
39646LIBS=$ac_check_lib_save_LIBS
39647fi
39648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" >&5
39649$as_echo "$ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" >&6; }
39650if test "x$ac_cv_lib_XNVCtrl_XNVCTRLQueryTargetAttribute" = xyes; then :
39651  :
39652else
39653  hwloc_gl_happy=no
39654fi
39655
39656
39657else
39658  hwloc_gl_happy=no
39659fi
39660
39661done
39662
39663
39664        if test "x$hwloc_gl_happy" = "xyes"; then
39665
39666$as_echo "#define HWLOC_HAVE_GL 1" >>confdefs.h
39667
39668	    HWLOC_GL_LIBS="-lXNVCtrl -lXext -lX11"
39669
39670	    # FIXME we actually don't know if xext.pc and x11.pc are installed
39671	    # since we didn't look for Xext and X11 using pkg-config
39672	    HWLOC_GL_REQUIRES="xext x11"
39673            hwloc_have_gl=yes
39674	    hwloc_components="$hwloc_components gl"
39675	    hwloc_gl_component_maybeplugin=1
39676	else
39677            if test "$enable_gl" = "yes"; then :
39678
39679                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Specified --enable-gl switch, but could not" >&5
39680$as_echo "$as_me: WARNING: Specified --enable-gl switch, but could not" >&2;}
39681                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: find appropriate support" >&5
39682$as_echo "$as_me: WARNING: find appropriate support" >&2;}
39683                as_fn_error $? "Cannot continue" "$LINENO" 5
39684
39685fi
39686        fi
39687    fi
39688    # don't add LIBS/CFLAGS yet, depends on plugins
39689
39690    # libxml2 support
39691    hwloc_libxml2_happy=
39692    if test "x$enable_libxml2" != "xno"; then
39693
39694
39695    HWLOC_pkg_failed=no
39696    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
39697$as_echo_n "checking for LIBXML2... " >&6; }
39698
39699    if test -n "$PKG_CONFIG"; then
39700    if test -n "$HWLOC_LIBXML2_CFLAGS"; then
39701        HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS="$HWLOC_LIBXML2_CFLAGS"
39702    else
39703        if test -n "$PKG_CONFIG" && \
39704    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5
39705  ($PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5
39706  ac_status=$?
39707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39708  test $ac_status = 0; }; then
39709    HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
39710    else
39711                     HWLOC_pkg_failed=yes
39712fi
39713    fi
39714else
39715	HWLOC_pkg_failed=untried
39716fi
39717
39718    if test -n "$PKG_CONFIG"; then
39719    if test -n "$HWLOC_LIBXML2_LIBS"; then
39720        HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS="$HWLOC_LIBXML2_LIBS"
39721    else
39722        if test -n "$PKG_CONFIG" && \
39723    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --silence-errors \"libxml-2.0\""; } >&5
39724  ($PKG_CONFIG --exists --silence-errors "libxml-2.0") 2>&5
39725  ac_status=$?
39726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39727  test $ac_status = 0; }; then
39728    HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
39729    else
39730                     HWLOC_pkg_failed=yes
39731fi
39732    fi
39733else
39734	HWLOC_pkg_failed=untried
39735fi
39736
39737
39738
39739
39740    # Check for failure of pkg-config
39741    if test $HWLOC_pkg_failed = yes; then
39742
39743if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39744        HWLOC_pkg_short_errors_supported=yes
39745else
39746        HWLOC_pkg_short_errors_supported=no
39747fi
39748        if test $HWLOC_pkg_short_errors_supported = yes; then
39749            HWLOC_LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0" 2>&1`
39750        else
39751            HWLOC_LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0" 2>&1`
39752        fi
39753        # Put the nasty error message in config.log where it belongs
39754	echo "$HWLOC_LIBXML2_PKG_ERRORS" >&5
39755
39756	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39757$as_echo "no" >&6; }
39758                hwloc_libxml2_happy=no
39759    elif test $HWLOC_pkg_failed = untried; then
39760        { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot check without pkg-config" >&5
39761$as_echo "cannot check without pkg-config" >&6; }
39762		hwloc_libxml2_happy=no
39763    else
39764        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39765$as_echo "yes" >&6; }
39766
39767        # If we got good results from pkg-config, check that they
39768        # actually work (i.e., that we can link against the resulting
39769        # $LIBS).  The canonical example why we do this is if
39770        # pkg-config returns 64 bit libraries but ./configure was run
39771        # with CFLAGS=-m32 LDFLAGS=-m32.  pkg-config gave us valid
39772        # results, but we'll fail if we try to link.  So detect that
39773        # failure now.
39774        # There are also cases on Mac where pkg-config returns paths
39775        # that do not actually exists until some magic is applied.
39776        # https://www.open-mpi.org/community/lists/hwloc-devel/2015/03/4402.php
39777        # So check whether we find the header as well.
39778        hwloc_cflags_save=$CFLAGS
39779        hwloc_cppflags_save=$CPPFLAGS
39780        hwloc_libs_save=$LIBS
39781        CFLAGS="$CFLAGS $HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS"
39782        CPPFLAGS="$CPPFLAGS $HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS"
39783        LIBS="$LIBS $HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS"
39784        ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
39785if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
39786
39787            ac_fn_c_check_func "$LINENO" "xmlNewDoc" "ac_cv_func_xmlNewDoc"
39788if test "x$ac_cv_func_xmlNewDoc" = xyes; then :
39789  hwloc_result=yes
39790else
39791  hwloc_result=no
39792fi
39793
39794
39795else
39796  hwloc_result=no
39797fi
39798
39799
39800        CFLAGS=$hwloc_cflags_save
39801        CPPFLAGS=$hwloc_cppflags_save
39802        LIBS=$hwloc_libs_save
39803
39804        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for final LIBXML2 support" >&5
39805$as_echo_n "checking for final LIBXML2 support... " >&6; }
39806        if test "$hwloc_result" = "yes"; then :
39807  HWLOC_LIBXML2_CFLAGS=$HWLOC_pkg_cv_HWLOC_LIBXML2_CFLAGS
39808               HWLOC_LIBXML2_LIBS=$HWLOC_pkg_cv_HWLOC_LIBXML2_LIBS
39809               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39810$as_echo "yes" >&6; }
39811               hwloc_libxml2_happy=yes
39812else
39813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39814$as_echo "no" >&6; }
39815               hwloc_libxml2_happy=no
39816fi
39817    fi
39818    fi
39819    if test "x$hwloc_libxml2_happy" = "xyes"; then
39820        HWLOC_LIBXML2_REQUIRES="libxml-2.0"
39821
39822$as_echo "#define HWLOC_HAVE_LIBXML2 1" >>confdefs.h
39823
39824        HWLOC_HAVE_LIBXML2=1
39825
39826
39827        hwloc_components="$hwloc_components xml_libxml"
39828        hwloc_xml_libxml_component_maybeplugin=1
39829    else
39830        HWLOC_HAVE_LIBXML2=0
39831
39832	if test "$enable_libxml2" = "yes"; then :
39833  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libxml2 requested, but libxml2 was not found" >&5
39834$as_echo "$as_me: WARNING: --enable-libxml2 requested, but libxml2 was not found" >&2;}
39835               as_fn_error $? "Cannot continue" "$LINENO" 5
39836fi
39837    fi
39838    # don't add LIBS/CFLAGS/REQUIRES yet, depends on plugins
39839
39840    # Try to compile the x86 cpuid inlines
39841    if test "x$enable_cpuid" != "xno"; then
39842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid" >&5
39843$as_echo_n "checking for x86 cpuid... " >&6; }
39844	old_CPPFLAGS="$CPPFLAGS"
39845	CPPFLAGS="$CPPFLAGS -I$HWLOC_top_srcdir/include"
39846	# We need hwloc_uint64_t but we can't use autogen/config.h before configure ends.
39847	# So pass #include/#define manually here for now.
39848	CPUID_CHECK_HEADERS=
39849	CPUID_CHECK_DEFINE=
39850	if test "x$hwloc_windows" = xyes; then
39851	    X86_CPUID_CHECK_HEADERS="#include <windows.h>"
39852	    X86_CPUID_CHECK_DEFINE="#define hwloc_uint64_t DWORDLONG"
39853	else
39854	    X86_CPUID_CHECK_DEFINE="#define hwloc_uint64_t uint64_t"
39855	    if test "x$ac_cv_header_stdint_h" = xyes; then
39856	        X86_CPUID_CHECK_HEADERS="#include <stdint.h>"
39857	    fi
39858	fi
39859	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39860/* end confdefs.h.  */
39861
39862	    #include <stdio.h>
39863	    $X86_CPUID_CHECK_HEADERS
39864	    $X86_CPUID_CHECK_DEFINE
39865	    #define __hwloc_inline
39866	    #include <private/cpuid-x86.h>
39867
39868int
39869main ()
39870{
39871
39872	    if (hwloc_have_x86_cpuid()) {
39873		unsigned eax = 0, ebx, ecx = 0, edx;
39874		hwloc_x86_cpuid(&eax, &ebx, &ecx, &edx);
39875		printf("highest x86 cpuid %x\n", eax);
39876		return 0;
39877	    }
39878
39879  ;
39880  return 0;
39881}
39882_ACEOF
39883if ac_fn_c_try_link "$LINENO"; then :
39884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39885$as_echo "yes" >&6; }
39886
39887$as_echo "#define HWLOC_HAVE_X86_CPUID 1" >>confdefs.h
39888
39889	 hwloc_have_x86_cpuid=yes
39890else
39891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39892$as_echo "no" >&6; }
39893fi
39894rm -f core conftest.err conftest.$ac_objext \
39895    conftest$ac_exeext conftest.$ac_ext
39896	if test "x$hwloc_have_x86_cpuid" = xyes; then
39897	    hwloc_components="$hwloc_components x86"
39898	fi
39899	CPPFLAGS="$old_CPPFLAGS"
39900    fi
39901
39902    # Components require pthread_mutex, see if it needs -lpthread
39903    hwloc_pthread_mutex_happy=no
39904    # Try without explicit -lpthread first
39905    ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
39906if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then :
39907  hwloc_pthread_mutex_happy=yes
39908       HWLOC_LIBS_PRIVATE="$HWLOC_LIBS_PRIVATE -lpthread"
39909
39910else
39911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock with -lpthread" >&5
39912$as_echo_n "checking for pthread_mutex_lock with -lpthread... " >&6; }
39913       # Try again with explicit -lpthread, but don't use AC_CHECK_FUNC to avoid the cache
39914       tmp_save_LIBS=$LIBS
39915       LIBS="$LIBS -lpthread"
39916       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39917/* end confdefs.h.  */
39918
39919/* Override any GCC internal prototype to avoid an error.
39920   Use char because int might match the return type of a GCC
39921   builtin and then its argument prototype would still apply.  */
39922#ifdef __cplusplus
39923extern "C"
39924#endif
39925char pthread_mutex_lock ();
39926int
39927main ()
39928{
39929return pthread_mutex_lock ();
39930  ;
39931  return 0;
39932}
39933_ACEOF
39934if ac_fn_c_try_link "$LINENO"; then :
39935  hwloc_pthread_mutex_happy=yes
39936          HWLOC_LIBS="$HWLOC_LIBS -lpthread"
39937
39938fi
39939rm -f core conftest.err conftest.$ac_objext \
39940    conftest$ac_exeext conftest.$ac_ext
39941       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_pthread_mutex_happy" >&5
39942$as_echo "$hwloc_pthread_mutex_happy" >&6; }
39943       LIBS="$tmp_save_LIBS"
39944
39945fi
39946
39947    if test "x$hwloc_pthread_mutex_happy" = "xyes"; then :
39948
39949$as_echo "#define HWLOC_HAVE_PTHREAD_MUTEX 1" >>confdefs.h
39950
39951fi
39952
39953    if test "x$hwloc_pthread_mutex_happy" != xyes -a "x$hwloc_windows" != xyes; then :
39954  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pthread_mutex_lock not available, required for thread-safe initialization on non-Windows platforms." >&5
39955$as_echo "$as_me: WARNING: pthread_mutex_lock not available, required for thread-safe initialization on non-Windows platforms." >&2;}
39956       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please report this to the hwloc-devel mailing list." >&5
39957$as_echo "$as_me: WARNING: Please report this to the hwloc-devel mailing list." >&2;}
39958       as_fn_error $? "Cannot continue" "$LINENO" 5
39959fi
39960
39961    #
39962    # Now enable registration of listed components
39963    #
39964
39965    # Plugin support
39966    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if plugin support is enabled" >&5
39967$as_echo_n "checking if plugin support is enabled... " >&6; }
39968    # Plugins (even core support) are totally disabled by default.
39969    # Pass --enable-plugins=foo (with "foo" NOT an existing component) to enable plugins but build none of them.
39970    if test "x$enable_plugins" = xyes; then
39971      hwloc_have_plugins=yes
39972      requested_plugins="$hwloc_components"
39973    else if test "x$enable_plugins" != xno -a "x$enable_plugins" != x; then
39974      hwloc_have_plugins=yes
39975      requested_plugins=`echo $enable_plugins | sed -e 's/,/ /g'`
39976    else
39977      hwloc_have_plugins=no
39978    fi fi
39979    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_have_plugins" >&5
39980$as_echo "$hwloc_have_plugins" >&6; }
39981
39982    if test "x$hwloc_have_plugins" = xyes; then
39983      # dlopen and ltdl (at least 2.4.2) doesn't work on AIX
39984      # posix linkers don't work well with plugins and windows dll constraints
39985      if test "x$enable_plugin_dlopen" = x; then
39986        if test "x$hwloc_aix" = "xyes"; then
39987          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen does not work on AIX, disabled by default." >&5
39988$as_echo "$as_me: WARNING: dlopen does not work on AIX, disabled by default." >&2;}
39989          enable_plugin_dlopen=no
39990        else if test "x$hwloc_windows" = "xyes"; then
39991          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen not supported on non-native Windows build, disabled by default." >&5
39992$as_echo "$as_me: WARNING: dlopen not supported on non-native Windows build, disabled by default." >&2;}
39993          enable_plugin_dlopen=no
39994        fi fi
39995      fi
39996      if test "x$enable_plugin_ltdl" = x; then
39997        if test "x$hwloc_aix" = "xyes"; then
39998          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ltdl does not work on AIX, disabled by default." >&5
39999$as_echo "$as_me: WARNING: ltdl does not work on AIX, disabled by default." >&2;}
40000          enable_plugin_dlopen=no
40001        else if test "x$hwloc_windows" = "xyes"; then
40002          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ltdl not supported on non-native Windows build, disabled by default." >&5
40003$as_echo "$as_me: WARNING: ltdl not supported on non-native Windows build, disabled by default." >&2;}
40004          enable_plugin_dlopen=no
40005        fi fi
40006      fi
40007
40008      # Look for dlopen
40009      if test "x$enable_plugin_dlopen" != xno; then
40010
40011  hwloc_dlopen_ready=no
40012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
40013$as_echo_n "checking for dlopen... " >&6; }
40014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40015/* end confdefs.h.  */
40016
40017
40018      #include <dlfcn.h>
40019      #include <stdlib.h>
40020      void *handle;
40021
40022int
40023main ()
40024{
40025
40026      handle = dlopen(NULL, RTLD_NOW|RTLD_LOCAL);
40027
40028  ;
40029  return 0;
40030}
40031_ACEOF
40032if ac_fn_c_try_link "$LINENO"; then :
40033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40034$as_echo "yes" >&6; }
40035     hwloc_dlopen_ready=yes
40036else
40037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40038$as_echo "no" >&6; }
40039     ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
40040if test "x$ac_cv_header_dlfcn_h" = xyes; then :
40041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
40042$as_echo_n "checking for dlopen in -ldl... " >&6; }
40043if ${ac_cv_lib_dl_dlopen+:} false; then :
40044  $as_echo_n "(cached) " >&6
40045else
40046  ac_check_lib_save_LIBS=$LIBS
40047LIBS="-ldl  $LIBS"
40048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40049/* end confdefs.h.  */
40050
40051/* Override any GCC internal prototype to avoid an error.
40052   Use char because int might match the return type of a GCC
40053   builtin and then its argument prototype would still apply.  */
40054#ifdef __cplusplus
40055extern "C"
40056#endif
40057char dlopen ();
40058int
40059main ()
40060{
40061return dlopen ();
40062  ;
40063  return 0;
40064}
40065_ACEOF
40066if ac_fn_c_try_link "$LINENO"; then :
40067  ac_cv_lib_dl_dlopen=yes
40068else
40069  ac_cv_lib_dl_dlopen=no
40070fi
40071rm -f core conftest.err conftest.$ac_objext \
40072    conftest$ac_exeext conftest.$ac_ext
40073LIBS=$ac_check_lib_save_LIBS
40074fi
40075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
40076$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
40077if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
40078  hwloc_dlopen_ready=yes
40079	             hwloc_dlopen_libs=-ldl
40080fi
40081
40082
40083fi
40084
40085
40086
40087fi
40088rm -f core conftest.err conftest.$ac_objext \
40089    conftest$ac_exeext conftest.$ac_ext
40090
40091      fi
40092      # Look for ltdl
40093      if test "x$enable_plugin_ltdl" != xno; then
40094
40095  hwloc_ltdl_ready=no
40096  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
40097if test "x$ac_cv_header_ltdl_h" = xyes; then :
40098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopenext in -lltdl" >&5
40099$as_echo_n "checking for lt_dlopenext in -lltdl... " >&6; }
40100if ${ac_cv_lib_ltdl_lt_dlopenext+:} false; then :
40101  $as_echo_n "(cached) " >&6
40102else
40103  ac_check_lib_save_LIBS=$LIBS
40104LIBS="-lltdl  $LIBS"
40105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40106/* end confdefs.h.  */
40107
40108/* Override any GCC internal prototype to avoid an error.
40109   Use char because int might match the return type of a GCC
40110   builtin and then its argument prototype would still apply.  */
40111#ifdef __cplusplus
40112extern "C"
40113#endif
40114char lt_dlopenext ();
40115int
40116main ()
40117{
40118return lt_dlopenext ();
40119  ;
40120  return 0;
40121}
40122_ACEOF
40123if ac_fn_c_try_link "$LINENO"; then :
40124  ac_cv_lib_ltdl_lt_dlopenext=yes
40125else
40126  ac_cv_lib_ltdl_lt_dlopenext=no
40127fi
40128rm -f core conftest.err conftest.$ac_objext \
40129    conftest$ac_exeext conftest.$ac_ext
40130LIBS=$ac_check_lib_save_LIBS
40131fi
40132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopenext" >&5
40133$as_echo "$ac_cv_lib_ltdl_lt_dlopenext" >&6; }
40134if test "x$ac_cv_lib_ltdl_lt_dlopenext" = xyes; then :
40135  hwloc_ltdl_ready=yes
40136		   hwloc_ltdl_libs=-lltdl
40137fi
40138
40139
40140fi
40141
40142
40143
40144      fi
40145
40146      # Now use dlopen by default, or ltdl, or just fail to enable plugins
40147      { $as_echo "$as_me:${as_lineno-$LINENO}: checking which library to use for loading plugins" >&5
40148$as_echo_n "checking which library to use for loading plugins... " >&6; }
40149      if test "x$hwloc_dlopen_ready" = xyes; then
40150        { $as_echo "$as_me:${as_lineno-$LINENO}: result: dlopen" >&5
40151$as_echo "dlopen" >&6; }
40152	hwloc_plugins_load=dlopen
40153        # Now enable dlopen libs
40154        HWLOC_DL_LIBS="$hwloc_dlopen_libs"
40155
40156      else if test x$hwloc_ltdl_ready = xyes; then
40157        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
40158$as_echo "ltdl" >&6; }
40159        hwloc_plugins_load=ltdl
40160        # Now enable ltdl libs
40161
40162$as_echo "#define HWLOC_HAVE_LTDL 1" >>confdefs.h
40163
40164        HWLOC_LTDL_LIBS="$hwloc_ltdl_libs"
40165
40166        # Add ltdl static-build dependencies to hwloc.pc
40167
40168  # save variables that we'll modify below
40169  save_lt_cv_dlopen="$lt_cv_dlopen"
40170  save_lt_cv_dlopen_libs="$lt_cv_dlopen_libs"
40171  save_lt_cv_dlopen_self="$lt_cv_dlopen_self"
40172  ###########################################################
40173  # code stolen from LT_SYS_DLOPEN_SELF in libtool.m4
40174  case $host_os in
40175  beos*)
40176    lt_cv_dlopen="load_add_on"
40177    lt_cv_dlopen_libs=
40178    lt_cv_dlopen_self=yes
40179    ;;
40180
40181  mingw* | pw32* | cegcc*)
40182    lt_cv_dlopen="LoadLibrary"
40183    lt_cv_dlopen_libs=
40184    ;;
40185
40186  cygwin*)
40187    lt_cv_dlopen="dlopen"
40188    lt_cv_dlopen_libs=
40189    ;;
40190
40191  darwin*)
40192  # if libdl is installed we need to link against it
40193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
40194$as_echo_n "checking for dlopen in -ldl... " >&6; }
40195if ${ac_cv_lib_dl_dlopen+:} false; then :
40196  $as_echo_n "(cached) " >&6
40197else
40198  ac_check_lib_save_LIBS=$LIBS
40199LIBS="-ldl  $LIBS"
40200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40201/* end confdefs.h.  */
40202
40203/* Override any GCC internal prototype to avoid an error.
40204   Use char because int might match the return type of a GCC
40205   builtin and then its argument prototype would still apply.  */
40206#ifdef __cplusplus
40207extern "C"
40208#endif
40209char dlopen ();
40210int
40211main ()
40212{
40213return dlopen ();
40214  ;
40215  return 0;
40216}
40217_ACEOF
40218if ac_fn_c_try_link "$LINENO"; then :
40219  ac_cv_lib_dl_dlopen=yes
40220else
40221  ac_cv_lib_dl_dlopen=no
40222fi
40223rm -f core conftest.err conftest.$ac_objext \
40224    conftest$ac_exeext conftest.$ac_ext
40225LIBS=$ac_check_lib_save_LIBS
40226fi
40227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
40228$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
40229if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
40230  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
40231else
40232
40233    lt_cv_dlopen="dyld"
40234    lt_cv_dlopen_libs=
40235    lt_cv_dlopen_self=yes
40236
40237fi
40238
40239    ;;
40240
40241  *)
40242    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
40243if test "x$ac_cv_func_shl_load" = xyes; then :
40244  lt_cv_dlopen="shl_load"
40245else
40246  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
40247$as_echo_n "checking for shl_load in -ldld... " >&6; }
40248if ${ac_cv_lib_dld_shl_load+:} false; then :
40249  $as_echo_n "(cached) " >&6
40250else
40251  ac_check_lib_save_LIBS=$LIBS
40252LIBS="-ldld  $LIBS"
40253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40254/* end confdefs.h.  */
40255
40256/* Override any GCC internal prototype to avoid an error.
40257   Use char because int might match the return type of a GCC
40258   builtin and then its argument prototype would still apply.  */
40259#ifdef __cplusplus
40260extern "C"
40261#endif
40262char shl_load ();
40263int
40264main ()
40265{
40266return shl_load ();
40267  ;
40268  return 0;
40269}
40270_ACEOF
40271if ac_fn_c_try_link "$LINENO"; then :
40272  ac_cv_lib_dld_shl_load=yes
40273else
40274  ac_cv_lib_dld_shl_load=no
40275fi
40276rm -f core conftest.err conftest.$ac_objext \
40277    conftest$ac_exeext conftest.$ac_ext
40278LIBS=$ac_check_lib_save_LIBS
40279fi
40280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
40281$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
40282if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
40283  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
40284else
40285  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
40286if test "x$ac_cv_func_dlopen" = xyes; then :
40287  lt_cv_dlopen="dlopen"
40288else
40289  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
40290$as_echo_n "checking for dlopen in -ldl... " >&6; }
40291if ${ac_cv_lib_dl_dlopen+:} false; then :
40292  $as_echo_n "(cached) " >&6
40293else
40294  ac_check_lib_save_LIBS=$LIBS
40295LIBS="-ldl  $LIBS"
40296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40297/* end confdefs.h.  */
40298
40299/* Override any GCC internal prototype to avoid an error.
40300   Use char because int might match the return type of a GCC
40301   builtin and then its argument prototype would still apply.  */
40302#ifdef __cplusplus
40303extern "C"
40304#endif
40305char dlopen ();
40306int
40307main ()
40308{
40309return dlopen ();
40310  ;
40311  return 0;
40312}
40313_ACEOF
40314if ac_fn_c_try_link "$LINENO"; then :
40315  ac_cv_lib_dl_dlopen=yes
40316else
40317  ac_cv_lib_dl_dlopen=no
40318fi
40319rm -f core conftest.err conftest.$ac_objext \
40320    conftest$ac_exeext conftest.$ac_ext
40321LIBS=$ac_check_lib_save_LIBS
40322fi
40323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
40324$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
40325if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
40326  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
40327else
40328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
40329$as_echo_n "checking for dlopen in -lsvld... " >&6; }
40330if ${ac_cv_lib_svld_dlopen+:} false; then :
40331  $as_echo_n "(cached) " >&6
40332else
40333  ac_check_lib_save_LIBS=$LIBS
40334LIBS="-lsvld  $LIBS"
40335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40336/* end confdefs.h.  */
40337
40338/* Override any GCC internal prototype to avoid an error.
40339   Use char because int might match the return type of a GCC
40340   builtin and then its argument prototype would still apply.  */
40341#ifdef __cplusplus
40342extern "C"
40343#endif
40344char dlopen ();
40345int
40346main ()
40347{
40348return dlopen ();
40349  ;
40350  return 0;
40351}
40352_ACEOF
40353if ac_fn_c_try_link "$LINENO"; then :
40354  ac_cv_lib_svld_dlopen=yes
40355else
40356  ac_cv_lib_svld_dlopen=no
40357fi
40358rm -f core conftest.err conftest.$ac_objext \
40359    conftest$ac_exeext conftest.$ac_ext
40360LIBS=$ac_check_lib_save_LIBS
40361fi
40362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
40363$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
40364if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
40365  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
40366else
40367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
40368$as_echo_n "checking for dld_link in -ldld... " >&6; }
40369if ${ac_cv_lib_dld_dld_link+:} false; then :
40370  $as_echo_n "(cached) " >&6
40371else
40372  ac_check_lib_save_LIBS=$LIBS
40373LIBS="-ldld  $LIBS"
40374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40375/* end confdefs.h.  */
40376
40377/* Override any GCC internal prototype to avoid an error.
40378   Use char because int might match the return type of a GCC
40379   builtin and then its argument prototype would still apply.  */
40380#ifdef __cplusplus
40381extern "C"
40382#endif
40383char dld_link ();
40384int
40385main ()
40386{
40387return dld_link ();
40388  ;
40389  return 0;
40390}
40391_ACEOF
40392if ac_fn_c_try_link "$LINENO"; then :
40393  ac_cv_lib_dld_dld_link=yes
40394else
40395  ac_cv_lib_dld_dld_link=no
40396fi
40397rm -f core conftest.err conftest.$ac_objext \
40398    conftest$ac_exeext conftest.$ac_ext
40399LIBS=$ac_check_lib_save_LIBS
40400fi
40401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
40402$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
40403if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
40404  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
40405fi
40406
40407
40408fi
40409
40410
40411fi
40412
40413
40414fi
40415
40416
40417fi
40418
40419
40420fi
40421
40422    ;;
40423  esac
40424  # end of code stolen from LT_SYS_DLOPEN_SELF in libtool.m4
40425  ###########################################################
40426
40427  HWLOC_LIBS_PRIVATE="$HWLOC_LIBS_PRIVATE $lt_cv_dlopen_libs"
40428
40429  # restore modified variable in case the actual libtool code uses them
40430  lt_cv_dlopen="$save_lt_cv_dlopen"
40431  lt_cv_dlopen_libs="$save_lt_cv_dlopen_libs"
40432  lt_cv_dlopen_self="$save_lt_cv_dlopen_self"
40433
40434      else
40435        { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
40436$as_echo "none" >&6; }
40437        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Plugin support requested, but could not enable dlopen or ltdl" >&5
40438$as_echo "$as_me: WARNING: Plugin support requested, but could not enable dlopen or ltdl" >&2;}
40439        as_fn_error $? "Cannot continue" "$LINENO" 5
40440      fi fi
40441
40442
40443$as_echo "#define HWLOC_HAVE_PLUGINS 1" >>confdefs.h
40444
40445    fi
40446
40447
40448# Check whether --with-hwloc-plugins-path was given.
40449if test "${with_hwloc_plugins_path+set}" = set; then :
40450  withval=$with_hwloc_plugins_path; HWLOC_PLUGINS_PATH="$with_hwloc_plugins_path"
40451else
40452  HWLOC_PLUGINS_PATH="\$(libdir)/hwloc"
40453fi
40454
40455
40456    HWLOC_PLUGINS_DIR=`echo "$HWLOC_PLUGINS_PATH" | cut -d: -f1`
40457
40458
40459    # Static components output file
40460    hwloc_static_components_dir=${HWLOC_top_builddir}/hwloc
40461    mkdir -p "${hwloc_static_components_dir}"
40462    hwloc_static_components_file=${hwloc_static_components_dir}/static-components.h
40463    rm -f "${hwloc_static_components_file}"
40464
40465
40466  for name in $requested_plugins ; do
40467    str="hwloc_${name}_component_wantplugin=1"
40468    eval $str
40469  done
40470
40471    # Now we have some hwloc_<name>_component_wantplugin=1
40472
40473    # See which core components want plugin and support it
40474
40475for name in $hwloc_components ; do
40476  str="maybeplugin=\$hwloc_${name}_component_maybeplugin"
40477  eval $str
40478  str="wantplugin=\$hwloc_${name}_component_wantplugin"
40479  eval $str
40480  if test x$hwloc_have_plugins = xyes -a x$maybeplugin = x1 -a x$wantplugin = x1; then
40481    hwloc_plugin_components="$hwloc_plugin_components $name"
40482    str="hwloc_${name}_component=plugin"
40483  else
40484    hwloc_static_components="$hwloc_static_components $name"
40485    str="hwloc_${name}_component=static"
40486  fi
40487  eval $str
40488done
40489
40490    # Now we have some hwloc_<name>_component=plugin/static
40491    # and hwloc_static/plugin_components=list (space separated)
40492    { $as_echo "$as_me:${as_lineno-$LINENO}: checking components to build statically" >&5
40493$as_echo_n "checking components to build statically... " >&6; }
40494    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_static_components" >&5
40495$as_echo "$hwloc_static_components" >&6; }
40496
40497cat <<EOF >>"$hwloc_static_components_file"
40498#include <private/internal-components.h>
40499static const struct hwloc_component * hwloc_static_components[] = {
40500EOF
40501for comp in $hwloc_static_components; do
40502  echo "  &hwloc_${comp}_component," >>"$hwloc_static_components_file"
40503done
40504cat <<EOF >>"$hwloc_static_components_file"
40505  NULL
40506};
40507EOF
40508
40509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking components to build as plugins" >&5
40510$as_echo_n "checking components to build as plugins... " >&6; }
40511    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hwloc_plugin_components" >&5
40512$as_echo "$hwloc_plugin_components" >&6; }
40513
40514    if test "$hwloc_pci_component" = "static"; then :
40515  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_PCIACCESS_LIBS"
40516           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_PCIACCESS_CFLAGS"
40517           HWLOC_REQUIRES="$HWLOC_PCIACCESS_REQUIRES $HWLOC_REQUIRES"
40518fi
40519    if test "$hwloc_opencl_component" = "static"; then :
40520  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_OPENCL_LIBS"
40521           HWLOC_LDFLAGS="$HWLOC_LDFLAGS $HWLOC_OPENCL_LDFLAGS"
40522           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_OPENCL_CFLAGS"
40523           HWLOC_REQUIRES="$HWLOC_OPENCL_REQUIRES $HWLOC_REQUIRES"
40524fi
40525    if test "$hwloc_cuda_component" = "static"; then :
40526  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_CUDA_LIBS"
40527           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_CUDA_CFLAGS"
40528           HWLOC_REQUIRES="$HWLOC_CUDA_REQUIRES $HWLOC_REQUIRES"
40529fi
40530    if test "$hwloc_nvml_component" = "static"; then :
40531  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_NVML_LIBS"
40532           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_NVML_CFLAGS"
40533           HWLOC_REQUIRES="$HWLOC_NVML_REQUIRES $HWLOC_REQUIRES"
40534fi
40535    if test "$hwloc_rsmi_component" = "static"; then :
40536  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_RSMI_LIBS"
40537           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_RSMI_CFLAGS"
40538           HWLOC_REQUIRES="$HWLOC_RSMI_REQUIRES $HWLOC_REQUIRES"
40539fi
40540    if test "$hwloc_gl_component" = "static"; then :
40541  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_GL_LIBS"
40542           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_GL_CFLAGS"
40543           HWLOC_REQUIRES="$HWLOC_GL_REQUIRES $HWLOC_REQUIRES"
40544fi
40545    if test "$hwloc_xml_libxml_component" = "static"; then :
40546  HWLOC_LIBS="$HWLOC_LIBS $HWLOC_LIBXML2_LIBS"
40547           HWLOC_CFLAGS="$HWLOC_CFLAGS $HWLOC_LIBXML2_CFLAGS"
40548           HWLOC_REQUIRES="$HWLOC_LIBXML2_REQUIRES $HWLOC_REQUIRES"
40549fi
40550
40551    #
40552    # Setup HWLOC's C, CPP, and LD flags, and LIBS
40553    #
40554
40555
40556    HWLOC_CPPFLAGS='-I"$(HWLOC_top_builddir)"/include -I"$(HWLOC_top_srcdir)"/include'
40557
40558
40559
40560
40561
40562    # Set these values explicitly for embedded builds.  Exporting
40563    # these values through *_EMBEDDED_* values gives us the freedom to
40564    # do something different someday if we ever need to.  There's no
40565    # need to fill these values in unless we're in embedded mode.
40566    # Indeed, if we're building in embedded mode, we want HWLOC_LIBS
40567    # to be empty so that nothing is linked into libhwloc_embedded.la
40568    # itself -- only the upper-layer will link in anything required.
40569
40570    if test "$hwloc_mode" = "embedded"; then :
40571  HWLOC_EMBEDDED_CFLAGS=$HWLOC_CFLAGS
40572           HWLOC_EMBEDDED_CPPFLAGS=$HWLOC_CPPFLAGS
40573           HWLOC_EMBEDDED_LDFLAGS=$HWLOC_LDFLAGS
40574           HWLOC_EMBEDDED_LDADD='$(HWLOC_top_builddir)/hwloc/libhwloc_embedded.la'
40575           HWLOC_EMBEDDED_LIBS=$HWLOC_LIBS
40576           HWLOC_LIBS=
40577fi
40578
40579
40580
40581
40582
40583
40584    # Always generate these files
40585    ac_config_files="$ac_config_files modules/hwloc/Makefile modules/hwloc/include/Makefile modules/hwloc/hwloc/Makefile"
40586
40587
40588    # Cleanup
40589    ac_ext=c
40590ac_cpp='$CPP $CPPFLAGS'
40591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40593ac_compiler_gnu=$ac_cv_c_compiler_gnu
40594
40595
40596    # Success
40597    have_hwloc=yes
40598
40599   if test "$have_hwloc" = "yes" ; then
40600      hwlocsrcdir="modules/hwloc"
40601      hwloclib="$HWLOC_EMBEDDED_LDADD"
40602
40603
40604        if echo "$WRAPPER_LIBS" | $FGREP -e "\<$HWLOC_EMBEDDED_LIBS\>" >/dev/null 2>&1; then :
40605  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '$HWLOC_EMBEDDED_LIBS', not prepending" >&5
40606else
40607  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '$HWLOC_EMBEDDED_LIBS', prepending" >&5
40608                WRAPPER_LIBS="$HWLOC_EMBEDDED_LIBS $WRAPPER_LIBS"
40609
40610fi
40611
40612
40613
40614	if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<$HWLOC_EMBEDDED_LDFLAGS\>" >/dev/null 2>&1; then :
40615  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '$HWLOC_EMBEDDED_LDFLAGS', not appending" >&5
40616else
40617  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '$HWLOC_EMBEDDED_LDFLAGS', appending" >&5
40618		WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS $HWLOC_EMBEDDED_LDFLAGS"
40619
40620fi
40621
40622      # if possible, do not expose hwloc symbols in libmpi.so
40623
40624
40625        if echo "$HWLOC_CFLAGS" | $FGREP -e "\<$VISIBILITY_CFLAGS\>" >/dev/null 2>&1; then :
40626  echo "HWLOC_CFLAGS(='$HWLOC_CFLAGS') contains '$VISIBILITY_CFLAGS', not prepending" >&5
40627else
40628  echo "HWLOC_CFLAGS(='$HWLOC_CFLAGS') does not contain '$VISIBILITY_CFLAGS', prepending" >&5
40629                HWLOC_CFLAGS="$VISIBILITY_CFLAGS $HWLOC_CFLAGS"
40630
40631fi
40632
40633   fi
40634
40635	pac_save_enable_visibility_nesting=`expr ${pac_save_enable_visibility_nesting} - 1`
40636	eval enable_visibility="\$pac_save_enable_visibility_${pac_save_enable_visibility_nesting}"
40637	eval pac_save_enable_visibility_${pac_save_enable_visibility_nesting}=""
40638
40639else
40640   for ac_header in hwloc.h
40641do :
40642  ac_fn_c_check_header_mongrel "$LINENO" "hwloc.h" "ac_cv_header_hwloc_h" "$ac_includes_default"
40643if test "x$ac_cv_header_hwloc_h" = xyes; then :
40644  cat >>confdefs.h <<_ACEOF
40645#define HAVE_HWLOC_H 1
40646_ACEOF
40647
40648fi
40649
40650done
40651
40652
40653	if test -z "${pac_save_LIBS_nesting}" ; then
40654	   pac_save_LIBS_nesting=0
40655	fi
40656	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
40657	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
40658
40659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hwloc_topology_set_pid in -lhwloc" >&5
40660$as_echo_n "checking for hwloc_topology_set_pid in -lhwloc... " >&6; }
40661if ${ac_cv_lib_hwloc_hwloc_topology_set_pid+:} false; then :
40662  $as_echo_n "(cached) " >&6
40663else
40664  ac_check_lib_save_LIBS=$LIBS
40665LIBS="-lhwloc  $LIBS"
40666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40667/* end confdefs.h.  */
40668
40669/* Override any GCC internal prototype to avoid an error.
40670   Use char because int might match the return type of a GCC
40671   builtin and then its argument prototype would still apply.  */
40672#ifdef __cplusplus
40673extern "C"
40674#endif
40675char hwloc_topology_set_pid ();
40676int
40677main ()
40678{
40679return hwloc_topology_set_pid ();
40680  ;
40681  return 0;
40682}
40683_ACEOF
40684if ac_fn_c_try_link "$LINENO"; then :
40685  ac_cv_lib_hwloc_hwloc_topology_set_pid=yes
40686else
40687  ac_cv_lib_hwloc_hwloc_topology_set_pid=no
40688fi
40689rm -f core conftest.err conftest.$ac_objext \
40690    conftest$ac_exeext conftest.$ac_ext
40691LIBS=$ac_check_lib_save_LIBS
40692fi
40693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hwloc_hwloc_topology_set_pid" >&5
40694$as_echo "$ac_cv_lib_hwloc_hwloc_topology_set_pid" >&6; }
40695if test "x$ac_cv_lib_hwloc_hwloc_topology_set_pid" = xyes; then :
40696  cat >>confdefs.h <<_ACEOF
40697#define HAVE_LIBHWLOC 1
40698_ACEOF
40699
40700  LIBS="-lhwloc $LIBS"
40701
40702fi
40703
40704
40705	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
40706	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
40707	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
40708
40709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if non-embedded hwloc works" >&5
40710$as_echo_n "checking if non-embedded hwloc works... " >&6; }
40711   if test "$ac_cv_header_hwloc_h" = "yes" -a "$ac_cv_lib_hwloc_hwloc_topology_set_pid" = "yes" ; then
40712      have_hwloc=yes
40713
40714
40715        if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lhwloc\>" >/dev/null 2>&1; then :
40716  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lhwloc', not prepending" >&5
40717else
40718  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lhwloc', prepending" >&5
40719                WRAPPER_LIBS="-lhwloc $WRAPPER_LIBS"
40720
40721fi
40722
40723   else
40724      have_hwloc=no
40725   fi
40726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_hwloc" >&5
40727$as_echo "$have_hwloc" >&6; }
40728
40729   if test "$have_hwloc" = "yes" ; then
40730       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hwloc meets minimum version requirement" >&5
40731$as_echo_n "checking if hwloc meets minimum version requirement... " >&6; }
40732       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40733/* end confdefs.h.  */
40734#include <hwloc.h>
40735int
40736main ()
40737{
40738
40739                          #if HWLOC_API_VERSION < 0x00020000
40740                          #error
40741                          #endif
40742                          return 0;
40743  ;
40744  return 0;
40745}
40746_ACEOF
40747if ac_fn_c_try_compile "$LINENO"; then :
40748
40749else
40750  have_hwloc=no
40751fi
40752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40753       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_hwloc" >&5
40754$as_echo "$have_hwloc" >&6; }
40755
40756       # if an old hwloc was specified by the user, throw an error
40757       if test "$have_hwloc" = "no" ; then
40758           as_fn_error $? "hwloc installation does not meet minimum version requirement" "$LINENO" 5
40759       fi
40760   fi
40761
40762   # FIXME: Disable hwloc on Cygwin for now. The hwloc package,
40763   # atleast as of 1.0.2, does not install correctly on Cygwin
40764   case $host in #(
40765  *-*-cygwin) :
40766    have_hwloc=no ;; #(
40767  *) :
40768     ;;
40769esac
40770
40771   if test "$have_hwloc" = "yes" ; then
40772      if test -d ${with_hwloc_prefix}/lib64 ; then
40773
40774
40775	if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_hwloc_prefix}/lib64\>" >/dev/null 2>&1; then :
40776  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_hwloc_prefix}/lib64', not appending" >&5
40777else
40778  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_hwloc_prefix}/lib64', appending" >&5
40779		WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_hwloc_prefix}/lib64"
40780
40781fi
40782
40783      else
40784
40785
40786	if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_hwloc_prefix}/lib\>" >/dev/null 2>&1; then :
40787  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_hwloc_prefix}/lib', not appending" >&5
40788else
40789  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_hwloc_prefix}/lib', appending" >&5
40790		WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_hwloc_prefix}/lib"
40791
40792fi
40793
40794      fi
40795   fi
40796fi
40797
40798if test "$have_hwloc" = "yes" ; then
40799
40800$as_echo "#define HAVE_HWLOC 1" >>confdefs.h
40801
40802fi
40803
40804
40805    if test "$hwloc_did_am_conditionals" != "yes"; then :
40806
40807         if test "$hwloc_mode" = "standalone"; then
40808  HWLOC_BUILD_STANDALONE_TRUE=
40809  HWLOC_BUILD_STANDALONE_FALSE='#'
40810else
40811  HWLOC_BUILD_STANDALONE_TRUE='#'
40812  HWLOC_BUILD_STANDALONE_FALSE=
40813fi
40814
40815
40816         if test "x$GCC" = "xyes"; then
40817  HWLOC_HAVE_GCC_TRUE=
40818  HWLOC_HAVE_GCC_FALSE='#'
40819else
40820  HWLOC_HAVE_GCC_TRUE='#'
40821  HWLOC_HAVE_GCC_FALSE=
40822fi
40823
40824         if test "x$HWLOC_MS_LIB" != "x"; then
40825  HWLOC_HAVE_MS_LIB_TRUE=
40826  HWLOC_HAVE_MS_LIB_FALSE='#'
40827else
40828  HWLOC_HAVE_MS_LIB_TRUE='#'
40829  HWLOC_HAVE_MS_LIB_FALSE=
40830fi
40831
40832         if test "x$hwloc_have_openat" = "xyes"; then
40833  HWLOC_HAVE_OPENAT_TRUE=
40834  HWLOC_HAVE_OPENAT_FALSE='#'
40835else
40836  HWLOC_HAVE_OPENAT_TRUE='#'
40837  HWLOC_HAVE_OPENAT_FALSE=
40838fi
40839
40840         if test "x$hwloc_have_sched_setaffinity" = "xyes"; then
40841  HWLOC_HAVE_SCHED_SETAFFINITY_TRUE=
40842  HWLOC_HAVE_SCHED_SETAFFINITY_FALSE='#'
40843else
40844  HWLOC_HAVE_SCHED_SETAFFINITY_TRUE='#'
40845  HWLOC_HAVE_SCHED_SETAFFINITY_FALSE=
40846fi
40847
40848         if test "x$hwloc_have_pthread" = "xyes"; then
40849  HWLOC_HAVE_PTHREAD_TRUE=
40850  HWLOC_HAVE_PTHREAD_FALSE='#'
40851else
40852  HWLOC_HAVE_PTHREAD_TRUE='#'
40853  HWLOC_HAVE_PTHREAD_FALSE=
40854fi
40855
40856         if test "x$hwloc_have_linux_libnuma" = "xyes"; then
40857  HWLOC_HAVE_LINUX_LIBNUMA_TRUE=
40858  HWLOC_HAVE_LINUX_LIBNUMA_FALSE='#'
40859else
40860  HWLOC_HAVE_LINUX_LIBNUMA_TRUE='#'
40861  HWLOC_HAVE_LINUX_LIBNUMA_FALSE=
40862fi
40863
40864         if test "x$hwloc_have_libibverbs" = "xyes"; then
40865  HWLOC_HAVE_LIBIBVERBS_TRUE=
40866  HWLOC_HAVE_LIBIBVERBS_FALSE='#'
40867else
40868  HWLOC_HAVE_LIBIBVERBS_TRUE='#'
40869  HWLOC_HAVE_LIBIBVERBS_FALSE=
40870fi
40871
40872	 if test "x$hwloc_have_cuda" = "xyes"; then
40873  HWLOC_HAVE_CUDA_TRUE=
40874  HWLOC_HAVE_CUDA_FALSE='#'
40875else
40876  HWLOC_HAVE_CUDA_TRUE='#'
40877  HWLOC_HAVE_CUDA_FALSE=
40878fi
40879
40880	 if test "x$hwloc_have_gl" = "xyes"; then
40881  HWLOC_HAVE_GL_TRUE=
40882  HWLOC_HAVE_GL_FALSE='#'
40883else
40884  HWLOC_HAVE_GL_TRUE='#'
40885  HWLOC_HAVE_GL_FALSE=
40886fi
40887
40888	 if test "x$hwloc_have_cudart" = "xyes"; then
40889  HWLOC_HAVE_CUDART_TRUE=
40890  HWLOC_HAVE_CUDART_FALSE='#'
40891else
40892  HWLOC_HAVE_CUDART_TRUE='#'
40893  HWLOC_HAVE_CUDART_FALSE=
40894fi
40895
40896         if test "$hwloc_libxml2_happy" = "yes"; then
40897  HWLOC_HAVE_LIBXML2_TRUE=
40898  HWLOC_HAVE_LIBXML2_FALSE='#'
40899else
40900  HWLOC_HAVE_LIBXML2_TRUE='#'
40901  HWLOC_HAVE_LIBXML2_FALSE=
40902fi
40903
40904         if test "$hwloc_cairo_happy" = "yes"; then
40905  HWLOC_HAVE_CAIRO_TRUE=
40906  HWLOC_HAVE_CAIRO_FALSE='#'
40907else
40908  HWLOC_HAVE_CAIRO_TRUE='#'
40909  HWLOC_HAVE_CAIRO_FALSE=
40910fi
40911
40912         if test "$hwloc_pciaccess_happy" = "yes"; then
40913  HWLOC_HAVE_PCIACCESS_TRUE=
40914  HWLOC_HAVE_PCIACCESS_FALSE='#'
40915else
40916  HWLOC_HAVE_PCIACCESS_TRUE='#'
40917  HWLOC_HAVE_PCIACCESS_FALSE=
40918fi
40919
40920         if test "$hwloc_opencl_happy" = "yes"; then
40921  HWLOC_HAVE_OPENCL_TRUE=
40922  HWLOC_HAVE_OPENCL_FALSE='#'
40923else
40924  HWLOC_HAVE_OPENCL_TRUE='#'
40925  HWLOC_HAVE_OPENCL_FALSE=
40926fi
40927
40928         if test "$hwloc_nvml_happy" = "yes"; then
40929  HWLOC_HAVE_NVML_TRUE=
40930  HWLOC_HAVE_NVML_FALSE='#'
40931else
40932  HWLOC_HAVE_NVML_TRUE='#'
40933  HWLOC_HAVE_NVML_FALSE=
40934fi
40935
40936         if test "$hwloc_rsmi_happy" = "yes"; then
40937  HWLOC_HAVE_RSMI_TRUE=
40938  HWLOC_HAVE_RSMI_FALSE='#'
40939else
40940  HWLOC_HAVE_RSMI_TRUE='#'
40941  HWLOC_HAVE_RSMI_FALSE=
40942fi
40943
40944         if test "x$BUNZIPP" != "xfalse"; then
40945  HWLOC_HAVE_BUNZIPP_TRUE=
40946  HWLOC_HAVE_BUNZIPP_FALSE='#'
40947else
40948  HWLOC_HAVE_BUNZIPP_TRUE='#'
40949  HWLOC_HAVE_BUNZIPP_FALSE=
40950fi
40951
40952         if test "x$hwloc_have_user32" = "xyes"; then
40953  HWLOC_HAVE_USER32_TRUE=
40954  HWLOC_HAVE_USER32_FALSE='#'
40955else
40956  HWLOC_HAVE_USER32_TRUE='#'
40957  HWLOC_HAVE_USER32_FALSE=
40958fi
40959
40960
40961         if test "x$hwloc_generate_doxs" = "xyes"; then
40962  HWLOC_BUILD_DOXYGEN_TRUE=
40963  HWLOC_BUILD_DOXYGEN_FALSE='#'
40964else
40965  HWLOC_BUILD_DOXYGEN_TRUE='#'
40966  HWLOC_BUILD_DOXYGEN_FALSE=
40967fi
40968
40969         if test "x$hwloc_generate_readme" = "xyes" -a \( "x$hwloc_install_doxs" = "xyes" -o "x$hwloc_generate_doxs" = "xyes" \) ; then
40970  HWLOC_BUILD_README_TRUE=
40971  HWLOC_BUILD_README_FALSE='#'
40972else
40973  HWLOC_BUILD_README_TRUE='#'
40974  HWLOC_BUILD_README_FALSE=
40975fi
40976
40977         if test "x$hwloc_install_doxs" = "xyes"; then
40978  HWLOC_INSTALL_DOXYGEN_TRUE=
40979  HWLOC_INSTALL_DOXYGEN_FALSE='#'
40980else
40981  HWLOC_INSTALL_DOXYGEN_TRUE='#'
40982  HWLOC_INSTALL_DOXYGEN_FALSE=
40983fi
40984
40985
40986         if test "x$hwloc_linux" = "xyes"; then
40987  HWLOC_HAVE_LINUX_TRUE=
40988  HWLOC_HAVE_LINUX_FALSE='#'
40989else
40990  HWLOC_HAVE_LINUX_TRUE='#'
40991  HWLOC_HAVE_LINUX_FALSE=
40992fi
40993
40994         if test "x$hwloc_bgq" = "xyes"; then
40995  HWLOC_HAVE_BGQ_TRUE=
40996  HWLOC_HAVE_BGQ_FALSE='#'
40997else
40998  HWLOC_HAVE_BGQ_TRUE='#'
40999  HWLOC_HAVE_BGQ_FALSE=
41000fi
41001
41002         if test "x$hwloc_irix" = "xyes"; then
41003  HWLOC_HAVE_IRIX_TRUE=
41004  HWLOC_HAVE_IRIX_FALSE='#'
41005else
41006  HWLOC_HAVE_IRIX_TRUE='#'
41007  HWLOC_HAVE_IRIX_FALSE=
41008fi
41009
41010         if test "x$hwloc_darwin" = "xyes"; then
41011  HWLOC_HAVE_DARWIN_TRUE=
41012  HWLOC_HAVE_DARWIN_FALSE='#'
41013else
41014  HWLOC_HAVE_DARWIN_TRUE='#'
41015  HWLOC_HAVE_DARWIN_FALSE=
41016fi
41017
41018         if test "x$hwloc_freebsd" = "xyes"; then
41019  HWLOC_HAVE_FREEBSD_TRUE=
41020  HWLOC_HAVE_FREEBSD_FALSE='#'
41021else
41022  HWLOC_HAVE_FREEBSD_TRUE='#'
41023  HWLOC_HAVE_FREEBSD_FALSE=
41024fi
41025
41026         if test "x$hwloc_netbsd" = "xyes"; then
41027  HWLOC_HAVE_NETBSD_TRUE=
41028  HWLOC_HAVE_NETBSD_FALSE='#'
41029else
41030  HWLOC_HAVE_NETBSD_TRUE='#'
41031  HWLOC_HAVE_NETBSD_FALSE=
41032fi
41033
41034         if test "x$hwloc_solaris" = "xyes"; then
41035  HWLOC_HAVE_SOLARIS_TRUE=
41036  HWLOC_HAVE_SOLARIS_FALSE='#'
41037else
41038  HWLOC_HAVE_SOLARIS_TRUE='#'
41039  HWLOC_HAVE_SOLARIS_FALSE=
41040fi
41041
41042         if test "x$hwloc_aix" = "xyes"; then
41043  HWLOC_HAVE_AIX_TRUE=
41044  HWLOC_HAVE_AIX_FALSE='#'
41045else
41046  HWLOC_HAVE_AIX_TRUE='#'
41047  HWLOC_HAVE_AIX_FALSE=
41048fi
41049
41050         if test "x$hwloc_hpux" = "xyes"; then
41051  HWLOC_HAVE_HPUX_TRUE=
41052  HWLOC_HAVE_HPUX_FALSE='#'
41053else
41054  HWLOC_HAVE_HPUX_TRUE='#'
41055  HWLOC_HAVE_HPUX_FALSE=
41056fi
41057
41058         if test "x$hwloc_windows" = "xyes"; then
41059  HWLOC_HAVE_WINDOWS_TRUE=
41060  HWLOC_HAVE_WINDOWS_FALSE='#'
41061else
41062  HWLOC_HAVE_WINDOWS_TRUE='#'
41063  HWLOC_HAVE_WINDOWS_FALSE=
41064fi
41065
41066         if test "x$target_os" = "xmingw32"; then
41067  HWLOC_HAVE_MINGW32_TRUE=
41068  HWLOC_HAVE_MINGW32_FALSE='#'
41069else
41070  HWLOC_HAVE_MINGW32_TRUE='#'
41071  HWLOC_HAVE_MINGW32_FALSE=
41072fi
41073
41074
41075         if test "x$hwloc_x86_32" = "xyes" -o "x$hwloc_x86_64" = "xyes"; then
41076  HWLOC_HAVE_X86_TRUE=
41077  HWLOC_HAVE_X86_FALSE='#'
41078else
41079  HWLOC_HAVE_X86_TRUE='#'
41080  HWLOC_HAVE_X86_FALSE=
41081fi
41082
41083         if test "x$hwloc_x86_32" = "xyes"; then
41084  HWLOC_HAVE_X86_32_TRUE=
41085  HWLOC_HAVE_X86_32_FALSE='#'
41086else
41087  HWLOC_HAVE_X86_32_TRUE='#'
41088  HWLOC_HAVE_X86_32_FALSE=
41089fi
41090
41091         if test "x$hwloc_x86_64" = "xyes"; then
41092  HWLOC_HAVE_X86_64_TRUE=
41093  HWLOC_HAVE_X86_64_FALSE='#'
41094else
41095  HWLOC_HAVE_X86_64_TRUE='#'
41096  HWLOC_HAVE_X86_64_FALSE=
41097fi
41098
41099         if test "x$hwloc_have_x86_cpuid" = "xyes"; then
41100  HWLOC_HAVE_X86_CPUID_TRUE=
41101  HWLOC_HAVE_X86_CPUID_FALSE='#'
41102else
41103  HWLOC_HAVE_X86_CPUID_TRUE='#'
41104  HWLOC_HAVE_X86_CPUID_FALSE=
41105fi
41106
41107
41108         if test "x$enable_32bits_pci_domain" = "xyes"; then
41109  HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE=
41110  HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE='#'
41111else
41112  HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE='#'
41113  HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE=
41114fi
41115
41116
41117         if test "x$hwloc_have_plugins" = "xyes"; then
41118  HWLOC_HAVE_PLUGINS_TRUE=
41119  HWLOC_HAVE_PLUGINS_FALSE='#'
41120else
41121  HWLOC_HAVE_PLUGINS_TRUE='#'
41122  HWLOC_HAVE_PLUGINS_FALSE=
41123fi
41124
41125         if test "x$hwloc_pci_component" = "xstatic"; then
41126  HWLOC_PCI_BUILD_STATIC_TRUE=
41127  HWLOC_PCI_BUILD_STATIC_FALSE='#'
41128else
41129  HWLOC_PCI_BUILD_STATIC_TRUE='#'
41130  HWLOC_PCI_BUILD_STATIC_FALSE=
41131fi
41132
41133         if test "x$hwloc_opencl_component" = "xstatic"; then
41134  HWLOC_OPENCL_BUILD_STATIC_TRUE=
41135  HWLOC_OPENCL_BUILD_STATIC_FALSE='#'
41136else
41137  HWLOC_OPENCL_BUILD_STATIC_TRUE='#'
41138  HWLOC_OPENCL_BUILD_STATIC_FALSE=
41139fi
41140
41141         if test "x$hwloc_cuda_component" = "xstatic"; then
41142  HWLOC_CUDA_BUILD_STATIC_TRUE=
41143  HWLOC_CUDA_BUILD_STATIC_FALSE='#'
41144else
41145  HWLOC_CUDA_BUILD_STATIC_TRUE='#'
41146  HWLOC_CUDA_BUILD_STATIC_FALSE=
41147fi
41148
41149         if test "x$hwloc_nvml_component" = "xstatic"; then
41150  HWLOC_NVML_BUILD_STATIC_TRUE=
41151  HWLOC_NVML_BUILD_STATIC_FALSE='#'
41152else
41153  HWLOC_NVML_BUILD_STATIC_TRUE='#'
41154  HWLOC_NVML_BUILD_STATIC_FALSE=
41155fi
41156
41157         if test "x$hwloc_rsmi_component" = "xstatic"; then
41158  HWLOC_RSMI_BUILD_STATIC_TRUE=
41159  HWLOC_RSMI_BUILD_STATIC_FALSE='#'
41160else
41161  HWLOC_RSMI_BUILD_STATIC_TRUE='#'
41162  HWLOC_RSMI_BUILD_STATIC_FALSE=
41163fi
41164
41165         if test "x$hwloc_gl_component" = "xstatic"; then
41166  HWLOC_GL_BUILD_STATIC_TRUE=
41167  HWLOC_GL_BUILD_STATIC_FALSE='#'
41168else
41169  HWLOC_GL_BUILD_STATIC_TRUE='#'
41170  HWLOC_GL_BUILD_STATIC_FALSE=
41171fi
41172
41173         if test "x$hwloc_xml_libxml_component" = "xstatic"; then
41174  HWLOC_XML_LIBXML_BUILD_STATIC_TRUE=
41175  HWLOC_XML_LIBXML_BUILD_STATIC_FALSE='#'
41176else
41177  HWLOC_XML_LIBXML_BUILD_STATIC_TRUE='#'
41178  HWLOC_XML_LIBXML_BUILD_STATIC_FALSE=
41179fi
41180
41181
41182         if test "x$hwloc_have_cxx" = "xyes"; then
41183  HWLOC_HAVE_CXX_TRUE=
41184  HWLOC_HAVE_CXX_FALSE='#'
41185else
41186  HWLOC_HAVE_CXX_TRUE='#'
41187  HWLOC_HAVE_CXX_FALSE=
41188fi
41189
41190
41191fi
41192    hwloc_did_am_conditionals=yes
41193
41194    # For backwards compatibility (i.e., packages that only call
41195    # HWLOC_DO_AM_CONDITIONS, not NETLOC DO_AM_CONDITIONALS), we also have to
41196    # do the netloc AM conditionals here
41197
41198     if test "$netloc_happy" = "yes"; then
41199  BUILD_NETLOC_TRUE=
41200  BUILD_NETLOC_FALSE='#'
41201else
41202  BUILD_NETLOC_TRUE='#'
41203  BUILD_NETLOC_FALSE=
41204fi
41205
41206     if test "x$scotch_found_headers" = "xyes"; then
41207  BUILD_NETLOCSCOTCH_TRUE=
41208  BUILD_NETLOCSCOTCH_FALSE='#'
41209else
41210  BUILD_NETLOCSCOTCH_TRUE='#'
41211  BUILD_NETLOCSCOTCH_FALSE=
41212fi
41213
41214     if test "x$mpi_found_headers" = "xyes"; then
41215  BUILD_MPITOOLS_TRUE=
41216  BUILD_MPITOOLS_FALSE='#'
41217else
41218  BUILD_MPITOOLS_TRUE='#'
41219  BUILD_MPITOOLS_FALSE=
41220fi
41221
41222     if test "x$xz" = xyes; then
41223  FOUND_XZ_TRUE=
41224  FOUND_XZ_FALSE='#'
41225else
41226  FOUND_XZ_TRUE='#'
41227  FOUND_XZ_FALSE=
41228fi
41229
41230
41231
41232
41233# ----------------------------------------------------------------------------
41234# NETLOC
41235# ----------------------------------------------------------------------------
41236
41237# Check whether --with-netloc-prefix was given.
41238if test "${with_netloc_prefix+set}" = set; then :
41239  withval=$with_netloc_prefix;
41240else
41241  with_netloc_prefix=no
41242fi
41243
41244
41245netloclibdir=""
41246
41247
41248if test "$have_hwloc" = "yes" ; then
41249    if test "${with_netloc_prefix}" != "no" ; then
41250        if test "${with_netloc_prefix}" != "system"; then
41251            # The user specified an already-installed Netloc; just sanity check,
41252            # don't subconfigure it
41253            if test -s "${with_netloc_prefix}/include/netloc.h"; then :
41254  :
41255else
41256  as_fn_error $? "the Netloc installation in \"${with_netloc_prefix}\" appears broken" "$LINENO" 5
41257fi
41258
41259
41260	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_netloc_prefix}/include\>" >/dev/null 2>&1; then :
41261  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_netloc_prefix}/include', not appending" >&5
41262else
41263  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_netloc_prefix}/include', appending" >&5
41264		CPPFLAGS="$CPPFLAGS -I${with_netloc_prefix}/include"
41265
41266fi
41267
41268
41269
41270	if echo "$CFLAGS" | $FGREP -e "\<-I${with_netloc_prefix}/include\>" >/dev/null 2>&1; then :
41271  echo "CFLAGS(='$CFLAGS') contains '-I${with_netloc_prefix}/include', not appending" >&5
41272else
41273  echo "CFLAGS(='$CFLAGS') does not contain '-I${with_netloc_prefix}/include', appending" >&5
41274		CFLAGS="$CFLAGS -I${with_netloc_prefix}/include"
41275
41276fi
41277
41278
41279
41280        if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lnetloc\>" >/dev/null 2>&1; then :
41281  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lnetloc', not prepending" >&5
41282else
41283  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lnetloc', prepending" >&5
41284                WRAPPER_LIBS="-lnetloc $WRAPPER_LIBS"
41285
41286fi
41287
41288            if test -d ${with_netloc_prefix}/lib64 ; then
41289
41290
41291	if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_netloc_prefix}/lib64\>" >/dev/null 2>&1; then :
41292  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_netloc_prefix}/lib64', not appending" >&5
41293else
41294  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_netloc_prefix}/lib64', appending" >&5
41295		WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_netloc_prefix}/lib64"
41296
41297fi
41298
41299                netloclibdir="-L${with_netloc_prefix}/lib64"
41300            else
41301
41302
41303	if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-L${with_netloc_prefix}/lib\>" >/dev/null 2>&1; then :
41304  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-L${with_netloc_prefix}/lib', not appending" >&5
41305else
41306  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-L${with_netloc_prefix}/lib', appending" >&5
41307		WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -L${with_netloc_prefix}/lib"
41308
41309fi
41310
41311                netloclibdir="-L${with_netloc_prefix}/lib"
41312            fi
41313       else
41314           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41315/* end confdefs.h.  */
41316#include "netloc.h"
41317
41318int
41319main ()
41320{
41321
41322  ;
41323  return 0;
41324}
41325_ACEOF
41326if ac_fn_c_try_link "$LINENO"; then :
41327  as_fn_error $? "the Netloc installation seems to be added from system path" "$LINENO" 5
41328fi
41329rm -f core conftest.err conftest.$ac_objext \
41330    conftest$ac_exeext conftest.$ac_ext
41331       fi
41332
41333$as_echo "#define HAVE_NETLOC 1" >>confdefs.h
41334
41335    fi
41336fi
41337
41338# ----------------------------------------------------------------------------
41339# Threads
41340# ----------------------------------------------------------------------------
41341# config time:
41342# * MPID_MAX_THREAD_LEVEL, set in one of the device subconfigure.m4,
41343#    determines the maximum thread level, typically MPI_THREAD_MULTIPLE.
41344#    If missing, equivallent to single.
41345# * --enable-threads, explict user config option, raise error if beyond
41346#    MPID_MAX_THREAD_LEVEL.
41347#    It default to MPID_MAX_THREAD_LEVEL.
41348# * MPICH_THREAD_LEVEL is set by enable_threads
41349# * MPICH_IS_THREADED is set when MPICH_THREAD_LEVEL==MPI_THREAD_MULTIPLE
41350# runtime:
41351# * MPI_Init checks MPIR_CVAR_DEFAULT_THREAD_LEVEL, default to single
41352# * MPI_Init_thread may request thread level explicitly
41353# * MPID_Init_thread_level may overwrite the requested thread level
41354#
41355# Threads must be supported by the device.  First, set the default to
41356# be the highest supported by the device
41357# "runtime" was an old (now deprecated) option; just map it to multiple
41358if test "$enable_threads" = "runtime" ; then enable_threads=multiple ; fi
41359if test "$enable_threads" = "yes" ; then enable_threads=default ; fi
41360if test "$enable_threads" = "no" ; then enable_threads=single ; fi
41361if test "$enable_threads" = default ; then
41362    # XXX DJG bug is here, PREREQ is not being used right now
41363    if test -n "$MPID_MAX_THREAD_LEVEL" ; then
41364        case $MPID_MAX_THREAD_LEVEL in
41365            MPI_THREAD_SINGLE)     enable_threads=single ;;
41366            MPI_THREAD_FUNNELED)   enable_threads=funneled ;;
41367            MPI_THREAD_SERIALIZED) enable_threads=serialized ;;
41368            MPI_THREAD_MULTIPLE)   enable_threads=multiple ;;
41369            *) as_fn_error $? "Unrecognized thread level from device $MPID_MAX_THREAD_LEVEL" "$LINENO" 5
41370    	    ;;
41371        esac
41372    else
41373        enable_threads=single
41374    fi
41375fi
41376
41377MPICH_THREAD_LEVEL=MPI_THREAD_FUNNELED
41378case "$enable_threads" in
41379    single)
41380    thread_pkg_required=no
41381    MPICH_THREAD_LEVEL=MPI_THREAD_SINGLE
41382    ;;
41383    funneled)
41384    thread_pkg_required=no
41385    MPICH_THREAD_LEVEL=MPI_THREAD_FUNNELED
41386    ;;
41387    serialized)
41388    thread_pkg_required=no
41389    MPICH_THREAD_LEVEL=MPI_THREAD_SERIALIZED
41390    ;;
41391    multiple)
41392    thread_pkg_required=yes
41393    MPICH_THREAD_LEVEL=MPI_THREAD_MULTIPLE
41394    ;;
41395    *)
41396    as_fn_error $? "\"$enable_threads\" is not a valid value for --enable-threads" "$LINENO" 5
41397    ;;
41398esac
41399# Check that the requested thread level is available.
41400threadLevelOK=yes
41401if test ! -z "$MPID_MAX_THREAD_LEVEL" ; then
41402    # Check that MPID_MAX_THREAD_LEVEL is at least as large as the
41403    # selected MPICH_THREAD_LEVEL
41404    case $MPICH_THREAD_LEVEL in
41405        MPI_THREAD_MULTIPLE)
41406	if test "$MPID_MAX_THREAD_LEVEL" != "MPI_THREAD_MULTIPLE" ; then
41407	    threadLevelOK=no
41408        fi
41409	;;
41410	MPI_THREAD_SERIALIZED)
41411	if test "$MPID_MAX_THREAD_LEVEL" != "MPI_THREAD_MULTIPLE" -a \
41412	        "$MPID_MAX_THREAD_LEVEL" != "MPI_THREAD_SERIALIZED" ; then
41413            threadLevelOK=no
41414        fi
41415	;;
41416	MPI_THREAD_FUNNELED)
41417        if test "$MPID_MAX_THREAD_LEVEL" = "MPI_THREAD_SINGLE" ; then
41418            threadLevelOK=no
41419        fi
41420	;;
41421	MPI_THREAD_SINGLE)
41422	;;
41423    esac
41424fi
41425if test "$threadLevelOK" != yes ; then
41426   as_fn_error $? "The device $with_device does not support $MPICH_THREAD_LEVEL" "$LINENO" 5
41427fi
41428
41429export MPICH_THREAD_LEVEL
41430
41431cat >>confdefs.h <<_ACEOF
41432#define MPICH_THREAD_LEVEL $MPICH_THREAD_LEVEL
41433_ACEOF
41434
41435
41436if test "$MPICH_THREAD_LEVEL" = "MPI_THREAD_MULTIPLE" ; then
41437
41438$as_echo "#define MPICH_IS_THREADED 1" >>confdefs.h
41439
41440fi
41441
41442# If not in MPI_THREAD_SINGLE, we need -D_REENTRANT to get thread-safe "errno".
41443# Most POSIX systems provide this by default when using -lpthread, but we only use it in MPI_THREAD_MULTIPLE.
41444# Some systems (Solaris) still require an explicit define in any case.
41445if test "$MPICH_THREAD_LEVEL" != "MPI_THREAD_SINGLE"; then
41446
41447
41448	if echo "$CPPFLAGS" | $FGREP -e "\<-D_REENTRANT\>" >/dev/null 2>&1; then :
41449  echo "CPPFLAGS(='$CPPFLAGS') contains '-D_REENTRANT', not appending" >&5
41450else
41451  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-D_REENTRANT', appending" >&5
41452		CPPFLAGS="$CPPFLAGS -D_REENTRANT"
41453
41454fi
41455
41456fi
41457
41458# Check for value thread_cs choice; set the refcount default if necessary
41459thread_granularity=MPICH_THREAD_GRANULARITY__SINGLE
41460thread_refcount=MPICH_REFCOUNT__NONE
41461if test "$enable_threads" = "multiple" ; then
41462    # default depends on ch3 or ch4
41463    if test "$enable_thread_cs" = "default" ; then
41464        enable_thread_cs="global"
41465    fi
41466
41467    case $enable_thread_cs in
41468    global)
41469    thread_granularity=MPICH_THREAD_GRANULARITY__GLOBAL
41470    if test "$enable_refcount" = "default" ; then enable_refcount=none ; fi
41471    ;;
41472    per-object|per_object)
41473    thread_granularity=MPICH_THREAD_GRANULARITY__POBJ
41474    if test "$enable_refcount" = "default" ; then enable_refcount=lock-free ; fi
41475    ;;
41476    per-vci|per_vci)
41477    thread_granularity=MPICH_THREAD_GRANULARITY__VCI
41478    if test "$enable_refcount" = "default" ; then enable_refcount=lock-free ; fi
41479    ;;
41480    lock-free|lock_free|lockfree)
41481    thread_granularity=MPICH_THREAD_GRANULARITY__LOCKFREE
41482    if test "$enable_refcount" = "default" ; then enable_refcount=lock-free ; fi
41483    if test "$enable_predefined_refcount" = "default" ; then enable_predefined_refcount=no ; fi
41484    as_fn_error $? "--enable-thread-cs=lock-free is not supported yet, please select a different granularity" "$LINENO" 5
41485    ;;
41486    *)
41487    as_fn_error $? "Unrecognized value $enable_thread_cs for --enable-thread-cs" "$LINENO" 5
41488    ;;
41489    esac
41490
41491    case $enable_refcount in
41492    lock-free|lock_free|lockfree)
41493    thread_refcount=MPICH_REFCOUNT__LOCKFREE
41494    ;;
41495    none)
41496    thread_refcount=MPICH_REFCOUNT__NONE
41497    ;;
41498    *)
41499    as_fn_error $? "Unrecognized value $enable_refcount for --enable-refcount" "$LINENO" 5
41500    ;;
41501    esac
41502fi
41503
41504cat >>confdefs.h <<_ACEOF
41505#define MPICH_THREAD_GRANULARITY $thread_granularity
41506_ACEOF
41507
41508
41509if test "$thread_granularity" = "MPICH_THREAD_GRANULARITY__POBJ" -a "$device_name" == "ch4" ; then
41510    as_fn_error $? "the ch4 device does not support the per-object critical section" "$LINENO" 5
41511fi
41512
41513if test "$thread_granularity" = "MPICH_THREAD_GRANULARITY__VCI" -a "$device_name" != "ch4" ; then
41514    as_fn_error $? "per-vci critical section granularity is only supported for the ch4 device" "$LINENO" 5
41515fi
41516
41517if test "$enable_predefined_refcount" = "no" ; then
41518
41519$as_echo "#define MPICH_THREAD_SUPPRESS_PREDEFINED_REFCOUNTS 1" >>confdefs.h
41520
41521fi
41522
41523
41524cat >>confdefs.h <<_ACEOF
41525#define MPICH_THREAD_REFCOUNT $thread_refcount
41526_ACEOF
41527
41528
41529# enable-g
41530# strip off multiple options, separated by commas
41531save_IFS="$IFS"
41532IFS=","
41533for option in $enable_g ; do
41534    case "$option" in
41535        debug|dbg)
41536        enable_append_g=yes
41537	;;
41538        asan)
41539        enable_asan=yes
41540        ;;
41541        ubsan)
41542        enable_ubsan=yes
41543        ;;
41544        no|none)
41545	;;
41546	handlealloc)
41547	perform_handlealloc=yes
41548	;;
41549	handle)
41550        perform_handle=yes
41551	;;
41552	meminit)
41553	perform_meminit=yes
41554	;;
41555	memarena)
41556	perform_memarena=yes
41557	perform_memtracing=yes
41558	;;
41559	mem)
41560	perform_memtracing=yes
41561	;;
41562	mutex)
41563	perform_dbgmutex=yes
41564	;;
41565        most|yes)
41566        perform_memtracing=yes
41567        enable_append_g=yes
41568        perform_meminit=yes
41569        perform_dbgmutex=yes
41570        perform_handlealloc=yes
41571        perform_handle=yes
41572        ;;
41573	all)
41574        perform_memarena=yes
41575	perform_memtracing=yes
41576	enable_append_g=yes
41577	perform_meminit=yes
41578	perform_dbgmutex=yes
41579	perform_handlealloc=yes
41580        perform_handle=yes
41581	;;
41582	*)
41583	IFS=$save_IFS
41584	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $option for enable-g" >&5
41585$as_echo "$as_me: WARNING: Unknown value $option for enable-g" >&2;}
41586	IFS=","
41587	;;
41588    esac
41589done
41590IFS="$save_IFS"
41591
41592if test "$enable_append_g" = "yes" ; then
41593
41594
41595	if echo "$CFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then :
41596  echo "CFLAGS(='$CFLAGS') contains '-g', not appending" >&5
41597else
41598  echo "CFLAGS(='$CFLAGS') does not contain '-g', appending" >&5
41599		CFLAGS="$CFLAGS -g"
41600
41601fi
41602
41603
41604
41605	if echo "$CXXFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then :
41606  echo "CXXFLAGS(='$CXXFLAGS') contains '-g', not appending" >&5
41607else
41608  echo "CXXFLAGS(='$CXXFLAGS') does not contain '-g', appending" >&5
41609		CXXFLAGS="$CXXFLAGS -g"
41610
41611fi
41612
41613
41614
41615	if echo "$FFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then :
41616  echo "FFLAGS(='$FFLAGS') contains '-g', not appending" >&5
41617else
41618  echo "FFLAGS(='$FFLAGS') does not contain '-g', appending" >&5
41619		FFLAGS="$FFLAGS -g"
41620
41621fi
41622
41623
41624
41625	if echo "$FCFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then :
41626  echo "FCFLAGS(='$FCFLAGS') contains '-g', not appending" >&5
41627else
41628  echo "FCFLAGS(='$FCFLAGS') does not contain '-g', appending" >&5
41629		FCFLAGS="$FCFLAGS -g"
41630
41631fi
41632
41633
41634
41635	if echo "$WRAPPER_CFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then :
41636  echo "WRAPPER_CFLAGS(='$WRAPPER_CFLAGS') contains '-g', not appending" >&5
41637else
41638  echo "WRAPPER_CFLAGS(='$WRAPPER_CFLAGS') does not contain '-g', appending" >&5
41639		WRAPPER_CFLAGS="$WRAPPER_CFLAGS -g"
41640
41641fi
41642
41643
41644
41645	if echo "$WRAPPER_CXXFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then :
41646  echo "WRAPPER_CXXFLAGS(='$WRAPPER_CXXFLAGS') contains '-g', not appending" >&5
41647else
41648  echo "WRAPPER_CXXFLAGS(='$WRAPPER_CXXFLAGS') does not contain '-g', appending" >&5
41649		WRAPPER_CXXFLAGS="$WRAPPER_CXXFLAGS -g"
41650
41651fi
41652
41653
41654
41655	if echo "$WRAPPER_FFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then :
41656  echo "WRAPPER_FFLAGS(='$WRAPPER_FFLAGS') contains '-g', not appending" >&5
41657else
41658  echo "WRAPPER_FFLAGS(='$WRAPPER_FFLAGS') does not contain '-g', appending" >&5
41659		WRAPPER_FFLAGS="$WRAPPER_FFLAGS -g"
41660
41661fi
41662
41663
41664
41665	if echo "$WRAPPER_FCFLAGS" | $FGREP -e "\<-g\>" >/dev/null 2>&1; then :
41666  echo "WRAPPER_FCFLAGS(='$WRAPPER_FCFLAGS') contains '-g', not appending" >&5
41667else
41668  echo "WRAPPER_FCFLAGS(='$WRAPPER_FCFLAGS') does not contain '-g', appending" >&5
41669		WRAPPER_FCFLAGS="$WRAPPER_FCFLAGS -g"
41670
41671fi
41672
41673fi
41674
41675if test "$enable_asan" = "yes" ; then
41676
41677
41678	if echo "$CFLAGS" | $FGREP -e "\<-O1 -g -fsanitize=address -fno-omit-frame-pointer\>" >/dev/null 2>&1; then :
41679  echo "CFLAGS(='$CFLAGS') contains '-O1 -g -fsanitize=address -fno-omit-frame-pointer', not appending" >&5
41680else
41681  echo "CFLAGS(='$CFLAGS') does not contain '-O1 -g -fsanitize=address -fno-omit-frame-pointer', appending" >&5
41682		CFLAGS="$CFLAGS -O1 -g -fsanitize=address -fno-omit-frame-pointer"
41683
41684fi
41685
41686
41687
41688	if echo "$CXXFLAGS" | $FGREP -e "\<-O1 -g -fsanitize=address -fno-omit-frame-pointer\>" >/dev/null 2>&1; then :
41689  echo "CXXFLAGS(='$CXXFLAGS') contains '-O1 -g -fsanitize=address -fno-omit-frame-pointer', not appending" >&5
41690else
41691  echo "CXXFLAGS(='$CXXFLAGS') does not contain '-O1 -g -fsanitize=address -fno-omit-frame-pointer', appending" >&5
41692		CXXFLAGS="$CXXFLAGS -O1 -g -fsanitize=address -fno-omit-frame-pointer"
41693
41694fi
41695
41696
41697
41698	if echo "$FFLAGS" | $FGREP -e "\<-O1 -g -fsanitize=address -fno-omit-frame-pointer\>" >/dev/null 2>&1; then :
41699  echo "FFLAGS(='$FFLAGS') contains '-O1 -g -fsanitize=address -fno-omit-frame-pointer', not appending" >&5
41700else
41701  echo "FFLAGS(='$FFLAGS') does not contain '-O1 -g -fsanitize=address -fno-omit-frame-pointer', appending" >&5
41702		FFLAGS="$FFLAGS -O1 -g -fsanitize=address -fno-omit-frame-pointer"
41703
41704fi
41705
41706
41707
41708	if echo "$FCFLAGS" | $FGREP -e "\<-O1 -g -fsanitize=address -fno-omit-frame-pointer\>" >/dev/null 2>&1; then :
41709  echo "FCFLAGS(='$FCFLAGS') contains '-O1 -g -fsanitize=address -fno-omit-frame-pointer', not appending" >&5
41710else
41711  echo "FCFLAGS(='$FCFLAGS') does not contain '-O1 -g -fsanitize=address -fno-omit-frame-pointer', appending" >&5
41712		FCFLAGS="$FCFLAGS -O1 -g -fsanitize=address -fno-omit-frame-pointer"
41713
41714fi
41715
41716
41717
41718	if echo "$WRAPPER_CFLAGS" | $FGREP -e "\<-O1 -g -fsanitize=address -fno-omit-frame-pointer\>" >/dev/null 2>&1; then :
41719  echo "WRAPPER_CFLAGS(='$WRAPPER_CFLAGS') contains '-O1 -g -fsanitize=address -fno-omit-frame-pointer', not appending" >&5
41720else
41721  echo "WRAPPER_CFLAGS(='$WRAPPER_CFLAGS') does not contain '-O1 -g -fsanitize=address -fno-omit-frame-pointer', appending" >&5
41722		WRAPPER_CFLAGS="$WRAPPER_CFLAGS -O1 -g -fsanitize=address -fno-omit-frame-pointer"
41723
41724fi
41725
41726
41727
41728	if echo "$WRAPPER_CXXFLAGS" | $FGREP -e "\<-O1 -g -fsanitize=address -fno-omit-frame-pointer\>" >/dev/null 2>&1; then :
41729  echo "WRAPPER_CXXFLAGS(='$WRAPPER_CXXFLAGS') contains '-O1 -g -fsanitize=address -fno-omit-frame-pointer', not appending" >&5
41730else
41731  echo "WRAPPER_CXXFLAGS(='$WRAPPER_CXXFLAGS') does not contain '-O1 -g -fsanitize=address -fno-omit-frame-pointer', appending" >&5
41732		WRAPPER_CXXFLAGS="$WRAPPER_CXXFLAGS -O1 -g -fsanitize=address -fno-omit-frame-pointer"
41733
41734fi
41735
41736
41737
41738	if echo "$WRAPPER_FFLAGS" | $FGREP -e "\<-O1 -g -fsanitize=address -fno-omit-frame-pointer\>" >/dev/null 2>&1; then :
41739  echo "WRAPPER_FFLAGS(='$WRAPPER_FFLAGS') contains '-O1 -g -fsanitize=address -fno-omit-frame-pointer', not appending" >&5
41740else
41741  echo "WRAPPER_FFLAGS(='$WRAPPER_FFLAGS') does not contain '-O1 -g -fsanitize=address -fno-omit-frame-pointer', appending" >&5
41742		WRAPPER_FFLAGS="$WRAPPER_FFLAGS -O1 -g -fsanitize=address -fno-omit-frame-pointer"
41743
41744fi
41745
41746
41747
41748	if echo "$WRAPPER_FCFLAGS" | $FGREP -e "\<-O1 -g -fsanitize=address -fno-omit-frame-pointer\>" >/dev/null 2>&1; then :
41749  echo "WRAPPER_FCFLAGS(='$WRAPPER_FCFLAGS') contains '-O1 -g -fsanitize=address -fno-omit-frame-pointer', not appending" >&5
41750else
41751  echo "WRAPPER_FCFLAGS(='$WRAPPER_FCFLAGS') does not contain '-O1 -g -fsanitize=address -fno-omit-frame-pointer', appending" >&5
41752		WRAPPER_FCFLAGS="$WRAPPER_FCFLAGS -O1 -g -fsanitize=address -fno-omit-frame-pointer"
41753
41754fi
41755
41756
41757
41758	if echo "$LDFLAGS" | $FGREP -e "\<-fsanitize=address\>" >/dev/null 2>&1; then :
41759  echo "LDFLAGS(='$LDFLAGS') contains '-fsanitize=address', not appending" >&5
41760else
41761  echo "LDFLAGS(='$LDFLAGS') does not contain '-fsanitize=address', appending" >&5
41762		LDFLAGS="$LDFLAGS -fsanitize=address"
41763
41764fi
41765
41766fi
41767if test "$enable_ubsan" = "yes" ; then
41768
41769
41770	if echo "$CFLAGS" | $FGREP -e "\<-fsanitize=undefined\>" >/dev/null 2>&1; then :
41771  echo "CFLAGS(='$CFLAGS') contains '-fsanitize=undefined', not appending" >&5
41772else
41773  echo "CFLAGS(='$CFLAGS') does not contain '-fsanitize=undefined', appending" >&5
41774		CFLAGS="$CFLAGS -fsanitize=undefined"
41775
41776fi
41777
41778
41779
41780	if echo "$CXXFLAGS" | $FGREP -e "\<-fsanitize=undefined\>" >/dev/null 2>&1; then :
41781  echo "CXXFLAGS(='$CXXFLAGS') contains '-fsanitize=undefined', not appending" >&5
41782else
41783  echo "CXXFLAGS(='$CXXFLAGS') does not contain '-fsanitize=undefined', appending" >&5
41784		CXXFLAGS="$CXXFLAGS -fsanitize=undefined"
41785
41786fi
41787
41788
41789
41790	if echo "$FFLAGS" | $FGREP -e "\<-fsanitize=undefined\>" >/dev/null 2>&1; then :
41791  echo "FFLAGS(='$FFLAGS') contains '-fsanitize=undefined', not appending" >&5
41792else
41793  echo "FFLAGS(='$FFLAGS') does not contain '-fsanitize=undefined', appending" >&5
41794		FFLAGS="$FFLAGS -fsanitize=undefined"
41795
41796fi
41797
41798
41799
41800	if echo "$FCFLAGS" | $FGREP -e "\<-fsanitize=undefined\>" >/dev/null 2>&1; then :
41801  echo "FCFLAGS(='$FCFLAGS') contains '-fsanitize=undefined', not appending" >&5
41802else
41803  echo "FCFLAGS(='$FCFLAGS') does not contain '-fsanitize=undefined', appending" >&5
41804		FCFLAGS="$FCFLAGS -fsanitize=undefined"
41805
41806fi
41807
41808
41809
41810	if echo "$WRAPPER_CFLAGS" | $FGREP -e "\<-fsanitize=undefined\>" >/dev/null 2>&1; then :
41811  echo "WRAPPER_CFLAGS(='$WRAPPER_CFLAGS') contains '-fsanitize=undefined', not appending" >&5
41812else
41813  echo "WRAPPER_CFLAGS(='$WRAPPER_CFLAGS') does not contain '-fsanitize=undefined', appending" >&5
41814		WRAPPER_CFLAGS="$WRAPPER_CFLAGS -fsanitize=undefined"
41815
41816fi
41817
41818
41819
41820	if echo "$WRAPPER_CXXFLAGS" | $FGREP -e "\<-fsanitize=undefined\>" >/dev/null 2>&1; then :
41821  echo "WRAPPER_CXXFLAGS(='$WRAPPER_CXXFLAGS') contains '-fsanitize=undefined', not appending" >&5
41822else
41823  echo "WRAPPER_CXXFLAGS(='$WRAPPER_CXXFLAGS') does not contain '-fsanitize=undefined', appending" >&5
41824		WRAPPER_CXXFLAGS="$WRAPPER_CXXFLAGS -fsanitize=undefined"
41825
41826fi
41827
41828
41829
41830	if echo "$WRAPPER_FFLAGS" | $FGREP -e "\<-fsanitize=undefined\>" >/dev/null 2>&1; then :
41831  echo "WRAPPER_FFLAGS(='$WRAPPER_FFLAGS') contains '-fsanitize=undefined', not appending" >&5
41832else
41833  echo "WRAPPER_FFLAGS(='$WRAPPER_FFLAGS') does not contain '-fsanitize=undefined', appending" >&5
41834		WRAPPER_FFLAGS="$WRAPPER_FFLAGS -fsanitize=undefined"
41835
41836fi
41837
41838
41839
41840	if echo "$WRAPPER_FCFLAGS" | $FGREP -e "\<-fsanitize=undefined\>" >/dev/null 2>&1; then :
41841  echo "WRAPPER_FCFLAGS(='$WRAPPER_FCFLAGS') contains '-fsanitize=undefined', not appending" >&5
41842else
41843  echo "WRAPPER_FCFLAGS(='$WRAPPER_FCFLAGS') does not contain '-fsanitize=undefined', appending" >&5
41844		WRAPPER_FCFLAGS="$WRAPPER_FCFLAGS -fsanitize=undefined"
41845
41846fi
41847
41848
41849
41850	if echo "$LDFLAGS" | $FGREP -e "\<-fsanitize=undefined\>" >/dev/null 2>&1; then :
41851  echo "LDFLAGS(='$LDFLAGS') contains '-fsanitize=undefined', not appending" >&5
41852else
41853  echo "LDFLAGS(='$LDFLAGS') does not contain '-fsanitize=undefined', appending" >&5
41854		LDFLAGS="$LDFLAGS -fsanitize=undefined"
41855
41856fi
41857
41858fi
41859if test -n "$perform_meminit" ; then
41860
41861$as_echo "#define MPICH_DEBUG_MEMINIT 1" >>confdefs.h
41862
41863fi
41864if test "$perform_handlealloc" = yes ; then
41865
41866$as_echo "#define MPICH_DEBUG_HANDLEALLOC 1" >>confdefs.h
41867
41868fi
41869if test "X$perform_handle" = "Xyes"; then :
41870
41871$as_echo "#define MPICH_DEBUG_HANDLES 1" >>confdefs.h
41872
41873fi
41874
41875if test -n "$perform_memtracing" ; then
41876    enable_g_mem=yes
41877
41878$as_echo "#define USE_MEMORY_TRACING 1" >>confdefs.h
41879
41880    if test -n "$perform_memarena" ; then
41881
41882$as_echo "#define MPICH_DEBUG_MEMARENA 1" >>confdefs.h
41883
41884    fi
41885fi
41886
41887if test -n "$perform_dbgmutex" ; then
41888
41889$as_echo "#define MPICH_DEBUG_MUTEX 1" >>confdefs.h
41890
41891fi
41892
41893pac_cross_compiling=no
41894if test "$with_cross" != "no" ; then
41895    if test -s "$with_cross" ; then
41896        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Reading values from cross-compilation file $with_cross" >&5
41897$as_echo "Reading values from cross-compilation file $with_cross" >&6; }
41898        . $with_cross
41899	# Autoconf 2.52 no longer sets cross_compiling except with the
41900	# awkward "targethost" options.
41901	pac_cross_compiling=yes
41902	cross_compiling=yes
41903	ac_cv_prog_cc_cross=yes
41904	ac_cv_prog_f77_cross=yes
41905 	ac_cv_prog_fc_cross=yes
41906        ac_cv_prog_cxx_cross=yes
41907        export cross_compiling
41908	# Export all cross variables.  Any subsidiary configure should also
41909        # export CROSS_xxx
41910	rm -f confcross
41911	(set) 2>&1 | grep CROSS_ | \
41912	      sed -e 's/^/export /g' -e 's/=.*//g' > confcross
41913	. ./confcross
41914	rm -f confcross
41915    fi
41916fi
41917
41918# This goes here because we need the top_srcdir
41919if test "$enable_romio" = "yes" ; then
41920   if test -d $use_top_srcdir/src/mpi/romio ; then
41921       subsystems="$subsystems src/mpi/romio"
41922
41923$as_echo "#define HAVE_ROMIO 1" >>confdefs.h
41924
41925
41926       # make it possible to "#include" mpio.h at build time
41927       #
41928       # This ought to be sufficient, but there is also a symlink setup in
41929       # src/include to accomodate current mpicc limitations.  See
41930       # src/mpi/Makefile.mk for more info.
41931
41932
41933	if echo "$CPPFLAGS" | $FGREP -e "\<-I${main_top_builddir}/src/mpi/romio/include\>" >/dev/null 2>&1; then :
41934  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${main_top_builddir}/src/mpi/romio/include', not appending" >&5
41935else
41936  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${main_top_builddir}/src/mpi/romio/include', appending" >&5
41937		CPPFLAGS="$CPPFLAGS -I${main_top_builddir}/src/mpi/romio/include"
41938
41939fi
41940
41941
41942       # Set environment variables that the romio configure expects
41943       export use_top_srcdir
41944       top_build_dir=`pwd`
41945       export top_build_dir
41946       # if there is no $top_build_dir/lib, romio puts lib in wrong place
41947       # This test used -e under Linux, but not all test programs understand
41948       # -e
41949       if test ! -d lib ; then mkdir lib ; fi
41950       # tell mpi.h to include mpio.h
41951
41952if test "$enable_romio" = "yes" ; then HAVE_ROMIO='#include "mpio.h"'; fi
41953
41954
41955   else
41956       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ROMIO src directory is not available" >&5
41957$as_echo "$as_me: WARNING: ROMIO src directory is not available" >&2;}
41958   fi
41959fi
41960
41961 if test x$enable_romio = xyes; then
41962  BUILD_ROMIO_TRUE=
41963  BUILD_ROMIO_FALSE='#'
41964else
41965  BUILD_ROMIO_TRUE='#'
41966  BUILD_ROMIO_FALSE=
41967fi
41968
41969
41970#
41971# FIXME: If an external device, don't necessarily complain (e.g.,
41972# if the device is already built)
41973if test ! -d $devicedir ; then
41974    as_fn_error $? "Device $device_name is unknown" "$LINENO" 5
41975elif test -f $devicedir/subconfigure.m4 ; then
41976    # this is a new-style subconfigure device, don't add it as a subsystem
41977    :
41978else
41979    # Add the device to the configure list
41980    devsubsystems="$devsubsystems $devicereldir"
41981    # Make device_name available to subdirs
41982fi
41983
41984if test -n "${with_pmix}" -a "${with_pmix}" != "no" ; then
41985    # disable built-in PMI and process managers
41986    with_pmi="no"
41987    with_pm="no"
41988    if test "${device_name}" != "ch4" ; then
41989        as_fn_error $? "$device_name does not support PMIx" "$LINENO" 5
41990    fi
41991
41992
41993
41994# Check whether --with-pmix was given.
41995if test "${with_pmix+set}" = set; then :
41996  withval=$with_pmix;
41997fi
41998
41999
42000
42001# Check whether --with-pmix-include was given.
42002if test "${with_pmix_include+set}" = set; then :
42003  withval=$with_pmix_include; case "$withval" in #(
42004  yes|no|'') :
42005    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-pmix-include=PATH expects a valid PATH" >&5
42006$as_echo "$as_me: WARNING: --without-pmix-include=PATH expects a valid PATH" >&2;}
42007                          with_pmix_include="" ;; #(
42008  *) :
42009     ;;
42010esac
42011fi
42012
42013
42014# Check whether --with-pmix-lib was given.
42015if test "${with_pmix_lib+set}" = set; then :
42016  withval=$with_pmix_lib; case "$withval" in #(
42017  yes|no|'') :
42018    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-pmix-lib=PATH expects a valid PATH" >&5
42019$as_echo "$as_me: WARNING: --without-pmix-lib=PATH expects a valid PATH" >&2;}
42020                          with_pmix_lib="" ;; #(
42021  *) :
42022     ;;
42023esac
42024fi
42025
42026
42027    # The args have been sanitized into empty/non-empty values above.
42028    # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
42029    # taking priority
42030
42031    case "${with_pmix}" in
42032        embedded)
42033            as_fn_error $? "embedded pmix is requested but we do not have the embedded version" "$LINENO" 5
42034            ;;
42035        yes|no)
42036            # skip
42037            ;;
42038        *)
42039    if test -n "${with_pmix_include}"; then :
42040
42041
42042	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_pmix_include}\>" >/dev/null 2>&1; then :
42043  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_pmix_include}', not appending" >&5
42044else
42045  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_pmix_include}', appending" >&5
42046		CPPFLAGS="$CPPFLAGS -I${with_pmix_include}"
42047
42048fi
42049
42050else
42051  if test -n "${with_pmix}"; then :
42052
42053
42054	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_pmix}/include\>" >/dev/null 2>&1; then :
42055  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_pmix}/include', not appending" >&5
42056else
42057  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_pmix}/include', appending" >&5
42058		CPPFLAGS="$CPPFLAGS -I${with_pmix}/include"
42059
42060fi
42061
42062fi
42063fi
42064
42065    if test -n "${with_pmix_lib}"; then :
42066
42067
42068	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_pmix_lib}\>" >/dev/null 2>&1; then :
42069  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_pmix_lib}', not appending" >&5
42070else
42071  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_pmix_lib}', appending" >&5
42072		LDFLAGS="$LDFLAGS -L${with_pmix_lib}"
42073
42074fi
42075
42076else
42077  if test -n "${with_pmix}"; then :
42078
42079
42080	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_pmix}/lib\>" >/dev/null 2>&1; then :
42081  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_pmix}/lib', not appending" >&5
42082else
42083  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_pmix}/lib', appending" >&5
42084		LDFLAGS="$LDFLAGS -L${with_pmix}/lib"
42085
42086fi
42087
42088                  if test -d "${with_pmix}/lib64"; then :
42089
42090
42091	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_pmix}/lib64\>" >/dev/null 2>&1; then :
42092  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_pmix}/lib64', not appending" >&5
42093else
42094  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_pmix}/lib64', appending" >&5
42095		LDFLAGS="$LDFLAGS -L${with_pmix}/lib64"
42096
42097fi
42098
42099fi
42100
42101fi
42102
42103fi
42104            ;;
42105    esac
42106
42107
42108    failure=no
42109    ac_fn_c_check_header_mongrel "$LINENO" "pmix.h" "ac_cv_header_pmix_h" "$ac_includes_default"
42110if test "x$ac_cv_header_pmix_h" = xyes; then :
42111
42112else
42113  failure=yes
42114fi
42115
42116
42117
42118	if test -z "${pac_save_LIBS_nesting}" ; then
42119	   pac_save_LIBS_nesting=0
42120	fi
42121	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
42122	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
42123
42124    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMIx_Init in -lpmix" >&5
42125$as_echo_n "checking for PMIx_Init in -lpmix... " >&6; }
42126if ${ac_cv_lib_pmix_PMIx_Init+:} false; then :
42127  $as_echo_n "(cached) " >&6
42128else
42129  ac_check_lib_save_LIBS=$LIBS
42130LIBS="-lpmix  $LIBS"
42131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42132/* end confdefs.h.  */
42133
42134/* Override any GCC internal prototype to avoid an error.
42135   Use char because int might match the return type of a GCC
42136   builtin and then its argument prototype would still apply.  */
42137#ifdef __cplusplus
42138extern "C"
42139#endif
42140char PMIx_Init ();
42141int
42142main ()
42143{
42144return PMIx_Init ();
42145  ;
42146  return 0;
42147}
42148_ACEOF
42149if ac_fn_c_try_link "$LINENO"; then :
42150  ac_cv_lib_pmix_PMIx_Init=yes
42151else
42152  ac_cv_lib_pmix_PMIx_Init=no
42153fi
42154rm -f core conftest.err conftest.$ac_objext \
42155    conftest$ac_exeext conftest.$ac_ext
42156LIBS=$ac_check_lib_save_LIBS
42157fi
42158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pmix_PMIx_Init" >&5
42159$as_echo "$ac_cv_lib_pmix_PMIx_Init" >&6; }
42160if test "x$ac_cv_lib_pmix_PMIx_Init" = xyes; then :
42161  cat >>confdefs.h <<_ACEOF
42162#define HAVE_LIBPMIX 1
42163_ACEOF
42164
42165  LIBS="-lpmix $LIBS"
42166
42167else
42168  failure=yes
42169fi
42170
42171
42172	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
42173	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
42174	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
42175
42176    if test "$failure" = "no" ; then
42177       success=yes
42178    else
42179       success=no
42180    fi
42181
42182    if test "$success" = "no" ; then
42183        as_fn_error $? "pmix.h or libpmix library not found. Did you specify --with-pmix= or --with-pmix-include= or --with-pmix-lib=?" "$LINENO" 5
42184    fi
42185
42186
42187
42188	if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lpmix\>" >/dev/null 2>&1; then :
42189  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lpmix', not appending" >&5
42190else
42191  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lpmix', appending" >&5
42192		WRAPPER_LIBS="$WRAPPER_LIBS -lpmix"
42193
42194fi
42195
42196
42197
42198
42199
42200
42201	if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lpmix\>" >/dev/null 2>&1; then :
42202  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lpmix', not appending" >&5
42203else
42204  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lpmix', appending" >&5
42205		WRAPPER_LIBS="$WRAPPER_LIBS -lpmix"
42206
42207fi
42208
42209
42210
42211$as_echo "#define USE_PMIX_API 1" >>confdefs.h
42212
42213fi
42214
42215# with-pm
42216if test "$with_pm" = "none" ; then
42217    # add "none" as synonym for "no" to agree with older erroneous docs
42218    with_pm="no"
42219fi
42220if test "$MPID_NO_PM" = yes ; then
42221    if test "$with_pm" != "default" -a "$with_pm" != no ; then
42222        as_fn_error $? "The PM chosen ($with_pm) is is not valid for the selected device ($with_device)" "$LINENO" 5
42223    fi
42224    # This is used to change with_pm=default to with_pm=no in the case
42225    # where the device does not want a PM
42226    with_pm=no
42227fi
42228if test -z "$with_pm" ; then
42229    with_pm="no"
42230fi
42231if test "$with_pmi" = "uni" -a "$with_pm" = "default" ; then
42232    with_pm="no"
42233fi
42234if test "$with_pm" = "default" -o "$with_pm" = "yes" ; then
42235   if test ! -z "$MPID_DEFAULT_PM" ; then
42236      with_pm=${MPID_DEFAULT_PM}
42237   else
42238      with_pm=hydra
42239   fi
42240fi
42241
42242# We allow multiple pm names, separated by : or ,
42243if test "$with_pm" != "no" ; then
42244    pm_names="`echo $with_pm | sed -e 's/:/ /g' -e 's/,/ /g'`"
42245else
42246    pm_names=""
42247fi
42248#
42249hasError=no
42250# We need to be careful about PM's that have either conflicting
42251# requirements (e.g., different PMI implementations) or different
42252# optional features (e.g., MPID_PM_NAMESERVER).
42253# In addition, we need to interleave the setup of the PMI and PM
42254# modules.  The order is as follows:
42255#
42256# For each PM, execute the mpichprereq script for that pm (if present).
42257# This script provides information about the PM, including which PMI
42258# implementations are supported.
42259#
42260# Then, for the selected PMI, the setup script (if any) is run.  This is
42261# necessary because the setup of the PM may require information discovered
42262# or provided duing the PMI setup step.
42263#
42264# Finally, for each PM, the setup script is executed.
42265#
42266# Step 1: invoke the mpichprereq for each PM
42267for pm_name in $pm_names ; do
42268    if test -z "$first_pm_name" ; then
42269       first_pm_name=$pm_name
42270       export first_pm_name
42271    fi
42272    if test ! -d $use_top_srcdir/src/pm/$pm_name ; then
42273        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $use_top_srcdir/src/pm/$pm_name does not exist. PM is unknown" >&5
42274$as_echo "$as_me: WARNING: $use_top_srcdir/src/pm/$pm_name does not exist. PM is unknown" >&2;}
42275	hasError=yes
42276    elif test ! -x $use_top_srcdir/src/pm/$pm_name/configure -a \
42277              ! -f $use_top_srcdir/src/pm/$pm_name/subconfigure.m4 ; then
42278        if test -s $use_top_srcdir/src/pm/$pm_name/configure ; then
42279	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The configure in $use_top_srcdir/src/pm/$pm_name exists but is not executable" >&5
42280$as_echo "$as_me: WARNING: The configure in $use_top_srcdir/src/pm/$pm_name exists but is not executable" >&2;}
42281        else
42282            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pm $pm_name has no configure or subconfigure.m4" >&5
42283$as_echo "$as_me: WARNING: pm $pm_name has no configure or subconfigure.m4" >&2;}
42284        fi
42285        pm_name=""
42286	hasError=yes
42287    else
42288	nameserver=$MPID_PM_NAMESERVER
42289        if test -f $use_top_srcdir/src/pm/$pm_name/mpichprereq ; then
42290	    echo sourcing $use_top_srcdir/src/pm/$pm_name/mpichprereq
42291	    . $use_top_srcdir/src/pm/$pm_name/mpichprereq
42292	fi
42293	# Check for a change; if found, we'll take the default
42294	if test "$MPID_PM_NAMESERVER" != "$nameserver" ; then
42295            if test "$first_pm_name" != "$pm_name" ; then
42296	        # Reject suggestion (use the default, common mode)
42297		MPID_PM_NAMESERVER=""
42298	    fi
42299	fi
42300    fi
42301done
42302if test "$hasError" != no ; then
42303    as_fn_error $? "Aborting configure because an error was seen in the selection of process managers" "$LINENO" 5
42304fi
42305#
42306# pm_name is the *primary* pm
42307pm_name=$first_pm_name
42308
42309
42310# Step 2:
42311# Once we've selected the process manager (or managers), we can
42312# check that we have a compatible PMI implemenatation.
42313# with-pmi
42314if test "$with_pmi" != "no" ; then
42315    if test "$with_pmi" = "default" -o "$with_pmi" = "yes" ; then
42316        if test -n "$PM_REQUIRES_PMI" ; then
42317	    with_pmi=$PM_REQUIRES_PMI
42318        else
42319            with_pmi=simple
42320        fi
42321    elif test -n "$PM_REQUIRES_PMI" ; then
42322        # Test for compatibility between pm and pmi choices
42323        if test "$PM_REQUIRES_PMI" != "$with_pmi" ; then
42324	    as_fn_error $? "The PM chosen ($with_pm) requires the PMI implementation $PM_REQUIRES_PMI but $with_pmi was selected as the PMI implementation." "$LINENO" 5
42325        fi
42326    fi
42327    pmi_name=$with_pmi
42328
42329    if test ! -d $use_top_srcdir/src/pmi/$pmi_name ; then
42330        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $use_top_srcdir/src/pmi/$pmi_name does not exist. PMI is unknown" >&5
42331$as_echo "$as_me: WARNING: $use_top_srcdir/src/pmi/$pmi_name does not exist. PMI is unknown" >&2;}
42332    elif test ! -x $use_top_srcdir/src/pmi/$pmi_name/configure ; then
42333        if test ! -f $use_top_srcdir/src/pmi/$pmi_name/subconfigure.m4 ; then
42334            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pmi $pmi_name has no configure or subconfigure.m4" >&5
42335$as_echo "$as_me: WARNING: pmi $pmi_name has no configure or subconfigure.m4" >&2;}
42336            pmi_name=""
42337        fi
42338    else
42339        # only add to subsystems if a full configure is present
42340        subsystems="$subsystems src/pmi/$pmi_name"
42341    fi
42342fi
42343
42344# Step 3: complete pm setup.
42345# Note that checks for errors have already been performed, so this
42346# loop does not need to perform any extra error checks.
42347# Note that this uses this_pm_name because pm_name must be the *first*
42348# of the PM names
42349for this_pm_name in $pm_names ; do
42350    # only add the PM to the subsystems if it has a full configure to be
42351    # executed
42352    if test -f $use_top_srcdir/src/pm/$this_pm_name/configure ; then
42353        subsystems="$subsystems src/pm/$this_pm_name"
42354    fi
42355    if test -f $use_top_srcdir/src/pm/$this_pm_name/setup_pm ; then
42356	echo sourcing $use_top_srcdir/src/pm/$this_pm_name/setup_pm
42357	. $use_top_srcdir/src/pm/$this_pm_name/setup_pm
42358    fi
42359done
42360
42361# Check for whether the compiler defines a symbol that contains the
42362# function name. The MPICH code uses this for debugging purposes.
42363
42364# NOTE: C99, C11 defines __func__. If not supported, it will only
42365# break debugging, not the main code.
42366
42367
42368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler defines __func__" >&5
42369$as_echo_n "checking whether the compiler defines __func__... " >&6; }
42370if ${pac_cv_have__func__+:} false; then :
42371  $as_echo_n "(cached) " >&6
42372else
42373
42374tmp_am_cross=no
42375if test "$cross_compiling" = yes; then :
42376  tmp_am_cross=yes
42377else
42378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42379/* end confdefs.h.  */
42380
42381
42382#include <string.h>
42383int foo(void);
42384int foo(void)
42385{
42386    return (strcmp(__func__, "foo") == 0);
42387}
42388int main(int argc, char ** argv)
42389{
42390    return (foo() ? 0 : 1);
42391}
42392
42393
42394_ACEOF
42395if ac_fn_c_try_run "$LINENO"; then :
42396  pac_cv_have__func__=yes
42397else
42398  pac_cv_have__func__=no
42399fi
42400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42401  conftest.$ac_objext conftest.beam conftest.$ac_ext
42402fi
42403
42404if test "$tmp_am_cross" = yes ; then
42405    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42406/* end confdefs.h.  */
42407
42408
42409#include <string.h>
42410int foo(void);
42411int foo(void)
42412{
42413    return (strcmp(__func__, "foo") == 0);
42414}
42415int main(int argc, char ** argv)
42416{
42417    return (foo() ? 0 : 1);
42418}
42419
42420
42421_ACEOF
42422if ac_fn_c_try_link "$LINENO"; then :
42423  pac_cv_have__func__=yes
42424else
42425  pac_cv_have__func__=no
42426fi
42427rm -f core conftest.err conftest.$ac_objext \
42428    conftest$ac_exeext conftest.$ac_ext
42429fi
42430
42431fi
42432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have__func__" >&5
42433$as_echo "$pac_cv_have__func__" >&6; }
42434
42435if test "$pac_cv_have__func__" = "yes" ; then
42436
42437$as_echo "#define HAVE__FUNC__ /**/" >>confdefs.h
42438
42439fi
42440
42441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler defines __FUNC__" >&5
42442$as_echo_n "checking whether the compiler defines __FUNC__... " >&6; }
42443if ${pac_cv_have_cap__func__+:} false; then :
42444  $as_echo_n "(cached) " >&6
42445else
42446
42447tmp_am_cross=no
42448if test "$cross_compiling" = yes; then :
42449  tmp_am_cross=yes
42450else
42451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42452/* end confdefs.h.  */
42453
42454
42455#include <string.h>
42456int foo(void);
42457int foo(void)
42458{
42459    return (strcmp(__FUNC__, "foo") == 0);
42460}
42461int main(int argc, char ** argv)
42462{
42463    return (foo() ? 0 : 1);
42464}
42465
42466
42467_ACEOF
42468if ac_fn_c_try_run "$LINENO"; then :
42469  pac_cv_have_cap__func__=yes
42470else
42471  pac_cv_have_cap__func__=no
42472fi
42473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42474  conftest.$ac_objext conftest.beam conftest.$ac_ext
42475fi
42476
42477if test "$tmp_am_cross" = yes ; then
42478    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42479/* end confdefs.h.  */
42480
42481
42482#include <string.h>
42483int foo(void);
42484int foo(void)
42485{
42486    return (strcmp(__FUNC__, "foo") == 0);
42487}
42488int main(int argc, char ** argv)
42489{
42490    return (foo() ? 0 : 1);
42491}
42492
42493
42494_ACEOF
42495if ac_fn_c_try_link "$LINENO"; then :
42496  pac_cv_have__func__=yes
42497else
42498  pac_cv_have__func__=no
42499fi
42500rm -f core conftest.err conftest.$ac_objext \
42501    conftest$ac_exeext conftest.$ac_ext
42502fi
42503
42504fi
42505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_cap__func__" >&5
42506$as_echo "$pac_cv_have_cap__func__" >&6; }
42507
42508if test "$pac_cv_have_cap__func__" = "yes" ; then
42509
42510$as_echo "#define HAVE_CAP__FUNC__ /**/" >>confdefs.h
42511
42512fi
42513
42514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler sets __FUNCTION__" >&5
42515$as_echo_n "checking whether the compiler sets __FUNCTION__... " >&6; }
42516if ${pac_cv_have__function__+:} false; then :
42517  $as_echo_n "(cached) " >&6
42518else
42519
42520tmp_am_cross=no
42521if test "$cross_compiling" = yes; then :
42522  tmp_am_cross=yes
42523else
42524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42525/* end confdefs.h.  */
42526
42527
42528#include <string.h>
42529int foo(void);
42530int foo(void)
42531{
42532    return (strcmp(__FUNCTION__, "foo") == 0);
42533}
42534int main(int argc, char ** argv)
42535{
42536    return (foo() ? 0 : 1);
42537}
42538
42539
42540_ACEOF
42541if ac_fn_c_try_run "$LINENO"; then :
42542  pac_cv_have__function__=yes
42543else
42544  pac_cv_have__function__=no
42545fi
42546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42547  conftest.$ac_objext conftest.beam conftest.$ac_ext
42548fi
42549
42550if test "$tmp_am_cross" = yes ; then
42551    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42552/* end confdefs.h.  */
42553
42554
42555#include <string.h>
42556int foo(void);
42557int foo(void)
42558{
42559    return (strcmp(__FUNCTION__, "foo") == 0);
42560}
42561int main(int argc, char ** argv)
42562{
42563    return (foo() ? 0 : 1);
42564}
42565
42566
42567_ACEOF
42568if ac_fn_c_try_link "$LINENO"; then :
42569  pac_cv_have__func__=yes
42570else
42571  pac_cv_have__func__=no
42572fi
42573rm -f core conftest.err conftest.$ac_objext \
42574    conftest$ac_exeext conftest.$ac_ext
42575fi
42576
42577fi
42578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have__function__" >&5
42579$as_echo "$pac_cv_have__function__" >&6; }
42580
42581if test "$pac_cv_have__function__" = "yes" ; then
42582
42583$as_echo "#define HAVE__FUNCTION__ /**/" >>confdefs.h
42584
42585fi
42586
42587
42588
42589# Check if $MPI_DEFAULT_COPTS is valid with $CC
42590if test -n "$MPI_DEFAULT_COPTS" ; then
42591    if test "$enable_check_compiler_flags" = "yes" ; then
42592
42593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts option $MPI_DEFAULT_COPTS" >&5
42594$as_echo_n "checking whether C compiler accepts option $MPI_DEFAULT_COPTS... " >&6; }
42595pac_opt="$MPI_DEFAULT_COPTS"
42596ac_ext=c
42597ac_cpp='$CPP $CPPFLAGS'
42598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42600ac_compiler_gnu=$ac_cv_c_compiler_gnu
42601
42602CFLAGS_orig="$CFLAGS"
42603CFLAGS_opt="$pac_opt $CFLAGS"
42604pac_result="unknown"
42605
42606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42607/* end confdefs.h.  */
42608
42609	#include <stdio.h>
42610                          const char hw[] = "Hello, World\n";
42611int
42612main ()
42613{
42614fputs (hw, stdout);
42615  ;
42616  return 0;
42617}
42618
42619_ACEOF
42620CFLAGS="$CFLAGS_orig"
42621rm -f pac_test1.log
42622
42623
42624# START of PUSHVAL
42625
42626if ${pac_stk_ac_link_level+:} false; then :
42627
42628    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
42629
42630else
42631
42632    pac_stk_ac_link_level=0
42633
42634fi
42635eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
42636if test "x$pac_stk_ac_link_level" = x0; then :
42637
42638        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
42639
42640fi
42641
42642        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
42643
42644
42645# END of PUSHVAL
42646
42647ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`"
42648if ac_fn_c_try_link "$LINENO"; then :
42649
42650
42651    CFLAGS="$CFLAGS_opt"
42652    rm -f pac_test2.log
42653
42654
42655# START of PUSHVAL
42656
42657if ${pac_stk_ac_link_level+:} false; then :
42658
42659    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
42660
42661else
42662
42663    pac_stk_ac_link_level=0
42664
42665fi
42666eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
42667if test "x$pac_stk_ac_link_level" = x0; then :
42668
42669        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
42670
42671fi
42672
42673        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
42674
42675
42676# END of PUSHVAL
42677
42678ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`"
42679if ac_fn_c_try_link "$LINENO"; then :
42680
42681
42682
42683pac_TESTLOG="pac_test.log"
42684rm -f $pac_TESTLOG
42685
42686if
42687{ $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5
42688  (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5
42689  ac_status=$?
42690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42691  test $ac_status = 0; }; then :
42692
42693
42694    pac_result=yes
42695
42696
42697else
42698
42699    $as_echo "$as_me: program exited with status $ac_status" >&5
42700
42701        (exit $ac_status)
42702
42703    $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5
42704    cat $pac_TESTLOG >&5
42705    pac_result=no
42706
42707
42708
42709
42710fi
42711
42712rm -f $pac_TESTLOG
42713
42714
42715
42716else
42717
42718
42719        pac_result=no
42720
42721
42722fi
42723rm -f core conftest.err conftest.$ac_objext \
42724    conftest$ac_exeext
42725
42726# START of POPVAL
42727
42728if ${pac_stk_ac_link_level+:} false; then :
42729
42730    if test "x$pac_stk_ac_link_level" = x-1; then :
42731
42732        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
42733$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
42734
42735else
42736
42737                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
42738                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
42739
42740fi
42741
42742else
42743
42744    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
42745$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
42746
42747fi
42748
42749# END of POPVAL
42750
42751
42752
42753
42754else
42755
42756
42757    pac_result=no
42758
42759
42760fi
42761rm -f core conftest.err conftest.$ac_objext \
42762    conftest$ac_exeext
42763
42764# START of POPVAL
42765
42766if ${pac_stk_ac_link_level+:} false; then :
42767
42768    if test "x$pac_stk_ac_link_level" = x-1; then :
42769
42770        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
42771$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
42772
42773else
42774
42775                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
42776                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
42777
42778fi
42779
42780else
42781
42782    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
42783$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
42784
42785fi
42786
42787# END of POPVAL
42788
42789
42790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
42791$as_echo "$pac_result" >&6; }
42792rm -f conftest.$ac_ext
42793
42794if test "$pac_result" = "yes" ; then
42795    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5
42796$as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; }
42797    pac_result=unknown
42798    CFLAGS="$CFLAGS_orig"
42799    rm -f pac_test3.log
42800
42801
42802# START of PUSHVAL
42803
42804if ${pac_stk_ac_compile_level+:} false; then :
42805
42806    as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val
42807
42808else
42809
42810    pac_stk_ac_compile_level=0
42811
42812fi
42813eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile"
42814if test "x$pac_stk_ac_compile_level" = x0; then :
42815
42816        eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
42817
42818fi
42819
42820        eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
42821
42822
42823# END of PUSHVAL
42824
42825ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`"
42826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42827/* end confdefs.h.  */
42828
42829
42830            int foo(void);
42831            int foo(void){return 0;}
42832
42833
42834_ACEOF
42835if ac_fn_c_try_compile "$LINENO"; then :
42836
42837
42838
42839{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
42840  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
42841  ac_status=$?
42842  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42843  test $ac_status = 0; }
42844        saved_LIBS="$LIBS"
42845        LIBS="pac_conftest.$OBJEXT $LIBS"
42846
42847        rm -f pac_test4.log
42848
42849
42850# START of PUSHVAL
42851
42852if ${pac_stk_ac_link_level+:} false; then :
42853
42854    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
42855
42856else
42857
42858    pac_stk_ac_link_level=0
42859
42860fi
42861eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
42862if test "x$pac_stk_ac_link_level" = x0; then :
42863
42864        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
42865
42866fi
42867
42868        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
42869
42870
42871# END of PUSHVAL
42872
42873ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`"
42874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42875/* end confdefs.h.  */
42876
42877int
42878main ()
42879{
42880
42881  ;
42882  return 0;
42883}
42884_ACEOF
42885if ac_fn_c_try_link "$LINENO"; then :
42886
42887
42888            CFLAGS="$CFLAGS_opt"
42889            rm -f pac_test5.log
42890
42891
42892# START of PUSHVAL
42893
42894if ${pac_stk_ac_link_level+:} false; then :
42895
42896    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
42897
42898else
42899
42900    pac_stk_ac_link_level=0
42901
42902fi
42903eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
42904if test "x$pac_stk_ac_link_level" = x0; then :
42905
42906        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
42907
42908fi
42909
42910        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
42911
42912
42913# END of PUSHVAL
42914
42915ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test5.log 2>\&1|g'`"
42916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42917/* end confdefs.h.  */
42918
42919int
42920main ()
42921{
42922
42923  ;
42924  return 0;
42925}
42926_ACEOF
42927if ac_fn_c_try_link "$LINENO"; then :
42928
42929
42930
42931pac_TESTLOG="pac_test.log"
42932rm -f $pac_TESTLOG
42933
42934if
42935{ $as_echo "$as_me:$LINENO: diff -b pac_test4.log pac_test5.log > $pac_TESTLOG" >&5
42936  (eval diff -b pac_test4.log pac_test5.log > $pac_TESTLOG) 2>&5
42937  ac_status=$?
42938  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42939  test $ac_status = 0; }; then :
42940
42941
42942    pac_result=yes
42943
42944
42945else
42946
42947    $as_echo "$as_me: program exited with status $ac_status" >&5
42948
42949        (exit $ac_status)
42950
42951    $as_echo "*** diff -b pac_test4.log pac_test5.log :" >&5
42952    cat $pac_TESTLOG >&5
42953    pac_result=no
42954
42955
42956
42957
42958fi
42959
42960rm -f $pac_TESTLOG
42961
42962
42963
42964else
42965
42966
42967                pac_result=no
42968
42969
42970fi
42971rm -f core conftest.err conftest.$ac_objext \
42972    conftest$ac_exeext conftest.$ac_ext
42973
42974# START of POPVAL
42975
42976if ${pac_stk_ac_link_level+:} false; then :
42977
42978    if test "x$pac_stk_ac_link_level" = x-1; then :
42979
42980        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
42981$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
42982
42983else
42984
42985                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
42986                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
42987
42988fi
42989
42990else
42991
42992    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
42993$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
42994
42995fi
42996
42997# END of POPVAL
42998
42999
43000
43001
43002else
43003
43004
43005            pac_result=no
43006
43007
43008fi
43009rm -f core conftest.err conftest.$ac_objext \
43010    conftest$ac_exeext conftest.$ac_ext
43011
43012# START of POPVAL
43013
43014if ${pac_stk_ac_link_level+:} false; then :
43015
43016    if test "x$pac_stk_ac_link_level" = x-1; then :
43017
43018        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
43019$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
43020
43021else
43022
43023                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
43024                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
43025
43026fi
43027
43028else
43029
43030    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
43031$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
43032
43033fi
43034
43035# END of POPVAL
43036
43037
43038        LIBS="$saved_LIBS"
43039        rm -f pac_conftest.$OBJEXT
43040
43041
43042else
43043
43044
43045        pac_result=no
43046
43047
43048fi
43049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43050
43051# START of POPVAL
43052
43053if ${pac_stk_ac_compile_level+:} false; then :
43054
43055    if test "x$pac_stk_ac_compile_level" = x-1; then :
43056
43057        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5
43058$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;}
43059
43060else
43061
43062                eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
43063                as_fn_arith  $pac_stk_ac_compile_level - 1  && pac_stk_ac_compile_level=$as_val
43064
43065fi
43066
43067else
43068
43069    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5
43070$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;}
43071
43072fi
43073
43074# END of POPVAL
43075
43076
43077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
43078$as_echo "$pac_result" >&6; }
43079    rm -f pac_test3.log pac_test4.log pac_test5.log
43080fi
43081rm -f pac_test1.log pac_test2.log
43082
43083CFLAGS="$CFLAGS_orig"
43084if test "$pac_result" = "yes" ; then
43085
43086        CFLAGS="$CFLAGS $MPI_DEFAULT_COPTS"
43087
43088else
43089     :
43090fi
43091ac_ext=c
43092ac_cpp='$CPP $CPPFLAGS'
43093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43095ac_compiler_gnu=$ac_cv_c_compiler_gnu
43096
43097
43098    else
43099        CFLAGS="$CFLAGS $MPI_DEFAULT_COPTS"
43100    fi
43101fi
43102
43103# ---------------------------------------------------------------------------
43104# determine shared library flags for CC
43105# src/env may not exist yet in a vpath build
43106$MKDIR_P src/env
43107cc_shlib_conf=src/env/cc_shlib.conf
43108
43109
43110
43111
43112# It appears that the libtool dynamic linking strategy on Darwin is this:
43113# 1. Link all shared libs with "-install_name /full/path/to/libfoo.dylib"
43114# 2. Don't do anything special when linking programs, since it seems that the
43115# darwin dynamic linker will always use the "install_name" field from the lib
43116# that was found at program link-time.  (CONFIRMED) This is in opposition to
43117# the way that Linux does it, where specifying a "-rpath" argument at program
43118# link-time is important.
43119#
43120# There is an alternative darwin strategy for versions
43121# >= 10.5, see this: http://www.cmake.org/pipermail/cmake/2010-August/038970.html
43122# (goodell@ 2011-06-17)
43123
43124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library (esp. rpath) characteristics of CC" >&5
43125$as_echo_n "checking for shared library (esp. rpath) characteristics of CC... " >&6; }
43126
43127# unfortunately, config.rpath expects the compiler in question is always CC and
43128# uses several other environment variables as input
43129
43130	if test -z "${pac_save_CC_nesting}" ; then
43131	   pac_save_CC_nesting=0
43132	fi
43133	eval pac_save_CC_${pac_save_CC_nesting}='"$CC"'
43134	pac_save_CC_nesting=`expr ${pac_save_CC_nesting} + 1`
43135
43136
43137	if test -z "${pac_save_GCC_nesting}" ; then
43138	   pac_save_GCC_nesting=0
43139	fi
43140	eval pac_save_GCC_${pac_save_GCC_nesting}='"$GCC"'
43141	pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} + 1`
43142
43143
43144	if test -z "${pac_save_LD_nesting}" ; then
43145	   pac_save_LD_nesting=0
43146	fi
43147	eval pac_save_LD_${pac_save_LD_nesting}='"$LD"'
43148	pac_save_LD_nesting=`expr ${pac_save_LD_nesting} + 1`
43149
43150# these two don't currently get overridden, but we push/pop them for safety in
43151# case they do in the future
43152
43153	if test -z "${pac_save_LDFLAGS_nesting}" ; then
43154	   pac_save_LDFLAGS_nesting=0
43155	fi
43156	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"'
43157	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1`
43158
43159
43160	if test -z "${pac_save_with_gnu_ld_nesting}" ; then
43161	   pac_save_with_gnu_ld_nesting=0
43162	fi
43163	eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}='"$with_gnu_ld"'
43164	pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} + 1`
43165
43166
43167# set the temporary override values (if any)
43168:
43169
43170# ensure the values are available to the script
43171export CC
43172export GCC
43173export LDFLAGS
43174export LD
43175export with_gnu_ld
43176
43177if $ac_aux_dir/config.rpath "$host" > $cc_shlib_conf; then :
43178  :
43179else
43180  as_fn_error $? "unable to execute $ac_aux_dir/config.rpath" "$LINENO" 5
43181fi
43182
43183C_LINKPATH_SHL=""
43184
43185
43186rm -f conftest.out
43187
43188# restore the old values
43189
43190	pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} - 1`
43191	eval with_gnu_ld="\$pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}"
43192	eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}=""
43193
43194
43195	pac_save_LD_nesting=`expr ${pac_save_LD_nesting} - 1`
43196	eval LD="\$pac_save_LD_${pac_save_LD_nesting}"
43197	eval pac_save_LD_${pac_save_LD_nesting}=""
43198
43199
43200	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1`
43201	eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}"
43202	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}=""
43203
43204
43205	pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} - 1`
43206	eval GCC="\$pac_save_GCC_${pac_save_GCC_nesting}"
43207	eval pac_save_GCC_${pac_save_GCC_nesting}=""
43208
43209
43210	pac_save_CC_nesting=`expr ${pac_save_CC_nesting} - 1`
43211	eval CC="\$pac_save_CC_${pac_save_CC_nesting}"
43212	eval pac_save_CC_${pac_save_CC_nesting}=""
43213
43214
43215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done (results in $cc_shlib_conf)" >&5
43216$as_echo "done (results in $cc_shlib_conf)" >&6; }
43217
43218
43219
43220# We need variables from $cc_shlib_conf to set `WRAPPER_C_DYNAMIC_LOADING_FLAGS`, which
43221#    is used in `src/packaging/pkgconfig/mpich.pc.in`
43222# However, libtool's $library_names_spec is more than what's given in $cc_shlib_conf, so
43223#    we need protect it.
43224# FIXME: potentially, there are more variable collisions. Need better plan.
43225
43226	if test -z "${pac_save_library_names_spec_nesting}" ; then
43227	   pac_save_library_names_spec_nesting=0
43228	fi
43229	eval pac_save_library_names_spec_${pac_save_library_names_spec_nesting}='"$library_names_spec"'
43230	pac_save_library_names_spec_nesting=`expr ${pac_save_library_names_spec_nesting} + 1`
43231
43232. $cc_shlib_conf
43233
43234	pac_save_library_names_spec_nesting=`expr ${pac_save_library_names_spec_nesting} - 1`
43235	eval library_names_spec="\$pac_save_library_names_spec_${pac_save_library_names_spec_nesting}"
43236	eval pac_save_library_names_spec_${pac_save_library_names_spec_nesting}=""
43237
43238
43239# Attempt to construct dynamic loading info, based on the user
43240# preference of rpath, runpath or none and on the detected libdir
43241# flags.
43242if test "X${with_wrapper_dl_type}" = "Xrunpath" ; then
43243   eval WRAPPER_C_DYNAMIC_LOADING_FLAGS=\"${hardcode_libdir_flag_spec} ${enable_dtags_flag}\"
43244elif test "X${with_wrapper_dl_type}" = "Xrpath" ; then
43245   eval WRAPPER_C_DYNAMIC_LOADING_FLAGS=\"${hardcode_libdir_flag_spec} ${disable_dtags_flag}\"
43246else
43247   WRAPPER_C_DYNAMIC_LOADING_FLAGS=""
43248fi
43249
43250
43251# ---------------------------------------------------------------------------
43252# Support for MPI_T performance variables
43253
43254# enable-mpit-pvars
43255# strip off multiple options, separated by commas
43256save_IFS="$IFS"
43257IFS=","
43258for var in $enable_mpit_pvars ; do
43259    case "$var" in #(
43260  nem) :
43261    enable_pvar_nem=yes ;; #(
43262  recvq) :
43263    enable_pvar_recvq=yes ;; #(
43264  rma) :
43265    enable_pvar_rma=yes ;; #(
43266  dims) :
43267    enable_pvar_dims=yes ;; #(
43268  all|yes) :
43269    enable_pvar_nem=yes
43270             enable_pvar_recvq=yes
43271             enable_pvar_rma=yes
43272	     enable_pvar_dims=yes
43273	      ;; #(
43274  no|none) :
43275     ;; #(
43276  *) :
43277    IFS=$save_IFS
43278             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value ($option) for enable-mpit-pvars" >&5
43279$as_echo "$as_me: WARNING: Unknown value ($option) for enable-mpit-pvars" >&2;}
43280             IFS="," ;;
43281esac
43282done
43283IFS="$save_IFS"
43284
43285if test -n "$enable_pvar_nem" ; then
43286    status_nem_pvars=1
43287else
43288    status_nem_pvars=0
43289fi
43290
43291cat >>confdefs.h <<_ACEOF
43292#define ENABLE_PVAR_NEM $status_nem_pvars
43293_ACEOF
43294
43295
43296if test -n "$enable_pvar_recvq" ; then
43297    status_recvq_pvars=1
43298else
43299    status_recvq_pvars=0
43300fi
43301
43302cat >>confdefs.h <<_ACEOF
43303#define ENABLE_PVAR_RECVQ $status_recvq_pvars
43304_ACEOF
43305
43306
43307if test -n "$enable_pvar_rma" ; then
43308    status_rma_pvars=1
43309else
43310    status_rma_pvars=0
43311fi
43312
43313cat >>confdefs.h <<_ACEOF
43314#define ENABLE_PVAR_RMA $status_rma_pvars
43315_ACEOF
43316
43317
43318if test -n "$enable_pvar_dims" ; then
43319    status_dims_pvars=1
43320else
43321    status_dims_pvars=0
43322fi
43323
43324cat >>confdefs.h <<_ACEOF
43325#define ENABLE_PVAR_DIMS $status_dims_pvars
43326_ACEOF
43327
43328# ---------------------------------------------------------------------------
43329# Support for the language bindings: Fortran 77, Fortran 90, and C++
43330#
43331# First, we handle the case of no explicit enable/disable option.  In that
43332# case, we look for a usable compiler.  We cannot use the ac macros for this
43333# because they abort the configure step if they fail to find a compiler
43334# (earlier versions of autoconf did not have this behavior!).
43335#
43336# Second, we perform the langugage-specific tests, if necessary.  This may
43337# be relatively simple (C++) or complex (Fortran 77, including formation of
43338# the encoded MPI handles).
43339#
43340# Note that the bindings support needs to know some of the properties of
43341# the C compiler, so those tests (particularly for weak symbols)
43342# must come first.
43343# ----------------------------------------------------------------------------
43344
43345#
43346# First, determine whether we are/can support the language bindings
43347#
43348# Since F90/F90FLAGS are replaced by FC/FCFLAGS, rather than silently
43349# substituting them, i.e. FC=$F90 and FCFLAGS=$F90FLAGS, we choose to emit
43350# an error message and abort to avoid any ambiguous/hidden bug in choosing
43351# Fortran90 compilers.
43352if test -n "$F90" -o -n "$F90FLAGS" ; then
43353    as_fn_error $? "F90 and F90FLAGS are replaced by FC and FCFLAGS respectively in this configure, please unset F90/F90FLAGS and set FC/FCFLAGS instead and rerun configure again." "$LINENO" 5
43354fi
43355# ----------------------------------------------------------------------------
43356# Handle default choices for the Fortran compilers
43357# Note that these have already been set above
43358
43359if test "$enable_f77" = "yes"; then
43360    if test "$F77" = "" -o "$F77" = "no"; then
43361        # No Fortran 77 compiler found; abort
43362        as_fn_error $? "No Fortran 77 compiler found. If you don't need to
43363        build any Fortran programs, you can disable Fortran support using
43364        --disable-fortran. If you do want to build Fortran
43365        programs, you need to install a Fortran compiler such as gfortran
43366        or ifort before you can proceed." "$LINENO" 5
43367    fi
43368fi
43369
43370if test "$enable_f77" = yes ; then
43371    # Check if $MPI_DEFAULT_FOPTS is valid with $F77
43372    if test -n "$MPI_DEFAULT_FOPTS" ; then
43373        if test "$enable_check_compiler_flags" = "yes" ; then
43374
43375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 77 compiler accepts option $MPI_DEFAULT_FOPTS" >&5
43376$as_echo_n "checking whether Fortran 77 compiler accepts option $MPI_DEFAULT_FOPTS... " >&6; }
43377pac_opt="$MPI_DEFAULT_FOPTS"
43378ac_ext=f
43379ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
43380ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43381ac_compiler_gnu=$ac_cv_f77_compiler_gnu
43382
43383FFLAGS_orig="$FFLAGS"
43384FFLAGS_opt="$pac_opt $FFLAGS"
43385pac_result="unknown"
43386
43387cat > conftest.$ac_ext <<_ACEOF
43388      program main
43389
43390      end
43391_ACEOF
43392FFLAGS="$FFLAGS_orig"
43393rm -f pac_test1.log
43394
43395
43396# START of PUSHVAL
43397
43398if ${pac_stk_ac_link_level+:} false; then :
43399
43400    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
43401
43402else
43403
43404    pac_stk_ac_link_level=0
43405
43406fi
43407eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
43408if test "x$pac_stk_ac_link_level" = x0; then :
43409
43410        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
43411
43412fi
43413
43414        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
43415
43416
43417# END of PUSHVAL
43418
43419ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`"
43420if ac_fn_f77_try_link "$LINENO"; then :
43421
43422
43423    FFLAGS="$FFLAGS_opt"
43424    rm -f pac_test2.log
43425
43426
43427# START of PUSHVAL
43428
43429if ${pac_stk_ac_link_level+:} false; then :
43430
43431    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
43432
43433else
43434
43435    pac_stk_ac_link_level=0
43436
43437fi
43438eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
43439if test "x$pac_stk_ac_link_level" = x0; then :
43440
43441        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
43442
43443fi
43444
43445        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
43446
43447
43448# END of PUSHVAL
43449
43450ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`"
43451if ac_fn_f77_try_link "$LINENO"; then :
43452
43453
43454
43455pac_TESTLOG="pac_test.log"
43456rm -f $pac_TESTLOG
43457
43458if
43459{ $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5
43460  (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5
43461  ac_status=$?
43462  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43463  test $ac_status = 0; }; then :
43464
43465
43466    pac_result=yes
43467
43468
43469else
43470
43471    $as_echo "$as_me: program exited with status $ac_status" >&5
43472
43473        (exit $ac_status)
43474
43475    $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5
43476    cat $pac_TESTLOG >&5
43477    pac_result=no
43478
43479
43480
43481
43482fi
43483
43484rm -f $pac_TESTLOG
43485
43486
43487
43488else
43489
43490
43491        pac_result=no
43492
43493
43494fi
43495rm -f core conftest.err conftest.$ac_objext \
43496    conftest$ac_exeext
43497
43498# START of POPVAL
43499
43500if ${pac_stk_ac_link_level+:} false; then :
43501
43502    if test "x$pac_stk_ac_link_level" = x-1; then :
43503
43504        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
43505$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
43506
43507else
43508
43509                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
43510                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
43511
43512fi
43513
43514else
43515
43516    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
43517$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
43518
43519fi
43520
43521# END of POPVAL
43522
43523
43524
43525
43526else
43527
43528
43529    pac_result=no
43530
43531
43532fi
43533rm -f core conftest.err conftest.$ac_objext \
43534    conftest$ac_exeext
43535
43536# START of POPVAL
43537
43538if ${pac_stk_ac_link_level+:} false; then :
43539
43540    if test "x$pac_stk_ac_link_level" = x-1; then :
43541
43542        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
43543$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
43544
43545else
43546
43547                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
43548                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
43549
43550fi
43551
43552else
43553
43554    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
43555$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
43556
43557fi
43558
43559# END of POPVAL
43560
43561
43562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
43563$as_echo "$pac_result" >&6; }
43564rm -f conftest.$ac_ext
43565#
43566if test "$pac_result" = "yes" ; then
43567    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5
43568$as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; }
43569    pac_result=unknown
43570    FFLAGS="$FFLAGS_orig"
43571    rm -f pac_test3.log
43572
43573
43574# START of PUSHVAL
43575
43576if ${pac_stk_ac_compile_level+:} false; then :
43577
43578    as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val
43579
43580else
43581
43582    pac_stk_ac_compile_level=0
43583
43584fi
43585eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile"
43586if test "x$pac_stk_ac_compile_level" = x0; then :
43587
43588        eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
43589
43590fi
43591
43592        eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
43593
43594
43595# END of PUSHVAL
43596
43597ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`"
43598cat > conftest.$ac_ext <<_ACEOF
43599
43600
43601            subroutine try()
43602            end
43603
43604
43605_ACEOF
43606if ac_fn_f77_try_compile "$LINENO"; then :
43607
43608
43609
43610{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
43611  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
43612  ac_status=$?
43613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43614  test $ac_status = 0; }
43615        saved_LIBS="$LIBS"
43616        LIBS="pac_conftest.$OBJEXT $LIBS"
43617
43618        FFLAGS="$FFLAGS_opt"
43619        rm -f pac_test4.log
43620
43621
43622# START of PUSHVAL
43623
43624if ${pac_stk_ac_link_level+:} false; then :
43625
43626    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
43627
43628else
43629
43630    pac_stk_ac_link_level=0
43631
43632fi
43633eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
43634if test "x$pac_stk_ac_link_level" = x0; then :
43635
43636        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
43637
43638fi
43639
43640        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
43641
43642
43643# END of PUSHVAL
43644
43645ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`"
43646cat > conftest.$ac_ext <<_ACEOF
43647      program main
43648
43649      end
43650_ACEOF
43651if ac_fn_f77_try_link "$LINENO"; then :
43652
43653
43654
43655pac_TESTLOG="pac_test.log"
43656rm -f $pac_TESTLOG
43657
43658if
43659{ $as_echo "$as_me:$LINENO: diff -b pac_test2.log pac_test4.log > $pac_TESTLOG" >&5
43660  (eval diff -b pac_test2.log pac_test4.log > $pac_TESTLOG) 2>&5
43661  ac_status=$?
43662  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43663  test $ac_status = 0; }; then :
43664
43665
43666    pac_result=yes
43667
43668
43669else
43670
43671    $as_echo "$as_me: program exited with status $ac_status" >&5
43672
43673        (exit $ac_status)
43674
43675    $as_echo "*** diff -b pac_test2.log pac_test4.log :" >&5
43676    cat $pac_TESTLOG >&5
43677    pac_result=no
43678
43679
43680
43681
43682fi
43683
43684rm -f $pac_TESTLOG
43685
43686
43687
43688else
43689
43690
43691            pac_result=no
43692
43693
43694fi
43695rm -f core conftest.err conftest.$ac_objext \
43696    conftest$ac_exeext conftest.$ac_ext
43697
43698# START of POPVAL
43699
43700if ${pac_stk_ac_link_level+:} false; then :
43701
43702    if test "x$pac_stk_ac_link_level" = x-1; then :
43703
43704        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
43705$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
43706
43707else
43708
43709                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
43710                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
43711
43712fi
43713
43714else
43715
43716    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
43717$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
43718
43719fi
43720
43721# END of POPVAL
43722
43723
43724        LIBS="$saved_LIBS"
43725        rm -f pac_conftest.$OBJEXT
43726
43727
43728else
43729
43730
43731        pac_result=no
43732
43733
43734fi
43735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43736
43737# START of POPVAL
43738
43739if ${pac_stk_ac_compile_level+:} false; then :
43740
43741    if test "x$pac_stk_ac_compile_level" = x-1; then :
43742
43743        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5
43744$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;}
43745
43746else
43747
43748                eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
43749                as_fn_arith  $pac_stk_ac_compile_level - 1  && pac_stk_ac_compile_level=$as_val
43750
43751fi
43752
43753else
43754
43755    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5
43756$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;}
43757
43758fi
43759
43760# END of POPVAL
43761
43762
43763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
43764$as_echo "$pac_result" >&6; }
43765    rm -f pac_test3.log pac_test4.log
43766fi
43767rm -f pac_test1.log pac_test2.log
43768
43769FFLAGS="$FFLAGS_orig"
43770if test "$pac_result" = "yes" ; then
43771
43772            FFLAGS="$FFLAGS $MPI_DEFAULT_FOPTS"
43773
43774else
43775     :
43776fi
43777ac_ext=c
43778ac_cpp='$CPP $CPPFLAGS'
43779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43781ac_compiler_gnu=$ac_cv_c_compiler_gnu
43782
43783
43784        else
43785            FFLAGS="$FFLAGS $MPI_DEFAULT_FOPTS"
43786        fi
43787    fi
43788fi
43789
43790#
43791# We need to know the name mangling for Fortran before testing for FC
43792# compatibility (we need this because of the way we decide to generate
43793# the Fortran 77 bindings)
43794if test "$enable_f77" = yes ; then
43795    FLIBS_save="$FLIBS"
43796    FLIBS=""
43797    ac_ext=f
43798ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
43799ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43800ac_compiler_gnu=$ac_cv_f77_compiler_gnu
43801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
43802$as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
43803if ${ac_cv_prog_f77_v+:} false; then :
43804  $as_echo_n "(cached) " >&6
43805else
43806  cat > conftest.$ac_ext <<_ACEOF
43807      program main
43808
43809      end
43810_ACEOF
43811if ac_fn_f77_try_compile "$LINENO"; then :
43812  ac_cv_prog_f77_v=
43813# Try some options frequently used verbose output
43814for ac_verb in -v -verbose --verbose -V -\#\#\#; do
43815  cat > conftest.$ac_ext <<_ACEOF
43816      program main
43817
43818      end
43819_ACEOF
43820
43821# Compile and link our simple test program by passing a flag (argument
43822# 1 to this macro) to the Fortran compiler in order to get
43823# "verbose" output that we can then parse for the Fortran linker
43824# flags.
43825ac_save_FFLAGS=$FFLAGS
43826FFLAGS="$FFLAGS $ac_verb"
43827eval "set x $ac_link"
43828shift
43829$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
43830# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
43831# LIBRARY_PATH; skip all such settings.
43832ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
43833  sed '/^Driving:/d; /^Configured with:/d;
43834      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
43835$as_echo "$ac_f77_v_output" >&5
43836FFLAGS=$ac_save_FFLAGS
43837
43838rm -rf conftest*
43839
43840# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
43841# /foo, /bar, and /baz are search directories for the Fortran linker.
43842# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
43843ac_f77_v_output="`echo $ac_f77_v_output |
43844	grep 'LPATH is:' |
43845	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
43846
43847# FIXME: we keep getting bitten by quoted arguments; a more general fix
43848#        that detects unbalanced quotes in FLIBS should be implemented
43849#        and (ugh) tested at some point.
43850case $ac_f77_v_output in
43851  # With xlf replace commas with spaces,
43852  # and remove "-link" and closing parenthesis.
43853  *xlfentry*)
43854    ac_f77_v_output=`echo $ac_f77_v_output |
43855      sed '
43856        s/,/ /g
43857        s/ -link / /g
43858        s/) *$//
43859      '
43860    ` ;;
43861
43862  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
43863  # $LIBS confuse us, and the libraries appear later in the output anyway).
43864  *mGLOB_options_string*)
43865    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
43866
43867  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
43868  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
43869  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
43870  *-cmdline\ * | *-ignore\ * | *-def\ *)
43871    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
43872	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
43873	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
43874	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
43875
43876  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
43877  *fort77*f2c*gcc*)
43878    ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
43879        /:[	 ]\+Running[	 ]\{1,\}"gcc"/{
43880          /"-c"/d
43881          /[.]c"*/d
43882          s/^.*"gcc"/"gcc"/
43883          s/"//gp
43884        }'` ;;
43885
43886  # If we are using Cray Fortran then delete quotes.
43887  *cft90*)
43888    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
43889esac
43890
43891
43892  # look for -l* and *.a constructs in the output
43893  for ac_arg in $ac_f77_v_output; do
43894     case $ac_arg in
43895	[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
43896	  ac_cv_prog_f77_v=$ac_verb
43897	  break 2 ;;
43898     esac
43899  done
43900done
43901if test -z "$ac_cv_prog_f77_v"; then
43902   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
43903$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
43904fi
43905else
43906  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
43907$as_echo "$as_me: WARNING: compilation failed" >&2;}
43908fi
43909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43910
43911fi
43912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
43913$as_echo "$ac_cv_prog_f77_v" >&6; }
43914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
43915$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
43916if ${ac_cv_f77_libs+:} false; then :
43917  $as_echo_n "(cached) " >&6
43918else
43919  if test "x$FLIBS" != "x"; then
43920  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
43921else
43922
43923cat > conftest.$ac_ext <<_ACEOF
43924      program main
43925
43926      end
43927_ACEOF
43928
43929# Compile and link our simple test program by passing a flag (argument
43930# 1 to this macro) to the Fortran compiler in order to get
43931# "verbose" output that we can then parse for the Fortran linker
43932# flags.
43933ac_save_FFLAGS=$FFLAGS
43934FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
43935eval "set x $ac_link"
43936shift
43937$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
43938# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
43939# LIBRARY_PATH; skip all such settings.
43940ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
43941  sed '/^Driving:/d; /^Configured with:/d;
43942      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
43943$as_echo "$ac_f77_v_output" >&5
43944FFLAGS=$ac_save_FFLAGS
43945
43946rm -rf conftest*
43947
43948# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
43949# /foo, /bar, and /baz are search directories for the Fortran linker.
43950# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
43951ac_f77_v_output="`echo $ac_f77_v_output |
43952	grep 'LPATH is:' |
43953	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
43954
43955# FIXME: we keep getting bitten by quoted arguments; a more general fix
43956#        that detects unbalanced quotes in FLIBS should be implemented
43957#        and (ugh) tested at some point.
43958case $ac_f77_v_output in
43959  # With xlf replace commas with spaces,
43960  # and remove "-link" and closing parenthesis.
43961  *xlfentry*)
43962    ac_f77_v_output=`echo $ac_f77_v_output |
43963      sed '
43964        s/,/ /g
43965        s/ -link / /g
43966        s/) *$//
43967      '
43968    ` ;;
43969
43970  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
43971  # $LIBS confuse us, and the libraries appear later in the output anyway).
43972  *mGLOB_options_string*)
43973    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
43974
43975  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
43976  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
43977  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
43978  *-cmdline\ * | *-ignore\ * | *-def\ *)
43979    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
43980	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
43981	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
43982	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
43983
43984  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
43985  *fort77*f2c*gcc*)
43986    ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
43987        /:[	 ]\+Running[	 ]\{1,\}"gcc"/{
43988          /"-c"/d
43989          /[.]c"*/d
43990          s/^.*"gcc"/"gcc"/
43991          s/"//gp
43992        }'` ;;
43993
43994  # If we are using Cray Fortran then delete quotes.
43995  *cft90*)
43996    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
43997esac
43998
43999
44000
44001ac_cv_f77_libs=
44002
44003# Save positional arguments (if any)
44004ac_save_positional="$@"
44005
44006set X $ac_f77_v_output
44007while test $# != 1; do
44008  shift
44009  ac_arg=$1
44010  case $ac_arg in
44011	[\\/]*.a | ?:[\\/]*.a)
44012	    ac_exists=false
44013  for ac_i in $ac_cv_f77_libs; do
44014    if test x"$ac_arg" = x"$ac_i"; then
44015      ac_exists=true
44016      break
44017    fi
44018  done
44019
44020  if test x"$ac_exists" = xtrue; then :
44021
44022else
44023  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
44024fi
44025	  ;;
44026	-bI:*)
44027	    ac_exists=false
44028  for ac_i in $ac_cv_f77_libs; do
44029    if test x"$ac_arg" = x"$ac_i"; then
44030      ac_exists=true
44031      break
44032    fi
44033  done
44034
44035  if test x"$ac_exists" = xtrue; then :
44036
44037else
44038  if test "$ac_compiler_gnu" = yes; then
44039  for ac_link_opt in $ac_arg; do
44040    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
44041  done
44042else
44043  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
44044fi
44045fi
44046	  ;;
44047	  # Ignore these flags.
44048	-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
44049	  |-LANG:=* | -LIST:* | -LNO:* | -link)
44050	  ;;
44051	-lkernel32)
44052	  case $host_os in
44053	  *cygwin*) ;;
44054	  *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
44055	    ;;
44056	  esac
44057	  ;;
44058	-[LRuYz])
44059	  # These flags, when seen by themselves, take an argument.
44060	  # We remove the space between option and argument and re-iterate
44061	  # unless we find an empty arg or a new option (starting with -)
44062	  case $2 in
44063	     "" | -*);;
44064	     *)
44065		ac_arg="$ac_arg$2"
44066		shift; shift
44067		set X $ac_arg "$@"
44068		;;
44069	  esac
44070	  ;;
44071	-YP,*)
44072	  for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
44073	      ac_exists=false
44074  for ac_i in $ac_cv_f77_libs; do
44075    if test x"$ac_j" = x"$ac_i"; then
44076      ac_exists=true
44077      break
44078    fi
44079  done
44080
44081  if test x"$ac_exists" = xtrue; then :
44082
44083else
44084  ac_arg="$ac_arg $ac_j"
44085			       ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
44086fi
44087	  done
44088	  ;;
44089	-[lLR]*)
44090	    ac_exists=false
44091  for ac_i in $ac_cv_f77_libs; do
44092    if test x"$ac_arg" = x"$ac_i"; then
44093      ac_exists=true
44094      break
44095    fi
44096  done
44097
44098  if test x"$ac_exists" = xtrue; then :
44099
44100else
44101  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
44102fi
44103	  ;;
44104	-zallextract*| -zdefaultextract)
44105	  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
44106	  ;;
44107	  # Ignore everything else.
44108  esac
44109done
44110# restore positional arguments
44111set X $ac_save_positional; shift
44112
44113# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
44114# then we insist that the "run path" must be an absolute path (i.e. it
44115# must begin with a "/").
44116case `(uname -sr) 2>/dev/null` in
44117   "SunOS 5"*)
44118      ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
44119			sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
44120      test "x$ac_ld_run_path" != x &&
44121	if test "$ac_compiler_gnu" = yes; then
44122  for ac_link_opt in $ac_ld_run_path; do
44123    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
44124  done
44125else
44126  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
44127fi
44128      ;;
44129esac
44130fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
44131
44132fi
44133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
44134$as_echo "$ac_cv_f77_libs" >&6; }
44135FLIBS="$ac_cv_f77_libs"
44136
44137
44138ac_ext=c
44139ac_cpp='$CPP $CPPFLAGS'
44140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44142ac_compiler_gnu=$ac_cv_c_compiler_gnu
44143
44144    # The autoconf macro for finding FLIBS sometimes makes mistakes
44145    # (particularly with the Fujitsu frt compiler).  This next step
44146    # first sees if the FLIBS is valid with the Fortran compiler
44147
44148
44149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts the FLIBS found by autoconf" >&5
44150$as_echo_n "checking whether $F77 accepts the FLIBS found by autoconf... " >&6; }
44151pac_cv_f77_flibs_valid=unknown
44152ac_ext=f
44153ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44154ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44155ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44156
44157cat > conftest.$ac_ext <<_ACEOF
44158
44159
44160        program main
44161        end
44162
44163
44164_ACEOF
44165if ac_fn_f77_try_link "$LINENO"; then :
44166
44167    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44168$as_echo "yes" >&6; }
44169
44170else
44171
44172    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44173$as_echo "no" >&6; }
44174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid entries in FLIBS" >&5
44175$as_echo_n "checking for valid entries in FLIBS... " >&6; }
44176    goodFLIBS=""
44177    saveFLIBS=$FLIBS
44178    FLIBS=""
44179    for arg in $saveFLIBS ; do
44180        FLIBS="$goodFLIBS $arg"
44181        if ac_fn_f77_try_link "$LINENO"; then :
44182  goodFLIBS=$FLIBS
44183fi
44184rm -f core conftest.err conftest.$ac_objext \
44185    conftest$ac_exeext
44186    done
44187    FLIBS=$goodFLIBS
44188    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLIBS" >&5
44189$as_echo "$FLIBS" >&6; }
44190
44191fi
44192rm -f core conftest.err conftest.$ac_objext \
44193    conftest$ac_exeext
44194rm -f conftest.$ac_ext
44195ac_ext=c
44196ac_cpp='$CPP $CPPFLAGS'
44197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44199ac_compiler_gnu=$ac_cv_c_compiler_gnu
44200
44201
44202    # Now see if FLIBS works with the C compiler
44203
44204
44205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC links with FLIBS found by autoconf" >&5
44206$as_echo_n "checking whether $CC links with FLIBS found by autoconf... " >&6; }
44207ac_ext=c
44208ac_cpp='$CPP $CPPFLAGS'
44209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44211ac_compiler_gnu=$ac_cv_c_compiler_gnu
44212
44213# Create a simple C program for the tests.
44214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44215/* end confdefs.h.  */
44216
44217
44218int
44219main ()
44220{
44221int a;
44222  ;
44223  return 0;
44224}
44225
44226_ACEOF
44227# Try to link a C program with all of these libraries
44228saved_LIBS="$LIBS"
44229LIBS="$FLIBS $saved_LIBS"
44230if ac_fn_c_try_link "$LINENO"; then :
44231
44232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44233$as_echo "yes" >&6; }
44234
44235else
44236
44237    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44238$as_echo "no" >&6; }
44239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libraries can be used" >&5
44240$as_echo_n "checking for which libraries can be used... " >&6; }
44241    pac_ldirs=""
44242    pac_libs=""
44243    pac_other=""
44244    for name in $FLIBS ; do
44245        case $name in
44246        -l*) pac_libs="$pac_libs $name"   ;;
44247        -L*) pac_ldirs="$pac_ldirs $name" ;;
44248          *) pac_other="$pac_other $name" ;;
44249        esac
44250    done
44251    keep_libs=""
44252    for name in $pac_libs ; do
44253        LIBS="$saved_LIBS $pac_ldirs $pac_other $name"
44254        if ac_fn_c_try_link "$LINENO"; then :
44255
44256            keep_libs="$keep_libs $name"
44257
44258fi
44259rm -f core conftest.err conftest.$ac_objext \
44260    conftest$ac_exeext
44261    done
44262    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $keep_libs" >&5
44263$as_echo "$keep_libs" >&6; }
44264    FLIBS="$pac_ldirs $pac_other $keep_libs"
44265
44266fi
44267rm -f core conftest.err conftest.$ac_objext \
44268    conftest$ac_exeext
44269LIBS="$saved_LIBS"
44270rm -f conftest.$ac_ext
44271ac_ext=c
44272ac_cpp='$CPP $CPPFLAGS'
44273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44275ac_compiler_gnu=$ac_cv_c_compiler_gnu
44276
44277
44278
44279    # Check F77+FLAGS is compatible with CC+CFLAGS before using F77+CC.
44280
44281
44282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 77 and C objects are compatible" >&5
44283$as_echo_n "checking whether Fortran 77 and C objects are compatible... " >&6; }
44284ac_ext=c
44285ac_cpp='$CPP $CPPFLAGS'
44286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44288ac_compiler_gnu=$ac_cv_c_compiler_gnu
44289
44290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44291/* end confdefs.h.  */
44292
44293
44294/* lower */
44295void c_subpgm( int *rc );
44296void c_subpgm( int *rc ) { *rc = 1; }
44297
44298/* lower underscore */
44299void c_subpgm_( int *rc );
44300void c_subpgm_( int *rc ) { *rc = 2; }
44301
44302/* upper */
44303void C_SUBPGM( int *rc );
44304void C_SUBPGM( int *rc ) { *rc = 3; }
44305
44306/* lower doubleunderscore */
44307void c_subpgm__( int *rc );
44308void c_subpgm__( int *rc ) { *rc = 4; }
44309
44310/* mixed */
44311void C_subpgm( int *rc );
44312void C_subpgm( int *rc ) { *rc = 5; }
44313
44314/* mixed underscore */
44315void C_subpgm_( int *rc );
44316void C_subpgm_( int *rc ) { *rc = 6; }
44317
44318
44319_ACEOF
44320ac_ext=c
44321ac_cpp='$CPP $CPPFLAGS'
44322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44324ac_compiler_gnu=$ac_cv_c_compiler_gnu
44325
44326
44327ac_ext=f
44328ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44329ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44330ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44331
44332cat > conftest.$ac_ext <<_ACEOF
44333
44334
44335        program test
44336        integer rc
44337        rc = -1
44338        call c_subpgm( rc )
44339        write(6,*) "rc=", rc
44340        end
44341
44342
44343_ACEOF
44344ac_ext=c
44345ac_cpp='$CPP $CPPFLAGS'
44346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44348ac_compiler_gnu=$ac_cv_c_compiler_gnu
44349
44350
44351pac_linkwithf77=no
44352pac_linkwithC=no
44353
44354if test "$pac_linkwithC" != "yes" ; then
44355    ac_ext=c
44356ac_cpp='$CPP $CPPFLAGS'
44357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44359ac_compiler_gnu=$ac_cv_c_compiler_gnu
44360
44361    if ac_fn_c_try_compile "$LINENO"; then :
44362
44363
44364{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
44365  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
44366  ac_status=$?
44367  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44368  test $ac_status = 0; }
44369        saved_LIBS="$LIBS"
44370        LIBS="pac_conftest.$OBJEXT $saved_LIBS"
44371        ac_ext=f
44372ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44373ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44374ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44375
44376        if ac_fn_f77_try_link "$LINENO"; then :
44377
44378            pac_linkwithf77=yes
44379            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44380$as_echo "yes" >&6; }
44381
44382fi
44383rm -f core conftest.err conftest.$ac_objext \
44384    conftest$ac_exeext
44385        ac_ext=c
44386ac_cpp='$CPP $CPPFLAGS'
44387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44389ac_compiler_gnu=$ac_cv_c_compiler_gnu
44390
44391        LIBS="$saved_LIBS"
44392        if test "$pac_linkwithf77" = "yes" ; then
44393            rm -f pac_conftest.$OBJEXT
44394        fi
44395
44396fi
44397rm -f core conftest.err conftest.$ac_objext
44398    ac_ext=c
44399ac_cpp='$CPP $CPPFLAGS'
44400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44402ac_compiler_gnu=$ac_cv_c_compiler_gnu
44403
44404fi
44405
44406if test "$pac_linkwithf77" != "yes" ; then
44407    ac_ext=f
44408ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44409ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44410ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44411
44412    if ac_fn_f77_try_compile "$LINENO"; then :
44413
44414
44415{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_f77conftest.$OBJEXT" >&5
44416  (eval mv conftest.$OBJEXT pac_f77conftest.$OBJEXT) 2>&5
44417  ac_status=$?
44418  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44419  test $ac_status = 0; }
44420        saved_LIBS="$LIBS"
44421        LIBS="pac_f77conftest.$OBJEXT $FLIBS $saved_LIBS"
44422        ac_ext=c
44423ac_cpp='$CPP $CPPFLAGS'
44424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44426ac_compiler_gnu=$ac_cv_c_compiler_gnu
44427
44428        if ac_fn_c_try_link "$LINENO"; then :
44429
44430            pac_linkwithC=yes
44431            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44432$as_echo "yes" >&6; }
44433
44434fi
44435rm -f core conftest.err conftest.$ac_objext \
44436    conftest$ac_exeext
44437        ac_ext=f
44438ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44439ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44440ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44441
44442        LIBS="$saved_LIBS"
44443        if test "$pac_linkwithC" = "yes" ; then
44444            rm -f pac_f77conftest.$OBJEXT
44445        fi
44446
44447fi
44448rm -f core conftest.err conftest.$ac_objext
44449    ac_ext=c
44450ac_cpp='$CPP $CPPFLAGS'
44451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44453ac_compiler_gnu=$ac_cv_c_compiler_gnu
44454
44455fi
44456
44457ac_ext=f
44458ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44459ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44460ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44461
44462rm -f conftest.$ac_ext
44463ac_ext=c
44464ac_cpp='$CPP $CPPFLAGS'
44465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44467ac_compiler_gnu=$ac_cv_c_compiler_gnu
44468
44469
44470ac_ext=c
44471ac_cpp='$CPP $CPPFLAGS'
44472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44474ac_compiler_gnu=$ac_cv_c_compiler_gnu
44475
44476rm -f conftest.$ac_ext
44477ac_ext=c
44478ac_cpp='$CPP $CPPFLAGS'
44479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44481ac_compiler_gnu=$ac_cv_c_compiler_gnu
44482
44483
44484if test "$pac_linkwithf77" != "yes" -a "$pac_linkwithC" != "yes" ; then
44485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44486$as_echo "no" >&6; }
44487    # Extract the first word of "file", so it can be a program name with args.
44488set dummy file; ac_word=$2
44489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44490$as_echo_n "checking for $ac_word... " >&6; }
44491if ${ac_cv_prog_FILE+:} false; then :
44492  $as_echo_n "(cached) " >&6
44493else
44494  if test -n "$FILE"; then
44495  ac_cv_prog_FILE="$FILE" # Let the user override the test.
44496else
44497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44498for as_dir in $PATH
44499do
44500  IFS=$as_save_IFS
44501  test -z "$as_dir" && as_dir=.
44502    for ac_exec_ext in '' $ac_executable_extensions; do
44503  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44504    ac_cv_prog_FILE="file"
44505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44506    break 2
44507  fi
44508done
44509  done
44510IFS=$as_save_IFS
44511
44512fi
44513fi
44514FILE=$ac_cv_prog_FILE
44515if test -n "$FILE"; then
44516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
44517$as_echo "$FILE" >&6; }
44518else
44519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44520$as_echo "no" >&6; }
44521fi
44522
44523
44524    if test "X$FILE" != "X" ; then
44525        fobjtype="`${FILE} pac_f77conftest.$OBJEXT | sed -e \"s|pac_f77conftest\.$OBJEXT||g\"`"
44526        cobjtype="`${FILE} pac_conftest.$OBJEXT | sed -e \"s|pac_conftest\.$OBJEXT||g\"`"
44527        if test "$fobjtype" != "$cobjtype" ; then
44528            as_fn_error $? "****  Incompatible Fortran and C Object File Types!  ****
44529F77 Object File Type produced by \"${F77} ${FFLAGS}\" is : ${fobjtype}.
44530 C  Object File Type produced by \"${CC} ${CFLAGS}\" is : ${cobjtype}." "$LINENO" 5
44531        fi
44532    fi
44533fi
44534
44535
44536
44537
44538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker for Fortran main program" >&5
44539$as_echo_n "checking for linker for Fortran main program... " >&6; }
44540ac_ext=c
44541ac_cpp='$CPP $CPPFLAGS'
44542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44544ac_compiler_gnu=$ac_cv_c_compiler_gnu
44545
44546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44547/* end confdefs.h.  */
44548
44549
44550int
44551main ()
44552{
44553long long a;
44554  ;
44555  return 0;
44556}
44557
44558_ACEOF
44559if ac_fn_c_try_compile "$LINENO"; then :
44560
44561
44562$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
44563
44564
44565fi
44566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44568/* end confdefs.h.  */
44569
44570
44571#ifdef HAVE_LONG_LONG
44572int f(int a, long long b) { int c; c = a * ( b / 3 ) / (b-1); return c ; }
44573#else
44574int f(int a, long b) { int c; c = a * b / (b-1); return c ; }
44575#endif
44576
44577
44578_ACEOF
44579ac_ext=c
44580ac_cpp='$CPP $CPPFLAGS'
44581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44583ac_compiler_gnu=$ac_cv_c_compiler_gnu
44584
44585
44586ac_ext=f
44587ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44588ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44589ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44590
44591cat > conftest.$ac_ext <<_ACEOF
44592
44593
44594        program main
44595        double precision d
44596        print *, "hi"
44597        end
44598
44599
44600_ACEOF
44601ac_ext=c
44602ac_cpp='$CPP $CPPFLAGS'
44603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44605ac_compiler_gnu=$ac_cv_c_compiler_gnu
44606
44607
44608pac_linkwithf77=no
44609pac_linkwithC=no
44610
44611if test "$pac_linkwithC" != "yes" ; then
44612    ac_ext=c
44613ac_cpp='$CPP $CPPFLAGS'
44614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44616ac_compiler_gnu=$ac_cv_c_compiler_gnu
44617
44618    if ac_fn_c_try_compile "$LINENO"; then :
44619
44620
44621{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
44622  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
44623  ac_status=$?
44624  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44625  test $ac_status = 0; }
44626        saved_LIBS="$LIBS"
44627        LIBS="pac_conftest.$OBJEXT $saved_LIBS"
44628        ac_ext=f
44629ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44630ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44631ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44632
44633        if ac_fn_f77_try_link "$LINENO"; then :
44634
44635            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Use Fortran to link programs" >&5
44636$as_echo "Use Fortran to link programs" >&6; }
44637            pac_linkwithf77=yes
44638
44639fi
44640rm -f core conftest.err conftest.$ac_objext \
44641    conftest$ac_exeext
44642        ac_ext=c
44643ac_cpp='$CPP $CPPFLAGS'
44644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44646ac_compiler_gnu=$ac_cv_c_compiler_gnu
44647
44648        LIBS="$saved_LIBS"
44649        rm -f pac_conftest.$OBJEXT
44650
44651fi
44652rm -f core conftest.err conftest.$ac_objext
44653    ac_ext=c
44654ac_cpp='$CPP $CPPFLAGS'
44655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44657ac_compiler_gnu=$ac_cv_c_compiler_gnu
44658
44659fi
44660
44661if test "$pac_linkwithf77" != "yes" ; then
44662    ac_ext=f
44663ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44664ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44665ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44666
44667    if ac_fn_f77_try_compile "$LINENO"; then :
44668
44669
44670{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_f77conftest.$OBJEXT" >&5
44671  (eval mv conftest.$OBJEXT pac_f77conftest.$OBJEXT) 2>&5
44672  ac_status=$?
44673  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44674  test $ac_status = 0; }
44675        saved_LIBS="$LIBS"
44676        LIBS="pac_f77conftest.$OBJEXT $FLIBS $saved_LIBS"
44677        ac_ext=c
44678ac_cpp='$CPP $CPPFLAGS'
44679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44681ac_compiler_gnu=$ac_cv_c_compiler_gnu
44682
44683        if ac_fn_c_try_link "$LINENO"; then :
44684
44685            pac_linkwithC=yes
44686            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Use C with FLIBS to link programs" >&5
44687$as_echo "Use C with FLIBS to link programs" >&6; }
44688            F77LINKER="$CC"
44689            F77_LDFLAGS="$F77_LDFLAGS $FLIBS"
44690
44691fi
44692rm -f core conftest.err conftest.$ac_objext \
44693    conftest$ac_exeext
44694        ac_ext=f
44695ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44696ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44697ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44698
44699        LIBS="$saved_LIBS"
44700        rm -f pac_f77conftest.$OBJEXT
44701
44702fi
44703rm -f core conftest.err conftest.$ac_objext
44704    ac_ext=c
44705ac_cpp='$CPP $CPPFLAGS'
44706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44708ac_compiler_gnu=$ac_cv_c_compiler_gnu
44709
44710fi
44711
44712ac_ext=f
44713ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44714ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44715ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44716
44717rm -f conftest.$ac_ext
44718ac_ext=c
44719ac_cpp='$CPP $CPPFLAGS'
44720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44722ac_compiler_gnu=$ac_cv_c_compiler_gnu
44723
44724
44725ac_ext=c
44726ac_cpp='$CPP $CPPFLAGS'
44727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44729ac_compiler_gnu=$ac_cv_c_compiler_gnu
44730
44731rm -f conftest.$ac_ext
44732ac_ext=c
44733ac_cpp='$CPP $CPPFLAGS'
44734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44736ac_compiler_gnu=$ac_cv_c_compiler_gnu
44737
44738
44739if test "$pac_linkwithf77" != "yes" -a "$pac_linkwithC" != "yes" ; then
44740    as_fn_error $? "Could not determine a way to link a Fortran test program!" "$LINENO" 5
44741fi
44742
44743    # For name mangle, we need the library flags
44744
44745
44746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name mangling" >&5
44747$as_echo_n "checking for Fortran 77 name mangling... " >&6; }
44748if ${pac_cv_prog_f77_name_mangle+:} false; then :
44749  $as_echo_n "(cached) " >&6
44750else
44751
44752# Initialize pac_found to indicate if name mangling scheme has been found
44753pac_found=no
44754ac_ext=f
44755ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44756ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44757ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44758
44759cat > conftest.$ac_ext <<_ACEOF
44760
44761
44762        subroutine MY_name( ii )
44763        return
44764        end
44765
44766
44767_ACEOF
44768if ac_fn_f77_try_compile "$LINENO"; then :
44769
44770
44771{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT f77conftest.$OBJEXT" >&5
44772  (eval mv conftest.$OBJEXT f77conftest.$OBJEXT) 2>&5
44773  ac_status=$?
44774  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44775  test $ac_status = 0; }
44776    saved_LIBS="$LIBS"
44777        LIBS="f77conftest.$OBJEXT $FLIBS $LIBS"
44778    ac_ext=c
44779ac_cpp='$CPP $CPPFLAGS'
44780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44782ac_compiler_gnu=$ac_cv_c_compiler_gnu
44783
44784    for call in "" __stdcall ; do
44785        for sym in my_name_ my_name__ my_name MY_NAME MY_name MY_name_ NONE ; do
44786            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44787/* end confdefs.h.  */
44788
44789                extern void ${call} ${sym}(int);
44790int
44791main ()
44792{
44793${sym}(0);
44794  ;
44795  return 0;
44796}
44797
44798_ACEOF
44799if ac_fn_c_try_link "$LINENO"; then :
44800
44801                pac_found=yes
44802                break
44803
44804fi
44805rm -f core conftest.err conftest.$ac_objext \
44806    conftest$ac_exeext conftest.$ac_ext
44807        done
44808        test "$pac_found" = "yes" && break
44809    done
44810    ac_ext=f
44811ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44812ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44813ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44814
44815    LIBS="$saved_LIBS"
44816    rm -f f77conftest.$OBJEXT
44817
44818fi
44819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44820ac_ext=c
44821ac_cpp='$CPP $CPPFLAGS'
44822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44824ac_compiler_gnu=$ac_cv_c_compiler_gnu
44825
44826# If we got to here and pac_cv_prog_f77_name_mangle is still NOT definable,
44827# it may be that the programs have to be linked with the Fortran compiler,
44828# not the C compiler.  Try reversing the language used for the test
44829if test  "$pac_found" != "yes" ; then
44830    ac_ext=c
44831ac_cpp='$CPP $CPPFLAGS'
44832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44834ac_compiler_gnu=$ac_cv_c_compiler_gnu
44835
44836    for call in "" __stdcall ; do
44837        for sym in my_name_ my_name__ my_name MY_NAME MY_name MY_name_ NONE ; do
44838            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44839/* end confdefs.h.  */
44840
44841                void ${call} ${sym}(int a) {}
44842
44843_ACEOF
44844if ac_fn_c_try_compile "$LINENO"; then :
44845
44846
44847{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT cconftest.$OBJEXT" >&5
44848  (eval mv conftest.$OBJEXT cconftest.$OBJEXT) 2>&5
44849  ac_status=$?
44850  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44851  test $ac_status = 0; }
44852                saved_LIBS="$LIBS"
44853                LIBS="cconftest.$OBJEXT $LIBS"
44854                ac_ext=f
44855ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
44856ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44857ac_compiler_gnu=$ac_cv_f77_compiler_gnu
44858
44859                cat > conftest.$ac_ext <<_ACEOF
44860
44861                          program main
44862      call my_name(0)
44863      end
44864
44865_ACEOF
44866if ac_fn_f77_try_link "$LINENO"; then :
44867
44868                    pac_found=yes
44869
44870fi
44871rm -f core conftest.err conftest.$ac_objext \
44872    conftest$ac_exeext conftest.$ac_ext
44873                ac_ext=c
44874ac_cpp='$CPP $CPPFLAGS'
44875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44877ac_compiler_gnu=$ac_cv_c_compiler_gnu
44878
44879                LIBS="$saved_LIBS"
44880                rm -f cconftest.$OBJEXT
44881                test "$pac_found" = "yes" && break
44882
44883fi
44884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44885        done
44886        test "$pac_found" = "yes" && break
44887    done
44888    ac_ext=c
44889ac_cpp='$CPP $CPPFLAGS'
44890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44892ac_compiler_gnu=$ac_cv_c_compiler_gnu
44893
44894fi
44895if test "$pac_found" = "yes" ; then
44896    case ${sym} in
44897        my_name_)
44898            pac_cv_prog_f77_name_mangle="lower uscore" ;;
44899        my_name__)
44900            pac_cv_prog_f77_name_mangle="lower 2uscore" ;;
44901        my_name)
44902            pac_cv_prog_f77_name_mangle="lower" ;;
44903        MY_NAME)
44904            pac_cv_prog_f77_name_mangle="upper" ;;
44905        MY_name)
44906            pac_cv_prog_f77_name_mangle="mixed" ;;
44907        MY_name_)
44908            pac_cv_prog_f77_name_mangle="mixed uscore" ;;
44909        *)
44910            pac_cv_prog_f77_name_mangle=""
44911            pac_found=no;
44912            ;;
44913    esac
44914    if test "X$pac_cv_prog_f77_name_mangle" != "X" ; then
44915        if test "$call" = "__stdcall" ; then
44916            pac_cv_prog_f77_name_mangle="$pac_cv_prog_f77_name_mangle stdcall"
44917        fi
44918    fi
44919fi
44920
44921fi
44922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_name_mangle" >&5
44923$as_echo "$pac_cv_prog_f77_name_mangle" >&6; }
44924case $pac_cv_prog_f77_name_mangle in
44925    *stdcall)
44926        F77_STDCALL="__stdcall" ;;
44927    *)
44928        F77_STDCALL="" ;;
44929esac
44930# Get the standard call definition
44931# FIXME: This should use F77_STDCALL, not STDCALL (non-conforming name)
44932F77_STDCALL="$call"
44933
44934cat >>confdefs.h <<_ACEOF
44935#define STDCALL $F77_STDCALL
44936_ACEOF
44937
44938
44939# new_name="`echo $name | tr ' ' '_' | tr [a-z] [A-Z]`"
44940# We could have done the character conversion with 'tr'
44941# which may not be portable, e.g. solaris's /usr/ucb/bin/tr.
44942# So use a conservative approach.
44943
44944# Replace blank with underscore
44945name_scheme="`echo $pac_cv_prog_f77_name_mangle | sed 's% %_%g'`"
44946# Turn lowercase into uppercase.
44947name_scheme="`echo $name_scheme | sed -e 'y%abcdefghijklmnopqrstuvwxyz%ABCDEFGHIJKLMNOPQRSTUVWXYZ%'`"
44948F77_NAME_MANGLE="F77_NAME_${name_scheme}"
44949cat >>confdefs.h <<_ACEOF
44950#define $F77_NAME_MANGLE 1
44951_ACEOF
44952
44953
44954if test "X$pac_cv_prog_f77_name_mangle" = "X" ; then
44955    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown Fortran naming scheme" >&5
44956$as_echo "$as_me: WARNING: Unknown Fortran naming scheme" >&2;}
44957fi
44958
44959
44960
44961
44962
44963
44964
44965
44966
44967
44968
44969
44970
44971    # Check whether additional libraries are needed when linking with C
44972
44973
44974
44975# To simply the code in the cache_check macro, chose the routine name
44976# first, in case we need it
44977confname=conf1_
44978case "$pac_cv_prog_f77_name_mangle" in
44979    "lower underscore")       confname=conf1_ ;;
44980    "upper stdcall")          confname=CONF1  ;;
44981    "upper")                  confname=CONF1  ;;
44982    "lower doubleunderscore") confname=conf1_ ;;
44983    "lower")                  confname=conf1  ;;
44984    "mixed underscore")       confname=conf1_ ;;
44985    "mixed")                  confname=conf1  ;;
44986esac
44987
44988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries to link Fortran main with C stdio routines" >&5
44989$as_echo_n "checking for libraries to link Fortran main with C stdio routines... " >&6; }
44990if ${pac_cv_prog_f77_and_c_stdio_libs+:} false; then :
44991  $as_echo_n "(cached) " >&6
44992else
44993
44994pac_cv_prog_f77_and_c_stdio_libs=unknown
44995ac_ext=c
44996ac_cpp='$CPP $CPPFLAGS'
44997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44999ac_compiler_gnu=$ac_cv_c_compiler_gnu
45000
45001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45002/* end confdefs.h.  */
45003
45004
45005#if defined(HAVE_STDIO_H) || defined(STDC_HEADERS)
45006#include <stdio.h>
45007#endif
45008int $confname(int a) {
45009    printf( "The answer is %d\n", a ); fflush(stdout); return 0;
45010}
45011
45012
45013_ACEOF
45014if ac_fn_c_try_compile "$LINENO"; then :
45015
45016
45017{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
45018  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
45019  ac_status=$?
45020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45021  test $ac_status = 0; }
45022    saved_LIBS="$LIBS"
45023    ac_ext=f
45024ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45025ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45026ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45027
45028    cat > conftest.$ac_ext <<_ACEOF
45029
45030
45031            program main
45032            call conf1(0)
45033            end
45034
45035
45036_ACEOF
45037    for extralib in "" "-lSystemStubs" ; do
45038        LIBS="pac_conftest.$OBJEXT $saved_LIBS $extralib"
45039        if ac_fn_f77_try_link "$LINENO"; then :
45040
45041            pac_cv_prog_f77_and_c_stdio_libs="$extralib"; break
45042
45043fi
45044rm -f core conftest.err conftest.$ac_objext \
45045    conftest$ac_exeext
45046    done
45047    if test "X$pac_cv_prog_f77_and_c_stdio_libs" = "X" ; then
45048        pac_cv_prog_f77_and_c_stdio_libs=none
45049    fi
45050    rm -f conftest.$ac_ext
45051    ac_ext=c
45052ac_cpp='$CPP $CPPFLAGS'
45053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45055ac_compiler_gnu=$ac_cv_c_compiler_gnu
45056
45057    LIBS="$saved_LIBS"
45058    rm -f pac_conftest.$OBJEXT
45059
45060fi
45061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45062ac_ext=c
45063ac_cpp='$CPP $CPPFLAGS'
45064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45066ac_compiler_gnu=$ac_cv_c_compiler_gnu
45067
45068
45069fi
45070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_and_c_stdio_libs" >&5
45071$as_echo "$pac_cv_prog_f77_and_c_stdio_libs" >&6; }
45072if test "$pac_cv_prog_f77_and_c_stdio_libs" != "none" \
45073     -a "$pac_cv_prog_f77_and_c_stdio_libs" != "unknown" ; then
45074    F77_OTHER_LIBS="$F77_OTHER_LIBS $pac_cv_prog_f77_and_c_stdio_libs"
45075fi
45076
45077
45078
45079    # Warn about mixed name mangling, since many of the tests will fail
45080    if test "$pac_cv_prog_f77_name_mangle" = "mixed" ; then
45081        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The compiler $F77 uses mixed case names.  Fortran is monocase
45082and many Fortran programs may use either upper or lower case names for MPI
45083calls.  Consider specifying a particular parameter to your Fortran compiler
45084to select either upper or lower case names.  For the Absoft compiler,
45085-f selects lower case and -N109 selects upper case (if you use -f, also use
45086-B108 to enable the iargc and getarg routines, which are needed for some
45087tests and by many user programs).  Specify new command
45088line options by setting the environment variable FFLAGS to include
45089the options (e.g., setenv FFLAGS \"-f -B108\").  In addition, make sure that your
45090Fortran 90 compiler uses a compatible naming choice.  For the
45091Absoft Fortran 90, -YALL_NAMES=LCS selects lower case names and -B108
45092adds underscores to names, as required for iargc and getarg.  Pass this
45093information to configure with the FCFLAGS environment variable." >&5
45094$as_echo "$as_me: WARNING: The compiler $F77 uses mixed case names.  Fortran is monocase
45095and many Fortran programs may use either upper or lower case names for MPI
45096calls.  Consider specifying a particular parameter to your Fortran compiler
45097to select either upper or lower case names.  For the Absoft compiler,
45098-f selects lower case and -N109 selects upper case (if you use -f, also use
45099-B108 to enable the iargc and getarg routines, which are needed for some
45100tests and by many user programs).  Specify new command
45101line options by setting the environment variable FFLAGS to include
45102the options (e.g., setenv FFLAGS \"-f -B108\").  In addition, make sure that your
45103Fortran 90 compiler uses a compatible naming choice.  For the
45104Absoft Fortran 90, -YALL_NAMES=LCS selects lower case names and -B108
45105adds underscores to names, as required for iargc and getarg.  Pass this
45106information to configure with the FCFLAGS environment variable." >&2;}
45107        # If Fortran implicitly enabled, disable it now.  Otherwise,
45108	# abort the configure since warning messages are often lost in
45109	# the output.
45110	as_fn_error $? "Aborting configure because of mixed case names in Fortran.  Either select --disable-fortran or set FCFLAGS to force the compiler to select monocase names" "$LINENO" 5
45111    fi
45112
45113    # The MPI standard requires that MPI_Init in any language initialize
45114    # MPI in all languages.  This can be a problem when objects produced
45115    # by the Fortran compiler require symbols from the Fortran runtime
45116    # (making linking C-only programs unnecessarily difficult).  What we test
45117    # here is whether the much more restricted needs of the Fortran
45118    # initialize can be met with no special use of the Fortran runtime
45119
45120
45121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran init will work with C" >&5
45122$as_echo_n "checking whether Fortran init will work with C... " >&6; }
45123pac_f_init_works_with_c=unknown
45124ac_ext=f
45125ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45126ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45127ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45128
45129cat > conftest.$ac_ext <<_ACEOF
45130
45131
45132        subroutine minit()
45133        common /m1/ vc, vc2
45134        character*1 vc(1,1), vc2(1)
45135        common /m2/ vd
45136        integer vd
45137        save /m1/, /m2/
45138        call minitc( vc, vc2, vd )
45139        end
45140
45141
45142_ACEOF
45143if ac_fn_f77_try_compile "$LINENO"; then :
45144
45145
45146{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_f77conftest.$OBJEXT" >&5
45147  (eval mv conftest.$OBJEXT pac_f77conftest.$OBJEXT) 2>&5
45148  ac_status=$?
45149  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45150  test $ac_status = 0; }
45151    saved_LIBS="$LIBS"
45152    # This test checks if Fortran init can be done in pure C environment,
45153    # i.e. no FLIBS in linking, so don't put FLIBS in LIBS below
45154        LIBS="pac_f77conftest.$OBJEXT $LIBS"
45155    ac_ext=c
45156ac_cpp='$CPP $CPPFLAGS'
45157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45159ac_compiler_gnu=$ac_cv_c_compiler_gnu
45160
45161    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45162/* end confdefs.h.  */
45163
45164
45165#if defined(HAVE_STDIO_H) || defined(STDC_HEADERS)
45166#include <stdio.h>
45167#endif
45168#ifdef F77_NAME_UPPER
45169#define minit_ MINIT
45170#elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED)
45171#define minit_ minit
45172#endif
45173extern void minit_(void);
45174int main( int argc, char **argv )
45175{
45176    minit_();
45177    return 0;
45178}
45179char *v1 = 0;
45180char *vc2 = 0;
45181int  v2 = 0;
45182void minitc_( char *dv1, int d, char *dv2, int d2, int dv3 );
45183void minitc_( char *dv1, int d, char *dv2, int d2, int dv3 )
45184{
45185v1 = dv1;
45186v2 = dv3;
45187vc2 = dv2;
45188*vc2 = ' ';
45189}
45190
45191
45192_ACEOF
45193if ac_fn_c_try_link "$LINENO"; then :
45194  pac_f_init_works_with_c=yes
45195else
45196  pac_f_init_works_with_c=no
45197fi
45198rm -f core conftest.err conftest.$ac_objext \
45199    conftest$ac_exeext conftest.$ac_ext
45200    ac_ext=f
45201ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45202ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45203ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45204
45205    LIBS="$saved_LIBS"
45206    rm -f pac_f77conftest.$OBJEXT
45207
45208fi
45209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45210ac_ext=c
45211ac_cpp='$CPP $CPPFLAGS'
45212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45214ac_compiler_gnu=$ac_cv_c_compiler_gnu
45215
45216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_f_init_works_with_c" >&5
45217$as_echo "$pac_f_init_works_with_c" >&6; }
45218
45219   if test "$pac_f_init_works_with_c" = "yes" ; then
45220
45221$as_echo "#define HAVE_MPI_F_INIT_WORKS_WITH_C 1" >>confdefs.h
45222
45223   fi
45224
45225   #
45226   # Some Fortran compilers now pass CHARACTER length as a size_t instead
45227   # of as an int.  This is hard to test for, since the data is passed by
45228   # value and for characters less than about 2GB long, the correct
45229   # value will be used.  In this case, we must use an approach similar to
45230   # the one used by libtool for shared library options - look at the
45231   # compiler name or vendor.
45232   # Known compilers that use size_t instead of int:
45233   #    Intel Fortran
45234   #    gfortran
45235   # Add others as they become known
45236   # Check whether --enable-f77characterlen was given.
45237if test "${enable_f77characterlen+set}" = set; then :
45238  enableval=$enable_f77characterlen;
45239else
45240  enable_f77characterlen=no
45241fi
45242
45243
45244   # Set the default
45245   f77_uses_int_for_str=default
45246
45247   case "$enable_f77characterlen" in
45248      yes|no)
45249      ;;
45250      size_t)
45251         f77_uses_int_for_str=no
45252	 enable_f77characterlen=yes
45253      ;;
45254      int)
45255         f77_uses_int_for_str=yes
45256	 enable_f77characterlen=yes
45257      ;;
45258      *)
45259      as_fn_error $? "Invalid value provided for --enable-f77characterlen" "$LINENO" 5
45260      ;;
45261   esac
45262
45263   # If we might change the size (enable) and we haven't set the choice,
45264   # attempt to determine it from the compiler name.  Risky, but we haven't
45265   # found a reliable way to do this with test codes.
45266   if test "$enable_f77characterlen" = "yes" -a \
45267           "$f77_uses_int_for_str" = "default" ; then
45268       f77_uses_int_for_str=yes
45269       f77Basename=`basename $F77`
45270       case $f77Basename in
45271       ifort*)
45272       f77_uses_int_for_str=no
45273       ;;
45274       gfortran*)
45275       f77_uses_int_for_str=no
45276       ;;
45277       esac
45278   fi
45279   # This test is disabled for now.  Despite information in documentation
45280   # on gfortran, it appears to pass lengths as int, at least in some
45281   # builds (it used movl when tested in 2/2013).  Tests that failed
45282   # included infotestf.f, in a call to mpi_info_get.
45283   # Leave this as a place holder until a proper test can be determined.
45284   if test  "$enable_f77characterlen" = "yes" -a \
45285            "$f77_uses_int_for_str" = "no" ; then
45286
45287$as_echo "#define USE_FORT_STR_LEN_SIZET 1" >>confdefs.h
45288
45289   fi
45290
45291fi
45292
45293# FC requires F77 as well.  If the user disabled f77, do not run the
45294# next test; instead, drop into the warning message
45295# Set a default value for fc works with f77.  This value is
45296# set to no *only* if fc was selected but was not compatible with f77
45297fc_with_f77=yes
45298if test "$enable_fc" = "yes" -a "$enable_f77" = yes ; then
45299    enable_fc=no
45300    if test "$FC" != "no" ; then
45301	# If we allow multiple weak symbols, we should test a name
45302	# that does not contain an underscore.  The Fortran binding uses
45303	# this rule for enabling multiple weak symbols:
45304	# if defined(USE_WEAK_SYMBOLS) && !defined(USE_ONLY_MPI_NAMES) &&
45305	#    defined(HAVE_MULTIPLE_PRAGMA_WEAK) &&
45306	#    defined(F77_NAME_LOWER_2USCORE)
45307	#
45308	testRoutine="t1_2"
45309	if test "$pac_cv_prog_c_multiple_weak_symbols" = "yes" -a \
45310               "$enable_weak_symbols" = "yes" -a \
45311	       "$pac_cv_prog_f77_name_mangle" = "lower doubleunderscore" ; then
45312	    testRoutine="t12"
45313        fi
45314
45315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extension for Fortran 90 programs" >&5
45316$as_echo_n "checking for extension for Fortran 90 programs... " >&6; }
45317ac_fc_srcext="f90"
45318ac_ext=${ac_fc_srcext-f}
45319ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
45320ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
45321ac_compiler_gnu=$ac_cv_fc_compiler_gnu
45322
45323cat > conftest.$ac_ext <<_ACEOF
45324
45325          program main
45326
45327      end
45328
45329_ACEOF
45330if ac_fn_fc_try_compile "$LINENO"; then :
45331
45332    { $as_echo "$as_me:${as_lineno-$LINENO}: result: f90" >&5
45333$as_echo "f90" >&6; }
45334
45335else
45336
45337    ac_fc_srcext="f"
45338    cat > conftest.$ac_ext <<_ACEOF
45339
45340              program main
45341
45342      end
45343
45344_ACEOF
45345if ac_fn_fc_try_compile "$LINENO"; then :
45346
45347        { $as_echo "$as_me:${as_lineno-$LINENO}: result: f" >&5
45348$as_echo "f" >&6; }
45349
45350else
45351
45352        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown!" >&5
45353$as_echo "unknown!" >&6; }
45354
45355fi
45356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45357
45358fi
45359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45360ac_ext=c
45361ac_cpp='$CPP $CPPFLAGS'
45362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45364ac_compiler_gnu=$ac_cv_c_compiler_gnu
45365
45366
45367
45368
45369ac_ext=${ac_fc_srcext-f}
45370ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
45371ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
45372ac_compiler_gnu=$ac_cv_fc_compiler_gnu
45373
45374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) works" >&5
45375$as_echo_n "checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) works... " >&6; }
45376cat > conftest.$ac_ext <<_ACEOF
45377
45378
45379        program conftest
45380        integer, dimension(10) :: n
45381        end
45382
45383
45384_ACEOF
45385if ac_fn_fc_try_link "$LINENO"; then :
45386
45387    pac_cv_prog_fc_works="yes"
45388    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_fc_works" >&5
45389$as_echo "$pac_cv_prog_fc_works" >&6; }
45390    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) is a cross-compiler" >&5
45391$as_echo_n "checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) is a cross-compiler... " >&6; }
45392    if test "$cross_compiling" = yes; then :
45393  pac_cv_prog_fc_cross="$cross_compiling"
45394
45395else
45396  if ac_fn_fc_try_run "$LINENO"; then :
45397  pac_cv_prog_fc_cross="no"
45398else
45399  pac_cv_prog_fc_cross="yes"
45400fi
45401rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45402  conftest.$ac_objext conftest.beam
45403fi
45404
45405    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_fc_cross" >&5
45406$as_echo "$pac_cv_prog_fc_cross" >&6; }
45407
45408else
45409
45410    pac_cv_prog_fc_works="no"
45411    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installation or configuration problem: Fortran 90 compiler cannot create executables." >&5
45412$as_echo "$as_me: WARNING: installation or configuration problem: Fortran 90 compiler cannot create executables." >&2;}
45413
45414fi
45415rm -f core conftest.err conftest.$ac_objext \
45416    conftest$ac_exeext conftest.$ac_ext
45417# The intel compiler sometimes generates these work.pc and .pcl files
45418rm -f work.pc work.pcl
45419ac_ext=c
45420ac_cpp='$CPP $CPPFLAGS'
45421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45423ac_compiler_gnu=$ac_cv_c_compiler_gnu
45424
45425
45426
45427
45428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 90 compiler works with Fortran 77 compiler" >&5
45429$as_echo_n "checking whether Fortran 90 compiler works with Fortran 77 compiler... " >&6; }
45430if ${pac_cv_fc_and_f77+:} false; then :
45431  $as_echo_n "(cached) " >&6
45432else
45433
45434pacTestRoutine=foo_abc
45435eval pacTestRoutine=$testRoutine
45436pac_cv_fc_and_f77="unknown"
45437# compile the f77 program and link with the f90 program
45438# The reverse may not work because the Fortran 90 environment may
45439# expect to be in control (and to provide library files unknown to any other
45440# environment, even Fortran 77!)
45441ac_ext=f
45442ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45443ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45444ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45445
45446cat > conftest.$ac_ext <<_ACEOF
45447
45448
45449        subroutine ${pacTestRoutine}(b)
45450        integer b
45451        b = b + 1
45452        end
45453
45454
45455_ACEOF
45456if ac_fn_f77_try_compile "$LINENO"; then :
45457
45458    # pac_f77compile_ok=yes
45459
45460{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_f77conftest.$OBJEXT" >&5
45461  (eval mv conftest.$OBJEXT pac_f77conftest.$OBJEXT) 2>&5
45462  ac_status=$?
45463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45464  test $ac_status = 0; }
45465    # Save original LIBS, prepend previously generated object file to LIBS
45466    saved_LIBS="$LIBS"
45467    LIBS="pac_f77conftest.$OBJEXT $LIBS"
45468    ac_ext=${ac_fc_srcext-f}
45469ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
45470ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
45471ac_compiler_gnu=$ac_cv_fc_compiler_gnu
45472
45473    cat > conftest.$ac_ext <<_ACEOF
45474
45475
45476            program main
45477            integer a
45478            a = 1
45479            call ${pacTestRoutine}(a)
45480            end
45481
45482
45483_ACEOF
45484if ac_fn_fc_try_link "$LINENO"; then :
45485  pac_cv_fc_and_f77=yes
45486else
45487  pac_cv_fc_and_f77=no
45488fi
45489rm -f core conftest.err conftest.$ac_objext \
45490    conftest$ac_exeext conftest.$ac_ext
45491    # Some versions of the Intel compiler produce these two files
45492    rm -f work.pc work.pcl
45493    # Restore LIBS
45494    LIBS="$saved_LIBS"
45495    ac_ext=f
45496ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45497ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45498ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45499
45500    # remove previously generated object file.
45501    rm -f pac_f77conftest.$OBJEXT
45502
45503else
45504
45505    # pac_f77compile_ok=no
45506    pac_cv_fc_and_f77=no
45507
45508fi
45509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45510ac_ext=c
45511ac_cpp='$CPP $CPPFLAGS'
45512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45514ac_compiler_gnu=$ac_cv_c_compiler_gnu
45515
45516# Perform the requested action based on whether the test succeeded
45517if test "$pac_cv_fc_and_f77" = yes ; then
45518    fc_with_f77=yes
45519else
45520    fc_with_f77=no
45521    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: See config.log for the failed test program and its output." >&5
45522$as_echo "$as_me: WARNING: See config.log for the failed test program and its output." >&2;}
45523fi
45524
45525fi
45526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fc_and_f77" >&5
45527$as_echo "$pac_cv_fc_and_f77" >&6; }
45528
45529        if test "$fc_with_f77" != yes ; then
45530	    enable_fc=no
45531	    as_fn_error $? "The selected Fortran 90 compiler $FC does not work with the selected Fortran 77 compiler $F77.  Use the environment variables FC and F77 respectively to select compatible Fortran compilers.  The check here tests to see if a main program compiled with the Fortran 90 compiler can link with a subroutine compiled with the Fortran 77 compiler." "$LINENO" 5
45532        elif test "$fc_with_f77" = "yes" ; then
45533            # If we got here, there is a Fortran 90 compiler that we can use
45534            enable_fc=yes
45535        fi
45536    elif test "$pac_cv_prog_fc_works" = no; then
45537        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --disable-fc to keep configure from searching for a Fortran 90 compiler" >&5
45538$as_echo "$as_me: WARNING: Use --disable-fc to keep configure from searching for a Fortran 90 compiler" >&2;}
45539    fi
45540
45541    if test "$enable_fc" = "yes"; then
45542        if test "$FC" = "no" -o "$FC" = ""; then
45543            # No Fortran 90 compiler found; abort
45544            as_fn_error $? "No Fortran 90 compiler found. If you don't need
45545            to build any Fortran 90 programs, you can disable Fortran 90
45546            support using --disable-fc. If you do want to build Fortran 90
45547            programs, you need to install a Fortran 90 compiler such as
45548            gfortran or ifort before you can proceed." "$LINENO" 5
45549        fi
45550    fi
45551fi
45552
45553if test "$enable_fc" = "yes" -a "$enable_f77" != "yes" ; then
45554   # Fortran 90 support requires compatible Fortran 77 support
45555   as_fn_error $? "
45556Fortran 90 support requires compatible Fortran 77 support.
45557To force the use of the Fortran 90 compiler for Fortran 77,
45558do not use configure option --disable-fortran, and set the environment
45559variable F77 to the name of the Fortran 90 compiler, or \$FC.
45560If you do not want any Fortran support, use configure options
45561--disable-fortran." "$LINENO" 5
45562   # We should probably do the compatibility test as well
45563   enable_f77=yes
45564fi
45565
45566# ----------------------------------------------------------------------------
45567# Now test for Fortran compiler characteristics
45568# ----------------------------------------------------------------------------
45569if test "$enable_f77" = "yes" ; then
45570    # determine shared library flags for F77
45571    f77_shlib_conf=src/env/f77_shlib.conf
45572
45573
45574
45575
45576# It appears that the libtool dynamic linking strategy on Darwin is this:
45577# 1. Link all shared libs with "-install_name /full/path/to/libfoo.dylib"
45578# 2. Don't do anything special when linking programs, since it seems that the
45579# darwin dynamic linker will always use the "install_name" field from the lib
45580# that was found at program link-time.  (CONFIRMED) This is in opposition to
45581# the way that Linux does it, where specifying a "-rpath" argument at program
45582# link-time is important.
45583#
45584# There is an alternative darwin strategy for versions
45585# >= 10.5, see this: http://www.cmake.org/pipermail/cmake/2010-August/038970.html
45586# (goodell@ 2011-06-17)
45587
45588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library (esp. rpath) characteristics of F77" >&5
45589$as_echo_n "checking for shared library (esp. rpath) characteristics of F77... " >&6; }
45590
45591# unfortunately, config.rpath expects the compiler in question is always CC and
45592# uses several other environment variables as input
45593
45594	if test -z "${pac_save_CC_nesting}" ; then
45595	   pac_save_CC_nesting=0
45596	fi
45597	eval pac_save_CC_${pac_save_CC_nesting}='"$CC"'
45598	pac_save_CC_nesting=`expr ${pac_save_CC_nesting} + 1`
45599
45600
45601	if test -z "${pac_save_GCC_nesting}" ; then
45602	   pac_save_GCC_nesting=0
45603	fi
45604	eval pac_save_GCC_${pac_save_GCC_nesting}='"$GCC"'
45605	pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} + 1`
45606
45607
45608	if test -z "${pac_save_LD_nesting}" ; then
45609	   pac_save_LD_nesting=0
45610	fi
45611	eval pac_save_LD_${pac_save_LD_nesting}='"$LD"'
45612	pac_save_LD_nesting=`expr ${pac_save_LD_nesting} + 1`
45613
45614# these two don't currently get overridden, but we push/pop them for safety in
45615# case they do in the future
45616
45617	if test -z "${pac_save_LDFLAGS_nesting}" ; then
45618	   pac_save_LDFLAGS_nesting=0
45619	fi
45620	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"'
45621	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1`
45622
45623
45624	if test -z "${pac_save_with_gnu_ld_nesting}" ; then
45625	   pac_save_with_gnu_ld_nesting=0
45626	fi
45627	eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}='"$with_gnu_ld"'
45628	pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} + 1`
45629
45630
45631# set the temporary override values (if any)
45632CC="$F77"
45633     GCC="$G77"
45634     LD="$LD_F77"
45635
45636# ensure the values are available to the script
45637export CC
45638export GCC
45639export LDFLAGS
45640export LD
45641export with_gnu_ld
45642
45643if $ac_aux_dir/config.rpath "$host" > $f77_shlib_conf; then :
45644  :
45645else
45646  as_fn_error $? "unable to execute $ac_aux_dir/config.rpath" "$LINENO" 5
45647fi
45648
45649C_LINKPATH_SHL=""
45650
45651
45652rm -f conftest.out
45653
45654# restore the old values
45655
45656	pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} - 1`
45657	eval with_gnu_ld="\$pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}"
45658	eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}=""
45659
45660
45661	pac_save_LD_nesting=`expr ${pac_save_LD_nesting} - 1`
45662	eval LD="\$pac_save_LD_${pac_save_LD_nesting}"
45663	eval pac_save_LD_${pac_save_LD_nesting}=""
45664
45665
45666	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1`
45667	eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}"
45668	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}=""
45669
45670
45671	pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} - 1`
45672	eval GCC="\$pac_save_GCC_${pac_save_GCC_nesting}"
45673	eval pac_save_GCC_${pac_save_GCC_nesting}=""
45674
45675
45676	pac_save_CC_nesting=`expr ${pac_save_CC_nesting} - 1`
45677	eval CC="\$pac_save_CC_${pac_save_CC_nesting}"
45678	eval pac_save_CC_${pac_save_CC_nesting}=""
45679
45680
45681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done (results in $f77_shlib_conf)" >&5
45682$as_echo "done (results in $f77_shlib_conf)" >&6; }
45683
45684
45685
45686    ac_ext=f
45687ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45688ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45689ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45690
45691
45692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 77 accepts ! for comments" >&5
45693$as_echo_n "checking whether Fortran 77 accepts ! for comments... " >&6; }
45694if ${pac_cv_prog_f77_exclaim_comments+:} false; then :
45695  $as_echo_n "(cached) " >&6
45696else
45697
45698ac_ext=f
45699ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45700ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45701ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45702
45703cat > conftest.$ac_ext <<_ACEOF
45704
45705           program main
45706!        This is a comment
45707      end
45708
45709_ACEOF
45710if ac_fn_f77_try_compile "$LINENO"; then :
45711
45712    pac_cv_prog_f77_exclaim_comments="yes"
45713
45714else
45715
45716    pac_cv_prog_f77_exclaim_comments="no"
45717
45718fi
45719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45720ac_ext=f
45721ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45722ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45723ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45724
45725
45726fi
45727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_exclaim_comments" >&5
45728$as_echo "$pac_cv_prog_f77_exclaim_comments" >&6; }
45729if test "$pac_cv_prog_f77_exclaim_comments" = "yes" ; then
45730    has_exclaim="yes"
45731else
45732    has_exclaim="no"
45733fi
45734
45735
45736checkdir=src;checkdir_is_given=yes
45737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for include directory flag for Fortran" >&5
45738$as_echo_n "checking for include directory flag for Fortran... " >&6; }
45739if ${pac_cv_prog_f77_has_incdir+:} false; then :
45740  $as_echo_n "(cached) " >&6
45741else
45742
45743test -d $checkdir || mkdir $checkdir
45744echo '       call sub()' > $checkdir/conftestf.h
45745ac_ext=f
45746ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45747ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45748ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45749
45750saved_FFLAGS="$FFLAGS"
45751pac_cv_prog_f77_has_incdir="none"
45752# SGI wants -Wf,-I
45753for idir in "-I" "-Wf,-I" ; do
45754    FFLAGS="${idir} $checkdir $saved_FFLAGS"
45755    cat > conftest.$ac_ext <<_ACEOF
45756
45757
45758            program main
45759            include 'conftestf.h'
45760            end
45761
45762
45763_ACEOF
45764if ac_fn_f77_try_compile "$LINENO"; then :
45765  pac_cv_prog_f77_has_incdir="$idir"; break
45766fi
45767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45768done
45769FFLAGS="$saved_FFLAGS"
45770ac_ext=f
45771ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45772ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45773ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45774
45775if test "$checkdir_is_given" = "yes" ; then
45776    rm -f $checkdir/conftestf.h
45777else
45778    rm -rf $checkdir
45779fi
45780
45781fi
45782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_has_incdir" >&5
45783$as_echo "$pac_cv_prog_f77_has_incdir" >&6; }
45784if test "X$pac_cv_prog_f77_has_incdir" != "Xnone" ; then
45785    F77_INCDIR="$pac_cv_prog_f77_has_incdir"
45786
45787fi
45788
45789
45790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 flag for library directories" >&5
45791$as_echo_n "checking for Fortran 77 flag for library directories... " >&6; }
45792if ${pac_cv_prog_f77_library_dir_flag+:} false; then :
45793  $as_echo_n "(cached) " >&6
45794else
45795
45796ac_ext=f
45797ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45798ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45799ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45800
45801cat > conftest.$ac_ext <<_ACEOF
45802
45803
45804        subroutine f1conf
45805        end
45806
45807
45808_ACEOF
45809if ac_fn_f77_try_compile "$LINENO"; then :
45810
45811    # pac_f77compile_ok=yes
45812
45813{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_f77conftest.$OBJEXT" >&5
45814  (eval mv conftest.$OBJEXT pac_f77conftest.$OBJEXT) 2>&5
45815  ac_status=$?
45816  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45817  test $ac_status = 0; }
45818
45819{ $as_echo "$as_me:$LINENO: test -d conftestdir || mkdir conftestdir" >&5
45820  (eval test -d conftestdir || mkdir conftestdir) 2>&5
45821  ac_status=$?
45822  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45823  test $ac_status = 0; }
45824
45825{ $as_echo "$as_me:$LINENO: ${AR-ar} ${AR_FLAGS-cr} conftestdir/libf77conftest.a pac_f77conftest.$OBJEXT" >&5
45826  (eval ${AR-ar} ${AR_FLAGS-cr} conftestdir/libf77conftest.a pac_f77conftest.$OBJEXT) 2>&5
45827  ac_status=$?
45828  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45829  test $ac_status = 0; }
45830
45831{ $as_echo "$as_me:$LINENO: ${RANLIB-ranlib} conftestdir/libf77conftest.a" >&5
45832  (eval ${RANLIB-ranlib} conftestdir/libf77conftest.a) 2>&5
45833  ac_status=$?
45834  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45835  test $ac_status = 0; }
45836    # Save original LIBS, prepend previously generated object file to LIBS
45837    saved_LIBS="$LIBS"
45838    LIBS="-lf77conftest $LIBS"
45839    saved_LDFLAGS="$LDFLAGS"
45840    pac_cv_prog_f77_library_dir_flag="none"
45841    for ldir in "-L" "-Wl,-L," ; do
45842        LDFLAGS="${ldir}conftestdir $saved_LDFLAGS"
45843        cat > conftest.$ac_ext <<_ACEOF
45844
45845
45846                program main
45847                call f1conf
45848                end
45849
45850
45851_ACEOF
45852if ac_fn_f77_try_link "$LINENO"; then :
45853  pac_cv_prog_f77_library_dir_flag="$ldir";break
45854fi
45855rm -f core conftest.err conftest.$ac_objext \
45856    conftest$ac_exeext conftest.$ac_ext
45857    done
45858    LDFLAGS="$saved_LDFLAGS"
45859    LIBS="$saved_LIBS"
45860    rm -rf conftestdir
45861    rm -f pac_f77conftest.$OBJEXT
45862
45863fi
45864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45865ac_ext=f
45866ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45867ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45868ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45869
45870
45871fi
45872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_library_dir_flag" >&5
45873$as_echo "$pac_cv_prog_f77_library_dir_flag" >&6; }
45874if test "X$pac_cv_prog_f77_library_dir_flag" != "Xnone" ; then
45875    F77_LIBDIR_LEADER="$pac_cv_prog_f77_library_dir_flag"
45876
45877fi
45878
45879
45880
45881    if test "$MPI_WITH_PMPI" = "no" ; then
45882        # If the PMPI routines are not in the same library with the MPI
45883        # routines, we may need to remove the pmpi declarations
45884
45885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran allows unused externals" >&5
45886$as_echo_n "checking whether Fortran allows unused externals... " >&6; }
45887if ${pac_cv_prog_f77_allows_unused_externals+:} false; then :
45888  $as_echo_n "(cached) " >&6
45889else
45890
45891ac_ext=f
45892ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45893ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45894ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45895
45896cat > conftest.$ac_ext <<_ACEOF
45897
45898
45899        program main
45900        external bar
45901        end
45902
45903
45904_ACEOF
45905if ac_fn_f77_try_link "$LINENO"; then :
45906
45907    pac_cv_prog_f77_allows_unused_externals="yes"
45908
45909else
45910
45911    pac_cv_prog_f77_allows_unused_externals="no"
45912
45913fi
45914rm -f core conftest.err conftest.$ac_objext \
45915    conftest$ac_exeext conftest.$ac_ext
45916ac_ext=f
45917ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45918ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45919ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45920
45921
45922fi
45923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_allows_unused_externals" >&5
45924$as_echo "$pac_cv_prog_f77_allows_unused_externals" >&6; }
45925if test "X$pac_cv_prog_f77_allows_unused_externals" = "Xyes" ; then
45926   MPIFPMPI=",PMPI_WTIME,PMPI_WTICK"
45927else
45928
45929        MPIFPMPI="";
45930        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Removed PMPI_WTIME and PMPI_WTICK from mpif.h" >&5
45931$as_echo "$as_me: WARNING: Removed PMPI_WTIME and PMPI_WTICK from mpif.h" >&2;}
45932fi
45933
45934    else
45935        MPIFPMPI=",PMPI_WTIME,PMPI_WTICK"
45936    fi
45937
45938    # Once we have name mangle, we can try to limit the number of needed libs
45939
45940    # Most systems allow the Fortran compiler to process .F and .F90 files
45941    # using the C preprocessor.  However, some systems either do not
45942    # allow this or have serious bugs (OSF Fortran compilers have a bug
45943    # that generates an error message from cpp).  The following test
45944    # checks to see if .F works, and if not, whether "cpp -P -C" can be used
45945    # This is needed for Mac OSX 10.5
45946
45947
45948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 77 compiler processes .F files with C preprocessor" >&5
45949$as_echo_n "checking whether Fortran 77 compiler processes .F files with C preprocessor... " >&6; }
45950ac_ext=f
45951ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
45952ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45953ac_compiler_gnu=$ac_cv_f77_compiler_gnu
45954
45955saved_f77_ext=${ac_ext}
45956ac_ext="F"
45957saved_FFLAGS="$FFLAGS"
45958FFLAGS="$FFLAGS $CPPFLAGS"
45959cat > conftest.$ac_ext <<_ACEOF
45960
45961
45962        program main
45963#define ASIZE 10
45964        integer a(ASIZE)
45965        end
45966
45967
45968_ACEOF
45969if ac_fn_f77_try_compile "$LINENO"; then :
45970
45971    pac_cv_f77_accepts_F=yes
45972    F77CPP=""
45973
45974else
45975
45976    pac_cv_f77_accepts_F=no
45977    F77CPP="false"
45978
45979fi
45980rm -f core conftest.err conftest.$ac_objext
45981# Restore Fortran 77's ac_ext but not FFLAGS
45982ac_ext="$saved_f77_ext"
45983
45984if test "$pac_cv_f77_accepts_F" != "yes" ; then
45985    pac_cpp_f77="$ac_cpp -C -P conftest.F > conftest.$ac_ext"
45986
45987pac_TESTLOG="pac_test.log"
45988rm -f $pac_TESTLOG
45989
45990if
45991{ $as_echo "$as_me:$LINENO: $pac_cpp_f77 > $pac_TESTLOG" >&5
45992  (eval $pac_cpp_f77 > $pac_TESTLOG) 2>&5
45993  ac_status=$?
45994  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45995  test $ac_status = 0; }; then :
45996
45997
45998
45999        if test -s conftest.${ac_ext} ; then
46000            if ac_fn_f77_try_compile "$LINENO"; then :
46001
46002                pac_cv_f77_accepts_F="no, use cpp"
46003                F77CPP="$CPP -C -P"
46004
46005fi
46006rm -f core conftest.err conftest.$ac_objext
46007            rm -f conftest.${ac_ext}
46008        fi
46009
46010
46011
46012else
46013
46014    $as_echo "$as_me: program exited with status $ac_status" >&5
46015
46016        (exit $ac_status)
46017
46018    $as_echo "*** $pac_cpp_f77 :" >&5
46019    cat $pac_TESTLOG >&5
46020
46021
46022
46023
46024
46025fi
46026
46027rm -f $pac_TESTLOG
46028
46029fi
46030FFLAGS="$saved_FFLAGS"
46031rm -f conftest.F
46032ac_ext=f
46033ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
46034ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46035ac_compiler_gnu=$ac_cv_f77_compiler_gnu
46036
46037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_f77_accepts_F" >&5
46038$as_echo "$pac_cv_f77_accepts_F" >&6; }
46039
46040
46041
46042    # Check that the Fortran compiler will allow us to pass arguments
46043    # of different types (e.g., for MPI_Send)
46044
46045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 allows mismatched arguments" >&5
46046$as_echo_n "checking whether $F77 allows mismatched arguments... " >&6; }
46047if test "X$pac_cv_prog_f77_mismatched_args" = X ; then
46048    pac_cv_prog_f77_mismatched_args_parm=""
46049    pac_cv_prog_f77_mismatched_args=no
46050    ac_ext=f
46051ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
46052ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46053ac_compiler_gnu=$ac_cv_f77_compiler_gnu
46054
46055    cat > conftest.$ac_ext <<_ACEOF
46056
46057
46058        program main
46059        integer a
46060        real b
46061        character c
46062        call foo1(a)
46063        call foo1(b)
46064        call foo1(c)
46065        end
46066
46067_ACEOF
46068if ac_fn_f77_try_compile "$LINENO"; then :
46069  pac_cv_prog_f77_mismatched_args=yes
46070fi
46071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46072    if test "$pac_cv_prog_f77_mismatched_args" != "yes" ; then
46073        # try again with -wmismatch=foo1
46074        save_FFLAGS="$FFLAGS"
46075	# The best solution is to turn off errors on particular routines
46076	# if that isn't possible (e.g., too many of them), then
46077	# just try arguments that turn off all checking
46078	for flags in  "-mismatch" "-fallow-argument-mismatch" ; do
46079            testok=no
46080            FFLAGS="$FFLAGS $flags"
46081            cat > conftest.$ac_ext <<_ACEOF
46082
46083
46084        program main
46085        integer a
46086        real b
46087        character c
46088        call foo1(a)
46089        call foo1(b)
46090        call foo1(c)
46091        end
46092
46093_ACEOF
46094if ac_fn_f77_try_compile "$LINENO"; then :
46095  testok=yes
46096fi
46097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46098            FFLAGS="$save_FFLAGS"
46099            if test "$testok" = yes ; then break ; fi
46100        done
46101        if test "$testok" = yes ; then
46102	    pac_cv_prog_f77_mismatched_args_parm="$flags"
46103            pac_cv_prog_f77_mismatched_args="yes, with $pac_cv_prog_f77_mismatched_args_parm"
46104        fi
46105    fi
46106    ac_ext=f
46107ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
46108ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46109ac_compiler_gnu=$ac_cv_f77_compiler_gnu
46110
46111fi
46112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_mismatched_args" >&5
46113$as_echo "$pac_cv_prog_f77_mismatched_args" >&6; }
46114if test "$pac_cv_prog_f77_mismatched_args" = no ; then
46115    as_fn_error $? "The Fortran compiler $F77 will not compile files that call
46116the same routine with arguments of different types." "$LINENO" 5
46117fi
46118
46119addarg=$pac_cv_prog_f77_mismatched_args_parm
46120FFLAGS="$FFLAGS $addarg"
46121
46122    bindings="$bindings f77"
46123
46124$as_echo "#define HAVE_FORTRAN_BINDING 1" >>confdefs.h
46125
46126    # Also define the name FORTRAN_BINDING for use in #if @FORTRAN_BINDING@..
46127    FORTRAN_BINDING=1
46128
46129fi
46130
46131ac_config_commands="$ac_config_commands default-1"
46132
46133
46134if test "$enable_fc" = "yes" ; then
46135    if test "$enable_f77" != "yes" ; then
46136        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran 90 requires Fortran 77" >&5
46137$as_echo "$as_me: WARNING: Fortran 90 requires Fortran 77" >&2;}
46138        enable_fc=no
46139    else
46140        bindingsubsystems="$bindingsubsystems src/binding/fortran/use_mpi"
46141        bindings="$bindings f90"
46142    fi
46143fi
46144
46145f08_works=no
46146if test "$enable_fc" = "yes" ; then
46147
46148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 2008 support" >&5
46149$as_echo_n "checking for Fortran 2008 support... " >&6; }
46150
46151ac_ext=c
46152ac_cpp='$CPP $CPPFLAGS'
46153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46155ac_compiler_gnu=$ac_cv_c_compiler_gnu
46156
46157f08_works=yes
46158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46159/* end confdefs.h.  */
46160
46161
46162#include <ISO_Fortran_binding.h>
46163
46164int foo_c(CFI_cdesc_t * a_desc, CFI_cdesc_t * b_desc)
46165{
46166	char * a_row = (char*) a_desc->base_addr;
46167	if (a_desc->type != CFI_type_int) { return 1; }
46168	if (a_desc->rank != 2) { return 2; }
46169	if (a_desc->dim[1].extent != b_desc->dim[0].extent) { return 3; }
46170	return 0;
46171}
46172
46173void test_assumed_rank_async_impl_c(CFI_cdesc_t * a_desc)
46174{
46175	return;
46176}
46177
46178_ACEOF
46179if ac_fn_c_try_compile "$LINENO"; then :
46180  mv conftest.$OBJEXT conftest1.$OBJEXT
46181else
46182  f08_works=no
46183fi
46184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46185ac_ext=f
46186ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
46187ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46188ac_compiler_gnu=$ac_cv_f77_compiler_gnu
46189
46190
46191ac_ext=${ac_fc_srcext-f}
46192ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
46193ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
46194ac_compiler_gnu=$ac_cv_fc_compiler_gnu
46195
46196
46197	if test -z "${pac_save_LIBS_nesting}" ; then
46198	   pac_save_LIBS_nesting=0
46199	fi
46200	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
46201	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
46202
46203LIBS="conftest1.$OBJEXT $LIBS"
46204cat > conftest.$ac_ext <<_ACEOF
46205
46206
46207MODULE F08TS_MODULE
46208IMPLICIT NONE
46209
46210! Test public, private, protected
46211REAL, PUBLIC       :: x
46212REAL, PRIVATE      :: y
46213LOGICAL, PROTECTED :: z
46214
46215! Test abstract
46216ABSTRACT INTERFACE
46217    SUBROUTINE user_func(x, y)
46218        INTEGER  :: x(*)
46219        REAL     :: y
46220    END SUBROUTINE
46221END INTERFACE
46222
46223! Test TS 29113 assumed type , assumed rank and bind(C)
46224INTERFACE
46225    FUNCTION FOO(A, B, C) &
46226        BIND(C,name="foo_c") RESULT(err)
46227        USE, intrinsic :: iso_c_binding, ONLY : c_int
46228        TYPE(*), DIMENSION(..) :: A, B, C
46229        INTEGER(c_int) :: err
46230    END FUNCTION FOO
46231END INTERFACE
46232
46233
46234! Test assumed-rank + asynchronous
46235INTERFACE TEST_ASSUMED_RANK_ASYNC
46236    SUBROUTINE TEST_ASSUMED_RANK_ASYNC_IMPL(BUF) &
46237        BIND(C,name="test_assumed_rank_async_impl_c")
46238        IMPLICIT NONE
46239        TYPE(*), DIMENSION(..), ASYNCHRONOUS :: BUF
46240    END SUBROUTINE TEST_ASSUMED_RANK_ASYNC_IMPL
46241END INTERFACE TEST_ASSUMED_RANK_ASYNC
46242
46243CONTAINS
46244
46245! Test TS 29113 asychronous attribute and optional
46246SUBROUTINE test1(buf, count, ierr)
46247    INTEGER, ASYNCHRONOUS :: buf(*)
46248    INTEGER               :: count
46249    INTEGER, OPTIONAL     :: ierr
46250END SUBROUTINE
46251
46252! Test procedure type and non-bind(c) x in C_FUNCLOC(x)
46253SUBROUTINE test2(func)
46254    USE, INTRINSIC :: ISO_C_BINDING, ONLY : C_FUNLOC, C_FUNPTR
46255    PROCEDURE(user_func)  :: func
46256    TYPE(C_FUNPTR) :: errhandler_fn
46257    errhandler_fn = C_FUNLOC(func)
46258END SUBROUTINE
46259
46260! Test intrinsic storage_size
46261SUBROUTINE test3(x, size)
46262    CHARACTER, DIMENSION(..) :: x
46263    INTEGER, INTENT(OUT) :: size
46264    size = storage_size(x)/8
46265END SUBROUTINE test3
46266
46267END MODULE
46268
46269!==============================================
46270PROGRAM MAIN
46271USE :: F08TS_MODULE, ONLY : FOO, TEST_ASSUMED_RANK_ASYNC
46272IMPLICIT NONE
46273
46274INTEGER, DIMENSION(4,4) :: A, B
46275INTEGER, DIMENSION(2,2) :: C
46276INTEGER                 :: ERRCODE
46277INTEGER, DIMENSION(10), ASYNCHRONOUS :: IAR
46278
46279! Test contiguous and non-contiguous array section passing
46280! and linkage with C code
46281ERRCODE = FOO(A(1:4:2, :), B(:, 2:4:2), C)
46282CALL TEST_ASSUMED_RANK_ASYNC(IAR(2:7))
46283
46284END PROGRAM
46285
46286_ACEOF
46287if ac_fn_fc_try_link "$LINENO"; then :
46288
46289else
46290  f08_works=no
46291fi
46292rm -f core conftest.err conftest.$ac_objext \
46293    conftest$ac_exeext conftest.$ac_ext
46294
46295	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
46296	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
46297	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
46298
46299ac_ext=f
46300ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
46301ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46302ac_compiler_gnu=$ac_cv_f77_compiler_gnu
46303
46304
46305if test "$f08_works" = "yes" ; then
46306   f08_works=yes
46307else
46308   f08_works=no
46309fi
46310rm -f conftest1.$OBJEXT F08TS_MODULE.* f08ts_module.*
46311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $f08_works" >&5
46312$as_echo "$f08_works" >&6; }
46313
46314fi
46315 if test "$f08_works" = "yes"; then
46316  BUILD_F08_BINDING_TRUE=
46317  BUILD_F08_BINDING_FALSE='#'
46318else
46319  BUILD_F08_BINDING_TRUE='#'
46320  BUILD_F08_BINDING_FALSE=
46321fi
46322
46323
46324if test "$f08_works" = "yes" ; then
46325    status_f08_works=1
46326    bindings="$bindings f08"
46327else
46328    status_f08_works=0
46329fi
46330
46331cat >>confdefs.h <<_ACEOF
46332#define HAVE_F08_BINDING $status_f08_works
46333_ACEOF
46334
46335
46336# Set defaults for these values so that the Makefile in src/bindings/f90
46337# is valid even if fc is not enabled (this is necessary for the
46338# distclean target)
46339MPIMODNAME=mpi
46340MPICONSTMODNAME=mpi_constants
46341MPISIZEOFMODNAME=mpi_sizeofs
46342MPIBASEMODNAME=mpi_base
46343
46344# F08 binding stuff
46345MPI_F08_LINK_CONSTANTS_NAME=mpi_f08_link_constants
46346PMPI_F08_NAME=pmpi_f08
46347MPI_F08_CALLBACKS_NAME=mpi_f08_callbacks
46348MPI_C_INTERFACE_NAME=mpi_c_interface
46349MPI_C_INTERFACE_GLUE_NAME=mpi_c_interface_glue
46350MPI_F08_TYPES_NAME=mpi_f08_types
46351MPI_C_INTERFACE_NOBUF_NAME=mpi_c_interface_nobuf
46352MPI_F08_COMPILE_CONSTANTS_NAME=mpi_f08_compile_constants
46353MPI_F08_NAME=mpi_f08
46354MPI_C_INTERFACE_TYPES_NAME=mpi_c_interface_types
46355MPI_C_INTERFACE_CDESC_NAME=mpi_c_interface_cdesc
46356
46357if test "$enable_fc" = "yes" ; then
46358    # determine shared library flags for FC
46359    fc_shlib_conf=src/env/fc_shlib.conf
46360
46361
46362
46363
46364# It appears that the libtool dynamic linking strategy on Darwin is this:
46365# 1. Link all shared libs with "-install_name /full/path/to/libfoo.dylib"
46366# 2. Don't do anything special when linking programs, since it seems that the
46367# darwin dynamic linker will always use the "install_name" field from the lib
46368# that was found at program link-time.  (CONFIRMED) This is in opposition to
46369# the way that Linux does it, where specifying a "-rpath" argument at program
46370# link-time is important.
46371#
46372# There is an alternative darwin strategy for versions
46373# >= 10.5, see this: http://www.cmake.org/pipermail/cmake/2010-August/038970.html
46374# (goodell@ 2011-06-17)
46375
46376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library (esp. rpath) characteristics of FC" >&5
46377$as_echo_n "checking for shared library (esp. rpath) characteristics of FC... " >&6; }
46378
46379# unfortunately, config.rpath expects the compiler in question is always CC and
46380# uses several other environment variables as input
46381
46382	if test -z "${pac_save_CC_nesting}" ; then
46383	   pac_save_CC_nesting=0
46384	fi
46385	eval pac_save_CC_${pac_save_CC_nesting}='"$CC"'
46386	pac_save_CC_nesting=`expr ${pac_save_CC_nesting} + 1`
46387
46388
46389	if test -z "${pac_save_GCC_nesting}" ; then
46390	   pac_save_GCC_nesting=0
46391	fi
46392	eval pac_save_GCC_${pac_save_GCC_nesting}='"$GCC"'
46393	pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} + 1`
46394
46395
46396	if test -z "${pac_save_LD_nesting}" ; then
46397	   pac_save_LD_nesting=0
46398	fi
46399	eval pac_save_LD_${pac_save_LD_nesting}='"$LD"'
46400	pac_save_LD_nesting=`expr ${pac_save_LD_nesting} + 1`
46401
46402# these two don't currently get overridden, but we push/pop them for safety in
46403# case they do in the future
46404
46405	if test -z "${pac_save_LDFLAGS_nesting}" ; then
46406	   pac_save_LDFLAGS_nesting=0
46407	fi
46408	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"'
46409	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1`
46410
46411
46412	if test -z "${pac_save_with_gnu_ld_nesting}" ; then
46413	   pac_save_with_gnu_ld_nesting=0
46414	fi
46415	eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}='"$with_gnu_ld"'
46416	pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} + 1`
46417
46418
46419# set the temporary override values (if any)
46420CC="$FC"
46421     GCC="$GCC_FC"
46422     LD="$LD_FC"
46423
46424# ensure the values are available to the script
46425export CC
46426export GCC
46427export LDFLAGS
46428export LD
46429export with_gnu_ld
46430
46431if $ac_aux_dir/config.rpath "$host" > $fc_shlib_conf; then :
46432  :
46433else
46434  as_fn_error $? "unable to execute $ac_aux_dir/config.rpath" "$LINENO" 5
46435fi
46436
46437C_LINKPATH_SHL=""
46438
46439
46440rm -f conftest.out
46441
46442# restore the old values
46443
46444	pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} - 1`
46445	eval with_gnu_ld="\$pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}"
46446	eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}=""
46447
46448
46449	pac_save_LD_nesting=`expr ${pac_save_LD_nesting} - 1`
46450	eval LD="\$pac_save_LD_${pac_save_LD_nesting}"
46451	eval pac_save_LD_${pac_save_LD_nesting}=""
46452
46453
46454	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1`
46455	eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}"
46456	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}=""
46457
46458
46459	pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} - 1`
46460	eval GCC="\$pac_save_GCC_${pac_save_GCC_nesting}"
46461	eval pac_save_GCC_${pac_save_GCC_nesting}=""
46462
46463
46464	pac_save_CC_nesting=`expr ${pac_save_CC_nesting} - 1`
46465	eval CC="\$pac_save_CC_${pac_save_CC_nesting}"
46466	eval pac_save_CC_${pac_save_CC_nesting}=""
46467
46468
46469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done (results in $fc_shlib_conf)" >&5
46470$as_echo "done (results in $fc_shlib_conf)" >&6; }
46471
46472
46473
46474    # Determine characteristics of the Fortran 90 compiler
46475    # Find a Fortran 90 compiler.  Sets FC
46476    # Work around bug in autoconf that adds -g to FCFLAGS
46477    saveFCFLAGS="$FCFLAGS"
46478
46479
46480ac_ext=${ac_fc_srcext-f}
46481ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
46482ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
46483ac_compiler_gnu=$ac_cv_fc_compiler_gnu
46484
46485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) works" >&5
46486$as_echo_n "checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) works... " >&6; }
46487cat > conftest.$ac_ext <<_ACEOF
46488
46489
46490        program conftest
46491        integer, dimension(10) :: n
46492        end
46493
46494
46495_ACEOF
46496if ac_fn_fc_try_link "$LINENO"; then :
46497
46498    pac_cv_prog_fc_works="yes"
46499    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_fc_works" >&5
46500$as_echo "$pac_cv_prog_fc_works" >&6; }
46501    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) is a cross-compiler" >&5
46502$as_echo_n "checking whether the Fortran 90 compiler ($FC $FCFLAGS $LDFLAGS) is a cross-compiler... " >&6; }
46503    if test "$cross_compiling" = yes; then :
46504  pac_cv_prog_fc_cross="$cross_compiling"
46505
46506else
46507  if ac_fn_fc_try_run "$LINENO"; then :
46508  pac_cv_prog_fc_cross="no"
46509else
46510  pac_cv_prog_fc_cross="yes"
46511fi
46512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
46513  conftest.$ac_objext conftest.beam
46514fi
46515
46516    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_fc_cross" >&5
46517$as_echo "$pac_cv_prog_fc_cross" >&6; }
46518
46519else
46520
46521    pac_cv_prog_fc_works="no"
46522    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: installation or configuration problem: Fortran 90 compiler cannot create executables." >&5
46523$as_echo "$as_me: WARNING: installation or configuration problem: Fortran 90 compiler cannot create executables." >&2;}
46524
46525fi
46526rm -f core conftest.err conftest.$ac_objext \
46527    conftest$ac_exeext conftest.$ac_ext
46528# The intel compiler sometimes generates these work.pc and .pcl files
46529rm -f work.pc work.pcl
46530ac_ext=f
46531ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
46532ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46533ac_compiler_gnu=$ac_cv_f77_compiler_gnu
46534
46535
46536    FCFLAGS=$saveFCFLAGS
46537    if test "$pac_cv_prog_fc_works" = no ; then
46538        # Reject this compiler
46539        if test "$FC" != "no" ; then
46540            fc_rejected=yes
46541            oldFC="$FC"
46542            FC="no"
46543        fi
46544    fi
46545
46546    # Determine the extension for Fortran 90 files (it isn't always .f90)
46547    FCEXT=$ac_fc_srcext
46548
46549
46550    if test "$FC" = "no" ; then
46551        if test "$fc_rejected" = "yes" ; then
46552            as_fn_error $? "Could not find a usable Fortran 90 compiler.  The compiler $oldFC may be incompatible with the Fortran 77 compiler $F77; check the output of configure and consult the installation manuals" "$LINENO" 5
46553        else
46554            as_fn_error $? "Could not find a usable Fortran 90 compiler." "$LINENO" 5
46555        fi
46556    fi
46557
46558    # Find the extension that this compiler uses for modules.
46559    # Sets FCMODEXT (and adds it to the list substed)
46560    # Sets FCMODINCFLAG (and adds it to the list substed)
46561
46562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module extension" >&5
46563$as_echo_n "checking for Fortran 90 module extension... " >&6; }
46564if ${pac_cv_fc_module_ext+:} false; then :
46565  $as_echo_n "(cached) " >&6
46566else
46567
46568pac_cv_fc_module_case="unknown"
46569ac_ext=${ac_fc_srcext-f}
46570ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
46571ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
46572ac_compiler_gnu=$ac_cv_fc_compiler_gnu
46573
46574cat > conftest.$ac_ext <<_ACEOF
46575
46576
46577        module conftest
46578        integer n
46579        parameter (n=1)
46580        end module conftest
46581
46582
46583_ACEOF
46584if ac_fn_fc_try_compile "$LINENO"; then :
46585
46586    # Look for module name
46587    # First, try to find known names.  This avoids confusion caused by
46588    # additional files (like <name>.stb created by some versions of pgf90)
46589    # Early versions of the Intel compiler used d as the module extension;
46590    # we include that just to finish the test as early as possible.
46591    for name in conftest CONFTEST ; do
46592        for ext in mod MOD d ; do
46593            if test -s $name.$ext ; then
46594                if test $name = conftest ; then
46595                    pac_cv_fc_module_case=lower
46596                else
46597                    pac_cv_fc_module_case=upper
46598                fi
46599                pac_cv_fc_module_ext=$ext
46600                pac_MOD=$ext
46601                break
46602            fi
46603        done
46604        if test -n "$pac_cv_fc_module_ext" ; then break ; fi
46605    done
46606    if test -z "$pac_MOD" ; then
46607        # The test on .err is needed for Cray Fortran.
46608        pac_MOD=`ls conftest.* 2>&1 | grep -v conftest.${ac_fc_srcext} | grep -v conftest.o | grep -v conftest.err`
46609        pac_MOD=`echo $pac_MOD | sed -e 's/conftest\.//g'`
46610        pac_cv_fc_module_case="lower"
46611        if test "X$pac_MOD" = "X" ; then
46612            pac_MOD=`ls CONFTEST* 2>&1 | grep -v CONFTEST.${ac_fc_srcext} | grep -v CONFTEST.o | grep -v CONFTEST.err`
46613            pac_MOD=`echo $pac_MOD | sed -e 's/CONFTEST\.//g'`
46614            if test -n "$pac_MOD" -a -s "CONFTEST.$pac_MOD" ; then
46615                pac_cv_fc_module_case="upper"
46616            else
46617                # Clear because we must have gotten an error message
46618                pac_MOD=""
46619            fi
46620        fi
46621        if test -z "$pac_MOD" ; then
46622            pac_cv_fc_module_ext="unknown"
46623        else
46624            pac_cv_fc_module_ext=$pac_MOD
46625        fi
46626    fi
46627
46628else
46629
46630    pac_cv_fc_module_ext="unknown"
46631
46632fi
46633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46634
46635if test "$pac_cv_fc_module_ext" = "unknown" ; then
46636    # Try again, but with an -em option.  Abbreviated, because we're
46637    # just looking for the Cray option
46638    saveFCFLAGS=$FCFLAGS
46639    FCFLAGS="$FCFLAGS -em"
46640    cat > conftest.$ac_ext <<_ACEOF
46641
46642
46643        module conftest
46644        integer n
46645        parameter (n=1)
46646        end module conftest
46647
46648
46649_ACEOF
46650if ac_fn_fc_try_compile "$LINENO"; then :
46651
46652    if test -s conftest.mod ; then
46653        pac_cv_fc_module_ext="mod"
46654        pac_cv_fc_module_case="lower"
46655    elif test -s CONFTEST.mod ; then
46656        pac_cv_fc_module_ext="mod"
46657        pac_cv_fc_module_case="upper"
46658    fi
46659
46660else
46661
46662    :
46663    # do nothing - already have the unknown default value
46664
46665fi
46666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46667    if test "$pac_cv_fc_module_ext" = "unknown" ; then
46668        # The additional command line option did not help - restore
46669        # the original flags.
46670        FCFLAGS=$saveFCFLAGS
46671    fi
46672fi
46673ac_ext=f
46674ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
46675ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46676ac_compiler_gnu=$ac_cv_f77_compiler_gnu
46677
46678
46679fi
46680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fc_module_ext" >&5
46681$as_echo "$pac_cv_fc_module_ext" >&6; }
46682#
46683
46684if test "$pac_cv_fc_module_ext" = "unknown" ; then
46685    :
46686else
46687    FCMODEXT=$pac_MOD
46688fi
46689
46690
46691
46692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module include flag" >&5
46693$as_echo_n "checking for Fortran 90 module include flag... " >&6; }
46694if ${pac_cv_fc_module_incflag+:} false; then :
46695  $as_echo_n "(cached) " >&6
46696else
46697
46698ac_ext=${ac_fc_srcext-f}
46699ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
46700ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
46701ac_compiler_gnu=$ac_cv_fc_compiler_gnu
46702
46703cat > conftest.$ac_ext <<_ACEOF
46704
46705
46706        module conf
46707        integer n
46708        parameter (n=1)
46709        end module conf
46710
46711
46712_ACEOF
46713pac_madedir="no"
46714if test ! -d conf ; then mkdir conftestdir ; pac_madedir="yes"; fi
46715if test "$pac_cv_fc_module_case" = "upper" ; then
46716    pac_module="CONF.$pac_cv_fc_module_ext"
46717else
46718    pac_module="conf.$pac_cv_fc_module_ext"
46719fi
46720if ac_fn_fc_try_compile "$LINENO"; then :
46721
46722    if test -s "$pac_module" ; then
46723        mv $pac_module conftestdir
46724        # Remove any temporary files, and hide the work.pc file
46725        # (if the compiler generates them)
46726        if test -f work.pc ; then
46727            mv -f work.pc conftest.pc
46728        fi
46729        rm -f work.pcl
46730    else
46731        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build a simple Fortran 90 module" >&5
46732$as_echo "$as_me: WARNING: Unable to build a simple Fortran 90 module" >&2;}
46733        # echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
46734        # cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD
46735        $as_echo "$as_me: failed program was:" >&5
46736sed 's/^/| /' conftest.$ac_ext >&5
46737
46738    fi
46739
46740fi
46741rm -f core conftest.err conftest.$ac_objext
46742# Remove the conftest* after AC_LANG_CONFTEST
46743rm -rf conftest.dSYM
46744rm -f conftest.$ac_ext
46745
46746cat > conftest.$ac_ext <<_ACEOF
46747      program main
46748use conf
46749      end
46750_ACEOF
46751
46752# Save the original FCFLAGS
46753saved_FCFLAGS="$FCFLAGS"
46754pac_cv_fc_module_incflag=""
46755for inchdr in '-I' '-M' '-p' ; do
46756    FCFLAGS="$saved_FCFLAGS ${inchdr}conftestdir"
46757    if ac_fn_fc_try_compile "$LINENO"; then :
46758  pac_cv_fc_module_incflag="$inchdr" ; break
46759fi
46760rm -f core conftest.err conftest.$ac_objext
46761done
46762if test "X$pac_cv_fc_module_incflag" = "X" ; then
46763    if test -s conftest.pc ; then
46764        mv conftest.pc conftestdir/mpimod.pc
46765        echo "mpimod.pc" > conftestdir/mpimod.pcl
46766        echo "`pwd`/conftestdir/mpimod.pc" >> conftestdir/mpimod.pcl
46767        inchdr='-cl,'
46768        FCFLAGS="$save_FCFLAGS ${inchdr}conftestdir"
46769        if ac_fn_fc_try_compile "$LINENO"; then :
46770  pac_fcompile_ok=yes
46771else
46772  pac_fcompile_ok=no
46773fi
46774rm -f core conftest.err conftest.$ac_objext
46775        if test "$pac_fcompile_ok" = "yes" ; then
46776            pac_cv_fc_module_incflag="$inchdr"
46777            # Not quite right; see the comments that follow
46778            { $as_echo "$as_me:${as_lineno-$LINENO}: result: -cl,filename where filename contains a list of files and directories" >&5
46779$as_echo "-cl,filename where filename contains a list of files and directories" >&6; }
46780            FC_WORK_FILES_ARG="-cl,mpimod.pcl"
46781            FCMODINCSPEC="-cl,<dir>/<file>mod.pcl"
46782        else
46783            # The version of the Intel compiler that I have refuses to let
46784            # you put the "work catalog" list anywhere but the current directory.
46785            pac_cv_fc_module_incflag="Unavailable!"
46786        fi
46787    else
46788        # Early versions of the Intel ifc compiler required a *file*
46789        # containing the names of files that contained the names of the
46790        #
46791        # -cl,filename.pcl
46792        #   filename.pcl contains
46793        #     fullpathname.pc
46794        # The "fullpathname.pc" is generated, I believe, when a module is
46795        # compiled.
46796        # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
46797        # specified, work.pcl and work.pc are created.  However, if you specify
46798        # a file, it must contain the name of a file ending in .pc .  Ugh!
46799        pac_cv_fc_module_incflag="unknown"
46800    fi
46801fi
46802# Restore the original FCFLAGS
46803FCFLAGS="$saved_FCFLAGS"
46804if test "$pac_madedir" = "yes" ; then rm -rf conftestdir ; fi
46805# Remove the conftest* after AC_LANG_CONFTEST
46806# This is needed for Mac OSX 10.5
46807rm -rf conftest.dSYM
46808rm -f conftest*
46809ac_ext=f
46810ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
46811ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46812ac_compiler_gnu=$ac_cv_f77_compiler_gnu
46813
46814
46815fi
46816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fc_module_incflag" >&5
46817$as_echo "$pac_cv_fc_module_incflag" >&6; }
46818
46819
46820FCMODINCFLAG=$pac_cv_fc_module_incflag
46821
46822
46823
46824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 module output directory flag" >&5
46825$as_echo_n "checking for Fortran 90 module output directory flag... " >&6; }
46826if ${pac_cv_fc_module_outflag+:} false; then :
46827  $as_echo_n "(cached) " >&6
46828else
46829
46830ac_ext=${ac_fc_srcext-f}
46831ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
46832ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
46833ac_compiler_gnu=$ac_cv_fc_compiler_gnu
46834
46835cat > conftest.$ac_ext <<_ACEOF
46836
46837
46838        module conf
46839        integer n
46840        parameter (n=1)
46841        end module conf
46842
46843
46844_ACEOF
46845pac_madedir="no"
46846if test ! -d conf ; then mkdir conftestdir ; pac_madedir="yes"; fi
46847if test "$pac_cv_fc_module_case" = "upper" ; then
46848    pac_module="CONF.$pac_cv_fc_module_ext"
46849else
46850    pac_module="conf.$pac_cv_fc_module_ext"
46851fi
46852
46853# check base case that the compiler can create modules and that they endup in
46854# the current directory
46855if ac_fn_fc_try_compile "$LINENO"; then :
46856
46857    if test -s "$pac_module" ; then
46858        rm -f "$pac_module"
46859        # Remove any temporary files, and hide the work.pc file
46860        # (if the compiler generates them)
46861        if test -f work.pc ; then
46862            mv -f work.pc conftest.pc
46863        fi
46864        rm -f work.pcl
46865    else
46866        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to build a simple Fortran 90 module" >&5
46867$as_echo "$as_me: WARNING: Unable to build a simple Fortran 90 module" >&2;}
46868        # echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
46869        # cat conftest.$ac_ext >&AS_MESSAGE_LOG_FD
46870        $as_echo "$as_me: failed program was:" >&5
46871sed 's/^/| /' conftest.$ac_ext >&5
46872
46873    fi
46874
46875fi
46876rm -f core conftest.err conftest.$ac_objext
46877
46878# known flags for reasonably recent versions of various f90 compilers:
46879#   gfortran -J${dir}
46880#   xlf -qmoddir=${dir}
46881#   pgf90 -module ${dir}
46882#   ifort -module ${dir}
46883#   nagfor -mdir ${dir}
46884#   ftn -J ${dir}              ## the Cray fortran compiler
46885#   ftn -em -J${dir}           ## the Cray fortran compiler (crayftn, in 2013)
46886#      For this above case, we must have added -em to FCFLAGS, since other
46887#      module tests do not always use the module output flag.  See
46888#      FC_MODULE_EXT , where this is determined.
46889#   f95 -YMOD_OUT_DIR=${dir}   ## the Absoft fortran compiler
46890#   lf95 -M ${dir}             ## the Lahey/Fujitsu fortran compiler
46891#   f90 -moddir=${dir}         ## the Sun f90 compiler
46892#   g95 -fmod=${dir}
46893#
46894# If there are any compilers still out there that are totally brain-dead and
46895# don't support an output directory flag, we can write a wrapper script to tell
46896# users to use.  Alternatively they can use an older version of MPICH.
46897
46898pac_cv_fc_module_outflag=
46899for mod_flag in '-J' '-J ' '-qmoddir=' '-module ' '-YMOD_OUT_DIR=' '-mdir ' '-moddir=' '-fmod=' '-M '; do
46900    rm -f conftestdir/NONEXISTENT conftestdir/*
46901
46902	if test -z "${pac_save_FCFLAGS_nesting}" ; then
46903	   pac_save_FCFLAGS_nesting=0
46904	fi
46905	eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}='"$FCFLAGS"'
46906	pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} + 1`
46907
46908    FCFLAGS="$FCFLAGS ${mod_flag}conftestdir"
46909    if ac_fn_fc_try_compile "$LINENO"; then :
46910  pac_build_success=yes
46911else
46912  pac_build_success=no
46913fi
46914rm -f core conftest.err conftest.$ac_objext
46915    if test "X$pac_build_success" = Xyes; then :
46916  if test -s "conftestdir/${pac_module}"; then :
46917  pac_cv_fc_module_outflag="$mod_flag"
46918fi
46919fi
46920
46921	pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} - 1`
46922	eval FCFLAGS="\$pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}"
46923	eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}=""
46924
46925    if test "X$pac_cv_fc_module_outflag" = X; then :
46926  :
46927else
46928  break
46929fi
46930done
46931
46932# Remove the conftest* after AC_LANG_CONFTEST
46933rm -rf conftest.dSYM
46934rm -f conftest.$ac_ext
46935
46936if test "$pac_madedir" = "yes" ; then rm -rf conftestdir ; fi
46937{ pac_madedir=; unset pac_madedir;}
46938# Remove the conftest* after AC_LANG_CONFTEST
46939# This is needed for Mac OSX 10.5
46940rm -rf conftest.dSYM
46941rm -f conftest*
46942ac_ext=f
46943ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
46944ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46945ac_compiler_gnu=$ac_cv_f77_compiler_gnu
46946
46947
46948fi
46949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fc_module_outflag" >&5
46950$as_echo "$pac_cv_fc_module_outflag" >&6; }
46951FCMODOUTFLAG=$pac_cv_fc_module_outflag
46952
46953
46954
46955
46956    if test -z "$FCMODOUTFLAG" ; then
46957        as_fn_error $? "FCMODOUTFLAG could not be determined but is critical for the current Fortran build system" "$LINENO" 5
46958    fi
46959
46960    if test "$pac_cv_fc_module_case" = "upper" ; then
46961        MPIMODNAME=MPI
46962        MPICONSTMODNAME=MPI_CONSTANTS
46963	MPISIZEOFMODNAME=MPI_SIZEOFS
46964	MPIBASEMODNAME=MPI_BASE
46965        MPI_F08_NAME=MPI_F08
46966        MPI_F08_LINK_CONSTANTS_NAME=MPI_F08_LINK_CONSTANTS
46967        MPI_F08_CALLBACKS_NAME=MPI_F08_CALLBACKS
46968        MPI_F08_TYPES_NAME=MPI_F08_TYPES
46969        MPI_F08_COMPILE_CONSTANTS_NAME=MPI_F08_COMPILE_CONSTANTS
46970        PMPI_F08_NAME=PMPI_F08
46971        MPI_C_INTERFACE_NAME=MPI_C_INTERFACE
46972        MPI_C_INTERFACE_NOBUF_NAME=MPI_C_INTERFACE_NOBUF
46973        MPI_C_INTERFACE_GLUE_NAME=MPI_C_INTERFACE_GLUE
46974        MPI_C_INTERFACE_TYPES_NAME=MPI_C_INTERFACE_TYPES
46975        MPI_C_INTERFACE_CDESC_NAME=MPI_C_INTERFACE_CDESC
46976    else
46977        MPIMODNAME=mpi
46978        MPICONSTMODNAME=mpi_constants
46979	MPISIZEOFMODNAME=mpi_sizeofs
46980	MPIBASEMODNAME=mpi_base
46981        MPI_F08_NAME=mpi_f08
46982        MPI_F08_LINK_CONSTANTS_NAME=mpi_f08_link_constants
46983        MPI_F08_CALLBACKS_NAME=mpi_f08_callbacks
46984        MPI_F08_TYPES_NAME=mpi_f08_types
46985        MPI_F08_COMPILE_CONSTANTS_NAME=mpi_f08_compile_constants
46986        PMPI_F08_NAME=pmpi_f08
46987        MPI_C_INTERFACE_NAME=mpi_c_interface
46988        MPI_C_INTERFACE_NOBUF_NAME=mpi_c_interface_nobuf
46989        MPI_C_INTERFACE_GLUE_NAME=mpi_c_interface_glue
46990        MPI_C_INTERFACE_TYPES_NAME=mpi_c_interface_types
46991        MPI_C_INTERFACE_CDESC_NAME=mpi_c_interface_cdesc
46992    fi
46993
46994
46995
46996
46997
46998
46999
47000
47001
47002
47003
47004
47005
47006
47007
47008
47009
47010    # Assume that all Fortran 90 compilers accept -I for include directories
47011    FCINC=-I
47012
47013    FCINCFLAG=-I
47014
47015
47016    # Check if $MPI_DEFAULT_FCOPTS is valid with $F90
47017    if test -n "$MPI_DEFAULT_FCOPTS" ; then
47018        if test "$enable_check_compiler_flags" = "yes" ; then
47019
47020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 90 compiler accepts option $MPI_DEFAULT_FCOPTS" >&5
47021$as_echo_n "checking whether Fortran 90 compiler accepts option $MPI_DEFAULT_FCOPTS... " >&6; }
47022pac_opt="$MPI_DEFAULT_FCOPTS"
47023ac_ext=${ac_fc_srcext-f}
47024ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
47025ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
47026ac_compiler_gnu=$ac_cv_fc_compiler_gnu
47027
47028FCFLAGS_orig="$FCFLAGS"
47029FCFLAGS_opt="$pac_opt $FCFLAGS"
47030pac_result="unknown"
47031
47032cat > conftest.$ac_ext <<_ACEOF
47033      program main
47034
47035      end
47036_ACEOF
47037FCFLAGS="$FCFLAGS_orig"
47038rm -f pac_test1.log
47039
47040
47041# START of PUSHVAL
47042
47043if ${pac_stk_ac_link_level+:} false; then :
47044
47045    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
47046
47047else
47048
47049    pac_stk_ac_link_level=0
47050
47051fi
47052eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
47053if test "x$pac_stk_ac_link_level" = x0; then :
47054
47055        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
47056
47057fi
47058
47059        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
47060
47061
47062# END of PUSHVAL
47063
47064ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`"
47065if ac_fn_fc_try_link "$LINENO"; then :
47066
47067
47068    FCFLAGS="$FCFLAGS_opt"
47069    rm -f pac_test2.log
47070
47071
47072# START of PUSHVAL
47073
47074if ${pac_stk_ac_link_level+:} false; then :
47075
47076    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
47077
47078else
47079
47080    pac_stk_ac_link_level=0
47081
47082fi
47083eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
47084if test "x$pac_stk_ac_link_level" = x0; then :
47085
47086        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
47087
47088fi
47089
47090        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
47091
47092
47093# END of PUSHVAL
47094
47095ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`"
47096if ac_fn_fc_try_link "$LINENO"; then :
47097
47098
47099
47100pac_TESTLOG="pac_test.log"
47101rm -f $pac_TESTLOG
47102
47103if
47104{ $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5
47105  (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5
47106  ac_status=$?
47107  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47108  test $ac_status = 0; }; then :
47109
47110
47111    pac_result=yes
47112
47113
47114else
47115
47116    $as_echo "$as_me: program exited with status $ac_status" >&5
47117
47118        (exit $ac_status)
47119
47120    $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5
47121    cat $pac_TESTLOG >&5
47122    pac_result=no
47123
47124
47125
47126
47127fi
47128
47129rm -f $pac_TESTLOG
47130
47131
47132
47133else
47134
47135
47136        pac_result=no
47137
47138
47139fi
47140rm -f core conftest.err conftest.$ac_objext \
47141    conftest$ac_exeext
47142
47143# START of POPVAL
47144
47145if ${pac_stk_ac_link_level+:} false; then :
47146
47147    if test "x$pac_stk_ac_link_level" = x-1; then :
47148
47149        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
47150$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
47151
47152else
47153
47154                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
47155                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
47156
47157fi
47158
47159else
47160
47161    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
47162$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
47163
47164fi
47165
47166# END of POPVAL
47167
47168
47169
47170
47171else
47172
47173
47174    pac_result=no
47175
47176
47177fi
47178rm -f core conftest.err conftest.$ac_objext \
47179    conftest$ac_exeext
47180
47181# START of POPVAL
47182
47183if ${pac_stk_ac_link_level+:} false; then :
47184
47185    if test "x$pac_stk_ac_link_level" = x-1; then :
47186
47187        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
47188$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
47189
47190else
47191
47192                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
47193                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
47194
47195fi
47196
47197else
47198
47199    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
47200$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
47201
47202fi
47203
47204# END of POPVAL
47205
47206
47207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
47208$as_echo "$pac_result" >&6; }
47209rm -f conftest.$ac_ext
47210#
47211if test "$pac_result" = "yes" ; then
47212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5
47213$as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; }
47214    pac_result=unknown
47215    FCFLAGS="$FCFLAGS_orig"
47216    rm -f pac_test3.log
47217
47218
47219# START of PUSHVAL
47220
47221if ${pac_stk_ac_compile_level+:} false; then :
47222
47223    as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val
47224
47225else
47226
47227    pac_stk_ac_compile_level=0
47228
47229fi
47230eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile"
47231if test "x$pac_stk_ac_compile_level" = x0; then :
47232
47233        eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
47234
47235fi
47236
47237        eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
47238
47239
47240# END of PUSHVAL
47241
47242ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`"
47243cat > conftest.$ac_ext <<_ACEOF
47244
47245
47246            subroutine try()
47247            end
47248
47249
47250_ACEOF
47251if ac_fn_fc_try_compile "$LINENO"; then :
47252
47253
47254
47255{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
47256  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
47257  ac_status=$?
47258  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47259  test $ac_status = 0; }
47260        saved_LIBS="$LIBS"
47261        LIBS="pac_conftest.$OBJEXT $LIBS"
47262
47263        FCFLAGS="$FCFLAGS_opt"
47264        rm -f pac_test4.log
47265
47266
47267# START of PUSHVAL
47268
47269if ${pac_stk_ac_link_level+:} false; then :
47270
47271    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
47272
47273else
47274
47275    pac_stk_ac_link_level=0
47276
47277fi
47278eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
47279if test "x$pac_stk_ac_link_level" = x0; then :
47280
47281        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
47282
47283fi
47284
47285        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
47286
47287
47288# END of PUSHVAL
47289
47290ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`"
47291cat > conftest.$ac_ext <<_ACEOF
47292      program main
47293
47294      end
47295_ACEOF
47296if ac_fn_fc_try_link "$LINENO"; then :
47297
47298
47299
47300pac_TESTLOG="pac_test.log"
47301rm -f $pac_TESTLOG
47302
47303if
47304{ $as_echo "$as_me:$LINENO: diff -b pac_test2.log pac_test4.log > $pac_TESTLOG" >&5
47305  (eval diff -b pac_test2.log pac_test4.log > $pac_TESTLOG) 2>&5
47306  ac_status=$?
47307  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47308  test $ac_status = 0; }; then :
47309
47310
47311    pac_result=yes
47312
47313
47314else
47315
47316    $as_echo "$as_me: program exited with status $ac_status" >&5
47317
47318        (exit $ac_status)
47319
47320    $as_echo "*** diff -b pac_test2.log pac_test4.log :" >&5
47321    cat $pac_TESTLOG >&5
47322    pac_result=no
47323
47324
47325
47326
47327fi
47328
47329rm -f $pac_TESTLOG
47330
47331
47332
47333else
47334
47335
47336            pac_result=no
47337
47338
47339fi
47340rm -f core conftest.err conftest.$ac_objext \
47341    conftest$ac_exeext conftest.$ac_ext
47342
47343# START of POPVAL
47344
47345if ${pac_stk_ac_link_level+:} false; then :
47346
47347    if test "x$pac_stk_ac_link_level" = x-1; then :
47348
47349        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
47350$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
47351
47352else
47353
47354                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
47355                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
47356
47357fi
47358
47359else
47360
47361    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
47362$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
47363
47364fi
47365
47366# END of POPVAL
47367
47368
47369        LIBS="$saved_LIBS"
47370        rm -f pac_conftest.$OBJEXT
47371
47372
47373else
47374
47375
47376        pac_result=no
47377
47378
47379fi
47380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47381
47382# START of POPVAL
47383
47384if ${pac_stk_ac_compile_level+:} false; then :
47385
47386    if test "x$pac_stk_ac_compile_level" = x-1; then :
47387
47388        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5
47389$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;}
47390
47391else
47392
47393                eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
47394                as_fn_arith  $pac_stk_ac_compile_level - 1  && pac_stk_ac_compile_level=$as_val
47395
47396fi
47397
47398else
47399
47400    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5
47401$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;}
47402
47403fi
47404
47405# END of POPVAL
47406
47407
47408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
47409$as_echo "$pac_result" >&6; }
47410    rm -f pac_test3.log pac_test4.log
47411fi
47412rm -f pac_test1.log pac_test2.log
47413
47414FCFLAGS="$FCFLAGS_orig"
47415if test "$pac_result" = "yes" ; then
47416
47417            FCFLAGS="$FCFLAGS $MPI_DEFAULT_FCOPTS"
47418
47419else
47420     :
47421fi
47422ac_ext=f
47423ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
47424ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47425ac_compiler_gnu=$ac_cv_f77_compiler_gnu
47426
47427
47428        else
47429            FCFLAGS="$FCFLAGS $MPI_DEFAULT_FCOPTS"
47430        fi
47431    fi
47432
47433    # Most systems allow the Fortran compiler to process .F and .F90 files
47434    # using the C preprocessor.  However, some systems either do not
47435    # allow this or have serious bugs (OSF Fortran compilers have a bug
47436    # that generates an error message from cpp).  The following test
47437    # checks to see if .F works, and if not, whether "cpp -P -C" can be used
47438
47439
47440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 90 compiler processes .F90 files with C preprocessor" >&5
47441$as_echo_n "checking whether Fortran 90 compiler processes .F90 files with C preprocessor... " >&6; }
47442ac_ext=${ac_fc_srcext-f}
47443ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
47444ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
47445ac_compiler_gnu=$ac_cv_fc_compiler_gnu
47446
47447saved_fc_ext=${ac_ext}
47448ac_ext="F90"
47449saved_FCFLAGS="$FCFLAGS"
47450FCFLAGS="$FCFLAGS $CPPFLAGS"
47451cat > conftest.$ac_ext <<_ACEOF
47452
47453
47454        program main
47455#define ASIZE 10
47456        integer a(ASIZE)
47457        end
47458
47459
47460_ACEOF
47461if ac_fn_fc_try_compile "$LINENO"; then :
47462
47463    pac_cv_fc_accepts_F90=yes
47464    FCCPP=""
47465
47466else
47467
47468    pac_cv_fc_accepts_F90=no
47469    FCCPP="false"
47470
47471fi
47472rm -f core conftest.err conftest.$ac_objext
47473# Restore Fortran's ac_ext but not FCFLAGS
47474ac_ext="$saved_fc_ext"
47475
47476if test "$pac_cv_fc_accepts_F90" != "yes" ; then
47477    pac_cpp_fc="$ac_cpp -C -P conftest.F90 > conftest.$ac_ext"
47478
47479pac_TESTLOG="pac_test.log"
47480rm -f $pac_TESTLOG
47481
47482if
47483{ $as_echo "$as_me:$LINENO: $pac_cpp_fc > $pac_TESTLOG" >&5
47484  (eval $pac_cpp_fc > $pac_TESTLOG) 2>&5
47485  ac_status=$?
47486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47487  test $ac_status = 0; }; then :
47488
47489
47490
47491        if test -s conftest.${ac_ext} ; then
47492            if ac_fn_fc_try_compile "$LINENO"; then :
47493
47494                pac_cv_fc_accepts_F90="no, use cpp"
47495                FCCPP="$CPP -C -P"
47496
47497fi
47498rm -f core conftest.err conftest.$ac_objext
47499            rm -f conftest.${ac_ext}
47500        fi
47501
47502
47503
47504else
47505
47506    $as_echo "$as_me: program exited with status $ac_status" >&5
47507
47508        (exit $ac_status)
47509
47510    $as_echo "*** $pac_cpp_fc :" >&5
47511    cat $pac_TESTLOG >&5
47512
47513
47514
47515
47516
47517fi
47518
47519rm -f $pac_TESTLOG
47520
47521fi
47522FCFLAGS="$saved_FCFLAGS"
47523rm -f conftest.F90
47524ac_ext=f
47525ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
47526ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47527ac_compiler_gnu=$ac_cv_f77_compiler_gnu
47528
47529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fc_accepts_F90" >&5
47530$as_echo "$pac_cv_fc_accepts_F90" >&6; }
47531
47532
47533
47534    # Check whether additional libraries are needed when linking with C
47535
47536
47537# To simply the code in the cache_check macro, chose the routine name
47538# first, in case we need it
47539confname=conf1_
47540case "$pac_cv_prog_f77_name_mangle" in
47541    "lower underscore")       confname=conf1_  ;;
47542    "upper stdcall")          confname=CONF1   ;;
47543    upper)                    confname=CONF1   ;;
47544    "lower doubleunderscore") confname=conf1_  ;;
47545    lower)                    confname=conf1   ;;
47546    "mixed underscore")       confname=conf1_  ;;
47547    mixed)                    confname=conf1   ;;
47548esac
47549
47550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what libraries are needed to link Fortran90 programs with C routines that use stdio" >&5
47551$as_echo_n "checking what libraries are needed to link Fortran90 programs with C routines that use stdio... " >&6; }
47552if ${pac_cv_prog_fc_and_c_stdio_libs+:} false; then :
47553  $as_echo_n "(cached) " >&6
47554else
47555
47556pac_cv_prog_fc_and_c_stdio_libs=unknown
47557
47558ac_ext=c
47559ac_cpp='$CPP $CPPFLAGS'
47560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47562ac_compiler_gnu=$ac_cv_c_compiler_gnu
47563
47564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47565/* end confdefs.h.  */
47566
47567
47568#if defined(HAVE_STDIO_H) || defined(STDC_HEADERS)
47569#include <stdio.h>
47570#endif
47571int $confname( int a )
47572{ printf( "The answer is %d\n", a ); fflush(stdout); return 0; }
47573
47574
47575_ACEOF
47576if ac_fn_c_try_compile "$LINENO"; then :
47577
47578    pac_compile_ok=yes
47579
47580{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
47581  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
47582  ac_status=$?
47583  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47584  test $ac_status = 0; }
47585    # Save LIBS and prepend object file to LIBS
47586    saved_LIBS="$LIBS"
47587    LIBS="pac_conftest.$OBJEXT $LIBS"
47588    ac_ext=${ac_fc_srcext-f}
47589ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
47590ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
47591ac_compiler_gnu=$ac_cv_fc_compiler_gnu
47592
47593    cat > conftest.$ac_ext <<_ACEOF
47594
47595              program main
47596call conf1(0)
47597      end
47598
47599_ACEOF
47600if ac_fn_fc_try_link "$LINENO"; then :
47601
47602        pac_cv_prog_fc_and_c_stdio_libs=none
47603
47604else
47605
47606        # Try again with -lSystemStubs
47607        LIBS="$LIBS -lSystemStubs"
47608        if ac_fn_fc_try_link "$LINENO"; then :
47609
47610            pac_cv_prog_fc_and_c_stdio_libs="-lSystemStubs"
47611
47612fi
47613rm -f core conftest.err conftest.$ac_objext \
47614    conftest$ac_exeext
47615
47616fi
47617rm -f core conftest.err conftest.$ac_objext \
47618    conftest$ac_exeext conftest.$ac_ext
47619    LIBS="$saved_LIBS"
47620    ac_ext=c
47621ac_cpp='$CPP $CPPFLAGS'
47622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47624ac_compiler_gnu=$ac_cv_c_compiler_gnu
47625
47626    rm -f pac_conftest.$OBJEXT
47627
47628fi
47629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47630ac_ext=f
47631ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
47632ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47633ac_compiler_gnu=$ac_cv_f77_compiler_gnu
47634
47635if test "$pac_cv_prog_fc_and_c_stdio_libs" != none -a \
47636        "$pac_cv_prog_fc_and_c_stdio_libs" != unknown ; then
47637    FC_OTHER_LIBS="$FC_OTHER_LIBS $pac_cv_prog_fc_and_c_stdio_libs"
47638fi
47639
47640fi
47641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_fc_and_c_stdio_libs" >&5
47642$as_echo "$pac_cv_prog_fc_and_c_stdio_libs" >&6; }
47643
47644
47645    # ------------------------------------------------
47646fi
47647
47648if test "X$modincdir" = "X" ; then
47649  modincdir=$includedir
47650fi
47651export modincdir
47652
47653
47654ac_ext=c
47655ac_cpp='$CPP $CPPFLAGS'
47656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47658ac_compiler_gnu=$ac_cv_c_compiler_gnu
47659
47660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TRUE has been defined" >&5
47661$as_echo_n "checking whether TRUE has been defined... " >&6; }
47662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47663/* end confdefs.h.  */
47664
47665int
47666main ()
47667{
47668return TRUE;
47669  ;
47670  return 0;
47671}
47672_ACEOF
47673if ac_fn_c_try_compile "$LINENO"; then :
47674  has_true_upper_case=yes
47675else
47676  has_true_upper_case=no
47677fi
47678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_true_upper_case" >&5
47680$as_echo "$has_true_upper_case" >&6; }
47681if test "$has_true_upper_case" = "no" ; then
47682
47683$as_echo "#define TRUE 1" >>confdefs.h
47684
47685
47686$as_echo "#define FALSE 0" >>confdefs.h
47687
47688fi
47689ac_ext=f
47690ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
47691ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47692ac_compiler_gnu=$ac_cv_f77_compiler_gnu
47693
47694
47695# ----------------------------------------------------------------------------
47696# We previously allowed "default" as a valid value for $enable_cxx.  Now we
47697# assume its available by default and error out if it doesn't work (just like
47698# F77 & FC).  The user must pass "--disable-cxx" in order to successfully
47699# complete configure in this case.
47700if test "$enable_cxx" = "default" ; then
47701    as_fn_error $? "aborting because \"--enable-cxx=default\" is no longer a supported value" "$LINENO" 5
47702fi
47703
47704if test "$enable_cxx" = "yes" ; then
47705    # Another bug in autoconf.  The checks for the C++ compiler do not
47706    # ensure that you can link a program that is built with the C++
47707    # compiler.  We've seen this error with gcc and icc, particularly
47708    # when those compilers accept C++ language elements but are unable
47709    # to link programs that are really C++.  For that reason,
47710    # we've added a test to see if the C++ compiler can produce
47711    # an executable.
47712    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler $CXX can build an executable" >&5
47713$as_echo_n "checking whether the C++ compiler $CXX can build an executable... " >&6; }
47714if ${pac_cv_cxx_builds_exe+:} false; then :
47715  $as_echo_n "(cached) " >&6
47716else
47717
47718 ac_ext=cpp
47719ac_cpp='$CXXCPP $CPPFLAGS'
47720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47723
47724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47725/* end confdefs.h.  */
47726
47727class mytest {
47728  int a;
47729public:
47730  mytest(void) : a(1) {}
47731  ~mytest(void) {}
47732};
47733int
47734main ()
47735{
47736mytest a;
47737  ;
47738  return 0;
47739}
47740_ACEOF
47741if ac_fn_cxx_try_link "$LINENO"; then :
47742  pac_cv_cxx_builds_exe=yes
47743else
47744  pac_cv_cxx_builds_exe=no
47745fi
47746rm -f core conftest.err conftest.$ac_objext \
47747    conftest$ac_exeext conftest.$ac_ext
47748 ac_ext=f
47749ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
47750ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47751ac_compiler_gnu=$ac_cv_f77_compiler_gnu
47752
47753
47754fi
47755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cxx_builds_exe" >&5
47756$as_echo "$pac_cv_cxx_builds_exe" >&6; }
47757    if test "$pac_cv_cxx_builds_exe" != yes ; then
47758        as_fn_error $? "Aborting because C++ compiler does not work.  If you do not need a C++ compiler, configure with --disable-cxx" "$LINENO" 5
47759    fi
47760    # Recent failures have come when a standard header is loaded
47761    # The Intel icpc 10.x compiler fails with <string> if gcc 4.2 is installed.
47762    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler works with string" >&5
47763$as_echo_n "checking whether C++ compiler works with string... " >&6; }
47764if ${pac_cv_cxx_compiles_string+:} false; then :
47765  $as_echo_n "(cached) " >&6
47766else
47767
47768    ac_ext=cpp
47769ac_cpp='$CXXCPP $CPPFLAGS'
47770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47773
47774    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47775/* end confdefs.h.  */
47776#include <string>
47777int
47778main ()
47779{
47780return 0;
47781  ;
47782  return 0;
47783}
47784_ACEOF
47785if ac_fn_cxx_try_compile "$LINENO"; then :
47786  pac_cv_cxx_compiles_string=yes
47787else
47788  pac_cv_cxx_compiles_string=no
47789fi
47790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47791    ac_ext=f
47792ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
47793ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47794ac_compiler_gnu=$ac_cv_f77_compiler_gnu
47795
47796
47797fi
47798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cxx_compiles_string" >&5
47799$as_echo "$pac_cv_cxx_compiles_string" >&6; }
47800    if test "$pac_cv_cxx_compiles_string" != yes ; then
47801        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The C++ compiler $CXX cannot compile a program containing the <string> header - this may indicate a problem with the C++ installation.  Consider configuing with --disable-cxx" >&5
47802$as_echo "$as_me: WARNING: The C++ compiler $CXX cannot compile a program containing the <string> header - this may indicate a problem with the C++ installation.  Consider configuing with --disable-cxx" >&2;}
47803    fi
47804
47805    ac_ext=cpp
47806ac_cpp='$CXXCPP $CPPFLAGS'
47807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47810
47811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports exceptions" >&5
47812$as_echo_n "checking whether the compiler supports exceptions... " >&6; }
47813if ${ac_cv_cxx_exceptions+:} false; then :
47814  $as_echo_n "(cached) " >&6
47815else
47816
47817 ac_ext=cpp
47818ac_cpp='$CXXCPP $CPPFLAGS'
47819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47822
47823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47824/* end confdefs.h.  */
47825
47826int
47827main ()
47828{
47829try { throw  1; } catch (int i) { return i; }
47830  ;
47831  return 0;
47832}
47833_ACEOF
47834if ac_fn_cxx_try_compile "$LINENO"; then :
47835  ac_cv_cxx_exceptions=yes
47836else
47837  ac_cv_cxx_exceptions=no
47838fi
47839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47840 ac_ext=cpp
47841ac_cpp='$CXXCPP $CPPFLAGS'
47842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47845
47846
47847fi
47848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_exceptions" >&5
47849$as_echo "$ac_cv_cxx_exceptions" >&6; }
47850if test "$ac_cv_cxx_exceptions" = yes; then
47851
47852$as_echo "#define HAVE_CXX_EXCEPTIONS /**/" >>confdefs.h
47853
47854fi
47855
47856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
47857$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
47858if ${ac_cv_cxx_bool+:} false; then :
47859  $as_echo_n "(cached) " >&6
47860else
47861
47862 ac_ext=cpp
47863ac_cpp='$CXXCPP $CPPFLAGS'
47864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47867
47868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47869/* end confdefs.h.  */
47870
47871int f(int  x){return 1;}
47872int f(char x){return 1;}
47873int f(bool x){return 1;}
47874
47875int
47876main ()
47877{
47878bool b = true; return f(b);
47879  ;
47880  return 0;
47881}
47882_ACEOF
47883if ac_fn_cxx_try_compile "$LINENO"; then :
47884  ac_cv_cxx_bool=yes
47885else
47886  ac_cv_cxx_bool=no
47887fi
47888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47889 ac_ext=cpp
47890ac_cpp='$CXXCPP $CPPFLAGS'
47891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47894
47895
47896fi
47897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_bool" >&5
47898$as_echo "$ac_cv_cxx_bool" >&6; }
47899if test "$ac_cv_cxx_bool" != yes; then
47900
47901$as_echo "#define bool int" >>confdefs.h
47902
47903fi
47904
47905    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
47906$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
47907if ${ac_cv_cxx_namespaces+:} false; then :
47908  $as_echo_n "(cached) " >&6
47909else
47910
47911 ac_ext=cpp
47912ac_cpp='$CXXCPP $CPPFLAGS'
47913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47916
47917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47918/* end confdefs.h.  */
47919namespace Outer { namespace Inner { int i = 0; }}
47920int
47921main ()
47922{
47923using namespace Outer::Inner; return i;
47924  ;
47925  return 0;
47926}
47927_ACEOF
47928if ac_fn_cxx_try_compile "$LINENO"; then :
47929  ac_cv_cxx_namespaces=yes
47930else
47931  ac_cv_cxx_namespaces=no
47932fi
47933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47934 ac_ext=cpp
47935ac_cpp='$CXXCPP $CPPFLAGS'
47936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47939
47940
47941fi
47942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
47943$as_echo "$ac_cv_cxx_namespaces" >&6; }
47944if test "$ac_cv_cxx_namespaces" = yes; then
47945
47946$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
47947
47948fi
47949
47950    if test "$ac_cv_cxx_namespaces" != "yes" ; then
47951        as_fn_error $? "Namespaces are required for the MPI C++ interface" "$LINENO" 5
47952    fi
47953    HAVE_CXX_EXCEPTIONS=0
47954
47955    if test "$ac_cv_cxx_exceptions" = "yes" ; then
47956        HAVE_CXX_EXCEPTIONS=1
47957    fi
47958    # iostream and math are needed for examples/cxx/cxxpi.cxx
47959    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <iostream> available" >&5
47960$as_echo_n "checking whether <iostream> available... " >&6; }
47961if ${pac_cv_cxx_has_iostream+:} false; then :
47962  $as_echo_n "(cached) " >&6
47963else
47964
47965    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47966/* end confdefs.h.  */
47967
47968#include <iostream>
47969
47970int
47971main ()
47972{
47973using namespace std;
47974  ;
47975  return 0;
47976}
47977_ACEOF
47978if ac_fn_cxx_try_compile "$LINENO"; then :
47979  pac_cv_cxx_has_iostream=yes
47980else
47981  pac_cv_cxx_has_iostream=no
47982fi
47983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47984fi
47985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cxx_has_iostream" >&5
47986$as_echo "$pac_cv_cxx_has_iostream" >&6; }
47987
47988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements the namespace std" >&5
47989$as_echo_n "checking whether the compiler implements the namespace std... " >&6; }
47990if ${ac_cv_cxx_namespace_std+:} false; then :
47991  $as_echo_n "(cached) " >&6
47992else
47993  ac_cv_cxx_namespace_std=no
47994if test "$ac_cv_cxx_namespaces" = yes ; then
47995
47996   ac_ext=cpp
47997ac_cpp='$CXXCPP $CPPFLAGS'
47998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48001
48002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48003/* end confdefs.h.  */
48004
48005#include <iostream>
48006using namespace std;
48007int
48008main ()
48009{
48010cout << "message\n";
48011  ;
48012  return 0;
48013}
48014_ACEOF
48015if ac_fn_cxx_try_compile "$LINENO"; then :
48016  ac_cv_cxx_namespace_std=yes
48017else
48018  ac_cv_cxx_namespace_std=no
48019fi
48020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48021   ac_ext=cpp
48022ac_cpp='$CXXCPP $CPPFLAGS'
48023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48026
48027fi
48028
48029fi
48030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespace_std" >&5
48031$as_echo "$ac_cv_cxx_namespace_std" >&6; }
48032if test "$ac_cv_cxx_namespace_std" = yes; then
48033
48034$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
48035
48036fi
48037
48038
48039    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <math> available" >&5
48040$as_echo_n "checking whether <math> available... " >&6; }
48041if ${pac_cv_cxx_has_math+:} false; then :
48042  $as_echo_n "(cached) " >&6
48043else
48044
48045    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48046/* end confdefs.h.  */
48047
48048#include <math>
48049
48050int
48051main ()
48052{
48053using namespace std;
48054  ;
48055  return 0;
48056}
48057_ACEOF
48058if ac_fn_cxx_try_compile "$LINENO"; then :
48059  pac_cv_cxx_has_math=yes
48060else
48061  pac_cv_cxx_has_math=no
48062fi
48063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48064fi
48065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cxx_has_math" >&5
48066$as_echo "$pac_cv_cxx_has_math" >&6; }
48067
48068    # GNU changed the calling conventions between minor releases (!!!)
48069    # This is too hard to detect, but we should be able to detect
48070    # the version mismatch.  By default, we set the GNU version to 0.
48071    # In a cross-compiling environment, these can be set with environment
48072    # variables, either directly or through the standard "CROSS" variable.
48073    if test -z "$GNUCXX_VERSION" ; then
48074        if test -n "$CROSS_GNUCXX_VERSION" ; then
48075	     GNUCXX_VERSION=$CROSS_GNUCXX_VERSION
48076        else
48077             GNUCXX_VERSION=0
48078        fi
48079    fi
48080    if test -z "$GNUCXX_MINORVERSION" ; then
48081	if test -n "$CROSS_GNUCXX_MINORVERSION" ; then
48082	     GNUCXX_MINORVERSION=$CROSS_GNUCXX_MINORVERSION
48083       	else
48084             GNUCXX_MINORVERSION=0
48085        fi
48086    fi
48087    if test "$cross_compiling" = "no" -a "$ac_compiler_gnu" = "yes" -a \
48088       "$GNUCXX_VERSION" = 0 -a "$GNUCXX_MINORVERSION" = 0 ; then
48089         ac_vals=""
48090	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU g++ version" >&5
48091$as_echo_n "checking for GNU g++ version... " >&6; }
48092         if test "$cross_compiling" = yes; then :
48093  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
48094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
48095as_fn_error $? "cannot run test program while cross compiling
48096See \`config.log' for more details" "$LINENO" 5; }
48097else
48098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48099/* end confdefs.h.  */
48100#include <stdio.h>
48101int main() {
48102    int v = -1, m = -1;
48103    FILE *fp = fopen("conftest.out","w");
48104#ifdef __GNUC_MINOR__
48105    m = __GNUC_MINOR__;
48106#endif
48107#ifdef __GNUC__
48108    v = __GNUC__;
48109#endif
48110    fprintf( fp, "v=%d, m=%d\n", v, m );
48111    fclose( fp );
48112    return 0;
48113}
48114_ACEOF
48115if ac_fn_cxx_try_run "$LINENO"; then :
48116  ac_vals=`cat conftest.out`
48117fi
48118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
48119  conftest.$ac_objext conftest.beam conftest.$ac_ext
48120fi
48121
48122         if test -n "$ac_vals" ; then
48123             v=`echo "$ac_vals" | sed -e 's/v=\(.*\),.*/\1/'`
48124             m=`echo "$ac_vals" | sed -e 's/.*m=\(.*\)/\1/'`
48125             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $v . $m" >&5
48126$as_echo "$v . $m" >&6; }
48127             GNUCXX_VERSION=$v
48128             GNUCXX_MINORVERSION=$m
48129         else
48130             { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
48131$as_echo "unknown" >&6; }
48132         fi
48133    fi
48134
48135
48136
48137    bindings="$bindings cxx"
48138
48139$as_echo "#define HAVE_CXX_BINDING 1" >>confdefs.h
48140
48141    INCLUDE_MPICXX_H='#include "mpicxx.h"'
48142
48143
48144    # In order to support the Fortran datatypes within C++,
48145    #
48146    # FORTRAN_BINDING always has a CPP-time value of either 0 or 1,
48147    # so that it may be used in #if statements without adding to
48148    # the CPP name space
48149
48150
48151    # Special C++ datatypes.  Set to DATATYPE NULL first; we'll
48152    # replace the ones that we have later, after we have determined
48153    # the C datatypes
48154    MPIR_CXX_BOOL=0x0c000000
48155    MPIR_CXX_COMPLEX=0x0c000000
48156    MPIR_CXX_DOUBLE_COMPLEX=0x0c000000
48157    MPIR_CXX_LONG_DOUBLE_COMPLEX=0x0c000000
48158
48159
48160
48161
48162
48163    # determine shared library flags for CXX
48164    cxx_shlib_conf=src/env/cxx_shlib.conf
48165
48166
48167
48168
48169# It appears that the libtool dynamic linking strategy on Darwin is this:
48170# 1. Link all shared libs with "-install_name /full/path/to/libfoo.dylib"
48171# 2. Don't do anything special when linking programs, since it seems that the
48172# darwin dynamic linker will always use the "install_name" field from the lib
48173# that was found at program link-time.  (CONFIRMED) This is in opposition to
48174# the way that Linux does it, where specifying a "-rpath" argument at program
48175# link-time is important.
48176#
48177# There is an alternative darwin strategy for versions
48178# >= 10.5, see this: http://www.cmake.org/pipermail/cmake/2010-August/038970.html
48179# (goodell@ 2011-06-17)
48180
48181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library (esp. rpath) characteristics of CXX" >&5
48182$as_echo_n "checking for shared library (esp. rpath) characteristics of CXX... " >&6; }
48183
48184# unfortunately, config.rpath expects the compiler in question is always CC and
48185# uses several other environment variables as input
48186
48187	if test -z "${pac_save_CC_nesting}" ; then
48188	   pac_save_CC_nesting=0
48189	fi
48190	eval pac_save_CC_${pac_save_CC_nesting}='"$CC"'
48191	pac_save_CC_nesting=`expr ${pac_save_CC_nesting} + 1`
48192
48193
48194	if test -z "${pac_save_GCC_nesting}" ; then
48195	   pac_save_GCC_nesting=0
48196	fi
48197	eval pac_save_GCC_${pac_save_GCC_nesting}='"$GCC"'
48198	pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} + 1`
48199
48200
48201	if test -z "${pac_save_LD_nesting}" ; then
48202	   pac_save_LD_nesting=0
48203	fi
48204	eval pac_save_LD_${pac_save_LD_nesting}='"$LD"'
48205	pac_save_LD_nesting=`expr ${pac_save_LD_nesting} + 1`
48206
48207# these two don't currently get overridden, but we push/pop them for safety in
48208# case they do in the future
48209
48210	if test -z "${pac_save_LDFLAGS_nesting}" ; then
48211	   pac_save_LDFLAGS_nesting=0
48212	fi
48213	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"'
48214	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1`
48215
48216
48217	if test -z "${pac_save_with_gnu_ld_nesting}" ; then
48218	   pac_save_with_gnu_ld_nesting=0
48219	fi
48220	eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}='"$with_gnu_ld"'
48221	pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} + 1`
48222
48223
48224# set the temporary override values (if any)
48225CC="$CXX"
48226     GCC="$GXX"
48227     LD="$LD_CXX"
48228
48229# ensure the values are available to the script
48230export CC
48231export GCC
48232export LDFLAGS
48233export LD
48234export with_gnu_ld
48235
48236if $ac_aux_dir/config.rpath "$host" > $cxx_shlib_conf; then :
48237  :
48238else
48239  as_fn_error $? "unable to execute $ac_aux_dir/config.rpath" "$LINENO" 5
48240fi
48241
48242C_LINKPATH_SHL=""
48243
48244
48245rm -f conftest.out
48246
48247# restore the old values
48248
48249	pac_save_with_gnu_ld_nesting=`expr ${pac_save_with_gnu_ld_nesting} - 1`
48250	eval with_gnu_ld="\$pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}"
48251	eval pac_save_with_gnu_ld_${pac_save_with_gnu_ld_nesting}=""
48252
48253
48254	pac_save_LD_nesting=`expr ${pac_save_LD_nesting} - 1`
48255	eval LD="\$pac_save_LD_${pac_save_LD_nesting}"
48256	eval pac_save_LD_${pac_save_LD_nesting}=""
48257
48258
48259	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1`
48260	eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}"
48261	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}=""
48262
48263
48264	pac_save_GCC_nesting=`expr ${pac_save_GCC_nesting} - 1`
48265	eval GCC="\$pac_save_GCC_${pac_save_GCC_nesting}"
48266	eval pac_save_GCC_${pac_save_GCC_nesting}=""
48267
48268
48269	pac_save_CC_nesting=`expr ${pac_save_CC_nesting} - 1`
48270	eval CC="\$pac_save_CC_${pac_save_CC_nesting}"
48271	eval pac_save_CC_${pac_save_CC_nesting}=""
48272
48273
48274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done (results in $cxx_shlib_conf)" >&5
48275$as_echo "done (results in $cxx_shlib_conf)" >&6; }
48276
48277
48278fi
48279
48280if test "$enable_cxx" = yes; then
48281    # Check if $MPI_DEFAULT_CXXOPTS is valid with $CXX
48282    if test -n "$MPI_DEFAULT_CXXOPTS" ; then
48283        if test "$enable_check_compiler_flags" = "yes" ; then
48284
48285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts option $MPI_DEFAULT_CXXOPTS" >&5
48286$as_echo_n "checking whether C++ compiler accepts option $MPI_DEFAULT_CXXOPTS... " >&6; }
48287pac_opt="$MPI_DEFAULT_CXXOPTS"
48288ac_ext=cpp
48289ac_cpp='$CXXCPP $CPPFLAGS'
48290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48293
48294CXXFLAGS_orig="$CXXFLAGS"
48295CXXFLAGS_opt="$pac_opt $CXXFLAGS"
48296pac_result="unknown"
48297
48298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48299/* end confdefs.h.  */
48300
48301int
48302main ()
48303{
48304
48305  ;
48306  return 0;
48307}
48308_ACEOF
48309CXXFLAGS="$CXXFLAGS_orig"
48310rm -f pac_test1.log
48311
48312
48313# START of PUSHVAL
48314
48315if ${pac_stk_ac_link_level+:} false; then :
48316
48317    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
48318
48319else
48320
48321    pac_stk_ac_link_level=0
48322
48323fi
48324eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
48325if test "x$pac_stk_ac_link_level" = x0; then :
48326
48327        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
48328
48329fi
48330
48331        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
48332
48333
48334# END of PUSHVAL
48335
48336ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`"
48337if ac_fn_cxx_try_link "$LINENO"; then :
48338
48339
48340    CXXFLAGS="$CXXFLAGS_opt"
48341    rm -f pac_test2.log
48342
48343
48344# START of PUSHVAL
48345
48346if ${pac_stk_ac_link_level+:} false; then :
48347
48348    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
48349
48350else
48351
48352    pac_stk_ac_link_level=0
48353
48354fi
48355eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
48356if test "x$pac_stk_ac_link_level" = x0; then :
48357
48358        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
48359
48360fi
48361
48362        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
48363
48364
48365# END of PUSHVAL
48366
48367ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`"
48368if ac_fn_cxx_try_link "$LINENO"; then :
48369
48370
48371
48372pac_TESTLOG="pac_test.log"
48373rm -f $pac_TESTLOG
48374
48375if
48376{ $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5
48377  (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5
48378  ac_status=$?
48379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48380  test $ac_status = 0; }; then :
48381
48382
48383    pac_result=yes
48384
48385
48386else
48387
48388    $as_echo "$as_me: program exited with status $ac_status" >&5
48389
48390        (exit $ac_status)
48391
48392    $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5
48393    cat $pac_TESTLOG >&5
48394    pac_result=no
48395
48396
48397
48398
48399fi
48400
48401rm -f $pac_TESTLOG
48402
48403
48404
48405else
48406
48407
48408        pac_result=no
48409
48410
48411fi
48412rm -f core conftest.err conftest.$ac_objext \
48413    conftest$ac_exeext
48414
48415# START of POPVAL
48416
48417if ${pac_stk_ac_link_level+:} false; then :
48418
48419    if test "x$pac_stk_ac_link_level" = x-1; then :
48420
48421        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
48422$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
48423
48424else
48425
48426                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
48427                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
48428
48429fi
48430
48431else
48432
48433    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
48434$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
48435
48436fi
48437
48438# END of POPVAL
48439
48440
48441
48442
48443else
48444
48445
48446    pac_result=no
48447
48448
48449fi
48450rm -f core conftest.err conftest.$ac_objext \
48451    conftest$ac_exeext
48452
48453# START of POPVAL
48454
48455if ${pac_stk_ac_link_level+:} false; then :
48456
48457    if test "x$pac_stk_ac_link_level" = x-1; then :
48458
48459        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
48460$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
48461
48462else
48463
48464                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
48465                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
48466
48467fi
48468
48469else
48470
48471    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
48472$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
48473
48474fi
48475
48476# END of POPVAL
48477
48478
48479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
48480$as_echo "$pac_result" >&6; }
48481rm -f conftest.$ac_ext
48482
48483if test "$pac_result" = "yes" ; then
48484    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5
48485$as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; }
48486    pac_result=unknown
48487    CXXFLAGS="$CXXFLAGS_orig"
48488    rm -f pac_test3.log
48489
48490
48491# START of PUSHVAL
48492
48493if ${pac_stk_ac_compile_level+:} false; then :
48494
48495    as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val
48496
48497else
48498
48499    pac_stk_ac_compile_level=0
48500
48501fi
48502eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile"
48503if test "x$pac_stk_ac_compile_level" = x0; then :
48504
48505        eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
48506
48507fi
48508
48509        eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
48510
48511
48512# END of PUSHVAL
48513
48514ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`"
48515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48516/* end confdefs.h.  */
48517
48518
48519            int foo(void);
48520            int foo(void){return 0;}
48521
48522
48523_ACEOF
48524if ac_fn_cxx_try_compile "$LINENO"; then :
48525
48526
48527
48528{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
48529  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
48530  ac_status=$?
48531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48532  test $ac_status = 0; }
48533        saved_LIBS="$LIBS"
48534        LIBS="pac_conftest.$OBJEXT $LIBS"
48535
48536        CXXFLAGS="$CXXFLAGS_opt"
48537        rm -f pac_test4.log
48538
48539
48540# START of PUSHVAL
48541
48542if ${pac_stk_ac_link_level+:} false; then :
48543
48544    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
48545
48546else
48547
48548    pac_stk_ac_link_level=0
48549
48550fi
48551eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
48552if test "x$pac_stk_ac_link_level" = x0; then :
48553
48554        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
48555
48556fi
48557
48558        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
48559
48560
48561# END of PUSHVAL
48562
48563ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`"
48564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48565/* end confdefs.h.  */
48566
48567int
48568main ()
48569{
48570
48571  ;
48572  return 0;
48573}
48574_ACEOF
48575if ac_fn_cxx_try_link "$LINENO"; then :
48576
48577
48578
48579pac_TESTLOG="pac_test.log"
48580rm -f $pac_TESTLOG
48581
48582if
48583{ $as_echo "$as_me:$LINENO: diff -b pac_test2.log pac_test4.log > $pac_TESTLOG" >&5
48584  (eval diff -b pac_test2.log pac_test4.log > $pac_TESTLOG) 2>&5
48585  ac_status=$?
48586  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48587  test $ac_status = 0; }; then :
48588
48589
48590    pac_result=yes
48591
48592
48593else
48594
48595    $as_echo "$as_me: program exited with status $ac_status" >&5
48596
48597        (exit $ac_status)
48598
48599    $as_echo "*** diff -b pac_test2.log pac_test4.log :" >&5
48600    cat $pac_TESTLOG >&5
48601    pac_result=no
48602
48603
48604
48605
48606fi
48607
48608rm -f $pac_TESTLOG
48609
48610
48611
48612else
48613
48614
48615            pac_result=no
48616
48617
48618fi
48619rm -f core conftest.err conftest.$ac_objext \
48620    conftest$ac_exeext conftest.$ac_ext
48621
48622# START of POPVAL
48623
48624if ${pac_stk_ac_link_level+:} false; then :
48625
48626    if test "x$pac_stk_ac_link_level" = x-1; then :
48627
48628        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
48629$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
48630
48631else
48632
48633                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
48634                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
48635
48636fi
48637
48638else
48639
48640    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
48641$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
48642
48643fi
48644
48645# END of POPVAL
48646
48647
48648        LIBS="$saved_LIBS"
48649        rm -f pac_conftest.$OBJEXT
48650
48651
48652else
48653
48654
48655        pac_result=no
48656
48657
48658fi
48659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48660
48661# START of POPVAL
48662
48663if ${pac_stk_ac_compile_level+:} false; then :
48664
48665    if test "x$pac_stk_ac_compile_level" = x-1; then :
48666
48667        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5
48668$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;}
48669
48670else
48671
48672                eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
48673                as_fn_arith  $pac_stk_ac_compile_level - 1  && pac_stk_ac_compile_level=$as_val
48674
48675fi
48676
48677else
48678
48679    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5
48680$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;}
48681
48682fi
48683
48684# END of POPVAL
48685
48686
48687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
48688$as_echo "$pac_result" >&6; }
48689    rm -f pac_test3.log pac_test4.log
48690fi
48691rm -f pac_test1.log pac_test2.log
48692
48693CXXFLAGS="$CXXFLAGS_orig"
48694if test "$pac_result" = "yes" ; then
48695
48696            CXXFLAGS="$CXXFLAGS $MPI_DEFAULT_CXXOPTS"
48697
48698else
48699     :
48700fi
48701ac_ext=cpp
48702ac_cpp='$CXXCPP $CPPFLAGS'
48703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48706
48707
48708        else
48709            CXXFLAGS="$CXXFLAGS $MPI_DEFAULT_CXXOPTS"
48710        fi
48711    fi
48712fi
48713
48714
48715
48716# ----------------------------------------------------------------------------
48717# End of the bindings support
48718# ----------------------------------------------------------------------------
48719
48720ac_ext=c
48721ac_cpp='$CPP $CPPFLAGS'
48722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48724ac_compiler_gnu=$ac_cv_c_compiler_gnu
48725
48726#
48727# ----------------------------------------------------------------------------
48728# Done with the basic argument processing and decisions about which
48729# subsystems to build
48730# ----------------------------------------------------------------------------
48731
48732# Look for perl.  Perl is used *only* in the tests of the commands such as
48733# mpiexec, mpicc, etc, in test/commands, and in some of the utility
48734# programs for processing log files .  If perl is not found,
48735# MPICH may still be built and used.
48736# We need the full path to perl since we'll use it as the interpreter for
48737# a shell script.
48738# Extract the first word of "perl", so it can be a program name with args.
48739set dummy perl; ac_word=$2
48740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48741$as_echo_n "checking for $ac_word... " >&6; }
48742if ${ac_cv_path_PERL+:} false; then :
48743  $as_echo_n "(cached) " >&6
48744else
48745  case $PERL in
48746  [\\/]* | ?:[\\/]*)
48747  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
48748  ;;
48749  *)
48750  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48751for as_dir in $PATH
48752do
48753  IFS=$as_save_IFS
48754  test -z "$as_dir" && as_dir=.
48755    for ac_exec_ext in '' $ac_executable_extensions; do
48756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48757    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
48758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48759    break 2
48760  fi
48761done
48762  done
48763IFS=$as_save_IFS
48764
48765  ;;
48766esac
48767fi
48768PERL=$ac_cv_path_PERL
48769if test -n "$PERL"; then
48770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
48771$as_echo "$PERL" >&6; }
48772else
48773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48774$as_echo "no" >&6; }
48775fi
48776
48777
48778
48779# Check for the killall program; this can be used in some of the tests
48780# in test/commands
48781for ac_prog in killall
48782do
48783  # Extract the first word of "$ac_prog", so it can be a program name with args.
48784set dummy $ac_prog; ac_word=$2
48785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48786$as_echo_n "checking for $ac_word... " >&6; }
48787if ${ac_cv_prog_KILLALL+:} false; then :
48788  $as_echo_n "(cached) " >&6
48789else
48790  if test -n "$KILLALL"; then
48791  ac_cv_prog_KILLALL="$KILLALL" # Let the user override the test.
48792else
48793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48794for as_dir in $PATH
48795do
48796  IFS=$as_save_IFS
48797  test -z "$as_dir" && as_dir=.
48798    for ac_exec_ext in '' $ac_executable_extensions; do
48799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48800    ac_cv_prog_KILLALL="$ac_prog"
48801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48802    break 2
48803  fi
48804done
48805  done
48806IFS=$as_save_IFS
48807
48808fi
48809fi
48810KILLALL=$ac_cv_prog_KILLALL
48811if test -n "$KILLALL"; then
48812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KILLALL" >&5
48813$as_echo "$KILLALL" >&6; }
48814else
48815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48816$as_echo "no" >&6; }
48817fi
48818
48819
48820  test -n "$KILLALL" && break
48821done
48822test -n "$KILLALL" || KILLALL="true"
48823
48824
48825# Does xargs need the -r option to handle the case where the input
48826# is empty (gnu utils do, Mac OSX does not accept -r)
48827xargs_out=`echo "" | xargs ls | wc -l | sed -e 's/ //g'`
48828if test "$xargs_out" != "0" ; then
48829    XARGS_NODATA_OPT=-r
48830fi
48831
48832
48833
48834
48835if test -z "$INSTALL" ; then
48836    { $as_echo "$as_me:${as_lineno-$LINENO}: result: No install program available" >&5
48837$as_echo "No install program available" >&6; }
48838else
48839    # first make any "confdb/install-sh -c" into an absolute path
48840    # this is a hack, but it's still much cleaner than anything else I could
48841    # come up with (see tt#1007) [goodell@]
48842    case "$INSTALL" in #(
48843  /*) :
48844    : ;; #(
48845  *install-sh*) :
48846    INSTALL="$main_top_srcdir/$INSTALL" ;; #(
48847  *) :
48848     ;;
48849esac
48850
48851    # Check that this install really works
48852    rm -f conftest
48853    echo "Test file" > conftest
48854    if test ! -d .conftest ; then mkdir .conftest ; fi
48855    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether install works" >&5
48856$as_echo_n "checking whether install works... " >&6; }
48857    if $INSTALL conftest .conftest >/dev/null 2>&1 ; then
48858        installOk=yes
48859    else
48860        installOk=no
48861    fi
48862    rm -rf .conftest conftest
48863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $installOk" >&5
48864$as_echo "$installOk" >&6; }
48865    if test "$installOk" = no ; then
48866        if test -n "$ac_install_sh" ; then
48867            INSTALL=$ac_install_sh
48868        else
48869	    as_fn_error $? "Unable to find working install" "$LINENO" 5
48870        fi
48871    fi
48872fi
48873
48874#
48875# We also need mkdir -p.
48876
48877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir -p works" >&5
48878$as_echo_n "checking whether mkdir -p works... " >&6; }
48879if ${pac_cv_mkdir_p+:} false; then :
48880  $as_echo_n "(cached) " >&6
48881else
48882
48883pac_cv_mkdir_p=no
48884rm -rf .tmp
48885if mkdir -p .tmp/.foo 1>/dev/null 2>&1 ; then
48886    if test -d .tmp/.foo ; then
48887        pac_cv_mkdir_p=yes
48888    fi
48889fi
48890rm -rf .tmp
48891
48892fi
48893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_mkdir_p" >&5
48894$as_echo "$pac_cv_mkdir_p" >&6; }
48895if test "$pac_cv_mkdir_p" = "yes" ; then
48896   MKDIR_P="mkdir -p"
48897   export MKDIR_P
48898else
48899   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mkdir -p does not work; the install step may fail" >&5
48900$as_echo "$as_me: WARNING: mkdir -p does not work; the install step may fail" >&2;}
48901fi
48902
48903
48904
48905true
48906if test "X$MAKE" = "X" ; then
48907   for ac_prog in make gnumake nmake pmake smake
48908do
48909  # Extract the first word of "$ac_prog", so it can be a program name with args.
48910set dummy $ac_prog; ac_word=$2
48911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
48912$as_echo_n "checking for $ac_word... " >&6; }
48913if ${ac_cv_prog_MAKE+:} false; then :
48914  $as_echo_n "(cached) " >&6
48915else
48916  if test -n "$MAKE"; then
48917  ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
48918else
48919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48920for as_dir in $PATH
48921do
48922  IFS=$as_save_IFS
48923  test -z "$as_dir" && as_dir=.
48924    for ac_exec_ext in '' $ac_executable_extensions; do
48925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48926    ac_cv_prog_MAKE="$ac_prog"
48927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48928    break 2
48929  fi
48930done
48931  done
48932IFS=$as_save_IFS
48933
48934fi
48935fi
48936MAKE=$ac_cv_prog_MAKE
48937if test -n "$MAKE"; then
48938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
48939$as_echo "$MAKE" >&6; }
48940else
48941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48942$as_echo "no" >&6; }
48943fi
48944
48945
48946  test -n "$MAKE" && break
48947done
48948
48949fi
48950
48951
48952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock skew breaks make" >&5
48953$as_echo_n "checking whether clock skew breaks make... " >&6; }
48954if ${pac_cv_prog_make_found_clock_skew+:} false; then :
48955  $as_echo_n "(cached) " >&6
48956else
48957
48958
48959# This is needed for Mac OSX 10.5
48960rm -rf conftest.dSYM
48961rm -f conftest*
48962cat > conftest <<EOF
48963ALL:
48964	@-echo "success"
48965EOF
48966$MAKE -f conftest > conftest.out 2>&1
48967if grep -i skew conftest >/dev/null 2>&1 ; then
48968    pac_cv_prog_make_found_clock_skew=yes
48969else
48970    pac_cv_prog_make_found_clock_skew=no
48971fi
48972# This is needed for Mac OSX 10.5
48973rm -rf conftest.dSYM
48974rm -f conftest*
48975
48976fi
48977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_make_found_clock_skew" >&5
48978$as_echo "$pac_cv_prog_make_found_clock_skew" >&6; }
48979if test "$pac_cv_prog_make_found_clock_skew" = "yes" ; then
48980    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Clock skew found by make.  The configure and build may fail.
48981Consider building in a local instead of NFS filesystem." >&5
48982$as_echo "$as_me: WARNING: Clock skew found by make.  The configure and build may fail.
48983Consider building in a local instead of NFS filesystem." >&2;}
48984fi
48985
48986
48987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make supports include" >&5
48988$as_echo_n "checking whether make supports include... " >&6; }
48989if ${pac_cv_prog_make_include+:} false; then :
48990  $as_echo_n "(cached) " >&6
48991else
48992
48993
48994# This is needed for Mac OSX 10.5
48995rm -rf conftest.dSYM
48996rm -f conftest
48997cat > conftest <<.
48998ALL:
48999	@echo "success"
49000.
49001cat > conftest1 <<.
49002include conftest
49003.
49004pac_str=`$MAKE -f conftest1 2>&1`
49005# This is needed for Mac OSX 10.5
49006rm -rf conftest.dSYM
49007rm -f conftest conftest1
49008if test "$pac_str" != "success" ; then
49009    pac_cv_prog_make_include="no"
49010else
49011    pac_cv_prog_make_include="yes"
49012fi
49013
49014fi
49015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_make_include" >&5
49016$as_echo "$pac_cv_prog_make_include" >&6; }
49017if test "$pac_cv_prog_make_include" = "no" ; then
49018    :
49019else
49020    :
49021fi
49022
49023
49024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make allows comments in actions" >&5
49025$as_echo_n "checking whether make allows comments in actions... " >&6; }
49026if ${pac_cv_prog_make_allows_comments+:} false; then :
49027  $as_echo_n "(cached) " >&6
49028else
49029
49030
49031# This is needed for Mac OSX 10.5
49032rm -rf conftest.dSYM
49033rm -f conftest
49034cat > conftest <<.
49035SHELL=/bin/sh
49036ALL:
49037	@# This is a valid comment!
49038	@echo "success"
49039.
49040pac_str=`$MAKE -f conftest 2>&1`
49041# This is needed for Mac OSX 10.5
49042rm -rf conftest.dSYM
49043rm -f conftest
49044if test "$pac_str" != "success" ; then
49045    pac_cv_prog_make_allows_comments="no"
49046else
49047    pac_cv_prog_make_allows_comments="yes"
49048fi
49049
49050fi
49051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_make_allows_comments" >&5
49052$as_echo "$pac_cv_prog_make_allows_comments" >&6; }
49053if test "$pac_cv_prog_make_allows_comments" = "no" ; then
49054    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your make does not allow comments in target code.
49055Using this make may cause problems when building programs.
49056You should consider using gnumake instead." >&5
49057$as_echo "$as_me: WARNING: Your make does not allow comments in target code.
49058Using this make may cause problems when building programs.
49059You should consider using gnumake instead." >&2;}
49060
49061fi
49062
49063
49064
49065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for virtual path format" >&5
49066$as_echo_n "checking for virtual path format... " >&6; }
49067if ${pac_cv_prog_make_vpath+:} false; then :
49068  $as_echo_n "(cached) " >&6
49069else
49070
49071
49072# This is needed for Mac OSX 10.5
49073rm -rf conftest.dSYM
49074rm -rf conftest*
49075mkdir conftestdir
49076cat >conftestdir/a.c <<EOF
49077A sample file
49078EOF
49079cat > conftest <<EOF
49080all: a.o
49081VPATH=.:conftestdir
49082.c.o:
49083	@echo \$<
49084EOF
49085ac_out=`$MAKE -f conftest 2>&1 | grep 'conftestdir/a.c'`
49086if test -n "$ac_out" ; then
49087    pac_cv_prog_make_vpath="VPATH"
49088else
49089    rm -f conftest
49090    cat > conftest <<EOF
49091all: a.o
49092.PATH: . conftestdir
49093.c.o:
49094	@echo \$<
49095EOF
49096    ac_out=`$MAKE -f conftest 2>&1 | grep 'conftestdir/a.c'`
49097    if test -n "$ac_out" ; then
49098        pac_cv_prog_make_vpath=".PATH"
49099    else
49100	pac_cv_prog_make_vpath="neither VPATH nor .PATH works"
49101    fi
49102fi
49103# This is needed for Mac OSX 10.5
49104rm -rf conftest.dSYM
49105rm -rf conftest*
49106
49107fi
49108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_make_vpath" >&5
49109$as_echo "$pac_cv_prog_make_vpath" >&6; }
49110if test "$pac_cv_prog_make_vpath" = "VPATH" ; then
49111    VPATH='VPATH=.:${srcdir}'
49112elif test "$pac_cv_prog_make_vpath" = ".PATH" ; then
49113    VPATH='.PATH: . ${srcdir}'
49114fi
49115
49116
49117
49118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make sets CFLAGS" >&5
49119$as_echo_n "checking whether make sets CFLAGS... " >&6; }
49120if ${pac_cv_prog_make_set_cflags+:} false; then :
49121  $as_echo_n "(cached) " >&6
49122else
49123
49124
49125# This is needed for Mac OSX 10.5
49126rm -rf conftest.dSYM
49127rm -f conftest
49128cat > conftest <<EOF
49129SHELL=/bin/sh
49130ALL:
49131	@echo X\${CFLAGS}X
49132EOF
49133pac_str=`$MAKE -f conftest 2>&1`
49134# This is needed for Mac OSX 10.5
49135rm -rf conftest.dSYM
49136rm -f conftest
49137if test "$pac_str" = "XX" ; then
49138    pac_cv_prog_make_set_cflags="no"
49139else
49140    pac_cv_prog_make_set_cflags="yes"
49141fi
49142
49143fi
49144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_make_set_cflags" >&5
49145$as_echo "$pac_cv_prog_make_set_cflags" >&6; }
49146if test "$pac_cv_prog_make_set_cflags" = "no" ; then
49147    :
49148else
49149    SET_CFLAGS='CFLAGS='
49150fi
49151
49152if test "$pac_cv_prog_make_echos_dir" = "no" ; then
49153    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49154$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
49155set x ${MAKE-make}
49156ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49157if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
49158  $as_echo_n "(cached) " >&6
49159else
49160  cat >conftest.make <<\_ACEOF
49161SHELL = /bin/sh
49162all:
49163	@echo '@@@%%%=$(MAKE)=@@@%%%'
49164_ACEOF
49165# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
49166case `${MAKE-make} -f conftest.make 2>/dev/null` in
49167  *@@@%%%=?*=@@@%%%*)
49168    eval ac_cv_prog_make_${ac_make}_set=yes;;
49169  *)
49170    eval ac_cv_prog_make_${ac_make}_set=no;;
49171esac
49172rm -f conftest.make
49173fi
49174if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49176$as_echo "yes" >&6; }
49177  SET_MAKE=
49178else
49179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49180$as_echo "no" >&6; }
49181  SET_MAKE="MAKE=${MAKE-make}"
49182fi
49183
49184else
49185    SET_MAKE="MAKE=${MAKE-make}"
49186fi
49187
49188
49189#
49190# Check for bash to allow more robust shell scripts
49191# Extract the first word of "bash", so it can be a program name with args.
49192set dummy bash; ac_word=$2
49193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49194$as_echo_n "checking for $ac_word... " >&6; }
49195if ${ac_cv_path_BASH_SHELL+:} false; then :
49196  $as_echo_n "(cached) " >&6
49197else
49198  case $BASH_SHELL in
49199  [\\/]* | ?:[\\/]*)
49200  ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
49201  ;;
49202  *)
49203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49204for as_dir in $PATH
49205do
49206  IFS=$as_save_IFS
49207  test -z "$as_dir" && as_dir=.
49208    for ac_exec_ext in '' $ac_executable_extensions; do
49209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49210    ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
49211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49212    break 2
49213  fi
49214done
49215  done
49216IFS=$as_save_IFS
49217
49218  ;;
49219esac
49220fi
49221BASH_SHELL=$ac_cv_path_BASH_SHELL
49222if test -n "$BASH_SHELL"; then
49223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
49224$as_echo "$BASH_SHELL" >&6; }
49225else
49226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49227$as_echo "no" >&6; }
49228fi
49229
49230
49231#
49232# Confirm that bash has working arrays.  We can use this to
49233# build more robust versions of the scripts (particularly the
49234# compliation scripts) by taking advantage of the array features in
49235# bash.
49236bashWorks=no
49237if test -x "$BASH_SHELL" ; then
49238    cat >>conftest <<EOF
49239#! $BASH_SHELL
49240A[0]="b"
49241A[1]="c"
49242rc=1
49243if test \${A[1]} != "c" ; then rc=2 ; else rc=0 ; fi
49244exit \$rc
49245EOF
49246    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $BASH_SHELL supports arrays" >&5
49247$as_echo_n "checking whether $BASH_SHELL supports arrays... " >&6; }
49248    chmod +x conftest
49249    if ./conftest 2>&1 >/dev/null ; then
49250        bashWorks=yes
49251    else
49252        bashWorks=no
49253    fi
49254    rm -f conftest*
49255    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bashWorks" >&5
49256$as_echo "$bashWorks" >&6; }
49257fi
49258 if test "x$bashWorks" = xyes; then
49259  BUILD_BASH_SCRIPTS_TRUE=
49260  BUILD_BASH_SCRIPTS_FALSE='#'
49261else
49262  BUILD_BASH_SCRIPTS_TRUE='#'
49263  BUILD_BASH_SCRIPTS_FALSE=
49264fi
49265
49266
49267# ----------------------------------------------------------------------------
49268# At this point, we've finally settled on the value of PMPILIBNAME.  We
49269# can now set NEEDSPLIB.
49270if test "$NEEDSPLIB" = yes -a "$PMPILIBNAME" = "$MPILIBNAME" ; then
49271    NEEDSPLIB=no
49272fi
49273
49274# We are cheating a bit here and reaching inside of the libtool macros to
49275# extract the correct shared library extension.  It would be nice if this
49276# were publicly available in at least the same way that $libext is.
49277eval SHLIB_EXT='"'$shrext_cmds'"'
49278export SHLIB_EXT
49279
49280
49281# ----------------------------------------------------------------------------
49282#
49283# Add the steps for debugger support
49284BUILD_TVDLL=no
49285if test "$enable_debuginfo" = "yes" ; then
49286   # We can build the Totalview interface DLL only if we know how to build
49287   # shared libraries.
49288
49289   # FIXME is this really the right test?
49290   # No.  Before MPICH 1.5, there was the capability to build the debugger
49291   # libraries without forcing the build of shared libraries for everything.
49292   # There may be some way to restore this capability, but until then, we
49293   # at least cause the configure to cleanly fail with a clear error message
49294   if test "X$enable_shared" = "Xyes" ; then
49295       BUILD_TVDLL=yes
49296   else
49297       as_fn_error $? "Building with --enable-debuginfo now requires building with shared library support.  Add --enable-shared and reconfigure" "$LINENO" 5
49298   fi
49299
49300   # One more nasty problem.  Totalview relies on debugger symbols
49301   # being present in the executable.  Some experimental versions of
49302   # gcc (3.2 20020329 for ia64) do *not* include the object symbols
49303   # when debugging.  For HPUX, the necessary linking options are
49304   #    +noobjdebug
49305   # for C, Fortran, and C++.  We don't have a good test for this yet,
49306   # so we add a warning
49307   if test "$ac_cv_c_compiler_gnu" = "yes" ; then
49308       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Some versions of gcc do not include debugging information
49309within the executable.  Totalview requires this information to detect
49310an MPICH code.  If you have trouble, try linking with the additional
49311option
49312    +noobjdebug
49313on all link lines (consider adding it to LDFLAGS)" >&5
49314$as_echo "$as_me: WARNING: Some versions of gcc do not include debugging information
49315within the executable.  Totalview requires this information to detect
49316an MPICH code.  If you have trouble, try linking with the additional
49317option
49318    +noobjdebug
49319on all link lines (consider adding it to LDFLAGS)" >&2;}
49320   fi
49321
49322    # The debugger library name cannot be set until we know the extension
49323    # of shared libraries - the name is so on most Unix system, dylib on OS X.
49324
49325$as_echo "#define HAVE_DEBUGGER_SUPPORT 1" >>confdefs.h
49326
49327    # The debugger support requires a shared library.  This is handled
49328    # below, after we check for compiler support for shared libraries
49329    # Note: if libdir contains exec_prefix, handle the fact that the
49330    # default exec_prefix is NONE, which (much later in configure)
49331    # gets turned into the value of prefix
49332    ##ENVVAR: MPICH_DEBUGLIBNAME - Set this environment variable to
49333    ## override the default name of the debugger support library.
49334    ## The default name is libtvmpich.$SHLIB_EXT (e.g., libtvmpich.so for
49335    ## most Unix versions, libtvmpich.dylib for Mac OSX).
49336    ##ENVVAR END:
49337
49338    # We need when building CH4. The debugger interface need to build with CH4
49339    # AM message queue which is not exposed through abstract device interface.
49340    # This is very hacky (unfortunately) but sufficient for now.
49341    if test "$device_name" = "ch4" ; then
49342
49343$as_echo "#define HAVE_CH4_DEBUGGER_SUPPORT 1" >>confdefs.h
49344
49345    fi
49346
49347    if test -z "$MPICH_DEBUGLIBNAME" ; then
49348        DEBUGLIBNAME=libtvmpich$SHLIB_EXT
49349    else
49350        # FIXME DJG I don't think this can be supported arbitrarily by the new
49351        # build system (I'm not sure it was supported correctly by the old
49352        # system either)
49353        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: overriding MPICH_DEBUGLIBNAME is currently untested and probably does not work" >&5
49354$as_echo "$as_me: WARNING: overriding MPICH_DEBUGLIBNAME is currently untested and probably does not work" >&2;}
49355        DEBUGLIBNAME=$MPICH_DEBUGLIBNAME
49356    fi
49357    if test "x$exec_prefix" = xNONE ; then
49358        saveExecPrefix=$exec_prefix
49359	exec_prefix=$prefix
49360        eval dlldir=$libdir/$DEBUGLIBNAME
49361	exec_prefix=$saveExecPrefix
49362    else
49363        eval dlldir=$libdir/$DEBUGLIBNAME
49364    fi
49365    dlldir='"'$dlldir'"'
49366
49367cat >>confdefs.h <<_ACEOF
49368#define MPICH_INFODLL_LOC $dlldir
49369_ACEOF
49370
49371fi
49372
49373# used by automakefiles to conditionally build the DLL
49374 if test x$BUILD_TVDLL = xyes; then
49375  BUILD_DEBUGGER_DLL_TRUE=
49376  BUILD_DEBUGGER_DLL_FALSE='#'
49377else
49378  BUILD_DEBUGGER_DLL_TRUE='#'
49379  BUILD_DEBUGGER_DLL_FALSE=
49380fi
49381
49382
49383# ----------------------------------------------------------------------------
49384
49385nameserv_name=""
49386# Get the default nameserver, if no nameserver was selected.  A process
49387# manager may advertise a nameserver name by setting the variable
49388# MPID_PM_NAMESERVER.
49389if test "$with_namepublisher" = "default" ; then
49390   if test -n "$MPID_PM_NAMESERVER" ; then
49391       with_namepublisher=$MPID_PM_NAMESERVER
49392   else
49393       # The default is to use pmi to communicate published names
49394       with_namepublisher=pmi
49395   fi
49396fi
49397
49398if test "$with_namepublisher" != no -a "$with_namepublisher" != "none" ; then
49399    case "$with_namepublisher" in
49400    none|no) ;;
49401    # Removed ldap namepublisher hook - we no longer support or distribute
49402    # the ldap-based name server
49403    file*)
49404    # Note that we always build the Makefile for the file version because
49405    # this name publisher is really too simple to require a
49406    # separate configure, and we might as well include a basic
49407    # name publisher with any MPICH distribution
49408    # We DO need to extract the directory name that is used for writing
49409    # the files, with the User's home directory as the default
49410    nameserv_name="file"
49411    basedir=`echo $with_namepublisher | sed -e 's/file://'`
49412    if test "$basedir" = "$with_namepublisher" ; then
49413        # Reset since no directory was set.
49414	basedir='"."';
49415    fi
49416
49417cat >>confdefs.h <<_ACEOF
49418#define FILE_NAMEPUB_BASEDIR $basedir
49419_ACEOF
49420
49421
49422$as_echo "#define USE_FILE_FOR_NAMEPUB 1" >>confdefs.h
49423
49424    ;;
49425
49426    *)
49427    # Check for a new namepublisher
49428    dir=$with_namepublisher
49429    # If we later need args, here is where we can strip them off of the
49430    # with argument
49431    if test -d "$use_top_srcdir/src/nameserv/$dir" ; then
49432        if test -x "$use_top_srcdir/src/nameserv/$dir/configure" ; then
49433	    # Run the configure in this directory if necessary
49434            subsystems="$subsystems src/nameserv/$dir"
49435        fi
49436	nameserv_name=$dir
49437    else
49438        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown name publisher $with_namepublisher" >&5
49439$as_echo "$as_me: WARNING: Unknown name publisher $with_namepublisher" >&2;}
49440    fi
49441    ;;
49442    esac
49443fi
49444if test -n "$nameserv_name" ; then
49445
49446$as_echo "#define HAVE_NAMEPUB_SERVICE 1" >>confdefs.h
49447
49448fi
49449export nameserv_name
49450 if test "X$nameserv_name" = "Xfile"; then
49451  BUILD_NAMEPUB_FILE_TRUE=
49452  BUILD_NAMEPUB_FILE_FALSE='#'
49453else
49454  BUILD_NAMEPUB_FILE_TRUE='#'
49455  BUILD_NAMEPUB_FILE_FALSE=
49456fi
49457
49458 if test "X$nameserv_name" = "Xpmi"; then
49459  BUILD_NAMEPUB_PMI_TRUE=
49460  BUILD_NAMEPUB_PMI_FALSE='#'
49461else
49462  BUILD_NAMEPUB_PMI_TRUE='#'
49463  BUILD_NAMEPUB_PMI_FALSE=
49464fi
49465
49466
49467# In case the documentation targets are used, find doctext and attempt to
49468# find the source for the doctext LaTeX style files.  Use "false" if
49469# doctext is not found
49470# Extract the first word of "doctext", so it can be a program name with args.
49471set dummy doctext; ac_word=$2
49472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
49473$as_echo_n "checking for $ac_word... " >&6; }
49474if ${ac_cv_path_DOCTEXT+:} false; then :
49475  $as_echo_n "(cached) " >&6
49476else
49477  case $DOCTEXT in
49478  [\\/]* | ?:[\\/]*)
49479  ac_cv_path_DOCTEXT="$DOCTEXT" # Let the user override the test with a path.
49480  ;;
49481  *)
49482  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49483for as_dir in $PATH
49484do
49485  IFS=$as_save_IFS
49486  test -z "$as_dir" && as_dir=.
49487    for ac_exec_ext in '' $ac_executable_extensions; do
49488  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49489    ac_cv_path_DOCTEXT="$as_dir/$ac_word$ac_exec_ext"
49490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49491    break 2
49492  fi
49493done
49494  done
49495IFS=$as_save_IFS
49496
49497  test -z "$ac_cv_path_DOCTEXT" && ac_cv_path_DOCTEXT="false"
49498  ;;
49499esac
49500fi
49501DOCTEXT=$ac_cv_path_DOCTEXT
49502if test -n "$DOCTEXT"; then
49503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCTEXT" >&5
49504$as_echo "$DOCTEXT" >&6; }
49505else
49506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49507$as_echo "no" >&6; }
49508fi
49509
49510
49511export DOCTEXT
49512
49513
49514# ----------------------------------------------------------------------------
49515# Check for C compiler characteristics
49516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
49517$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
49518if ${ac_cv_c_const+:} false; then :
49519  $as_echo_n "(cached) " >&6
49520else
49521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49522/* end confdefs.h.  */
49523
49524int
49525main ()
49526{
49527
49528#ifndef __cplusplus
49529  /* Ultrix mips cc rejects this sort of thing.  */
49530  typedef int charset[2];
49531  const charset cs = { 0, 0 };
49532  /* SunOS 4.1.1 cc rejects this.  */
49533  char const *const *pcpcc;
49534  char **ppc;
49535  /* NEC SVR4.0.2 mips cc rejects this.  */
49536  struct point {int x, y;};
49537  static struct point const zero = {0,0};
49538  /* AIX XL C 1.02.0.0 rejects this.
49539     It does not let you subtract one const X* pointer from another in
49540     an arm of an if-expression whose if-part is not a constant
49541     expression */
49542  const char *g = "string";
49543  pcpcc = &g + (g ? g-g : 0);
49544  /* HPUX 7.0 cc rejects these. */
49545  ++pcpcc;
49546  ppc = (char**) pcpcc;
49547  pcpcc = (char const *const *) ppc;
49548  { /* SCO 3.2v4 cc rejects this sort of thing.  */
49549    char tx;
49550    char *t = &tx;
49551    char const *s = 0 ? (char *) 0 : (char const *) 0;
49552
49553    *t++ = 0;
49554    if (s) return 0;
49555  }
49556  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
49557    int x[] = {25, 17};
49558    const int *foo = &x[0];
49559    ++foo;
49560  }
49561  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
49562    typedef const int *iptr;
49563    iptr p = 0;
49564    ++p;
49565  }
49566  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
49567       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
49568    struct s { int j; const int *ap[3]; } bx;
49569    struct s *b = &bx; b->j = 5;
49570  }
49571  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
49572    const int foo = 10;
49573    if (!foo) return 0;
49574  }
49575  return !cs[0] && !zero.x;
49576#endif
49577
49578  ;
49579  return 0;
49580}
49581_ACEOF
49582if ac_fn_c_try_compile "$LINENO"; then :
49583  ac_cv_c_const=yes
49584else
49585  ac_cv_c_const=no
49586fi
49587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49588fi
49589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
49590$as_echo "$ac_cv_c_const" >&6; }
49591if test $ac_cv_c_const = no; then
49592
49593$as_echo "#define const /**/" >>confdefs.h
49594
49595fi
49596
49597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
49598$as_echo_n "checking for working volatile... " >&6; }
49599if ${ac_cv_c_volatile+:} false; then :
49600  $as_echo_n "(cached) " >&6
49601else
49602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49603/* end confdefs.h.  */
49604
49605int
49606main ()
49607{
49608
49609volatile int x;
49610int * volatile y = (int *) 0;
49611return !x && !y;
49612  ;
49613  return 0;
49614}
49615_ACEOF
49616if ac_fn_c_try_compile "$LINENO"; then :
49617  ac_cv_c_volatile=yes
49618else
49619  ac_cv_c_volatile=no
49620fi
49621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49622fi
49623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
49624$as_echo "$ac_cv_c_volatile" >&6; }
49625if test $ac_cv_c_volatile = no; then
49626
49627$as_echo "#define volatile /**/" >>confdefs.h
49628
49629fi
49630
49631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
49632$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
49633if ${ac_cv_c_restrict+:} false; then :
49634  $as_echo_n "(cached) " >&6
49635else
49636  ac_cv_c_restrict=no
49637   # The order here caters to the fact that C++ does not require restrict.
49638   for ac_kw in __restrict __restrict__ _Restrict restrict; do
49639     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49640/* end confdefs.h.  */
49641typedef int * int_ptr;
49642	int foo (int_ptr $ac_kw ip) {
49643	return ip[0];
49644       }
49645int
49646main ()
49647{
49648int s[1];
49649	int * $ac_kw t = s;
49650	t[0] = 0;
49651	return foo(t)
49652  ;
49653  return 0;
49654}
49655_ACEOF
49656if ac_fn_c_try_compile "$LINENO"; then :
49657  ac_cv_c_restrict=$ac_kw
49658fi
49659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49660     test "$ac_cv_c_restrict" != no && break
49661   done
49662
49663fi
49664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
49665$as_echo "$ac_cv_c_restrict" >&6; }
49666
49667 case $ac_cv_c_restrict in
49668   restrict) ;;
49669   no) $as_echo "#define restrict /**/" >>confdefs.h
49670 ;;
49671   *)  cat >>confdefs.h <<_ACEOF
49672#define restrict $ac_cv_c_restrict
49673_ACEOF
49674 ;;
49675 esac
49676
49677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
49678$as_echo_n "checking for inline... " >&6; }
49679if ${ac_cv_c_inline+:} false; then :
49680  $as_echo_n "(cached) " >&6
49681else
49682  ac_cv_c_inline=no
49683for ac_kw in inline __inline__ __inline; do
49684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49685/* end confdefs.h.  */
49686#ifndef __cplusplus
49687typedef int foo_t;
49688static $ac_kw foo_t static_foo () {return 0; }
49689$ac_kw foo_t foo () {return 0; }
49690#endif
49691
49692_ACEOF
49693if ac_fn_c_try_compile "$LINENO"; then :
49694  ac_cv_c_inline=$ac_kw
49695fi
49696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49697  test "$ac_cv_c_inline" != no && break
49698done
49699
49700fi
49701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
49702$as_echo "$ac_cv_c_inline" >&6; }
49703
49704case $ac_cv_c_inline in
49705  inline | yes) ;;
49706  *)
49707    case $ac_cv_c_inline in
49708      no) ac_val=;;
49709      *) ac_val=$ac_cv_c_inline;;
49710    esac
49711    cat >>confdefs.h <<_ACEOF
49712#ifndef __cplusplus
49713#define inline $ac_val
49714#endif
49715_ACEOF
49716    ;;
49717esac
49718
49719
49720
49721
49722
49723if test "$ac_cv_c_compiler_gnu" = "yes" ; then
49724    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ allowed" >&5
49725$as_echo_n "checking whether __attribute__ allowed... " >&6; }
49726if ${pac_cv_gnu_attr_pure+:} false; then :
49727  $as_echo_n "(cached) " >&6
49728else
49729
49730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49731/* end confdefs.h.  */
49732int foo(int) __attribute__ ((pure));
49733int
49734main ()
49735{
49736int a;
49737  ;
49738  return 0;
49739}
49740_ACEOF
49741if ac_fn_c_try_compile "$LINENO"; then :
49742  pac_cv_gnu_attr_pure=yes
49743else
49744  pac_cv_gnu_attr_pure=no
49745fi
49746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49747fi
49748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_pure" >&5
49749$as_echo "$pac_cv_gnu_attr_pure" >&6; }
49750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) allowed" >&5
49751$as_echo_n "checking whether __attribute__((format)) allowed... " >&6; }
49752if ${pac_cv_gnu_attr_format+:} false; then :
49753  $as_echo_n "(cached) " >&6
49754else
49755
49756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49757/* end confdefs.h.  */
49758int foo(char *,...) __attribute__ ((format(printf,1,2)));
49759int
49760main ()
49761{
49762int a;
49763  ;
49764  return 0;
49765}
49766_ACEOF
49767if ac_fn_c_try_compile "$LINENO"; then :
49768  pac_cv_gnu_attr_format=yes
49769else
49770  pac_cv_gnu_attr_format=no
49771fi
49772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49773fi
49774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_format" >&5
49775$as_echo "$pac_cv_gnu_attr_format" >&6; }
49776    if test "$pac_cv_gnu_attr_pure" = "yes" -a "$pac_cv_gnu_attr_format" = "yes" ; then
49777
49778$as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
49779
49780    fi
49781fi
49782
49783
49784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports __builtin_expect" >&5
49785$as_echo_n "checking if C compiler supports __builtin_expect... " >&6; }
49786
49787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49788/* end confdefs.h.  */
49789
49790int
49791main ()
49792{
49793
49794    return __builtin_expect(1, 1) ? 1 : 0
49795
49796  ;
49797  return 0;
49798}
49799_ACEOF
49800if ac_fn_c_try_link "$LINENO"; then :
49801
49802    have_builtin_expect=yes
49803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49804$as_echo "yes" >&6; }
49805
49806else
49807
49808    have_builtin_expect=no
49809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49810$as_echo "no" >&6; }
49811
49812fi
49813rm -f core conftest.err conftest.$ac_objext \
49814    conftest$ac_exeext conftest.$ac_ext
49815if test x$have_builtin_expect = xyes ; then
49816
49817$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
49818
49819fi
49820
49821
49822    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 _Static_assert functionality" >&5
49823$as_echo_n "checking for C11 _Static_assert functionality... " >&6; }
49824    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49825/* end confdefs.h.  */
49826
49827    int main(){
49828        _Static_assert(1, "The impossible happened!");
49829        return 0;
49830    }
49831
49832_ACEOF
49833if ac_fn_c_try_link "$LINENO"; then :
49834
49835
49836$as_echo "#define HAVE_C11__STATIC_ASSERT 1" >>confdefs.h
49837
49838    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49839$as_echo "yes" >&6; }
49840
49841else
49842
49843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49844$as_echo "no" >&6; }
49845
49846fi
49847rm -f core conftest.err conftest.$ac_objext \
49848    conftest$ac_exeext conftest.$ac_ext
49849
49850
49851# We need to check for the endianess in order to implement the
49852# "external32" representations.  This defines "WORDS_BIGENDIAN when
49853# the system is bigendian.
49854# As of autoconf 2.62, this macro takes an additional argument for systems
49855# that can produce object files for either endianess.
49856# With the as-always-incompatible-with-every-version autoconf, the
49857# arguments for this macro *changed* in 2.62 to
49858# (if-bigendian,if-littleendian,unknown,universal)
49859# The fourth argument is new.
49860# Also note that the definition emitted by autoheader requires that gcc
49861# be used to compile the programs - other compilers may not define the
49862# non-standard __BIG_ENDIAN__ or __LITTLE_ENDIAN__ CPP names on which
49863# autoconf 2.62 now depends.
49864byteOrdering=unknown
49865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
49866$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
49867if ${ac_cv_c_bigendian+:} false; then :
49868  $as_echo_n "(cached) " >&6
49869else
49870  ac_cv_c_bigendian=unknown
49871    # See if we're dealing with a universal compiler.
49872    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49873/* end confdefs.h.  */
49874#ifndef __APPLE_CC__
49875	       not a universal capable compiler
49876	     #endif
49877	     typedef int dummy;
49878
49879_ACEOF
49880if ac_fn_c_try_compile "$LINENO"; then :
49881
49882	# Check for potential -arch flags.  It is not universal unless
49883	# there are at least two -arch flags with different values.
49884	ac_arch=
49885	ac_prev=
49886	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
49887	 if test -n "$ac_prev"; then
49888	   case $ac_word in
49889	     i?86 | x86_64 | ppc | ppc64)
49890	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
49891		 ac_arch=$ac_word
49892	       else
49893		 ac_cv_c_bigendian=universal
49894		 break
49895	       fi
49896	       ;;
49897	   esac
49898	   ac_prev=
49899	 elif test "x$ac_word" = "x-arch"; then
49900	   ac_prev=arch
49901	 fi
49902       done
49903fi
49904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49905    if test $ac_cv_c_bigendian = unknown; then
49906      # See if sys/param.h defines the BYTE_ORDER macro.
49907      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49908/* end confdefs.h.  */
49909#include <sys/types.h>
49910	     #include <sys/param.h>
49911
49912int
49913main ()
49914{
49915#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
49916		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
49917		     && LITTLE_ENDIAN)
49918	      bogus endian macros
49919	     #endif
49920
49921  ;
49922  return 0;
49923}
49924_ACEOF
49925if ac_fn_c_try_compile "$LINENO"; then :
49926  # It does; now see whether it defined to BIG_ENDIAN or not.
49927	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49928/* end confdefs.h.  */
49929#include <sys/types.h>
49930		#include <sys/param.h>
49931
49932int
49933main ()
49934{
49935#if BYTE_ORDER != BIG_ENDIAN
49936		 not big endian
49937		#endif
49938
49939  ;
49940  return 0;
49941}
49942_ACEOF
49943if ac_fn_c_try_compile "$LINENO"; then :
49944  ac_cv_c_bigendian=yes
49945else
49946  ac_cv_c_bigendian=no
49947fi
49948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49949fi
49950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49951    fi
49952    if test $ac_cv_c_bigendian = unknown; then
49953      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
49954      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49955/* end confdefs.h.  */
49956#include <limits.h>
49957
49958int
49959main ()
49960{
49961#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
49962	      bogus endian macros
49963	     #endif
49964
49965  ;
49966  return 0;
49967}
49968_ACEOF
49969if ac_fn_c_try_compile "$LINENO"; then :
49970  # It does; now see whether it defined to _BIG_ENDIAN or not.
49971	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49972/* end confdefs.h.  */
49973#include <limits.h>
49974
49975int
49976main ()
49977{
49978#ifndef _BIG_ENDIAN
49979		 not big endian
49980		#endif
49981
49982  ;
49983  return 0;
49984}
49985_ACEOF
49986if ac_fn_c_try_compile "$LINENO"; then :
49987  ac_cv_c_bigendian=yes
49988else
49989  ac_cv_c_bigendian=no
49990fi
49991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49992fi
49993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49994    fi
49995    if test $ac_cv_c_bigendian = unknown; then
49996      # Compile a test program.
49997      if test "$cross_compiling" = yes; then :
49998  # Try to guess by grepping values from an object file.
49999	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50000/* end confdefs.h.  */
50001short int ascii_mm[] =
50002		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
50003		short int ascii_ii[] =
50004		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
50005		int use_ascii (int i) {
50006		  return ascii_mm[i] + ascii_ii[i];
50007		}
50008		short int ebcdic_ii[] =
50009		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
50010		short int ebcdic_mm[] =
50011		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
50012		int use_ebcdic (int i) {
50013		  return ebcdic_mm[i] + ebcdic_ii[i];
50014		}
50015		extern int foo;
50016
50017int
50018main ()
50019{
50020return use_ascii (foo) == use_ebcdic (foo);
50021  ;
50022  return 0;
50023}
50024_ACEOF
50025if ac_fn_c_try_compile "$LINENO"; then :
50026  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
50027	      ac_cv_c_bigendian=yes
50028	    fi
50029	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
50030	      if test "$ac_cv_c_bigendian" = unknown; then
50031		ac_cv_c_bigendian=no
50032	      else
50033		# finding both strings is unlikely to happen, but who knows?
50034		ac_cv_c_bigendian=unknown
50035	      fi
50036	    fi
50037fi
50038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50039else
50040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50041/* end confdefs.h.  */
50042$ac_includes_default
50043int
50044main ()
50045{
50046
50047	     /* Are we little or big endian?  From Harbison&Steele.  */
50048	     union
50049	     {
50050	       long int l;
50051	       char c[sizeof (long int)];
50052	     } u;
50053	     u.l = 1;
50054	     return u.c[sizeof (long int) - 1] == 1;
50055
50056  ;
50057  return 0;
50058}
50059_ACEOF
50060if ac_fn_c_try_run "$LINENO"; then :
50061  ac_cv_c_bigendian=no
50062else
50063  ac_cv_c_bigendian=yes
50064fi
50065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50066  conftest.$ac_objext conftest.beam conftest.$ac_ext
50067fi
50068
50069    fi
50070fi
50071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
50072$as_echo "$ac_cv_c_bigendian" >&6; }
50073 case $ac_cv_c_bigendian in #(
50074   yes)
50075     byteOrdering=big;; #(
50076   no)
50077     byteOrdering=little ;; #(
50078   universal)
50079     byteOrdering=universal
50080     ;; #(
50081   *)
50082     as_fn_error $? "unknown endianness
50083 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
50084 esac
50085
50086case $byteOrdering in
50087    big)
50088    # Nothing to do - the c_bigendian macro takes care of it
50089    :
50090    ;;
50091    little)
50092
50093$as_echo "#define WORDS_LITTLEENDIAN 1" >>confdefs.h
50094
50095    ;;
50096    universal)
50097
50098$as_echo "#define WORDS_UNIVERSAL_ENDIAN 1" >>confdefs.h
50099
50100    ;;
50101    unknown)
50102    as_fn_error $? "Unable to determine endianess" "$LINENO" 5
50103    ;;
50104esac
50105
50106# We only need this test if we are using Fortran
50107if test "$enable_f77" ; then
50108
50109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler allows unaligned doubles" >&5
50110$as_echo_n "checking whether C compiler allows unaligned doubles... " >&6; }
50111if ${pac_cv_prog_c_unaligned_doubles+:} false; then :
50112  $as_echo_n "(cached) " >&6
50113else
50114
50115if test "$cross_compiling" = yes; then :
50116  pac_cv_prog_c_unaligned_doubles="unknown"
50117else
50118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50119/* end confdefs.h.  */
50120
50121void fetch_double( v )
50122double *v;
50123{
50124*v = 1.0;
50125}
50126int main( argc, argv )
50127int argc;
50128char **argv;
50129{
50130int p[4];
50131double *p_val;
50132fetch_double( (double *)&(p[0]) );
50133p_val = (double *)&(p[0]);
50134if (*p_val != 1.0) return 1;
50135fetch_double( (double *)&(p[1]) );
50136p_val = (double *)&(p[1]);
50137if (*p_val != 1.0) return 1;
50138return 0;
50139}
50140
50141_ACEOF
50142if ac_fn_c_try_run "$LINENO"; then :
50143  pac_cv_prog_c_unaligned_doubles="yes"
50144else
50145  pac_cv_prog_c_unaligned_doubles="no"
50146fi
50147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50148  conftest.$ac_objext conftest.beam conftest.$ac_ext
50149fi
50150
50151fi
50152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_c_unaligned_doubles" >&5
50153$as_echo "$pac_cv_prog_c_unaligned_doubles" >&6; }
50154
50155if test "X$pac_cv_prog_c_unaligned_doubles" = "no" ; then
50156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your C compiler $CC does not support unaligned accesses
50157to doubles.  This is required for interoperation with
50158Fortran (the Fortran standard requires it).
50159You may need to specify an additional argument to your C compiler to
50160force it to allow unaligned accesses." >&5
50161$as_echo "$as_me: WARNING: Your C compiler $CC does not support unaligned accesses
50162to doubles.  This is required for interoperation with
50163Fortran (the Fortran standard requires it).
50164You may need to specify an additional argument to your C compiler to
50165force it to allow unaligned accesses." >&2;}
50166fi
50167
50168
50169fi
50170# Check for __func__ (defined in C99) or __FUNCTION__ (defined in older GCC)
50171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __func__" >&5
50172$as_echo_n "checking whether $CC supports __func__... " >&6; }
50173if ${pac_cv_cc_has___func__+:} false; then :
50174  $as_echo_n "(cached) " >&6
50175else
50176  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50177/* end confdefs.h.  */
50178
50179int
50180main ()
50181{
50182const char *cp = __func__;
50183  ;
50184  return 0;
50185}
50186_ACEOF
50187if ac_fn_c_try_compile "$LINENO"; then :
50188  pac_cv_cc_has___func__=yes
50189else
50190  pac_cv_cc_has___func__=no
50191fi
50192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50193fi
50194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cc_has___func__" >&5
50195$as_echo "$pac_cv_cc_has___func__" >&6; }
50196if test "$pac_cv_cc_has___func__" != "yes" ; then
50197    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __FUNCTION__" >&5
50198$as_echo_n "checking whether $CC supports __FUNCTION__... " >&6; }
50199if ${pac_cv_cc_has___FUNCTION__+:} false; then :
50200  $as_echo_n "(cached) " >&6
50201else
50202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50203/* end confdefs.h.  */
50204
50205int
50206main ()
50207{
50208const char *cp = __FUNCTION__;
50209  ;
50210  return 0;
50211}
50212_ACEOF
50213if ac_fn_c_try_compile "$LINENO"; then :
50214  pac_cv_cc_has___FUNCTION__=yes
50215else
50216  pac_cv_cc_has___FUNCTION__=no
50217fi
50218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50219fi
50220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cc_has___FUNCTION__" >&5
50221$as_echo "$pac_cv_cc_has___FUNCTION__" >&6; }
50222fi
50223
50224# ----------------------------------------------------------------------------
50225# Check on support for long double and long long types.  Do this before the
50226# structure alignment test because it will test for including those
50227# types as well.  In addition, allow the device to suppress support for these
50228# optional C types by setting MPID_NO_LONG_DOUBLE and/or MPID_NO_LONG_LONG
50229# to yes.
50230if test "$MPID_NO_LONG_DOUBLE" != "yes" && test "X$enable_long_double" != "Xno" ; then
50231    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double is supported" >&5
50232$as_echo_n "checking whether long double is supported... " >&6; }
50233if ${pac_cv_have_long_double+:} false; then :
50234  $as_echo_n "(cached) " >&6
50235else
50236
50237    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50238/* end confdefs.h.  */
50239
50240int
50241main ()
50242{
50243long double a;
50244  ;
50245  return 0;
50246}
50247_ACEOF
50248if ac_fn_c_try_compile "$LINENO"; then :
50249  pac_cv_have_long_double=yes
50250else
50251  pac_cv_have_long_double=no
50252fi
50253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50254fi
50255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_long_double" >&5
50256$as_echo "$pac_cv_have_long_double" >&6; }
50257    if test "$pac_cv_have_long_double" = "yes" ; then
50258
50259$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
50260
50261    fi
50262fi
50263if test "$MPID_NO_LONG_LONG" != "yes" ; then
50264    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long long is supported" >&5
50265$as_echo_n "checking whether long long is supported... " >&6; }
50266if ${pac_cv_have_long_long+:} false; then :
50267  $as_echo_n "(cached) " >&6
50268else
50269
50270    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50271/* end confdefs.h.  */
50272
50273int
50274main ()
50275{
50276long long a;
50277  ;
50278  return 0;
50279}
50280_ACEOF
50281if ac_fn_c_try_compile "$LINENO"; then :
50282  pac_cv_have_long_long=yes
50283else
50284  pac_cv_have_long_long=no
50285fi
50286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50287fi
50288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_long_long" >&5
50289$as_echo "$pac_cv_have_long_long" >&6; }
50290    if test "$pac_cv_have_long_long" = "yes" ; then
50291
50292$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
50293
50294    fi
50295fi
50296# Add HAVE_FLOAT16 detection
50297if test "$MPID_NO_FLOAT16" != "yes" ; then
50298    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _Float16 is supported" >&5
50299$as_echo_n "checking whether _Float16 is supported... " >&6; }
50300if ${pac_cv_have_float16+:} false; then :
50301  $as_echo_n "(cached) " >&6
50302else
50303
50304    # The compiler might optimize out _Float16 usage and give a false
50305    # positive for this test (observed with clang 6 on Linux with -O2).
50306    # We use volatile as a way to disable optimizations.
50307    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50308/* end confdefs.h.  */
50309
50310int
50311main ()
50312{
50313volatile _Float16 a=1; return (int)a;
50314  ;
50315  return 0;
50316}
50317_ACEOF
50318if ac_fn_c_try_link "$LINENO"; then :
50319  pac_cv_have_float16=yes
50320else
50321  pac_cv_have_float16=no
50322fi
50323rm -f core conftest.err conftest.$ac_objext \
50324    conftest$ac_exeext conftest.$ac_ext
50325fi
50326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_float16" >&5
50327$as_echo "$pac_cv_have_float16" >&6; }
50328    if test "$pac_cv_have_float16" = "yes" ; then
50329
50330$as_echo "#define HAVE_FLOAT16 1" >>confdefs.h
50331
50332    fi
50333fi
50334
50335# ----------------------------------------------------------------------------
50336# The cast to long int works around a bug in the HP C Compiler,
50337# see AC_CHECK_SIZEOF for more information.
50338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of max_align_t" >&5
50339$as_echo_n "checking alignment of max_align_t... " >&6; }
50340if ${ac_cv_alignof_max_align_t+:} false; then :
50341  $as_echo_n "(cached) " >&6
50342else
50343  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_max_align_t"        "0
50344
50345#ifndef offsetof
50346# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
50347#endif
50348typedef struct { char x; max_align_t y; } ac__type_alignof_;"; then :
50349
50350else
50351  if test "$ac_cv_type_max_align_t" = yes; then
50352     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50353$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50354as_fn_error 77 "cannot compute alignment of max_align_t
50355See \`config.log' for more details" "$LINENO" 5; }
50356   else
50357     ac_cv_alignof_max_align_t=0
50358   fi
50359fi
50360
50361fi
50362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_max_align_t" >&5
50363$as_echo "$ac_cv_alignof_max_align_t" >&6; }
50364
50365
50366
50367cat >>confdefs.h <<_ACEOF
50368#define ALIGNOF_MAX_ALIGN_T $ac_cv_alignof_max_align_t
50369_ACEOF
50370
50371
50372
50373if test "$ac_cv_alignof_max_align_t" != "0" ; then
50374
50375cat >>confdefs.h <<_ACEOF
50376#define MAX_ALIGNMENT $ac_cv_alignof_max_align_t
50377_ACEOF
50378
50379else
50380    # The cast to long int works around a bug in the HP C Compiler,
50381# see AC_CHECK_SIZEOF for more information.
50382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long double" >&5
50383$as_echo_n "checking alignment of long double... " >&6; }
50384if ${ac_cv_alignof_long_double+:} false; then :
50385  $as_echo_n "(cached) " >&6
50386else
50387  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_double"        "$ac_includes_default
50388#ifndef offsetof
50389# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
50390#endif
50391typedef struct { char x; long double y; } ac__type_alignof_;"; then :
50392
50393else
50394  if test "$ac_cv_type_long_double" = yes; then
50395     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50397as_fn_error 77 "cannot compute alignment of long double
50398See \`config.log' for more details" "$LINENO" 5; }
50399   else
50400     ac_cv_alignof_long_double=0
50401   fi
50402fi
50403
50404fi
50405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_double" >&5
50406$as_echo "$ac_cv_alignof_long_double" >&6; }
50407
50408
50409
50410cat >>confdefs.h <<_ACEOF
50411#define ALIGNOF_LONG_DOUBLE $ac_cv_alignof_long_double
50412_ACEOF
50413
50414
50415
50416cat >>confdefs.h <<_ACEOF
50417#define MAX_ALIGNMENT $ac_cv_alignof_long_double
50418_ACEOF
50419
50420fi
50421
50422# There are further alignment checks after we test for int64_t etc. below.
50423
50424# Get the size of the C types for encoding in the basic datatypes and for
50425# the specific-sized integers
50426# The cast to long int works around a bug in the HP C Compiler
50427# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50428# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50429# This bug is HP SR number 8606223364.
50430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
50431$as_echo_n "checking size of char... " >&6; }
50432if ${ac_cv_sizeof_char+:} false; then :
50433  $as_echo_n "(cached) " >&6
50434else
50435  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
50436
50437else
50438  if test "$ac_cv_type_char" = yes; then
50439     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50441as_fn_error 77 "cannot compute sizeof (char)
50442See \`config.log' for more details" "$LINENO" 5; }
50443   else
50444     ac_cv_sizeof_char=0
50445   fi
50446fi
50447
50448fi
50449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
50450$as_echo "$ac_cv_sizeof_char" >&6; }
50451
50452
50453
50454cat >>confdefs.h <<_ACEOF
50455#define SIZEOF_CHAR $ac_cv_sizeof_char
50456_ACEOF
50457
50458
50459# The cast to long int works around a bug in the HP C Compiler
50460# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50461# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50462# This bug is HP SR number 8606223364.
50463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char" >&5
50464$as_echo_n "checking size of unsigned char... " >&6; }
50465if ${ac_cv_sizeof_unsigned_char+:} false; then :
50466  $as_echo_n "(cached) " >&6
50467else
50468  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char))" "ac_cv_sizeof_unsigned_char"        "$ac_includes_default"; then :
50469
50470else
50471  if test "$ac_cv_type_unsigned_char" = yes; then
50472     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50474as_fn_error 77 "cannot compute sizeof (unsigned char)
50475See \`config.log' for more details" "$LINENO" 5; }
50476   else
50477     ac_cv_sizeof_unsigned_char=0
50478   fi
50479fi
50480
50481fi
50482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char" >&5
50483$as_echo "$ac_cv_sizeof_unsigned_char" >&6; }
50484
50485
50486
50487cat >>confdefs.h <<_ACEOF
50488#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
50489_ACEOF
50490
50491
50492# The cast to long int works around a bug in the HP C Compiler
50493# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50494# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50495# This bug is HP SR number 8606223364.
50496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
50497$as_echo_n "checking size of short... " >&6; }
50498if ${ac_cv_sizeof_short+:} false; then :
50499  $as_echo_n "(cached) " >&6
50500else
50501  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
50502
50503else
50504  if test "$ac_cv_type_short" = yes; then
50505     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50507as_fn_error 77 "cannot compute sizeof (short)
50508See \`config.log' for more details" "$LINENO" 5; }
50509   else
50510     ac_cv_sizeof_short=0
50511   fi
50512fi
50513
50514fi
50515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
50516$as_echo "$ac_cv_sizeof_short" >&6; }
50517
50518
50519
50520cat >>confdefs.h <<_ACEOF
50521#define SIZEOF_SHORT $ac_cv_sizeof_short
50522_ACEOF
50523
50524
50525# The cast to long int works around a bug in the HP C Compiler
50526# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50527# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50528# This bug is HP SR number 8606223364.
50529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
50530$as_echo_n "checking size of unsigned short... " >&6; }
50531if ${ac_cv_sizeof_unsigned_short+:} false; then :
50532  $as_echo_n "(cached) " >&6
50533else
50534  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
50535
50536else
50537  if test "$ac_cv_type_unsigned_short" = yes; then
50538     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50540as_fn_error 77 "cannot compute sizeof (unsigned short)
50541See \`config.log' for more details" "$LINENO" 5; }
50542   else
50543     ac_cv_sizeof_unsigned_short=0
50544   fi
50545fi
50546
50547fi
50548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
50549$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
50550
50551
50552
50553cat >>confdefs.h <<_ACEOF
50554#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
50555_ACEOF
50556
50557
50558# The cast to long int works around a bug in the HP C Compiler
50559# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50560# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50561# This bug is HP SR number 8606223364.
50562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
50563$as_echo_n "checking size of int... " >&6; }
50564if ${ac_cv_sizeof_int+:} false; then :
50565  $as_echo_n "(cached) " >&6
50566else
50567  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
50568
50569else
50570  if test "$ac_cv_type_int" = yes; then
50571     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50572$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50573as_fn_error 77 "cannot compute sizeof (int)
50574See \`config.log' for more details" "$LINENO" 5; }
50575   else
50576     ac_cv_sizeof_int=0
50577   fi
50578fi
50579
50580fi
50581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
50582$as_echo "$ac_cv_sizeof_int" >&6; }
50583
50584
50585
50586cat >>confdefs.h <<_ACEOF
50587#define SIZEOF_INT $ac_cv_sizeof_int
50588_ACEOF
50589
50590
50591# The cast to long int works around a bug in the HP C Compiler
50592# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50593# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50594# This bug is HP SR number 8606223364.
50595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
50596$as_echo_n "checking size of unsigned int... " >&6; }
50597if ${ac_cv_sizeof_unsigned_int+:} false; then :
50598  $as_echo_n "(cached) " >&6
50599else
50600  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
50601
50602else
50603  if test "$ac_cv_type_unsigned_int" = yes; then
50604     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50606as_fn_error 77 "cannot compute sizeof (unsigned int)
50607See \`config.log' for more details" "$LINENO" 5; }
50608   else
50609     ac_cv_sizeof_unsigned_int=0
50610   fi
50611fi
50612
50613fi
50614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
50615$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
50616
50617
50618
50619cat >>confdefs.h <<_ACEOF
50620#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
50621_ACEOF
50622
50623
50624# The cast to long int works around a bug in the HP C Compiler
50625# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50626# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50627# This bug is HP SR number 8606223364.
50628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
50629$as_echo_n "checking size of long... " >&6; }
50630if ${ac_cv_sizeof_long+:} false; then :
50631  $as_echo_n "(cached) " >&6
50632else
50633  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
50634
50635else
50636  if test "$ac_cv_type_long" = yes; then
50637     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50639as_fn_error 77 "cannot compute sizeof (long)
50640See \`config.log' for more details" "$LINENO" 5; }
50641   else
50642     ac_cv_sizeof_long=0
50643   fi
50644fi
50645
50646fi
50647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
50648$as_echo "$ac_cv_sizeof_long" >&6; }
50649
50650
50651
50652cat >>confdefs.h <<_ACEOF
50653#define SIZEOF_LONG $ac_cv_sizeof_long
50654_ACEOF
50655
50656
50657# The cast to long int works around a bug in the HP C Compiler
50658# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50659# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50660# This bug is HP SR number 8606223364.
50661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
50662$as_echo_n "checking size of unsigned long... " >&6; }
50663if ${ac_cv_sizeof_unsigned_long+:} false; then :
50664  $as_echo_n "(cached) " >&6
50665else
50666  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
50667
50668else
50669  if test "$ac_cv_type_unsigned_long" = yes; then
50670     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50672as_fn_error 77 "cannot compute sizeof (unsigned long)
50673See \`config.log' for more details" "$LINENO" 5; }
50674   else
50675     ac_cv_sizeof_unsigned_long=0
50676   fi
50677fi
50678
50679fi
50680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
50681$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
50682
50683
50684
50685cat >>confdefs.h <<_ACEOF
50686#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
50687_ACEOF
50688
50689
50690# The cast to long int works around a bug in the HP C Compiler
50691# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50692# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50693# This bug is HP SR number 8606223364.
50694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
50695$as_echo_n "checking size of long long... " >&6; }
50696if ${ac_cv_sizeof_long_long+:} false; then :
50697  $as_echo_n "(cached) " >&6
50698else
50699  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
50700
50701else
50702  if test "$ac_cv_type_long_long" = yes; then
50703     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50705as_fn_error 77 "cannot compute sizeof (long long)
50706See \`config.log' for more details" "$LINENO" 5; }
50707   else
50708     ac_cv_sizeof_long_long=0
50709   fi
50710fi
50711
50712fi
50713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
50714$as_echo "$ac_cv_sizeof_long_long" >&6; }
50715
50716
50717
50718cat >>confdefs.h <<_ACEOF
50719#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
50720_ACEOF
50721
50722
50723# The cast to long int works around a bug in the HP C Compiler
50724# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50725# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50726# This bug is HP SR number 8606223364.
50727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
50728$as_echo_n "checking size of unsigned long long... " >&6; }
50729if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
50730  $as_echo_n "(cached) " >&6
50731else
50732  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
50733
50734else
50735  if test "$ac_cv_type_unsigned_long_long" = yes; then
50736     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50737$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50738as_fn_error 77 "cannot compute sizeof (unsigned long long)
50739See \`config.log' for more details" "$LINENO" 5; }
50740   else
50741     ac_cv_sizeof_unsigned_long_long=0
50742   fi
50743fi
50744
50745fi
50746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
50747$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
50748
50749
50750
50751cat >>confdefs.h <<_ACEOF
50752#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
50753_ACEOF
50754
50755
50756# The cast to long int works around a bug in the HP C Compiler
50757# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50758# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50759# This bug is HP SR number 8606223364.
50760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
50761$as_echo_n "checking size of float... " >&6; }
50762if ${ac_cv_sizeof_float+:} false; then :
50763  $as_echo_n "(cached) " >&6
50764else
50765  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
50766
50767else
50768  if test "$ac_cv_type_float" = yes; then
50769     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50771as_fn_error 77 "cannot compute sizeof (float)
50772See \`config.log' for more details" "$LINENO" 5; }
50773   else
50774     ac_cv_sizeof_float=0
50775   fi
50776fi
50777
50778fi
50779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
50780$as_echo "$ac_cv_sizeof_float" >&6; }
50781
50782
50783
50784cat >>confdefs.h <<_ACEOF
50785#define SIZEOF_FLOAT $ac_cv_sizeof_float
50786_ACEOF
50787
50788
50789# The cast to long int works around a bug in the HP C Compiler
50790# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50791# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50792# This bug is HP SR number 8606223364.
50793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
50794$as_echo_n "checking size of double... " >&6; }
50795if ${ac_cv_sizeof_double+:} false; then :
50796  $as_echo_n "(cached) " >&6
50797else
50798  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
50799
50800else
50801  if test "$ac_cv_type_double" = yes; then
50802     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50804as_fn_error 77 "cannot compute sizeof (double)
50805See \`config.log' for more details" "$LINENO" 5; }
50806   else
50807     ac_cv_sizeof_double=0
50808   fi
50809fi
50810
50811fi
50812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
50813$as_echo "$ac_cv_sizeof_double" >&6; }
50814
50815
50816
50817cat >>confdefs.h <<_ACEOF
50818#define SIZEOF_DOUBLE $ac_cv_sizeof_double
50819_ACEOF
50820
50821
50822# The cast to long int works around a bug in the HP C Compiler
50823# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50824# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50825# This bug is HP SR number 8606223364.
50826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
50827$as_echo_n "checking size of long double... " >&6; }
50828if ${ac_cv_sizeof_long_double+:} false; then :
50829  $as_echo_n "(cached) " >&6
50830else
50831  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
50832
50833else
50834  if test "$ac_cv_type_long_double" = yes; then
50835     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50836$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50837as_fn_error 77 "cannot compute sizeof (long double)
50838See \`config.log' for more details" "$LINENO" 5; }
50839   else
50840     ac_cv_sizeof_long_double=0
50841   fi
50842fi
50843
50844fi
50845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
50846$as_echo "$ac_cv_sizeof_long_double" >&6; }
50847
50848
50849
50850cat >>confdefs.h <<_ACEOF
50851#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
50852_ACEOF
50853
50854
50855# The cast to long int works around a bug in the HP C Compiler
50856# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50857# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50858# This bug is HP SR number 8606223364.
50859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
50860$as_echo_n "checking size of void *... " >&6; }
50861if ${ac_cv_sizeof_void_p+:} false; then :
50862  $as_echo_n "(cached) " >&6
50863else
50864  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
50865
50866else
50867  if test "$ac_cv_type_void_p" = yes; then
50868     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
50869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
50870as_fn_error 77 "cannot compute sizeof (void *)
50871See \`config.log' for more details" "$LINENO" 5; }
50872   else
50873     ac_cv_sizeof_void_p=0
50874   fi
50875fi
50876
50877fi
50878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
50879$as_echo "$ac_cv_sizeof_void_p" >&6; }
50880
50881
50882
50883cat >>confdefs.h <<_ACEOF
50884#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
50885_ACEOF
50886
50887
50888
50889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
50890$as_echo_n "checking for ANSI C header files... " >&6; }
50891if ${ac_cv_header_stdc+:} false; then :
50892  $as_echo_n "(cached) " >&6
50893else
50894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50895/* end confdefs.h.  */
50896#include <stdlib.h>
50897#include <stdarg.h>
50898#include <string.h>
50899#include <float.h>
50900
50901int
50902main ()
50903{
50904
50905  ;
50906  return 0;
50907}
50908_ACEOF
50909if ac_fn_c_try_compile "$LINENO"; then :
50910  ac_cv_header_stdc=yes
50911else
50912  ac_cv_header_stdc=no
50913fi
50914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50915
50916if test $ac_cv_header_stdc = yes; then
50917  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
50918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50919/* end confdefs.h.  */
50920#include <string.h>
50921
50922_ACEOF
50923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50924  $EGREP "memchr" >/dev/null 2>&1; then :
50925
50926else
50927  ac_cv_header_stdc=no
50928fi
50929rm -f conftest*
50930
50931fi
50932
50933if test $ac_cv_header_stdc = yes; then
50934  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
50935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50936/* end confdefs.h.  */
50937#include <stdlib.h>
50938
50939_ACEOF
50940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50941  $EGREP "free" >/dev/null 2>&1; then :
50942
50943else
50944  ac_cv_header_stdc=no
50945fi
50946rm -f conftest*
50947
50948fi
50949
50950if test $ac_cv_header_stdc = yes; then
50951  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
50952  if test "$cross_compiling" = yes; then :
50953  :
50954else
50955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50956/* end confdefs.h.  */
50957#include <ctype.h>
50958#include <stdlib.h>
50959#if ((' ' & 0x0FF) == 0x020)
50960# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
50961# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
50962#else
50963# define ISLOWER(c) \
50964		   (('a' <= (c) && (c) <= 'i') \
50965		     || ('j' <= (c) && (c) <= 'r') \
50966		     || ('s' <= (c) && (c) <= 'z'))
50967# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
50968#endif
50969
50970#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
50971int
50972main ()
50973{
50974  int i;
50975  for (i = 0; i < 256; i++)
50976    if (XOR (islower (i), ISLOWER (i))
50977	|| toupper (i) != TOUPPER (i))
50978      return 2;
50979  return 0;
50980}
50981_ACEOF
50982if ac_fn_c_try_run "$LINENO"; then :
50983
50984else
50985  ac_cv_header_stdc=no
50986fi
50987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
50988  conftest.$ac_objext conftest.beam conftest.$ac_ext
50989fi
50990
50991fi
50992fi
50993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
50994$as_echo "$ac_cv_header_stdc" >&6; }
50995if test $ac_cv_header_stdc = yes; then
50996
50997$as_echo "#define STDC_HEADERS 1" >>confdefs.h
50998
50999fi
51000
51001for ac_header in stddef.h
51002do :
51003  ac_fn_c_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
51004if test "x$ac_cv_header_stddef_h" = xyes; then :
51005  cat >>confdefs.h <<_ACEOF
51006#define HAVE_STDDEF_H 1
51007_ACEOF
51008
51009fi
51010
51011done
51012
51013# The cast to long int works around a bug in the HP C Compiler
51014# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51015# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51016# This bug is HP SR number 8606223364.
51017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
51018$as_echo_n "checking size of wchar_t... " >&6; }
51019if ${ac_cv_sizeof_wchar_t+:} false; then :
51020  $as_echo_n "(cached) " >&6
51021else
51022  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "
51023#ifdef HAVE_STDDEF_H
51024#include <stddef.h>
51025#endif
51026
51027"; then :
51028
51029else
51030  if test "$ac_cv_type_wchar_t" = yes; then
51031     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51033as_fn_error 77 "cannot compute sizeof (wchar_t)
51034See \`config.log' for more details" "$LINENO" 5; }
51035   else
51036     ac_cv_sizeof_wchar_t=0
51037   fi
51038fi
51039
51040fi
51041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
51042$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
51043
51044
51045
51046cat >>confdefs.h <<_ACEOF
51047#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
51048_ACEOF
51049
51050
51051
51052# The cast to long int works around a bug in the HP C Compiler
51053# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51054# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51055# This bug is HP SR number 8606223364.
51056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __float128" >&5
51057$as_echo_n "checking size of __float128... " >&6; }
51058if ${ac_cv_sizeof___float128+:} false; then :
51059  $as_echo_n "(cached) " >&6
51060else
51061  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__float128))" "ac_cv_sizeof___float128"        "$ac_includes_default"; then :
51062
51063else
51064  if test "$ac_cv_type___float128" = yes; then
51065     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51067as_fn_error 77 "cannot compute sizeof (__float128)
51068See \`config.log' for more details" "$LINENO" 5; }
51069   else
51070     ac_cv_sizeof___float128=0
51071   fi
51072fi
51073
51074fi
51075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___float128" >&5
51076$as_echo "$ac_cv_sizeof___float128" >&6; }
51077
51078
51079
51080cat >>confdefs.h <<_ACEOF
51081#define SIZEOF___FLOAT128 $ac_cv_sizeof___float128
51082_ACEOF
51083
51084
51085
51086# The cast to long int works around a bug in the HP C Compiler
51087# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51088# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51089# This bug is HP SR number 8606223364.
51090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_int" >&5
51091$as_echo_n "checking size of float_int... " >&6; }
51092if ${ac_cv_sizeof_float_int+:} false; then :
51093  $as_echo_n "(cached) " >&6
51094else
51095  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_int))" "ac_cv_sizeof_float_int"        "typedef struct { float a; int b; } float_int;
51096"; then :
51097
51098else
51099  if test "$ac_cv_type_float_int" = yes; then
51100     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51102as_fn_error 77 "cannot compute sizeof (float_int)
51103See \`config.log' for more details" "$LINENO" 5; }
51104   else
51105     ac_cv_sizeof_float_int=0
51106   fi
51107fi
51108
51109fi
51110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_int" >&5
51111$as_echo "$ac_cv_sizeof_float_int" >&6; }
51112
51113
51114
51115cat >>confdefs.h <<_ACEOF
51116#define SIZEOF_FLOAT_INT $ac_cv_sizeof_float_int
51117_ACEOF
51118
51119
51120# The cast to long int works around a bug in the HP C Compiler
51121# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51122# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51123# This bug is HP SR number 8606223364.
51124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_int" >&5
51125$as_echo_n "checking size of double_int... " >&6; }
51126if ${ac_cv_sizeof_double_int+:} false; then :
51127  $as_echo_n "(cached) " >&6
51128else
51129  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_int))" "ac_cv_sizeof_double_int"        "typedef struct { double a; int b; } double_int;
51130"; then :
51131
51132else
51133  if test "$ac_cv_type_double_int" = yes; then
51134     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51136as_fn_error 77 "cannot compute sizeof (double_int)
51137See \`config.log' for more details" "$LINENO" 5; }
51138   else
51139     ac_cv_sizeof_double_int=0
51140   fi
51141fi
51142
51143fi
51144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_int" >&5
51145$as_echo "$ac_cv_sizeof_double_int" >&6; }
51146
51147
51148
51149cat >>confdefs.h <<_ACEOF
51150#define SIZEOF_DOUBLE_INT $ac_cv_sizeof_double_int
51151_ACEOF
51152
51153
51154# The cast to long int works around a bug in the HP C Compiler
51155# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51156# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51157# This bug is HP SR number 8606223364.
51158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long_int" >&5
51159$as_echo_n "checking size of long_int... " >&6; }
51160if ${ac_cv_sizeof_long_int+:} false; then :
51161  $as_echo_n "(cached) " >&6
51162else
51163  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long_int))" "ac_cv_sizeof_long_int"        "typedef struct { long a; int b; } long_int;
51164"; then :
51165
51166else
51167  if test "$ac_cv_type_long_int" = yes; then
51168     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51170as_fn_error 77 "cannot compute sizeof (long_int)
51171See \`config.log' for more details" "$LINENO" 5; }
51172   else
51173     ac_cv_sizeof_long_int=0
51174   fi
51175fi
51176
51177fi
51178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
51179$as_echo "$ac_cv_sizeof_long_int" >&6; }
51180
51181
51182
51183cat >>confdefs.h <<_ACEOF
51184#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
51185_ACEOF
51186
51187
51188# The cast to long int works around a bug in the HP C Compiler
51189# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51190# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51191# This bug is HP SR number 8606223364.
51192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short_int" >&5
51193$as_echo_n "checking size of short_int... " >&6; }
51194if ${ac_cv_sizeof_short_int+:} false; then :
51195  $as_echo_n "(cached) " >&6
51196else
51197  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short_int))" "ac_cv_sizeof_short_int"        "typedef struct { short a; int b; } short_int;
51198"; then :
51199
51200else
51201  if test "$ac_cv_type_short_int" = yes; then
51202     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51204as_fn_error 77 "cannot compute sizeof (short_int)
51205See \`config.log' for more details" "$LINENO" 5; }
51206   else
51207     ac_cv_sizeof_short_int=0
51208   fi
51209fi
51210
51211fi
51212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
51213$as_echo "$ac_cv_sizeof_short_int" >&6; }
51214
51215
51216
51217cat >>confdefs.h <<_ACEOF
51218#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
51219_ACEOF
51220
51221
51222# The cast to long int works around a bug in the HP C Compiler
51223# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51224# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51225# This bug is HP SR number 8606223364.
51226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of two_int" >&5
51227$as_echo_n "checking size of two_int... " >&6; }
51228if ${ac_cv_sizeof_two_int+:} false; then :
51229  $as_echo_n "(cached) " >&6
51230else
51231  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (two_int))" "ac_cv_sizeof_two_int"        "typedef struct { int a; int b; } two_int;
51232"; then :
51233
51234else
51235  if test "$ac_cv_type_two_int" = yes; then
51236     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51238as_fn_error 77 "cannot compute sizeof (two_int)
51239See \`config.log' for more details" "$LINENO" 5; }
51240   else
51241     ac_cv_sizeof_two_int=0
51242   fi
51243fi
51244
51245fi
51246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_two_int" >&5
51247$as_echo "$ac_cv_sizeof_two_int" >&6; }
51248
51249
51250
51251cat >>confdefs.h <<_ACEOF
51252#define SIZEOF_TWO_INT $ac_cv_sizeof_two_int
51253_ACEOF
51254
51255
51256# The cast to long int works around a bug in the HP C Compiler
51257# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51258# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51259# This bug is HP SR number 8606223364.
51260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long_double_int" >&5
51261$as_echo_n "checking size of long_double_int... " >&6; }
51262if ${ac_cv_sizeof_long_double_int+:} false; then :
51263  $as_echo_n "(cached) " >&6
51264else
51265  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long_double_int))" "ac_cv_sizeof_long_double_int"        "typedef struct { long double a; int b;} long_double_int;
51266"; then :
51267
51268else
51269  if test "$ac_cv_type_long_double_int" = yes; then
51270     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51272as_fn_error 77 "cannot compute sizeof (long_double_int)
51273See \`config.log' for more details" "$LINENO" 5; }
51274   else
51275     ac_cv_sizeof_long_double_int=0
51276   fi
51277fi
51278
51279fi
51280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double_int" >&5
51281$as_echo "$ac_cv_sizeof_long_double_int" >&6; }
51282
51283
51284
51285cat >>confdefs.h <<_ACEOF
51286#define SIZEOF_LONG_DOUBLE_INT $ac_cv_sizeof_long_double_int
51287_ACEOF
51288
51289
51290
51291# alignments for basic types
51292# The cast to long int works around a bug in the HP C Compiler,
51293# see AC_CHECK_SIZEOF for more information.
51294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of char" >&5
51295$as_echo_n "checking alignment of char... " >&6; }
51296if ${ac_cv_alignof_char+:} false; then :
51297  $as_echo_n "(cached) " >&6
51298else
51299  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_char"        "$ac_includes_default
51300#ifndef offsetof
51301# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51302#endif
51303typedef struct { char x; char y; } ac__type_alignof_;"; then :
51304
51305else
51306  if test "$ac_cv_type_char" = yes; then
51307     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51309as_fn_error 77 "cannot compute alignment of char
51310See \`config.log' for more details" "$LINENO" 5; }
51311   else
51312     ac_cv_alignof_char=0
51313   fi
51314fi
51315
51316fi
51317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_char" >&5
51318$as_echo "$ac_cv_alignof_char" >&6; }
51319
51320
51321
51322cat >>confdefs.h <<_ACEOF
51323#define ALIGNOF_CHAR $ac_cv_alignof_char
51324_ACEOF
51325
51326
51327# The cast to long int works around a bug in the HP C Compiler,
51328# see AC_CHECK_SIZEOF for more information.
51329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of float" >&5
51330$as_echo_n "checking alignment of float... " >&6; }
51331if ${ac_cv_alignof_float+:} false; then :
51332  $as_echo_n "(cached) " >&6
51333else
51334  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_float"        "$ac_includes_default
51335#ifndef offsetof
51336# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51337#endif
51338typedef struct { char x; float y; } ac__type_alignof_;"; then :
51339
51340else
51341  if test "$ac_cv_type_float" = yes; then
51342     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51344as_fn_error 77 "cannot compute alignment of float
51345See \`config.log' for more details" "$LINENO" 5; }
51346   else
51347     ac_cv_alignof_float=0
51348   fi
51349fi
51350
51351fi
51352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_float" >&5
51353$as_echo "$ac_cv_alignof_float" >&6; }
51354
51355
51356
51357cat >>confdefs.h <<_ACEOF
51358#define ALIGNOF_FLOAT $ac_cv_alignof_float
51359_ACEOF
51360
51361
51362# The cast to long int works around a bug in the HP C Compiler,
51363# see AC_CHECK_SIZEOF for more information.
51364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
51365$as_echo_n "checking alignment of double... " >&6; }
51366if ${ac_cv_alignof_double+:} false; then :
51367  $as_echo_n "(cached) " >&6
51368else
51369  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double"        "$ac_includes_default
51370#ifndef offsetof
51371# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51372#endif
51373typedef struct { char x; double y; } ac__type_alignof_;"; then :
51374
51375else
51376  if test "$ac_cv_type_double" = yes; then
51377     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51379as_fn_error 77 "cannot compute alignment of double
51380See \`config.log' for more details" "$LINENO" 5; }
51381   else
51382     ac_cv_alignof_double=0
51383   fi
51384fi
51385
51386fi
51387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
51388$as_echo "$ac_cv_alignof_double" >&6; }
51389
51390
51391
51392cat >>confdefs.h <<_ACEOF
51393#define ALIGNOF_DOUBLE $ac_cv_alignof_double
51394_ACEOF
51395
51396
51397# The cast to long int works around a bug in the HP C Compiler,
51398# see AC_CHECK_SIZEOF for more information.
51399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
51400$as_echo_n "checking alignment of long... " >&6; }
51401if ${ac_cv_alignof_long+:} false; then :
51402  $as_echo_n "(cached) " >&6
51403else
51404  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long"        "$ac_includes_default
51405#ifndef offsetof
51406# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51407#endif
51408typedef struct { char x; long y; } ac__type_alignof_;"; then :
51409
51410else
51411  if test "$ac_cv_type_long" = yes; then
51412     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51414as_fn_error 77 "cannot compute alignment of long
51415See \`config.log' for more details" "$LINENO" 5; }
51416   else
51417     ac_cv_alignof_long=0
51418   fi
51419fi
51420
51421fi
51422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
51423$as_echo "$ac_cv_alignof_long" >&6; }
51424
51425
51426
51427cat >>confdefs.h <<_ACEOF
51428#define ALIGNOF_LONG $ac_cv_alignof_long
51429_ACEOF
51430
51431
51432# The cast to long int works around a bug in the HP C Compiler,
51433# see AC_CHECK_SIZEOF for more information.
51434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long" >&5
51435$as_echo_n "checking alignment of long long... " >&6; }
51436if ${ac_cv_alignof_long_long+:} false; then :
51437  $as_echo_n "(cached) " >&6
51438else
51439  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_long"        "$ac_includes_default
51440#ifndef offsetof
51441# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51442#endif
51443typedef struct { char x; long long y; } ac__type_alignof_;"; then :
51444
51445else
51446  if test "$ac_cv_type_long_long" = yes; then
51447     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51449as_fn_error 77 "cannot compute alignment of long long
51450See \`config.log' for more details" "$LINENO" 5; }
51451   else
51452     ac_cv_alignof_long_long=0
51453   fi
51454fi
51455
51456fi
51457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_long" >&5
51458$as_echo "$ac_cv_alignof_long_long" >&6; }
51459
51460
51461
51462cat >>confdefs.h <<_ACEOF
51463#define ALIGNOF_LONG_LONG $ac_cv_alignof_long_long
51464_ACEOF
51465
51466
51467# The cast to long int works around a bug in the HP C Compiler,
51468# see AC_CHECK_SIZEOF for more information.
51469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long double" >&5
51470$as_echo_n "checking alignment of long double... " >&6; }
51471if ${ac_cv_alignof_long_double+:} false; then :
51472  $as_echo_n "(cached) " >&6
51473else
51474  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long_double"        "$ac_includes_default
51475#ifndef offsetof
51476# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51477#endif
51478typedef struct { char x; long double y; } ac__type_alignof_;"; then :
51479
51480else
51481  if test "$ac_cv_type_long_double" = yes; then
51482     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51484as_fn_error 77 "cannot compute alignment of long double
51485See \`config.log' for more details" "$LINENO" 5; }
51486   else
51487     ac_cv_alignof_long_double=0
51488   fi
51489fi
51490
51491fi
51492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long_double" >&5
51493$as_echo "$ac_cv_alignof_long_double" >&6; }
51494
51495
51496
51497cat >>confdefs.h <<_ACEOF
51498#define ALIGNOF_LONG_DOUBLE $ac_cv_alignof_long_double
51499_ACEOF
51500
51501
51502# The cast to long int works around a bug in the HP C Compiler,
51503# see AC_CHECK_SIZEOF for more information.
51504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
51505$as_echo_n "checking alignment of short... " >&6; }
51506if ${ac_cv_alignof_short+:} false; then :
51507  $as_echo_n "(cached) " >&6
51508else
51509  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_short"        "$ac_includes_default
51510#ifndef offsetof
51511# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51512#endif
51513typedef struct { char x; short y; } ac__type_alignof_;"; then :
51514
51515else
51516  if test "$ac_cv_type_short" = yes; then
51517     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51519as_fn_error 77 "cannot compute alignment of short
51520See \`config.log' for more details" "$LINENO" 5; }
51521   else
51522     ac_cv_alignof_short=0
51523   fi
51524fi
51525
51526fi
51527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_short" >&5
51528$as_echo "$ac_cv_alignof_short" >&6; }
51529
51530
51531
51532cat >>confdefs.h <<_ACEOF
51533#define ALIGNOF_SHORT $ac_cv_alignof_short
51534_ACEOF
51535
51536
51537# The cast to long int works around a bug in the HP C Compiler,
51538# see AC_CHECK_SIZEOF for more information.
51539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
51540$as_echo_n "checking alignment of int... " >&6; }
51541if ${ac_cv_alignof_int+:} false; then :
51542  $as_echo_n "(cached) " >&6
51543else
51544  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int"        "$ac_includes_default
51545#ifndef offsetof
51546# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51547#endif
51548typedef struct { char x; int y; } ac__type_alignof_;"; then :
51549
51550else
51551  if test "$ac_cv_type_int" = yes; then
51552     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51554as_fn_error 77 "cannot compute alignment of int
51555See \`config.log' for more details" "$LINENO" 5; }
51556   else
51557     ac_cv_alignof_int=0
51558   fi
51559fi
51560
51561fi
51562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int" >&5
51563$as_echo "$ac_cv_alignof_int" >&6; }
51564
51565
51566
51567cat >>confdefs.h <<_ACEOF
51568#define ALIGNOF_INT $ac_cv_alignof_int
51569_ACEOF
51570
51571
51572# The cast to long int works around a bug in the HP C Compiler,
51573# see AC_CHECK_SIZEOF for more information.
51574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int8_t" >&5
51575$as_echo_n "checking alignment of int8_t... " >&6; }
51576if ${ac_cv_alignof_int8_t+:} false; then :
51577  $as_echo_n "(cached) " >&6
51578else
51579  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int8_t"        "$ac_includes_default
51580#ifndef offsetof
51581# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51582#endif
51583typedef struct { char x; int8_t y; } ac__type_alignof_;"; then :
51584
51585else
51586  if test "$ac_cv_type_int8_t" = yes; then
51587     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51589as_fn_error 77 "cannot compute alignment of int8_t
51590See \`config.log' for more details" "$LINENO" 5; }
51591   else
51592     ac_cv_alignof_int8_t=0
51593   fi
51594fi
51595
51596fi
51597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int8_t" >&5
51598$as_echo "$ac_cv_alignof_int8_t" >&6; }
51599
51600
51601
51602cat >>confdefs.h <<_ACEOF
51603#define ALIGNOF_INT8_T $ac_cv_alignof_int8_t
51604_ACEOF
51605
51606
51607# The cast to long int works around a bug in the HP C Compiler,
51608# see AC_CHECK_SIZEOF for more information.
51609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int16_t" >&5
51610$as_echo_n "checking alignment of int16_t... " >&6; }
51611if ${ac_cv_alignof_int16_t+:} false; then :
51612  $as_echo_n "(cached) " >&6
51613else
51614  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int16_t"        "$ac_includes_default
51615#ifndef offsetof
51616# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51617#endif
51618typedef struct { char x; int16_t y; } ac__type_alignof_;"; then :
51619
51620else
51621  if test "$ac_cv_type_int16_t" = yes; then
51622     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51624as_fn_error 77 "cannot compute alignment of int16_t
51625See \`config.log' for more details" "$LINENO" 5; }
51626   else
51627     ac_cv_alignof_int16_t=0
51628   fi
51629fi
51630
51631fi
51632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int16_t" >&5
51633$as_echo "$ac_cv_alignof_int16_t" >&6; }
51634
51635
51636
51637cat >>confdefs.h <<_ACEOF
51638#define ALIGNOF_INT16_T $ac_cv_alignof_int16_t
51639_ACEOF
51640
51641
51642# The cast to long int works around a bug in the HP C Compiler,
51643# see AC_CHECK_SIZEOF for more information.
51644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int32_t" >&5
51645$as_echo_n "checking alignment of int32_t... " >&6; }
51646if ${ac_cv_alignof_int32_t+:} false; then :
51647  $as_echo_n "(cached) " >&6
51648else
51649  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int32_t"        "$ac_includes_default
51650#ifndef offsetof
51651# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51652#endif
51653typedef struct { char x; int32_t y; } ac__type_alignof_;"; then :
51654
51655else
51656  if test "$ac_cv_type_int32_t" = yes; then
51657     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51659as_fn_error 77 "cannot compute alignment of int32_t
51660See \`config.log' for more details" "$LINENO" 5; }
51661   else
51662     ac_cv_alignof_int32_t=0
51663   fi
51664fi
51665
51666fi
51667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int32_t" >&5
51668$as_echo "$ac_cv_alignof_int32_t" >&6; }
51669
51670
51671
51672cat >>confdefs.h <<_ACEOF
51673#define ALIGNOF_INT32_T $ac_cv_alignof_int32_t
51674_ACEOF
51675
51676
51677# The cast to long int works around a bug in the HP C Compiler,
51678# see AC_CHECK_SIZEOF for more information.
51679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int64_t" >&5
51680$as_echo_n "checking alignment of int64_t... " >&6; }
51681if ${ac_cv_alignof_int64_t+:} false; then :
51682  $as_echo_n "(cached) " >&6
51683else
51684  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_int64_t"        "$ac_includes_default
51685#ifndef offsetof
51686# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51687#endif
51688typedef struct { char x; int64_t y; } ac__type_alignof_;"; then :
51689
51690else
51691  if test "$ac_cv_type_int64_t" = yes; then
51692     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51694as_fn_error 77 "cannot compute alignment of int64_t
51695See \`config.log' for more details" "$LINENO" 5; }
51696   else
51697     ac_cv_alignof_int64_t=0
51698   fi
51699fi
51700
51701fi
51702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_int64_t" >&5
51703$as_echo "$ac_cv_alignof_int64_t" >&6; }
51704
51705
51706
51707cat >>confdefs.h <<_ACEOF
51708#define ALIGNOF_INT64_T $ac_cv_alignof_int64_t
51709_ACEOF
51710
51711
51712# The cast to long int works around a bug in the HP C Compiler,
51713# see AC_CHECK_SIZEOF for more information.
51714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of bool" >&5
51715$as_echo_n "checking alignment of bool... " >&6; }
51716if ${ac_cv_alignof_bool+:} false; then :
51717  $as_echo_n "(cached) " >&6
51718else
51719  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_bool"        "$ac_includes_default
51720#ifndef offsetof
51721# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51722#endif
51723typedef struct { char x; bool y; } ac__type_alignof_;"; then :
51724
51725else
51726  if test "$ac_cv_type_bool" = yes; then
51727     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51728$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51729as_fn_error 77 "cannot compute alignment of bool
51730See \`config.log' for more details" "$LINENO" 5; }
51731   else
51732     ac_cv_alignof_bool=0
51733   fi
51734fi
51735
51736fi
51737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_bool" >&5
51738$as_echo "$ac_cv_alignof_bool" >&6; }
51739
51740
51741
51742cat >>confdefs.h <<_ACEOF
51743#define ALIGNOF_BOOL $ac_cv_alignof_bool
51744_ACEOF
51745
51746
51747# The cast to long int works around a bug in the HP C Compiler,
51748# see AC_CHECK_SIZEOF for more information.
51749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of wchar_t" >&5
51750$as_echo_n "checking alignment of wchar_t... " >&6; }
51751if ${ac_cv_alignof_wchar_t+:} false; then :
51752  $as_echo_n "(cached) " >&6
51753else
51754  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_wchar_t"        "$ac_includes_default
51755#ifdef STDC_HEADERS
51756# include <stddef.h>
51757#endif
51758#ifndef offsetof
51759# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
51760#endif
51761typedef struct { char x; wchar_t y; } ac__type_alignof_;"; then :
51762
51763else
51764  if test "$ac_cv_type_wchar_t" = yes; then
51765     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51767as_fn_error 77 "cannot compute alignment of wchar_t
51768See \`config.log' for more details" "$LINENO" 5; }
51769   else
51770     ac_cv_alignof_wchar_t=0
51771   fi
51772fi
51773
51774fi
51775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_wchar_t" >&5
51776$as_echo "$ac_cv_alignof_wchar_t" >&6; }
51777
51778
51779
51780cat >>confdefs.h <<_ACEOF
51781#define ALIGNOF_WCHAR_T $ac_cv_alignof_wchar_t
51782_ACEOF
51783
51784
51785
51786# sys/bitypes.h defines the int16_t etc. on some systems (e.g., OSF1).
51787# Include it when testing for these types
51788ac_fn_c_check_header_mongrel "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
51789if test "x$ac_cv_header_sys_bitypes_h" = xyes; then :
51790  use_bitypes="#include <sys/bitypes.h>"
51791
51792$as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
51793
51794fi
51795
51796
51797# A C99 compliant compiler should have inttypes.h for fixed-size int types
51798for ac_header in inttypes.h stdint.h
51799do :
51800  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51801ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
51802if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
51803  cat >>confdefs.h <<_ACEOF
51804#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51805_ACEOF
51806
51807fi
51808
51809done
51810
51811
51812# Check for types
51813ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
51814case $ac_cv_c_int8_t in #(
51815  no|yes) ;; #(
51816  *)
51817
51818cat >>confdefs.h <<_ACEOF
51819#define int8_t $ac_cv_c_int8_t
51820_ACEOF
51821;;
51822esac
51823
51824ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
51825case $ac_cv_c_int16_t in #(
51826  no|yes) ;; #(
51827  *)
51828
51829cat >>confdefs.h <<_ACEOF
51830#define int16_t $ac_cv_c_int16_t
51831_ACEOF
51832;;
51833esac
51834
51835ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
51836case $ac_cv_c_int32_t in #(
51837  no|yes) ;; #(
51838  *)
51839
51840cat >>confdefs.h <<_ACEOF
51841#define int32_t $ac_cv_c_int32_t
51842_ACEOF
51843;;
51844esac
51845
51846ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
51847case $ac_cv_c_int64_t in #(
51848  no|yes) ;; #(
51849  *)
51850
51851cat >>confdefs.h <<_ACEOF
51852#define int64_t $ac_cv_c_int64_t
51853_ACEOF
51854;;
51855esac
51856
51857
51858# Temporary issue in autoconf integer type checking (remove when
51859# autoconf fixes this or provides a workaround for it)
51860if test "$ac_cv_c_int8_t" != no ; then
51861
51862$as_echo "#define HAVE_INT8_T 1" >>confdefs.h
51863
51864fi
51865if test "$ac_cv_c_int16_t" != no ; then
51866
51867$as_echo "#define HAVE_INT16_T 1" >>confdefs.h
51868
51869fi
51870if test "$ac_cv_c_int32_t" != no ; then
51871
51872$as_echo "#define HAVE_INT32_T 1" >>confdefs.h
51873
51874fi
51875if test "$ac_cv_c_int64_t" != no ; then
51876
51877$as_echo "#define HAVE_INT64_T 1" >>confdefs.h
51878
51879fi
51880
51881# The following make these definitions:
51882#   define _UINT<n>_T 1
51883# if uint<n>_t is available.  E.g., define _UINT8_T as 1 if uint8_t is available
51884# if not available, define uint<n>_t as the related C type, e.g.,
51885#   define uint8_t unsigned char
51886#
51887ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
51888case $ac_cv_c_uint8_t in #(
51889  no|yes) ;; #(
51890  *)
51891
51892$as_echo "#define _UINT8_T 1" >>confdefs.h
51893
51894
51895cat >>confdefs.h <<_ACEOF
51896#define uint8_t $ac_cv_c_uint8_t
51897_ACEOF
51898;;
51899  esac
51900
51901ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
51902case $ac_cv_c_uint16_t in #(
51903  no|yes) ;; #(
51904  *)
51905
51906
51907cat >>confdefs.h <<_ACEOF
51908#define uint16_t $ac_cv_c_uint16_t
51909_ACEOF
51910;;
51911  esac
51912
51913ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
51914case $ac_cv_c_uint32_t in #(
51915  no|yes) ;; #(
51916  *)
51917
51918$as_echo "#define _UINT32_T 1" >>confdefs.h
51919
51920
51921cat >>confdefs.h <<_ACEOF
51922#define uint32_t $ac_cv_c_uint32_t
51923_ACEOF
51924;;
51925  esac
51926
51927ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
51928case $ac_cv_c_uint64_t in #(
51929  no|yes) ;; #(
51930  *)
51931
51932$as_echo "#define _UINT64_T 1" >>confdefs.h
51933
51934
51935cat >>confdefs.h <<_ACEOF
51936#define uint64_t $ac_cv_c_uint64_t
51937_ACEOF
51938;;
51939  esac
51940
51941
51942# Temporary issue in autoconf integer type checking (remove when
51943# autoconf fixes this or provides a workaround for it)
51944if test "$ac_cv_c_uint8_t" != no ; then
51945
51946$as_echo "#define HAVE_UINT8_T 1" >>confdefs.h
51947
51948fi
51949if test "$ac_cv_c_uint16_t" != no ; then
51950
51951$as_echo "#define HAVE_UINT16_T 1" >>confdefs.h
51952
51953fi
51954if test "$ac_cv_c_uint32_t" != no ; then
51955
51956$as_echo "#define HAVE_UINT32_T 1" >>confdefs.h
51957
51958fi
51959if test "$ac_cv_c_uint64_t" != no ; then
51960
51961$as_echo "#define HAVE_UINT64_T 1" >>confdefs.h
51962
51963fi
51964
51965# Other C99 types.
51966for ac_header in stdbool.h complex.h
51967do :
51968  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51969ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
51970if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
51971  cat >>confdefs.h <<_ACEOF
51972#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51973_ACEOF
51974
51975fi
51976
51977done
51978
51979# The cast to long int works around a bug in the HP C Compiler
51980# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51981# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51982# This bug is HP SR number 8606223364.
51983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
51984$as_echo_n "checking size of _Bool... " >&6; }
51985if ${ac_cv_sizeof__Bool+:} false; then :
51986  $as_echo_n "(cached) " >&6
51987else
51988  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "
51989#ifdef HAVE_STDBOOL_H
51990#include <stdbool.h>
51991#endif
51992
51993"; then :
51994
51995else
51996  if test "$ac_cv_type__Bool" = yes; then
51997     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
51998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
51999as_fn_error 77 "cannot compute sizeof (_Bool)
52000See \`config.log' for more details" "$LINENO" 5; }
52001   else
52002     ac_cv_sizeof__Bool=0
52003   fi
52004fi
52005
52006fi
52007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
52008$as_echo "$ac_cv_sizeof__Bool" >&6; }
52009
52010
52011
52012cat >>confdefs.h <<_ACEOF
52013#define SIZEOF__BOOL $ac_cv_sizeof__Bool
52014_ACEOF
52015
52016
52017# The cast to long int works around a bug in the HP C Compiler
52018# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52019# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52020# This bug is HP SR number 8606223364.
52021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float _Complex" >&5
52022$as_echo_n "checking size of float _Complex... " >&6; }
52023if ${ac_cv_sizeof_float__Complex+:} false; then :
52024  $as_echo_n "(cached) " >&6
52025else
52026  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float _Complex))" "ac_cv_sizeof_float__Complex"        "
52027#ifdef HAVE_COMPLEX_H
52028#include <complex.h>
52029#endif
52030
52031"; then :
52032
52033else
52034  if test "$ac_cv_type_float__Complex" = yes; then
52035     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
52036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52037as_fn_error 77 "cannot compute sizeof (float _Complex)
52038See \`config.log' for more details" "$LINENO" 5; }
52039   else
52040     ac_cv_sizeof_float__Complex=0
52041   fi
52042fi
52043
52044fi
52045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float__Complex" >&5
52046$as_echo "$ac_cv_sizeof_float__Complex" >&6; }
52047
52048
52049
52050cat >>confdefs.h <<_ACEOF
52051#define SIZEOF_FLOAT__COMPLEX $ac_cv_sizeof_float__Complex
52052_ACEOF
52053
52054
52055# The cast to long int works around a bug in the HP C Compiler
52056# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52057# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52058# This bug is HP SR number 8606223364.
52059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double _Complex" >&5
52060$as_echo_n "checking size of double _Complex... " >&6; }
52061if ${ac_cv_sizeof_double__Complex+:} false; then :
52062  $as_echo_n "(cached) " >&6
52063else
52064  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double _Complex))" "ac_cv_sizeof_double__Complex"        "
52065#ifdef HAVE_COMPLEX_H
52066#include <complex.h>
52067#endif
52068
52069"; then :
52070
52071else
52072  if test "$ac_cv_type_double__Complex" = yes; then
52073     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
52074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52075as_fn_error 77 "cannot compute sizeof (double _Complex)
52076See \`config.log' for more details" "$LINENO" 5; }
52077   else
52078     ac_cv_sizeof_double__Complex=0
52079   fi
52080fi
52081
52082fi
52083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double__Complex" >&5
52084$as_echo "$ac_cv_sizeof_double__Complex" >&6; }
52085
52086
52087
52088cat >>confdefs.h <<_ACEOF
52089#define SIZEOF_DOUBLE__COMPLEX $ac_cv_sizeof_double__Complex
52090_ACEOF
52091
52092
52093if test "X$pac_cv_have_long_double" = "Xyes"; then :
52094
52095  # The cast to long int works around a bug in the HP C Compiler
52096# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52097# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52098# This bug is HP SR number 8606223364.
52099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double _Complex" >&5
52100$as_echo_n "checking size of long double _Complex... " >&6; }
52101if ${ac_cv_sizeof_long_double__Complex+:} false; then :
52102  $as_echo_n "(cached) " >&6
52103else
52104  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double _Complex))" "ac_cv_sizeof_long_double__Complex"        "
52105#ifdef HAVE_COMPLEX_H
52106#include <complex.h>
52107#endif
52108
52109"; then :
52110
52111else
52112  if test "$ac_cv_type_long_double__Complex" = yes; then
52113     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
52114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52115as_fn_error 77 "cannot compute sizeof (long double _Complex)
52116See \`config.log' for more details" "$LINENO" 5; }
52117   else
52118     ac_cv_sizeof_long_double__Complex=0
52119   fi
52120fi
52121
52122fi
52123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double__Complex" >&5
52124$as_echo "$ac_cv_sizeof_long_double__Complex" >&6; }
52125
52126
52127
52128cat >>confdefs.h <<_ACEOF
52129#define SIZEOF_LONG_DOUBLE__COMPLEX $ac_cv_sizeof_long_double__Complex
52130_ACEOF
52131
52132
52133
52134fi
52135# The cast to long int works around a bug in the HP C Compiler
52136# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52137# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52138# This bug is HP SR number 8606223364.
52139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Float16" >&5
52140$as_echo_n "checking size of _Float16... " >&6; }
52141if ${ac_cv_sizeof__Float16+:} false; then :
52142  $as_echo_n "(cached) " >&6
52143else
52144  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Float16))" "ac_cv_sizeof__Float16"        "$ac_includes_default"; then :
52145
52146else
52147  if test "$ac_cv_type__Float16" = yes; then
52148     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
52149$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52150as_fn_error 77 "cannot compute sizeof (_Float16)
52151See \`config.log' for more details" "$LINENO" 5; }
52152   else
52153     ac_cv_sizeof__Float16=0
52154   fi
52155fi
52156
52157fi
52158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Float16" >&5
52159$as_echo "$ac_cv_sizeof__Float16" >&6; }
52160
52161
52162
52163cat >>confdefs.h <<_ACEOF
52164#define SIZEOF__FLOAT16 $ac_cv_sizeof__Float16
52165_ACEOF
52166
52167
52168
52169# we need really could just use the result of AC_CHECK_SIZEOF, but having a
52170# HAVE_typename macro is useful for consistency
52171ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
52172if test "x$ac_cv_type__Bool" = xyes; then :
52173
52174cat >>confdefs.h <<_ACEOF
52175#define HAVE__BOOL 1
52176_ACEOF
52177
52178
52179fi
52180ac_fn_c_check_type "$LINENO" "float _Complex" "ac_cv_type_float__Complex" "$ac_includes_default"
52181if test "x$ac_cv_type_float__Complex" = xyes; then :
52182
52183cat >>confdefs.h <<_ACEOF
52184#define HAVE_FLOAT__COMPLEX 1
52185_ACEOF
52186
52187
52188fi
52189ac_fn_c_check_type "$LINENO" "double _Complex" "ac_cv_type_double__Complex" "$ac_includes_default"
52190if test "x$ac_cv_type_double__Complex" = xyes; then :
52191
52192cat >>confdefs.h <<_ACEOF
52193#define HAVE_DOUBLE__COMPLEX 1
52194_ACEOF
52195
52196
52197fi
52198
52199
52200if test "X$pac_cv_have_long_double" = "Xyes"; then :
52201
52202  ac_fn_c_check_type "$LINENO" "long double _Complex" "ac_cv_type_long_double__Complex" "$ac_includes_default"
52203if test "x$ac_cv_type_long_double__Complex" = xyes; then :
52204
52205cat >>confdefs.h <<_ACEOF
52206#define HAVE_LONG_DOUBLE__COMPLEX 1
52207_ACEOF
52208
52209
52210fi
52211
52212
52213fi
52214
52215# Generate a hex version of the size of each type
52216for type in short int long long_long float double long_double wchar_t \
52217    float_int double_int long_int short_int two_int long_double_int     \
52218    _Bool float__Complex double__Complex long_double__Complex \
52219    _Float16; do
52220    eval len=\$ac_cv_sizeof_$type
52221    if test -z "$len" ; then
52222       len=0
52223       # Check for sizes from the CHECK_SIZEOF_DERIVED macro
52224       eval pclen=\$ac_cv_sizeof_$type
52225       if test -n "$pclen" ; then
52226           len=$pclen
52227       else
52228           # check for a non-optional type
52229           if test $type != long_long -a \
52230                   $type != long_double -a \
52231                   $type != long_double_int -a \
52232                   $type != _Bool -a \
52233                   $type != float__Complex -a \
52234                   $type != double__Complex -a \
52235                   $type != long_double__Complex ; then
52236               as_fn_error $? "Configure was unable to determine the size of $type ; if cross compiling,
52237use the environment variables CROSS_SIZEOF_typename, e.g., CROSS_SIZEOF_SHORT,
52238or use the --with-cross=file configure option to specify a file containing
52239Bourne (sh) shell assignments to CROSS_SIZEOF_typename for all datatype
52240types.  The program maint/getcross.c can be compiled and run on the target
52241system; this program outputs an appropriate file for the --with-cross option" "$LINENO" 5
52242	   fi
52243       fi
52244    fi
52245    #
52246    # Take len and turn it into two hex digits (there are 8 bits available
52247    # in the built-in datatype handle for the length; see
52248    # src/mpid/common/datatype/mpidu_datatype.h)
52249    if test "$len" -gt 255 ; then
52250         as_fn_error $? "Type sizes greater than 255 bytes are not supported (type $type is $len bytes)" "$LINENO" 5
52251    fi
52252    tmplen=$len
52253    hexlen=""
52254    while test $tmplen -gt 0 ; do
52255        lowdigit=`expr $tmplen - 16 \* \( $tmplen / 16 \)`
52256	case $lowdigit in
52257         10) char=a ;;
52258	 11) char=b ;;
52259	 12) char=c ;;
52260	 13) char=d ;;
52261	 14) char=e ;;
52262	 15) char=f ;;
52263	  *) char=$lowdigit ;;
52264	esac
52265	hexlen="$char$hexlen"
52266	tmplen=`expr $tmplen / 16`
52267    done
52268    if test $len -lt 16 ; then
52269        hexlen="0$hexlen"
52270    fi
52271    if test $len = 0 ; then
52272        # This sometimes happens for wchar_t
52273        hexlen="00";
52274    fi
52275    eval len_$type=$hexlen
52276done
52277# By definition, sizeof char is 1
52278MPI_CHAR="0x4c000101"
52279MPI_UNSIGNED_CHAR="0x4c000102"
52280MPI_SHORT="0x4c00${len_short}03"
52281MPI_UNSIGNED_SHORT="0x4c00${len_short}04"
52282MPI_INT="0x4c00${len_int}05"
52283MPI_UNSIGNED_INT="0x4c00${len_int}06"
52284MPI_LONG="0x4c00${len_long}07"
52285MPI_UNSIGNED_LONG="0x4c00${len_long}08"
52286if test "$len_long_long" != 0 -a "$MPID_NO_LONG_LONG" != yes ; then
52287    MPI_LONG_LONG="0x4c00${len_long_long}09"
52288else
52289    MPI_LONG_LONG=MPI_DATATYPE_NULL;
52290fi
52291MPI_FLOAT="0x4c00${len_float}0a"
52292MPI_DOUBLE="0x4c00${len_double}0b"
52293if test "$len_long_double" != 0 -a "$MPID_NO_LONG_DOUBLE" != yes ; then
52294    MPI_LONG_DOUBLE="0x4c00${len_long_double}0c"
52295else
52296    MPI_LONG_DOUBLE=MPI_DATATYPE_NULL
52297fi
52298# If you change MPI_BYTE, you must change it in src/binding/fortran/mpif_h/buildiface
52299MPI_BYTE="0x4c00010d"
52300MPI_WCHAR="0x4c00${len_wchar_t}0e"
52301MPI_PACKED="0x4c00010f"
52302MPI_LB="0x4c000010"
52303MPI_UB="0x4c000011"
52304#
52305# These should define the mixed types *only* for contiguous data.
52306# For example, MPI_SHORT_INT may have a gap; it will need to be defined
52307# as a derived type instead.  For IA32, this only affects short_int.
52308MPI_2INT="0x4c00${len_two_int}16"
52309#
52310# For now we aren't being too clever about figuring out which of these
52311# are in fact contiguous, so these are all allocated as "real" types.
52312#
52313# These values correspond to direct types 0..5.
52314#
52315MPI_FLOAT_INT="0x8c000000"
52316MPI_DOUBLE_INT="0x8c000001"
52317MPI_LONG_INT="0x8c000002"
52318MPI_SHORT_INT="0x8c000003"
52319if test "$MPID_NO_LONG_DOUBLE" != yes ; then
52320    MPI_LONG_DOUBLE_INT="0x8c000004"
52321else
52322    MPI_LONG_DOUBLE_INT=MPI_DATATYPE_NULL
52323fi
52324
52325# 2 additional predefined types named in MPI-2
52326MPI_SIGNED_CHAR="0x4c000118"
52327if test "$len_long_long" != 0 -a "$MPID_NO_LONG_LONG" != yes ; then
52328    MPI_UNSIGNED_LONG_LONG="0x4c00${len_long_long}19"
52329else
52330    MPI_UNSIGNED_LONG_LONG=MPI_DATATYPE_NULL
52331fi
52332
52333
52334
52335
52336
52337
52338
52339
52340
52341
52342
52343
52344
52345
52346
52347
52348
52349
52350
52351
52352
52353
52354
52355
52356
52357
52358#
52359# FIXME: Leftover from separate fortran system
52360## Export the basic C types so that the Fortran system can use them
52361#export MPI_CHAR
52362#export MPI_SHORT
52363#export MPI_INT
52364#export MPI_LONG
52365#export MPI_LONG_LONG
52366#export MPI_FLOAT
52367#export MPI_DOUBLE
52368#export MPI_LONG_DOUBLE
52369#
52370# Size-specific types.  Initialize as NULL
52371MPI_REAL4=MPI_DATATYPE_NULL
52372MPI_REAL8=MPI_DATATYPE_NULL
52373MPI_REAL16=MPI_DATATYPE_NULL
52374MPI_COMPLEX8=MPI_DATATYPE_NULL
52375MPI_COMPLEX16=MPI_DATATYPE_NULL
52376MPI_COMPLEX32=MPI_DATATYPE_NULL
52377MPI_INTEGER1=MPI_DATATYPE_NULL
52378MPI_INTEGER2=MPI_DATATYPE_NULL
52379MPI_INTEGER4=MPI_DATATYPE_NULL
52380MPI_INTEGER8=MPI_DATATYPE_NULL
52381MPI_INTEGER16=MPI_DATATYPE_NULL
52382
52383
52384
52385
52386
52387
52388
52389
52390
52391
52392
52393export MPI_REAL4
52394export MPI_REAL8
52395export MPI_REAL16
52396export MPI_COMPLEX8
52397export MPI_COMPLEX16
52398export MPI_COMPLEX32
52399export MPI_INTEGER1
52400export MPI_INTEGER2
52401export MPI_INTEGER4
52402export MPI_INTEGER8
52403export MPI_INTEGER16
52404#
52405# Try to find corresponding types for the size-specific types.
52406#
52407# Assume that the float/double/long double are simply spaced
52408# Datatypes used up through 26 in Fortran
52409# 27,28,29,2a,2b,2c
52410if test "$ac_cv_sizeof_float" = "4" ; then
52411    MPI_REAL4="0x4c000427"
52412    MPI_COMPLEX8="0x4c000828"
52413    MPIR_REAL4_CTYPE=float
52414fi
52415if test "$ac_cv_sizeof_double" = "8" ; then
52416    MPI_REAL8="0x4c000829"
52417    MPI_COMPLEX16="0x4c00102a"
52418    MPIR_REAL8_CTYPE=double
52419fi
52420if test "$ac_cv_sizeof___float128" = "16" ; then
52421    MPI_REAL16="0x4c00102b"
52422    MPI_COMPLEX32="0x4c00202c"
52423    MPIR_REAL16_CTYPE="__float128"
52424elif test "$ac_cv_sizeof_long_double" = "16" -a "$MPID_NO_LONG_DOUBLE" != yes ; then
52425    MPI_REAL16="0x4c00102b"
52426    MPI_COMPLEX32="0x4c00202c"
52427    MPIR_REAL16_CTYPE="long double"
52428fi
52429if test -n "$MPIR_REAL4_CTYPE" ; then
52430
52431cat >>confdefs.h <<_ACEOF
52432#define MPIR_REAL4_CTYPE $MPIR_REAL4_CTYPE
52433_ACEOF
52434
52435fi
52436if test -n "$MPIR_REAL8_CTYPE" ; then
52437
52438cat >>confdefs.h <<_ACEOF
52439#define MPIR_REAL8_CTYPE $MPIR_REAL8_CTYPE
52440_ACEOF
52441
52442fi
52443if test -n "$MPIR_REAL16_CTYPE" ; then
52444
52445cat >>confdefs.h <<_ACEOF
52446#define MPIR_REAL16_CTYPE $MPIR_REAL16_CTYPE
52447_ACEOF
52448
52449fi
52450# For complex 8/16/32, we assume that these are 2 consequetive real4/8/16
52451#
52452# Search for the integer types
52453for type in char short int long long_long ; do
52454    # ctype is a valid C type which we can use to declare a C version of
52455    # this item
52456    ctype=`echo $type | sed 's/_/ /'`
52457    eval len=\$ac_cv_sizeof_$type
52458    if test -n "$len" ; then
52459    case $len in
52460    1) if test "$MPI_INTEGER1" = "MPI_DATATYPE_NULL" ; then
52461           MPI_INTEGER1="0x4c00012d"
52462	   MPIR_INTEGER1_CTYPE="$ctype"
52463       fi
52464       ;;
52465    2) if test "$MPI_INTEGER2" = "MPI_DATATYPE_NULL" ; then
52466           MPI_INTEGER2="0x4c00022f"
52467	   MPIR_INTEGER2_CTYPE="$ctype"
52468       fi
52469       ;;
52470    4) if test "$MPI_INTEGER4" = "MPI_DATATYPE_NULL" ; then
52471           MPI_INTEGER4="0x4c000430"
52472	   MPIR_INTEGER4_CTYPE="$ctype"
52473       fi
52474       ;;
52475    8) if test "$MPI_INTEGER8" = "MPI_DATATYPE_NULL" ; then
52476           MPI_INTEGER8="0x4c000831"
52477	   MPIR_INTEGER8_CTYPE="$ctype"
52478       fi
52479       ;;
52480    16) if test "$MPI_INTEGER16" = "MPI_DATATYPE_NULL" ; then
52481           MPI_INTEGER16="0x4c001032"
52482	   MPIR_INTEGER16_CTYPE="$ctype"
52483       fi
52484       ;;
52485    *)
52486    ;;
52487    esac
52488    fi
52489done
52490#
52491# Add the definitions of these types
52492if test -n "$MPIR_INTEGER1_CTYPE" ; then
52493
52494cat >>confdefs.h <<_ACEOF
52495#define MPIR_INTEGER1_CTYPE $MPIR_INTEGER1_CTYPE
52496_ACEOF
52497
52498fi
52499if test -n "$MPIR_INTEGER2_CTYPE" ; then
52500
52501cat >>confdefs.h <<_ACEOF
52502#define MPIR_INTEGER2_CTYPE $MPIR_INTEGER2_CTYPE
52503_ACEOF
52504
52505fi
52506if test -n "$MPIR_INTEGER4_CTYPE" ; then
52507
52508cat >>confdefs.h <<_ACEOF
52509#define MPIR_INTEGER4_CTYPE $MPIR_INTEGER4_CTYPE
52510_ACEOF
52511
52512fi
52513if test -n "$MPIR_INTEGER8_CTYPE" ; then
52514
52515cat >>confdefs.h <<_ACEOF
52516#define MPIR_INTEGER8_CTYPE $MPIR_INTEGER8_CTYPE
52517_ACEOF
52518
52519fi
52520if test -n "$MPIR_INTEGER16_CTYPE" ; then
52521
52522cat >>confdefs.h <<_ACEOF
52523#define MPIR_INTEGER16_CTYPE $MPIR_INTEGER16_CTYPE
52524_ACEOF
52525
52526fi
52527
52528# ----------------------------------------------------------------------------
52529
52530# C99 types
52531# The predefined types must be distinct types (as opposed to aliases to MPI_INT
52532# or MPI_WHATEVER) in order to correctly support MPI_Type_{get,set}_name.
52533#
52534# FIXME the "basic id" portion should be automatically assigned.  It's too easy
52535# to have a conflict when this is done by hand.
52536#
52537# Because we make up a matching type for the fixed-width types if one doesn't
52538# exist, we don't ever set these to MPI_DATATYPE_NULL.  If we come across a
52539# platform where 64-bit sizes aren't supported just add a test like the other
52540# types.
52541MPI_INT8_T=0x4c000137
52542MPI_INT16_T=0x4c000238
52543MPI_INT32_T=0x4c000439
52544MPI_INT64_T=0x4c00083a
52545MPI_UINT8_T=0x4c00013b
52546MPI_UINT16_T=0x4c00023c
52547MPI_UINT32_T=0x4c00043d
52548MPI_UINT64_T=0x4c00083e
52549
52550# The compiler may or may not support these types, depending on its level of C99
52551# compliance.  We check for each one individually before assigning a handle
52552# number.
52553MPI_C_BOOL=MPI_DATATYPE_NULL
52554MPI_C_FLOAT_COMPLEX=MPI_DATATYPE_NULL
52555MPI_C_DOUBLE_COMPLEX=MPI_DATATYPE_NULL
52556MPI_C_LONG_DOUBLE_COMPLEX=MPI_DATATYPE_NULL
52557MPIX_C_FLOAT16=MPI_DATATYPE_NULL
52558if test ${len__Bool} != 0 ; then
52559    MPI_C_BOOL=0x4c00${len__Bool}3f
52560fi
52561if test ${len_float__Complex} != 0 ; then
52562    MPI_C_FLOAT_COMPLEX=0x4c00${len_float__Complex}40
52563fi
52564if test ${len_double__Complex} != 0 ; then
52565    MPI_C_DOUBLE_COMPLEX=0x4c00${len_double__Complex}41
52566fi
52567if test ${len_long_double__Complex} != 0 ; then
52568    MPI_C_LONG_DOUBLE_COMPLEX=0x4c00${len_long_double__Complex}42
52569fi
52570if test ${len__Float16} != 0 ; then
52571    MPIX_C_FLOAT16=0x4c000246
52572fi
52573
52574
52575
52576
52577
52578
52579
52580
52581
52582
52583
52584
52585
52586
52587export MPI_INT8_T
52588export MPI_INT16_T
52589export MPI_INT32_T
52590export MPI_INT64_T
52591export MPI_UINT8_T
52592export MPI_UINT16_T
52593export MPI_UINT32_T
52594export MPI_UINT64_T
52595export MPI_C_BOOL
52596export MPI_C_FLOAT_COMPLEX
52597export MPI_C_DOUBLE_COMPLEX
52598export MPI_C_LONG_DOUBLE_COMPLEX
52599export MPIX_C_FLOAT16
52600
52601
52602# ----------------------------------------------------------------------------
52603# We can now create the Fortran versions of the datatype values, along with
52604# some of the other datatype-dependent sizes
52605
52606# There are two parts to handling the datatypes:
52607#    Convert the C datatype values to their Fortran equivalent.  This
52608#    involves converting the hex values for the C version into decimal
52609#    since standard Fortran does not have hex constants
52610#
52611#    Determine the existence of the Fortran 'sized' types and set those
52612#    values.
52613#
52614# In addition, we need to look at a few additional constants that depend
52615# on how the compiler sizes some datatypes.  These are:
52616#    STATUS_SIZE, INTEGER_KIND, ADDRESS_KIND, and OFFSET_KIND
52617#
52618# ----------------------------------------------------------------------------
52619if test "$enable_f77" = yes ; then
52620    # Up to size checking code in main configure.ac (where it tries to
52621    # find the matching C sizes) as part of defining mpi_integer8 etc.
52622    # The results are available in pac_cv_sizeof_f77_<type>
52623    # Size is 0 if unknown or unavailable (or cross-compiling)
52624    # Due to limitations in autoconf, we cannot put these into a loop.
52625    # We also check integer to find the type of MPI_Fint
52626    #
52627    # Cross-compilation results can be included with the --with-cross=file
52628    # option.
52629    CROSS_F77_SIZEOF_INTEGER=${CROSS_F77_SIZEOF_INTEGER:-0}
52630    CROSS_F77_SIZEOF_REAL=${CROSS_F77_SIZEOF_REAL:-0}
52631    CROSS_F77_SIZEOF_DOUBLE_PRECISION=${CROSS_F77_SIZEOF_DOUBLE_PRECISION:-0}
52632
52633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size of Fortran type integer" >&5
52634$as_echo_n "checking for size of Fortran type integer... " >&6; }
52635if ${pac_cv_f77_sizeof_integer+:} false; then :
52636  $as_echo_n "(cached) " >&6
52637else
52638
52639
52640
52641ac_ext=c
52642ac_cpp='$CPP $CPPFLAGS'
52643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52645ac_compiler_gnu=$ac_cv_c_compiler_gnu
52646
52647cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52648/* end confdefs.h.  */
52649
52650
52651#if defined(HAVE_STDIO_H) || defined(STDC_HEADERS)
52652#include <stdio.h>
52653#endif
52654#ifdef F77_NAME_UPPER
52655#define cisize_ CISIZE
52656#define isize_ ISIZE
52657#elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED)
52658#define cisize_ cisize
52659#define isize_ isize
52660#endif
52661int cisize_(char *,char*);
52662int cisize_(char *i1p, char *i2p) {
52663    int isize_val=0;
52664    FILE *f = fopen("conftestval", "w");
52665    if (!f) return 1;
52666    isize_val = (int)(i2p - i1p);
52667    fprintf(f,"%d\n", isize_val);
52668    fclose(f);
52669    return 0;
52670}
52671
52672
52673_ACEOF
52674if ac_fn_c_try_compile "$LINENO"; then :
52675
52676    # pac_compile_ok=yes
52677
52678{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
52679  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
52680  ac_status=$?
52681  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52682  test $ac_status = 0; }
52683    # Save LIBS and prepend object file to LIBS
52684    saved_LIBS="$LIBS"
52685    LIBS="pac_conftest.$OBJEXT $LIBS"
52686    ac_ext=f
52687ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
52688ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52689ac_compiler_gnu=$ac_cv_f77_compiler_gnu
52690
52691    if test "$cross_compiling" = yes; then :
52692
52693        # Use -9999 as value to emit a warning message after the cache_check.
52694        eval pac_cv_f77_sizeof_integer=$CROSS_F77_SIZEOF_INTEGER
52695
52696else
52697  cat > conftest.$ac_ext <<_ACEOF
52698
52699
52700            program main
52701            integer a(2)
52702            integer irc, cisize
52703            irc = cisize(a(1),a(2))
52704            end
52705
52706
52707_ACEOF
52708if ac_fn_f77_try_run "$LINENO"; then :
52709
52710        eval pac_cv_f77_sizeof_integer=`cat conftestval`
52711
52712else
52713
52714        eval pac_cv_f77_sizeof_integer=0
52715
52716fi
52717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52718  conftest.$ac_objext conftest.beam conftest.$ac_ext
52719fi
52720
52721    ac_ext=c
52722ac_cpp='$CPP $CPPFLAGS'
52723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52725ac_compiler_gnu=$ac_cv_c_compiler_gnu
52726
52727    LIBS="$saved_LIBS"
52728    # remove previously generated object file.
52729    rm -f pac_conftest.$OBJEXT
52730
52731else
52732
52733    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to compile the C routine for finding the size of a integer" >&5
52734$as_echo "$as_me: WARNING: Unable to compile the C routine for finding the size of a integer" >&2;}
52735
52736fi
52737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52738ac_ext=c
52739ac_cpp='$CPP $CPPFLAGS'
52740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52742ac_compiler_gnu=$ac_cv_c_compiler_gnu
52743
52744
52745fi
52746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_f77_sizeof_integer" >&5
52747$as_echo "$pac_cv_f77_sizeof_integer" >&6; }
52748if test "$pac_cv_f77_sizeof_integer" = "-9999" ; then
52749     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No value provided for size of integer when cross-compiling" >&5
52750$as_echo "$as_me: WARNING: No value provided for size of integer when cross-compiling" >&2;}
52751fi
52752
52753cat >>confdefs.h <<_ACEOF
52754#define SIZEOF_F77_INTEGER $pac_cv_f77_sizeof_integer
52755_ACEOF
52756
52757
52758
52759
52760
52761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size of Fortran type real" >&5
52762$as_echo_n "checking for size of Fortran type real... " >&6; }
52763if ${pac_cv_f77_sizeof_real+:} false; then :
52764  $as_echo_n "(cached) " >&6
52765else
52766
52767
52768
52769ac_ext=c
52770ac_cpp='$CPP $CPPFLAGS'
52771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52773ac_compiler_gnu=$ac_cv_c_compiler_gnu
52774
52775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52776/* end confdefs.h.  */
52777
52778
52779#if defined(HAVE_STDIO_H) || defined(STDC_HEADERS)
52780#include <stdio.h>
52781#endif
52782#ifdef F77_NAME_UPPER
52783#define cisize_ CISIZE
52784#define isize_ ISIZE
52785#elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED)
52786#define cisize_ cisize
52787#define isize_ isize
52788#endif
52789int cisize_(char *,char*);
52790int cisize_(char *i1p, char *i2p) {
52791    int isize_val=0;
52792    FILE *f = fopen("conftestval", "w");
52793    if (!f) return 1;
52794    isize_val = (int)(i2p - i1p);
52795    fprintf(f,"%d\n", isize_val);
52796    fclose(f);
52797    return 0;
52798}
52799
52800
52801_ACEOF
52802if ac_fn_c_try_compile "$LINENO"; then :
52803
52804    # pac_compile_ok=yes
52805
52806{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
52807  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
52808  ac_status=$?
52809  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52810  test $ac_status = 0; }
52811    # Save LIBS and prepend object file to LIBS
52812    saved_LIBS="$LIBS"
52813    LIBS="pac_conftest.$OBJEXT $LIBS"
52814    ac_ext=f
52815ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
52816ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52817ac_compiler_gnu=$ac_cv_f77_compiler_gnu
52818
52819    if test "$cross_compiling" = yes; then :
52820
52821        # Use -9999 as value to emit a warning message after the cache_check.
52822        eval pac_cv_f77_sizeof_real=$CROSS_F77_SIZEOF_REAL
52823
52824else
52825  cat > conftest.$ac_ext <<_ACEOF
52826
52827
52828            program main
52829            real a(2)
52830            integer irc, cisize
52831            irc = cisize(a(1),a(2))
52832            end
52833
52834
52835_ACEOF
52836if ac_fn_f77_try_run "$LINENO"; then :
52837
52838        eval pac_cv_f77_sizeof_real=`cat conftestval`
52839
52840else
52841
52842        eval pac_cv_f77_sizeof_real=0
52843
52844fi
52845rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52846  conftest.$ac_objext conftest.beam conftest.$ac_ext
52847fi
52848
52849    ac_ext=c
52850ac_cpp='$CPP $CPPFLAGS'
52851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52853ac_compiler_gnu=$ac_cv_c_compiler_gnu
52854
52855    LIBS="$saved_LIBS"
52856    # remove previously generated object file.
52857    rm -f pac_conftest.$OBJEXT
52858
52859else
52860
52861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to compile the C routine for finding the size of a real" >&5
52862$as_echo "$as_me: WARNING: Unable to compile the C routine for finding the size of a real" >&2;}
52863
52864fi
52865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52866ac_ext=c
52867ac_cpp='$CPP $CPPFLAGS'
52868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52870ac_compiler_gnu=$ac_cv_c_compiler_gnu
52871
52872
52873fi
52874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_f77_sizeof_real" >&5
52875$as_echo "$pac_cv_f77_sizeof_real" >&6; }
52876if test "$pac_cv_f77_sizeof_real" = "-9999" ; then
52877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No value provided for size of real when cross-compiling" >&5
52878$as_echo "$as_me: WARNING: No value provided for size of real when cross-compiling" >&2;}
52879fi
52880
52881cat >>confdefs.h <<_ACEOF
52882#define SIZEOF_F77_REAL $pac_cv_f77_sizeof_real
52883_ACEOF
52884
52885
52886
52887
52888
52889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size of Fortran type double precision" >&5
52890$as_echo_n "checking for size of Fortran type double precision... " >&6; }
52891if ${pac_cv_f77_sizeof_double_precision+:} false; then :
52892  $as_echo_n "(cached) " >&6
52893else
52894
52895
52896
52897ac_ext=c
52898ac_cpp='$CPP $CPPFLAGS'
52899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52901ac_compiler_gnu=$ac_cv_c_compiler_gnu
52902
52903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52904/* end confdefs.h.  */
52905
52906
52907#if defined(HAVE_STDIO_H) || defined(STDC_HEADERS)
52908#include <stdio.h>
52909#endif
52910#ifdef F77_NAME_UPPER
52911#define cisize_ CISIZE
52912#define isize_ ISIZE
52913#elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED)
52914#define cisize_ cisize
52915#define isize_ isize
52916#endif
52917int cisize_(char *,char*);
52918int cisize_(char *i1p, char *i2p) {
52919    int isize_val=0;
52920    FILE *f = fopen("conftestval", "w");
52921    if (!f) return 1;
52922    isize_val = (int)(i2p - i1p);
52923    fprintf(f,"%d\n", isize_val);
52924    fclose(f);
52925    return 0;
52926}
52927
52928
52929_ACEOF
52930if ac_fn_c_try_compile "$LINENO"; then :
52931
52932    # pac_compile_ok=yes
52933
52934{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
52935  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
52936  ac_status=$?
52937  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52938  test $ac_status = 0; }
52939    # Save LIBS and prepend object file to LIBS
52940    saved_LIBS="$LIBS"
52941    LIBS="pac_conftest.$OBJEXT $LIBS"
52942    ac_ext=f
52943ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
52944ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52945ac_compiler_gnu=$ac_cv_f77_compiler_gnu
52946
52947    if test "$cross_compiling" = yes; then :
52948
52949        # Use -9999 as value to emit a warning message after the cache_check.
52950        eval pac_cv_f77_sizeof_double_precision=$CROSS_F77_SIZEOF_DOUBLE_PRECISION
52951
52952else
52953  cat > conftest.$ac_ext <<_ACEOF
52954
52955
52956            program main
52957            double precision a(2)
52958            integer irc, cisize
52959            irc = cisize(a(1),a(2))
52960            end
52961
52962
52963_ACEOF
52964if ac_fn_f77_try_run "$LINENO"; then :
52965
52966        eval pac_cv_f77_sizeof_double_precision=`cat conftestval`
52967
52968else
52969
52970        eval pac_cv_f77_sizeof_double_precision=0
52971
52972fi
52973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
52974  conftest.$ac_objext conftest.beam conftest.$ac_ext
52975fi
52976
52977    ac_ext=c
52978ac_cpp='$CPP $CPPFLAGS'
52979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52981ac_compiler_gnu=$ac_cv_c_compiler_gnu
52982
52983    LIBS="$saved_LIBS"
52984    # remove previously generated object file.
52985    rm -f pac_conftest.$OBJEXT
52986
52987else
52988
52989    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to compile the C routine for finding the size of a double precision" >&5
52990$as_echo "$as_me: WARNING: Unable to compile the C routine for finding the size of a double precision" >&2;}
52991
52992fi
52993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52994ac_ext=c
52995ac_cpp='$CPP $CPPFLAGS'
52996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52998ac_compiler_gnu=$ac_cv_c_compiler_gnu
52999
53000
53001fi
53002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_f77_sizeof_double_precision" >&5
53003$as_echo "$pac_cv_f77_sizeof_double_precision" >&6; }
53004if test "$pac_cv_f77_sizeof_double_precision" = "-9999" ; then
53005     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No value provided for size of double precision when cross-compiling" >&5
53006$as_echo "$as_me: WARNING: No value provided for size of double precision when cross-compiling" >&2;}
53007fi
53008
53009cat >>confdefs.h <<_ACEOF
53010#define SIZEOF_F77_DOUBLE_PRECISION $pac_cv_f77_sizeof_double_precision
53011_ACEOF
53012
53013
53014
53015
53016    ac_ext=f
53017ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
53018ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53019ac_compiler_gnu=$ac_cv_f77_compiler_gnu
53020
53021    # If we have sizes for real and double, we do not need to call
53022    # mpir_get_fsize at run time.
53023    # For the size-defined types (e.g., integer*2), we assume that if the
53024    # compiler allows it, it has the stated size.
53025    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer*1 is supported" >&5
53026$as_echo_n "checking whether integer*1 is supported... " >&6; }
53027if ${pac_cv_fort_integer1+:} false; then :
53028  $as_echo_n "(cached) " >&6
53029else
53030
53031    cat > conftest.$ac_ext <<_ACEOF
53032      program main
53033      integer*1 i
53034      end
53035_ACEOF
53036if ac_fn_f77_try_compile "$LINENO"; then :
53037  pac_cv_fort_integer1=yes
53038else
53039  pac_cv_fort_integer1=no
53040fi
53041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53042fi
53043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_integer1" >&5
53044$as_echo "$pac_cv_fort_integer1" >&6; }
53045    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer*2 is supported" >&5
53046$as_echo_n "checking whether integer*2 is supported... " >&6; }
53047if ${pac_cv_fort_integer2+:} false; then :
53048  $as_echo_n "(cached) " >&6
53049else
53050
53051    cat > conftest.$ac_ext <<_ACEOF
53052      program main
53053      integer*2 i
53054      end
53055_ACEOF
53056if ac_fn_f77_try_compile "$LINENO"; then :
53057  pac_cv_fort_integer2=yes
53058else
53059  pac_cv_fort_integer2=no
53060fi
53061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53062fi
53063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_integer2" >&5
53064$as_echo "$pac_cv_fort_integer2" >&6; }
53065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer*4 is supported" >&5
53066$as_echo_n "checking whether integer*4 is supported... " >&6; }
53067if ${pac_cv_fort_integer4+:} false; then :
53068  $as_echo_n "(cached) " >&6
53069else
53070
53071    cat > conftest.$ac_ext <<_ACEOF
53072      program main
53073      integer*4 i
53074      end
53075_ACEOF
53076if ac_fn_f77_try_compile "$LINENO"; then :
53077  pac_cv_fort_integer4=yes
53078else
53079  pac_cv_fort_integer4=no
53080fi
53081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53082fi
53083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_integer4" >&5
53084$as_echo "$pac_cv_fort_integer4" >&6; }
53085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer*8 is supported" >&5
53086$as_echo_n "checking whether integer*8 is supported... " >&6; }
53087if ${pac_cv_fort_integer8+:} false; then :
53088  $as_echo_n "(cached) " >&6
53089else
53090
53091    cat > conftest.$ac_ext <<_ACEOF
53092      program main
53093      integer*8 i
53094      end
53095_ACEOF
53096if ac_fn_f77_try_compile "$LINENO"; then :
53097  pac_cv_fort_integer8=yes
53098else
53099  pac_cv_fort_integer8=no
53100fi
53101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53102fi
53103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_integer8" >&5
53104$as_echo "$pac_cv_fort_integer8" >&6; }
53105    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer*16 is supported" >&5
53106$as_echo_n "checking whether integer*16 is supported... " >&6; }
53107if ${pac_cv_fort_integer16+:} false; then :
53108  $as_echo_n "(cached) " >&6
53109else
53110
53111    cat > conftest.$ac_ext <<_ACEOF
53112      program main
53113      integer*16 i
53114      end
53115_ACEOF
53116if ac_fn_f77_try_compile "$LINENO"; then :
53117  pac_cv_fort_integer16=yes
53118else
53119  pac_cv_fort_integer16=no
53120fi
53121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53122fi
53123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_integer16" >&5
53124$as_echo "$pac_cv_fort_integer16" >&6; }
53125    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether real*4 is supported" >&5
53126$as_echo_n "checking whether real*4 is supported... " >&6; }
53127if ${pac_cv_fort_real4+:} false; then :
53128  $as_echo_n "(cached) " >&6
53129else
53130
53131    cat > conftest.$ac_ext <<_ACEOF
53132      program main
53133      real*4 a
53134      end
53135_ACEOF
53136if ac_fn_f77_try_compile "$LINENO"; then :
53137  pac_cv_fort_real4=yes
53138else
53139  pac_cv_fort_real4=no
53140fi
53141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53142fi
53143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_real4" >&5
53144$as_echo "$pac_cv_fort_real4" >&6; }
53145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether real*8 is supported" >&5
53146$as_echo_n "checking whether real*8 is supported... " >&6; }
53147if ${pac_cv_fort_real8+:} false; then :
53148  $as_echo_n "(cached) " >&6
53149else
53150
53151    cat > conftest.$ac_ext <<_ACEOF
53152      program main
53153      real*8 a
53154      end
53155_ACEOF
53156if ac_fn_f77_try_compile "$LINENO"; then :
53157  pac_cv_fort_real8=yes
53158else
53159  pac_cv_fort_real8=no
53160fi
53161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53162fi
53163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_real8" >&5
53164$as_echo "$pac_cv_fort_real8" >&6; }
53165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether real*16 is supported" >&5
53166$as_echo_n "checking whether real*16 is supported... " >&6; }
53167if ${pac_cv_fort_real16+:} false; then :
53168  $as_echo_n "(cached) " >&6
53169else
53170
53171    cat > conftest.$ac_ext <<_ACEOF
53172      program main
53173      real*16 a
53174      end
53175_ACEOF
53176if ac_fn_f77_try_compile "$LINENO"; then :
53177  pac_cv_fort_real16=yes
53178else
53179  pac_cv_fort_real16=no
53180fi
53181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53182fi
53183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort_real16" >&5
53184$as_echo "$pac_cv_fort_real16" >&6; }
53185
53186    # Create the default datatype names for the standard MPI Fortran types
53187    MPI_CHARACTER=0x4c00011a
53188
53189
53190    if test -z "$pac_cv_f77_sizeof_integer" -o \
53191       "X$pac_cv_f77_sizeof_integer" = "X0" ; then
53192        as_fn_error $? "Unable to configure with Fortran support because configure could not determine the size of a Fortran INTEGER.  Consider setting CROSS_F77_SIZEOF_INTEGER to the length in bytes of a Fortran INTEGER" "$LINENO" 5
53193    fi
53194    len_integer=$pac_cv_f77_sizeof_integer
53195    # Convert to two digit hex
53196    len=$len_integer
53197    #
53198    # Take len and turn it into two hex digits (there are 8 bits available
53199    # in the built-in datatype handle for the length; see
53200    # src/mpid/common/datatype/mpidu_datatype.h).  This code is taken
53201    # from the code in mpich/configure.ac
53202    if test "$len" -gt 255 ; then
53203        as_fn_error $? "Type sizes greater than 255 bytes are not supported (type INTEGER is $len bytes)" "$LINENO" 5
53204    fi
53205    tmplen=$len
53206    hexlen=""
53207    while test $tmplen -gt 0 ; do
53208        lowdigit=`expr $tmplen - 16 \* \( $tmplen / 16 \)`
53209        case $lowdigit in
53210        10) char=a ;;
53211        11) char=b ;;
53212        12) char=c ;;
53213        13) char=d ;;
53214        14) char=e ;;
53215        15) char=f ;;
53216         *) char=$lowdigit ;;
53217        esac
53218        hexlen="$char$hexlen"
53219        tmplen=`expr $tmplen / 16`
53220    done
53221    if test $len -lt 16 ; then
53222        hexlen="0$hexlen"
53223    fi
53224    len_integer=$hexlen
53225    if test "$len_integer" = 0 ; then
53226        # We have a problem
53227        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine size of an INTEGER type; using 4" >&5
53228$as_echo "$as_me: WARNING: Unable to determine size of an INTEGER type; using 4" >&2;}
53229        # We make the length 4
53230        len_integer="04"
53231    fi
53232    MPI_INTEGER=0x4c00${len_integer}1b
53233    MPI_REAL=0x4c00${len_integer}1c
53234    MPI_LOGICAL=0x4c00${len_integer}1d
53235
53236
53237
53238
53239    if test -z "$pac_cv_f77_sizeof_double_precision" ; then
53240        as_fn_error $? "Unable to configure with Fortran support because configure could not determine the size of a Fortran DOUBLE PRECISION.  Consider setting CROSS_F77_SIZEOF_DOUBLE_PRECISION to the length in bytes of a Fortran DOUBLE PRECISION" "$LINENO" 5
53241    fi
53242    len_double=$pac_cv_f77_sizeof_double_precision
53243    # Convert to two digit hex
53244    len=$len_double
53245    #
53246    # Take len and turn it into two hex digits (there are 8 bits available
53247    # in the built-in datatype handle for the length; see
53248    # src/mpid/common/datatype/mpidu_datatype.h).  This code is taken
53249    # from the code in mpich/configure.ac
53250    if test "$len" -gt 255 ; then
53251        as_fn_error $? "Type sizes greater than 255 bytes are not supported (type DOUBLE is $len bytes)" "$LINENO" 5
53252    fi
53253    tmplen=$len
53254    hexlen=""
53255    while test $tmplen -gt 0 ; do
53256        lowdigit=`expr $tmplen - 16 \* \( $tmplen / 16 \)`
53257        case $lowdigit in
53258        10) char=a ;;
53259        11) char=b ;;
53260        12) char=c ;;
53261        13) char=d ;;
53262        14) char=e ;;
53263        15) char=f ;;
53264         *) char=$lowdigit ;;
53265        esac
53266        hexlen="$char$hexlen"
53267        tmplen=`expr $tmplen / 16`
53268    done
53269    if test $len -lt 16 ; then
53270        hexlen="0$hexlen"
53271    fi
53272    len_double=$hexlen
53273    if test "$len_double" = 0 ; then
53274       # We have a problem
53275       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine size of a DOUBLE PRECISION type; using 8" >&5
53276$as_echo "$as_me: WARNING: Unable to determine size of a DOUBLE PRECISION type; using 8" >&2;}
53277       # We make the length 8
53278       len_double="08"
53279    fi
53280
53281    # Provide the corresponding C types for MPI_REAL and MPI_DOUBLE
53282    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching Fortran real" >&5
53283$as_echo_n "checking for C type matching Fortran real... " >&6; }
53284    noval=yes
53285    for c_type in float double "long_double" ; do
53286        eval ctypelen=\$"ac_cv_sizeof_$c_type"
53287        if test "$pac_cv_f77_sizeof_real" = "$ctypelen" -a \
53288          "$ctypelen" -gt 0 ; then
53289	    c_type=`echo $c_type | sed -e 's/_/ /g'`
53290	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_type" >&5
53291$as_echo "$c_type" >&6; }
53292	    MPIR_FC_REAL_CTYPE=$c_type
53293	    noval="no"
53294	    break
53295        fi
53296    done
53297    if test "$noval" = "yes" ; then
53298        # Set a default
53299        MPIR_FC_REAL_CTYPE="float"
53300        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5
53301$as_echo "unavailable" >&6; }
53302    fi
53303
53304    noval=yes
53305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching Fortran double" >&5
53306$as_echo_n "checking for C type matching Fortran double... " >&6; }
53307    for c_type in double "long_double" float ; do
53308        eval ctypelen=\$"ac_cv_sizeof_$c_type"
53309        if test "$pac_cv_f77_sizeof_double_precision" = "$ctypelen" -a \
53310          "$ctypelen" -gt 0 ; then
53311	    c_type=`echo $c_type | sed -e 's/_/ /g'`
53312	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_type" >&5
53313$as_echo "$c_type" >&6; }
53314	    MPIR_FC_DOUBLE_CTYPE=$c_type
53315	    noval="no"
53316	    break
53317        fi
53318    done
53319    if test "$noval" = "yes" ; then
53320        # Set a default
53321        MPIR_FC_DOUBLE_CTYPE="double"
53322        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5
53323$as_echo "unavailable" >&6; }
53324    fi
53325
53326    # These are needed to correctly implement the MPI reduction operations
53327
53328cat >>confdefs.h <<_ACEOF
53329#define MPIR_FC_REAL_CTYPE $MPIR_FC_REAL_CTYPE
53330_ACEOF
53331
53332
53333cat >>confdefs.h <<_ACEOF
53334#define MPIR_FC_DOUBLE_CTYPE $MPIR_FC_DOUBLE_CTYPE
53335_ACEOF
53336
53337
53338    # Use the proper length values for these items in case we are building
53339    # with Fortran integers that are not the same size as C ints and
53340    # reals and double precision that are the same size (not valid Fortran,
53341    # but used by some applications)
53342
53343    len_2integer=`expr 2 \* $len_integer`
53344    len_2real=`expr 2 \* $len_integer`
53345    len_doublecplx=`expr $pac_cv_f77_sizeof_double_precision \* 2`
53346    if test "$len_doublecplx" = 0 ; then
53347        # We have a problem
53348        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine size of a DOUBLE PRECISION type; using 8" >&5
53349$as_echo "$as_me: WARNING: Unable to determine size of a DOUBLE PRECISION type; using 8" >&2;}
53350        # We make the length 8*2 (in hex)
53351        len_doublecplx="16"
53352    fi
53353
53354    for lenname in len_2integer len_2real len_doublecplx ; do
53355        eval len=\$$lenname
53356	if test "$len" -gt 255 ; then
53357            as_fn_error $? "Type sizes greater than 255 bytes are not supported (type $lenname is $len bytes)" "$LINENO" 5
53358	fi
53359    	tmplen=$len
53360        hexlen=""
53361        while test $tmplen -gt 0 ; do
53362            lowdigit=`expr $tmplen - 16 \* \( $tmplen / 16 \)`
53363            case $lowdigit in
53364            10) char=a ;;
53365            11) char=b ;;
53366            12) char=c ;;
53367            13) char=d ;;
53368            14) char=e ;;
53369            15) char=f ;;
53370            *) char=$lowdigit ;;
53371            esac
53372            hexlen="$char$hexlen"
53373            tmplen=`expr $tmplen / 16`
53374        done
53375        if test $len -lt 16 ; then
53376            hexlen="0$hexlen"
53377        fi
53378        eval ${lenname}=$hexlen
53379        if test "$hexlen" = 0 ; then
53380           # We have a problem
53381           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine size of a $lenname type; using 8" >&5
53382$as_echo "$as_me: WARNING: Unable to determine size of a $lenname type; using 8" >&2;}
53383           # We make the length 8
53384           eval ${lenname}=$hexlen
53385        fi
53386    done
53387
53388    MPI_DOUBLE_PRECISION=0x4c00${len_double}1f
53389    MPI_2INTEGER=0x4c00${len_2integer}20
53390    MPI_2REAL=0x4c00${len_2real}21
53391    MPI_COMPLEX=0x4c00${len_2real}1e
53392
53393
53394
53395
53396
53397
53398    MPI_DOUBLE_COMPLEX=0x4c00${len_doublecplx}22
53399    MPI_2DOUBLE_PRECISION=0x4c00${len_doublecplx}23
53400
53401
53402
53403    # MPI_2COMPLEX=0x4c00${len_doublecplx}24
53404    # MPI_2DOUBLE_COMPLEX=0x4c00${len_2dc}25
53405
53406    #
53407    # Temporary for the vast majority of systems that use 4 byte reals and
53408    # 8 byte doubles
53409    # Lengths at this point are in hex, hence "10" = 10 base 16 = 16 base 10.
53410    if test "$len_double" = "08" ; then
53411        F77_COMPLEX8=$MPI_COMPLEX
53412    fi
53413    if test "$len_doublecplx" = "10" ; then
53414        F77_COMPLEX16=$MPI_DOUBLE_COMPLEX
53415    fi
53416    if test "$len_long_double" = "10" -a "$MPID_NO_LONG_DOUBLE" != "yes" ; then
53417        F77_COMPLEX32="0x4c002025"
53418    else
53419        F77_COMPLEX32="MPI_DATATYPE_NULL"
53420    fi
53421
53422    MPI_F77_PACKED=$MPI_PACKED
53423    MPI_F77_UB=$MPI_UB
53424    MPI_F77_LB=$MPI_LB
53425    MPI_F77_BYTE=$MPI_BYTE
53426
53427
53428
53429
53430    #
53431    # We must convert all hex values to decimal (!)
53432    # It would be nice to use expr to extract the next character rather than
53433    # the heavier-weight sed, but expr under Tru64 Unix discards leading zeros,
53434    # even when used only with the match (:) command.  Rather than have
53435    # configure figure out if expr works, we just use sed.  Sigh.
53436    for var in CHARACTER INTEGER REAL LOGICAL DOUBLE_PRECISION COMPLEX \
53437        DOUBLE_COMPLEX 2INTEGER 2REAL 2DOUBLE_PRECISION \
53438        F77_PACKED F77_UB F77_LB F77_BYTE; do
53439        fullvar="MPI_$var"
53440        eval fullvarvalue=\$$fullvar
53441        #echo "$fullvar = $fullvarvalue"
53442        value=0
53443        fullvarvalue=`echo $fullvarvalue | sed -e 's/..\(.*\)/\1/'`
53444        for pos in 3 4 5 6 7 8 9 10 ; do
53445            # This works, even for Tru64, because only a single character
53446  	    # is extracted
53447            char=`expr $fullvarvalue : '\(.\)'`
53448	    # FIXME: Tru64 Unix eliminates leading zeros (!)
53449 	    # How do we fix something that broken?
53450	    fullvarvalue=`echo $fullvarvalue | sed -e 's/.\(.*\)/\1/'`
53451            case $char in
53452                a) char=10 ;;
53453	        b) char=11 ;;
53454	        c) char=12 ;;
53455	        d) char=13 ;;
53456	        e) char=14 ;;
53457	        f) char=15 ;;
53458            esac
53459            value=`expr $value \* 16 + $char`
53460        done
53461        #echo "$fullvar = $value"
53462	if test "X$value" = "X"; then
53463            eval origvarvalue=\$$fullvar
53464	    as_fn_error $? "Internal Error: Failed to convert $fullvar value to hex!  Original value was $origvarvalue" "$LINENO" 5
53465        fi
53466        eval $fullvar=$value
53467    done
53468    ac_ext=c
53469ac_cpp='$CPP $CPPFLAGS'
53470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53472ac_compiler_gnu=$ac_cv_c_compiler_gnu
53473
53474
53475    # Now, handle the sized types
53476    #
53477    # Preload the C mpi types
53478    # THESE MUST MATCH THE DEFINITIONS IN MPI.H and MPIF.H
53479    # We use these to match the optional Fortran types
53480    char_mpi=${MPI_CHAR:-0}
53481    short_mpi=${MPI_SHORT:-0}
53482    int_mpi=${MPI_INT:-0}
53483    long_mpi=${MPI_LONG:-0}
53484    long_long_mpi=${MPI_LONG_LONG:-0}
53485    float_mpi=${MPI_FLOAT:-0}
53486    double_mpi=${MPI_DOUBLE:-0}
53487    long_double_mpi=${MPI_LONG_DOUBLE:-0}
53488
53489    #
53490    # The following code was correct for MPI-1, which allowed these datatypes
53491    # to be an alias for another MPI type.  MPI-2 requires these to
53492    # be distinct types, so these are enumerated
53493    if test "$use_alias_types" = yes ; then
53494        for len in 1 2 4 8 16 ; do
53495            eval F77_INTEGER$len=0
53496            #eval testval=\$"pac_cv_f77_sizeof_integer_$len"
53497            eval testval=\$"pac_cv_fort_integer$len"
53498            if test "$testval" = no ; then continue ; fi
53499	    testval=$len
53500            noval="yes"
53501            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching Fortran integer*$len" >&5
53502$as_echo_n "checking for C type matching Fortran integer*$len... " >&6; }
53503            for c_type in char short int long "long_long" ; do
53504	        eval ctypelen=\$"ac_cv_sizeof_$c_type"
53505  	        if test "$testval" = "$ctypelen" -a "$ctypelen" -gt 0 ; then
53506	            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_type" >&5
53507$as_echo "$c_type" >&6; }
53508  	            eval F77_INTEGER$len=\$"${c_type}_mpi"
53509	            noval="no"
53510	            break
53511                fi
53512            done
53513            if test "$noval" = "yes" ; then
53514                { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5
53515$as_echo "unavailable" >&6; }
53516            fi
53517        done
53518
53519        # Complex is set separately above
53520        for len in 4 8 16 ; do
53521            len2=`expr $len + $len`
53522            eval F77_REAL$len=0
53523            #eval F77_COMPLEX$len2=0
53524            #eval testval=\$"pac_cv_f77_sizeof_real_$len"
53525            eval testval=\$"pac_cv_fort_real$len"
53526            if test "$testval" = no ; then continue ; fi
53527	    testval=$len
53528            noval="yes"
53529            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching Fortran real*$len" >&5
53530$as_echo_n "checking for C type matching Fortran real*$len... " >&6; }
53531            for c_type in float double "long_double" ; do
53532	        eval ctypelen=\$"ac_cv_sizeof_$c_type"
53533	        if test "$testval" = "$ctypelen" -a "$ctypelen" -gt 0 ; then
53534	            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_type" >&5
53535$as_echo "$c_type" >&6; }
53536  	            eval F77_REAL$len=\$"${c_type}_mpi"
53537	            #eval F77_COMPLEX$len2=\$"${c_type}_cplx_mpi"
53538                    noval="no"
53539	            break
53540                fi
53541            done
53542            if test "$noval" = "yes" ; then
53543                { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5
53544$as_echo "unavailable" >&6; }
53545            fi
53546        done
53547    else
53548        # Simply determine which types exist.  These may have been set by the
53549        # toplevel configure
53550        for var in INTEGER1 INTEGER2 INTEGER4 INTEGER8 INTEGER16 \
53551            REAL4 REAL8 REAL16 COMPLEX8 COMPLEX16 COMPLEX32 ; do
53552  	    eval varname=MPI_$var
53553            eval varvalue=\$$varname
53554	    #echo "$varname = $varvalue"
53555  	    if test "$varvalue" = MPI_DATATYPE_NULL ; then
53556	        eval F77_$var=0
53557  	    else
53558                eval F77_$var=\$$varname
53559  	    fi
53560       done
53561    fi
53562    # We must convert all hex values to decimal (!)
53563    for var in INTEGER1 INTEGER2 INTEGER4 INTEGER8 INTEGER16 \
53564        REAL4 REAL8 REAL16 COMPLEX8 COMPLEX16 COMPLEX32 ; do
53565        fullvar="F77_$var"
53566        eval fullvarvalue=\$$fullvar
53567        if test "$fullvarvalue" = 0 -o -z "$fullvarvalue" ; then
53568            eval $fullvar=MPI_DATATYPE_NULL
53569            continue
53570        fi
53571        #echo "$fullvar = $fullvarvalue"
53572        value=0
53573        # See the comments above on why expr with : cannot be used here
53574        fullvarvalue=`echo $fullvarvalue | sed -e 's/..\(.*\)/\1/'`
53575        for pos in 3 4 5 6 7 8 9 10 ; do
53576            #char=`expr substr $fullvarvalue $pos 1`
53577            char=`expr $fullvarvalue : '\(.\)'`
53578	    # We don't test for success of expr here because some expr's are
53579  	    # buggy and set the status to one on expressions like
53580            #    expr 00ccc : '\(.\)'
53581            # while both
53582            #    expr 00ccc : '\(..\)'
53583            # and
53584            #    expr 100cc : '\(.\)'
53585            # return a zero status.  So the status is set even on success,
53586            # if the result is a single character that is a zero (!)
53587	    #rc=$?
53588    	    #if test "$rc" != 0 ; then
53589  	      	    #    break
53590	    #fi
53591	    fullvarvalue=`echo $fullvarvalue | sed -e 's/.\(.*\)/\1/'`
53592            case $char in
53593                a) char=10 ;;
53594	        b) char=11 ;;
53595	        c) char=12 ;;
53596	        d) char=13 ;;
53597	        e) char=14 ;;
53598	        f) char=15 ;;
53599            esac
53600            value=`expr $value \* 16 + $char`
53601	    if test $? != 0 ; then
53602	        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failure to evaluate $value \* 16 + $char" >&5
53603$as_echo "$as_me: WARNING: Failure to evaluate $value \* 16 + $char" >&2;}
53604	    fi
53605        done
53606        #echo "$fullvar = $value"
53607        eval $fullvar=$value
53608    done
53609
53610
53611
53612
53613
53614
53615
53616
53617
53618
53619
53620
53621    noval="yes"
53622    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C type matching Fortran integer" >&5
53623$as_echo_n "checking for C type matching Fortran integer... " >&6; }
53624    for c_type in char short int long "long_long" ; do
53625        eval ctypelen=\$"ac_cv_sizeof_$c_type"
53626        if test "$pac_cv_f77_sizeof_integer" = "$ctypelen" -a \
53627          "$ctypelen" -gt 0 ; then
53628	    c_type=`echo $c_type | sed -e 's/_/ /g'`
53629	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_type" >&5
53630$as_echo "$c_type" >&6; }
53631	    MPI_FINT=$c_type
53632	    noval="no"
53633	    break
53634        fi
53635    done
53636    if test "$noval" = "yes" ; then
53637        # Set a default
53638        MPI_FINT="int"
53639        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5
53640$as_echo "unavailable" >&6; }
53641    fi
53642    # We also need to check the size of MPI_Aint vs MPI_Fint, and
53643    # define AINT_LARGER_THAN_FINT if aint is larger (this
53644    # affects code in MPI_Address)
53645    if test "$ac_cv_sizeof_void_p" != "0" -a \
53646        "$ac_cv_sizeof_void_p" -gt "$pac_cv_f77_sizeof_integer" ; then
53647
53648$as_echo "#define HAVE_AINT_LARGER_THAN_FINT 1" >>confdefs.h
53649
53650    fi
53651    if test "$ac_cv_sizeof_void_p" != 0 -a \
53652        "$ac_cv_sizeof_void_p" != "$pac_cv_f77_sizeof_integer" ; then
53653
53654$as_echo "#define HAVE_AINT_DIFFERENT_THAN_FINT 1" >>confdefs.h
53655
53656    fi
53657
53658    # Include a defined value for Fint is int
53659    if test "$MPI_FINT" = "int" ; then
53660
53661$as_echo "#define HAVE_FINT_IS_INT 1" >>confdefs.h
53662
53663    elif test "$SIZEOF_F77_INTEGER" != "$ac_cv_sizeof_int" ; then
53664        # Make this fatal because we do not want to build a broken fortran
53665	# interface (was error)
53666	# Check to see if the f77 binding has enabled the code to support
53667	# the case of int != fint.
53668	if grep HAVE_FINT_IS_INT $main_top_srcdir/src/binding/fortran/mpif_h/testf.c 2>&1 1>/dev/null ; then
53669	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran integers and C ints are not the same size.  Support for this case is experimental; use at your own risk" >&5
53670$as_echo "$as_me: WARNING: Fortran integers and C ints are not the same size.  Support for this case is experimental; use at your own risk" >&2;}
53671	else
53672            as_fn_error $? "Fortran integers and C ints are not the same size.  The current Fortran binding does not support this case.  Either force the Fortran compiler to use integers of $ac_cv_sizeof_int bytes, or use --disable-fortran on the configure line for MPICH." "$LINENO" 5
53673	fi
53674    fi
53675
53676    # We must convert all hex values to decimal (!).
53677    # This is for the C types so they are also available in Fortran
53678    for var in CHAR SIGNED_CHAR UNSIGNED_CHAR WCHAR SHORT \
53679                  UNSIGNED_SHORT INT UNSIGNED_INT LONG UNSIGNED_LONG \
53680                  FLOAT DOUBLE LONG_DOUBLE LONG_LONG_INT \
53681                  UNSIGNED_LONG_LONG LONG_LONG FLOAT_INT DOUBLE_INT \
53682                  LONG_INT SHORT_INT "2INT" LONG_DOUBLE_INT \
53683                  INT8_T INT16_T INT32_T INT64_T            \
53684                  UINT8_T UINT16_T UINT32_T UINT64_T        \
53685                  C_BOOL C_FLOAT_COMPLEX C_DOUBLE_COMPLEX   \
53686                  C_LONG_DOUBLE_COMPLEX AINT OFFSET ; do
53687        fullvar="MPI_$var"
53688        fullf77var="MPI_F77_$var"
53689        eval fullvarvalue=\$$fullvar
53690        #echo "$fullvar = $fullvarvalue"
53691        if test "x$fullvarvalue" = "x" -o \
53692                "x$fullvarvalue" = "xMPI_DATATYPE_NULL" ; then
53693             eval $fullf77var="MPI_DATATYPE_NULL"
53694              continue
53695        fi
53696        value=0
53697        fullvarvalue=`echo $fullvarvalue | sed -e 's/..\(.*\)/\1/'`
53698        offset=0
53699        for pos in 3 4 5 6 7 8 9 10 ; do
53700            # This works, even for Tru64, because only a single character
53701            # is extracted
53702            char=`expr $fullvarvalue : '\(.\)'`
53703            # FIXME: Tru64 Unix eliminates leading zeros (!)
53704            # How do we fix something that broken?
53705            fullvarvalue=`echo $fullvarvalue | sed -e 's/.\(.*\)/\1/'`
53706            case $char in
53707                a) char=10 ;;
53708                b) char=11 ;;
53709                c) char=12 ;;
53710                d) char=13 ;;
53711                e) char=14 ;;
53712                f) char=15 ;;
53713            esac
53714            # For Fortran, if the value is too big for an unsigned int,
53715            # we need to make it a signed (negative) int. Currently, the
53716            # types in this class are the minloc/maxloc types.
53717            if test $pos = 3 -a $char -ge 8 ; then
53718                #echo "for $var in position $pos found a value >= 8"
53719                char=`expr $char - 8`
53720                offset=-2147483648
53721            fi
53722            value=`expr $value \* 16 + $char`
53723        done
53724        if test "$offset" != 0 ; then
53725            #echo "$fullf77var: $value, $offset"
53726            value=`expr $value + $offset`
53727        fi
53728        #echo "$fullf77var = $value"
53729        eval $fullf77var=$value
53730    done
53731
53732
53733
53734
53735
53736
53737    MPI_F77_UNSIGNED=$MPI_F77_UNSIGNED_INT
53738
53739
53740
53741
53742
53743
53744
53745
53746    MPI_F77_LONG_LONG_INT=$MPI_F77_LONG_LONG
53747
53748
53749
53750
53751
53752
53753
53754
53755
53756
53757
53758
53759
53760
53761
53762
53763
53764
53765    # C_COMPLEX is an alias for FLOAT_COMPLEX
53766    MPI_F77_C_COMPLEX=$MPI_F77_C_FLOAT_COMPLEX
53767
53768
53769
53770    # these two are not yet defined, but AC_SUBST only cares about them at
53771    # AC_OUTPUT-time
53772
53773
53774
53775    # Try and compute the values of .true. and .false. in Fortran
53776    # This code has been removed because the Fortran binding code does
53777    # not yet support it.
53778
53779
53780
53781pac_mpi_fint="$MPI_FINT"
53782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for values of Fortran logicals" >&5
53783$as_echo_n "checking for values of Fortran logicals... " >&6; }
53784if ${pac_cv_prog_f77_true_false_value+:} false; then :
53785  $as_echo_n "(cached) " >&6
53786else
53787
53788pac_cv_prog_f77_true_false_value=""
53789ac_ext=c
53790ac_cpp='$CPP $CPPFLAGS'
53791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53793ac_compiler_gnu=$ac_cv_c_compiler_gnu
53794
53795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53796/* end confdefs.h.  */
53797
53798
53799#if defined(HAVE_STDIO_H) || defined(STDC_HEADERS)
53800#include <stdio.h>
53801#endif
53802#if defined(HAVE_STDLIB_H) || defined(STDC_HEADERS)
53803#include <stdlib.h>
53804#endif
53805#ifdef F77_NAME_UPPER
53806#define ftest_ FTEST
53807#elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED)
53808#define ftest_ ftest
53809#endif
53810void ftest_( $pac_mpi_fint *, $pac_mpi_fint *);
53811void ftest_( $pac_mpi_fint *itrue, $pac_mpi_fint *ifalse )
53812{
53813  FILE *f = fopen("conftestval","w");
53814  if (!f) exit(1);
53815  fprintf( f, "%d %d\n", *itrue, *ifalse );
53816  fclose(f);
53817}
53818
53819
53820_ACEOF
53821if ac_fn_c_try_compile "$LINENO"; then :
53822
53823
53824{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
53825  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
53826  ac_status=$?
53827  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53828  test $ac_status = 0; }
53829    saved_LIBS="$LIBS"
53830    LIBS="pac_conftest.$OBJEXT $saved_LIBS"
53831    ac_ext=f
53832ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
53833ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53834ac_compiler_gnu=$ac_cv_f77_compiler_gnu
53835
53836    if test "$cross_compiling" = yes; then :
53837
53838        # Cross-Compiling.  Allow the user to set the values
53839        if test -n "$CROSS_F77_TRUE_VALUE" -a -n "$CROSS_F77_FALSE_VALUE" ; then
53840            pac_cv_prog_f77_true_false_value="$CROSS_F77_TRUE_VALUE $CROSS_F77_FALSE_VALUE"
53841        else
53842            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Either CROSS_F77_TRUE_VALUE=\"$CROSS_F77_TRUE_VALUE\" or CROSS_F77_FALSE_VALUE=\"$CROSS_F77_FALSE_VALUE\" is not set." >&5
53843$as_echo "$as_me: WARNING: Either CROSS_F77_TRUE_VALUE=\"$CROSS_F77_TRUE_VALUE\" or CROSS_F77_FALSE_VALUE=\"$CROSS_F77_FALSE_VALUE\" is not set." >&2;}
53844        fi
53845
53846else
53847  cat > conftest.$ac_ext <<_ACEOF
53848
53849
53850            program main
53851            logical itrue, ifalse
53852            itrue = .TRUE.
53853            ifalse = .FALSE.
53854            call ftest( itrue, ifalse )
53855            end
53856
53857
53858_ACEOF
53859if ac_fn_f77_try_run "$LINENO"; then :
53860
53861        pac_cv_prog_f77_true_false_value="`cat conftestval`"
53862
53863else
53864
53865        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to build/run program to determine Fortran logical values." >&5
53866$as_echo "$as_me: WARNING: Failed to build/run program to determine Fortran logical values." >&2;}
53867
53868fi
53869rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
53870  conftest.$ac_objext conftest.beam conftest.$ac_ext
53871fi
53872
53873    ac_ext=c
53874ac_cpp='$CPP $CPPFLAGS'
53875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53877ac_compiler_gnu=$ac_cv_c_compiler_gnu
53878
53879    LIBS="$saved_LIBS"
53880    rm -f pac_conftest.$OBJEXT
53881
53882fi
53883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53884ac_ext=c
53885ac_cpp='$CPP $CPPFLAGS'
53886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53888ac_compiler_gnu=$ac_cv_c_compiler_gnu
53889
53890
53891fi
53892
53893if test "X$pac_cv_prog_f77_true_false_value" != "X" ; then
53894    true_val="`echo $pac_cv_prog_f77_true_false_value | sed -e 's/ .*//g'`"
53895    false_val="`echo $pac_cv_prog_f77_true_false_value | sed -e 's/.*  *//g'`"
53896    if test -n "$true_val" -a -n "$false_val" ; then
53897        { $as_echo "$as_me:${as_lineno-$LINENO}: result: True is $true_val and False is $false_val" >&5
53898$as_echo "True is $true_val and False is $false_val" >&6; }
53899    else
53900        { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not determine" >&5
53901$as_echo "could not determine" >&6; }
53902    fi
53903fi
53904if test -n "$true_val" -a -n "$false_val" ; then
53905
53906$as_echo "#define F77_TRUE_VALUE_SET 1" >>confdefs.h
53907
53908
53909cat >>confdefs.h <<_ACEOF
53910#define F77_TRUE_VALUE $true_val
53911_ACEOF
53912
53913
53914cat >>confdefs.h <<_ACEOF
53915#define F77_FALSE_VALUE $false_val
53916_ACEOF
53917
53918fi
53919
53920
53921    # Get the INTEGER_KIND, ADDRESS_KIND and OFFSET_KIND if possible
53922    #
53923    # For Fortran 90, we'll also need MPI_ADDRESS_KIND and MPI_OFFSET_KIND
53924    # Since our compiler might BE a Fortran 90 compiler, try and determine the
53925    # values.
53926    if test "$FC" = "no" ; then
53927
53928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 is a Fortran 90 compiler" >&5
53929$as_echo_n "checking whether $F77 is a Fortran 90 compiler... " >&6; }
53930ac_ext=f
53931ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
53932ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53933ac_compiler_gnu=$ac_cv_f77_compiler_gnu
53934
53935saved_ac_ext=$ac_ext
53936ac_ext="f90"
53937cat > conftest.$ac_ext <<_ACEOF
53938
53939
53940        program main
53941        integer, dimension(10) :: n
53942        integer k
53943        print *,  range(k)
53944        end
53945
53946
53947_ACEOF
53948if ac_fn_f77_try_link "$LINENO"; then :
53949
53950    pac_cv_prog_f77_is_fc=yes
53951
53952            FC=$F77
53953            if test -z "$FCFLAGS" ; then
53954                FCFLAGS="$FFLAGS"
53955            fi
53956
53957
53958else
53959
53960    pac_cv_prog_f77_is_fc=no
53961
53962
53963fi
53964rm -f core conftest.err conftest.$ac_objext \
53965    conftest$ac_exeext conftest.$ac_ext
53966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_prog_f77_is_fc" >&5
53967$as_echo "$pac_cv_prog_f77_is_fc" >&6; }
53968ac_ext=c
53969ac_cpp='$CPP $CPPFLAGS'
53970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53972ac_compiler_gnu=$ac_cv_c_compiler_gnu
53973
53974
53975    fi
53976    if test "$FC" != "no" ; then
53977        # Offset kind should be for 8 bytes if possible (Romio prefers that)
53978        # address should be sizeof void * (unless --with-aint-size has
53979        # been set)
53980        # FIXME in the current configure implementation OFFSET_KIND and
53981        # MPI_Offset won't always agree, but generally will.  The MPI Standard
53982        # implies that these types must have identical size, so this is a bug
53983        # waiting to happen.
53984	if test "$with_aint_size" -gt 0 -a \
53985	        "$with_aint_size" -gt "$ac_cv_sizeof_void_p" ; then
53986	    testsize=$with_aint_size
53987        else
53988            testsize=$ac_cv_sizeof_void_p
53989        fi
53990        if test "$testsize" = 0 ; then
53991            # Set a default
53992            testsize=4
53993        fi
53994
53995# Set the default
53996ADDRESS_KIND=-1
53997if test "$pac_cv_prog_fc_cross" = "yes" ; then
53998    if test -z "$CROSS_F90_ADDRESS_KIND"; then :
53999  as_fn_error $? "'$CROSS_F90_ADDRESS_KIND' is empty" "$LINENO" 5
54000fi
54001    ADDRESS_KIND="$CROSS_F90_ADDRESS_KIND"
54002else
54003    ac_ext=${ac_fc_srcext-f}
54004ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
54005ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
54006ac_compiler_gnu=$ac_cv_fc_compiler_gnu
54007
54008    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 integer kind for ${testsize}-byte integers" >&5
54009$as_echo_n "checking for Fortran 90 integer kind for ${testsize}-byte integers... " >&6; }
54010    # Convert bytes to digits
54011    case ${testsize} in
54012        1) sellen=2 ;;
54013        2) sellen=4 ;;
54014        4) sellen=8 ;;
54015        8) sellen=16 ;;
54016       16) sellen=30 ;;
54017        *) sellen=8 ;;
54018    esac
54019    # Check for cached value
54020    eval testval=\$"pac_cv_prog_fc_int_kind_$sellen"
54021    if test -n "$testval" ; then
54022        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testval (cached)" >&5
54023$as_echo "$testval (cached)" >&6; }
54024        ADDRESS_KIND=$testval
54025    else
54026        KINDVAL="unavailable"
54027        eval "pac_cv_prog_fc_int_kind_$sellen"=-1
54028        if test "$cross_compiling" = yes; then :
54029  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
54030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54031as_fn_error $? "cannot run test program while cross compiling
54032See \`config.log' for more details" "$LINENO" 5; }
54033else
54034  cat > conftest.$ac_ext <<_ACEOF
54035
54036
54037                program main
54038                integer ii
54039                ii = selected_int_kind($sellen)
54040                open(8, file="conftest1.out", form="formatted")
54041                write (8,*) ii
54042                close(8)
54043                stop
54044                end
54045
54046
54047_ACEOF
54048if ac_fn_fc_try_run "$LINENO"; then :
54049  pac_run_ok=yes
54050else
54051  pac_run_ok=no
54052fi
54053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54054  conftest.$ac_objext conftest.beam conftest.$ac_ext
54055fi
54056
54057        if test "$pac_run_ok" = "yes" ; then
54058            if test -s conftest1.out ; then
54059                # Because of write, there may be a leading blank.
54060                KINDVAL=`cat conftest1.out | sed 's/ //g'`
54061                eval "pac_cv_prog_fc_int_kind_$sellen"=$KINDVAL
54062                ADDRESS_KIND=$KINDVAL
54063            fi
54064        fi
54065        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KINDVAL" >&5
54066$as_echo "$KINDVAL" >&6; }
54067    fi # not cached
54068    ac_ext=c
54069ac_cpp='$CPP $CPPFLAGS'
54070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54072ac_compiler_gnu=$ac_cv_c_compiler_gnu
54073
54074fi # is not cross compiling
54075
54076        if test "$testsize" = 8 ; then
54077            OFFSET_KIND=$ADDRESS_KIND
54078        else
54079
54080# Set the default
54081OFFSET_KIND=-1
54082if test "$pac_cv_prog_fc_cross" = "yes" ; then
54083    if test -z "$CROSS_F90_OFFSET_KIND"; then :
54084  as_fn_error $? "'$CROSS_F90_OFFSET_KIND' is empty" "$LINENO" 5
54085fi
54086    OFFSET_KIND="$CROSS_F90_OFFSET_KIND"
54087else
54088    ac_ext=${ac_fc_srcext-f}
54089ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
54090ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
54091ac_compiler_gnu=$ac_cv_fc_compiler_gnu
54092
54093    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 integer kind for 8-byte integers" >&5
54094$as_echo_n "checking for Fortran 90 integer kind for 8-byte integers... " >&6; }
54095    # Convert bytes to digits
54096    case 8 in
54097        1) sellen=2 ;;
54098        2) sellen=4 ;;
54099        4) sellen=8 ;;
54100        8) sellen=16 ;;
54101       16) sellen=30 ;;
54102        *) sellen=8 ;;
54103    esac
54104    # Check for cached value
54105    eval testval=\$"pac_cv_prog_fc_int_kind_$sellen"
54106    if test -n "$testval" ; then
54107        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testval (cached)" >&5
54108$as_echo "$testval (cached)" >&6; }
54109        OFFSET_KIND=$testval
54110    else
54111        KINDVAL="unavailable"
54112        eval "pac_cv_prog_fc_int_kind_$sellen"=-1
54113        if test "$cross_compiling" = yes; then :
54114  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
54115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54116as_fn_error $? "cannot run test program while cross compiling
54117See \`config.log' for more details" "$LINENO" 5; }
54118else
54119  cat > conftest.$ac_ext <<_ACEOF
54120
54121
54122                program main
54123                integer ii
54124                ii = selected_int_kind($sellen)
54125                open(8, file="conftest1.out", form="formatted")
54126                write (8,*) ii
54127                close(8)
54128                stop
54129                end
54130
54131
54132_ACEOF
54133if ac_fn_fc_try_run "$LINENO"; then :
54134  pac_run_ok=yes
54135else
54136  pac_run_ok=no
54137fi
54138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54139  conftest.$ac_objext conftest.beam conftest.$ac_ext
54140fi
54141
54142        if test "$pac_run_ok" = "yes" ; then
54143            if test -s conftest1.out ; then
54144                # Because of write, there may be a leading blank.
54145                KINDVAL=`cat conftest1.out | sed 's/ //g'`
54146                eval "pac_cv_prog_fc_int_kind_$sellen"=$KINDVAL
54147                OFFSET_KIND=$KINDVAL
54148            fi
54149        fi
54150        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KINDVAL" >&5
54151$as_echo "$KINDVAL" >&6; }
54152    fi # not cached
54153    ac_ext=c
54154ac_cpp='$CPP $CPPFLAGS'
54155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54157ac_compiler_gnu=$ac_cv_c_compiler_gnu
54158
54159fi # is not cross compiling
54160
54161        fi
54162        #
54163
54164# Set the default
54165INTEGER_KIND=-1
54166if test "$pac_cv_prog_fc_cross" = "yes" ; then
54167    if test -z "$CROSS_F90_INTEGER_KIND"; then :
54168  as_fn_error $? "'$CROSS_F90_INTEGER_KIND' is empty" "$LINENO" 5
54169fi
54170    INTEGER_KIND="$CROSS_F90_INTEGER_KIND"
54171else
54172    ac_ext=${ac_fc_srcext-f}
54173ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
54174ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
54175ac_compiler_gnu=$ac_cv_fc_compiler_gnu
54176
54177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 90 integer kind for $pac_cv_f77_sizeof_integer-byte integers" >&5
54178$as_echo_n "checking for Fortran 90 integer kind for $pac_cv_f77_sizeof_integer-byte integers... " >&6; }
54179    # Convert bytes to digits
54180    case $pac_cv_f77_sizeof_integer in
54181        1) sellen=2 ;;
54182        2) sellen=4 ;;
54183        4) sellen=8 ;;
54184        8) sellen=16 ;;
54185       16) sellen=30 ;;
54186        *) sellen=8 ;;
54187    esac
54188    # Check for cached value
54189    eval testval=\$"pac_cv_prog_fc_int_kind_$sellen"
54190    if test -n "$testval" ; then
54191        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $testval (cached)" >&5
54192$as_echo "$testval (cached)" >&6; }
54193        INTEGER_KIND=$testval
54194    else
54195        KINDVAL="unavailable"
54196        eval "pac_cv_prog_fc_int_kind_$sellen"=-1
54197        if test "$cross_compiling" = yes; then :
54198  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
54199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54200as_fn_error $? "cannot run test program while cross compiling
54201See \`config.log' for more details" "$LINENO" 5; }
54202else
54203  cat > conftest.$ac_ext <<_ACEOF
54204
54205
54206                program main
54207                integer ii
54208                ii = selected_int_kind($sellen)
54209                open(8, file="conftest1.out", form="formatted")
54210                write (8,*) ii
54211                close(8)
54212                stop
54213                end
54214
54215
54216_ACEOF
54217if ac_fn_fc_try_run "$LINENO"; then :
54218  pac_run_ok=yes
54219else
54220  pac_run_ok=no
54221fi
54222rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
54223  conftest.$ac_objext conftest.beam conftest.$ac_ext
54224fi
54225
54226        if test "$pac_run_ok" = "yes" ; then
54227            if test -s conftest1.out ; then
54228                # Because of write, there may be a leading blank.
54229                KINDVAL=`cat conftest1.out | sed 's/ //g'`
54230                eval "pac_cv_prog_fc_int_kind_$sellen"=$KINDVAL
54231                INTEGER_KIND=$KINDVAL
54232            fi
54233        fi
54234        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KINDVAL" >&5
54235$as_echo "$KINDVAL" >&6; }
54236    fi # not cached
54237    ac_ext=c
54238ac_cpp='$CPP $CPPFLAGS'
54239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54241ac_compiler_gnu=$ac_cv_c_compiler_gnu
54242
54243fi # is not cross compiling
54244
54245        if test "$INTEGER_KIND" = "-1" ; then
54246	    # In our experience, this usually means that there is some
54247	    # problem building and/or running the f90 program.  Fail
54248	    # in this case rather than attempt to continue
54249	    as_fn_error $? "Unable to determine Fortran 90 KIND values for either address-sized integers or offset-sized integers." "$LINENO" 5
54250        fi
54251	#
54252        # Some compilers won't allow a -1 kind (e.g., absoft).  In this case,
54253        # use a fallback (sizeof(int) kind)
54254        if test "$ADDRESS_KIND" = "-1" -o "$OFFSET_KIND" = "-1" ; then
54255            if test "$ADDRESS_KIND" = "-1" ; then
54256	        ADDRESS_KIND=$INTEGER_KIND
54257            fi
54258            if test "$OFFSET_KIND" = "-1" ; then
54259	        OFFSET_KIND=$INTEGER_KIND
54260            fi
54261        fi
54262	ac_ext=${ac_fc_srcext-f}
54263ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
54264ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
54265ac_compiler_gnu=$ac_cv_fc_compiler_gnu
54266
54267        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if real*8 is supported in Fortran 90" >&5
54268$as_echo_n "checking if real*8 is supported in Fortran 90... " >&6; }
54269if ${pac_cv_fort90_real8+:} false; then :
54270  $as_echo_n "(cached) " >&6
54271else
54272
54273            cat > conftest.$ac_ext <<_ACEOF
54274
54275                      program main
54276      real*8 a
54277      end
54278
54279_ACEOF
54280if ac_fn_fc_try_compile "$LINENO"; then :
54281
54282                pac_cv_fort90_real8=yes
54283
54284else
54285
54286                pac_cv_fort90_real8=no
54287
54288fi
54289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54290
54291fi
54292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fort90_real8" >&5
54293$as_echo "$pac_cv_fort90_real8" >&6; }
54294	ac_ext=c
54295ac_cpp='$CPP $CPPFLAGS'
54296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54298ac_compiler_gnu=$ac_cv_c_compiler_gnu
54299
54300	WTIME_DOUBLE_TYPE="DOUBLE PRECISION"
54301	# Save a copy of the original mpi_base.f90 file
54302	if test "$enable_fc" = "yes" -a "$pac_cv_fort90_real8" = "yes" ; then
54303	    WTIME_DOUBLE_TYPE="REAL*8"
54304        fi
54305	# WTIME_DOUBLE_TYPE is substituted into mpi_base.f90
54306
54307    fi
54308    # Make sure that address kind and offset kind have values.
54309    if test -z "$ADDRESS_KIND" ; then
54310        ADDRESS_KIND=0
54311    fi
54312    if test -z "$OFFSET_KIND" ; then
54313        OFFSET_KIND=0
54314    fi
54315    # Note, however, that zero value are (in all practical case) invalid
54316    # for Fortran 90, and indicate a failure.  Test and fail if Fortran 90
54317    # enabled.
54318    if test "$enable_fc" = "yes" ; then
54319        if test "$ADDRESS_KIND" -le 0 -o "$OFFSET_KIND" -le 0 ; then
54320	    as_fn_error $? "Unable to determine Fortran 90 integer kinds for MPI types.  If you do not need Fortran 90, add --disable-fc to the configure options." "$LINENO" 5
54321	    # If the above is converted to a warning, you need to change
54322	    # enable_fc and remote f90 from the bindings
54323	    enable_fc=no
54324        fi
54325    fi
54326
54327
54328
54329
54330    # Some compilers may require special directives to handle the common
54331    # block in a library.  In particular, directives are needed for Microsoft
54332    # Windows to support dynamic library import.  The following six
54333    # directives may be needed:
54334    #  CMS\$ATTRIBUTES DLLIMPORT::/MPIPRIV1/
54335    #  CMS\$ATTRIBUTES DLLIMPORT::/MPIPRIV2/
54336    #  CMS\$ATTRIBUTES DLLIMPORT::/MPIPRIVC/
54337    #  CDEC\$ATTRIBUTES DLLIMPORT::/MPIPRIV1/
54338    #  CDEC\$ATTRIBUTES DLLIMPORT::/MPIPRIV2/
54339    #  CDEC\$ATTRIBUTES DLLIMPORT::/MPIPRIVC/
54340    # CMS is for the Microsoft compiler,
54341    # CDEC is (we believe) for the DEC Fortran compiler.
54342    # We need to make this a configure-time variable because some compilers
54343    # (in particular, a version of the Intel Fortran compiler for Linux)
54344    # will read directives for other compilers and then flag as fatal
54345    # errors directives that it does not support but does recognize.
54346
54347    DLLIMPORT=""
54348
54349
54350    # FIXME:
54351    # We also need to include
54352    # SIZEOF_FC_MPI_OFFSET
54353    # SIZEOF_FC_MPI_AINT
54354    #
54355    # If other "kinds" are supported, MPI_SIZEOF needs to identify
54356    # those as well.  This is very difficult to do in a general way.
54357
54358    # To start with, we use the sizes determined for the Fortran 77 values.
54359    # These must be the same as for the Fortran 90 values.
54360    CROSS_F90_SIZEOF_INTEGER=${CROSS_F90_SIZEOF_INTEGER:-0}
54361    CROSS_F90_SIZEOF_REAL=${CROSS_F90_SIZEOF_REAL:-0}
54362    CROSS_F90_SIZEOF_DOUBLE_PRECISION=${CROSS_F90_SIZEOF_DOUBLE_PRECISION:-0}
54363    SIZEOF_FC_INTEGER=$CROSS_F90_SIZEOF_INTEGER
54364    SIZEOF_FC_REAL=$CROSS_F90_SIZEOF_REAL
54365    SIZEOF_FC_CHARACTER=1
54366    SIZEOF_FC_DOUBLE_PRECISION=$CROSS_F90_SIZEOF_DOUBLE_PRECISION
54367    if test "$pac_cv_f77_sizeof_integer" -gt 0 -a \
54368	    "$SIZEOF_FC_INTEGER" = "0" ; then
54369        SIZEOF_FC_INTEGER=$pac_cv_f77_sizeof_integer
54370    fi
54371    if test "$pac_cv_f77_sizeof_real" -gt 0 -a "$SIZEOF_FC_REAL" = "0" ; then
54372        SIZEOF_FC_REAL=$pac_cv_f77_sizeof_real
54373    fi
54374    if test "$pac_cv_f77_sizeof_double_precision" -gt 0 -a \
54375       "$SIZEOF_FC_DOUBLE_PRECISION" = "0" ; then
54376        SIZEOF_FC_DOUBLE_PRECISION=$pac_cv_f77_sizeof_double_precision
54377    fi
54378
54379
54380
54381
54382
54383    # REQD is short for "real equal double precision" and is set to the
54384    # Fortran 90 comment character if true.  This is necessary to
54385    # allow the mpi_sizeofs module to be built, since if this part of the
54386    # Fortran standard is violated by the compiler (unfortunately common,
54387    # as some applications are written to require this non-standard
54388    # version), the double precision versions of the MPI_SIZEOF routine
54389    # must be commented out of the module (!).
54390    REQD=
54391    if test "$SIZEOF_FC_REAL" = "$SIZEOF_FC_DOUBLE_PRECISION" ; then
54392        REQD="!"
54393    fi
54394
54395    # Is integer*1 supported, and is it a different size than integer?
54396    REQI1="!"
54397    if test "$pac_cv_fort_integer1" = yes -a "$SIZEOF_FC_INTEGER" != 1 ; then
54398        REQI1=
54399    fi
54400
54401    # Is integer*2 supported, and is it a different size than integer?
54402    REQI2="!"
54403    if test "$pac_cv_fort_integer2" = yes -a "$SIZEOF_FC_INTEGER" != 2 ; then
54404        REQI2=
54405    fi
54406
54407    # Is integer*8 supported, and is it a different size than integer?
54408    REQI8="!"
54409    if test "$pac_cv_fort_integer8" = yes -a "$SIZEOF_FC_INTEGER" != 8 ; then
54410        REQI8=
54411    fi
54412
54413    #
54414
54415    ac_ext=c
54416ac_cpp='$CPP $CPPFLAGS'
54417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54419ac_compiler_gnu=$ac_cv_c_compiler_gnu
54420
54421fi
54422# ----------------------------------------------------------------------------
54423# C++ types
54424
54425# default to null types
54426# Set to "0x0c000000" instead of "MPI_DATATYPE_NULL" because these values
54427# sometimes are used in preprocessor tests where we cannot compare the
54428# type-casted values.
54429MPIR_CXX_BOOL=0x0c000000
54430MPIR_CXX_COMPLEX=0x0c000000
54431MPIR_CXX_DOUBLE_COMPLEX=0x0c000000
54432MPIR_CXX_LONG_DOUBLE_COMPLEX=0x0c000000
54433MPI_F77_CXX_BOOL=MPI_DATATYPE_NULL
54434MPI_F77_CXX_FLOAT_COMPLEX=MPI_DATATYPE_NULL
54435MPI_F77_CXX_DOUBLE_COMPLEX=MPI_DATATYPE_NULL
54436MPI_F77_CXX_LONG_DOUBLE_COMPLEX=MPI_DATATYPE_NULL
54437if test "$enable_cxx" = "yes" ; then
54438    ac_ext=cpp
54439ac_cpp='$CXXCPP $CPPFLAGS'
54440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54443
54444    # The cast to long int works around a bug in the HP C Compiler
54445# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54446# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54447# This bug is HP SR number 8606223364.
54448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of bool" >&5
54449$as_echo_n "checking size of bool... " >&6; }
54450if ${ac_cv_sizeof_bool+:} false; then :
54451  $as_echo_n "(cached) " >&6
54452else
54453  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (bool))" "ac_cv_sizeof_bool"        "$ac_includes_default"; then :
54454
54455else
54456  if test "$ac_cv_type_bool" = yes; then
54457     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
54458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54459as_fn_error 77 "cannot compute sizeof (bool)
54460See \`config.log' for more details" "$LINENO" 5; }
54461   else
54462     ac_cv_sizeof_bool=0
54463   fi
54464fi
54465
54466fi
54467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_bool" >&5
54468$as_echo "$ac_cv_sizeof_bool" >&6; }
54469
54470
54471
54472cat >>confdefs.h <<_ACEOF
54473#define SIZEOF_BOOL $ac_cv_sizeof_bool
54474_ACEOF
54475
54476
54477
54478    # Find a C type that matches the size of the C++ boolean type
54479    case "$ac_cv_sizeof_bool" in
54480    	 $ac_cv_sizeof__Bool)
54481		bool_type=_Bool
54482		;;
54483    	 $ac_cv_sizeof_unsigned_char)
54484		bool_type="unsigned char"
54485		;;
54486    	 $ac_cv_sizeof_unsigned_short)
54487		bool_type="unsigned short"
54488		;;
54489    	 $ac_cv_sizeof_unsigned_int)
54490		bool_type="unsigned int"
54491		;;
54492    	 $ac_cv_sizeof_unsigned_long)
54493		bool_type="unsigned long"
54494		;;
54495    	 $ac_cv_sizeof_unsigned_long_long)
54496		bool_type="unsigned long long"
54497		;;
54498         *)
54499		as_fn_error $? "unable to determine matching C type for C++ bool" "$LINENO" 5
54500		;;
54501    esac
54502
54503cat >>confdefs.h <<_ACEOF
54504#define MPIR_CXX_BOOL_CTYPE $bool_type
54505_ACEOF
54506
54507
54508
54509ac_fn_cxx_check_header_mongrel "$LINENO" "complex" "ac_cv_header_complex" "$ac_includes_default"
54510if test "x$ac_cv_header_complex" = xyes; then :
54511
54512fi
54513
54514
54515    if test "$ac_cv_header_complex" = "yes" ; then
54516        # The C++ complex types are all templated.  We finagle this by
54517        # defining a standin name
54518        # The cast to long int works around a bug in the HP C Compiler
54519# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54520# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54521# This bug is HP SR number 8606223364.
54522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Complex" >&5
54523$as_echo_n "checking size of Complex... " >&6; }
54524if ${ac_cv_sizeof_Complex+:} false; then :
54525  $as_echo_n "(cached) " >&6
54526else
54527  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (Complex))" "ac_cv_sizeof_Complex"        "#include <stdio.h>
54528#include <complex>
54529using namespace std;
54530#define Complex complex<float>
54531
54532"; then :
54533
54534else
54535  if test "$ac_cv_type_Complex" = yes; then
54536     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
54537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54538as_fn_error 77 "cannot compute sizeof (Complex)
54539See \`config.log' for more details" "$LINENO" 5; }
54540   else
54541     ac_cv_sizeof_Complex=0
54542   fi
54543fi
54544
54545fi
54546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_Complex" >&5
54547$as_echo "$ac_cv_sizeof_Complex" >&6; }
54548
54549
54550
54551cat >>confdefs.h <<_ACEOF
54552#define SIZEOF_COMPLEX $ac_cv_sizeof_Complex
54553_ACEOF
54554
54555
54556        # The cast to long int works around a bug in the HP C Compiler
54557# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54558# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54559# This bug is HP SR number 8606223364.
54560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of DoubleComplex" >&5
54561$as_echo_n "checking size of DoubleComplex... " >&6; }
54562if ${ac_cv_sizeof_DoubleComplex+:} false; then :
54563  $as_echo_n "(cached) " >&6
54564else
54565  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (DoubleComplex))" "ac_cv_sizeof_DoubleComplex"        "#include <stdio.h>
54566#include <complex>
54567using namespace std;
54568#define DoubleComplex complex<double>
54569
54570"; then :
54571
54572else
54573  if test "$ac_cv_type_DoubleComplex" = yes; then
54574     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
54575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54576as_fn_error 77 "cannot compute sizeof (DoubleComplex)
54577See \`config.log' for more details" "$LINENO" 5; }
54578   else
54579     ac_cv_sizeof_DoubleComplex=0
54580   fi
54581fi
54582
54583fi
54584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_DoubleComplex" >&5
54585$as_echo "$ac_cv_sizeof_DoubleComplex" >&6; }
54586
54587
54588
54589cat >>confdefs.h <<_ACEOF
54590#define SIZEOF_DOUBLECOMPLEX $ac_cv_sizeof_DoubleComplex
54591_ACEOF
54592
54593
54594        if test "$MPID_NO_LONG_DOUBLE" != yes ; then
54595             # The cast to long int works around a bug in the HP C Compiler
54596# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54597# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54598# This bug is HP SR number 8606223364.
54599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of LongDoubleComplex" >&5
54600$as_echo_n "checking size of LongDoubleComplex... " >&6; }
54601if ${ac_cv_sizeof_LongDoubleComplex+:} false; then :
54602  $as_echo_n "(cached) " >&6
54603else
54604  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (LongDoubleComplex))" "ac_cv_sizeof_LongDoubleComplex"        "#include <stdio.h>
54605#include <complex>
54606using namespace std;
54607#define LongDoubleComplex complex<long double>
54608
54609"; then :
54610
54611else
54612  if test "$ac_cv_type_LongDoubleComplex" = yes; then
54613     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
54614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54615as_fn_error 77 "cannot compute sizeof (LongDoubleComplex)
54616See \`config.log' for more details" "$LINENO" 5; }
54617   else
54618     ac_cv_sizeof_LongDoubleComplex=0
54619   fi
54620fi
54621
54622fi
54623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_LongDoubleComplex" >&5
54624$as_echo "$ac_cv_sizeof_LongDoubleComplex" >&6; }
54625
54626
54627
54628cat >>confdefs.h <<_ACEOF
54629#define SIZEOF_LONGDOUBLECOMPLEX $ac_cv_sizeof_LongDoubleComplex
54630_ACEOF
54631
54632
54633        fi
54634
54635        # If either complex or double complex have length 0, then mark
54636        # c++ complex as unavailable
54637        if test "$ac_cv_sizeof_Complex" != 0 -a \
54638                "$ac_cv_sizeof_DoubleComplex" != 0 ; then
54639
54640$as_echo "#define HAVE_CXX_COMPLEX 1" >>confdefs.h
54641
54642        fi
54643
54644        # Datatypes are given by
54645        # 0x4c00 <length in bytes> (1 byte) <unique num> (1 byte)
54646        # where the unique nums are
54647        # 33,34,35,36
54648        case "$ac_cv_sizeof_bool" in
54649           1)    MPIR_CXX_BOOL=0x4c000133 ;;
54650           2)    MPIR_CXX_BOOL=0x4c000233 ;;
54651           4)    MPIR_CXX_BOOL=0x4c000433 ;;
54652           8)    MPIR_CXX_BOOL=0x4c000833 ;;
54653           *) ;;
54654        esac
54655        case "$ac_cv_sizeof_Complex" in
54656           8)    MPIR_CXX_COMPLEX=0x4c000834 ;;
54657           16)   MPIR_CXX_COMPLEX=0x4c001034 ;;
54658           *) ;;
54659        esac
54660        case "$ac_cv_sizeof_DoubleComplex" in
54661           8)    MPIR_CXX_DOUBLE_COMPLEX=0x4c000835 ;;
54662           16)   MPIR_CXX_DOUBLE_COMPLEX=0x4c001035 ;;
54663           32)   MPIR_CXX_DOUBLE_COMPLEX=0x4c002035 ;;
54664           *) ;;
54665        esac
54666        # only enable CXX "long double" if we have a C "long double", since we
54667        # currently perform reductions on CXX "long double" types via C.
54668        if test "X$pac_cv_have_long_double" = "Xyes" ; then
54669            case "$ac_cv_sizeof_LongDoubleComplex" in
54670               8)    MPIR_CXX_LONG_DOUBLE_COMPLEX=0x4c000836 ;;
54671               16)   MPIR_CXX_LONG_DOUBLE_COMPLEX=0x4c001036 ;;
54672               24)   MPIR_CXX_LONG_DOUBLE_COMPLEX=0x4c001836 ;;
54673               32)   MPIR_CXX_LONG_DOUBLE_COMPLEX=0x4c002036 ;;
54674               *) ;;
54675            esac
54676        fi
54677    fi
54678    ac_ext=c
54679ac_cpp='$CPP $CPPFLAGS'
54680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54682ac_compiler_gnu=$ac_cv_c_compiler_gnu
54683
54684
54685    # Make these available to the collective operations and other code
54686
54687cat >>confdefs.h <<_ACEOF
54688#define MPIR_CXX_BOOL_VALUE $MPIR_CXX_BOOL
54689_ACEOF
54690
54691
54692cat >>confdefs.h <<_ACEOF
54693#define MPIR_CXX_COMPLEX_VALUE $MPIR_CXX_COMPLEX
54694_ACEOF
54695
54696
54697cat >>confdefs.h <<_ACEOF
54698#define MPIR_CXX_DOUBLE_COMPLEX_VALUE $MPIR_CXX_DOUBLE_COMPLEX
54699_ACEOF
54700
54701
54702cat >>confdefs.h <<_ACEOF
54703#define MPIR_CXX_LONG_DOUBLE_COMPLEX_VALUE $MPIR_CXX_LONG_DOUBLE_COMPLEX
54704_ACEOF
54705
54706
54707    # compute F77 decimal constant values for these types
54708    MPI_F77_CXX_BOOL=`printf "%d" $MPIR_CXX_BOOL`
54709    MPI_F77_CXX_FLOAT_COMPLEX=`printf "%d" $MPIR_CXX_COMPLEX`
54710    MPI_F77_CXX_DOUBLE_COMPLEX=`printf "%d" $MPIR_CXX_DOUBLE_COMPLEX`
54711    MPI_F77_CXX_LONG_DOUBLE_COMPLEX=`printf "%d" $MPIR_CXX_LONG_DOUBLE_COMPLEX`
54712fi
54713
54714
54715
54716
54717
54718
54719
54720
54721
54722# ------------------------------------------------------------------------
54723# Test if  type_tag_for_datatype is agnostic to modifiers such as const, volatile, and restrict
54724# if not, the type tags are disabled to avoid compiler warings. A new type_tag for const etc. does
54725# does not help, since only the latest type_tag definition is used. Type tags are defined in mpi.h,
54726# therefore, they must be also be activated/deavtivated there
54727
54728	if test -z "${pac_save_CFLAGS_nesting}" ; then
54729	   pac_save_CFLAGS_nesting=0
54730	fi
54731	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
54732	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
54733
54734
54735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts option -Werror" >&5
54736$as_echo_n "checking whether C compiler accepts option -Werror... " >&6; }
54737pac_opt="-Werror"
54738ac_ext=c
54739ac_cpp='$CPP $CPPFLAGS'
54740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54742ac_compiler_gnu=$ac_cv_c_compiler_gnu
54743
54744CFLAGS_orig="$CFLAGS"
54745CFLAGS_opt="$pac_opt $CFLAGS"
54746pac_result="unknown"
54747
54748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54749/* end confdefs.h.  */
54750
54751	#include <stdio.h>
54752                          const char hw[] = "Hello, World\n";
54753int
54754main ()
54755{
54756fputs (hw, stdout);
54757  ;
54758  return 0;
54759}
54760
54761_ACEOF
54762CFLAGS="$CFLAGS_orig"
54763rm -f pac_test1.log
54764
54765
54766# START of PUSHVAL
54767
54768if ${pac_stk_ac_link_level+:} false; then :
54769
54770    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
54771
54772else
54773
54774    pac_stk_ac_link_level=0
54775
54776fi
54777eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
54778if test "x$pac_stk_ac_link_level" = x0; then :
54779
54780        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
54781
54782fi
54783
54784        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
54785
54786
54787# END of PUSHVAL
54788
54789ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`"
54790if ac_fn_c_try_link "$LINENO"; then :
54791
54792
54793    CFLAGS="$CFLAGS_opt"
54794    rm -f pac_test2.log
54795
54796
54797# START of PUSHVAL
54798
54799if ${pac_stk_ac_link_level+:} false; then :
54800
54801    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
54802
54803else
54804
54805    pac_stk_ac_link_level=0
54806
54807fi
54808eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
54809if test "x$pac_stk_ac_link_level" = x0; then :
54810
54811        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
54812
54813fi
54814
54815        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
54816
54817
54818# END of PUSHVAL
54819
54820ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`"
54821if ac_fn_c_try_link "$LINENO"; then :
54822
54823
54824
54825pac_TESTLOG="pac_test.log"
54826rm -f $pac_TESTLOG
54827
54828if
54829{ $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5
54830  (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5
54831  ac_status=$?
54832  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54833  test $ac_status = 0; }; then :
54834
54835
54836    pac_result=yes
54837
54838
54839else
54840
54841    $as_echo "$as_me: program exited with status $ac_status" >&5
54842
54843        (exit $ac_status)
54844
54845    $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5
54846    cat $pac_TESTLOG >&5
54847    pac_result=no
54848
54849
54850
54851
54852fi
54853
54854rm -f $pac_TESTLOG
54855
54856
54857
54858else
54859
54860
54861        pac_result=no
54862
54863
54864fi
54865rm -f core conftest.err conftest.$ac_objext \
54866    conftest$ac_exeext
54867
54868# START of POPVAL
54869
54870if ${pac_stk_ac_link_level+:} false; then :
54871
54872    if test "x$pac_stk_ac_link_level" = x-1; then :
54873
54874        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
54875$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
54876
54877else
54878
54879                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
54880                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
54881
54882fi
54883
54884else
54885
54886    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
54887$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
54888
54889fi
54890
54891# END of POPVAL
54892
54893
54894
54895
54896else
54897
54898
54899    pac_result=no
54900
54901
54902fi
54903rm -f core conftest.err conftest.$ac_objext \
54904    conftest$ac_exeext
54905
54906# START of POPVAL
54907
54908if ${pac_stk_ac_link_level+:} false; then :
54909
54910    if test "x$pac_stk_ac_link_level" = x-1; then :
54911
54912        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
54913$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
54914
54915else
54916
54917                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
54918                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
54919
54920fi
54921
54922else
54923
54924    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
54925$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
54926
54927fi
54928
54929# END of POPVAL
54930
54931
54932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
54933$as_echo "$pac_result" >&6; }
54934rm -f conftest.$ac_ext
54935
54936if test "$pac_result" = "yes" ; then
54937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5
54938$as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; }
54939    pac_result=unknown
54940    CFLAGS="$CFLAGS_orig"
54941    rm -f pac_test3.log
54942
54943
54944# START of PUSHVAL
54945
54946if ${pac_stk_ac_compile_level+:} false; then :
54947
54948    as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val
54949
54950else
54951
54952    pac_stk_ac_compile_level=0
54953
54954fi
54955eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile"
54956if test "x$pac_stk_ac_compile_level" = x0; then :
54957
54958        eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
54959
54960fi
54961
54962        eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
54963
54964
54965# END of PUSHVAL
54966
54967ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`"
54968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54969/* end confdefs.h.  */
54970
54971
54972            int foo(void);
54973            int foo(void){return 0;}
54974
54975
54976_ACEOF
54977if ac_fn_c_try_compile "$LINENO"; then :
54978
54979
54980
54981{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
54982  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
54983  ac_status=$?
54984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54985  test $ac_status = 0; }
54986        saved_LIBS="$LIBS"
54987        LIBS="pac_conftest.$OBJEXT $LIBS"
54988
54989        rm -f pac_test4.log
54990
54991
54992# START of PUSHVAL
54993
54994if ${pac_stk_ac_link_level+:} false; then :
54995
54996    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
54997
54998else
54999
55000    pac_stk_ac_link_level=0
55001
55002fi
55003eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
55004if test "x$pac_stk_ac_link_level" = x0; then :
55005
55006        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
55007
55008fi
55009
55010        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
55011
55012
55013# END of PUSHVAL
55014
55015ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`"
55016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55017/* end confdefs.h.  */
55018
55019int
55020main ()
55021{
55022
55023  ;
55024  return 0;
55025}
55026_ACEOF
55027if ac_fn_c_try_link "$LINENO"; then :
55028
55029
55030            CFLAGS="$CFLAGS_opt"
55031            rm -f pac_test5.log
55032
55033
55034# START of PUSHVAL
55035
55036if ${pac_stk_ac_link_level+:} false; then :
55037
55038    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
55039
55040else
55041
55042    pac_stk_ac_link_level=0
55043
55044fi
55045eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
55046if test "x$pac_stk_ac_link_level" = x0; then :
55047
55048        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
55049
55050fi
55051
55052        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
55053
55054
55055# END of PUSHVAL
55056
55057ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test5.log 2>\&1|g'`"
55058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55059/* end confdefs.h.  */
55060
55061int
55062main ()
55063{
55064
55065  ;
55066  return 0;
55067}
55068_ACEOF
55069if ac_fn_c_try_link "$LINENO"; then :
55070
55071
55072
55073pac_TESTLOG="pac_test.log"
55074rm -f $pac_TESTLOG
55075
55076if
55077{ $as_echo "$as_me:$LINENO: diff -b pac_test4.log pac_test5.log > $pac_TESTLOG" >&5
55078  (eval diff -b pac_test4.log pac_test5.log > $pac_TESTLOG) 2>&5
55079  ac_status=$?
55080  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55081  test $ac_status = 0; }; then :
55082
55083
55084    pac_result=yes
55085
55086
55087else
55088
55089    $as_echo "$as_me: program exited with status $ac_status" >&5
55090
55091        (exit $ac_status)
55092
55093    $as_echo "*** diff -b pac_test4.log pac_test5.log :" >&5
55094    cat $pac_TESTLOG >&5
55095    pac_result=no
55096
55097
55098
55099
55100fi
55101
55102rm -f $pac_TESTLOG
55103
55104
55105
55106else
55107
55108
55109                pac_result=no
55110
55111
55112fi
55113rm -f core conftest.err conftest.$ac_objext \
55114    conftest$ac_exeext conftest.$ac_ext
55115
55116# START of POPVAL
55117
55118if ${pac_stk_ac_link_level+:} false; then :
55119
55120    if test "x$pac_stk_ac_link_level" = x-1; then :
55121
55122        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
55123$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
55124
55125else
55126
55127                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
55128                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
55129
55130fi
55131
55132else
55133
55134    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
55135$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
55136
55137fi
55138
55139# END of POPVAL
55140
55141
55142
55143
55144else
55145
55146
55147            pac_result=no
55148
55149
55150fi
55151rm -f core conftest.err conftest.$ac_objext \
55152    conftest$ac_exeext conftest.$ac_ext
55153
55154# START of POPVAL
55155
55156if ${pac_stk_ac_link_level+:} false; then :
55157
55158    if test "x$pac_stk_ac_link_level" = x-1; then :
55159
55160        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
55161$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
55162
55163else
55164
55165                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
55166                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
55167
55168fi
55169
55170else
55171
55172    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
55173$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
55174
55175fi
55176
55177# END of POPVAL
55178
55179
55180        LIBS="$saved_LIBS"
55181        rm -f pac_conftest.$OBJEXT
55182
55183
55184else
55185
55186
55187        pac_result=no
55188
55189
55190fi
55191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55192
55193# START of POPVAL
55194
55195if ${pac_stk_ac_compile_level+:} false; then :
55196
55197    if test "x$pac_stk_ac_compile_level" = x-1; then :
55198
55199        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5
55200$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;}
55201
55202else
55203
55204                eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
55205                as_fn_arith  $pac_stk_ac_compile_level - 1  && pac_stk_ac_compile_level=$as_val
55206
55207fi
55208
55209else
55210
55211    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5
55212$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;}
55213
55214fi
55215
55216# END of POPVAL
55217
55218
55219    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
55220$as_echo "$pac_result" >&6; }
55221    rm -f pac_test3.log pac_test4.log pac_test5.log
55222fi
55223rm -f pac_test1.log pac_test2.log
55224
55225CFLAGS="$CFLAGS_orig"
55226if test "$pac_result" = "yes" ; then
55227     CFLAGS="$CFLAGS -Werror"
55228else
55229     :
55230fi
55231ac_ext=c
55232ac_cpp='$CPP $CPPFLAGS'
55233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
55234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
55235ac_compiler_gnu=$ac_cv_c_compiler_gnu
55236
55237
55238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55239/* end confdefs.h.  */
55240
55241typedef int TEST_Datatype;
55242#define TEST_INT ((TEST_Datatype)0x44)
55243static const TEST_Datatype test_int  __attribute__((type_tag_for_datatype(TEST,int)))  = TEST_INT;
55244void test(const void* buffer, TEST_Datatype datatype)__attribute__((pointer_with_type_tag(TEST,1,2)));
55245int
55246main ()
55247{
55248
55249const int buf[10];
55250test(buf, TEST_INT);
55251  ;
55252  return 0;
55253}
55254_ACEOF
55255if ac_fn_c_try_compile "$LINENO"; then :
55256  ac_attr_support=yes
55257else
55258  ac_attr_support=no
55259fi
55260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55261if test "$ac_attr_support" = yes
55262then
55263    DISABLE_TAG_SUPPORT="#undef NO_TAGS_WITH_MODIFIERS"
55264else
55265    DISABLE_TAG_SUPPORT="#define NO_TAGS_WITH_MODIFIERS 1"
55266fi
55267
55268	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
55269	eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
55270	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
55271
55272
55273
55274# ----------------------------------------------------------------------------
55275# Check for the alignment rules moves with types int64_t etc.  These
55276# are used in the datatype code to perform pack and unpack operations.
55277# These only determine if different alignments *work*, not whether they
55278# work efficiently.  The datatype pack code (should) allow the developer
55279# to include stricter alignment rules than are needed for correctness to
55280# get better performance.
55281if test "$ac_cv_c_int64_t" != "no" -o -n "$INT64_T" ; then
55282    default_int64_t_alignment=${CROSS_INT64_T_ALIGNMENT:-"unknown"}
55283    if test -z "$INT64_T" ; then
55284         if test "$ac_cv_c_int64_t" = yes ; then
55285	     INT64_T="int64_t"
55286         else
55287             INT64_T="$ac_cv_int64_t"
55288         fi
55289    fi
55290    # We use the type that we're going use for int64.
55291    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alignment restrictions on $INT64_T" >&5
55292$as_echo_n "checking for alignment restrictions on $INT64_T... " >&6; }
55293if ${pac_cv_int64_t_alignment+:} false; then :
55294  $as_echo_n "(cached) " >&6
55295else
55296
55297    if test "$cross_compiling" = yes; then :
55298  pac_cv_int64_t_alignment=$default_int64_t_alignment
55299else
55300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55301/* end confdefs.h.  */
55302
55303#include <sys/types.h>
55304#include <stdlib.h>
55305int main(int argc, char **argv )
55306{
55307    $INT64_T *p1, v;
55308    char    *buf_p = (char *)malloc( 64 ), *bp;
55309    bp = buf_p;
55310    /* Make bp aligned on 4, not 8 bytes */
55311    if (!( (long)bp & 0x7 ) ) bp += 4;
55312    p1 = ($INT64_T *)bp;
55313    v = -1;
55314    *p1 = v;
55315    if (!( (long)bp & 0x3 ) ) bp += 2;
55316    p1 = ($INT64_T *)bp;
55317    *p1 = 1;
55318    if (!( (long)bp & 0x1 ) ) bp += 1;
55319    p1 = ($INT64_T *)bp;
55320    *p1 = 1;
55321    return 0;
55322}
55323
55324_ACEOF
55325if ac_fn_c_try_run "$LINENO"; then :
55326  pac_cv_int64_t_alignment=no
55327else
55328  pac_cv_int64_t_alignment=yes
55329fi
55330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55331  conftest.$ac_objext conftest.beam conftest.$ac_ext
55332fi
55333
55334
55335fi
55336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_int64_t_alignment" >&5
55337$as_echo "$pac_cv_int64_t_alignment" >&6; }
55338    if test "$pac_cv_int64_t_alignment" = "no" ; then
55339
55340$as_echo "#define HAVE_ANY_INT64_T_ALIGNMENT 1" >>confdefs.h
55341
55342    fi
55343fi
55344
55345if test "$ac_cv_int32_t" != "no" ; then
55346    default_int32_t_alignment=${CROSS_INT32_T_ALIGNMENT:-"unknown"}
55347    if test -z "$INT32_T" ; then
55348         if test "$ac_cv_c_int32_t" = yes ; then
55349	     INT32_T="int32_t"
55350         else
55351             INT32_T="$ac_cv_int32_t"
55352         fi
55353    fi
55354
55355    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alignment restrictions on int32_t" >&5
55356$as_echo_n "checking for alignment restrictions on int32_t... " >&6; }
55357if ${pac_cv_int32_t_alignment+:} false; then :
55358  $as_echo_n "(cached) " >&6
55359else
55360
55361    if test "$cross_compiling" = yes; then :
55362  pac_cv_int32_t_alignment=$default_int32_t_alignment
55363else
55364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55365/* end confdefs.h.  */
55366
55367#include <sys/types.h>
55368#include <stdlib.h>
55369int main(int argc, char **argv )
55370{
55371    $INT32_T *p1, v;
55372    char    *buf_p = (char *)malloc( 64 ), *bp;
55373    bp = buf_p;
55374    /* Make bp aligned on 4, not 8 bytes */
55375    if (!( (long)bp & 0x7 ) ) bp += 4;
55376    p1 = ($INT32_T *)bp;
55377    v = -1;
55378    *p1 = v;
55379    if (!( (long)bp & 0x3 ) ) bp += 2;
55380    p1 = ($INT32_T *)bp;
55381    *p1 = 1;
55382    if (!( (long)bp & 0x1 ) ) bp += 1;
55383    p1 = ($INT32_T *)bp;
55384    *p1 = 1;
55385    return 0;
55386}
55387
55388_ACEOF
55389if ac_fn_c_try_run "$LINENO"; then :
55390  pac_cv_int32_t_alignment=no
55391else
55392  pac_cv_int32_t_alignment=yes
55393fi
55394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55395  conftest.$ac_objext conftest.beam conftest.$ac_ext
55396fi
55397
55398
55399fi
55400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_int32_t_alignment" >&5
55401$as_echo "$pac_cv_int32_t_alignment" >&6; }
55402    if test "$pac_cv_int32_t_alignment" = "no" ; then
55403
55404$as_echo "#define HAVE_ANY_INT32_T_ALIGNMENT 1" >>confdefs.h
55405
55406    fi
55407fi
55408
55409# -----------------------------------------------------------------------------
55410# Check for support of enable-coverage.  Put this near the end of the tests
55411# because the coverage options may affect the other tests.
55412
55413
55414
55415for ac_prog in gcov
55416do
55417  # Extract the first word of "$ac_prog", so it can be a program name with args.
55418set dummy $ac_prog; ac_word=$2
55419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55420$as_echo_n "checking for $ac_word... " >&6; }
55421if ${ac_cv_prog_GCOV+:} false; then :
55422  $as_echo_n "(cached) " >&6
55423else
55424  if test -n "$GCOV"; then
55425  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
55426else
55427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55428for as_dir in $PATH
55429do
55430  IFS=$as_save_IFS
55431  test -z "$as_dir" && as_dir=.
55432    for ac_exec_ext in '' $ac_executable_extensions; do
55433  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55434    ac_cv_prog_GCOV="$ac_prog"
55435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55436    break 2
55437  fi
55438done
55439  done
55440IFS=$as_save_IFS
55441
55442fi
55443fi
55444GCOV=$ac_cv_prog_GCOV
55445if test -n "$GCOV"; then
55446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
55447$as_echo "$GCOV" >&6; }
55448else
55449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55450$as_echo "no" >&6; }
55451fi
55452
55453
55454  test -n "$GCOV" && break
55455done
55456
55457
55458# Check whether --enable-coverage was given.
55459if test "${enable_coverage+set}" = set; then :
55460  enableval=$enable_coverage;
55461else
55462  enable_coverage=no
55463fi
55464
55465
55466if test "$enable_coverage" = "yes" ; then
55467    if test "$ac_cv_c_compiler_gnu" = "yes" ; then
55468        CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
55469        LIBS="$LIBS -lgcov"
55470        if test ${WRAPPER_CFLAGS+set} = set ; then
55471            WRAPPER_CFLAGS="$WRAPPER_CFLAGS -fprofile-arcs -ftest-coverage"
55472        fi
55473    else
55474        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for GCC" >&5
55475$as_echo "$as_me: WARNING: --enable-coverage only supported for GCC" >&2;}
55476    fi
55477    if test "$enable_cxx" = "yes" ; then
55478        if test "$ac_cv_cxx_compiler_gnu" = "yes" ; then
55479            CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
55480            LIBS="$LIBS -lgcov"
55481            if test ${WRAPPER_CXXFLAGS+set} = set ; then
55482                WRAPPER_CXXFLAGS="$WRAPPER_CXXFLAGS -fprofile-arcs -ftest-coverage"
55483            fi
55484        else
55485            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for GCC" >&5
55486$as_echo "$as_me: WARNING: --enable-coverage only supported for GCC" >&2;}
55487        fi
55488    fi
55489    # Add similar options for g77 so that the Fortran tests will also
55490    #
55491    if test "$enable_f77" = yes ; then
55492        if test "$ac_cv_f77_compiler_gnu" = "yes" ; then
55493             FFLAGS="$FFLAGS -fprofile-arcs -ftest-coverage"
55494             LIBS="$LIBS -lgcov"
55495             if test ${WRAPPER_FFLAGS+set} = set ; then
55496                 WRAPPER_FFLAGS="$WRAPPER_FFLAGS -fprofile-arcs -ftest-coverage"
55497             fi
55498        else
55499            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for G77/GFORTRAN" >&5
55500$as_echo "$as_me: WARNING: --enable-coverage only supported for G77/GFORTRAN" >&2;}
55501        fi
55502    fi
55503    if test "$enable_fc" = yes ; then
55504        if test "$ac_cv_fc_compiler_gnu" = "yes" ; then
55505             FCFLAGS="$FCFLAGS -fprofile-arcs -ftest-coverage"
55506             LIBS="$LIBS -lgcov"
55507             if test ${WRAPPER_FCFLAGS+set} = set ; then
55508                 WRAPPER_FCFLAGS="$WRAPPER_FCFLAGS -fprofile-arcs -ftest-coverage"
55509             fi
55510        else
55511            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for GFORTRAN" >&5
55512$as_echo "$as_me: WARNING: --enable-coverage only supported for GFORTRAN" >&2;}
55513        fi
55514    fi
55515    # On some platforms (e.g., Mac Darwin), we must also *link*
55516    # with the -fprofile-args -ftest-coverage option.
55517    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compilation with coverage analysis enabled works" >&5
55518$as_echo_n "checking whether compilation with coverage analysis enabled works... " >&6; }
55519    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55520/* end confdefs.h.  */
55521int main(int argc, char **argv){return 1;}
55522_ACEOF
55523if ac_fn_c_try_link "$LINENO"; then :
55524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55525$as_echo "yes" >&6; }
55526else
55527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55528$as_echo "no" >&6; }
55529                    as_fn_error $? "Unable to link programs when coverage analysis enabled" "$LINENO" 5
55530fi
55531rm -f core conftest.err conftest.$ac_objext \
55532    conftest$ac_exeext conftest.$ac_ext
55533
55534    # Test for the routines that we need to use to ensure that the
55535    # data files are (usually) written out
55536    # FIXME: Some versions of Linux provide usleep, but it rounds times
55537    # up to the next second (!)
55538    for ac_func in usleep
55539do :
55540  ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
55541if test "x$ac_cv_func_usleep" = xyes; then :
55542  cat >>confdefs.h <<_ACEOF
55543#define HAVE_USLEEP 1
55544_ACEOF
55545
55546fi
55547done
55548
55549
55550    # NOTE: using a "pac_cv_" prefix but not caching because of xFLAGS "side effects"
55551    pac_cv_use_coverage=yes
55552
55553$as_echo "#define USE_COVERAGE 1" >>confdefs.h
55554
55555fi
55556 if test "X$pac_cv_use_coverage" = "Xyes"; then
55557  BUILD_COVERAGE_TRUE=
55558  BUILD_COVERAGE_FALSE='#'
55559else
55560  BUILD_COVERAGE_TRUE='#'
55561  BUILD_COVERAGE_FALSE=
55562fi
55563
55564
55565
55566# -----------------------------------------------------------------------------
55567# Look for Standard headers
55568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
55569$as_echo_n "checking for ANSI C header files... " >&6; }
55570if ${ac_cv_header_stdc+:} false; then :
55571  $as_echo_n "(cached) " >&6
55572else
55573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55574/* end confdefs.h.  */
55575#include <stdlib.h>
55576#include <stdarg.h>
55577#include <string.h>
55578#include <float.h>
55579
55580int
55581main ()
55582{
55583
55584  ;
55585  return 0;
55586}
55587_ACEOF
55588if ac_fn_c_try_compile "$LINENO"; then :
55589  ac_cv_header_stdc=yes
55590else
55591  ac_cv_header_stdc=no
55592fi
55593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55594
55595if test $ac_cv_header_stdc = yes; then
55596  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
55597  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55598/* end confdefs.h.  */
55599#include <string.h>
55600
55601_ACEOF
55602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55603  $EGREP "memchr" >/dev/null 2>&1; then :
55604
55605else
55606  ac_cv_header_stdc=no
55607fi
55608rm -f conftest*
55609
55610fi
55611
55612if test $ac_cv_header_stdc = yes; then
55613  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
55614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55615/* end confdefs.h.  */
55616#include <stdlib.h>
55617
55618_ACEOF
55619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55620  $EGREP "free" >/dev/null 2>&1; then :
55621
55622else
55623  ac_cv_header_stdc=no
55624fi
55625rm -f conftest*
55626
55627fi
55628
55629if test $ac_cv_header_stdc = yes; then
55630  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
55631  if test "$cross_compiling" = yes; then :
55632  :
55633else
55634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55635/* end confdefs.h.  */
55636#include <ctype.h>
55637#include <stdlib.h>
55638#if ((' ' & 0x0FF) == 0x020)
55639# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
55640# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
55641#else
55642# define ISLOWER(c) \
55643		   (('a' <= (c) && (c) <= 'i') \
55644		     || ('j' <= (c) && (c) <= 'r') \
55645		     || ('s' <= (c) && (c) <= 'z'))
55646# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
55647#endif
55648
55649#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
55650int
55651main ()
55652{
55653  int i;
55654  for (i = 0; i < 256; i++)
55655    if (XOR (islower (i), ISLOWER (i))
55656	|| toupper (i) != TOUPPER (i))
55657      return 2;
55658  return 0;
55659}
55660_ACEOF
55661if ac_fn_c_try_run "$LINENO"; then :
55662
55663else
55664  ac_cv_header_stdc=no
55665fi
55666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55667  conftest.$ac_objext conftest.beam conftest.$ac_ext
55668fi
55669
55670fi
55671fi
55672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
55673$as_echo "$ac_cv_header_stdc" >&6; }
55674if test $ac_cv_header_stdc = yes; then
55675
55676$as_echo "#define STDC_HEADERS 1" >>confdefs.h
55677
55678fi
55679
55680# Check for a specific header
55681# Grrr.  OS/X fails the test for sys/uio.h because uio *requires* sys/types.h
55682# to compile.  Thus, we'll make that a separate test
55683# stddef.h is sometimes needed for types like wchar_t
55684for ac_header in stdlib.h stdarg.h sys/types.h string.h inttypes.h limits.h stddef.h errno.h sys/socket.h sys/time.h unistd.h endian.h assert.h sys/param.h
55685do :
55686  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
55687ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
55688if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
55689  cat >>confdefs.h <<_ACEOF
55690#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
55691_ACEOF
55692
55693fi
55694
55695done
55696
55697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/uio.h" >&5
55698$as_echo_n "checking for sys/uio.h... " >&6; }
55699if ${ac_cv_header_sys_uio_h+:} false; then :
55700  $as_echo_n "(cached) " >&6
55701else
55702
55703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55704/* end confdefs.h.  */
55705
55706#include <sys/types.h>
55707#include <sys/uio.h>
55708
55709int
55710main ()
55711{
55712int a;
55713  ;
55714  return 0;
55715}
55716_ACEOF
55717if ac_fn_c_try_compile "$LINENO"; then :
55718  ac_cv_header_sys_uio_h=yes
55719else
55720  ac_cv_header_sys_uio_h=no
55721fi
55722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55723fi
55724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_uio_h" >&5
55725$as_echo "$ac_cv_header_sys_uio_h" >&6; }
55726if test "$ac_cv_header_sys_uio_h" = yes ; then
55727
55728$as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
55729
55730fi
55731
55732# Check for special types
55733ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
55734if test "x$ac_cv_type_size_t" = xyes; then :
55735
55736else
55737
55738cat >>confdefs.h <<_ACEOF
55739#define size_t unsigned int
55740_ACEOF
55741
55742fi
55743
55744
55745# These are used to support timeouts
55746for ac_func in setitimer alarm
55747do :
55748  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
55749ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
55750if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
55751  cat >>confdefs.h <<_ACEOF
55752#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
55753_ACEOF
55754
55755fi
55756done
55757
55758# These are used for error reporting
55759for ac_func in vsnprintf vsprintf
55760do :
55761  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
55762ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
55763if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
55764  cat >>confdefs.h <<_ACEOF
55765#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
55766_ACEOF
55767
55768fi
55769done
55770
55771if test "$ac_cv_func_vsnprintf" = "yes" ; then
55772    # vsnprintf may be declared in stdio.h and may need stdarg.h
55773
55774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf needs a declaration" >&5
55775$as_echo_n "checking whether vsnprintf needs a declaration... " >&6; }
55776if ${pac_cv_func_decl_vsnprintf+:} false; then :
55777  $as_echo_n "(cached) " >&6
55778else
55779
55780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55781/* end confdefs.h.  */
55782#include <stdio.h>
55783#include <stdarg.h>
55784void (*fptr)(void) = (void(*)(void))vsnprintf;
55785int
55786main ()
55787{
55788
55789  ;
55790  return 0;
55791}
55792_ACEOF
55793if ac_fn_c_try_compile "$LINENO"; then :
55794  pac_cv_func_decl_vsnprintf=no
55795else
55796  pac_cv_func_decl_vsnprintf=yes
55797fi
55798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55799fi
55800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_vsnprintf" >&5
55801$as_echo "$pac_cv_func_decl_vsnprintf" >&6; }
55802if test "$pac_cv_func_decl_vsnprintf" = "yes" ; then
55803
55804cat >>confdefs.h <<_ACEOF
55805#define NEEDS_VSNPRINTF_DECL 1
55806_ACEOF
55807
55808
55809fi
55810
55811fi
55812# We would like to use strerror in the file namepublisher; it is also used
55813# in MPIR_Strerror
55814for ac_func in strerror strncasecmp
55815do :
55816  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
55817ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
55818if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
55819  cat >>confdefs.h <<_ACEOF
55820#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
55821_ACEOF
55822
55823fi
55824done
55825
55826ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
55827if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
55828  ac_have_decl=1
55829else
55830  ac_have_decl=0
55831fi
55832
55833cat >>confdefs.h <<_ACEOF
55834#define HAVE_DECL_STRERROR_R $ac_have_decl
55835_ACEOF
55836
55837for ac_func in strerror_r
55838do :
55839  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
55840if test "x$ac_cv_func_strerror_r" = xyes; then :
55841  cat >>confdefs.h <<_ACEOF
55842#define HAVE_STRERROR_R 1
55843_ACEOF
55844
55845fi
55846done
55847
55848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
55849$as_echo_n "checking whether strerror_r returns char *... " >&6; }
55850if ${ac_cv_func_strerror_r_char_p+:} false; then :
55851  $as_echo_n "(cached) " >&6
55852else
55853
55854    ac_cv_func_strerror_r_char_p=no
55855    if test $ac_cv_have_decl_strerror_r = yes; then
55856      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55857/* end confdefs.h.  */
55858$ac_includes_default
55859int
55860main ()
55861{
55862
55863	  char buf[100];
55864	  char x = *strerror_r (0, buf, sizeof buf);
55865	  char *p = strerror_r (0, buf, sizeof buf);
55866	  return !p || x;
55867
55868  ;
55869  return 0;
55870}
55871_ACEOF
55872if ac_fn_c_try_compile "$LINENO"; then :
55873  ac_cv_func_strerror_r_char_p=yes
55874fi
55875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55876    else
55877      # strerror_r is not declared.  Choose between
55878      # systems that have relatively inaccessible declarations for the
55879      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
55880      # former has a strerror_r that returns char*, while the latter
55881      # has a strerror_r that returns `int'.
55882      # This test should segfault on the DEC system.
55883      if test "$cross_compiling" = yes; then :
55884  :
55885else
55886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55887/* end confdefs.h.  */
55888$ac_includes_default
55889	extern char *strerror_r ();
55890int
55891main ()
55892{
55893char buf[100];
55894	  char x = *strerror_r (0, buf, sizeof buf);
55895	  return ! isalpha (x);
55896  ;
55897  return 0;
55898}
55899_ACEOF
55900if ac_fn_c_try_run "$LINENO"; then :
55901  ac_cv_func_strerror_r_char_p=yes
55902fi
55903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
55904  conftest.$ac_objext conftest.beam conftest.$ac_ext
55905fi
55906
55907    fi
55908
55909fi
55910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
55911$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
55912if test $ac_cv_func_strerror_r_char_p = yes; then
55913
55914$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
55915
55916fi
55917
55918if test "$ac_cv_func_strerror_r" = "yes" ; then
55919
55920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r needs a declaration" >&5
55921$as_echo_n "checking whether strerror_r needs a declaration... " >&6; }
55922if ${pac_cv_func_decl_strerror_r+:} false; then :
55923  $as_echo_n "(cached) " >&6
55924else
55925
55926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55927/* end confdefs.h.  */
55928#include <string.h>
55929void (*fptr)(void) = (void(*)(void))strerror_r;
55930int
55931main ()
55932{
55933
55934  ;
55935  return 0;
55936}
55937_ACEOF
55938if ac_fn_c_try_compile "$LINENO"; then :
55939  pac_cv_func_decl_strerror_r=no
55940else
55941  pac_cv_func_decl_strerror_r=yes
55942fi
55943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55944fi
55945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_strerror_r" >&5
55946$as_echo "$pac_cv_func_decl_strerror_r" >&6; }
55947if test "$pac_cv_func_decl_strerror_r" = "yes" ; then
55948
55949cat >>confdefs.h <<_ACEOF
55950#define NEEDS_STRERROR_R_DECL 1
55951_ACEOF
55952
55953
55954fi
55955
55956fi
55957
55958# Use snprintf if possible when creating messages
55959for ac_func in snprintf
55960do :
55961  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
55962if test "x$ac_cv_func_snprintf" = xyes; then :
55963  cat >>confdefs.h <<_ACEOF
55964#define HAVE_SNPRINTF 1
55965_ACEOF
55966
55967fi
55968done
55969
55970if test "$ac_cv_func_snprintf" = "yes" ; then
55971
55972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf needs a declaration" >&5
55973$as_echo_n "checking whether snprintf needs a declaration... " >&6; }
55974if ${pac_cv_func_decl_snprintf+:} false; then :
55975  $as_echo_n "(cached) " >&6
55976else
55977
55978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55979/* end confdefs.h.  */
55980#include <stdio.h>
55981void (*fptr)(void) = (void(*)(void))snprintf;
55982int
55983main ()
55984{
55985
55986  ;
55987  return 0;
55988}
55989_ACEOF
55990if ac_fn_c_try_compile "$LINENO"; then :
55991  pac_cv_func_decl_snprintf=no
55992else
55993  pac_cv_func_decl_snprintf=yes
55994fi
55995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55996fi
55997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_snprintf" >&5
55998$as_echo "$pac_cv_func_decl_snprintf" >&6; }
55999if test "$pac_cv_func_decl_snprintf" = "yes" ; then
56000
56001cat >>confdefs.h <<_ACEOF
56002#define NEEDS_SNPRINTF_DECL 1
56003_ACEOF
56004
56005
56006fi
56007
56008fi
56009
56010# qsort will be used in MPI_Comm_split, if available
56011for ac_func in qsort
56012do :
56013  ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
56014if test "x$ac_cv_func_qsort" = xyes; then :
56015  cat >>confdefs.h <<_ACEOF
56016#define HAVE_QSORT 1
56017_ACEOF
56018
56019fi
56020done
56021
56022
56023# if we are using stdarg, we may need va_copy .  Test to see if we have it
56024# Since it may be a built-in instead of a function, we must try to
56025# compile and link a program that uses it.
56026# va_copy is currently used only in src/util/dbg_printf.c, in an obsolete
56027# debugging routine.  We may want to withdraw this (saving the
56028# test in confdb/aclocal_cc.m4).
56029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
56030$as_echo_n "checking for va_copy... " >&6; }
56031if ${pac_cv_func_va_copy+:} false; then :
56032  $as_echo_n "(cached) " >&6
56033else
56034
56035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56036/* end confdefs.h.  */
56037
56038#include <stdarg.h>
56039void foo1( char *fmt, ... ) {
56040    va_list ap, list;
56041    va_start(ap,fmt);
56042    va_copy(list,ap);
56043    va_end(list);
56044    va_end(ap);
56045}
56046
56047int
56048main ()
56049{
56050foo1("a test %d", 3);
56051  ;
56052  return 0;
56053}
56054_ACEOF
56055if ac_fn_c_try_link "$LINENO"; then :
56056  pac_cv_func_va_copy=yes
56057else
56058  pac_cv_func_va_copy=no
56059fi
56060rm -f core conftest.err conftest.$ac_objext \
56061    conftest$ac_exeext conftest.$ac_ext
56062fi
56063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_va_copy" >&5
56064$as_echo "$pac_cv_func_va_copy" >&6; }
56065
56066if test "$pac_cv_func_va_copy" = "yes" ; then
56067
56068$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
56069
56070else
56071    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
56072$as_echo_n "checking for __va_copy... " >&6; }
56073if ${pac_cv_func___va_copy+:} false; then :
56074  $as_echo_n "(cached) " >&6
56075else
56076
56077    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56078/* end confdefs.h.  */
56079
56080#include <stdarg.h>
56081void foo1( char *fmt, ... ) {
56082    va_list ap, list;
56083    va_start(ap,fmt);
56084    __va_copy(list,ap);
56085    va_end(list);
56086    va_end(ap);
56087}
56088
56089int
56090main ()
56091{
56092foo1("a test %d", 3);
56093  ;
56094  return 0;
56095}
56096_ACEOF
56097if ac_fn_c_try_link "$LINENO"; then :
56098  pac_cv_func___va_copy=yes
56099else
56100  pac_cv_func___va_copy=no
56101fi
56102rm -f core conftest.err conftest.$ac_objext \
56103    conftest$ac_exeext conftest.$ac_ext
56104fi
56105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func___va_copy" >&5
56106$as_echo "$pac_cv_func___va_copy" >&6; }
56107    if test "$pac_cv_func___va_copy" = "yes" ; then
56108
56109$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
56110
56111    fi
56112fi
56113
56114
56115    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable argument list macro functionality" >&5
56116$as_echo_n "checking for variable argument list macro functionality... " >&6; }
56117    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56118/* end confdefs.h.  */
56119
56120        #include <stdio.h>
56121        #define conftest_va_arg_macro(...) printf(__VA_ARGS__)
56122
56123int
56124main ()
56125{
56126conftest_va_arg_macro("a test %d", 3);
56127  ;
56128  return 0;
56129}
56130_ACEOF
56131if ac_fn_c_try_link "$LINENO"; then :
56132
56133$as_echo "#define HAVE_MACRO_VA_ARGS 1" >>confdefs.h
56134
56135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56136$as_echo "yes" >&6; }
56137else
56138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56139$as_echo "no" >&6; }
56140fi
56141rm -f core conftest.err conftest.$ac_objext \
56142    conftest$ac_exeext conftest.$ac_ext
56143
56144
56145# Check for alloca function.  May set HAVE_ALLOCA_H and HAVE_ALLOCA
56146# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
56147# for constant arguments.  Useless!
56148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
56149$as_echo_n "checking for working alloca.h... " >&6; }
56150if ${ac_cv_working_alloca_h+:} false; then :
56151  $as_echo_n "(cached) " >&6
56152else
56153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56154/* end confdefs.h.  */
56155#include <alloca.h>
56156int
56157main ()
56158{
56159char *p = (char *) alloca (2 * sizeof (int));
56160			  if (p) return 0;
56161  ;
56162  return 0;
56163}
56164_ACEOF
56165if ac_fn_c_try_link "$LINENO"; then :
56166  ac_cv_working_alloca_h=yes
56167else
56168  ac_cv_working_alloca_h=no
56169fi
56170rm -f core conftest.err conftest.$ac_objext \
56171    conftest$ac_exeext conftest.$ac_ext
56172fi
56173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
56174$as_echo "$ac_cv_working_alloca_h" >&6; }
56175if test $ac_cv_working_alloca_h = yes; then
56176
56177$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
56178
56179fi
56180
56181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
56182$as_echo_n "checking for alloca... " >&6; }
56183if ${ac_cv_func_alloca_works+:} false; then :
56184  $as_echo_n "(cached) " >&6
56185else
56186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56187/* end confdefs.h.  */
56188#ifdef __GNUC__
56189# define alloca __builtin_alloca
56190#else
56191# ifdef _MSC_VER
56192#  include <malloc.h>
56193#  define alloca _alloca
56194# else
56195#  ifdef HAVE_ALLOCA_H
56196#   include <alloca.h>
56197#  else
56198#   ifdef _AIX
56199 #pragma alloca
56200#   else
56201#    ifndef alloca /* predefined by HP cc +Olibcalls */
56202void *alloca (size_t);
56203#    endif
56204#   endif
56205#  endif
56206# endif
56207#endif
56208
56209int
56210main ()
56211{
56212char *p = (char *) alloca (1);
56213				    if (p) return 0;
56214  ;
56215  return 0;
56216}
56217_ACEOF
56218if ac_fn_c_try_link "$LINENO"; then :
56219  ac_cv_func_alloca_works=yes
56220else
56221  ac_cv_func_alloca_works=no
56222fi
56223rm -f core conftest.err conftest.$ac_objext \
56224    conftest$ac_exeext conftest.$ac_ext
56225fi
56226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
56227$as_echo "$ac_cv_func_alloca_works" >&6; }
56228
56229if test $ac_cv_func_alloca_works = yes; then
56230
56231$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
56232
56233else
56234  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
56235# that cause trouble.  Some versions do not even contain alloca or
56236# contain a buggy version.  If you still want to use their alloca,
56237# use ar to extract alloca.o from them instead of compiling alloca.c.
56238
56239ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
56240
56241$as_echo "#define C_ALLOCA 1" >>confdefs.h
56242
56243
56244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
56245$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
56246if ${ac_cv_os_cray+:} false; then :
56247  $as_echo_n "(cached) " >&6
56248else
56249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56250/* end confdefs.h.  */
56251#if defined CRAY && ! defined CRAY2
56252webecray
56253#else
56254wenotbecray
56255#endif
56256
56257_ACEOF
56258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56259  $EGREP "webecray" >/dev/null 2>&1; then :
56260  ac_cv_os_cray=yes
56261else
56262  ac_cv_os_cray=no
56263fi
56264rm -f conftest*
56265
56266fi
56267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
56268$as_echo "$ac_cv_os_cray" >&6; }
56269if test $ac_cv_os_cray = yes; then
56270  for ac_func in _getb67 GETB67 getb67; do
56271    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
56272ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
56273if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
56274
56275cat >>confdefs.h <<_ACEOF
56276#define CRAY_STACKSEG_END $ac_func
56277_ACEOF
56278
56279    break
56280fi
56281
56282  done
56283fi
56284
56285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
56286$as_echo_n "checking stack direction for C alloca... " >&6; }
56287if ${ac_cv_c_stack_direction+:} false; then :
56288  $as_echo_n "(cached) " >&6
56289else
56290  if test "$cross_compiling" = yes; then :
56291  ac_cv_c_stack_direction=0
56292else
56293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56294/* end confdefs.h.  */
56295$ac_includes_default
56296int
56297find_stack_direction (int *addr, int depth)
56298{
56299  int dir, dummy = 0;
56300  if (! addr)
56301    addr = &dummy;
56302  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
56303  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
56304  return dir + dummy;
56305}
56306
56307int
56308main (int argc, char **argv)
56309{
56310  return find_stack_direction (0, argc + !argv + 20) < 0;
56311}
56312_ACEOF
56313if ac_fn_c_try_run "$LINENO"; then :
56314  ac_cv_c_stack_direction=1
56315else
56316  ac_cv_c_stack_direction=-1
56317fi
56318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
56319  conftest.$ac_objext conftest.beam conftest.$ac_ext
56320fi
56321
56322fi
56323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
56324$as_echo "$ac_cv_c_stack_direction" >&6; }
56325cat >>confdefs.h <<_ACEOF
56326#define STACK_DIRECTION $ac_cv_c_stack_direction
56327_ACEOF
56328
56329
56330fi
56331
56332# We don't use alloca unless USE_ALLOCA is also set.
56333# Check whether --enable-alloca was given.
56334if test "${enable_alloca+set}" = set; then :
56335  enableval=$enable_alloca;
56336else
56337  enable_alloca=no
56338fi
56339
56340if test "$enable_alloca" = yes ; then
56341
56342$as_echo "#define USE_ALLOCA 1" >>confdefs.h
56343
56344fi
56345
56346if test "$enable_g_mem" != "yes" ; then
56347    # Strdup is needed only if memory tracing is not enabled.
56348    for ac_func in strdup
56349do :
56350  ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
56351if test "x$ac_cv_func_strdup" = xyes; then :
56352  cat >>confdefs.h <<_ACEOF
56353#define HAVE_STRDUP 1
56354_ACEOF
56355
56356fi
56357done
56358
56359    if test "$ac_cv_func_strdup" = "yes" ; then
56360        # Do we need to declare strdup?
56361
56362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strdup needs a declaration" >&5
56363$as_echo_n "checking whether strdup needs a declaration... " >&6; }
56364if ${pac_cv_func_decl_strdup+:} false; then :
56365  $as_echo_n "(cached) " >&6
56366else
56367
56368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56369/* end confdefs.h.  */
56370#include <string.h>
56371void (*fptr)(void) = (void(*)(void))strdup;
56372int
56373main ()
56374{
56375
56376  ;
56377  return 0;
56378}
56379_ACEOF
56380if ac_fn_c_try_compile "$LINENO"; then :
56381  pac_cv_func_decl_strdup=no
56382else
56383  pac_cv_func_decl_strdup=yes
56384fi
56385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56386fi
56387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_strdup" >&5
56388$as_echo "$pac_cv_func_decl_strdup" >&6; }
56389if test "$pac_cv_func_decl_strdup" = "yes" ; then
56390
56391cat >>confdefs.h <<_ACEOF
56392#define NEEDS_STRDUP_DECL 1
56393_ACEOF
56394
56395
56396fi
56397
56398    fi
56399fi
56400
56401# ----------------------------------------------------------------------------
56402# Look for some non-posix, but commonly provided functions
56403# ----------------------------------------------------------------------------
56404# mkstemp() is a better replacement for mktemp()
56405for ac_func in mkstemp
56406do :
56407  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
56408if test "x$ac_cv_func_mkstemp" = xyes; then :
56409  cat >>confdefs.h <<_ACEOF
56410#define HAVE_MKSTEMP 1
56411_ACEOF
56412
56413fi
56414done
56415
56416if test "$ac_cv_func_mkstemp" = "yes" ; then
56417
56418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkstemp needs a declaration" >&5
56419$as_echo_n "checking whether mkstemp needs a declaration... " >&6; }
56420if ${pac_cv_func_decl_mkstemp+:} false; then :
56421  $as_echo_n "(cached) " >&6
56422else
56423
56424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56425/* end confdefs.h.  */
56426#include <stdlib.h>
56427void (*fptr)(void) = (void(*)(void))mkstemp;
56428int
56429main ()
56430{
56431
56432  ;
56433  return 0;
56434}
56435_ACEOF
56436if ac_fn_c_try_compile "$LINENO"; then :
56437  pac_cv_func_decl_mkstemp=no
56438else
56439  pac_cv_func_decl_mkstemp=yes
56440fi
56441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56442fi
56443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_mkstemp" >&5
56444$as_echo "$pac_cv_func_decl_mkstemp" >&6; }
56445if test "$pac_cv_func_decl_mkstemp" = "yes" ; then
56446
56447cat >>confdefs.h <<_ACEOF
56448#define NEEDS_MKSTEMP_DECL 1
56449_ACEOF
56450
56451
56452fi
56453
56454fi
56455# putenv() sets environment variable
56456for ac_func in putenv
56457do :
56458  ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
56459if test "x$ac_cv_func_putenv" = xyes; then :
56460  cat >>confdefs.h <<_ACEOF
56461#define HAVE_PUTENV 1
56462_ACEOF
56463
56464fi
56465done
56466
56467if test "$ac_cv_func_putenv" = "yes" ; then
56468
56469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv needs a declaration" >&5
56470$as_echo_n "checking whether putenv needs a declaration... " >&6; }
56471if ${pac_cv_func_decl_putenv+:} false; then :
56472  $as_echo_n "(cached) " >&6
56473else
56474
56475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56476/* end confdefs.h.  */
56477#include <stdlib.h>
56478void (*fptr)(void) = (void(*)(void))putenv;
56479int
56480main ()
56481{
56482
56483  ;
56484  return 0;
56485}
56486_ACEOF
56487if ac_fn_c_try_compile "$LINENO"; then :
56488  pac_cv_func_decl_putenv=no
56489else
56490  pac_cv_func_decl_putenv=yes
56491fi
56492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56493fi
56494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_putenv" >&5
56495$as_echo "$pac_cv_func_decl_putenv" >&6; }
56496if test "$pac_cv_func_decl_putenv" = "yes" ; then
56497
56498cat >>confdefs.h <<_ACEOF
56499#define NEEDS_PUTENV_DECL 1
56500_ACEOF
56501
56502
56503fi
56504
56505fi
56506
56507
56508# ----------------------------------------------------------------------------
56509# Setup other replaceable values
56510
56511
56512
56513if test "$NEEDSPLIB" = "yes" ; then
56514   LPMPILIBNAME="-l${PMPILIBNAME}"
56515fi
56516
56517
56518# Note that aint_size must be used instead of void_p where the desired check
56519# is on the size of MPI_Aint
56520aint_size=$ac_cv_sizeof_void_p
56521if test "$with_aint_size" -gt 0 ; then
56522   aint_size=$with_aint_size
56523   if test "$aint_size" != "$ac_cv_sizeof_void_p" ; then
56524        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Overriding MPI_Aint to be $aint_size bytes" >&5
56525$as_echo "Overriding MPI_Aint to be $aint_size bytes" >&6; }
56526   fi
56527fi
56528MPI_AINT=int
56529for type in int long long_long short ; do
56530    eval len=\$ac_cv_sizeof_$type
56531    if test "$len" = "$aint_size" ; then
56532        MPI_AINT=`echo $type | sed -e 's/_/ /'`
56533        # Make the sizeof AINT available to other configures
56534        MPI_SIZEOF_AINT=$len
56535        export MPI_SIZEOF_AINT
56536        case $type in
56537            int)
56538                MPI_AINT_FMT_DEC_SPEC="%d"
56539                MPI_AINT_FMT_HEX_SPEC="%x"
56540                MPIR_AINT_MAX="INT_MAX"
56541                ;;
56542            long)
56543                MPI_AINT_FMT_DEC_SPEC="%ld"
56544                MPI_AINT_FMT_HEX_SPEC="%lx"
56545                MPIR_AINT_MAX="LONG_MAX"
56546                ;;
56547            long_long)
56548                MPI_AINT_FMT_DEC_SPEC="%lld"
56549                MPI_AINT_FMT_HEX_SPEC="%llx"
56550                # tt#1776: if LLONG_MAX is missing, we fix it up in C, b/c it's
56551                # easier there.  See mpiiimpl.h.
56552                MPIR_AINT_MAX="LLONG_MAX"
56553                ;;
56554            short)
56555                MPI_AINT_FMT_DEC_SPEC="%hd"
56556                MPI_AINT_FMT_HEX_SPEC="%hx"
56557                MPIR_AINT_MAX="SHRT_MAX"
56558                ;;
56559            *)
56560                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to determine format specifiers for MPI_Aint, defaulting to int" >&5
56561$as_echo "$as_me: WARNING: unable to determine format specifiers for MPI_Aint, defaulting to int" >&2;}
56562                MPI_AINT_FMT_DEC_SPEC="%d"
56563                MPI_AINT_FMT_HEX_SPEC="%x"
56564                MPIR_AINT_MAX="INT_MAX"
56565            ;;
56566        esac
56567        export MPI_AINT_FMT_DEC_SPEC MPI_AINT_FMT_HEX_SPEC
56568        break
56569    fi
56570done
56571
56572
56573
56574
56575cat >>confdefs.h <<_ACEOF
56576#define MPIR_AINT_MAX $MPIR_AINT_MAX
56577_ACEOF
56578
56579
56580# ----------------------------------------------------------------------------
56581# MPI_AINT datatype
56582# ----------------------------------------------------------------------------
56583# Must be done after MPI_Aint type determination but before subconfigures.
56584
56585# convert to 2-char hex size
56586case "$MPI_SIZEOF_AINT" in
56587    4)    len_mpi_aint=04 ;;
56588    8)    len_mpi_aint=08 ;;
56589    16)   len_mpi_aint=10 ;;
56590    *)    as_fn_error $? "Unable to convert MPI_SIZEOF_AINT to a hex string.  This is either because we are building on a very strange platform or there is a bug somewhere in configure." "$LINENO" 5 ;;
56591esac
56592# MPI_AINT and MPI_OFFSET are already taken, appending a _DATATYPE suffix
56593MPI_AINT_DATATYPE=0x4c00${len_mpi_aint}43
56594
56595export MPI_AINT_DATATYPE
56596
56597# 0x4c000043 is 1275068483 in decimal, add ($MPI_SIZEOF_AINT * 256) and you get
56598# the decimal equivalent of the hex number
56599MPI_F77_AINT=`expr 1275068483 '+' '(' 256 '*' $MPI_SIZEOF_AINT ')'`
56600
56601export MPI_F77_AINT
56602# ----------------------------------------------------------------------------
56603
56604if test "$ac_cv_sizeof_void_p" -lt "$aint_size" ; then
56605
56606$as_echo "#define USE_AINT_FOR_ATTRVAL 1" >>confdefs.h
56607
56608fi
56609
56610# with MPI_AINT defined, now we can
56611# Get the size for the bsendoverhead
56612# The cast to long int works around a bug in the HP C Compiler
56613# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
56614# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
56615# This bug is HP SR number 8606223364.
56616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of MPII_Bsend_data_t" >&5
56617$as_echo_n "checking size of MPII_Bsend_data_t... " >&6; }
56618if ${ac_cv_sizeof_MPII_Bsend_data_t+:} false; then :
56619  $as_echo_n "(cached) " >&6
56620else
56621  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (MPII_Bsend_data_t))" "ac_cv_sizeof_MPII_Bsend_data_t"        "
56622#define MPI_Datatype int
56623typedef $MPI_AINT MPI_Aint;
56624
56625struct MPIR_Request;
56626typedef struct MPIR_Request MPIR_Request;
56627
56628struct MPIR_Comm;
56629typedef struct MPIR_Comm MPIR_Comm;
56630
56631#ifdef HAVE_STDLIB_H
56632#include <stdlib.h>
56633#endif
56634#ifdef HAVE_STDINT_H
56635#include <stdint.h>
56636#endif
56637
56638#include \"${main_top_srcdir}/src/include/mpir_bsend.h\"
56639
56640"; then :
56641
56642else
56643  if test "$ac_cv_type_MPII_Bsend_data_t" = yes; then
56644     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
56645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
56646as_fn_error 77 "cannot compute sizeof (MPII_Bsend_data_t)
56647See \`config.log' for more details" "$LINENO" 5; }
56648   else
56649     ac_cv_sizeof_MPII_Bsend_data_t=0
56650   fi
56651fi
56652
56653fi
56654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPII_Bsend_data_t" >&5
56655$as_echo "$ac_cv_sizeof_MPII_Bsend_data_t" >&6; }
56656
56657
56658
56659cat >>confdefs.h <<_ACEOF
56660#define SIZEOF_MPII_BSEND_DATA_T $ac_cv_sizeof_MPII_Bsend_data_t
56661_ACEOF
56662
56663
56664if test "$ac_cv_sizeof_MPII_Bsend_data_t" = "0" ; then
56665    as_fn_error $? "Unable to determine the size of MPI_BSEND_OVERHEAD" "$LINENO" 5
56666    # In the past, a default of 128 was used (still likely good enough),
56667    # but the autoconf SIZEOF macro has been changed to ignore the second
56668    # argument, so code that depended on the prior defined behavior now
56669    # silently breaks.
56670fi
56671BSEND_OVERHEAD=$ac_cv_sizeof_MPII_Bsend_data_t
56672export BSEND_OVERHEAD
56673
56674
56675
56676# Check for the Linux functions for controlling processor affinity.
56677# LINUX: sched_setaffinity
56678# AIX:   bindprocessor
56679# OSX (Leopard): thread_policy_set
56680for ac_func in sched_setaffinity sched_getaffinity bindprocessor thread_policy_set
56681do :
56682  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
56683ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
56684if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
56685  cat >>confdefs.h <<_ACEOF
56686#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
56687_ACEOF
56688
56689fi
56690done
56691
56692if test "$ac_cv_func_sched_setaffinity" = "yes" ; then
56693    # Test for the cpu process set type
56694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cpu_set_t available" >&5
56695$as_echo_n "checking whether cpu_set_t available... " >&6; }
56696if ${pac_cv_have_cpu_set_t+:} false; then :
56697  $as_echo_n "(cached) " >&6
56698else
56699
56700    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56701/* end confdefs.h.  */
56702
56703#include <sched.h>
56704int
56705main ()
56706{
56707 cpu_set_t t;
56708  ;
56709  return 0;
56710}
56711_ACEOF
56712if ac_fn_c_try_compile "$LINENO"; then :
56713  pac_cv_have_cpu_set_t=yes
56714else
56715  pac_cv_have_cpu_set_t=no
56716fi
56717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56718fi
56719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_cpu_set_t" >&5
56720$as_echo "$pac_cv_have_cpu_set_t" >&6; }
56721    if test "$pac_cv_have_cpu_set_t" = yes ; then
56722
56723$as_echo "#define HAVE_CPU_SET_T 1" >>confdefs.h
56724
56725
56726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the CPU_SET and CPU_ZERO macros are defined" >&5
56727$as_echo_n "checking whether the CPU_SET and CPU_ZERO macros are defined... " >&6; }
56728if ${pac_cv_cpu_set_defined+:} false; then :
56729  $as_echo_n "(cached) " >&6
56730else
56731
56732        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56733/* end confdefs.h.  */
56734
56735#include <sched.h>
56736int
56737main ()
56738{
56739 cpu_set_t t; CPU_ZERO(&t); CPU_SET(1,&t);
56740  ;
56741  return 0;
56742}
56743_ACEOF
56744if ac_fn_c_try_link "$LINENO"; then :
56745  pac_cv_cpu_set_defined=yes
56746else
56747  pac_cv_cpu_set_defined=no
56748fi
56749rm -f core conftest.err conftest.$ac_objext \
56750    conftest$ac_exeext conftest.$ac_ext
56751fi
56752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cpu_set_defined" >&5
56753$as_echo "$pac_cv_cpu_set_defined" >&6; }
56754	if test "$pac_cv_cpu_set_defined" = "yes" ; then
56755
56756$as_echo "#define HAVE_CPU_SET_MACROS 1" >>confdefs.h
56757
56758        fi
56759	# FIXME: Some versions of sched_setaffinity return ENOSYS (!),
56760	# so we should test for the unfriendly and useless behavior
56761    fi
56762fi
56763if test "$ac_cv_func_thread_policy_set" = yes ; then
56764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether thread affinity macros defined" >&5
56765$as_echo_n "checking whether thread affinity macros defined... " >&6; }
56766if ${pac_cv_have_thread_affinity_policy+:} false; then :
56767  $as_echo_n "(cached) " >&6
56768else
56769
56770    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56771/* end confdefs.h.  */
56772#include <mach/thread_policy.h>
56773int
56774main ()
56775{
56776
56777#if !defined(THREAD_AFFINITY_POLICY) || !defined(THREAD_AFFINITY_TAG_NULL)
56778    :'thread macros not defined
56779
56780  ;
56781  return 0;
56782}
56783_ACEOF
56784if ac_fn_c_try_compile "$LINENO"; then :
56785  pac_cv_have_thread_affinity_policy=yes
56786else
56787  pac_cv_have_thread_affinity_policy=no
56788fi
56789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56790fi
56791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_thread_affinity_policy" >&5
56792$as_echo "$pac_cv_have_thread_affinity_policy" >&6; }
56793    if test "$pac_cv_have_thread_affinity_policy" = yes ; then
56794
56795$as_echo "#define HAVE_OSX_THREAD_AFFINITY 1" >>confdefs.h
56796
56797    fi
56798fi
56799
56800# -----------------------------------------------------------------------------
56801# End of thread configure
56802# -----------------------------------------------------------------------------
56803
56804
56805# Checkpointing
56806# Check whether --enable-checkpointing was given.
56807if test "${enable_checkpointing+set}" = set; then :
56808  enableval=$enable_checkpointing;  if test "$enableval" != "no" ; then
56809
56810
56811
56812# Check whether --with-blcr was given.
56813if test "${with_blcr+set}" = set; then :
56814  withval=$with_blcr;
56815fi
56816
56817
56818
56819# Check whether --with-blcr-include was given.
56820if test "${with_blcr_include+set}" = set; then :
56821  withval=$with_blcr_include; case "$withval" in #(
56822  yes|no|'') :
56823    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-blcr-include=PATH expects a valid PATH" >&5
56824$as_echo "$as_me: WARNING: --without-blcr-include=PATH expects a valid PATH" >&2;}
56825                          with_blcr_include="" ;; #(
56826  *) :
56827     ;;
56828esac
56829fi
56830
56831
56832# Check whether --with-blcr-lib was given.
56833if test "${with_blcr_lib+set}" = set; then :
56834  withval=$with_blcr_lib; case "$withval" in #(
56835  yes|no|'') :
56836    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-blcr-lib=PATH expects a valid PATH" >&5
56837$as_echo "$as_me: WARNING: --without-blcr-lib=PATH expects a valid PATH" >&2;}
56838                          with_blcr_lib="" ;; #(
56839  *) :
56840     ;;
56841esac
56842fi
56843
56844
56845    # The args have been sanitized into empty/non-empty values above.
56846    # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
56847    # taking priority
56848
56849    case "${with_blcr}" in
56850        embedded)
56851            as_fn_error $? "embedded blcr is requested but we do not have the embedded version" "$LINENO" 5
56852            ;;
56853        yes|no)
56854            # skip
56855            ;;
56856        *)
56857    if test -n "${with_blcr_include}"; then :
56858
56859
56860	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_blcr_include}\>" >/dev/null 2>&1; then :
56861  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_blcr_include}', not appending" >&5
56862else
56863  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_blcr_include}', appending" >&5
56864		CPPFLAGS="$CPPFLAGS -I${with_blcr_include}"
56865
56866fi
56867
56868else
56869  if test -n "${with_blcr}"; then :
56870
56871
56872	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_blcr}/include\>" >/dev/null 2>&1; then :
56873  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_blcr}/include', not appending" >&5
56874else
56875  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_blcr}/include', appending" >&5
56876		CPPFLAGS="$CPPFLAGS -I${with_blcr}/include"
56877
56878fi
56879
56880fi
56881fi
56882
56883    if test -n "${with_blcr_lib}"; then :
56884
56885
56886	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_blcr_lib}\>" >/dev/null 2>&1; then :
56887  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_blcr_lib}', not appending" >&5
56888else
56889  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_blcr_lib}', appending" >&5
56890		LDFLAGS="$LDFLAGS -L${with_blcr_lib}"
56891
56892fi
56893
56894else
56895  if test -n "${with_blcr}"; then :
56896
56897
56898	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_blcr}/lib\>" >/dev/null 2>&1; then :
56899  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_blcr}/lib', not appending" >&5
56900else
56901  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_blcr}/lib', appending" >&5
56902		LDFLAGS="$LDFLAGS -L${with_blcr}/lib"
56903
56904fi
56905
56906                  if test -d "${with_blcr}/lib64"; then :
56907
56908
56909	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_blcr}/lib64\>" >/dev/null 2>&1; then :
56910  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_blcr}/lib64', not appending" >&5
56911else
56912  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_blcr}/lib64', appending" >&5
56913		LDFLAGS="$LDFLAGS -L${with_blcr}/lib64"
56914
56915fi
56916
56917fi
56918
56919fi
56920
56921fi
56922            ;;
56923    esac
56924
56925
56926    failure=no
56927    ac_fn_c_check_header_mongrel "$LINENO" "libcr.h" "ac_cv_header_libcr_h" "$ac_includes_default"
56928if test "x$ac_cv_header_libcr_h" = xyes; then :
56929
56930else
56931  failure=yes
56932fi
56933
56934
56935
56936	if test -z "${pac_save_LIBS_nesting}" ; then
56937	   pac_save_LIBS_nesting=0
56938	fi
56939	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
56940	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
56941
56942    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cr_init in -lcr" >&5
56943$as_echo_n "checking for cr_init in -lcr... " >&6; }
56944if ${ac_cv_lib_cr_cr_init+:} false; then :
56945  $as_echo_n "(cached) " >&6
56946else
56947  ac_check_lib_save_LIBS=$LIBS
56948LIBS="-lcr  $LIBS"
56949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56950/* end confdefs.h.  */
56951
56952/* Override any GCC internal prototype to avoid an error.
56953   Use char because int might match the return type of a GCC
56954   builtin and then its argument prototype would still apply.  */
56955#ifdef __cplusplus
56956extern "C"
56957#endif
56958char cr_init ();
56959int
56960main ()
56961{
56962return cr_init ();
56963  ;
56964  return 0;
56965}
56966_ACEOF
56967if ac_fn_c_try_link "$LINENO"; then :
56968  ac_cv_lib_cr_cr_init=yes
56969else
56970  ac_cv_lib_cr_cr_init=no
56971fi
56972rm -f core conftest.err conftest.$ac_objext \
56973    conftest$ac_exeext conftest.$ac_ext
56974LIBS=$ac_check_lib_save_LIBS
56975fi
56976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cr_cr_init" >&5
56977$as_echo "$ac_cv_lib_cr_cr_init" >&6; }
56978if test "x$ac_cv_lib_cr_cr_init" = xyes; then :
56979  cat >>confdefs.h <<_ACEOF
56980#define HAVE_LIBCR 1
56981_ACEOF
56982
56983  LIBS="-lcr $LIBS"
56984
56985else
56986  failure=yes
56987fi
56988
56989
56990	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
56991	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
56992	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
56993
56994    if test "$failure" = "no" ; then
56995       success=yes
56996    else
56997       success=no
56998    fi
56999
57000    if test "$success" = "no" ; then
57001        as_fn_error $? "libcr.h or libcr library not found. Did you specify --with-blcr= or --with-blcr-include= or --with-blcr-lib=?" "$LINENO" 5
57002    fi
57003
57004
57005
57006	if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lcr\>" >/dev/null 2>&1; then :
57007  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lcr', not appending" >&5
57008else
57009  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lcr', appending" >&5
57010		WRAPPER_LIBS="$WRAPPER_LIBS -lcr"
57011
57012fi
57013
57014
57015
57016
57017
57018
57019	if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lcr\>" >/dev/null 2>&1; then :
57020  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lcr', not appending" >&5
57021else
57022  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lcr', appending" >&5
57023		WRAPPER_LIBS="$WRAPPER_LIBS -lcr"
57024
57025fi
57026
57027
57028
57029$as_echo "#define ENABLE_CHECKPOINTING 1" >>confdefs.h
57030
57031      fi
57032fi
57033
57034
57035# Update the cache first with the results of the previous configure steps
57036# We don't use the subdir cache because ensuring that the cache is consistant
57037# with the way in which configure wishes to use it is very difficult and
57038# too prone to error.
57039# -----------------------------------------------------------------------------
57040# experiment with creating a cache file
57041#if test "$CONF_USE_CACHEFILE" = yes ; then
57042#    basecachefile=`pwd`/cache.base
57043#    set | grep ac_cv > $basecachefile
57044#    # Tell other configures to load this file
57045#    echo "Creating and exporting the base cache file $basecachefile"
57046#    CONF_BASE_CACHEFILE=$basecachefile
57047#    export CONF_BASE_CACHEFILE
57048#fi
57049
57050# Check whether --enable-base-cache was given.
57051if test "${enable_base_cache+set}" = set; then :
57052  enableval=$enable_base_cache;
57053else
57054  enable_base_cache=default
57055fi
57056
57057# The default case is controlled by the environment variable CONF_USE_CACHEFILE
57058if test "$enable_base_cache" = "default" ; then
57059    if test "$CONF_USE_CACHEFILE" = yes ; then
57060        enable_base_cache=yes
57061    else
57062        enable_base_cache=no
57063    fi
57064fi
57065if test "$enable_base_cache" != no ; then
57066    if test "$enable_base_cache" = yes ; then
57067        basecachefile=`pwd`/cache.base
57068    else
57069        basecachefile=`pwd`/$enable_base_cache
57070    fi
57071    set | grep ac_cv > $basecachefile
57072    # Tell other configures to load this file
57073    echo "Creating and exporting the base cache file $basecachefile"
57074    CONF_BASE_CACHEFILE=$basecachefile
57075    export CONF_BASE_CACHEFILE
57076fi
57077
57078# -----------------------------------------------------------------------------
57079
57080#
57081# Configure the device second.  This way, any libraries or variables that
57082# it needs can be extracted before building the other subsystems (this is
57083# particularly important for the bindings, which may need to know the
57084# libraries in order to create the compilation scripts)
57085
57086user_specified_atomic_primitives=no
57087if test "$DEBUG_SUBDIR_CACHE" = yes ; then
57088    set -x
57089fi
57090
57091
57092## begin expansion of PAC_SUBCFG_BODY_src_mpi_datatype_typerep_src
57093
57094
57095##########################################################################
57096##### capture user arguments
57097##########################################################################
57098
57099##### allow selection of datatype engine
57100
57101# Check whether --with-datatype-engine was given.
57102if test "${with_datatype_engine+set}" = set; then :
57103  withval=$with_datatype_engine;
57104else
57105  with_datatype_engine=auto
57106fi
57107
57108if test "${with_datatype_engine}" = "yaksa" ; then
57109
57110cat >>confdefs.h <<_ACEOF
57111#define MPICH_DATATYPE_ENGINE MPICH_DATATYPE_ENGINE_YAKSA
57112_ACEOF
57113
57114elif test "${with_datatype_engine}" = "dataloop" ; then
57115
57116cat >>confdefs.h <<_ACEOF
57117#define MPICH_DATATYPE_ENGINE MPICH_DATATYPE_ENGINE_DATALOOP
57118_ACEOF
57119
57120else
57121    if test "$device_name" = "ch4" ; then
57122
57123cat >>confdefs.h <<_ACEOF
57124#define MPICH_DATATYPE_ENGINE MPICH_DATATYPE_ENGINE_YAKSA
57125_ACEOF
57126
57127        with_datatype_engine=yaksa
57128    else
57129
57130cat >>confdefs.h <<_ACEOF
57131#define MPICH_DATATYPE_ENGINE MPICH_DATATYPE_ENGINE_DATALOOP
57132_ACEOF
57133
57134        with_datatype_engine=dataloop
57135    fi
57136fi
57137 if test "${with_datatype_engine}" = "yaksa"; then
57138  BUILD_YAKSA_ENGINE_TRUE=
57139  BUILD_YAKSA_ENGINE_FALSE='#'
57140else
57141  BUILD_YAKSA_ENGINE_TRUE='#'
57142  BUILD_YAKSA_ENGINE_FALSE=
57143fi
57144
57145 if test "${with_datatype_engine}" = "dataloop"; then
57146  BUILD_DATALOOP_ENGINE_TRUE=
57147  BUILD_DATALOOP_ENGINE_FALSE='#'
57148else
57149  BUILD_DATALOOP_ENGINE_TRUE='#'
57150  BUILD_DATALOOP_ENGINE_FALSE=
57151fi
57152
57153
57154
57155## end expansion of PAC_SUBCFG_BODY_src_mpi_datatype_typerep_src
57156
57157## begin expansion of PAC_SUBCFG_BODY_src_util_logging
57158
57159
57160## end expansion of PAC_SUBCFG_BODY_src_util_logging
57161
57162## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4
57163
57164if test -z "$BUILD_CH4_TRUE"; then :
57165
57166{ $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR CH4 DEVICE" >&5
57167$as_echo "$as_me: RUNNING CONFIGURE FOR CH4 DEVICE" >&6;}
57168
57169
57170# Check whether --with-ch4-rank-bits was given.
57171if test "${with_ch4_rank_bits+set}" = set; then :
57172  withval=$with_ch4_rank_bits;  rankbits=$withval
57173else
57174   rankbits=32
57175fi
57176
57177if test "$rankbits" != "16" -a "$rankbits" != "32" ; then
57178   as_fn_error $? "Only 16 or 32-bit ranks are supported" "$LINENO" 5
57179fi
57180
57181cat >>confdefs.h <<_ACEOF
57182#define CH4_RANK_BITS $rankbits
57183_ACEOF
57184
57185
57186# Check whether --enable-ch4r-per-comm-msg-queue was given.
57187if test "${enable_ch4r_per_comm_msg_queue+set}" = set; then :
57188  enableval=$enable_ch4r_per_comm_msg_queue;
57189else
57190  enable_ch4r_per_comm_msg_queue=yes
57191fi
57192
57193
57194if test "$enable_ch4r_per_comm_msg_queue" = "yes" ; then
57195
57196$as_echo "#define MPIDI_CH4U_USE_PER_COMM_QUEUE 1" >>confdefs.h
57197
57198fi
57199
57200
57201# Check whether --with-ch4-max-vcis was given.
57202if test "${with_ch4_max_vcis+set}" = set; then :
57203  withval=$with_ch4_max_vcis;
57204else
57205  with_ch4_max_vcis=1
57206fi
57207
57208if test $with_ch4_max_vcis -le 0 ; then
57209   as_fn_error $? "Number of VCIs must be greater than 0" "$LINENO" 5
57210fi
57211if test $with_ch4_max_vcis -gt 1 -a $thread_granularity != MPICH_THREAD_GRANULARITY__VCI ; then
57212    as_fn_error $? "CH4_MAX_VCIS greater than 1 requires --enable-thread-cs=per-vci" "$LINENO" 5
57213fi
57214
57215cat >>confdefs.h <<_ACEOF
57216#define MPIDI_CH4_MAX_VCIS $with_ch4_max_vcis
57217_ACEOF
57218
57219
57220# Check for enable-ch4-vci-method choice
57221# Check whether --enable-ch4-vci-method was given.
57222if test "${enable_ch4_vci_method+set}" = set; then :
57223  enableval=$enable_ch4_vci_method;
57224else
57225  enable_ch4_vci_method=default
57226fi
57227
57228
57229vci_method=MPICH_VCI__ZERO
57230case $enable_ch4_vci_method in
57231    default)
57232    if test "$with_ch4_max_vcis" = 1 ; then
57233        vci_method=MPICH_VCI__ZERO
57234    else
57235        vci_method=MPICH_VCI__COMM
57236    fi
57237    ;;
57238    zero)
57239    # Essentially single VCI
57240    vci_method=MPICH_VCI__ZERO
57241    ;;
57242    communicator)
57243    # Every communicator gets a new VCI in a round-robin fashion
57244    vci_method=MPICH_VCI__COMM
57245    ;;
57246    tag)
57247    # Explicit VCI info embedded with a tag scheme (5 bit src vci, 5 bit dst vci, plus 5 bit user)
57248    vci_method=MPICH_VCI__TAG
57249    ;;
57250    implicit)
57251    # An automatic scheme taking into account of user hints
57252    vci_method=MPICH_VCI__IMPLICIT
57253    ;;
57254    explicit)
57255    # Directly passing down vci in parameters (MPIX or Endpoint rank)
57256    vci_method=MPICH_VCI__EXPLICIT
57257    ;;
57258    *)
57259    as_fn_error $? "Unrecognized value $enable_ch4_vci_method for --enable-ch4-vci-method" "$LINENO" 5
57260    ;;
57261esac
57262
57263cat >>confdefs.h <<_ACEOF
57264#define MPIDI_CH4_VCI_METHOD $vci_method
57265_ACEOF
57266
57267
57268# Check whether --enable-ch4-mt was given.
57269if test "${enable_ch4_mt+set}" = set; then :
57270  enableval=$enable_ch4_mt;
57271else
57272  enable_ch4_mt=direct
57273fi
57274
57275
57276case $enable_ch4_mt in
57277     direct)
57278
57279$as_echo "#define MPIDI_CH4_USE_MT_DIRECT 1" >>confdefs.h
57280
57281        ;;
57282     handoff)
57283
57284$as_echo "#define MPIDI_CH4_USE_MT_HANDOFF 1" >>confdefs.h
57285
57286        ;;
57287     runtime)
57288
57289$as_echo "#define MPIDI_CH4_USE_MT_RUNTIME 1" >>confdefs.h
57290
57291        ;;
57292     *)
57293        as_fn_error $? "Multi-threading model ${enable_ch4_mt} is unknown" "$LINENO" 5
57294        ;;
57295esac
57296
57297#
57298# Dependency checks for CH4 MT modes
57299# Currently, "handoff" and "runtime" require the followings:
57300# - izem linked in (--with-zm-prefix)
57301# - enable-thread-cs=per-vci
57302#
57303if test "$enable_ch4_mt" != "direct"; then
57304    if test "${with_zm_prefix}" == "no" -o "${with_zm_prefix}" == "none" -o "${enable_izem_queue}" != "yes" ; then
57305        as_fn_error $? "Multi-threading model \`${enable_ch4_mt}\` requires izem queue. Set \`--enable-izem={queue|all} --with-zm-prefix\` and retry." "$LINENO" 5
57306    elif test "${enable_thread_cs}" != "per-vci" -a "${enable_thread_cs}" != "per_vci"; then
57307        as_fn_error $? "Multi-threading model \`${enable_ch4_mt}\` requires \`--enable-thread-cs=per-vci\`." "$LINENO" 5
57308    fi
57309fi
57310
57311for ac_header in sys/mman.h sys/stat.h fcntl.h
57312do :
57313  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
57314ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
57315if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
57316  cat >>confdefs.h <<_ACEOF
57317#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57318_ACEOF
57319
57320fi
57321
57322done
57323
57324ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
57325if test "x$ac_cv_func_mmap" = xyes; then :
57326
57327else
57328  as_fn_error $? "mmap is required to build CH4" "$LINENO" 5
57329fi
57330
57331
57332for ac_func in gethostname
57333do :
57334  ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
57335if test "x$ac_cv_func_gethostname" = xyes; then :
57336  cat >>confdefs.h <<_ACEOF
57337#define HAVE_GETHOSTNAME 1
57338_ACEOF
57339
57340fi
57341done
57342
57343if test "$ac_cv_func_gethostname" = "yes" ; then
57344    # Do we need to declare gethostname?
57345
57346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostname needs a declaration" >&5
57347$as_echo_n "checking whether gethostname needs a declaration... " >&6; }
57348if ${pac_cv_func_decl_gethostname+:} false; then :
57349  $as_echo_n "(cached) " >&6
57350else
57351
57352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57353/* end confdefs.h.  */
57354#include <unistd.h>
57355void (*fptr)(void) = (void(*)(void))gethostname;
57356int
57357main ()
57358{
57359
57360  ;
57361  return 0;
57362}
57363_ACEOF
57364if ac_fn_c_try_compile "$LINENO"; then :
57365  pac_cv_func_decl_gethostname=no
57366else
57367  pac_cv_func_decl_gethostname=yes
57368fi
57369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57370fi
57371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_gethostname" >&5
57372$as_echo "$pac_cv_func_decl_gethostname" >&6; }
57373if test "$pac_cv_func_decl_gethostname" = "yes" ; then
57374
57375cat >>confdefs.h <<_ACEOF
57376#define NEEDS_GETHOSTNAME_DECL 1
57377_ACEOF
57378
57379
57380fi
57381
57382fi
57383
57384# make sure we support signal
57385for ac_header in signal.h
57386do :
57387  ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
57388if test "x$ac_cv_header_signal_h" = xyes; then :
57389  cat >>confdefs.h <<_ACEOF
57390#define HAVE_SIGNAL_H 1
57391_ACEOF
57392
57393fi
57394
57395done
57396
57397for ac_func in signal
57398do :
57399  ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
57400if test "x$ac_cv_func_signal" = xyes; then :
57401  cat >>confdefs.h <<_ACEOF
57402#define HAVE_SIGNAL 1
57403_ACEOF
57404
57405fi
57406done
57407
57408
57409ac_config_files="$ac_config_files src/mpid/ch4/src/mpid_ch4_net_array.c src/mpid/ch4/include/netmodpre.h"
57410
57411
57412fi
57413# we have to define it here to cover ch3 build
57414 if test "${with_ch4_shmmods}" != "none" -a "${with_ch4_shmmods}" != "no"; then
57415  BUILD_CH4_SHM_TRUE=
57416  BUILD_CH4_SHM_FALSE='#'
57417else
57418  BUILD_CH4_SHM_TRUE='#'
57419  BUILD_CH4_SHM_FALSE=
57420fi
57421
57422 if test -e "$srcdir/src/mpid/ch4/src/ch4_coll_globals.c"; then
57423  BUILD_CH4_COLL_TUNING_TRUE=
57424  BUILD_CH4_COLL_TUNING_FALSE='#'
57425else
57426  BUILD_CH4_COLL_TUNING_TRUE='#'
57427  BUILD_CH4_COLL_TUNING_FALSE=
57428fi
57429
57430
57431
57432## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4
57433
57434## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_ucx
57435
57436if test -z "$BUILD_CH4_NETMOD_UCX_TRUE"; then :
57437
57438    { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch4:ucx" >&5
57439$as_echo "$as_me: RUNNING CONFIGURE FOR ch4:ucx" >&6;}
57440
57441    ucxdir=""
57442
57443    ucxlib=""
57444
57445
57446    ucx_embedded=""
57447    if test $have_ucx = no ; then
57448        ucx_embedded="yes"
57449    fi
57450
57451    if test "${ucx_embedded}" = "yes" ; then
57452
57453
57454	if test -z "${pac_save_CFLAGS_nesting}" ; then
57455	   pac_save_CFLAGS_nesting=0
57456	fi
57457	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
57458	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
57459
57460
57461	if test -z "${pac_save_CPPFLAGS_nesting}" ; then
57462	   pac_save_CPPFLAGS_nesting=0
57463	fi
57464	eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}='"$CPPFLAGS"'
57465	pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} + 1`
57466
57467
57468	if test -z "${pac_save_CXXFLAGS_nesting}" ; then
57469	   pac_save_CXXFLAGS_nesting=0
57470	fi
57471	eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}='"$CXXFLAGS"'
57472	pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} + 1`
57473
57474
57475	if test -z "${pac_save_FFLAGS_nesting}" ; then
57476	   pac_save_FFLAGS_nesting=0
57477	fi
57478	eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}='"$FFLAGS"'
57479	pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} + 1`
57480
57481
57482	if test -z "${pac_save_FCFLAGS_nesting}" ; then
57483	   pac_save_FCFLAGS_nesting=0
57484	fi
57485	eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}='"$FCFLAGS"'
57486	pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} + 1`
57487
57488
57489	if test -z "${pac_save_LDFLAGS_nesting}" ; then
57490	   pac_save_LDFLAGS_nesting=0
57491	fi
57492	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"'
57493	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1`
57494
57495
57496	if test -z "${pac_save_LIBS_nesting}" ; then
57497	   pac_save_LIBS_nesting=0
57498	fi
57499	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
57500	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
57501
57502
57503
57504	if test "$FROM_MPICH" = "yes" ; then
57505	   CFLAGS="$USER_CFLAGS"
57506	   CPPFLAGS="$USER_CPPFLAGS"
57507	   CXXFLAGS="$USER_CXXFLAGS"
57508	   FFLAGS="$USER_FFLAGS"
57509	   FCFLAGS="$USER_FCFLAGS"
57510	   LDFLAGS="$USER_LDFLAGS"
57511	   LIBS="$USER_LIBS"
57512	fi
57513
57514
57515        pac_dir="modules/ucx"
57516        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring modules/ucx =====" >&5
57517$as_echo "$as_me: ===== configuring modules/ucx =====" >&6;}
57518
57519	pac_abs_srcdir=`(cd $srcdir && pwd)`
57520
57521	if test -f $pac_abs_srcdir/modules/ucx/setup ; then
57522           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/modules/ucx/setup" >&5
57523$as_echo "$as_me: sourcing $pac_abs_srcdir/modules/ucx/setup" >&6;}
57524	   . $pac_abs_srcdir/modules/ucx/setup
57525	fi
57526
57527        # Adapted for MPICH from the autoconf-2.67 implementation of
57528        # AC_CONFIG_SUBDIRS.  Search for "MPICH note:" for relevant commentary and
57529        # local modifications.
57530
57531        # Remove --cache-file, --srcdir, and --disable-option-checking arguments
57532        # so they do not pile up.  Otherwise relative paths (like --srcdir=.. from
57533        # make distcheck) will be incorrect.
57534        pac_sub_configure_args="--disable-static --enable-embedded --with-java=no"
57535        pac_prev=
57536        eval "set x $ac_configure_args"
57537        shift
57538        for pac_arg
57539        do
57540          if test -n "$pac_prev"; then
57541            pac_prev=
57542            continue
57543          fi
57544          case $pac_arg in
57545          -cache-file | --cache-file | --cache-fil | --cache-fi \
57546          | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
57547            pac_prev=cache_file ;;
57548          -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
57549          | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
57550          | --c=*)
57551            ;;
57552          --config-cache | -C)
57553            ;;
57554          -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
57555            pac_prev=srcdir ;;
57556          -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
57557            ;;
57558          -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
57559            pac_prev=prefix ;;
57560          -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
57561            ;;
57562          --disable-option-checking)
57563            ;;
57564          *)
57565            # MPICH note: this is a more robust version of the "precious
57566            # variable" propagation code that was present in the previous
57567            # incarnation of this macro
57568            for pac_pvar in $ac_precious_vars ; do
57569                # check if configure argument token contains the
57570                # precious variable, i.e. "name_of_prec_var=".
57571                if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then
57572                    # check if current precious variable is set in env
57573                    eval pvar_set=\${$pac_pvar+set}
57574                    if test "$pvar_set" = "set" ; then
57575                        # Append 'name_of_prec_var=value_of_prec_var'
57576                        # to the subconfigure arguments list, where
57577                        # value_of_prec_var is fetched from the env.
57578                        # this also overrides any value set on the command line
57579                        eval pac_pval=\${$pac_pvar}
57580                        pac_arg="$pac_pvar=$pac_pval"
57581                        break
57582                    fi
57583                fi
57584            done
57585            case $pac_arg in
57586            *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57587            esac
57588            as_fn_append pac_sub_configure_args " '$pac_arg'" ;;
57589          esac
57590        done
57591
57592        # Always prepend --prefix to ensure using the same prefix
57593        # in subdir configurations.
57594        # MPICH note: see tt#983 for an example of why this is necessary
57595        pac_arg="--prefix=$prefix"
57596        case $pac_arg in
57597        *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57598        esac
57599        pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args"
57600
57601        # Pass --silent
57602        if test "$silent" = yes; then
57603          pac_sub_configure_args="--silent $pac_sub_configure_args"
57604        fi
57605
57606        # Always prepend --disable-option-checking to silence warnings, since
57607        # different subdirs can have different --enable and --with options.
57608        pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args"
57609
57610        pac_popdir=`pwd`
57611
57612        # Do not complain, so a configure script can configure whichever
57613        # parts of a large source tree are present.
57614        test -d "$srcdir/$pac_dir" || continue
57615
57616        # MPICH note: modified to remove the internal "_AS_*" macro usage, also
57617        # msg is already printed at top
57618        as_dir="$pac_dir"; as_fn_mkdir_p
57619        # MPICH note: we leave this internal macro reference for now.  We can clone
57620        # the macro locally if this turns out to be non-portable across several autoconf
57621        # versions.  It sets the following variables: ac_builddir,
57622        # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir,
57623        # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir
57624        ac_builddir=.
57625
57626case "$pac_dir" in
57627.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57628*)
57629  ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'`
57630  # A ".." for each directory in $ac_dir_suffix.
57631  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
57632  case $ac_top_builddir_sub in
57633  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57634  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57635  esac ;;
57636esac
57637ac_abs_top_builddir=$ac_pwd
57638ac_abs_builddir=$ac_pwd$ac_dir_suffix
57639# for backward compatibility:
57640ac_top_builddir=$ac_top_build_prefix
57641
57642case $srcdir in
57643  .)  # We are building in place.
57644    ac_srcdir=.
57645    ac_top_srcdir=$ac_top_builddir_sub
57646    ac_abs_top_srcdir=$ac_pwd ;;
57647  [\\/]* | ?:[\\/]* )  # Absolute name.
57648    ac_srcdir=$srcdir$ac_dir_suffix;
57649    ac_top_srcdir=$srcdir
57650    ac_abs_top_srcdir=$srcdir ;;
57651  *) # Relative name.
57652    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57653    ac_top_srcdir=$ac_top_build_prefix$srcdir
57654    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57655esac
57656ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57657
57658
57659        cd "$pac_dir"
57660
57661        # Check for guested configure; otherwise get Cygnus style configure.
57662        if test -f "$ac_srcdir/configure.gnu"; then
57663          pac_sub_configure=$ac_srcdir/configure.gnu
57664        elif test -f "$ac_srcdir/configure"; then
57665          pac_sub_configure=$ac_srcdir/configure
57666        elif test -f "$ac_srcdir/configure.ac"; then
57667          # This should be Cygnus configure.
57668          pac_sub_configure=$ac_aux_dir/configure
57669        else
57670          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5
57671$as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;}
57672          pac_sub_configure=
57673        fi
57674
57675        # The recursion is here.
57676        if test -n "$pac_sub_configure"; then
57677          # MPICH note: overriding the cache file on purpose to prevent strange
57678          # issues resulting from inter-dir caching
57679          pac_sub_cache_file="/dev/null"
57680
57681          { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5
57682$as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
57683          # The eval makes quoting arguments work.
57684          # MPICH note: we want to execute the provided actions, not be silent
57685          # or error out if the subconfigure succeeded/failed
57686          if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \
57687               --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\""
57688          then
57689            # restore the current dir for the provided actions
57690            cd "$pac_popdir"
57691
57692          else
57693            # restore the current dir for the provided actions
57694            cd "$pac_popdir"
57695            as_fn_error $? "ucx configure failed" "$LINENO" 5
57696          fi
57697        fi
57698
57699        cd "$pac_popdir"
57700
57701        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with modules/ucx configure =====" >&5
57702$as_echo "$as_me: ===== done with modules/ucx configure =====" >&6;}
57703
57704	# Check for any localdefs files.  These may be created, so we
57705	# look in the local directory first.
57706	if test -f modules/ucx/localdefs ; then
57707           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing modules/ucx/localdefs" >&5
57708$as_echo "$as_me: sourcing modules/ucx/localdefs" >&6;}
57709	   . modules/ucx/localdefs
57710	elif test -f $pac_abs_srcdir/modules/ucx/localdefs ; then
57711           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/modules/ucx/localdefs" >&5
57712$as_echo "$as_me: sourcing $pac_abs_srcdir/modules/ucx/localdefs" >&6;}
57713	   . $pac_abs_srcdir/modules/ucx/localdefs
57714	fi
57715
57716
57717
57718	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
57719	eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
57720	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
57721
57722
57723	pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} - 1`
57724	eval CPPFLAGS="\$pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}"
57725	eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}=""
57726
57727
57728	pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} - 1`
57729	eval CXXFLAGS="\$pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}"
57730	eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}=""
57731
57732
57733	pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} - 1`
57734	eval FFLAGS="\$pac_save_FFLAGS_${pac_save_FFLAGS_nesting}"
57735	eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}=""
57736
57737
57738	pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} - 1`
57739	eval FCFLAGS="\$pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}"
57740	eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}=""
57741
57742
57743	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1`
57744	eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}"
57745	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}=""
57746
57747
57748	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
57749	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
57750	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
57751
57752
57753
57754
57755	if echo "$CPPFLAGS" | $FGREP -e "\<-I${main_top_builddir}/modules/ucx/src\>" >/dev/null 2>&1; then :
57756  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${main_top_builddir}/modules/ucx/src', not appending" >&5
57757else
57758  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${main_top_builddir}/modules/ucx/src', appending" >&5
57759		CPPFLAGS="$CPPFLAGS -I${main_top_builddir}/modules/ucx/src"
57760
57761fi
57762
57763
57764
57765	if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/modules/ucx/src\>" >/dev/null 2>&1; then :
57766  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/modules/ucx/src', not appending" >&5
57767else
57768  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/modules/ucx/src', appending" >&5
57769		CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/modules/ucx/src"
57770
57771fi
57772
57773
57774        ucxdir="modules/ucx"
57775        ucxlib="modules/ucx/src/ucp/libucp.la"
57776
57777        # embedded ucx is 1.4 or higher version, thus always set as defined.
57778        have_ucp_put_nb=yes
57779        have_ucp_get_nb=yes
57780    else
57781
57782
57783	if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lucp -lucs\>" >/dev/null 2>&1; then :
57784  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lucp -lucs', not appending" >&5
57785else
57786  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lucp -lucs', appending" >&5
57787		WRAPPER_LIBS="$WRAPPER_LIBS -lucp -lucs"
57788
57789fi
57790
57791
57792        # ucp_put_nb and ucp_get_nb are added only from ucx 1.4.
57793
57794    failure=no
57795    ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default"
57796if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then :
57797
57798else
57799  failure=yes
57800fi
57801
57802
57803
57804	if test -z "${pac_save_LIBS_nesting}" ; then
57805	   pac_save_LIBS_nesting=0
57806	fi
57807	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
57808	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
57809
57810    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucp_put_nb in -lucp" >&5
57811$as_echo_n "checking for ucp_put_nb in -lucp... " >&6; }
57812if ${ac_cv_lib_ucp_ucp_put_nb+:} false; then :
57813  $as_echo_n "(cached) " >&6
57814else
57815  ac_check_lib_save_LIBS=$LIBS
57816LIBS="-lucp  $LIBS"
57817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57818/* end confdefs.h.  */
57819
57820/* Override any GCC internal prototype to avoid an error.
57821   Use char because int might match the return type of a GCC
57822   builtin and then its argument prototype would still apply.  */
57823#ifdef __cplusplus
57824extern "C"
57825#endif
57826char ucp_put_nb ();
57827int
57828main ()
57829{
57830return ucp_put_nb ();
57831  ;
57832  return 0;
57833}
57834_ACEOF
57835if ac_fn_c_try_link "$LINENO"; then :
57836  ac_cv_lib_ucp_ucp_put_nb=yes
57837else
57838  ac_cv_lib_ucp_ucp_put_nb=no
57839fi
57840rm -f core conftest.err conftest.$ac_objext \
57841    conftest$ac_exeext conftest.$ac_ext
57842LIBS=$ac_check_lib_save_LIBS
57843fi
57844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucp_ucp_put_nb" >&5
57845$as_echo "$ac_cv_lib_ucp_ucp_put_nb" >&6; }
57846if test "x$ac_cv_lib_ucp_ucp_put_nb" = xyes; then :
57847  cat >>confdefs.h <<_ACEOF
57848#define HAVE_LIBUCP 1
57849_ACEOF
57850
57851  LIBS="-lucp $LIBS"
57852
57853else
57854  failure=yes
57855fi
57856
57857
57858	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
57859	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
57860	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
57861
57862    if test "$failure" = "no" ; then
57863       have_ucp_put_nb=yes
57864    else
57865       have_ucp_put_nb=no
57866    fi
57867
57868
57869    failure=no
57870    ac_fn_c_check_header_mongrel "$LINENO" "ucp/api/ucp.h" "ac_cv_header_ucp_api_ucp_h" "$ac_includes_default"
57871if test "x$ac_cv_header_ucp_api_ucp_h" = xyes; then :
57872
57873else
57874  failure=yes
57875fi
57876
57877
57878
57879	if test -z "${pac_save_LIBS_nesting}" ; then
57880	   pac_save_LIBS_nesting=0
57881	fi
57882	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
57883	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
57884
57885    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucp_get_nb in -lucp" >&5
57886$as_echo_n "checking for ucp_get_nb in -lucp... " >&6; }
57887if ${ac_cv_lib_ucp_ucp_get_nb+:} false; then :
57888  $as_echo_n "(cached) " >&6
57889else
57890  ac_check_lib_save_LIBS=$LIBS
57891LIBS="-lucp  $LIBS"
57892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57893/* end confdefs.h.  */
57894
57895/* Override any GCC internal prototype to avoid an error.
57896   Use char because int might match the return type of a GCC
57897   builtin and then its argument prototype would still apply.  */
57898#ifdef __cplusplus
57899extern "C"
57900#endif
57901char ucp_get_nb ();
57902int
57903main ()
57904{
57905return ucp_get_nb ();
57906  ;
57907  return 0;
57908}
57909_ACEOF
57910if ac_fn_c_try_link "$LINENO"; then :
57911  ac_cv_lib_ucp_ucp_get_nb=yes
57912else
57913  ac_cv_lib_ucp_ucp_get_nb=no
57914fi
57915rm -f core conftest.err conftest.$ac_objext \
57916    conftest$ac_exeext conftest.$ac_ext
57917LIBS=$ac_check_lib_save_LIBS
57918fi
57919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ucp_ucp_get_nb" >&5
57920$as_echo "$ac_cv_lib_ucp_ucp_get_nb" >&6; }
57921if test "x$ac_cv_lib_ucp_ucp_get_nb" = xyes; then :
57922  cat >>confdefs.h <<_ACEOF
57923#define HAVE_LIBUCP 1
57924_ACEOF
57925
57926  LIBS="-lucp $LIBS"
57927
57928else
57929  failure=yes
57930fi
57931
57932
57933	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
57934	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
57935	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
57936
57937    if test "$failure" = "no" ; then
57938       have_ucp_get_nb=yes
57939    else
57940       have_ucp_get_nb=no
57941    fi
57942
57943    fi
57944
57945    if test "${have_ucp_put_nb}" = "yes" ; then
57946
57947$as_echo "#define HAVE_UCP_PUT_NB 1" >>confdefs.h
57948
57949    fi
57950    if test "${have_ucp_get_nb}" = "yes" ; then
57951
57952$as_echo "#define HAVE_UCP_GET_NB 1" >>confdefs.h
57953
57954    fi
57955
57956fi
57957## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_ucx
57958
57959## begin expansion of PAC_SUBCFG_BODY_src_pm
57960
57961
57962for pm_name in $pm_names ; do
57963    case $pm_name in #(
57964  hydra) :
57965    build_pm_hydra=yes ;; #(
57966  hydra2) :
57967    build_pm_hydra2=yes ;; #(
57968  *) :
57969     ;;
57970esac
57971done
57972
57973# we handle these conditionals here in the BODY because they depend on logic in
57974# the main portion of the top-level configure
57975 if test "x$build_pm_hydra" = "xyes"; then
57976  BUILD_PM_HYDRA_TRUE=
57977  BUILD_PM_HYDRA_FALSE='#'
57978else
57979  BUILD_PM_HYDRA_TRUE='#'
57980  BUILD_PM_HYDRA_FALSE=
57981fi
57982
57983 if test "x$build_pm_hydra2" = "xyes"; then
57984  BUILD_PM_HYDRA2_TRUE=
57985  BUILD_PM_HYDRA2_FALSE='#'
57986else
57987  BUILD_PM_HYDRA2_TRUE='#'
57988  BUILD_PM_HYDRA2_FALSE=
57989fi
57990
57991
57992# do nothing extra here for now
57993
57994
57995## end expansion of PAC_SUBCFG_BODY_src_pm
57996
57997## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_stubshm
57998
57999if test -z "$BUILD_SHM_STUBSHM_TRUE"; then :
58000
58001    { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch4:shm:stubshm" >&5
58002$as_echo "$as_me: RUNNING CONFIGURE FOR ch4:shm:stubshm" >&6;}
58003
58004fi
58005## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_stubshm
58006
58007## begin expansion of PAC_SUBCFG_BODY_src_binding_fortran_use_mpi
58008
58009
58010if test -z "$BUILD_FC_BINDING_TRUE"; then :
58011
58012# FIXME XXX DJG this code came from a sub-configure in src/binding/fortran/use_mpi.  Why
58013# isn't this just all up in the top-level configure?  Alternatively, why doesn't
58014# most/all of the f90 configure code from the top level configure.ac live here
58015# instead?  Is it because of the c/f77/f90 interplay?
58016{ $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR F90 CODE" >&5
58017$as_echo "$as_me: RUNNING CONFIGURE FOR F90 CODE" >&6;}
58018
58019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
58020$as_echo_n "checking whether ln -s works... " >&6; }
58021LN_S=$as_ln_s
58022if test "$LN_S" = "ln -s"; then
58023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58024$as_echo "yes" >&6; }
58025else
58026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
58027$as_echo "no, using $LN_S" >&6; }
58028fi
58029
58030
58031# Determine the extension for Fortran 90 files (it isn't always .f90)
58032
58033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extension for Fortran 90 programs" >&5
58034$as_echo_n "checking for extension for Fortran 90 programs... " >&6; }
58035ac_fc_srcext="f90"
58036ac_ext=${ac_fc_srcext-f}
58037ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
58038ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
58039ac_compiler_gnu=$ac_cv_fc_compiler_gnu
58040
58041cat > conftest.$ac_ext <<_ACEOF
58042
58043          program main
58044
58045      end
58046
58047_ACEOF
58048if ac_fn_fc_try_compile "$LINENO"; then :
58049
58050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: f90" >&5
58051$as_echo "f90" >&6; }
58052
58053else
58054
58055    ac_fc_srcext="f"
58056    cat > conftest.$ac_ext <<_ACEOF
58057
58058              program main
58059
58060      end
58061
58062_ACEOF
58063if ac_fn_fc_try_compile "$LINENO"; then :
58064
58065        { $as_echo "$as_me:${as_lineno-$LINENO}: result: f" >&5
58066$as_echo "f" >&6; }
58067
58068else
58069
58070        { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown!" >&5
58071$as_echo "unknown!" >&6; }
58072
58073fi
58074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58075
58076fi
58077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58078ac_ext=c
58079ac_cpp='$CPP $CPPFLAGS'
58080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58082ac_compiler_gnu=$ac_cv_c_compiler_gnu
58083
58084
58085FCEXT=$ac_fc_srcext
58086
58087
58088# Determine the precision and range of the standard Fortran types.  This
58089# isn't quite enough for a full implementation of the Type_create_f90_xxx
58090# routines, but will handle most programs.  We can extend this by trying to
58091# find (through selected_real_kind and selected_int_kind) types with larger or
58092# smaller precisions and/or ranges than the basic types.
58093
58094pac_msg="the precision and range of reals"
58095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pac_msg" >&5
58096$as_echo_n "checking for $pac_msg... " >&6; }
58097ac_ext=${ac_fc_srcext-f}
58098ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
58099ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
58100ac_compiler_gnu=$ac_cv_fc_compiler_gnu
58101
58102rm -f pac_fconftest.out
58103if test "$cross_compiling" = yes; then :
58104
58105    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSS_F90_REAL_MODEL" >&5
58106$as_echo "$CROSS_F90_REAL_MODEL" >&6; }
58107    FC_REAL_MODEL=$CROSS_F90_REAL_MODEL
58108
58109else
58110  cat > conftest.$ac_ext <<_ACEOF
58111
58112
58113        program main
58114        real aa
58115        open(8, file="pac_fconftest.out", form="formatted")
58116        write(8,*) precision(aa), ",", range(aa)
58117        close(8)
58118        end
58119
58120
58121_ACEOF
58122if ac_fn_fc_try_run "$LINENO"; then :
58123
58124    if test -s pac_fconftest.out ; then
58125        pac_fc_num_model="`sed -e 's/  */ /g' pac_fconftest.out`"
58126        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_fc_num_model" >&5
58127$as_echo "$pac_fc_num_model" >&6; }
58128        FC_REAL_MODEL=$pac_fc_num_model
58129    else
58130        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5
58131$as_echo "Error" >&6; }
58132        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No output from test program!" >&5
58133$as_echo "$as_me: WARNING: No output from test program!" >&2;}
58134    fi
58135    rm -f pac_fconftest.out
58136
58137else
58138
58139    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5
58140$as_echo "Error" >&6; }
58141    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to run program to determine $pac_msg" >&5
58142$as_echo "$as_me: WARNING: Failed to run program to determine $pac_msg" >&2;}
58143
58144fi
58145rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58146  conftest.$ac_objext conftest.beam conftest.$ac_ext
58147fi
58148
58149ac_ext=c
58150ac_cpp='$CPP $CPPFLAGS'
58151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58153ac_compiler_gnu=$ac_cv_c_compiler_gnu
58154
58155
58156
58157#
58158
58159pac_msg="the precision and range of double precision"
58160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pac_msg" >&5
58161$as_echo_n "checking for $pac_msg... " >&6; }
58162ac_ext=${ac_fc_srcext-f}
58163ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
58164ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
58165ac_compiler_gnu=$ac_cv_fc_compiler_gnu
58166
58167rm -f pac_fconftest.out
58168if test "$cross_compiling" = yes; then :
58169
58170    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSS_F90_DOUBLE_MODEL" >&5
58171$as_echo "$CROSS_F90_DOUBLE_MODEL" >&6; }
58172    FC_DOUBLE_MODEL=$CROSS_F90_DOUBLE_MODEL
58173
58174else
58175  cat > conftest.$ac_ext <<_ACEOF
58176
58177
58178        program main
58179        double precision aa
58180        open(8, file="pac_fconftest.out", form="formatted")
58181        write(8,*) precision(aa), ",", range(aa)
58182        close(8)
58183        end
58184
58185
58186_ACEOF
58187if ac_fn_fc_try_run "$LINENO"; then :
58188
58189    if test -s pac_fconftest.out ; then
58190        pac_fc_num_model="`sed -e 's/  */ /g' pac_fconftest.out`"
58191        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_fc_num_model" >&5
58192$as_echo "$pac_fc_num_model" >&6; }
58193        FC_DOUBLE_MODEL=$pac_fc_num_model
58194    else
58195        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5
58196$as_echo "Error" >&6; }
58197        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No output from test program!" >&5
58198$as_echo "$as_me: WARNING: No output from test program!" >&2;}
58199    fi
58200    rm -f pac_fconftest.out
58201
58202else
58203
58204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5
58205$as_echo "Error" >&6; }
58206    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to run program to determine $pac_msg" >&5
58207$as_echo "$as_me: WARNING: Failed to run program to determine $pac_msg" >&2;}
58208
58209fi
58210rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58211  conftest.$ac_objext conftest.beam conftest.$ac_ext
58212fi
58213
58214ac_ext=c
58215ac_cpp='$CPP $CPPFLAGS'
58216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58218ac_compiler_gnu=$ac_cv_c_compiler_gnu
58219
58220
58221
58222#
58223
58224pac_msg="the range of integer"
58225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $pac_msg" >&5
58226$as_echo_n "checking for $pac_msg... " >&6; }
58227ac_ext=${ac_fc_srcext-f}
58228ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
58229ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
58230ac_compiler_gnu=$ac_cv_fc_compiler_gnu
58231
58232rm -f pac_fconftest.out
58233if test "$cross_compiling" = yes; then :
58234
58235    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSS_F90_INTEGER_MODEL" >&5
58236$as_echo "$CROSS_F90_INTEGER_MODEL" >&6; }
58237    FC_INTEGER_MODEL=$CROSS_F90_INTEGER_MODEL
58238
58239else
58240  cat > conftest.$ac_ext <<_ACEOF
58241
58242
58243        program main
58244        integer aa
58245        open(8, file="pac_fconftest.out", form="formatted")
58246        write(8,*) range(aa)
58247        close(8)
58248        end
58249
58250
58251_ACEOF
58252if ac_fn_fc_try_run "$LINENO"; then :
58253
58254    if test -s pac_fconftest.out ; then
58255        pac_fc_num_model="`sed -e 's/  */ /g' pac_fconftest.out`"
58256        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_fc_num_model" >&5
58257$as_echo "$pac_fc_num_model" >&6; }
58258        FC_INTEGER_MODEL=$pac_fc_num_model
58259    else
58260        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5
58261$as_echo "Error" >&6; }
58262        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No output from test program!" >&5
58263$as_echo "$as_me: WARNING: No output from test program!" >&2;}
58264    fi
58265    rm -f pac_fconftest.out
58266
58267else
58268
58269    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5
58270$as_echo "Error" >&6; }
58271    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to run program to determine $pac_msg" >&5
58272$as_echo "$as_me: WARNING: Failed to run program to determine $pac_msg" >&2;}
58273
58274fi
58275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58276  conftest.$ac_objext conftest.beam conftest.$ac_ext
58277fi
58278
58279ac_ext=c
58280ac_cpp='$CPP $CPPFLAGS'
58281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58283ac_compiler_gnu=$ac_cv_c_compiler_gnu
58284
58285
58286
58287
58288# Try to find the available integer kinds by using selected_int_kind
58289# This produces a table of range,kind
58290
58291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for available integer kinds" >&5
58292$as_echo_n "checking for available integer kinds... " >&6; }
58293ac_ext=${ac_fc_srcext-f}
58294ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
58295ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
58296ac_compiler_gnu=$ac_cv_fc_compiler_gnu
58297
58298rm -f pac_fconftest.out
58299if test "$cross_compiling" = yes; then :
58300
58301            pac_validKinds="`echo \"$CROSS_F90_ALL_INTEGER_MODELS\" | tr ',' ':'`"
58302    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSS_F90_ALL_INTEGER_MODELS" >&5
58303$as_echo "$CROSS_F90_ALL_INTEGER_MODELS" >&6; }
58304    FC_ALL_INTEGER_MODELS=$CROSS_F90_ALL_INTEGER_MODELS
58305
58306else
58307  cat > conftest.$ac_ext <<_ACEOF
58308
58309
58310        program main
58311        integer r, lastkind
58312        lastkind=selected_int_kind(1)
58313        open(8, file="pac_fconftest.out", form="formatted")
58314        do r=2,30
58315             k = selected_int_kind(r)
58316             if (k .ne. lastkind) then
58317                  write(8,*) r-1, ",", lastkind
58318                  lastkind = k
58319             endif
58320             if (k .le. 0) then
58321                 exit
58322             endif
58323        enddo
58324        if (k.ne.lastkind) then
58325            write(8,*) 31, ",", k
58326        endif
58327        close(8)
58328        end
58329
58330
58331_ACEOF
58332if ac_fn_fc_try_run "$LINENO"; then :
58333
58334    if test -s pac_fconftest.out ; then
58335        pac_flag="`sed -e 's/  */ /g' pac_fconftest.out | tr '\012' ','`"
58336        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_flag" >&5
58337$as_echo "$pac_flag" >&6; }
58338        pac_validKinds="`sed -e 's/  */ /g' pac_fconftest.out | tr '\012' ':'`"
58339        FC_ALL_INTEGER_MODELS=$pac_flag
58340    else
58341        { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5
58342$as_echo "Error" >&6; }
58343        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No output from test program!" >&5
58344$as_echo "$as_me: WARNING: No output from test program!" >&2;}
58345    fi
58346    rm -f pac_fconftest.out
58347
58348else
58349
58350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error" >&5
58351$as_echo "Error" >&6; }
58352    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to run program to determine available integer models" >&5
58353$as_echo "$as_me: WARNING: Failed to run program to determine available integer models" >&2;}
58354
58355fi
58356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58357  conftest.$ac_objext conftest.beam conftest.$ac_ext
58358fi
58359
58360ac_ext=c
58361ac_cpp='$CPP $CPPFLAGS'
58362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58364ac_compiler_gnu=$ac_cv_c_compiler_gnu
58365
58366
58367
58368#
58369
58370
58371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for available integer ranges" >&5
58372$as_echo_n "checking for available integer ranges... " >&6; }
58373ac_ext=c
58374ac_cpp='$CPP $CPPFLAGS'
58375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58377ac_compiler_gnu=$ac_cv_c_compiler_gnu
58378
58379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58380/* end confdefs.h.  */
58381
58382
58383#ifdef F77_NAME_UPPER
58384#define cisize_ CISIZE
58385#define isize_ ISIZE
58386#elif defined(F77_NAME_LOWER) || defined(F77_NAME_MIXED)
58387#define cisize_ cisize
58388#define isize_ isize
58389#endif
58390int cisize_(char *,char*);
58391int cisize_(char *i1p, char *i2p)
58392{
58393    int isize_val=0;
58394    isize_val = (int)(i2p - i1p);
58395    return isize_val;
58396}
58397
58398
58399_ACEOF
58400if ac_fn_c_try_compile "$LINENO"; then :
58401
58402
58403{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
58404  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
58405  ac_status=$?
58406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58407  test $ac_status = 0; }
58408    pac_ccompile_ok=yes
58409
58410else
58411
58412    pac_ccompile_ok=no
58413
58414fi
58415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58416ac_ext=c
58417ac_cpp='$CPP $CPPFLAGS'
58418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58420ac_compiler_gnu=$ac_cv_c_compiler_gnu
58421
58422if test "$pac_ccompile_ok" = "yes" ; then
58423    saved_LIBS="$LIBS"
58424    LIBS="pac_conftest.$OBJEXT $LIBS"
58425    saved_IFS=$IFS
58426    IFS=:
58427    ac_ext=${ac_fc_srcext-f}
58428ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
58429ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
58430ac_compiler_gnu=$ac_cv_fc_compiler_gnu
58431
58432    pac_flag=""
58433    for rangekind in $pac_validKinds ; do
58434        kind="`echo $rangekind | sed -e 's/.*,//'`"
58435        range="`echo $rangekind | sed -e 's/,.*//'`"
58436        cat > conftest.$ac_ext <<_ACEOF
58437
58438
58439                program main
58440                integer (kind=$kind) a(2)
58441                integer cisize
58442                open(8, file="pac_fconftest.out", form="formatted")
58443                write(8,*) $range, ",", $kind, ",", cisize( a(1), a(2) )
58444                close(8)
58445                end
58446
58447
58448_ACEOF
58449        IFS=$saved_IFS
58450        rm -f pac_fconftest.out
58451        if test "$cross_compiling" = yes; then :
58452
58453            pac_flag="$CROSS_F90_INTEGER_MODEL_MAP"
58454
58455else
58456  if ac_fn_fc_try_run "$LINENO"; then :
58457
58458            if test -s pac_fconftest.out ; then
58459                sizes="`sed -e 's/  */ /g' pac_fconftest.out`"
58460                pac_flag="$pac_flag { $sizes },"
58461            else
58462                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No output from test program!" >&5
58463$as_echo "$as_me: WARNING: No output from test program!" >&2;}
58464            fi
58465            rm -f pac_fconftest.out
58466
58467else
58468
58469            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran program fails to build or run!" >&5
58470$as_echo "$as_me: WARNING: Fortran program fails to build or run!" >&2;}
58471
58472fi
58473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
58474  conftest.$ac_objext conftest.beam
58475fi
58476
58477        IFS=:
58478    done
58479    IFS=$saved_IFS
58480    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_flag" >&5
58481$as_echo "$pac_flag" >&6; }
58482    FC_INTEGER_MODEL_MAP=$pac_flag
58483    ac_ext=c
58484ac_cpp='$CPP $CPPFLAGS'
58485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
58486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
58487ac_compiler_gnu=$ac_cv_c_compiler_gnu
58488
58489    LIBS="$saved_LIBS"
58490    rm -f pac_conftest.$OBJEXT
58491fi
58492
58493
58494
58495ac_config_files="$ac_config_files src/binding/fortran/use_mpi/mpif90model.h"
58496
58497
58498
58499fi
58500## end expansion of PAC_SUBCFG_BODY_src_binding_fortran_use_mpi
58501
58502## begin expansion of PAC_SUBCFG_BODY_src_pm_gforker
58503
58504
58505# the pm_names variable is set by the top level configure
58506build_gforker=no
58507for pm_name in $pm_names ; do
58508    if test "X$pm_name" = "Xgforker" ; then
58509        build_gforker=yes
58510    fi
58511done
58512 if test "X$build_gforker" = "Xyes"; then
58513  BUILD_PM_GFORKER_TRUE=
58514  BUILD_PM_GFORKER_FALSE='#'
58515else
58516  BUILD_PM_GFORKER_TRUE='#'
58517  BUILD_PM_GFORKER_FALSE=
58518fi
58519
58520
58521# first_pm_name is set by the top level configure
58522 if test "X$first_pm_name" = "Xgforker"; then
58523  PRIMARY_PM_GFORKER_TRUE=
58524  PRIMARY_PM_GFORKER_FALSE='#'
58525else
58526  PRIMARY_PM_GFORKER_TRUE='#'
58527  PRIMARY_PM_GFORKER_FALSE=
58528fi
58529
58530
58531if test -z "$BUILD_PM_GFORKER_TRUE"; then :
58532
58533{ $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR src/pm/gforker" >&5
58534$as_echo "$as_me: RUNNING CONFIGURE FOR src/pm/gforker" >&6;}
58535
58536# Check that we are using the simple PMI implementation
58537# (Selecting multiple PMs may require incompatible PMI implementations
58538# (e.g., gforker and SMPD).
58539if test -z "$PM_REQUIRES_PMI" ; then
58540    PM_REQUIRES_PMI=simple
58541elif test "$PM_REQUIRES_PMI" != "simple" ; then
58542    echo "gforker requires the simple PMI implementation; $PM_REQUIRES_PMI has already been selected"
58543    exit 1
58544fi
58545
58546# tell src/pm/util to configure itself
58547build_pm_util=yes
58548
58549# Check whether --enable-allowport was given.
58550if test "${enable_allowport+set}" = set; then :
58551  enableval=$enable_allowport;
58552else
58553  enable_allowport=yes
58554fi
58555
58556
58557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
58558$as_echo_n "checking for library containing socketpair... " >&6; }
58559if ${ac_cv_search_socketpair+:} false; then :
58560  $as_echo_n "(cached) " >&6
58561else
58562  ac_func_search_save_LIBS=$LIBS
58563cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58564/* end confdefs.h.  */
58565
58566/* Override any GCC internal prototype to avoid an error.
58567   Use char because int might match the return type of a GCC
58568   builtin and then its argument prototype would still apply.  */
58569#ifdef __cplusplus
58570extern "C"
58571#endif
58572char socketpair ();
58573int
58574main ()
58575{
58576return socketpair ();
58577  ;
58578  return 0;
58579}
58580_ACEOF
58581for ac_lib in '' socket; do
58582  if test -z "$ac_lib"; then
58583    ac_res="none required"
58584  else
58585    ac_res=-l$ac_lib
58586    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
58587  fi
58588  if ac_fn_c_try_link "$LINENO"; then :
58589  ac_cv_search_socketpair=$ac_res
58590fi
58591rm -f core conftest.err conftest.$ac_objext \
58592    conftest$ac_exeext
58593  if ${ac_cv_search_socketpair+:} false; then :
58594  break
58595fi
58596done
58597if ${ac_cv_search_socketpair+:} false; then :
58598
58599else
58600  ac_cv_search_socketpair=no
58601fi
58602rm conftest.$ac_ext
58603LIBS=$ac_func_search_save_LIBS
58604fi
58605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
58606$as_echo "$ac_cv_search_socketpair" >&6; }
58607ac_res=$ac_cv_search_socketpair
58608if test "$ac_res" != no; then :
58609  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
58610
58611fi
58612
58613for ac_header in sys/types.h signal.h sys/ptrace.h
58614do :
58615  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
58616ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
58617if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
58618  cat >>confdefs.h <<_ACEOF
58619#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
58620_ACEOF
58621
58622fi
58623
58624done
58625
58626for ac_func in strsignal
58627do :
58628  ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
58629if test "x$ac_cv_func_strsignal" = xyes; then :
58630  cat >>confdefs.h <<_ACEOF
58631#define HAVE_STRSIGNAL 1
58632_ACEOF
58633
58634fi
58635done
58636
58637for ac_func in sigaction signal sigset
58638do :
58639  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58640ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
58641if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
58642  cat >>confdefs.h <<_ACEOF
58643#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58644_ACEOF
58645
58646fi
58647done
58648
58649sigaction_ok=no
58650if test "$ac_cv_func_sigaction" = "yes" ; then
58651    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigaction" >&5
58652$as_echo_n "checking for struct sigaction... " >&6; }
58653if ${pac_cv_struct_sigaction+:} false; then :
58654  $as_echo_n "(cached) " >&6
58655else
58656
58657    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58658/* end confdefs.h.  */
58659#include <signal.h>
58660int
58661main ()
58662{
58663
58664struct sigaction act; sigaddset( &act.sa_mask, SIGINT );
58665  ;
58666  return 0;
58667}
58668_ACEOF
58669if ac_fn_c_try_compile "$LINENO"; then :
58670  pac_cv_struct_sigaction="yes"
58671else
58672  pac_cv_struct_sigaction="no"
58673fi
58674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58675fi
58676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_sigaction" >&5
58677$as_echo "$pac_cv_struct_sigaction" >&6; }
58678    if test "$pac_cv_struct_sigaction" = "no" ; then
58679        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigaction with _POSIX_SOURCE" >&5
58680$as_echo_n "checking for struct sigaction with _POSIX_SOURCE... " >&6; }
58681if ${pac_cv_struct_sigaction_needs_posix+:} false; then :
58682  $as_echo_n "(cached) " >&6
58683else
58684
58685        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58686/* end confdefs.h.  */
58687#define _POSIX_SOURCE
58688#include <signal.h>
58689int
58690main ()
58691{
58692
58693struct sigaction act; sigaddset( &act.sa_mask, SIGINT );
58694  ;
58695  return 0;
58696}
58697_ACEOF
58698if ac_fn_c_try_compile "$LINENO"; then :
58699  pac_cv_struct_sigaction_needs_posix="yes"
58700else
58701  pac_cv_struct_sigaction_needs_posix="no"
58702fi
58703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58704fi
58705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_sigaction_needs_posix" >&5
58706$as_echo "$pac_cv_struct_sigaction_needs_posix" >&6; }
58707        if test "$pac_cv_struct_sigaction_needs_posix" = "yes" ; then
58708            sigaction_ok=yes
58709	fi
58710    else
58711        sigaction_ok=yes
58712    fi
58713fi
58714# Decide on the signal handler to use
58715if test "$ac_cv_func_sigaction" = "yes" -a "$sigaction_ok" = "yes" ; then
58716    # FIXME DJG: where should this get set?
58717    if test "$pac_struct_sigaction_needs_posix" = yes ; then
58718
58719$as_echo "#define NEEDS_POSIX_FOR_SIGACTION 1" >>confdefs.h
58720
58721    fi
58722
58723$as_echo "#define USE_SIGACTION 1" >>confdefs.h
58724
58725elif test "$ac_cv_func_signal" = "yes" ; then
58726
58727$as_echo "#define USE_SIGNAL 1" >>confdefs.h
58728
58729fi
58730if test "$enable_allowport" = "yes" ; then
58731
58732$as_echo "#define MPIEXEC_ALLOW_PORT 1" >>confdefs.h
58733
58734fi
58735
58736# some of these may be redundant with the upper level code, although the caching
58737# should detect it and make the performance impact a non-issue
58738for ac_header in string.h sys/time.h unistd.h stdlib.h sys/socket.h wait.h errno.h
58739do :
58740  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
58741ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
58742if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
58743  cat >>confdefs.h <<_ACEOF
58744#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
58745_ACEOF
58746
58747fi
58748
58749done
58750
58751
58752
58753fi
58754## end expansion of PAC_SUBCFG_BODY_src_pm_gforker
58755
58756## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_ipc_gpu
58757
58758
58759## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_ipc_gpu
58760
58761## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_ipc_xpmem
58762
58763    if test -z "$BUILD_SHM_IPC_XPMEM_TRUE"; then :
58764
58765        { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch4:shm:xpmem" >&5
58766$as_echo "$as_me: RUNNING CONFIGURE FOR ch4:shm:xpmem" >&6;}
58767
58768
58769
58770# Check whether --with-xpmem was given.
58771if test "${with_xpmem+set}" = set; then :
58772  withval=$with_xpmem;
58773fi
58774
58775
58776
58777# Check whether --with-xpmem-include was given.
58778if test "${with_xpmem_include+set}" = set; then :
58779  withval=$with_xpmem_include; case "$withval" in #(
58780  yes|no|'') :
58781    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-xpmem-include=PATH expects a valid PATH" >&5
58782$as_echo "$as_me: WARNING: --without-xpmem-include=PATH expects a valid PATH" >&2;}
58783                          with_xpmem_include="" ;; #(
58784  *) :
58785     ;;
58786esac
58787fi
58788
58789
58790# Check whether --with-xpmem-lib was given.
58791if test "${with_xpmem_lib+set}" = set; then :
58792  withval=$with_xpmem_lib; case "$withval" in #(
58793  yes|no|'') :
58794    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-xpmem-lib=PATH expects a valid PATH" >&5
58795$as_echo "$as_me: WARNING: --without-xpmem-lib=PATH expects a valid PATH" >&2;}
58796                          with_xpmem_lib="" ;; #(
58797  *) :
58798     ;;
58799esac
58800fi
58801
58802
58803    # The args have been sanitized into empty/non-empty values above.
58804    # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
58805    # taking priority
58806
58807    case "${with_xpmem}" in
58808        embedded)
58809            as_fn_error $? "embedded xpmem is requested but we do not have the embedded version" "$LINENO" 5
58810            ;;
58811        yes|no)
58812            # skip
58813            ;;
58814        *)
58815    if test -n "${with_xpmem_include}"; then :
58816
58817
58818	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_xpmem_include}\>" >/dev/null 2>&1; then :
58819  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_xpmem_include}', not appending" >&5
58820else
58821  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_xpmem_include}', appending" >&5
58822		CPPFLAGS="$CPPFLAGS -I${with_xpmem_include}"
58823
58824fi
58825
58826else
58827  if test -n "${with_xpmem}"; then :
58828
58829
58830	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_xpmem}/include\>" >/dev/null 2>&1; then :
58831  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_xpmem}/include', not appending" >&5
58832else
58833  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_xpmem}/include', appending" >&5
58834		CPPFLAGS="$CPPFLAGS -I${with_xpmem}/include"
58835
58836fi
58837
58838fi
58839fi
58840
58841    if test -n "${with_xpmem_lib}"; then :
58842
58843
58844	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_xpmem_lib}\>" >/dev/null 2>&1; then :
58845  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_xpmem_lib}', not appending" >&5
58846else
58847  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_xpmem_lib}', appending" >&5
58848		LDFLAGS="$LDFLAGS -L${with_xpmem_lib}"
58849
58850fi
58851
58852else
58853  if test -n "${with_xpmem}"; then :
58854
58855
58856	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_xpmem}/lib\>" >/dev/null 2>&1; then :
58857  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_xpmem}/lib', not appending" >&5
58858else
58859  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_xpmem}/lib', appending" >&5
58860		LDFLAGS="$LDFLAGS -L${with_xpmem}/lib"
58861
58862fi
58863
58864                  if test -d "${with_xpmem}/lib64"; then :
58865
58866
58867	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_xpmem}/lib64\>" >/dev/null 2>&1; then :
58868  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_xpmem}/lib64', not appending" >&5
58869else
58870  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_xpmem}/lib64', appending" >&5
58871		LDFLAGS="$LDFLAGS -L${with_xpmem}/lib64"
58872
58873fi
58874
58875fi
58876
58877fi
58878
58879fi
58880            ;;
58881    esac
58882
58883
58884	if test -z "${pac_save_LIBS_nesting}" ; then
58885	   pac_save_LIBS_nesting=0
58886	fi
58887	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
58888	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
58889
58890
58891    failure=no
58892    ac_fn_c_check_header_mongrel "$LINENO" "xpmem.h" "ac_cv_header_xpmem_h" "$ac_includes_default"
58893if test "x$ac_cv_header_xpmem_h" = xyes; then :
58894
58895else
58896  failure=yes
58897fi
58898
58899
58900
58901	if test -z "${pac_save_LIBS_nesting}" ; then
58902	   pac_save_LIBS_nesting=0
58903	fi
58904	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
58905	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
58906
58907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xpmem_make in -lxpmem" >&5
58908$as_echo_n "checking for xpmem_make in -lxpmem... " >&6; }
58909if ${ac_cv_lib_xpmem_xpmem_make+:} false; then :
58910  $as_echo_n "(cached) " >&6
58911else
58912  ac_check_lib_save_LIBS=$LIBS
58913LIBS="-lxpmem  $LIBS"
58914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58915/* end confdefs.h.  */
58916
58917/* Override any GCC internal prototype to avoid an error.
58918   Use char because int might match the return type of a GCC
58919   builtin and then its argument prototype would still apply.  */
58920#ifdef __cplusplus
58921extern "C"
58922#endif
58923char xpmem_make ();
58924int
58925main ()
58926{
58927return xpmem_make ();
58928  ;
58929  return 0;
58930}
58931_ACEOF
58932if ac_fn_c_try_link "$LINENO"; then :
58933  ac_cv_lib_xpmem_xpmem_make=yes
58934else
58935  ac_cv_lib_xpmem_xpmem_make=no
58936fi
58937rm -f core conftest.err conftest.$ac_objext \
58938    conftest$ac_exeext conftest.$ac_ext
58939LIBS=$ac_check_lib_save_LIBS
58940fi
58941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpmem_xpmem_make" >&5
58942$as_echo "$ac_cv_lib_xpmem_xpmem_make" >&6; }
58943if test "x$ac_cv_lib_xpmem_xpmem_make" = xyes; then :
58944  cat >>confdefs.h <<_ACEOF
58945#define HAVE_LIBXPMEM 1
58946_ACEOF
58947
58948  LIBS="-lxpmem $LIBS"
58949
58950else
58951  failure=yes
58952fi
58953
58954
58955	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
58956	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
58957	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
58958
58959    if test "$failure" = "no" ; then
58960       have_xpmem=yes
58961    else
58962       have_xpmem=no
58963    fi
58964
58965        if test "${have_xpmem}" = "yes" ; then
58966
58967
58968	if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lxpmem\>" >/dev/null 2>&1; then :
58969  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lxpmem', not appending" >&5
58970else
58971  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lxpmem', appending" >&5
58972		WRAPPER_LIBS="$WRAPPER_LIBS -lxpmem"
58973
58974fi
58975
58976
58977$as_echo "#define MPIDI_CH4_SHM_ENABLE_XPMEM 1" >>confdefs.h
58978
58979            if test "${build_ch4_shm_ipc_xpmem}" = "auto" ; then
58980
58981$as_echo "#define MPIDI_CH4_SHM_XPMEM_ALLOW_SILENT_FALLBACK 1" >>confdefs.h
58982
58983            fi
58984        elif test "$build_ch4_shm_ipc_xpmem" = "yes" ; then
58985            as_fn_error $? "'xpmem.h or libxpmem library not found.'" "$LINENO" 5
58986        fi
58987
58988	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
58989	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
58990	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
58991
58992         if test "$have_xpmem" = "yes"; then
58993  BUILD_SHM_IPC_XPMEM_TRUE=
58994  BUILD_SHM_IPC_XPMEM_FALSE='#'
58995else
58996  BUILD_SHM_IPC_XPMEM_TRUE='#'
58997  BUILD_SHM_IPC_XPMEM_FALSE=
58998fi
58999
59000
59001fi
59002## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_ipc_xpmem
59003
59004## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_stubnm
59005
59006if test -z "$BUILD_CH4_NETMOD_STUBNM_TRUE"; then :
59007
59008    { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch4:stubnm" >&5
59009$as_echo "$as_me: RUNNING CONFIGURE FOR ch4:stubnm" >&6;}
59010
59011$as_echo "#define ENABLE_COMM_OVERRIDES 1" >>confdefs.h
59012
59013
59014$as_echo "#define MPIDI_BUILD_CH4_LOCALITY_INFO 1" >>confdefs.h
59015
59016
59017fi
59018## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_stubnm
59019
59020## begin expansion of PAC_SUBCFG_BODY_src_mpid_common_genq
59021
59022## end expansion of PAC_SUBCFG_BODY_src_mpid_common_genq
59023
59024## begin expansion of PAC_SUBCFG_BODY_src_mpid_common_hcoll
59025
59026# nothing to do
59027
59028## end expansion of PAC_SUBCFG_BODY_src_mpid_common_hcoll
59029
59030## begin expansion of PAC_SUBCFG_BODY_src_pm_remshell
59031
59032
59033# the pm_names variable is set by the top level configure
59034build_remshell=no
59035for pm_name in $pm_names ; do
59036    if test "X$pm_name" = "Xremshell" ; then
59037        build_remshell=yes
59038    fi
59039done
59040 if test "X$build_remshell" = "Xyes"; then
59041  BUILD_PM_REMSHELL_TRUE=
59042  BUILD_PM_REMSHELL_FALSE='#'
59043else
59044  BUILD_PM_REMSHELL_TRUE='#'
59045  BUILD_PM_REMSHELL_FALSE=
59046fi
59047
59048
59049# first_pm_name is set by the top level configure
59050 if test "X$first_pm_name" = "Xremshell"; then
59051  PRIMARY_PM_REMSHELL_TRUE=
59052  PRIMARY_PM_REMSHELL_FALSE='#'
59053else
59054  PRIMARY_PM_REMSHELL_TRUE='#'
59055  PRIMARY_PM_REMSHELL_FALSE=
59056fi
59057
59058
59059if test -z "$BUILD_PM_REMSHELL_TRUE"; then :
59060
59061{ $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR src/pm/remshell" >&5
59062$as_echo "$as_me: RUNNING CONFIGURE FOR src/pm/remshell" >&6;}
59063
59064# Check that we are using the simple PMI implementation
59065# (Selecting multiple PMs may require incompatible PMI implementations
59066# (e.g., remshell and SMPD).
59067if test -z "$PM_REQUIRES_PMI" ; then
59068    PM_REQUIRES_PMI=simple
59069elif test "$PM_REQUIRES_PMI" != "simple" ; then
59070    echo "remshell requires the simple PMI implementation; $PM_REQUIRES_PMI has already been selected"
59071    exit 1
59072fi
59073
59074# tell src/pm/util to configure itself
59075build_pm_util=yes
59076
59077# Check whether --enable-allowport was given.
59078if test "${enable_allowport+set}" = set; then :
59079  enableval=$enable_allowport;
59080else
59081  enable_allowport=yes
59082fi
59083
59084# Check whether --enable-onsig was given.
59085if test "${enable_onsig+set}" = set; then :
59086  enableval=$enable_onsig;
59087else
59088  enable_onsig=no
59089fi
59090
59091# Check whether --enable-newsession was given.
59092if test "${enable_newsession+set}" = set; then :
59093  enableval=$enable_newsession;
59094else
59095  enable_newsession=yes
59096fi
59097
59098
59099
59100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
59101$as_echo_n "checking for library containing socketpair... " >&6; }
59102if ${ac_cv_search_socketpair+:} false; then :
59103  $as_echo_n "(cached) " >&6
59104else
59105  ac_func_search_save_LIBS=$LIBS
59106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59107/* end confdefs.h.  */
59108
59109/* Override any GCC internal prototype to avoid an error.
59110   Use char because int might match the return type of a GCC
59111   builtin and then its argument prototype would still apply.  */
59112#ifdef __cplusplus
59113extern "C"
59114#endif
59115char socketpair ();
59116int
59117main ()
59118{
59119return socketpair ();
59120  ;
59121  return 0;
59122}
59123_ACEOF
59124for ac_lib in '' socket; do
59125  if test -z "$ac_lib"; then
59126    ac_res="none required"
59127  else
59128    ac_res=-l$ac_lib
59129    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
59130  fi
59131  if ac_fn_c_try_link "$LINENO"; then :
59132  ac_cv_search_socketpair=$ac_res
59133fi
59134rm -f core conftest.err conftest.$ac_objext \
59135    conftest$ac_exeext
59136  if ${ac_cv_search_socketpair+:} false; then :
59137  break
59138fi
59139done
59140if ${ac_cv_search_socketpair+:} false; then :
59141
59142else
59143  ac_cv_search_socketpair=no
59144fi
59145rm conftest.$ac_ext
59146LIBS=$ac_func_search_save_LIBS
59147fi
59148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
59149$as_echo "$ac_cv_search_socketpair" >&6; }
59150ac_res=$ac_cv_search_socketpair
59151if test "$ac_res" != no; then :
59152  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
59153
59154fi
59155
59156for ac_header in sys/types.h signal.h sys/ptrace.h
59157do :
59158  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
59159ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
59160if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
59161  cat >>confdefs.h <<_ACEOF
59162#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
59163_ACEOF
59164
59165fi
59166
59167done
59168
59169for ac_func in strsignal
59170do :
59171  ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
59172if test "x$ac_cv_func_strsignal" = xyes; then :
59173  cat >>confdefs.h <<_ACEOF
59174#define HAVE_STRSIGNAL 1
59175_ACEOF
59176
59177fi
59178done
59179
59180for ac_func in sigaction signal sigset
59181do :
59182  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59183ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
59184if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
59185  cat >>confdefs.h <<_ACEOF
59186#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59187_ACEOF
59188
59189fi
59190done
59191
59192sigaction_ok=no
59193if test "$ac_cv_func_sigaction" = "yes" ; then
59194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigaction" >&5
59195$as_echo_n "checking for struct sigaction... " >&6; }
59196if ${pac_cv_struct_sigaction+:} false; then :
59197  $as_echo_n "(cached) " >&6
59198else
59199
59200    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59201/* end confdefs.h.  */
59202#include <signal.h>
59203int
59204main ()
59205{
59206
59207struct sigaction act; sigaddset( &act.sa_mask, SIGINT );
59208  ;
59209  return 0;
59210}
59211_ACEOF
59212if ac_fn_c_try_compile "$LINENO"; then :
59213  pac_cv_struct_sigaction="yes"
59214else
59215  pac_cv_struct_sigaction="no"
59216fi
59217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59218fi
59219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_sigaction" >&5
59220$as_echo "$pac_cv_struct_sigaction" >&6; }
59221    if test "$pac_cv_struct_sigaction" = "no" ; then
59222        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigaction with _POSIX_SOURCE" >&5
59223$as_echo_n "checking for struct sigaction with _POSIX_SOURCE... " >&6; }
59224if ${pac_cv_struct_sigaction_needs_posix+:} false; then :
59225  $as_echo_n "(cached) " >&6
59226else
59227
59228        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59229/* end confdefs.h.  */
59230#define _POSIX_SOURCE
59231#include <signal.h>
59232int
59233main ()
59234{
59235
59236struct sigaction act; sigaddset( &act.sa_mask, SIGINT );
59237  ;
59238  return 0;
59239}
59240_ACEOF
59241if ac_fn_c_try_compile "$LINENO"; then :
59242  pac_cv_struct_sigaction_needs_posix="yes"
59243else
59244  pac_cv_struct_sigaction_needs_posix="no"
59245fi
59246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59247fi
59248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_sigaction_needs_posix" >&5
59249$as_echo "$pac_cv_struct_sigaction_needs_posix" >&6; }
59250        if test "$pac_cv_struct_sigaction_needs_posix" = "yes" ; then
59251            sigaction_ok=yes
59252	fi
59253    else
59254        sigaction_ok=yes
59255    fi
59256fi
59257# Decide on the signal handler to use
59258if test "$ac_cv_func_sigaction" = "yes" -a "$sigaction_ok" = "yes" ; then
59259    # FIXME DJG: where should this get set?
59260    if test "$pac_struct_sigaction_needs_posix" = yes ; then
59261
59262$as_echo "#define NEEDS_POSIX_FOR_SIGACTION 1" >>confdefs.h
59263
59264    fi
59265
59266$as_echo "#define USE_SIGACTION 1" >>confdefs.h
59267
59268elif test "$ac_cv_func_signal" = "yes" ; then
59269
59270$as_echo "#define USE_SIGNAL 1" >>confdefs.h
59271
59272fi
59273if test "$enable_allowport" = "yes" ; then
59274
59275$as_echo "#define MPIEXEC_ALLOW_PORT 1" >>confdefs.h
59276
59277fi
59278
59279# some of these may be redundant with the upper level code, although the caching
59280# should detect it and make the performance impact a non-issue
59281for ac_header in string.h sys/time.h unistd.h stdlib.h sys/socket.h wait.h errno.h
59282do :
59283  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
59284ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
59285if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
59286  cat >>confdefs.h <<_ACEOF
59287#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
59288_ACEOF
59289
59290fi
59291
59292done
59293
59294
59295for ac_func in ptrace
59296do :
59297  ac_fn_c_check_func "$LINENO" "ptrace" "ac_cv_func_ptrace"
59298if test "x$ac_cv_func_ptrace" = xyes; then :
59299  cat >>confdefs.h <<_ACEOF
59300#define HAVE_PTRACE 1
59301_ACEOF
59302
59303fi
59304done
59305
59306# It isn't enough to find ptrace.  We also need the ptrace
59307# parameters, which some systems, such as IRIX, do not define.
59308if test "$ac_cv_func_ptrace" = yes ; then
59309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrace named parameters" >&5
59310$as_echo_n "checking for ptrace named parameters... " >&6; }
59311if ${pac_cv_has_ptrace_parms+:} false; then :
59312  $as_echo_n "(cached) " >&6
59313else
59314
59315    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59316/* end confdefs.h.  */
59317
59318#include <sys/types.h>
59319#include <sys/ptrace.h>
59320int
59321main ()
59322{
59323int i = PTRACE_CONT;
59324  ;
59325  return 0;
59326}
59327_ACEOF
59328if ac_fn_c_try_compile "$LINENO"; then :
59329  pac_cv_has_ptrace_parms=yes
59330else
59331  pac_cv_has_ptrace_parms=no
59332fi
59333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59334fi
59335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_ptrace_parms" >&5
59336$as_echo "$pac_cv_has_ptrace_parms" >&6; }
59337    if test "$pac_cv_has_ptrace_parms" = "yes" ; then
59338
59339$as_echo "#define HAVE_PTRACE_CONT /**/" >>confdefs.h
59340
59341    fi
59342fi
59343
59344if test "$enable_newsession" = "yes" ; then
59345
59346$as_echo "#define USE_NEW_SESSION 1" >>confdefs.h
59347
59348fi
59349
59350# Extract the first word of "ssh", so it can be a program name with args.
59351set dummy ssh; ac_word=$2
59352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
59353$as_echo_n "checking for $ac_word... " >&6; }
59354if ${ac_cv_path_SSH+:} false; then :
59355  $as_echo_n "(cached) " >&6
59356else
59357  case $SSH in
59358  [\\/]* | ?:[\\/]*)
59359  ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
59360  ;;
59361  *)
59362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59363for as_dir in $PATH
59364do
59365  IFS=$as_save_IFS
59366  test -z "$as_dir" && as_dir=.
59367    for ac_exec_ext in '' $ac_executable_extensions; do
59368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59369    ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
59370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59371    break 2
59372  fi
59373done
59374  done
59375IFS=$as_save_IFS
59376
59377  ;;
59378esac
59379fi
59380SSH=$ac_cv_path_SSH
59381if test -n "$SSH"; then
59382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSH" >&5
59383$as_echo "$SSH" >&6; }
59384else
59385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59386$as_echo "no" >&6; }
59387fi
59388
59389
59390# Extract the first word of "rsh", so it can be a program name with args.
59391set dummy rsh; ac_word=$2
59392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
59393$as_echo_n "checking for $ac_word... " >&6; }
59394if ${ac_cv_path_RSH+:} false; then :
59395  $as_echo_n "(cached) " >&6
59396else
59397  case $RSH in
59398  [\\/]* | ?:[\\/]*)
59399  ac_cv_path_RSH="$RSH" # Let the user override the test with a path.
59400  ;;
59401  *)
59402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
59403for as_dir in $PATH
59404do
59405  IFS=$as_save_IFS
59406  test -z "$as_dir" && as_dir=.
59407    for ac_exec_ext in '' $ac_executable_extensions; do
59408  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
59409    ac_cv_path_RSH="$as_dir/$ac_word$ac_exec_ext"
59410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
59411    break 2
59412  fi
59413done
59414  done
59415IFS=$as_save_IFS
59416
59417  ;;
59418esac
59419fi
59420RSH=$ac_cv_path_RSH
59421if test -n "$RSH"; then
59422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSH" >&5
59423$as_echo "$RSH" >&6; }
59424else
59425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59426$as_echo "no" >&6; }
59427fi
59428
59429
59430if test -z "$SSH" && test -n "$RSH" ; then
59431    remshell="$RSH"
59432else
59433    remshell="$SSH"
59434fi
59435
59436
59437cat >>confdefs.h <<_ACEOF
59438#define DEFAULT_MACHINES_PATH "$eval_datadir:."
59439_ACEOF
59440
59441
59442cat >>confdefs.h <<_ACEOF
59443#define DEFAULT_REMOTE_SHELL "$remshell"
59444_ACEOF
59445
59446
59447
59448
59449fi
59450## end expansion of PAC_SUBCFG_BODY_src_pm_remshell
59451
59452## begin expansion of PAC_SUBCFG_BODY_src_pm_util
59453
59454
59455 if test "X$build_pm_util" = "Xyes"; then
59456  BUILD_PM_UTIL_TRUE=
59457  BUILD_PM_UTIL_FALSE='#'
59458else
59459  BUILD_PM_UTIL_TRUE='#'
59460  BUILD_PM_UTIL_FALSE=
59461fi
59462
59463
59464if test -z "$BUILD_PM_UTIL_TRUE"; then :
59465
59466{ $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR src/pm/util" >&5
59467$as_echo "$as_me: RUNNING CONFIGURE FOR src/pm/util" >&6;}
59468
59469# Check whether --enable-onsig was given.
59470if test "${enable_onsig+set}" = set; then :
59471  enableval=$enable_onsig;
59472else
59473  enable_onsig=no
59474fi
59475
59476# Check whether --enable-newsession was given.
59477if test "${enable_newsession+set}" = set; then :
59478  enableval=$enable_newsession;
59479else
59480  enable_newsession=yes
59481fi
59482
59483
59484# Check for types
59485ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
59486if test "x$ac_cv_type_pid_t" = xyes; then :
59487
59488else
59489
59490cat >>confdefs.h <<_ACEOF
59491#define pid_t int
59492_ACEOF
59493
59494fi
59495
59496
59497if test "$enable_onsig" = "yes" ; then
59498    for ac_func in ptrace
59499do :
59500  ac_fn_c_check_func "$LINENO" "ptrace" "ac_cv_func_ptrace"
59501if test "x$ac_cv_func_ptrace" = xyes; then :
59502  cat >>confdefs.h <<_ACEOF
59503#define HAVE_PTRACE 1
59504_ACEOF
59505
59506fi
59507done
59508
59509    # It isn't enough to find ptrace.  We also need the ptrace
59510    # parameters, which some systems, such as IRIX, do not define.
59511    if test "$ac_cv_func_ptrace" = yes ; then
59512        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrace named parameters" >&5
59513$as_echo_n "checking for ptrace named parameters... " >&6; }
59514if ${pac_cv_has_ptrace_parms+:} false; then :
59515  $as_echo_n "(cached) " >&6
59516else
59517
59518        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59519/* end confdefs.h.  */
59520
59521#include <sys/types.h>
59522#include <sys/ptrace.h>
59523int
59524main ()
59525{
59526int i = PTRACE_CONT;
59527  ;
59528  return 0;
59529}
59530_ACEOF
59531if ac_fn_c_try_compile "$LINENO"; then :
59532  pac_cv_has_ptrace_parms=yes
59533else
59534  pac_cv_has_ptrace_parms=no
59535fi
59536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59537fi
59538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_ptrace_parms" >&5
59539$as_echo "$pac_cv_has_ptrace_parms" >&6; }
59540        if test "$pac_cv_has_ptrace_parms" = "yes" ; then
59541
59542$as_echo "#define HAVE_PTRACE_CONT /**/" >>confdefs.h
59543
59544        fi
59545    fi
59546fi
59547
59548# Check for the functions needed to create a new session.
59549# Note that getsid may not have a prototype in unistd.h unless
59550# _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED are defined, or
59551# if _XOPEN_SOURCE is defined as an integer 500 or larger (this
59552# for glibc).  The prototype should be
59553# pid_t getsid( pid_t pid );
59554#
59555# Cygwin has setsid but not getsid
59556for ac_func in setsid isatty getsid
59557do :
59558  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59559ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
59560if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
59561  cat >>confdefs.h <<_ACEOF
59562#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59563_ACEOF
59564
59565fi
59566done
59567
59568# See if we need to define getsid (in the case that the above XOPEN
59569# definitions have not been made.
59570
59571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getsid needs a declaration" >&5
59572$as_echo_n "checking whether getsid needs a declaration... " >&6; }
59573if ${pac_cv_func_decl_getsid+:} false; then :
59574  $as_echo_n "(cached) " >&6
59575else
59576
59577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59578/* end confdefs.h.  */
59579#include <unistd.h>
59580void (*fptr)(void) = (void(*)(void))getsid;
59581int
59582main ()
59583{
59584
59585  ;
59586  return 0;
59587}
59588_ACEOF
59589if ac_fn_c_try_compile "$LINENO"; then :
59590  pac_cv_func_decl_getsid=no
59591else
59592  pac_cv_func_decl_getsid=yes
59593fi
59594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59595fi
59596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_getsid" >&5
59597$as_echo "$pac_cv_func_decl_getsid" >&6; }
59598if test "$pac_cv_func_decl_getsid" = "yes" ; then
59599
59600cat >>confdefs.h <<_ACEOF
59601#define NEEDS_GETSID_DECL 1
59602_ACEOF
59603
59604
59605fi
59606
59607if test "$enable_newsession" = "yes" ; then
59608
59609$as_echo "#define USE_NEW_SESSION 1" >>confdefs.h
59610
59611fi
59612
59613# Check for convenient functions for the environment
59614for ac_func in unsetenv
59615do :
59616  ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
59617if test "x$ac_cv_func_unsetenv" = xyes; then :
59618  cat >>confdefs.h <<_ACEOF
59619#define HAVE_UNSETENV 1
59620_ACEOF
59621
59622fi
59623done
59624
59625
59626# Check for cygwin1.dll in /bin.  If found, define NEEDS_BIN_IN_PATH because
59627# we need to include bin in the path when spawning programs.
59628# This is the simplest possible test; lets hope that it is sufficient
59629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin1.dll in /bin" >&5
59630$as_echo_n "checking for cygwin1.dll in /bin... " >&6; }
59631if ${pac_cv_needs_bin_in_path+:} false; then :
59632  $as_echo_n "(cached) " >&6
59633else
59634
59635pac_cv_needs_bin_in_path=no
59636if test /bin/cygwin1.dll ; then
59637    pac_cv_needs_bin_in_path=yes
59638fi
59639fi
59640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_needs_bin_in_path" >&5
59641$as_echo "$pac_cv_needs_bin_in_path" >&6; }
59642if test "$pac_cv_needs_bin_in_path" = yes ; then
59643
59644$as_echo "#define NEEDS_BIN_IN_PATH 1" >>confdefs.h
59645
59646fi
59647
59648# Look for alternatives.  Is environ in unistd.h?
59649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for environ in unistd.h" >&5
59650$as_echo_n "checking for environ in unistd.h... " >&6; }
59651if ${pac_cv_has_environ_in_unistd+:} false; then :
59652  $as_echo_n "(cached) " >&6
59653else
59654
59655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59656/* end confdefs.h.  */
59657#include <unistd.h>
59658int
59659main ()
59660{
59661char **ep = environ;
59662  ;
59663  return 0;
59664}
59665_ACEOF
59666if ac_fn_c_try_compile "$LINENO"; then :
59667  pac_cv_has_environ_in_unistd=yes
59668else
59669  pac_cv_has_environ_in_unistd=no
59670fi
59671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59672fi
59673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_environ_in_unistd" >&5
59674$as_echo "$pac_cv_has_environ_in_unistd" >&6; }
59675
59676if test "$pac_cv_has_environ_in_unistd" != "yes" ; then
59677    # Can we declare it and use it?
59678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extern environ in runtime" >&5
59679$as_echo_n "checking for extern environ in runtime... " >&6; }
59680if ${pac_cv_has_extern_environ+:} false; then :
59681  $as_echo_n "(cached) " >&6
59682else
59683
59684    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59685/* end confdefs.h.  */
59686extern char **environ;
59687int
59688main ()
59689{
59690char **ep = environ;
59691  ;
59692  return 0;
59693}
59694_ACEOF
59695if ac_fn_c_try_link "$LINENO"; then :
59696  pac_cv_has_extern_environ=yes
59697else
59698  pac_cv_has_extern_environ=no
59699fi
59700rm -f core conftest.err conftest.$ac_objext \
59701    conftest$ac_exeext conftest.$ac_ext
59702fi
59703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_extern_environ" >&5
59704$as_echo "$pac_cv_has_extern_environ" >&6; }
59705    if test "$pac_cv_has_extern_environ" = "yes" ; then
59706
59707$as_echo "#define NEEDS_ENVIRON_DECL 1" >>confdefs.h
59708
59709    fi
59710else
59711    pac_cv_has_extern_environ=yes
59712fi
59713if test "$pac_cv_has_extern_environ" = "yes" ; then
59714
59715$as_echo "#define HAVE_EXTERN_ENVIRON 1" >>confdefs.h
59716
59717fi
59718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
59719$as_echo_n "checking for library containing socketpair... " >&6; }
59720if ${ac_cv_search_socketpair+:} false; then :
59721  $as_echo_n "(cached) " >&6
59722else
59723  ac_func_search_save_LIBS=$LIBS
59724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59725/* end confdefs.h.  */
59726
59727/* Override any GCC internal prototype to avoid an error.
59728   Use char because int might match the return type of a GCC
59729   builtin and then its argument prototype would still apply.  */
59730#ifdef __cplusplus
59731extern "C"
59732#endif
59733char socketpair ();
59734int
59735main ()
59736{
59737return socketpair ();
59738  ;
59739  return 0;
59740}
59741_ACEOF
59742for ac_lib in '' socket; do
59743  if test -z "$ac_lib"; then
59744    ac_res="none required"
59745  else
59746    ac_res=-l$ac_lib
59747    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
59748  fi
59749  if ac_fn_c_try_link "$LINENO"; then :
59750  ac_cv_search_socketpair=$ac_res
59751fi
59752rm -f core conftest.err conftest.$ac_objext \
59753    conftest$ac_exeext
59754  if ${ac_cv_search_socketpair+:} false; then :
59755  break
59756fi
59757done
59758if ${ac_cv_search_socketpair+:} false; then :
59759
59760else
59761  ac_cv_search_socketpair=no
59762fi
59763rm conftest.$ac_ext
59764LIBS=$ac_func_search_save_LIBS
59765fi
59766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
59767$as_echo "$ac_cv_search_socketpair" >&6; }
59768ac_res=$ac_cv_search_socketpair
59769if test "$ac_res" != no; then :
59770  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
59771
59772fi
59773
59774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
59775$as_echo_n "checking for ANSI C header files... " >&6; }
59776if ${ac_cv_header_stdc+:} false; then :
59777  $as_echo_n "(cached) " >&6
59778else
59779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59780/* end confdefs.h.  */
59781#include <stdlib.h>
59782#include <stdarg.h>
59783#include <string.h>
59784#include <float.h>
59785
59786int
59787main ()
59788{
59789
59790  ;
59791  return 0;
59792}
59793_ACEOF
59794if ac_fn_c_try_compile "$LINENO"; then :
59795  ac_cv_header_stdc=yes
59796else
59797  ac_cv_header_stdc=no
59798fi
59799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59800
59801if test $ac_cv_header_stdc = yes; then
59802  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
59803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59804/* end confdefs.h.  */
59805#include <string.h>
59806
59807_ACEOF
59808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59809  $EGREP "memchr" >/dev/null 2>&1; then :
59810
59811else
59812  ac_cv_header_stdc=no
59813fi
59814rm -f conftest*
59815
59816fi
59817
59818if test $ac_cv_header_stdc = yes; then
59819  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
59820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59821/* end confdefs.h.  */
59822#include <stdlib.h>
59823
59824_ACEOF
59825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59826  $EGREP "free" >/dev/null 2>&1; then :
59827
59828else
59829  ac_cv_header_stdc=no
59830fi
59831rm -f conftest*
59832
59833fi
59834
59835if test $ac_cv_header_stdc = yes; then
59836  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
59837  if test "$cross_compiling" = yes; then :
59838  :
59839else
59840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59841/* end confdefs.h.  */
59842#include <ctype.h>
59843#include <stdlib.h>
59844#if ((' ' & 0x0FF) == 0x020)
59845# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
59846# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
59847#else
59848# define ISLOWER(c) \
59849		   (('a' <= (c) && (c) <= 'i') \
59850		     || ('j' <= (c) && (c) <= 'r') \
59851		     || ('s' <= (c) && (c) <= 'z'))
59852# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
59853#endif
59854
59855#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
59856int
59857main ()
59858{
59859  int i;
59860  for (i = 0; i < 256; i++)
59861    if (XOR (islower (i), ISLOWER (i))
59862	|| toupper (i) != TOUPPER (i))
59863      return 2;
59864  return 0;
59865}
59866_ACEOF
59867if ac_fn_c_try_run "$LINENO"; then :
59868
59869else
59870  ac_cv_header_stdc=no
59871fi
59872rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
59873  conftest.$ac_objext conftest.beam conftest.$ac_ext
59874fi
59875
59876fi
59877fi
59878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
59879$as_echo "$ac_cv_header_stdc" >&6; }
59880if test $ac_cv_header_stdc = yes; then
59881
59882$as_echo "#define STDC_HEADERS 1" >>confdefs.h
59883
59884fi
59885
59886for ac_header in sys/types.h signal.h sys/ptrace.h sys/uio.h unistd.h
59887do :
59888  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
59889ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
59890if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
59891  cat >>confdefs.h <<_ACEOF
59892#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
59893_ACEOF
59894
59895fi
59896
59897done
59898
59899if test "$ac_cv_header_sys_uio_h" = "yes" ; then
59900    # Test for iovec defined
59901    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct iovec is defined in sys/uio.h" >&5
59902$as_echo_n "checking whether struct iovec is defined in sys/uio.h... " >&6; }
59903if ${pac_cv_has_struct_iovec+:} false; then :
59904  $as_echo_n "(cached) " >&6
59905else
59906
59907    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59908/* end confdefs.h.  */
59909#include <sys/types.h>
59910#include <sys/uio.h>
59911int
59912main ()
59913{
59914struct iovec v
59915  ;
59916  return 0;
59917}
59918_ACEOF
59919if ac_fn_c_try_compile "$LINENO"; then :
59920  pac_cv_has_struct_iovec=yes
59921else
59922  pac_cv_has_struct_iovec=no
59923fi
59924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59925fi
59926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_struct_iovec" >&5
59927$as_echo "$pac_cv_has_struct_iovec" >&6; }
59928    if test "$pac_cv_has_struct_iovec" = "yes" ; then
59929
59930$as_echo "#define HAVE_IOVEC_DEFINITION 1" >>confdefs.h
59931
59932    fi
59933fi
59934for ac_func in strsignal
59935do :
59936  ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
59937if test "x$ac_cv_func_strsignal" = xyes; then :
59938  cat >>confdefs.h <<_ACEOF
59939#define HAVE_STRSIGNAL 1
59940_ACEOF
59941
59942fi
59943done
59944
59945if test "$ac_cv_func_strsignal" = "yes" ; then
59946
59947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strsignal needs a declaration" >&5
59948$as_echo_n "checking whether strsignal needs a declaration... " >&6; }
59949if ${pac_cv_func_decl_strsignal+:} false; then :
59950  $as_echo_n "(cached) " >&6
59951else
59952
59953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
59954/* end confdefs.h.  */
59955#include <string.h>
59956void (*fptr)(void) = (void(*)(void))strsignal;
59957int
59958main ()
59959{
59960
59961  ;
59962  return 0;
59963}
59964_ACEOF
59965if ac_fn_c_try_compile "$LINENO"; then :
59966  pac_cv_func_decl_strsignal=no
59967else
59968  pac_cv_func_decl_strsignal=yes
59969fi
59970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59971fi
59972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_strsignal" >&5
59973$as_echo "$pac_cv_func_decl_strsignal" >&6; }
59974if test "$pac_cv_func_decl_strsignal" = "yes" ; then
59975
59976cat >>confdefs.h <<_ACEOF
59977#define NEEDS_STRSIGNAL_DECL 1
59978_ACEOF
59979
59980
59981fi
59982
59983fi
59984for ac_func in sigaction signal sigset
59985do :
59986  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59987ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
59988if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
59989  cat >>confdefs.h <<_ACEOF
59990#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59991_ACEOF
59992
59993fi
59994done
59995
59996sigaction_ok=no
59997if test "$ac_cv_func_sigaction" = "yes" ; then
59998    # Make sure that the fields that we need in sigaction are defined
59999    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigaction and sa_handler" >&5
60000$as_echo_n "checking for struct sigaction and sa_handler... " >&6; }
60001if ${pac_cv_struct_sigaction_with_sa_handler+:} false; then :
60002  $as_echo_n "(cached) " >&6
60003else
60004
60005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60006/* end confdefs.h.  */
60007#include <signal.h>
60008int
60009main ()
60010{
60011
60012struct sigaction act; sigaddset( &act.sa_mask, SIGINT );
60013act.sa_handler = SIG_IGN;
60014  ;
60015  return 0;
60016}
60017_ACEOF
60018if ac_fn_c_try_compile "$LINENO"; then :
60019  pac_cv_struct_sigaction_with_sa_handler=yes
60020else
60021  pac_cv_struct_sigaction_with_sa_handler=no
60022fi
60023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60024fi
60025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_sigaction_with_sa_handler" >&5
60026$as_echo "$pac_cv_struct_sigaction_with_sa_handler" >&6; }
60027    if test "$pac_cv_struct_sigaction_with_sa_handler" = "no" ; then
60028        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigaction and sa_handler with _POSIX_SOURCE" >&5
60029$as_echo_n "checking for struct sigaction and sa_handler with _POSIX_SOURCE... " >&6; }
60030if ${pac_cv_struct_sigaction_with_sa_handler_needs_posix+:} false; then :
60031  $as_echo_n "(cached) " >&6
60032else
60033
60034        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60035/* end confdefs.h.  */
60036#define _POSIX_SOURCE
60037#include <signal.h>
60038int
60039main ()
60040{
60041
60042struct sigaction act; sigaddset( &act.sa_mask, SIGINT );
60043act.sa_handler = SIG_IGN;
60044  ;
60045  return 0;
60046}
60047_ACEOF
60048if ac_fn_c_try_compile "$LINENO"; then :
60049  pac_cv_struct_sigaction_with_sa_handler_needs_posix=yes
60050else
60051  pac_cv_struct_sigaction_with_sa_handler_needs_posix=no
60052fi
60053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60054fi
60055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_sigaction_with_sa_handler_needs_posix" >&5
60056$as_echo "$pac_cv_struct_sigaction_with_sa_handler_needs_posix" >&6; }
60057        if test "$pac_cv_struct_sigaction_with_sa_handler_needs_posix" = "yes" ; then
60058            sigaction_ok=yes
60059	fi
60060    else
60061        sigaction_ok=yes
60062    fi
60063fi
60064# Decide on the signal handler to use
60065if test "$ac_cv_func_sigaction" = "yes" -a "$sigaction_ok" = "yes" ; then
60066    if test "$pac_cv_struct_sigaction_with_sa_handler_needs_posix" = yes ; then
60067
60068$as_echo "#define NEEDS_POSIX_FOR_SIGACTION 1" >>confdefs.h
60069
60070    fi
60071
60072$as_echo "#define USE_SIGACTION /**/" >>confdefs.h
60073
60074elif test "$ac_cv_func_signal" = "yes" ; then
60075
60076$as_echo "#define USE_SIGNAL /**/" >>confdefs.h
60077
60078fi
60079# Check for needed declarations.  This must be after any step that might
60080# change the compilers behavior, such as the _POSIX_SOURCE test above
60081# FIXME: need to include the test, at least for any file that
60082# might set _POSIX_SOURCE
60083# putenv() sets environment variable
60084for ac_func in putenv
60085do :
60086  ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
60087if test "x$ac_cv_func_putenv" = xyes; then :
60088  cat >>confdefs.h <<_ACEOF
60089#define HAVE_PUTENV 1
60090_ACEOF
60091
60092fi
60093done
60094
60095if test "$ac_cv_func_putenv" = "yes" ; then
60096
60097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv needs a declaration" >&5
60098$as_echo_n "checking whether putenv needs a declaration... " >&6; }
60099if ${pac_cv_func_decl_putenv+:} false; then :
60100  $as_echo_n "(cached) " >&6
60101else
60102
60103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60104/* end confdefs.h.  */
60105#include <stdlib.h>
60106void (*fptr)(void) = (void(*)(void))putenv;
60107int
60108main ()
60109{
60110
60111  ;
60112  return 0;
60113}
60114_ACEOF
60115if ac_fn_c_try_compile "$LINENO"; then :
60116  pac_cv_func_decl_putenv=no
60117else
60118  pac_cv_func_decl_putenv=yes
60119fi
60120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60121fi
60122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_putenv" >&5
60123$as_echo "$pac_cv_func_decl_putenv" >&6; }
60124if test "$pac_cv_func_decl_putenv" = "yes" ; then
60125
60126cat >>confdefs.h <<_ACEOF
60127#define NEEDS_PUTENV_DECL 1
60128_ACEOF
60129
60130
60131fi
60132
60133fi
60134# gethostname() returns host name
60135for ac_func in gethostname
60136do :
60137  ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
60138if test "x$ac_cv_func_gethostname" = xyes; then :
60139  cat >>confdefs.h <<_ACEOF
60140#define HAVE_GETHOSTNAME 1
60141_ACEOF
60142
60143fi
60144done
60145
60146if test "$ac_cv_func_gethostname" = "yes" ; then
60147    # Do we need to declare gethostname?
60148
60149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostname needs a declaration" >&5
60150$as_echo_n "checking whether gethostname needs a declaration... " >&6; }
60151if ${pac_cv_func_decl_gethostname+:} false; then :
60152  $as_echo_n "(cached) " >&6
60153else
60154
60155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60156/* end confdefs.h.  */
60157#include <unistd.h>
60158void (*fptr)(void) = (void(*)(void))gethostname;
60159int
60160main ()
60161{
60162
60163  ;
60164  return 0;
60165}
60166_ACEOF
60167if ac_fn_c_try_compile "$LINENO"; then :
60168  pac_cv_func_decl_gethostname=no
60169else
60170  pac_cv_func_decl_gethostname=yes
60171fi
60172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60173fi
60174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_gethostname" >&5
60175$as_echo "$pac_cv_func_decl_gethostname" >&6; }
60176if test "$pac_cv_func_decl_gethostname" = "yes" ; then
60177
60178cat >>confdefs.h <<_ACEOF
60179#define NEEDS_GETHOSTNAME_DECL 1
60180_ACEOF
60181
60182
60183fi
60184
60185fi
60186
60187
60188#
60189# Check for select and working FD_ZERO
60190for ac_func in select
60191do :
60192  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
60193if test "x$ac_cv_func_select" = xyes; then :
60194  cat >>confdefs.h <<_ACEOF
60195#define HAVE_SELECT 1
60196_ACEOF
60197
60198fi
60199done
60200
60201for ac_header in sys/select.h
60202do :
60203  ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
60204if test "x$ac_cv_header_sys_select_h" = xyes; then :
60205  cat >>confdefs.h <<_ACEOF
60206#define HAVE_SYS_SELECT_H 1
60207_ACEOF
60208
60209fi
60210
60211done
60212
60213if test "$ac_cv_func_select" != yes ; then
60214    as_fn_error $? "select is required for the process manager utilities" "$LINENO" 5
60215else
60216    # Check that FD_ZERO works.  Under the Darwin xlc (version 6) compiler,
60217    # FD_ZERO gets turned into a referece to __builtin_bzero, which is not
60218    # in the xlc libraries.  This is apparently due to xlc pretending that it
60219    # is GCC within the system header files (the same test that must
60220    # succeed within the system header files to cause the declaration to
60221    # be __builtin_bzero fails outside of the header file).
60222    # (sys/select.h is POSIX)
60223    if test "$ac_cv_header_sys_select_h" = yes ; then
60224        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FD_ZERO works" >&5
60225$as_echo_n "checking whether FD_ZERO works... " >&6; }
60226if ${pac_cv_fdzero_works+:} false; then :
60227  $as_echo_n "(cached) " >&6
60228else
60229
60230        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60231/* end confdefs.h.  */
60232#include <sys/select.h>
60233int
60234main ()
60235{
60236fd_set v; FD_ZERO(&v)
60237  ;
60238  return 0;
60239}
60240_ACEOF
60241if ac_fn_c_try_link "$LINENO"; then :
60242  pac_cv_fdzero_works=yes
60243else
60244  pac_cv_fdzero_works=no
60245fi
60246rm -f core conftest.err conftest.$ac_objext \
60247    conftest$ac_exeext conftest.$ac_ext
60248fi
60249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_fdzero_works" >&5
60250$as_echo "$pac_cv_fdzero_works" >&6; }
60251        if test "$pac_cv_fdzero_works" != yes ; then
60252            as_fn_error $? "Programs with FD_ZERO cannot be linked (check your system includes)" "$LINENO" 5
60253	fi
60254    fi
60255fi
60256#
60257# Check for the Linux functions for controlling processor affinity.
60258#
60259# LINUX: sched_setaffinity
60260# AIX:   bindprocessor
60261# OSX (Leopard): thread_policy_set
60262for ac_func in sched_setaffinity sched_getaffinity bindprocessor thread_policy_set
60263do :
60264  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60265ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
60266if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
60267  cat >>confdefs.h <<_ACEOF
60268#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60269_ACEOF
60270
60271fi
60272done
60273
60274if test "$ac_cv_func_sched_setaffinity" = "yes" ; then
60275    # Test for the cpu process set type
60276    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cpu_set_t available" >&5
60277$as_echo_n "checking whether cpu_set_t available... " >&6; }
60278if ${pac_cv_have_cpu_set_t+:} false; then :
60279  $as_echo_n "(cached) " >&6
60280else
60281
60282    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60283/* end confdefs.h.  */
60284
60285#include <sched.h>
60286int
60287main ()
60288{
60289 cpu_set_t t;
60290  ;
60291  return 0;
60292}
60293_ACEOF
60294if ac_fn_c_try_compile "$LINENO"; then :
60295  pac_cv_have_cpu_set_t=yes
60296else
60297  pac_cv_have_cpu_set_t=no
60298fi
60299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60300fi
60301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_cpu_set_t" >&5
60302$as_echo "$pac_cv_have_cpu_set_t" >&6; }
60303    if test "$pac_cv_have_cpu_set_t" = yes ; then
60304
60305$as_echo "#define HAVE_CPU_SET_T 1" >>confdefs.h
60306
60307
60308	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the CPU_SET and CPU_ZERO macros are defined" >&5
60309$as_echo_n "checking whether the CPU_SET and CPU_ZERO macros are defined... " >&6; }
60310if ${pac_cv_cpu_set_defined+:} false; then :
60311  $as_echo_n "(cached) " >&6
60312else
60313
60314        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60315/* end confdefs.h.  */
60316
60317#include <sched.h>
60318int
60319main ()
60320{
60321 cpu_set_t t; CPU_ZERO(&t); CPU_SET(1,&t);
60322  ;
60323  return 0;
60324}
60325_ACEOF
60326if ac_fn_c_try_link "$LINENO"; then :
60327  pac_cv_cpu_set_defined=yes
60328else
60329  pac_cv_cpu_set_defined=no
60330fi
60331rm -f core conftest.err conftest.$ac_objext \
60332    conftest$ac_exeext conftest.$ac_ext
60333fi
60334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_cpu_set_defined" >&5
60335$as_echo "$pac_cv_cpu_set_defined" >&6; }
60336	if test "$pac_cv_cpu_set_defined" = "yes" ; then
60337
60338$as_echo "#define HAVE_CPU_SET_MACROS 1" >>confdefs.h
60339
60340        fi
60341	# FIXME: Some versions of sched_setaffinity return ENOSYS (!),
60342	# so we should test for the unfriendly and useless behavior
60343    fi
60344fi
60345if test "$ac_cv_func_thread_policy_set" = yes ; then
60346    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether thread affinity macros defined" >&5
60347$as_echo_n "checking whether thread affinity macros defined... " >&6; }
60348if ${pac_cv_have_thread_affinity_policy+:} false; then :
60349  $as_echo_n "(cached) " >&6
60350else
60351
60352    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60353/* end confdefs.h.  */
60354#include <mach/thread_policy.h>
60355int
60356main ()
60357{
60358
60359#if !defined(THREAD_AFFINITY_POLICY) || !defined(THREAD_AFFINITY_TAG_NULL)
60360    :'thread macros not defined
60361
60362  ;
60363  return 0;
60364}
60365_ACEOF
60366if ac_fn_c_try_compile "$LINENO"; then :
60367  pac_cv_have_thread_affinity_policy=yes
60368else
60369  pac_cv_have_thread_affinity_policy=no
60370fi
60371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60372fi
60373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_thread_affinity_policy" >&5
60374$as_echo "$pac_cv_have_thread_affinity_policy" >&6; }
60375    if test "$pac_cv_have_thread_affinity_policy" = yes ; then
60376
60377$as_echo "#define HAVE_OSX_THREAD_AFFINITY 1" >>confdefs.h
60378
60379    fi
60380fi
60381
60382for ac_header in string.h sys/time.h time.h stdlib.h sys/socket.h wait.h errno.h
60383do :
60384  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
60385ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
60386if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
60387  cat >>confdefs.h <<_ACEOF
60388#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
60389_ACEOF
60390
60391fi
60392
60393done
60394
60395for ac_func in time
60396do :
60397  ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time"
60398if test "x$ac_cv_func_time" = xyes; then :
60399  cat >>confdefs.h <<_ACEOF
60400#define HAVE_TIME 1
60401_ACEOF
60402
60403fi
60404done
60405
60406# Check for socklen_t .
60407# (note the conditional inclusion of sys/socket.h)
60408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t is defined (in sys/socket.h if present)" >&5
60409$as_echo_n "checking whether socklen_t is defined (in sys/socket.h if present)... " >&6; }
60410if ${pac_cv_have_socklen_t+:} false; then :
60411  $as_echo_n "(cached) " >&6
60412else
60413
60414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60415/* end confdefs.h.  */
60416
60417#include <sys/types.h>
60418#ifdef HAVE_SYS_SOCKET_H
60419#include <sys/socket.h>
60420#endif
60421typedef struct { double a; int b; } socklen_t;
60422int
60423main ()
60424{
60425socklen_t a;a.a=1.0;
60426  ;
60427  return 0;
60428}
60429_ACEOF
60430if ac_fn_c_try_compile "$LINENO"; then :
60431  pac_cv_have_socklen_t=no
60432else
60433  pac_cv_have_socklen_t=yes
60434fi
60435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60436fi
60437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_socklen_t" >&5
60438$as_echo "$pac_cv_have_socklen_t" >&6; }
60439if test "$pac_cv_have_socklen_t" = yes ; then
60440
60441$as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
60442
60443fi
60444
60445
60446fi
60447## end expansion of PAC_SUBCFG_BODY_src_pm_util
60448
60449## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_posix
60450
60451if test -z "$BUILD_SHM_POSIX_TRUE"; then :
60452
60453    { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch4:shm:posix" >&5
60454$as_echo "$as_me: RUNNING CONFIGURE FOR ch4:shm:posix" >&6;}
60455
60456fi
60457## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_posix
60458
60459## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_posix_eager_iqueue
60460
60461
60462## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_posix_eager_iqueue
60463
60464## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_posix_eager_stub
60465
60466
60467## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_shm_posix_eager_stub
60468
60469## begin expansion of PAC_SUBCFG_BODY_src_mpid_common_bc
60470
60471## end expansion of PAC_SUBCFG_BODY_src_mpid_common_bc
60472
60473## begin expansion of PAC_SUBCFG_BODY_src_pmi
60474
60475
60476# common ARG_ENABLE, shared by "simple" and "pmi2"
60477# Check whether --enable-pmiport was given.
60478if test "${enable_pmiport+set}" = set; then :
60479  enableval=$enable_pmiport;
60480else
60481  enable_pmiport=default
60482fi
60483
60484
60485
60486## end expansion of PAC_SUBCFG_BODY_src_pmi
60487
60488## begin expansion of PAC_SUBCFG_BODY_src_pmi_slurm
60489
60490
60491 if test "x$pmi_name" = "xslurm"; then
60492  BUILD_PMI_SLURM_TRUE=
60493  BUILD_PMI_SLURM_FALSE='#'
60494else
60495  BUILD_PMI_SLURM_TRUE='#'
60496  BUILD_PMI_SLURM_FALSE=
60497fi
60498
60499if test -z "$BUILD_PMI_SLURM_TRUE"; then :
60500
60501
60502# sets CPPFLAGS and LDFLAGS
60503
60504
60505# Check whether --with-slurm was given.
60506if test "${with_slurm+set}" = set; then :
60507  withval=$with_slurm;
60508fi
60509
60510
60511
60512# Check whether --with-slurm-include was given.
60513if test "${with_slurm_include+set}" = set; then :
60514  withval=$with_slurm_include; case "$withval" in #(
60515  yes|no|'') :
60516    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-slurm-include=PATH expects a valid PATH" >&5
60517$as_echo "$as_me: WARNING: --without-slurm-include=PATH expects a valid PATH" >&2;}
60518                          with_slurm_include="" ;; #(
60519  *) :
60520     ;;
60521esac
60522fi
60523
60524
60525# Check whether --with-slurm-lib was given.
60526if test "${with_slurm_lib+set}" = set; then :
60527  withval=$with_slurm_lib; case "$withval" in #(
60528  yes|no|'') :
60529    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-slurm-lib=PATH expects a valid PATH" >&5
60530$as_echo "$as_me: WARNING: --without-slurm-lib=PATH expects a valid PATH" >&2;}
60531                          with_slurm_lib="" ;; #(
60532  *) :
60533     ;;
60534esac
60535fi
60536
60537
60538    # The args have been sanitized into empty/non-empty values above.
60539    # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
60540    # taking priority
60541
60542    case "${with_slurm}" in
60543        embedded)
60544            as_fn_error $? "embedded slurm is requested but we do not have the embedded version" "$LINENO" 5
60545            ;;
60546        yes|no)
60547            # skip
60548            ;;
60549        *)
60550    if test -n "${with_slurm_include}"; then :
60551
60552
60553	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_slurm_include}\>" >/dev/null 2>&1; then :
60554  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_slurm_include}', not appending" >&5
60555else
60556  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_slurm_include}', appending" >&5
60557		CPPFLAGS="$CPPFLAGS -I${with_slurm_include}"
60558
60559fi
60560
60561else
60562  if test -n "${with_slurm}"; then :
60563
60564
60565	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_slurm}/include\>" >/dev/null 2>&1; then :
60566  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_slurm}/include', not appending" >&5
60567else
60568  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_slurm}/include', appending" >&5
60569		CPPFLAGS="$CPPFLAGS -I${with_slurm}/include"
60570
60571fi
60572
60573fi
60574fi
60575
60576    if test -n "${with_slurm_lib}"; then :
60577
60578
60579	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_slurm_lib}\>" >/dev/null 2>&1; then :
60580  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_slurm_lib}', not appending" >&5
60581else
60582  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_slurm_lib}', appending" >&5
60583		LDFLAGS="$LDFLAGS -L${with_slurm_lib}"
60584
60585fi
60586
60587else
60588  if test -n "${with_slurm}"; then :
60589
60590
60591	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_slurm}/lib\>" >/dev/null 2>&1; then :
60592  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_slurm}/lib', not appending" >&5
60593else
60594  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_slurm}/lib', appending" >&5
60595		LDFLAGS="$LDFLAGS -L${with_slurm}/lib"
60596
60597fi
60598
60599                  if test -d "${with_slurm}/lib64"; then :
60600
60601
60602	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_slurm}/lib64\>" >/dev/null 2>&1; then :
60603  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_slurm}/lib64', not appending" >&5
60604else
60605  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_slurm}/lib64', appending" >&5
60606		LDFLAGS="$LDFLAGS -L${with_slurm}/lib64"
60607
60608fi
60609
60610fi
60611
60612fi
60613
60614fi
60615            ;;
60616    esac
60617
60618
60619ac_fn_c_check_header_mongrel "$LINENO" "slurm/pmi.h" "ac_cv_header_slurm_pmi_h" "$ac_includes_default"
60620if test "x$ac_cv_header_slurm_pmi_h" = xyes; then :
60621
60622else
60623  as_fn_error $? "could not find slurm/pmi.h.  Configure aborted" "$LINENO" 5
60624fi
60625
60626
60627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMI_Init in -lpmi" >&5
60628$as_echo_n "checking for PMI_Init in -lpmi... " >&6; }
60629if ${ac_cv_lib_pmi_PMI_Init+:} false; then :
60630  $as_echo_n "(cached) " >&6
60631else
60632  ac_check_lib_save_LIBS=$LIBS
60633LIBS="-lpmi  $LIBS"
60634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60635/* end confdefs.h.  */
60636
60637/* Override any GCC internal prototype to avoid an error.
60638   Use char because int might match the return type of a GCC
60639   builtin and then its argument prototype would still apply.  */
60640#ifdef __cplusplus
60641extern "C"
60642#endif
60643char PMI_Init ();
60644int
60645main ()
60646{
60647return PMI_Init ();
60648  ;
60649  return 0;
60650}
60651_ACEOF
60652if ac_fn_c_try_link "$LINENO"; then :
60653  ac_cv_lib_pmi_PMI_Init=yes
60654else
60655  ac_cv_lib_pmi_PMI_Init=no
60656fi
60657rm -f core conftest.err conftest.$ac_objext \
60658    conftest$ac_exeext conftest.$ac_ext
60659LIBS=$ac_check_lib_save_LIBS
60660fi
60661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pmi_PMI_Init" >&5
60662$as_echo "$ac_cv_lib_pmi_PMI_Init" >&6; }
60663if test "x$ac_cv_lib_pmi_PMI_Init" = xyes; then :
60664
60665
60666        if echo "$LIBS" | $FGREP -e "\<-lpmi\>" >/dev/null 2>&1; then :
60667  echo "LIBS(='$LIBS') contains '-lpmi', not prepending" >&5
60668else
60669  echo "LIBS(='$LIBS') does not contain '-lpmi', prepending" >&5
60670                LIBS="-lpmi $LIBS"
60671
60672fi
60673
60674
60675
60676        if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lpmi\>" >/dev/null 2>&1; then :
60677  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lpmi', not prepending" >&5
60678else
60679  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lpmi', prepending" >&5
60680                WRAPPER_LIBS="-lpmi $WRAPPER_LIBS"
60681
60682fi
60683
60684else
60685  as_fn_error $? "could not find the Slurm libpmi.  Configure aborted" "$LINENO" 5
60686fi
60687
60688
60689
60690fi
60691
60692## end expansion of PAC_SUBCFG_BODY_src_pmi_slurm
60693
60694## begin expansion of PAC_SUBCFG_BODY_src_pmi_pmi2
60695
60696
60697 if test "x$pmi_name" = "xpmi2"; then
60698  BUILD_PMI_PMI2_TRUE=
60699  BUILD_PMI_PMI2_FALSE='#'
60700else
60701  BUILD_PMI_PMI2_TRUE='#'
60702  BUILD_PMI_PMI2_FALSE=
60703fi
60704
60705
60706if test -z "$BUILD_PMI_PMI2_TRUE"; then :
60707
60708if test "$enable_pmiport" != "no" ; then
60709   enable_pmiport=yes
60710fi
60711
60712USE_PMI2_API=yes
60713
60714# Check whether --enable-pmiport was given.
60715if test "${enable_pmiport+set}" = set; then :
60716  enableval=$enable_pmiport;
60717else
60718  enable_pmiport=default
60719fi
60720
60721for ac_header in unistd.h string.h stdlib.h sys/socket.h strings.h assert.h
60722do :
60723  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
60724ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
60725if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
60726  cat >>confdefs.h <<_ACEOF
60727#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
60728_ACEOF
60729
60730fi
60731
60732done
60733
60734for ac_func in snprintf
60735do :
60736  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
60737if test "x$ac_cv_func_snprintf" = xyes; then :
60738  cat >>confdefs.h <<_ACEOF
60739#define HAVE_SNPRINTF 1
60740_ACEOF
60741
60742fi
60743done
60744
60745if test "$ac_cv_func_snprintf" = "yes" ; then
60746
60747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf needs a declaration" >&5
60748$as_echo_n "checking whether snprintf needs a declaration... " >&6; }
60749if ${pac_cv_func_decl_snprintf+:} false; then :
60750  $as_echo_n "(cached) " >&6
60751else
60752
60753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60754/* end confdefs.h.  */
60755#include <stdio.h>
60756void (*fptr)(void) = (void(*)(void))snprintf;
60757int
60758main ()
60759{
60760
60761  ;
60762  return 0;
60763}
60764_ACEOF
60765if ac_fn_c_try_compile "$LINENO"; then :
60766  pac_cv_func_decl_snprintf=no
60767else
60768  pac_cv_func_decl_snprintf=yes
60769fi
60770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60771fi
60772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_snprintf" >&5
60773$as_echo "$pac_cv_func_decl_snprintf" >&6; }
60774if test "$pac_cv_func_decl_snprintf" = "yes" ; then
60775
60776cat >>confdefs.h <<_ACEOF
60777#define NEEDS_SNPRINTF_DECL 1
60778_ACEOF
60779
60780
60781fi
60782
60783fi
60784for ac_func in strncasecmp
60785do :
60786  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
60787if test "x$ac_cv_func_strncasecmp" = xyes; then :
60788  cat >>confdefs.h <<_ACEOF
60789#define HAVE_STRNCASECMP 1
60790_ACEOF
60791
60792fi
60793done
60794
60795#
60796# PM's that need support for a port can set the environment variable
60797# NEED_PMIPORT in their setup_pm script.
60798if test "$NEED_PMIPORT" = "yes" -a "$enable_pmiport" != "yes" ; then
60799    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The process manager requires the pmiport capability.  Do not specify --disable-pmiport." >&5
60800$as_echo "$as_me: WARNING: The process manager requires the pmiport capability.  Do not specify --disable-pmiport." >&2;}
60801    enable_pmiport=yes
60802fi
60803#
60804if test "$enable_pmiport" = "yes" ; then
60805    # Check for the necessary includes and functions
60806    missing_headers=no
60807    for ac_header in   \
60808        sys/types.h     \
60809        sys/param.h     \
60810        sys/socket.h    \
60811        netinet/in.h    \
60812        netinet/tcp.h   \
60813        sys/un.h        \
60814        netdb.h         \
60815
60816do :
60817  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
60818ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
60819if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
60820  cat >>confdefs.h <<_ACEOF
60821#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
60822_ACEOF
60823
60824else
60825  missing_headers=yes
60826fi
60827
60828done
60829
60830    missing_functions=no
60831    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
60832$as_echo_n "checking for library containing socket... " >&6; }
60833if ${ac_cv_search_socket+:} false; then :
60834  $as_echo_n "(cached) " >&6
60835else
60836  ac_func_search_save_LIBS=$LIBS
60837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60838/* end confdefs.h.  */
60839
60840/* Override any GCC internal prototype to avoid an error.
60841   Use char because int might match the return type of a GCC
60842   builtin and then its argument prototype would still apply.  */
60843#ifdef __cplusplus
60844extern "C"
60845#endif
60846char socket ();
60847int
60848main ()
60849{
60850return socket ();
60851  ;
60852  return 0;
60853}
60854_ACEOF
60855for ac_lib in '' socket; do
60856  if test -z "$ac_lib"; then
60857    ac_res="none required"
60858  else
60859    ac_res=-l$ac_lib
60860    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
60861  fi
60862  if ac_fn_c_try_link "$LINENO"; then :
60863  ac_cv_search_socket=$ac_res
60864fi
60865rm -f core conftest.err conftest.$ac_objext \
60866    conftest$ac_exeext
60867  if ${ac_cv_search_socket+:} false; then :
60868  break
60869fi
60870done
60871if ${ac_cv_search_socket+:} false; then :
60872
60873else
60874  ac_cv_search_socket=no
60875fi
60876rm conftest.$ac_ext
60877LIBS=$ac_func_search_save_LIBS
60878fi
60879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
60880$as_echo "$ac_cv_search_socket" >&6; }
60881ac_res=$ac_cv_search_socket
60882if test "$ac_res" != no; then :
60883  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
60884
60885else
60886  missing_functions=yes
60887fi
60888
60889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
60890$as_echo_n "checking for library containing gethostbyname... " >&6; }
60891if ${ac_cv_search_gethostbyname+:} false; then :
60892  $as_echo_n "(cached) " >&6
60893else
60894  ac_func_search_save_LIBS=$LIBS
60895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60896/* end confdefs.h.  */
60897
60898/* Override any GCC internal prototype to avoid an error.
60899   Use char because int might match the return type of a GCC
60900   builtin and then its argument prototype would still apply.  */
60901#ifdef __cplusplus
60902extern "C"
60903#endif
60904char gethostbyname ();
60905int
60906main ()
60907{
60908return gethostbyname ();
60909  ;
60910  return 0;
60911}
60912_ACEOF
60913for ac_lib in '' nsl; do
60914  if test -z "$ac_lib"; then
60915    ac_res="none required"
60916  else
60917    ac_res=-l$ac_lib
60918    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
60919  fi
60920  if ac_fn_c_try_link "$LINENO"; then :
60921  ac_cv_search_gethostbyname=$ac_res
60922fi
60923rm -f core conftest.err conftest.$ac_objext \
60924    conftest$ac_exeext
60925  if ${ac_cv_search_gethostbyname+:} false; then :
60926  break
60927fi
60928done
60929if ${ac_cv_search_gethostbyname+:} false; then :
60930
60931else
60932  ac_cv_search_gethostbyname=no
60933fi
60934rm conftest.$ac_ext
60935LIBS=$ac_func_search_save_LIBS
60936fi
60937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
60938$as_echo "$ac_cv_search_gethostbyname" >&6; }
60939ac_res=$ac_cv_search_gethostbyname
60940if test "$ac_res" != no; then :
60941  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
60942
60943else
60944  missing_functions=yes
60945fi
60946
60947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
60948$as_echo_n "checking for library containing setsockopt... " >&6; }
60949if ${ac_cv_search_setsockopt+:} false; then :
60950  $as_echo_n "(cached) " >&6
60951else
60952  ac_func_search_save_LIBS=$LIBS
60953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60954/* end confdefs.h.  */
60955
60956/* Override any GCC internal prototype to avoid an error.
60957   Use char because int might match the return type of a GCC
60958   builtin and then its argument prototype would still apply.  */
60959#ifdef __cplusplus
60960extern "C"
60961#endif
60962char setsockopt ();
60963int
60964main ()
60965{
60966return setsockopt ();
60967  ;
60968  return 0;
60969}
60970_ACEOF
60971for ac_lib in '' ; do
60972  if test -z "$ac_lib"; then
60973    ac_res="none required"
60974  else
60975    ac_res=-l$ac_lib
60976    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
60977  fi
60978  if ac_fn_c_try_link "$LINENO"; then :
60979  ac_cv_search_setsockopt=$ac_res
60980fi
60981rm -f core conftest.err conftest.$ac_objext \
60982    conftest$ac_exeext
60983  if ${ac_cv_search_setsockopt+:} false; then :
60984  break
60985fi
60986done
60987if ${ac_cv_search_setsockopt+:} false; then :
60988
60989else
60990  ac_cv_search_setsockopt=no
60991fi
60992rm conftest.$ac_ext
60993LIBS=$ac_func_search_save_LIBS
60994fi
60995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
60996$as_echo "$ac_cv_search_setsockopt" >&6; }
60997ac_res=$ac_cv_search_setsockopt
60998if test "$ac_res" != no; then :
60999  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
61000
61001else
61002  missing_functions=yes
61003fi
61004
61005
61006    if test "$missing_functions" = "no" ; then
61007
61008$as_echo "#define USE_PMI_PORT 1" >>confdefs.h
61009
61010    else
61011        as_fn_error $? "Cannot build simple PMI with support for an IP port because of missing functions" "$LINENO" 5
61012    fi
61013fi
61014
61015# Check for socklen_t .  If undefined, define it as int
61016# (note the conditional inclusion of sys/socket.h)
61017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t is defined (in sys/socket.h if present)" >&5
61018$as_echo_n "checking whether socklen_t is defined (in sys/socket.h if present)... " >&6; }
61019if ${pac_cv_have_socklen_t+:} false; then :
61020  $as_echo_n "(cached) " >&6
61021else
61022
61023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61024/* end confdefs.h.  */
61025
61026#include <sys/types.h>
61027#ifdef HAVE_SYS_SOCKET_H
61028#include <sys/socket.h>
61029#endif
61030
61031typedef struct { double a; int b; } socklen_t;
61032int
61033main ()
61034{
61035socklen_t a;a.a=1.0;
61036  ;
61037  return 0;
61038}
61039_ACEOF
61040if ac_fn_c_try_compile "$LINENO"; then :
61041  pac_cv_have_socklen_t=no
61042else
61043  pac_cv_have_socklen_t=yes
61044fi
61045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61046fi
61047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_socklen_t" >&5
61048$as_echo "$pac_cv_have_socklen_t" >&6; }
61049if test "$pac_cv_have_socklen_t" = no ; then
61050
61051$as_echo "#define socklen_t int" >>confdefs.h
61052
61053fi
61054# Check for h_addr or h_addr_list
61055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct hostent contains h_addr_list" >&5
61056$as_echo_n "checking whether struct hostent contains h_addr_list... " >&6; }
61057if ${pac_cv_have_haddr_list+:} false; then :
61058  $as_echo_n "(cached) " >&6
61059else
61060
61061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61062/* end confdefs.h.  */
61063
61064#include <netdb.h>
61065int
61066main ()
61067{
61068struct hostent hp;hp.h_addr_list[0]=0;
61069  ;
61070  return 0;
61071}
61072_ACEOF
61073if ac_fn_c_try_compile "$LINENO"; then :
61074  pac_cv_have_haddr_list=yes
61075else
61076  pac_cv_have_haddr_list=no
61077fi
61078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61079fi
61080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_haddr_list" >&5
61081$as_echo "$pac_cv_have_haddr_list" >&6; }
61082if test "$pac_cv_have_haddr_list" = "yes" ; then
61083
61084$as_echo "#define HAVE_H_ADDR_LIST 1" >>confdefs.h
61085
61086fi
61087
61088
61089if test "$ac_cv_c_compiler_gnu" = "yes" ; then
61090    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ allowed" >&5
61091$as_echo_n "checking whether __attribute__ allowed... " >&6; }
61092if ${pac_cv_gnu_attr_pure+:} false; then :
61093  $as_echo_n "(cached) " >&6
61094else
61095
61096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61097/* end confdefs.h.  */
61098int foo(int) __attribute__ ((pure));
61099int
61100main ()
61101{
61102int a;
61103  ;
61104  return 0;
61105}
61106_ACEOF
61107if ac_fn_c_try_compile "$LINENO"; then :
61108  pac_cv_gnu_attr_pure=yes
61109else
61110  pac_cv_gnu_attr_pure=no
61111fi
61112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61113fi
61114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_pure" >&5
61115$as_echo "$pac_cv_gnu_attr_pure" >&6; }
61116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) allowed" >&5
61117$as_echo_n "checking whether __attribute__((format)) allowed... " >&6; }
61118if ${pac_cv_gnu_attr_format+:} false; then :
61119  $as_echo_n "(cached) " >&6
61120else
61121
61122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61123/* end confdefs.h.  */
61124int foo(char *,...) __attribute__ ((format(printf,1,2)));
61125int
61126main ()
61127{
61128int a;
61129  ;
61130  return 0;
61131}
61132_ACEOF
61133if ac_fn_c_try_compile "$LINENO"; then :
61134  pac_cv_gnu_attr_format=yes
61135else
61136  pac_cv_gnu_attr_format=no
61137fi
61138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61139fi
61140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_format" >&5
61141$as_echo "$pac_cv_gnu_attr_format" >&6; }
61142    if test "$pac_cv_gnu_attr_pure" = "yes" -a "$pac_cv_gnu_attr_format" = "yes" ; then
61143
61144$as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
61145
61146    fi
61147fi
61148
61149
61150fi
61151
61152## end expansion of PAC_SUBCFG_BODY_src_pmi_pmi2
61153
61154## begin expansion of PAC_SUBCFG_BODY_src_pmi_pmi2_simple
61155
61156
61157 if test "x$pmi_name" = "xpmi2/simple"; then
61158  BUILD_PMI_PMI2_SIMPLE_TRUE=
61159  BUILD_PMI_PMI2_SIMPLE_FALSE='#'
61160else
61161  BUILD_PMI_PMI2_SIMPLE_TRUE='#'
61162  BUILD_PMI_PMI2_SIMPLE_FALSE=
61163fi
61164
61165
61166if test -z "$BUILD_PMI_PMI2_SIMPLE_TRUE"; then :
61167
61168if test "$enable_pmiport" != "no" ; then
61169   enable_pmiport=yes
61170fi
61171
61172USE_PMI2_API=yes
61173
61174for ac_header in unistd.h string.h stdlib.h sys/socket.h strings.h assert.h
61175do :
61176  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
61177ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
61178if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
61179  cat >>confdefs.h <<_ACEOF
61180#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
61181_ACEOF
61182
61183fi
61184
61185done
61186
61187for ac_func in snprintf
61188do :
61189  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
61190if test "x$ac_cv_func_snprintf" = xyes; then :
61191  cat >>confdefs.h <<_ACEOF
61192#define HAVE_SNPRINTF 1
61193_ACEOF
61194
61195fi
61196done
61197
61198if test "$ac_cv_func_snprintf" = "yes" ; then
61199
61200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf needs a declaration" >&5
61201$as_echo_n "checking whether snprintf needs a declaration... " >&6; }
61202if ${pac_cv_func_decl_snprintf+:} false; then :
61203  $as_echo_n "(cached) " >&6
61204else
61205
61206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61207/* end confdefs.h.  */
61208#include <stdio.h>
61209void (*fptr)(void) = (void(*)(void))snprintf;
61210int
61211main ()
61212{
61213
61214  ;
61215  return 0;
61216}
61217_ACEOF
61218if ac_fn_c_try_compile "$LINENO"; then :
61219  pac_cv_func_decl_snprintf=no
61220else
61221  pac_cv_func_decl_snprintf=yes
61222fi
61223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61224fi
61225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_snprintf" >&5
61226$as_echo "$pac_cv_func_decl_snprintf" >&6; }
61227if test "$pac_cv_func_decl_snprintf" = "yes" ; then
61228
61229cat >>confdefs.h <<_ACEOF
61230#define NEEDS_SNPRINTF_DECL 1
61231_ACEOF
61232
61233
61234fi
61235
61236fi
61237for ac_func in strncasecmp
61238do :
61239  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
61240if test "x$ac_cv_func_strncasecmp" = xyes; then :
61241  cat >>confdefs.h <<_ACEOF
61242#define HAVE_STRNCASECMP 1
61243_ACEOF
61244
61245fi
61246done
61247
61248#
61249# PM's that need support for a port can set the environment variable
61250# NEED_PMIPORT in their setup_pm script.
61251if test "$NEED_PMIPORT" = "yes" -a "$enable_pmiport" != "yes" ; then
61252    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The process manager requires the pmiport capability.  Do not specify --disable-pmiport." >&5
61253$as_echo "$as_me: WARNING: The process manager requires the pmiport capability.  Do not specify --disable-pmiport." >&2;}
61254    enable_pmiport=yes
61255fi
61256#
61257if test "$enable_pmiport" = "yes" ; then
61258    # Check for the necessary includes and functions
61259    missing_headers=no
61260    for ac_header in   \
61261        sys/types.h     \
61262        sys/param.h     \
61263        sys/socket.h    \
61264        netinet/in.h    \
61265        netinet/tcp.h   \
61266        sys/un.h        \
61267        netdb.h         \
61268
61269do :
61270  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
61271ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
61272if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
61273  cat >>confdefs.h <<_ACEOF
61274#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
61275_ACEOF
61276
61277else
61278  missing_headers=yes
61279fi
61280
61281done
61282
61283    missing_functions=no
61284    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
61285$as_echo_n "checking for library containing socket... " >&6; }
61286if ${ac_cv_search_socket+:} false; then :
61287  $as_echo_n "(cached) " >&6
61288else
61289  ac_func_search_save_LIBS=$LIBS
61290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61291/* end confdefs.h.  */
61292
61293/* Override any GCC internal prototype to avoid an error.
61294   Use char because int might match the return type of a GCC
61295   builtin and then its argument prototype would still apply.  */
61296#ifdef __cplusplus
61297extern "C"
61298#endif
61299char socket ();
61300int
61301main ()
61302{
61303return socket ();
61304  ;
61305  return 0;
61306}
61307_ACEOF
61308for ac_lib in '' socket; do
61309  if test -z "$ac_lib"; then
61310    ac_res="none required"
61311  else
61312    ac_res=-l$ac_lib
61313    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
61314  fi
61315  if ac_fn_c_try_link "$LINENO"; then :
61316  ac_cv_search_socket=$ac_res
61317fi
61318rm -f core conftest.err conftest.$ac_objext \
61319    conftest$ac_exeext
61320  if ${ac_cv_search_socket+:} false; then :
61321  break
61322fi
61323done
61324if ${ac_cv_search_socket+:} false; then :
61325
61326else
61327  ac_cv_search_socket=no
61328fi
61329rm conftest.$ac_ext
61330LIBS=$ac_func_search_save_LIBS
61331fi
61332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
61333$as_echo "$ac_cv_search_socket" >&6; }
61334ac_res=$ac_cv_search_socket
61335if test "$ac_res" != no; then :
61336  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
61337
61338else
61339  missing_functions=yes
61340fi
61341
61342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
61343$as_echo_n "checking for library containing gethostbyname... " >&6; }
61344if ${ac_cv_search_gethostbyname+:} false; then :
61345  $as_echo_n "(cached) " >&6
61346else
61347  ac_func_search_save_LIBS=$LIBS
61348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61349/* end confdefs.h.  */
61350
61351/* Override any GCC internal prototype to avoid an error.
61352   Use char because int might match the return type of a GCC
61353   builtin and then its argument prototype would still apply.  */
61354#ifdef __cplusplus
61355extern "C"
61356#endif
61357char gethostbyname ();
61358int
61359main ()
61360{
61361return gethostbyname ();
61362  ;
61363  return 0;
61364}
61365_ACEOF
61366for ac_lib in '' nsl; do
61367  if test -z "$ac_lib"; then
61368    ac_res="none required"
61369  else
61370    ac_res=-l$ac_lib
61371    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
61372  fi
61373  if ac_fn_c_try_link "$LINENO"; then :
61374  ac_cv_search_gethostbyname=$ac_res
61375fi
61376rm -f core conftest.err conftest.$ac_objext \
61377    conftest$ac_exeext
61378  if ${ac_cv_search_gethostbyname+:} false; then :
61379  break
61380fi
61381done
61382if ${ac_cv_search_gethostbyname+:} false; then :
61383
61384else
61385  ac_cv_search_gethostbyname=no
61386fi
61387rm conftest.$ac_ext
61388LIBS=$ac_func_search_save_LIBS
61389fi
61390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
61391$as_echo "$ac_cv_search_gethostbyname" >&6; }
61392ac_res=$ac_cv_search_gethostbyname
61393if test "$ac_res" != no; then :
61394  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
61395
61396else
61397  missing_functions=yes
61398fi
61399
61400    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
61401$as_echo_n "checking for library containing setsockopt... " >&6; }
61402if ${ac_cv_search_setsockopt+:} false; then :
61403  $as_echo_n "(cached) " >&6
61404else
61405  ac_func_search_save_LIBS=$LIBS
61406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61407/* end confdefs.h.  */
61408
61409/* Override any GCC internal prototype to avoid an error.
61410   Use char because int might match the return type of a GCC
61411   builtin and then its argument prototype would still apply.  */
61412#ifdef __cplusplus
61413extern "C"
61414#endif
61415char setsockopt ();
61416int
61417main ()
61418{
61419return setsockopt ();
61420  ;
61421  return 0;
61422}
61423_ACEOF
61424for ac_lib in '' ; do
61425  if test -z "$ac_lib"; then
61426    ac_res="none required"
61427  else
61428    ac_res=-l$ac_lib
61429    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
61430  fi
61431  if ac_fn_c_try_link "$LINENO"; then :
61432  ac_cv_search_setsockopt=$ac_res
61433fi
61434rm -f core conftest.err conftest.$ac_objext \
61435    conftest$ac_exeext
61436  if ${ac_cv_search_setsockopt+:} false; then :
61437  break
61438fi
61439done
61440if ${ac_cv_search_setsockopt+:} false; then :
61441
61442else
61443  ac_cv_search_setsockopt=no
61444fi
61445rm conftest.$ac_ext
61446LIBS=$ac_func_search_save_LIBS
61447fi
61448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
61449$as_echo "$ac_cv_search_setsockopt" >&6; }
61450ac_res=$ac_cv_search_setsockopt
61451if test "$ac_res" != no; then :
61452  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
61453
61454else
61455  missing_functions=yes
61456fi
61457
61458
61459    if test "$missing_functions" = "no" ; then
61460
61461$as_echo "#define USE_PMI_PORT 1" >>confdefs.h
61462
61463    else
61464        as_fn_error $? "Cannot build simple PMI with support for an IP port because of missing functions" "$LINENO" 5
61465    fi
61466fi
61467
61468# Check for socklen_t .  If undefined, define it as int
61469# (note the conditional inclusion of sys/socket.h)
61470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t is defined (in sys/socket.h if present)" >&5
61471$as_echo_n "checking whether socklen_t is defined (in sys/socket.h if present)... " >&6; }
61472if ${pac_cv_have_socklen_t+:} false; then :
61473  $as_echo_n "(cached) " >&6
61474else
61475
61476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61477/* end confdefs.h.  */
61478
61479#include <sys/types.h>
61480#ifdef HAVE_SYS_SOCKET_H
61481#include <sys/socket.h>
61482#endif
61483
61484typedef struct { double a; int b; } socklen_t;
61485int
61486main ()
61487{
61488socklen_t a;a.a=1.0;
61489  ;
61490  return 0;
61491}
61492_ACEOF
61493if ac_fn_c_try_compile "$LINENO"; then :
61494  pac_cv_have_socklen_t=no
61495else
61496  pac_cv_have_socklen_t=yes
61497fi
61498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61499fi
61500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_socklen_t" >&5
61501$as_echo "$pac_cv_have_socklen_t" >&6; }
61502if test "$pac_cv_have_socklen_t" = no ; then
61503
61504$as_echo "#define socklen_t int" >>confdefs.h
61505
61506fi
61507# Check for h_addr or h_addr_list
61508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct hostent contains h_addr_list" >&5
61509$as_echo_n "checking whether struct hostent contains h_addr_list... " >&6; }
61510if ${pac_cv_have_haddr_list+:} false; then :
61511  $as_echo_n "(cached) " >&6
61512else
61513
61514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61515/* end confdefs.h.  */
61516
61517#include <netdb.h>
61518int
61519main ()
61520{
61521struct hostent hp;hp.h_addr_list[0]=0;
61522  ;
61523  return 0;
61524}
61525_ACEOF
61526if ac_fn_c_try_compile "$LINENO"; then :
61527  pac_cv_have_haddr_list=yes
61528else
61529  pac_cv_have_haddr_list=no
61530fi
61531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61532fi
61533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_haddr_list" >&5
61534$as_echo "$pac_cv_have_haddr_list" >&6; }
61535if test "$pac_cv_have_haddr_list" = "yes" ; then
61536
61537$as_echo "#define HAVE_H_ADDR_LIST 1" >>confdefs.h
61538
61539fi
61540
61541
61542if test "$ac_cv_c_compiler_gnu" = "yes" ; then
61543    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ allowed" >&5
61544$as_echo_n "checking whether __attribute__ allowed... " >&6; }
61545if ${pac_cv_gnu_attr_pure+:} false; then :
61546  $as_echo_n "(cached) " >&6
61547else
61548
61549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61550/* end confdefs.h.  */
61551int foo(int) __attribute__ ((pure));
61552int
61553main ()
61554{
61555int a;
61556  ;
61557  return 0;
61558}
61559_ACEOF
61560if ac_fn_c_try_compile "$LINENO"; then :
61561  pac_cv_gnu_attr_pure=yes
61562else
61563  pac_cv_gnu_attr_pure=no
61564fi
61565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61566fi
61567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_pure" >&5
61568$as_echo "$pac_cv_gnu_attr_pure" >&6; }
61569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) allowed" >&5
61570$as_echo_n "checking whether __attribute__((format)) allowed... " >&6; }
61571if ${pac_cv_gnu_attr_format+:} false; then :
61572  $as_echo_n "(cached) " >&6
61573else
61574
61575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61576/* end confdefs.h.  */
61577int foo(char *,...) __attribute__ ((format(printf,1,2)));
61578int
61579main ()
61580{
61581int a;
61582  ;
61583  return 0;
61584}
61585_ACEOF
61586if ac_fn_c_try_compile "$LINENO"; then :
61587  pac_cv_gnu_attr_format=yes
61588else
61589  pac_cv_gnu_attr_format=no
61590fi
61591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61592fi
61593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_format" >&5
61594$as_echo "$pac_cv_gnu_attr_format" >&6; }
61595    if test "$pac_cv_gnu_attr_pure" = "yes" -a "$pac_cv_gnu_attr_format" = "yes" ; then
61596
61597$as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
61598
61599    fi
61600fi
61601
61602
61603fi
61604
61605## end expansion of PAC_SUBCFG_BODY_src_pmi_pmi2_simple
61606
61607## begin expansion of PAC_SUBCFG_BODY_src_pmi_bgq
61608
61609
61610 if test "x$pmi_name" = "xbgq"; then
61611  BUILD_PMI_BGQ_TRUE=
61612  BUILD_PMI_BGQ_FALSE='#'
61613else
61614  BUILD_PMI_BGQ_TRUE='#'
61615  BUILD_PMI_BGQ_FALSE=
61616fi
61617
61618if test -z "$BUILD_PMI_BGQ_TRUE"; then :
61619
61620
61621# This is a hack to include the pmi.h header. The OFI/BGQ provider
61622# includes PMI functions, but no header file.
61623
61624
61625        if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/src/pmi/include\>" >/dev/null 2>&1; then :
61626  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/src/pmi/include', not prepending" >&5
61627else
61628  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/src/pmi/include', prepending" >&5
61629                CPPFLAGS="-I${use_top_srcdir}/src/pmi/include $CPPFLAGS"
61630
61631fi
61632
61633
61634
61635fi
61636
61637## end expansion of PAC_SUBCFG_BODY_src_pmi_bgq
61638
61639## begin expansion of PAC_SUBCFG_BODY_src_pmi_cray
61640
61641
61642 if test "x$pmi_name" = "xcray"; then
61643  BUILD_PMI_CRAY_TRUE=
61644  BUILD_PMI_CRAY_FALSE='#'
61645else
61646  BUILD_PMI_CRAY_TRUE='#'
61647  BUILD_PMI_CRAY_FALSE=
61648fi
61649
61650if test -z "$BUILD_PMI_CRAY_TRUE"; then :
61651
61652
61653# set CPPFLAGS and LDFLAGS
61654
61655
61656        if echo "$CPPFLAGS" | $FGREP -e "\<$CRAY_PMI_INCLUDE_OPTS\>" >/dev/null 2>&1; then :
61657  echo "CPPFLAGS(='$CPPFLAGS') contains '$CRAY_PMI_INCLUDE_OPTS', not prepending" >&5
61658else
61659  echo "CPPFLAGS(='$CPPFLAGS') does not contain '$CRAY_PMI_INCLUDE_OPTS', prepending" >&5
61660                CPPFLAGS="$CRAY_PMI_INCLUDE_OPTS $CPPFLAGS"
61661
61662fi
61663
61664
61665
61666        if echo "$LDFLAGS" | $FGREP -e "\<$CRAY_PMI_POST_LINK_OPTS\>" >/dev/null 2>&1; then :
61667  echo "LDFLAGS(='$LDFLAGS') contains '$CRAY_PMI_POST_LINK_OPTS', not prepending" >&5
61668else
61669  echo "LDFLAGS(='$LDFLAGS') does not contain '$CRAY_PMI_POST_LINK_OPTS', prepending" >&5
61670                LDFLAGS="$CRAY_PMI_POST_LINK_OPTS $LDFLAGS"
61671
61672fi
61673
61674
61675ac_fn_c_check_header_mongrel "$LINENO" "pmi.h" "ac_cv_header_pmi_h" "$ac_includes_default"
61676if test "x$ac_cv_header_pmi_h" = xyes; then :
61677
61678else
61679  as_fn_error $? "could not find pmi.h.  Configure aborted" "$LINENO" 5
61680fi
61681
61682
61683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PMI_Init in -lpmi" >&5
61684$as_echo_n "checking for PMI_Init in -lpmi... " >&6; }
61685if ${ac_cv_lib_pmi_PMI_Init+:} false; then :
61686  $as_echo_n "(cached) " >&6
61687else
61688  ac_check_lib_save_LIBS=$LIBS
61689LIBS="-lpmi  $LIBS"
61690cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61691/* end confdefs.h.  */
61692
61693/* Override any GCC internal prototype to avoid an error.
61694   Use char because int might match the return type of a GCC
61695   builtin and then its argument prototype would still apply.  */
61696#ifdef __cplusplus
61697extern "C"
61698#endif
61699char PMI_Init ();
61700int
61701main ()
61702{
61703return PMI_Init ();
61704  ;
61705  return 0;
61706}
61707_ACEOF
61708if ac_fn_c_try_link "$LINENO"; then :
61709  ac_cv_lib_pmi_PMI_Init=yes
61710else
61711  ac_cv_lib_pmi_PMI_Init=no
61712fi
61713rm -f core conftest.err conftest.$ac_objext \
61714    conftest$ac_exeext conftest.$ac_ext
61715LIBS=$ac_check_lib_save_LIBS
61716fi
61717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pmi_PMI_Init" >&5
61718$as_echo "$ac_cv_lib_pmi_PMI_Init" >&6; }
61719if test "x$ac_cv_lib_pmi_PMI_Init" = xyes; then :
61720  cat >>confdefs.h <<_ACEOF
61721#define HAVE_LIBPMI 1
61722_ACEOF
61723
61724  LIBS="-lpmi $LIBS"
61725
61726else
61727  as_fn_error $? "could not find the cray libpmi.  Configure aborted" "$LINENO" 5
61728fi
61729
61730
61731
61732$as_echo "#define USE_PMI2_API 1" >>confdefs.h
61733
61734
61735
61736	if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lpmi\>" >/dev/null 2>&1; then :
61737  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lpmi', not appending" >&5
61738else
61739  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lpmi', appending" >&5
61740		WRAPPER_LIBS="$WRAPPER_LIBS -lpmi"
61741
61742fi
61743
61744
61745
61746fi
61747
61748## end expansion of PAC_SUBCFG_BODY_src_pmi_cray
61749
61750## begin expansion of PAC_SUBCFG_BODY_src_pmi_simple
61751
61752
61753 if test "x$pmi_name" = "xsimple"; then
61754  BUILD_PMI_SIMPLE_TRUE=
61755  BUILD_PMI_SIMPLE_FALSE='#'
61756else
61757  BUILD_PMI_SIMPLE_TRUE='#'
61758  BUILD_PMI_SIMPLE_FALSE=
61759fi
61760
61761
61762if test -z "$BUILD_PMI_SIMPLE_TRUE"; then :
61763
61764if test "$enable_pmiport" != "no" ; then
61765   enable_pmiport=yes
61766fi
61767for ac_header in unistd.h string.h stdlib.h sys/socket.h strings.h assert.h arpa/inet.h
61768do :
61769  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
61770ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
61771if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
61772  cat >>confdefs.h <<_ACEOF
61773#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
61774_ACEOF
61775
61776fi
61777
61778done
61779
61780for ac_func in snprintf
61781do :
61782  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
61783if test "x$ac_cv_func_snprintf" = xyes; then :
61784  cat >>confdefs.h <<_ACEOF
61785#define HAVE_SNPRINTF 1
61786_ACEOF
61787
61788fi
61789done
61790
61791if test "$ac_cv_func_snprintf" = "yes" ; then
61792
61793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf needs a declaration" >&5
61794$as_echo_n "checking whether snprintf needs a declaration... " >&6; }
61795if ${pac_cv_func_decl_snprintf+:} false; then :
61796  $as_echo_n "(cached) " >&6
61797else
61798
61799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61800/* end confdefs.h.  */
61801#include <stdio.h>
61802void (*fptr)(void) = (void(*)(void))snprintf;
61803int
61804main ()
61805{
61806
61807  ;
61808  return 0;
61809}
61810_ACEOF
61811if ac_fn_c_try_compile "$LINENO"; then :
61812  pac_cv_func_decl_snprintf=no
61813else
61814  pac_cv_func_decl_snprintf=yes
61815fi
61816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61817fi
61818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_snprintf" >&5
61819$as_echo "$pac_cv_func_decl_snprintf" >&6; }
61820if test "$pac_cv_func_decl_snprintf" = "yes" ; then
61821
61822cat >>confdefs.h <<_ACEOF
61823#define NEEDS_SNPRINTF_DECL 1
61824_ACEOF
61825
61826
61827fi
61828
61829fi
61830for ac_func in strncasecmp
61831do :
61832  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
61833if test "x$ac_cv_func_strncasecmp" = xyes; then :
61834  cat >>confdefs.h <<_ACEOF
61835#define HAVE_STRNCASECMP 1
61836_ACEOF
61837
61838fi
61839done
61840
61841
61842#
61843# PM's that need support for a port can set the environment variable
61844# NEED_PMIPORT in their setup_pm script.
61845if test "$NEED_PMIPORT" = "yes" -a "$enable_pmiport" != "yes" ; then
61846    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The process manager requires the pmiport capability.  Do not specify --disable-pmiport." >&5
61847$as_echo "$as_me: WARNING: The process manager requires the pmiport capability.  Do not specify --disable-pmiport." >&2;}
61848    enable_pmiport=yes
61849fi
61850#
61851if test "$enable_pmiport" = "yes" ; then
61852    # Check for the necessary includes and functions
61853    missing_headers=no
61854    for ac_header in 	\
61855	sys/types.h	\
61856	sys/param.h	\
61857	sys/socket.h	\
61858	netinet/in.h	\
61859	netinet/tcp.h	\
61860	sys/un.h	\
61861	netdb.h		\
61862
61863do :
61864  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
61865ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
61866if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
61867  cat >>confdefs.h <<_ACEOF
61868#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
61869_ACEOF
61870
61871else
61872  missing_headers=yes
61873fi
61874
61875done
61876
61877    missing_functions=no
61878    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
61879$as_echo_n "checking for library containing socket... " >&6; }
61880if ${ac_cv_search_socket+:} false; then :
61881  $as_echo_n "(cached) " >&6
61882else
61883  ac_func_search_save_LIBS=$LIBS
61884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61885/* end confdefs.h.  */
61886
61887/* Override any GCC internal prototype to avoid an error.
61888   Use char because int might match the return type of a GCC
61889   builtin and then its argument prototype would still apply.  */
61890#ifdef __cplusplus
61891extern "C"
61892#endif
61893char socket ();
61894int
61895main ()
61896{
61897return socket ();
61898  ;
61899  return 0;
61900}
61901_ACEOF
61902for ac_lib in '' socket; do
61903  if test -z "$ac_lib"; then
61904    ac_res="none required"
61905  else
61906    ac_res=-l$ac_lib
61907    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
61908  fi
61909  if ac_fn_c_try_link "$LINENO"; then :
61910  ac_cv_search_socket=$ac_res
61911fi
61912rm -f core conftest.err conftest.$ac_objext \
61913    conftest$ac_exeext
61914  if ${ac_cv_search_socket+:} false; then :
61915  break
61916fi
61917done
61918if ${ac_cv_search_socket+:} false; then :
61919
61920else
61921  ac_cv_search_socket=no
61922fi
61923rm conftest.$ac_ext
61924LIBS=$ac_func_search_save_LIBS
61925fi
61926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
61927$as_echo "$ac_cv_search_socket" >&6; }
61928ac_res=$ac_cv_search_socket
61929if test "$ac_res" != no; then :
61930  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
61931
61932else
61933  missing_functions=yes
61934fi
61935
61936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
61937$as_echo_n "checking for library containing gethostbyname... " >&6; }
61938if ${ac_cv_search_gethostbyname+:} false; then :
61939  $as_echo_n "(cached) " >&6
61940else
61941  ac_func_search_save_LIBS=$LIBS
61942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
61943/* end confdefs.h.  */
61944
61945/* Override any GCC internal prototype to avoid an error.
61946   Use char because int might match the return type of a GCC
61947   builtin and then its argument prototype would still apply.  */
61948#ifdef __cplusplus
61949extern "C"
61950#endif
61951char gethostbyname ();
61952int
61953main ()
61954{
61955return gethostbyname ();
61956  ;
61957  return 0;
61958}
61959_ACEOF
61960for ac_lib in '' nsl; do
61961  if test -z "$ac_lib"; then
61962    ac_res="none required"
61963  else
61964    ac_res=-l$ac_lib
61965    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
61966  fi
61967  if ac_fn_c_try_link "$LINENO"; then :
61968  ac_cv_search_gethostbyname=$ac_res
61969fi
61970rm -f core conftest.err conftest.$ac_objext \
61971    conftest$ac_exeext
61972  if ${ac_cv_search_gethostbyname+:} false; then :
61973  break
61974fi
61975done
61976if ${ac_cv_search_gethostbyname+:} false; then :
61977
61978else
61979  ac_cv_search_gethostbyname=no
61980fi
61981rm conftest.$ac_ext
61982LIBS=$ac_func_search_save_LIBS
61983fi
61984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
61985$as_echo "$ac_cv_search_gethostbyname" >&6; }
61986ac_res=$ac_cv_search_gethostbyname
61987if test "$ac_res" != no; then :
61988  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
61989
61990else
61991  missing_functions=yes
61992fi
61993
61994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
61995$as_echo_n "checking for library containing setsockopt... " >&6; }
61996if ${ac_cv_search_setsockopt+:} false; then :
61997  $as_echo_n "(cached) " >&6
61998else
61999  ac_func_search_save_LIBS=$LIBS
62000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62001/* end confdefs.h.  */
62002
62003/* Override any GCC internal prototype to avoid an error.
62004   Use char because int might match the return type of a GCC
62005   builtin and then its argument prototype would still apply.  */
62006#ifdef __cplusplus
62007extern "C"
62008#endif
62009char setsockopt ();
62010int
62011main ()
62012{
62013return setsockopt ();
62014  ;
62015  return 0;
62016}
62017_ACEOF
62018for ac_lib in '' ; do
62019  if test -z "$ac_lib"; then
62020    ac_res="none required"
62021  else
62022    ac_res=-l$ac_lib
62023    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
62024  fi
62025  if ac_fn_c_try_link "$LINENO"; then :
62026  ac_cv_search_setsockopt=$ac_res
62027fi
62028rm -f core conftest.err conftest.$ac_objext \
62029    conftest$ac_exeext
62030  if ${ac_cv_search_setsockopt+:} false; then :
62031  break
62032fi
62033done
62034if ${ac_cv_search_setsockopt+:} false; then :
62035
62036else
62037  ac_cv_search_setsockopt=no
62038fi
62039rm conftest.$ac_ext
62040LIBS=$ac_func_search_save_LIBS
62041fi
62042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
62043$as_echo "$ac_cv_search_setsockopt" >&6; }
62044ac_res=$ac_cv_search_setsockopt
62045if test "$ac_res" != no; then :
62046  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
62047
62048else
62049  missing_functions=yes
62050fi
62051
62052
62053    if test "$missing_functions" = "no" ; then
62054
62055$as_echo "#define USE_PMI_PORT 1" >>confdefs.h
62056
62057    else
62058        as_fn_error $? "Cannot build simple PMI with support for an IP port because of missing functions" "$LINENO" 5
62059    fi
62060fi
62061
62062# Check for socklen_t .  If undefined, define it as int
62063# (note the conditional inclusion of sys/socket.h)
62064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether socklen_t is defined (in sys/socket.h if present)" >&5
62065$as_echo_n "checking whether socklen_t is defined (in sys/socket.h if present)... " >&6; }
62066if ${pac_cv_have_socklen_t+:} false; then :
62067  $as_echo_n "(cached) " >&6
62068else
62069
62070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62071/* end confdefs.h.  */
62072
62073#include <sys/types.h>
62074#ifdef HAVE_SYS_SOCKET_H
62075#include <sys/socket.h>
62076#endif
62077
62078typedef struct { double a; int b; } socklen_t;
62079int
62080main ()
62081{
62082socklen_t a;a.a=1.0;
62083  ;
62084  return 0;
62085}
62086_ACEOF
62087if ac_fn_c_try_compile "$LINENO"; then :
62088  pac_cv_have_socklen_t=no
62089else
62090  pac_cv_have_socklen_t=yes
62091fi
62092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62093fi
62094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_socklen_t" >&5
62095$as_echo "$pac_cv_have_socklen_t" >&6; }
62096if test "$pac_cv_have_socklen_t" = no ; then
62097
62098$as_echo "#define socklen_t int" >>confdefs.h
62099
62100fi
62101# Check for h_addr or h_addr_list
62102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct hostent contains h_addr_list" >&5
62103$as_echo_n "checking whether struct hostent contains h_addr_list... " >&6; }
62104if ${pac_cv_have_haddr_list+:} false; then :
62105  $as_echo_n "(cached) " >&6
62106else
62107
62108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62109/* end confdefs.h.  */
62110
62111#include <netdb.h>
62112int
62113main ()
62114{
62115struct hostent hp;hp.h_addr_list[0]=0;
62116  ;
62117  return 0;
62118}
62119_ACEOF
62120if ac_fn_c_try_compile "$LINENO"; then :
62121  pac_cv_have_haddr_list=yes
62122else
62123  pac_cv_have_haddr_list=no
62124fi
62125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62126fi
62127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_haddr_list" >&5
62128$as_echo "$pac_cv_have_haddr_list" >&6; }
62129if test "$pac_cv_have_haddr_list" = "yes" ; then
62130
62131$as_echo "#define HAVE_H_ADDR_LIST 1" >>confdefs.h
62132
62133fi
62134
62135
62136if test "$ac_cv_c_compiler_gnu" = "yes" ; then
62137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ allowed" >&5
62138$as_echo_n "checking whether __attribute__ allowed... " >&6; }
62139if ${pac_cv_gnu_attr_pure+:} false; then :
62140  $as_echo_n "(cached) " >&6
62141else
62142
62143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62144/* end confdefs.h.  */
62145int foo(int) __attribute__ ((pure));
62146int
62147main ()
62148{
62149int a;
62150  ;
62151  return 0;
62152}
62153_ACEOF
62154if ac_fn_c_try_compile "$LINENO"; then :
62155  pac_cv_gnu_attr_pure=yes
62156else
62157  pac_cv_gnu_attr_pure=no
62158fi
62159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62160fi
62161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_pure" >&5
62162$as_echo "$pac_cv_gnu_attr_pure" >&6; }
62163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) allowed" >&5
62164$as_echo_n "checking whether __attribute__((format)) allowed... " >&6; }
62165if ${pac_cv_gnu_attr_format+:} false; then :
62166  $as_echo_n "(cached) " >&6
62167else
62168
62169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62170/* end confdefs.h.  */
62171int foo(char *,...) __attribute__ ((format(printf,1,2)));
62172int
62173main ()
62174{
62175int a;
62176  ;
62177  return 0;
62178}
62179_ACEOF
62180if ac_fn_c_try_compile "$LINENO"; then :
62181  pac_cv_gnu_attr_format=yes
62182else
62183  pac_cv_gnu_attr_format=no
62184fi
62185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62186fi
62187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_format" >&5
62188$as_echo "$pac_cv_gnu_attr_format" >&6; }
62189    if test "$pac_cv_gnu_attr_pure" = "yes" -a "$pac_cv_gnu_attr_format" = "yes" ; then
62190
62191$as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
62192
62193    fi
62194fi
62195
62196
62197fi
62198
62199## end expansion of PAC_SUBCFG_BODY_src_pmi_simple
62200
62201## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3
62202
62203if test -z "$BUILD_CH3_TRUE"; then :
62204
62205{ $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR CH3 DEVICE" >&5
62206$as_echo "$as_me: RUNNING CONFIGURE FOR CH3 DEVICE" >&6;}
62207
62208
62209# Check whether --with-ch3-rank-bits was given.
62210if test "${with_ch3_rank_bits+set}" = set; then :
62211  withval=$with_ch3_rank_bits;  rankbits=$withval
62212else
62213   rankbits=16
62214fi
62215
62216if test "$rankbits" != "16" -a "$rankbits" != "32" ; then
62217   as_fn_error $? "Only 16 or 32-bit ranks are supported" "$LINENO" 5
62218fi
62219
62220cat >>confdefs.h <<_ACEOF
62221#define CH3_RANK_BITS $rankbits
62222_ACEOF
62223
62224
62225for ac_header in assert.h limits.h string.h sys/types.h sys/uio.h uuid/uuid.h \
62226    time.h ctype.h unistd.h arpa/inet.h sys/socket.h
62227do :
62228  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
62229ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
62230if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
62231  cat >>confdefs.h <<_ACEOF
62232#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
62233_ACEOF
62234
62235fi
62236
62237done
62238
62239
62240# net/if.h requires special handling on darwin.  The following code is
62241# straight out of the autoconf-2.63 manual.  Also, sys/socket.h (above)
62242# is a prerequisite.
62243for ac_header in net/if.h
62244do :
62245  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
62246#ifdef STDC_HEADERS
62247# include <stdlib.h>
62248# include <stddef.h>
62249#else
62250# ifdef HAVE_STDLIB_H
62251#  include <stdlib.h>
62252# endif
62253#endif
62254#ifdef HAVE_SYS_SOCKET_H
62255# include <sys/socket.h>
62256#endif
62257
62258"
62259if test "x$ac_cv_header_net_if_h" = xyes; then :
62260  cat >>confdefs.h <<_ACEOF
62261#define HAVE_NET_IF_H 1
62262_ACEOF
62263
62264fi
62265
62266done
62267
62268
62269# Check for special types
62270ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
62271if test "x$ac_cv_type_pid_t" = xyes; then :
62272
62273else
62274
62275cat >>confdefs.h <<_ACEOF
62276#define pid_t int
62277_ACEOF
62278
62279fi
62280
62281
62282# Check for functions
62283for ac_func in inet_pton
62284do :
62285  ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
62286if test "x$ac_cv_func_inet_pton" = xyes; then :
62287  cat >>confdefs.h <<_ACEOF
62288#define HAVE_INET_PTON 1
62289_ACEOF
62290
62291fi
62292done
62293
62294for ac_func in gethostname
62295do :
62296  ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
62297if test "x$ac_cv_func_gethostname" = xyes; then :
62298  cat >>confdefs.h <<_ACEOF
62299#define HAVE_GETHOSTNAME 1
62300_ACEOF
62301
62302fi
62303done
62304
62305if test "$ac_cv_func_gethostname" = "yes" ; then
62306    # Do we need to declare gethostname?
62307
62308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostname needs a declaration" >&5
62309$as_echo_n "checking whether gethostname needs a declaration... " >&6; }
62310if ${pac_cv_func_decl_gethostname+:} false; then :
62311  $as_echo_n "(cached) " >&6
62312else
62313
62314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62315/* end confdefs.h.  */
62316#include <unistd.h>
62317void (*fptr)(void) = (void(*)(void))gethostname;
62318int
62319main ()
62320{
62321
62322  ;
62323  return 0;
62324}
62325_ACEOF
62326if ac_fn_c_try_compile "$LINENO"; then :
62327  pac_cv_func_decl_gethostname=no
62328else
62329  pac_cv_func_decl_gethostname=yes
62330fi
62331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62332fi
62333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_gethostname" >&5
62334$as_echo "$pac_cv_func_decl_gethostname" >&6; }
62335if test "$pac_cv_func_decl_gethostname" = "yes" ; then
62336
62337cat >>confdefs.h <<_ACEOF
62338#define NEEDS_GETHOSTNAME_DECL 1
62339_ACEOF
62340
62341
62342fi
62343
62344fi
62345
62346for ac_func in CFUUIDCreate uuid_generate time
62347do :
62348  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62349ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
62350if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
62351  cat >>confdefs.h <<_ACEOF
62352#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62353_ACEOF
62354
62355fi
62356done
62357
62358
62359# ensure that atomic primitives are available
62360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenPA atomic primitive availability" >&5
62361$as_echo_n "checking for OpenPA atomic primitive availability... " >&6; }
62362
62363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
62364$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
62365if ${ac_cv_c_bigendian+:} false; then :
62366  $as_echo_n "(cached) " >&6
62367else
62368  ac_cv_c_bigendian=unknown
62369    # See if we're dealing with a universal compiler.
62370    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62371/* end confdefs.h.  */
62372#ifndef __APPLE_CC__
62373	       not a universal capable compiler
62374	     #endif
62375	     typedef int dummy;
62376
62377_ACEOF
62378if ac_fn_c_try_compile "$LINENO"; then :
62379
62380	# Check for potential -arch flags.  It is not universal unless
62381	# there are at least two -arch flags with different values.
62382	ac_arch=
62383	ac_prev=
62384	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
62385	 if test -n "$ac_prev"; then
62386	   case $ac_word in
62387	     i?86 | x86_64 | ppc | ppc64)
62388	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
62389		 ac_arch=$ac_word
62390	       else
62391		 ac_cv_c_bigendian=universal
62392		 break
62393	       fi
62394	       ;;
62395	   esac
62396	   ac_prev=
62397	 elif test "x$ac_word" = "x-arch"; then
62398	   ac_prev=arch
62399	 fi
62400       done
62401fi
62402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62403    if test $ac_cv_c_bigendian = unknown; then
62404      # See if sys/param.h defines the BYTE_ORDER macro.
62405      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62406/* end confdefs.h.  */
62407#include <sys/types.h>
62408	     #include <sys/param.h>
62409
62410int
62411main ()
62412{
62413#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
62414		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
62415		     && LITTLE_ENDIAN)
62416	      bogus endian macros
62417	     #endif
62418
62419  ;
62420  return 0;
62421}
62422_ACEOF
62423if ac_fn_c_try_compile "$LINENO"; then :
62424  # It does; now see whether it defined to BIG_ENDIAN or not.
62425	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62426/* end confdefs.h.  */
62427#include <sys/types.h>
62428		#include <sys/param.h>
62429
62430int
62431main ()
62432{
62433#if BYTE_ORDER != BIG_ENDIAN
62434		 not big endian
62435		#endif
62436
62437  ;
62438  return 0;
62439}
62440_ACEOF
62441if ac_fn_c_try_compile "$LINENO"; then :
62442  ac_cv_c_bigendian=yes
62443else
62444  ac_cv_c_bigendian=no
62445fi
62446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62447fi
62448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62449    fi
62450    if test $ac_cv_c_bigendian = unknown; then
62451      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
62452      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62453/* end confdefs.h.  */
62454#include <limits.h>
62455
62456int
62457main ()
62458{
62459#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
62460	      bogus endian macros
62461	     #endif
62462
62463  ;
62464  return 0;
62465}
62466_ACEOF
62467if ac_fn_c_try_compile "$LINENO"; then :
62468  # It does; now see whether it defined to _BIG_ENDIAN or not.
62469	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62470/* end confdefs.h.  */
62471#include <limits.h>
62472
62473int
62474main ()
62475{
62476#ifndef _BIG_ENDIAN
62477		 not big endian
62478		#endif
62479
62480  ;
62481  return 0;
62482}
62483_ACEOF
62484if ac_fn_c_try_compile "$LINENO"; then :
62485  ac_cv_c_bigendian=yes
62486else
62487  ac_cv_c_bigendian=no
62488fi
62489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62490fi
62491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62492    fi
62493    if test $ac_cv_c_bigendian = unknown; then
62494      # Compile a test program.
62495      if test "$cross_compiling" = yes; then :
62496  # Try to guess by grepping values from an object file.
62497	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62498/* end confdefs.h.  */
62499short int ascii_mm[] =
62500		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
62501		short int ascii_ii[] =
62502		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
62503		int use_ascii (int i) {
62504		  return ascii_mm[i] + ascii_ii[i];
62505		}
62506		short int ebcdic_ii[] =
62507		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
62508		short int ebcdic_mm[] =
62509		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
62510		int use_ebcdic (int i) {
62511		  return ebcdic_mm[i] + ebcdic_ii[i];
62512		}
62513		extern int foo;
62514
62515int
62516main ()
62517{
62518return use_ascii (foo) == use_ebcdic (foo);
62519  ;
62520  return 0;
62521}
62522_ACEOF
62523if ac_fn_c_try_compile "$LINENO"; then :
62524  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
62525	      ac_cv_c_bigendian=yes
62526	    fi
62527	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
62528	      if test "$ac_cv_c_bigendian" = unknown; then
62529		ac_cv_c_bigendian=no
62530	      else
62531		# finding both strings is unlikely to happen, but who knows?
62532		ac_cv_c_bigendian=unknown
62533	      fi
62534	    fi
62535fi
62536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62537else
62538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62539/* end confdefs.h.  */
62540$ac_includes_default
62541int
62542main ()
62543{
62544
62545	     /* Are we little or big endian?  From Harbison&Steele.  */
62546	     union
62547	     {
62548	       long int l;
62549	       char c[sizeof (long int)];
62550	     } u;
62551	     u.l = 1;
62552	     return u.c[sizeof (long int) - 1] == 1;
62553
62554  ;
62555  return 0;
62556}
62557_ACEOF
62558if ac_fn_c_try_run "$LINENO"; then :
62559  ac_cv_c_bigendian=no
62560else
62561  ac_cv_c_bigendian=yes
62562fi
62563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
62564  conftest.$ac_objext conftest.beam conftest.$ac_ext
62565fi
62566
62567    fi
62568fi
62569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
62570$as_echo "$ac_cv_c_bigendian" >&6; }
62571 case $ac_cv_c_bigendian in #(
62572   yes)
62573     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
62574;; #(
62575   no)
62576      ;; #(
62577   universal)
62578
62579$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
62580
62581     ;; #(
62582   *)
62583     as_fn_error $? "unknown endianness
62584 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
62585 esac
62586
62587
62588
62589fi
62590## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3
62591
62592## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis
62593
62594
62595if test -z "$BUILD_CH3_NEMESIS_TRUE"; then :
62596
62597{ $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch3:nemesis" >&5
62598$as_echo "$as_me: RUNNING CONFIGURE FOR ch3:nemesis" >&6;}
62599
62600## below is code that formerly lived in configure.ac
62601
62602### Only include papi in CPPFLAGS configure will handle libs, and checking that it exists, etc.
62603##if test -n "${papi_dir}" ; then
62604##    PAC_APPEND_FLAG([-I${papi_dir}/include], [CPPFLAGS])
62605##fi
62606
62607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62608/* end confdefs.h.  */
62609
62610#include <sys/types.h>
62611#include <sys/socket.h>
62612#include <net/if.h>
62613
62614int
62615main ()
62616{
62617
62618  ;
62619  return 0;
62620}
62621_ACEOF
62622if ac_fn_c_try_compile "$LINENO"; then :
62623  lac_cv_header_net_if_h=yes
62624else
62625  lac_cv_header_net_if_h=no
62626fi
62627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62628
62629echo "checking for net/if.h... $lac_cv_header_net_if_h"
62630
62631if test "$lac_cv_header_net_if_h" = "yes" ; then
62632
62633$as_echo "#define HAVE_NET_IF_H 1" >>confdefs.h
62634
62635fi
62636
62637for ac_header in  \
62638    assert.h       \
62639    netdb.h        \
62640    unistd.h       \
62641    sched.h        \
62642    sys/mman.h     \
62643    sys/ioctl.h    \
62644    sys/socket.h   \
62645    sys/sockio.h   \
62646    sys/types.h    \
62647    errno.h        \
62648    sys/ipc.h      \
62649    sys/shm.h      \
62650
62651do :
62652  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
62653ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
62654if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
62655  cat >>confdefs.h <<_ACEOF
62656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
62657_ACEOF
62658
62659fi
62660
62661done
62662
62663
62664# netinet/in.h often requires sys/types.h first.  With AC 2.57, check_headers
62665# does the right thing, which is to test whether the header is found
62666# by the compiler, but this can cause problems when the header needs
62667# other headers.  2.57 changes the syntax (!) of check_headers to allow
62668# additional headers.
62669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/in.h" >&5
62670$as_echo_n "checking for netinet/in.h... " >&6; }
62671if ${ac_cv_header_netinet_in_h+:} false; then :
62672  $as_echo_n "(cached) " >&6
62673else
62674
62675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62676/* end confdefs.h.  */
62677#ifdef HAVE_SYS_TYPES_H
62678#include <sys/types.h>
62679#endif
62680#include <netinet/in.h>
62681int
62682main ()
62683{
62684int a=0;
62685  ;
62686  return 0;
62687}
62688_ACEOF
62689if ac_fn_c_try_compile "$LINENO"; then :
62690  ac_cv_header_netinet_in_h=yes
62691else
62692  ac_cv_header_netinet_in_h=no
62693fi
62694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62695fi
62696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_netinet_in_h" >&5
62697$as_echo "$ac_cv_header_netinet_in_h" >&6; }
62698if test "$ac_cv_header_netinet_in_h" = yes ; then
62699
62700$as_echo "#define HAVE_NETINET_IN_H 1" >>confdefs.h
62701
62702fi
62703
62704# Check whether --enable-fast was given.
62705if test "${enable_fast+set}" = set; then :
62706  enableval=$enable_fast;
62707else
62708  enable_fast=no
62709fi
62710
62711
62712# make sure we support signal
62713for ac_header in signal.h
62714do :
62715  ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
62716if test "x$ac_cv_header_signal_h" = xyes; then :
62717  cat >>confdefs.h <<_ACEOF
62718#define HAVE_SIGNAL_H 1
62719_ACEOF
62720
62721fi
62722
62723done
62724
62725for ac_func in signal
62726do :
62727  ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
62728if test "x$ac_cv_func_signal" = xyes; then :
62729  cat >>confdefs.h <<_ACEOF
62730#define HAVE_SIGNAL 1
62731_ACEOF
62732
62733fi
62734done
62735
62736
62737nemesis_nets_dirs=""
62738nemesis_nets_strings=""
62739nemesis_nets_array=""
62740nemesis_nets_func_decl=""
62741nemesis_nets_func_array=""
62742nemesis_nets_macro_defs=""
62743net_index=0
62744for net in $nemesis_networks ; do
62745    if test ! -d $srcdir/src/mpid/ch3/channels/nemesis/netmod/${net} ; then
62746        as_fn_error $? "Network module ${net} is unknown \"$srcdir/src/mpid/ch3/channels/nemesis/netmod/${net}\"" "$LINENO" 5
62747    fi
62748    net_macro=`echo $net | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
62749    net_macro="MPIDI_NEM_${net_macro}"
62750
62751    if test -z "$nemesis_nets_array" ; then
62752        nemesis_nets_array="$net_macro"
62753    else
62754        nemesis_nets_array="$nemesis_nets_array, $net_macro"
62755    fi
62756
62757    if test -z "$nemesis_nets_strings" ; then
62758        nemesis_nets_strings="\"$net\""
62759    else
62760        nemesis_nets_strings="$nemesis_nets_strings, \"$net\""
62761    fi
62762
62763    if test -z "$nemesis_nets_dirs" ; then
62764        nemesis_nets_dirs="${net}"
62765    else
62766        nemesis_nets_dirs="$nemesis_nets_dirs ${net}"
62767    fi
62768
62769    if test -z "$nemesis_nets_func_decl" ; then
62770        nemesis_nets_func_decl="MPIDI_nem_${net}_funcs"
62771    else
62772        nemesis_nets_func_decl="${nemesis_nets_func_decl}, MPIDI_nem_${net}_funcs"
62773    fi
62774
62775    if test -z "$nemesis_nets_func_array" ; then
62776        nemesis_nets_func_array="&MPIDI_nem_${net}_funcs"
62777    else
62778        nemesis_nets_func_array="${nemesis_nets_func_array}, &MPIDI_nem_${net}_funcs"
62779    fi
62780
62781    if test -z "$nemesis_nets_macro_defs" ; then
62782        nemesis_nets_macro_defs="#define $net_macro $net_index"
62783    else
62784        nemesis_nets_macro_defs=`printf "${nemesis_nets_macro_defs}\n#define $net_macro $net_index"`
62785    fi
62786
62787    net_index=`expr $net_index + 1`
62788
62789done
62790nemesis_nets_array_sz=$net_index
62791
62792
62793# Check whether --with-papi was given.
62794if test "${with_papi+set}" = set; then :
62795  withval=$with_papi;
62796else
62797  with_papi=no
62798fi
62799
62800
62801if test "${with_papi}" != "no" ; then
62802    if test "${with_papi}" != "yes" ; then
62803        PAPI_INCLUDE="-I${with_papi}/include"
62804        CPPFLAGS="$CPPFLAGS $PAPI_INCLUDE"
62805#       LDFLAGS="$LDFLAGS -L${with_papi}/lib"
62806        LIBS="${with_papi}/lib/libpapi.a $LIBS"
62807        LIBS="${with_papi}/lib/libperfctr.a $LIBS"
62808    fi
62809
62810    ac_fn_c_check_header_mongrel "$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
62811if test "x$ac_cv_header_papi_h" = xyes; then :
62812
62813else
62814  as_fn_error $? "'papi.h not found in ${with_papi}/include.  Did you specify the correct path with --with-papi=?'" "$LINENO" 5
62815fi
62816
62817
62818
62819    echo -n "checking for papi libraries... "
62820    if test "$cross_compiling" = yes; then :
62821  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
62822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
62823as_fn_error $? "cannot run test program while cross compiling
62824See \`config.log' for more details" "$LINENO" 5; }
62825else
62826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62827/* end confdefs.h.  */
62828#include <papi.h>
62829int
62830main ()
62831{
62832PAPI_library_init(PAPI_VER_CURRENT);
62833  ;
62834  return 0;
62835}
62836_ACEOF
62837if ac_fn_c_try_run "$LINENO"; then :
62838  echo "yes"
62839else
62840  echo "yes" ; as_fn_error $? "'Cannot link with papi:  Cannot find ${with_papi}/lib/libpapi.a or ${with_papi}/lib/libperfctr.a'" "$LINENO" 5
62841fi
62842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
62843  conftest.$ac_objext conftest.beam conftest.$ac_ext
62844fi
62845
62846
62847
62848#    AC_CHECK_LIB(papi, PAPI_accum, , [AC_MSG_ERROR(['papi library not found.  Did you specify --with-papi=?'])])
62849#    AC_CHECK_LIB(perfctr, perfctr_info, , [AC_MSG_ERROR(['perfctr library not found.  Did you specify --with-papi=?'])])
62850fi
62851
62852# handle missing mkstemp, or missing mkstemp declaration
62853for ac_func in mkstemp
62854do :
62855  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
62856if test "x$ac_cv_func_mkstemp" = xyes; then :
62857  cat >>confdefs.h <<_ACEOF
62858#define HAVE_MKSTEMP 1
62859_ACEOF
62860
62861fi
62862done
62863
62864for ac_func in rand
62865do :
62866  ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand"
62867if test "x$ac_cv_func_rand" = xyes; then :
62868  cat >>confdefs.h <<_ACEOF
62869#define HAVE_RAND 1
62870_ACEOF
62871
62872fi
62873done
62874
62875for ac_func in srand
62876do :
62877  ac_fn_c_check_func "$LINENO" "srand" "ac_cv_func_srand"
62878if test "x$ac_cv_func_srand" = xyes; then :
62879  cat >>confdefs.h <<_ACEOF
62880#define HAVE_SRAND 1
62881_ACEOF
62882
62883fi
62884done
62885
62886
62887# Check for available shared memory functions
62888#PAC_ARG_SHARED_MEMORY
62889#if test "$with_shared_memory" != "mmap" -a "$with_shared_memory" != "sysv"; then
62890#    AC_MSG_ERROR([cannot support shared memory:  need either sysv shared memory functions or mmap in order to support shared memory])
62891#fi
62892
62893# Check whether --enable-nemesis-shm-collectives was given.
62894if test "${enable_nemesis_shm_collectives+set}" = set; then :
62895  enableval=$enable_nemesis_shm_collectives;
62896$as_echo "#define ENABLED_SHM_COLLECTIVES 1" >>confdefs.h
62897
62898fi
62899
62900
62901
62902# These are defines to turn on different optimizations.  Turn them off only for testing
62903
62904$as_echo "#define MPID_NEM_INLINE 1" >>confdefs.h
62905
62906
62907$as_echo "#define PREFETCH_CELL 1" >>confdefs.h
62908
62909
62910$as_echo "#define USE_FASTBOX 1" >>confdefs.h
62911
62912
62913# We may need this only for tcp and related netmodules
62914# Check for h_addr or h_addr_list
62915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct hostent contains h_addr_list" >&5
62916$as_echo_n "checking whether struct hostent contains h_addr_list... " >&6; }
62917if ${pac_cv_have_haddr_list+:} false; then :
62918  $as_echo_n "(cached) " >&6
62919else
62920
62921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62922/* end confdefs.h.  */
62923
62924#include <netdb.h>
62925int
62926main ()
62927{
62928struct hostent hp;hp.h_addr_list[0]=0;
62929  ;
62930  return 0;
62931}
62932_ACEOF
62933if ac_fn_c_try_compile "$LINENO"; then :
62934  pac_cv_have_haddr_list=yes
62935else
62936  pac_cv_have_haddr_list=no
62937fi
62938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62939fi
62940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_haddr_list" >&5
62941$as_echo "$pac_cv_have_haddr_list" >&6; }
62942if test "$pac_cv_have_haddr_list" = "yes" ; then
62943
62944$as_echo "#define HAVE_H_ADDR_LIST 1" >>confdefs.h
62945
62946fi
62947
62948# If we need the socket code, see if we can use struct ifconf
62949# sys/socket.h is needed on Solaris
62950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use struct ifconf" >&5
62951$as_echo_n "checking whether we can use struct ifconf... " >&6; }
62952if ${pac_cv_have_struct_ifconf+:} false; then :
62953  $as_echo_n "(cached) " >&6
62954else
62955
62956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62957/* end confdefs.h.  */
62958
62959#include <sys/types.h>
62960#ifdef HAVE_SYS_SOCKET_H
62961#include <sys/socket.h>
62962#endif
62963#include <net/if.h>
62964
62965int
62966main ()
62967{
62968struct ifconf conftest; int s; s = sizeof(conftest);
62969  ;
62970  return 0;
62971}
62972_ACEOF
62973if ac_fn_c_try_compile "$LINENO"; then :
62974  pac_cv_have_struct_ifconf=yes
62975else
62976  pac_cv_have_struct_ifconf=no
62977fi
62978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62979fi
62980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_struct_ifconf" >&5
62981$as_echo "$pac_cv_have_struct_ifconf" >&6; }
62982
62983# Intentionally not testing whether _SVID_SOURCE or _POSIX_C_SOURCE affects
62984# ifconf availability.  Making those sort of modifications at this stage
62985# invalidates nearly all of our previous tests, since those macros fundamentally
62986# change many features of the compiler on most platforms.  See ticket #1568.
62987
62988if test "$pac_cv_have_struct_ifconf" = "yes" ; then
62989
62990$as_echo "#define HAVE_STRUCT_IFCONF 1" >>confdefs.h
62991
62992fi
62993
62994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use struct ifreq" >&5
62995$as_echo_n "checking whether we can use struct ifreq... " >&6; }
62996if ${pac_cv_have_struct_ifreq+:} false; then :
62997  $as_echo_n "(cached) " >&6
62998else
62999
63000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63001/* end confdefs.h.  */
63002
63003#include <sys/types.h>
63004#ifdef HAVE_SYS_SOCKET_H
63005#include <sys/socket.h>
63006#endif
63007#include <net/if.h>
63008
63009int
63010main ()
63011{
63012struct ifreq conftest; int s; s = sizeof(conftest);
63013  ;
63014  return 0;
63015}
63016_ACEOF
63017if ac_fn_c_try_compile "$LINENO"; then :
63018  pac_cv_have_struct_ifreq=yes
63019else
63020  pac_cv_have_struct_ifreq=no
63021fi
63022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63023fi
63024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_struct_ifreq" >&5
63025$as_echo "$pac_cv_have_struct_ifreq" >&6; }
63026
63027if test "$pac_cv_have_struct_ifreq" = "yes" ; then
63028
63029$as_echo "#define HAVE_STRUCT_IFREQ 1" >>confdefs.h
63030
63031fi
63032
63033# allow the user to select different local LMT implementations
63034
63035# Check whether --with-nemesis-local-lmt was given.
63036if test "${with_nemesis_local_lmt+set}" = set; then :
63037  withval=$with_nemesis_local_lmt;
63038else
63039  with_nemesis_local_lmt=default
63040fi
63041
63042case "$with_nemesis_local_lmt" in
63043    shm_copy|default)
63044    local_lmt_impl=MPID_NEM_LOCAL_LMT_SHM_COPY
63045    ;;
63046    none)
63047    local_lmt_impl=MPID_NEM_LOCAL_LMT_NONE
63048    ;;
63049    *)
63050    as_fn_error $? "Unrecognized value $with_nemesis_local_lmt for --with-nemesis-local-lmt" "$LINENO" 5
63051    ;;
63052esac
63053
63054cat >>confdefs.h <<_ACEOF
63055#define MPID_NEM_LOCAL_LMT_IMPL $local_lmt_impl
63056_ACEOF
63057
63058
63059
63060
63061
63062
63063
63064
63065
63066
63067
63068
63069
63070
63071
63072AS=as
63073
63074
63075ac_config_files="$ac_config_files src/mpid/ch3/channels/nemesis/include/mpid_nem_net_module_defs.h src/mpid/ch3/channels/nemesis/src/mpid_nem_net_array.c"
63076
63077
63078
63079fi
63080## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis
63081
63082  GNULIB__EXIT=0;
63083  GNULIB_ATOLL=0;
63084  GNULIB_CALLOC_POSIX=0;
63085  GNULIB_CANONICALIZE_FILE_NAME=0;
63086  GNULIB_GETLOADAVG=0;
63087  GNULIB_GETSUBOPT=0;
63088  GNULIB_GRANTPT=0;
63089  GNULIB_MALLOC_POSIX=0;
63090  GNULIB_MBTOWC=0;
63091  GNULIB_MKDTEMP=0;
63092  GNULIB_MKOSTEMP=0;
63093  GNULIB_MKOSTEMPS=0;
63094  GNULIB_MKSTEMP=0;
63095  GNULIB_MKSTEMPS=0;
63096  GNULIB_POSIX_OPENPT=0;
63097  GNULIB_PTSNAME=0;
63098  GNULIB_PTSNAME_R=0;
63099  GNULIB_PUTENV=0;
63100  GNULIB_QSORT_R=0;
63101  GNULIB_RANDOM=0;
63102  GNULIB_RANDOM_R=0;
63103  GNULIB_REALLOC_POSIX=0;
63104  GNULIB_REALPATH=0;
63105  GNULIB_RPMATCH=0;
63106  GNULIB_SECURE_GETENV=0;
63107  GNULIB_SETENV=0;
63108  GNULIB_STRTOD=0;
63109  GNULIB_STRTOLL=0;
63110  GNULIB_STRTOULL=0;
63111  GNULIB_SYSTEM_POSIX=0;
63112  GNULIB_UNLOCKPT=0;
63113  GNULIB_UNSETENV=0;
63114  GNULIB_WCTOMB=0;
63115    HAVE__EXIT=1;
63116  HAVE_ATOLL=1;
63117  HAVE_CANONICALIZE_FILE_NAME=1;
63118  HAVE_DECL_GETLOADAVG=1;
63119  HAVE_GETSUBOPT=1;
63120  HAVE_GRANTPT=1;
63121  HAVE_MKDTEMP=1;
63122  HAVE_MKOSTEMP=1;
63123  HAVE_MKOSTEMPS=1;
63124  HAVE_MKSTEMP=1;
63125  HAVE_MKSTEMPS=1;
63126  HAVE_POSIX_OPENPT=1;
63127  HAVE_PTSNAME=1;
63128  HAVE_PTSNAME_R=1;
63129  HAVE_RANDOM=1;
63130  HAVE_RANDOM_H=1;
63131  HAVE_RANDOM_R=1;
63132  HAVE_REALPATH=1;
63133  HAVE_RPMATCH=1;
63134  HAVE_SECURE_GETENV=1;
63135  HAVE_SETENV=1;
63136  HAVE_DECL_SETENV=1;
63137  HAVE_STRTOD=1;
63138  HAVE_STRTOLL=1;
63139  HAVE_STRTOULL=1;
63140  HAVE_STRUCT_RANDOM_DATA=1;
63141  HAVE_SYS_LOADAVG_H=0;
63142  HAVE_UNLOCKPT=1;
63143  HAVE_DECL_UNSETENV=1;
63144  REPLACE_CALLOC=0;
63145  REPLACE_CANONICALIZE_FILE_NAME=0;
63146  REPLACE_MALLOC=0;
63147  REPLACE_MBTOWC=0;
63148  REPLACE_MKSTEMP=0;
63149  REPLACE_PTSNAME=0;
63150  REPLACE_PTSNAME_R=0;
63151  REPLACE_PUTENV=0;
63152  REPLACE_QSORT_R=0;
63153  REPLACE_RANDOM_R=0;
63154  REPLACE_REALLOC=0;
63155  REPLACE_REALPATH=0;
63156  REPLACE_SETENV=0;
63157  REPLACE_STRTOD=0;
63158  REPLACE_UNSETENV=0;
63159  REPLACE_WCTOMB=0;
63160
63161
63162## begin expansion of PAC_SUBCFG_BODY_src_mpid_common_shm
63163
63164
63165
63166
63167
63168
63169  for ac_header in random.h
63170do :
63171  ac_fn_c_check_header_compile "$LINENO" "random.h" "ac_cv_header_random_h" "$ac_includes_default
63172"
63173if test "x$ac_cv_header_random_h" = xyes; then :
63174  cat >>confdefs.h <<_ACEOF
63175#define HAVE_RANDOM_H 1
63176_ACEOF
63177
63178fi
63179
63180done
63181
63182  if test $ac_cv_header_random_h = no; then
63183    HAVE_RANDOM_H=0
63184  fi
63185
63186  ac_fn_c_check_type "$LINENO" "struct random_data" "ac_cv_type_struct_random_data" "#include <stdlib.h>
63187      #if HAVE_RANDOM_H
63188      # include <random.h>
63189      #endif
63190
63191"
63192if test "x$ac_cv_type_struct_random_data" = xyes; then :
63193
63194cat >>confdefs.h <<_ACEOF
63195#define HAVE_STRUCT_RANDOM_DATA 1
63196_ACEOF
63197
63198
63199else
63200  HAVE_STRUCT_RANDOM_DATA=0
63201fi
63202
63203
63204      case "$host_os" in
63205    aix* | osf*)
63206      REPLACE_RANDOM_R=1
63207      ;;
63208    *)
63209      for ac_func in random_r
63210do :
63211  ac_fn_c_check_func "$LINENO" "random_r" "ac_cv_func_random_r"
63212if test "x$ac_cv_func_random_r" = xyes; then :
63213  cat >>confdefs.h <<_ACEOF
63214#define HAVE_RANDOM_R 1
63215_ACEOF
63216
63217fi
63218done
63219
63220      if test $ac_cv_func_random_r = no; then
63221        HAVE_RANDOM_R=0
63222      fi
63223      ;;
63224  esac
63225
63226if test "$HAVE_RANDOM_R" = "1" -a "$HAVE_STRUCT_RANDOM_DATA" = "1" ; then
63227
63228$as_echo "#define USE_SYM_HEAP 1" >>confdefs.h
63229
63230    { $as_echo "$as_me:${as_lineno-$LINENO}: Using a symmetric heap" >&5
63231$as_echo "$as_me: Using a symmetric heap" >&6;}
63232else
63233    { $as_echo "$as_me:${as_lineno-$LINENO}: Using a non-symmetric heap" >&5
63234$as_echo "$as_me: Using a non-symmetric heap" >&6;}
63235fi
63236
63237
63238## end expansion of PAC_SUBCFG_BODY_src_mpid_common_shm
63239
63240## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_ofi
63241
63242if test -z "$BUILD_NEMESIS_NETMOD_OFI_TRUE"; then :
63243
63244    { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch3:nemesis:ofi" >&5
63245$as_echo "$as_me: RUNNING CONFIGURE FOR ch3:nemesis:ofi" >&6;}
63246
63247
63248	if test -z "${pac_save_LIBS_nesting}" ; then
63249	   pac_save_LIBS_nesting=0
63250	fi
63251	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
63252	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
63253
63254
63255
63256
63257# Check whether --with-ofi was given.
63258if test "${with_ofi+set}" = set; then :
63259  withval=$with_ofi;
63260fi
63261
63262
63263
63264# Check whether --with-ofi-include was given.
63265if test "${with_ofi_include+set}" = set; then :
63266  withval=$with_ofi_include; case "$withval" in #(
63267  yes|no|'') :
63268    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ofi-include=PATH expects a valid PATH" >&5
63269$as_echo "$as_me: WARNING: --without-ofi-include=PATH expects a valid PATH" >&2;}
63270                          with_ofi_include="" ;; #(
63271  *) :
63272     ;;
63273esac
63274fi
63275
63276
63277# Check whether --with-ofi-lib was given.
63278if test "${with_ofi_lib+set}" = set; then :
63279  withval=$with_ofi_lib; case "$withval" in #(
63280  yes|no|'') :
63281    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ofi-lib=PATH expects a valid PATH" >&5
63282$as_echo "$as_me: WARNING: --without-ofi-lib=PATH expects a valid PATH" >&2;}
63283                          with_ofi_lib="" ;; #(
63284  *) :
63285     ;;
63286esac
63287fi
63288
63289
63290    # The args have been sanitized into empty/non-empty values above.
63291    # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
63292    # taking priority
63293
63294    case "${with_ofi}" in
63295        embedded)
63296            as_fn_error $? "embedded ofi is requested but we do not have the embedded version" "$LINENO" 5
63297            ;;
63298        yes|no)
63299            # skip
63300            ;;
63301        *)
63302    if test -n "${with_ofi_include}"; then :
63303
63304
63305	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ofi_include}\>" >/dev/null 2>&1; then :
63306  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ofi_include}', not appending" >&5
63307else
63308  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ofi_include}', appending" >&5
63309		CPPFLAGS="$CPPFLAGS -I${with_ofi_include}"
63310
63311fi
63312
63313else
63314  if test -n "${with_ofi}"; then :
63315
63316
63317	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ofi}/include\>" >/dev/null 2>&1; then :
63318  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ofi}/include', not appending" >&5
63319else
63320  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ofi}/include', appending" >&5
63321		CPPFLAGS="$CPPFLAGS -I${with_ofi}/include"
63322
63323fi
63324
63325fi
63326fi
63327
63328    if test -n "${with_ofi_lib}"; then :
63329
63330
63331	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ofi_lib}\>" >/dev/null 2>&1; then :
63332  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ofi_lib}', not appending" >&5
63333else
63334  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ofi_lib}', appending" >&5
63335		LDFLAGS="$LDFLAGS -L${with_ofi_lib}"
63336
63337fi
63338
63339else
63340  if test -n "${with_ofi}"; then :
63341
63342
63343	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ofi}/lib\>" >/dev/null 2>&1; then :
63344  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ofi}/lib', not appending" >&5
63345else
63346  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ofi}/lib', appending" >&5
63347		LDFLAGS="$LDFLAGS -L${with_ofi}/lib"
63348
63349fi
63350
63351                  if test -d "${with_ofi}/lib64"; then :
63352
63353
63354	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ofi}/lib64\>" >/dev/null 2>&1; then :
63355  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ofi}/lib64', not appending" >&5
63356else
63357  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ofi}/lib64', appending" >&5
63358		LDFLAGS="$LDFLAGS -L${with_ofi}/lib64"
63359
63360fi
63361
63362fi
63363
63364fi
63365
63366fi
63367            ;;
63368    esac
63369
63370
63371    failure=no
63372    ac_fn_c_check_header_mongrel "$LINENO" "rdma/fabric.h" "ac_cv_header_rdma_fabric_h" "$ac_includes_default"
63373if test "x$ac_cv_header_rdma_fabric_h" = xyes; then :
63374
63375else
63376  failure=yes
63377fi
63378
63379
63380
63381	if test -z "${pac_save_LIBS_nesting}" ; then
63382	   pac_save_LIBS_nesting=0
63383	fi
63384	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
63385	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
63386
63387    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fi_getinfo in -lfabric" >&5
63388$as_echo_n "checking for fi_getinfo in -lfabric... " >&6; }
63389if ${ac_cv_lib_fabric_fi_getinfo+:} false; then :
63390  $as_echo_n "(cached) " >&6
63391else
63392  ac_check_lib_save_LIBS=$LIBS
63393LIBS="-lfabric  $LIBS"
63394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63395/* end confdefs.h.  */
63396
63397/* Override any GCC internal prototype to avoid an error.
63398   Use char because int might match the return type of a GCC
63399   builtin and then its argument prototype would still apply.  */
63400#ifdef __cplusplus
63401extern "C"
63402#endif
63403char fi_getinfo ();
63404int
63405main ()
63406{
63407return fi_getinfo ();
63408  ;
63409  return 0;
63410}
63411_ACEOF
63412if ac_fn_c_try_link "$LINENO"; then :
63413  ac_cv_lib_fabric_fi_getinfo=yes
63414else
63415  ac_cv_lib_fabric_fi_getinfo=no
63416fi
63417rm -f core conftest.err conftest.$ac_objext \
63418    conftest$ac_exeext conftest.$ac_ext
63419LIBS=$ac_check_lib_save_LIBS
63420fi
63421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fabric_fi_getinfo" >&5
63422$as_echo "$ac_cv_lib_fabric_fi_getinfo" >&6; }
63423if test "x$ac_cv_lib_fabric_fi_getinfo" = xyes; then :
63424  cat >>confdefs.h <<_ACEOF
63425#define HAVE_LIBFABRIC 1
63426_ACEOF
63427
63428  LIBS="-lfabric $LIBS"
63429
63430else
63431  failure=yes
63432fi
63433
63434
63435	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
63436	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
63437	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
63438
63439    if test "$failure" = "no" ; then
63440       success=yes
63441    else
63442       success=no
63443    fi
63444
63445    if test "$success" = "no" ; then
63446        as_fn_error $? "rdma/fabric.h or libfabric library not found. Did you specify --with-ofi= or --with-ofi-include= or --with-ofi-lib=?" "$LINENO" 5
63447    fi
63448
63449
63450
63451	if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lfabric\>" >/dev/null 2>&1; then :
63452  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lfabric', not appending" >&5
63453else
63454  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lfabric', appending" >&5
63455		WRAPPER_LIBS="$WRAPPER_LIBS -lfabric"
63456
63457fi
63458
63459
63460
63461
63462
63463	if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lfabric\>" >/dev/null 2>&1; then :
63464  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lfabric', not appending" >&5
63465else
63466  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lfabric', appending" >&5
63467		WRAPPER_LIBS="$WRAPPER_LIBS -lfabric"
63468
63469fi
63470
63471
63472	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
63473	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
63474	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
63475
63476
63477
63478$as_echo "#define ENABLE_COMM_OVERRIDES 1" >>confdefs.h
63479
63480
63481fi
63482## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_ofi
63483
63484## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_tcp
63485
63486# nothing to do for tcp right now
63487
63488## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_nemesis_netmod_tcp
63489
63490## begin expansion of PAC_SUBCFG_BODY_src_mpid_common_thread
63491
63492if test -z "$BUILD_MPID_COMMON_THREAD_TRUE"; then :
63493
63494        :
63495
63496fi
63497## end expansion of PAC_SUBCFG_BODY_src_mpid_common_thread
63498
63499## begin expansion of PAC_SUBCFG_BODY_src_mpid_common_sched
63500
63501
63502
63503## end expansion of PAC_SUBCFG_BODY_src_mpid_common_sched
63504
63505## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_sock
63506
63507if test -z "$BUILD_CH3_SOCK_TRUE"; then :
63508
63509{ $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch3:sock" >&5
63510$as_echo "$as_me: RUNNING CONFIGURE FOR ch3:sock" >&6;}
63511# code that formerly lived in configure.ac
63512
63513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63514/* end confdefs.h.  */
63515
63516#include <sys/types.h>
63517#include <sys/socket.h>
63518#include <net/if.h>
63519
63520int
63521main ()
63522{
63523
63524  ;
63525  return 0;
63526}
63527_ACEOF
63528if ac_fn_c_try_compile "$LINENO"; then :
63529  lac_cv_header_net_if_h=yes
63530else
63531  lac_cv_header_net_if_h=no
63532fi
63533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63534
63535# FIXME why doesn't this use the proper machinery?
63536echo "checking for net/if.h... $lac_cv_header_net_if_h"
63537
63538if test "$lac_cv_header_net_if_h" = "yes" ; then
63539
63540$as_echo "#define HAVE_NET_IF_H 1" >>confdefs.h
63541
63542fi
63543
63544for ac_header in \
63545	netdb.h					\
63546	sys/ioctl.h				\
63547	sys/socket.h				\
63548	sys/sockio.h				\
63549	sys/types.h				\
63550	errno.h
63551do :
63552  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
63553ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
63554if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
63555  cat >>confdefs.h <<_ACEOF
63556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
63557_ACEOF
63558
63559fi
63560
63561done
63562
63563
63564# netinet/in.h often requires sys/types.h first.  With AC 2.57, check_headers
63565# does the right thing, which is to test whether the header is found
63566# by the compiler, but this can cause problems when the header needs
63567# other headers.  2.57 changes the syntax (!) of check_headers to allow
63568# additional headers.
63569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for netinet/in.h" >&5
63570$as_echo_n "checking for netinet/in.h... " >&6; }
63571if ${ac_cv_header_netinet_in_h+:} false; then :
63572  $as_echo_n "(cached) " >&6
63573else
63574
63575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63576/* end confdefs.h.  */
63577#ifdef HAVE_SYS_TYPES_H
63578#include <sys/types.h>
63579#endif
63580#include <netinet/in.h>
63581int
63582main ()
63583{
63584int a=0;
63585  ;
63586  return 0;
63587}
63588_ACEOF
63589if ac_fn_c_try_compile "$LINENO"; then :
63590  ac_cv_header_netinet_in_h=yes
63591else
63592  ac_cv_header_netinet_in_h=no
63593fi
63594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63595fi
63596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_netinet_in_h" >&5
63597$as_echo "$ac_cv_header_netinet_in_h" >&6; }
63598if test "$ac_cv_header_netinet_in_h" = yes ; then
63599
63600$as_echo "#define HAVE_NETINET_IN_H 1" >>confdefs.h
63601
63602fi
63603
63604
63605fi
63606## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3_channels_sock
63607
63608## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch3_util_sock
63609
63610    if test -z "$BUILD_CH3_UTIL_SOCK_TRUE"; then :
63611
63612    { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR CH3U SOCK CODE" >&5
63613$as_echo "$as_me: RUNNING CONFIGURE FOR CH3U SOCK CODE" >&6;}
63614
63615    for ac_header in assert.h limits.h string.h sys/types.h sys/uio.h \
63616        time.h ctype.h unistd.h arpa/inet.h sys/socket.h net/if.h
63617do :
63618  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
63619ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
63620if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
63621  cat >>confdefs.h <<_ACEOF
63622#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
63623_ACEOF
63624
63625fi
63626
63627done
63628
63629
63630    # Check for special types
63631    ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
63632if test "x$ac_cv_type_pid_t" = xyes; then :
63633
63634else
63635
63636cat >>confdefs.h <<_ACEOF
63637#define pid_t int
63638_ACEOF
63639
63640fi
63641
63642
63643    # Check for functions
63644    for ac_func in inet_pton
63645do :
63646  ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
63647if test "x$ac_cv_func_inet_pton" = xyes; then :
63648  cat >>confdefs.h <<_ACEOF
63649#define HAVE_INET_PTON 1
63650_ACEOF
63651
63652fi
63653done
63654
63655    for ac_func in gethostname
63656do :
63657  ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
63658if test "x$ac_cv_func_gethostname" = xyes; then :
63659  cat >>confdefs.h <<_ACEOF
63660#define HAVE_GETHOSTNAME 1
63661_ACEOF
63662
63663fi
63664done
63665
63666    if test "$ac_cv_func_gethostname" = "yes" ; then
63667        # Do we need to declare gethostname?
63668
63669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostname needs a declaration" >&5
63670$as_echo_n "checking whether gethostname needs a declaration... " >&6; }
63671if ${pac_cv_func_decl_gethostname+:} false; then :
63672  $as_echo_n "(cached) " >&6
63673else
63674
63675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63676/* end confdefs.h.  */
63677#include <unistd.h>
63678void (*fptr)(void) = (void(*)(void))gethostname;
63679int
63680main ()
63681{
63682
63683  ;
63684  return 0;
63685}
63686_ACEOF
63687if ac_fn_c_try_compile "$LINENO"; then :
63688  pac_cv_func_decl_gethostname=no
63689else
63690  pac_cv_func_decl_gethostname=yes
63691fi
63692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63693fi
63694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_gethostname" >&5
63695$as_echo "$pac_cv_func_decl_gethostname" >&6; }
63696if test "$pac_cv_func_decl_gethostname" = "yes" ; then
63697
63698cat >>confdefs.h <<_ACEOF
63699#define NEEDS_GETHOSTNAME_DECL 1
63700_ACEOF
63701
63702
63703fi
63704
63705    fi
63706
63707
63708    # If we need the socket code, see if we can use struct ifconf
63709    # sys/socket.h is needed on Solaris
63710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use struct ifconf" >&5
63711$as_echo_n "checking whether we can use struct ifconf... " >&6; }
63712if ${pac_cv_have_struct_ifconf+:} false; then :
63713  $as_echo_n "(cached) " >&6
63714else
63715
63716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63717/* end confdefs.h.  */
63718
63719#include <sys/types.h>
63720#ifdef HAVE_SYS_SOCKET_H
63721#include <sys/socket.h>
63722#endif
63723#include <net/if.h>
63724
63725int
63726main ()
63727{
63728struct ifconf conftest;
63729  ;
63730  return 0;
63731}
63732_ACEOF
63733if ac_fn_c_try_compile "$LINENO"; then :
63734  pac_cv_have_struct_ifconf=yes
63735else
63736  pac_cv_have_struct_ifconf=no
63737fi
63738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63739fi
63740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_struct_ifconf" >&5
63741$as_echo "$pac_cv_have_struct_ifconf" >&6; }
63742
63743    if test "$pac_cv_have_struct_ifconf" = "no" ; then
63744        # Try again with _SVID_SOURCE
63745        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use struct ifconf with _SVID_SOURCE" >&5
63746$as_echo_n "checking whether we can use struct ifconf with _SVID_SOURCE... " >&6; }
63747if ${pac_cv_have_struct_ifconf_with_svid+:} false; then :
63748  $as_echo_n "(cached) " >&6
63749else
63750
63751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63752/* end confdefs.h.  */
63753
63754#define _SVID_SOURCE
63755#include <sys/types.h>
63756#ifdef HAVE_SYS_SOCKET_H
63757#include <sys/socket.h>
63758#endif
63759#include <net/if.h>
63760
63761int
63762main ()
63763{
63764struct ifconf conftest;
63765  ;
63766  return 0;
63767}
63768_ACEOF
63769if ac_fn_c_try_compile "$LINENO"; then :
63770  pac_cv_have_struct_ifconf_with_svid=yes
63771else
63772  pac_cv_have_struct_ifconf_with_svid=no
63773fi
63774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63775fi
63776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_struct_ifconf_with_svid" >&5
63777$as_echo "$pac_cv_have_struct_ifconf_with_svid" >&6; }
63778        if test "$pac_cv_have_struct_ifconf_with_svid" = yes ; then
63779
63780$as_echo "#define USE_SVIDSOURCE_FOR_IFCONF 1" >>confdefs.h
63781
63782        fi
63783    fi
63784
63785    if test "$pac_cv_have_struct_ifconf" = "no" -a \
63786            "$pac_cv_have_struct_ifconf_with_svid" = "no" ; then
63787        # Try again with undef _POSIX_C_SOURCE
63788        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use struct ifconf without _POSIX_C_SOURCE" >&5
63789$as_echo_n "checking whether we can use struct ifconf without _POSIX_C_SOURCE... " >&6; }
63790if ${pac_cv_have_struct_ifconf_without_posix+:} false; then :
63791  $as_echo_n "(cached) " >&6
63792else
63793
63794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63795/* end confdefs.h.  */
63796
63797#undef _POSIX_C_SOURCE
63798#include <sys/types.h>
63799#ifdef HAVE_SYS_SOCKET_H
63800#include <sys/socket.h>
63801#endif
63802#include <net/if.h>
63803
63804int
63805main ()
63806{
63807struct ifconf conftest;
63808  ;
63809  return 0;
63810}
63811_ACEOF
63812if ac_fn_c_try_compile "$LINENO"; then :
63813  pac_cv_have_struct_ifconf_without_posix=yes
63814else
63815  pac_cv_have_struct_ifconf_without_posix=no
63816fi
63817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63818fi
63819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_struct_ifconf_without_posix" >&5
63820$as_echo "$pac_cv_have_struct_ifconf_without_posix" >&6; }
63821        if test "$pac_cv_have_struct_ifconf_without_posix" = yes ; then
63822
63823$as_echo "#define USE_NOPOSIX_FOR_IFCONF 1" >>confdefs.h
63824
63825        fi
63826    fi
63827
63828    if test "$pac_cv_have_struct_ifconf" = "yes" -o \
63829            "$pac_cv_have_struct_ifconf_with_svid" = "yes" -o \
63830            "$pac_cv_have_struct_ifconf_without_posix" ; then
63831
63832$as_echo "#define HAVE_STRUCT_IFCONF 1" >>confdefs.h
63833
63834    fi
63835
63836
63837fi
63838## end expansion of PAC_SUBCFG_BODY_src_mpid_ch3_util_sock
63839
63840## begin expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_ofi
63841
63842if test -z "$BUILD_CH4_NETMOD_OFI_TRUE"; then :
63843
63844    { $as_echo "$as_me:${as_lineno-$LINENO}: RUNNING CONFIGURE FOR ch4:ofi" >&5
63845$as_echo "$as_me: RUNNING CONFIGURE FOR ch4:ofi" >&6;}
63846
63847    ofisrcdir=""
63848
63849    ofilib=""
63850
63851
63852    ofi_embedded=""
63853    if test $have_libfabric = no ; then
63854        ofi_embedded="yes"
63855    fi
63856
63857    runtime_capabilities="no"
63858    no_providers="no"
63859    # $netmod_args - contains the OFI provider
63860    if test "${netmod_args#* }" != "$netmod_args" ; then
63861        runtime_capabilities="yes"
63862        { $as_echo "$as_me:${as_lineno-$LINENO}: Using runtime capability set due to multiple selected providers" >&5
63863$as_echo "$as_me: Using runtime capability set due to multiple selected providers" >&6;}
63864    elif test "x$netmod_args" = "x" || test "$netmod_args" = "runtime"; then
63865        runtime_capabilities="yes"
63866        no_providers="yes"
63867        { $as_echo "$as_me:${as_lineno-$LINENO}: Using runtime capability set due to no selected provider or explicity runtime selection" >&5
63868$as_echo "$as_me: Using runtime capability set due to no selected provider or explicity runtime selection" >&6;}
63869    fi
63870
63871    if test "$no_providers" = "no" ; then
63872        enable_psm="no"
63873        enable_psm2="no"
63874        enable_sockets="no"
63875        enable_verbs="no"
63876        enable_usnic="no"
63877        enable_gni="no"
63878        enable_bgq="no"
63879        enable_udp="no"
63880        enable_rxm="no"
63881        enable_rxd="no"
63882        enable_tcp="no"
63883        enable_shm="no"
63884        enable_mlx="no"
63885        enable_perf="no"
63886        enable_rstream="no"
63887        enable_mrail="no"
63888        enable_efa="no"
63889        enable_netdir="no"
63890    else
63891        enable_psm="yes"
63892        enable_psm2="yes"
63893        enable_sockets="yes"
63894        enable_verbs="yes"
63895        enable_usnic="yes"
63896        enable_gni="yes"
63897        enable_bgq="yes"
63898        enable_udp="yes"
63899        enable_rxm="yes"
63900        enable_rxd="yes"
63901        enable_tcp="yes"
63902        enable_shm="yes"
63903        enable_mlx="yes"
63904        enable_perf="yes"
63905        enable_rstream="yes"
63906        enable_mrail="yes"
63907        enable_efa="yes"
63908        enable_netdir="yes"
63909    fi
63910
63911    for provider in $netmod_args ; do
63912        case "$provider" in
63913                                    "psm")
63914                enable_psm="yes"
63915                ;;
63916            "psm2" | "opa")
63917                enable_psm2="yes"
63918                ;;
63919            "sockets")
63920                enable_sockets="yes"
63921                ;;
63922            "gni")
63923                enable_gni="yes"
63924                ;;
63925            "bgq")
63926                enable_bgq="yes"
63927                ;;
63928            "verbs;ofi_rxm")
63929                enable_verbs="yes"
63930                enable_rxm="yes"
63931                ;;
63932
63933                                                "verbs")
63934                enable_verbs="yes"
63935                runtime_capabilities="yes"
63936                ;;
63937            "efa")
63938                enable_efa="yes"
63939                runtime_capabilities="yes"
63940                ;;
63941            "usnic")
63942                enable_usnic="yes"
63943                runtime_capabilities="yes"
63944                ;;
63945            "udp")
63946                enable_udp="yes"
63947                runtime_capabilities="yes"
63948                ;;
63949            "rxm")
63950                enable_rxm="yes"
63951                runtime_capabilities="yes"
63952                ;;
63953            "rxd")
63954                enable_rxd="yes"
63955                runtime_capabilities="yes"
63956                ;;
63957            "tcp")
63958                enable_tcp="yes"
63959                runtime_capabilities="yes"
63960                ;;
63961            "shm")
63962                enable_shm="yes"
63963                runtime_capabilities="yes"
63964                ;;
63965            "mlx")
63966                enable_mlx="yes"
63967                runtime_capabilities="yes"
63968                ;;
63969            "perf")
63970                enable_perf="yes"
63971                runtime_capabilities="yes"
63972                ;;
63973            "rstream")
63974                enable_rstream="yes"
63975                runtime_capabilities="yes"
63976                ;;
63977            "mrail")
63978                enable_mrail="yes"
63979                runtime_capabilities="yes"
63980                ;;
63981            "netdir")
63982                enable_netdir="yes"
63983                runtime_capabilities="yes"
63984                ;;
63985            *)
63986                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Invalid provider $provider\"" >&5
63987$as_echo "$as_me: WARNING: \"Invalid provider $provider\"" >&2;}
63988        esac
63989    done
63990
63991    if test "$runtime_capabilities" = "yes" ; then
63992
63993$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
63994
63995    else
63996        case "$netmod_args" in
63997            "psm")
63998
63999$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64000
64001                enable_psm="yes"
64002                ;;
64003            "psm2" | "opa")
64004
64005$as_echo "#define MPIDI_CH4_OFI_USE_SET_PSM2 1" >>confdefs.h
64006
64007                enable_psm2="yes"
64008                ;;
64009            "sockets")
64010
64011$as_echo "#define MPIDI_CH4_OFI_USE_SET_SOCKETS 1" >>confdefs.h
64012
64013                enable_sockets="yes"
64014                ;;
64015            "gni")
64016
64017$as_echo "#define MPIDI_CH4_OFI_USE_SET_GNI 1" >>confdefs.h
64018
64019                enable_gni="yes"
64020                ;;
64021            "bgq")
64022
64023$as_echo "#define MPIDI_CH4_OFI_USE_SET_BGQ 1" >>confdefs.h
64024
64025                enable_bgq="yes"
64026                ;;
64027            "verbs")
64028
64029$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64030
64031                enable_verbs="yes"
64032                ;;
64033            "usnic")
64034
64035$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64036
64037                enable_usnic="yes"
64038                ;;
64039            "udp")
64040
64041$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64042
64043                enable_udp="yes"
64044                ;;
64045            "rxm")
64046
64047$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64048
64049                enable_rxm="yes"
64050                ;;
64051            "rxd")
64052
64053$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64054
64055                enable_rxd="yes"
64056                ;;
64057            "tcp")
64058
64059$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64060
64061                enable_tcp="yes"
64062                ;;
64063            "shm")
64064
64065$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64066
64067                enable_shm="yes"
64068                ;;
64069            "mlx")
64070
64071$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64072
64073                enable_mlx="yes"
64074                ;;
64075            "perf")
64076
64077$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64078
64079                enable_perf="yes"
64080                ;;
64081            "rstream")
64082
64083$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64084
64085                enable_rstream="yes"
64086                ;;
64087            "mrail")
64088
64089$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64090
64091                enable_mrail="yes"
64092                ;;
64093            "efa")
64094
64095$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64096
64097                enable_efa="yes"
64098                ;;
64099            "netdir")
64100
64101$as_echo "#define MPIDI_CH4_OFI_USE_SET_RUNTIME 1" >>confdefs.h
64102
64103                enable_netdir="yes"
64104                ;;
64105            "verbs;ofi_rxm")
64106
64107$as_echo "#define MPIDI_CH4_OFI_USE_SET_VERBS_RXM 1" >>confdefs.h
64108
64109                enable_verbs="yes"
64110                enable_rxm="yes"
64111                ;;
64112            *)
64113                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Invalid provider $netmod_args\"" >&5
64114$as_echo "$as_me: WARNING: \"Invalid provider $netmod_args\"" >&2;}
64115        esac
64116    fi
64117
64118    if test "${ofi_embedded}" = "yes" ; then
64119        { $as_echo "$as_me:${as_lineno-$LINENO}: CH4 OFI Netmod:  Using an embedded libfabric" >&5
64120$as_echo "$as_me: CH4 OFI Netmod:  Using an embedded libfabric" >&6;}
64121        ofi_subdir_args="--enable-embedded"
64122
64123        prov_config=""
64124        if test "x${netmod_args}" != "x" ; then
64125            prov_config="$prov_config --enable-psm=${enable_psm}"
64126            prov_config="$prov_config --enable-psm2=${enable_psm2}"
64127            prov_config="$prov_config --enable-sockets=${enable_sockets}"
64128            prov_config="$prov_config --enable-verbs=${enable_verbs}"
64129            prov_config="$prov_config --enable-usnic=${enable_usnic}"
64130            prov_config="$prov_config --enable-gni=${enable_gni}"
64131            prov_config="$prov_config --enable-bgq=${enable_bgq}"
64132            prov_config="$prov_config --enable-udp=${enable_udp}"
64133            prov_config="$prov_config --enable-rxm=${enable_rxm}"
64134            prov_config="$prov_config --enable-rxd=${enable_rxd}"
64135            prov_config="$prov_config --enable-tcp=${enable_tcp}"
64136            prov_config="$prov_config --enable-shm=${enable_shm}"
64137            prov_config="$prov_config --enable-mlx=${enable_mlx}"
64138            prov_config="$prov_config --enable-perf=${enable_perf}"
64139            prov_config="$prov_config --enable-rstream=${enable_rstream}"
64140            prov_config="$prov_config --enable-mrail=${enable_mrail}"
64141            prov_config="$prov_config --enable-efa=${enable_efa}"
64142            prov_config="$prov_config --enable-netdir=${enable_netdir}"
64143        fi
64144
64145        if test "x${ofi_direct_provider}" != "x" ; then
64146            prov_config="$prov_config --enable-direct=${ofi_direct_provider}"
64147            { $as_echo "$as_me:${as_lineno-$LINENO}: Enabling direct embedded provider: ${ofi_direct_provider}" >&5
64148$as_echo "$as_me: Enabling direct embedded provider: ${ofi_direct_provider}" >&6;}
64149        fi
64150
64151        ofi_subdir_args="$ofi_subdir_args $prov_config"
64152
64153
64154
64155	if test -z "${pac_save_CFLAGS_nesting}" ; then
64156	   pac_save_CFLAGS_nesting=0
64157	fi
64158	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
64159	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
64160
64161
64162	if test -z "${pac_save_CPPFLAGS_nesting}" ; then
64163	   pac_save_CPPFLAGS_nesting=0
64164	fi
64165	eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}='"$CPPFLAGS"'
64166	pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} + 1`
64167
64168
64169	if test -z "${pac_save_CXXFLAGS_nesting}" ; then
64170	   pac_save_CXXFLAGS_nesting=0
64171	fi
64172	eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}='"$CXXFLAGS"'
64173	pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} + 1`
64174
64175
64176	if test -z "${pac_save_FFLAGS_nesting}" ; then
64177	   pac_save_FFLAGS_nesting=0
64178	fi
64179	eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}='"$FFLAGS"'
64180	pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} + 1`
64181
64182
64183	if test -z "${pac_save_FCFLAGS_nesting}" ; then
64184	   pac_save_FCFLAGS_nesting=0
64185	fi
64186	eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}='"$FCFLAGS"'
64187	pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} + 1`
64188
64189
64190	if test -z "${pac_save_LDFLAGS_nesting}" ; then
64191	   pac_save_LDFLAGS_nesting=0
64192	fi
64193	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"'
64194	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1`
64195
64196
64197	if test -z "${pac_save_LIBS_nesting}" ; then
64198	   pac_save_LIBS_nesting=0
64199	fi
64200	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
64201	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
64202
64203
64204
64205	if test "$FROM_MPICH" = "yes" ; then
64206	   CFLAGS="$USER_CFLAGS"
64207	   CPPFLAGS="$USER_CPPFLAGS"
64208	   CXXFLAGS="$USER_CXXFLAGS"
64209	   FFLAGS="$USER_FFLAGS"
64210	   FCFLAGS="$USER_FCFLAGS"
64211	   LDFLAGS="$USER_LDFLAGS"
64212	   LIBS="$USER_LIBS"
64213	fi
64214
64215
64216        pac_dir="modules/libfabric"
64217        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring modules/libfabric =====" >&5
64218$as_echo "$as_me: ===== configuring modules/libfabric =====" >&6;}
64219
64220	pac_abs_srcdir=`(cd $srcdir && pwd)`
64221
64222	if test -f $pac_abs_srcdir/modules/libfabric/setup ; then
64223           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/modules/libfabric/setup" >&5
64224$as_echo "$as_me: sourcing $pac_abs_srcdir/modules/libfabric/setup" >&6;}
64225	   . $pac_abs_srcdir/modules/libfabric/setup
64226	fi
64227
64228        # Adapted for MPICH from the autoconf-2.67 implementation of
64229        # AC_CONFIG_SUBDIRS.  Search for "MPICH note:" for relevant commentary and
64230        # local modifications.
64231
64232        # Remove --cache-file, --srcdir, and --disable-option-checking arguments
64233        # so they do not pile up.  Otherwise relative paths (like --srcdir=.. from
64234        # make distcheck) will be incorrect.
64235        pac_sub_configure_args="$ofi_subdir_args"
64236        pac_prev=
64237        eval "set x $ac_configure_args"
64238        shift
64239        for pac_arg
64240        do
64241          if test -n "$pac_prev"; then
64242            pac_prev=
64243            continue
64244          fi
64245          case $pac_arg in
64246          -cache-file | --cache-file | --cache-fil | --cache-fi \
64247          | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
64248            pac_prev=cache_file ;;
64249          -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
64250          | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
64251          | --c=*)
64252            ;;
64253          --config-cache | -C)
64254            ;;
64255          -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
64256            pac_prev=srcdir ;;
64257          -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
64258            ;;
64259          -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
64260            pac_prev=prefix ;;
64261          -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
64262            ;;
64263          --disable-option-checking)
64264            ;;
64265          *)
64266            # MPICH note: this is a more robust version of the "precious
64267            # variable" propagation code that was present in the previous
64268            # incarnation of this macro
64269            for pac_pvar in $ac_precious_vars ; do
64270                # check if configure argument token contains the
64271                # precious variable, i.e. "name_of_prec_var=".
64272                if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then
64273                    # check if current precious variable is set in env
64274                    eval pvar_set=\${$pac_pvar+set}
64275                    if test "$pvar_set" = "set" ; then
64276                        # Append 'name_of_prec_var=value_of_prec_var'
64277                        # to the subconfigure arguments list, where
64278                        # value_of_prec_var is fetched from the env.
64279                        # this also overrides any value set on the command line
64280                        eval pac_pval=\${$pac_pvar}
64281                        pac_arg="$pac_pvar=$pac_pval"
64282                        break
64283                    fi
64284                fi
64285            done
64286            case $pac_arg in
64287            *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
64288            esac
64289            as_fn_append pac_sub_configure_args " '$pac_arg'" ;;
64290          esac
64291        done
64292
64293        # Always prepend --prefix to ensure using the same prefix
64294        # in subdir configurations.
64295        # MPICH note: see tt#983 for an example of why this is necessary
64296        pac_arg="--prefix=$prefix"
64297        case $pac_arg in
64298        *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
64299        esac
64300        pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args"
64301
64302        # Pass --silent
64303        if test "$silent" = yes; then
64304          pac_sub_configure_args="--silent $pac_sub_configure_args"
64305        fi
64306
64307        # Always prepend --disable-option-checking to silence warnings, since
64308        # different subdirs can have different --enable and --with options.
64309        pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args"
64310
64311        pac_popdir=`pwd`
64312
64313        # Do not complain, so a configure script can configure whichever
64314        # parts of a large source tree are present.
64315        test -d "$srcdir/$pac_dir" || continue
64316
64317        # MPICH note: modified to remove the internal "_AS_*" macro usage, also
64318        # msg is already printed at top
64319        as_dir="$pac_dir"; as_fn_mkdir_p
64320        # MPICH note: we leave this internal macro reference for now.  We can clone
64321        # the macro locally if this turns out to be non-portable across several autoconf
64322        # versions.  It sets the following variables: ac_builddir,
64323        # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir,
64324        # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir
64325        ac_builddir=.
64326
64327case "$pac_dir" in
64328.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
64329*)
64330  ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'`
64331  # A ".." for each directory in $ac_dir_suffix.
64332  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
64333  case $ac_top_builddir_sub in
64334  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
64335  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
64336  esac ;;
64337esac
64338ac_abs_top_builddir=$ac_pwd
64339ac_abs_builddir=$ac_pwd$ac_dir_suffix
64340# for backward compatibility:
64341ac_top_builddir=$ac_top_build_prefix
64342
64343case $srcdir in
64344  .)  # We are building in place.
64345    ac_srcdir=.
64346    ac_top_srcdir=$ac_top_builddir_sub
64347    ac_abs_top_srcdir=$ac_pwd ;;
64348  [\\/]* | ?:[\\/]* )  # Absolute name.
64349    ac_srcdir=$srcdir$ac_dir_suffix;
64350    ac_top_srcdir=$srcdir
64351    ac_abs_top_srcdir=$srcdir ;;
64352  *) # Relative name.
64353    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
64354    ac_top_srcdir=$ac_top_build_prefix$srcdir
64355    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
64356esac
64357ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
64358
64359
64360        cd "$pac_dir"
64361
64362        # Check for guested configure; otherwise get Cygnus style configure.
64363        if test -f "$ac_srcdir/configure.gnu"; then
64364          pac_sub_configure=$ac_srcdir/configure.gnu
64365        elif test -f "$ac_srcdir/configure"; then
64366          pac_sub_configure=$ac_srcdir/configure
64367        elif test -f "$ac_srcdir/configure.ac"; then
64368          # This should be Cygnus configure.
64369          pac_sub_configure=$ac_aux_dir/configure
64370        else
64371          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5
64372$as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;}
64373          pac_sub_configure=
64374        fi
64375
64376        # The recursion is here.
64377        if test -n "$pac_sub_configure"; then
64378          # MPICH note: overriding the cache file on purpose to prevent strange
64379          # issues resulting from inter-dir caching
64380          pac_sub_cache_file="/dev/null"
64381
64382          { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5
64383$as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
64384          # The eval makes quoting arguments work.
64385          # MPICH note: we want to execute the provided actions, not be silent
64386          # or error out if the subconfigure succeeded/failed
64387          if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \
64388               --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\""
64389          then
64390            # restore the current dir for the provided actions
64391            cd "$pac_popdir"
64392
64393          else
64394            # restore the current dir for the provided actions
64395            cd "$pac_popdir"
64396            as_fn_error $? "libfabric configure failed" "$LINENO" 5
64397          fi
64398        fi
64399
64400        cd "$pac_popdir"
64401
64402        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with modules/libfabric configure =====" >&5
64403$as_echo "$as_me: ===== done with modules/libfabric configure =====" >&6;}
64404
64405	# Check for any localdefs files.  These may be created, so we
64406	# look in the local directory first.
64407	if test -f modules/libfabric/localdefs ; then
64408           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing modules/libfabric/localdefs" >&5
64409$as_echo "$as_me: sourcing modules/libfabric/localdefs" >&6;}
64410	   . modules/libfabric/localdefs
64411	elif test -f $pac_abs_srcdir/modules/libfabric/localdefs ; then
64412           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/modules/libfabric/localdefs" >&5
64413$as_echo "$as_me: sourcing $pac_abs_srcdir/modules/libfabric/localdefs" >&6;}
64414	   . $pac_abs_srcdir/modules/libfabric/localdefs
64415	fi
64416
64417
64418
64419	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
64420	eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
64421	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
64422
64423
64424	pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} - 1`
64425	eval CPPFLAGS="\$pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}"
64426	eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}=""
64427
64428
64429	pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} - 1`
64430	eval CXXFLAGS="\$pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}"
64431	eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}=""
64432
64433
64434	pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} - 1`
64435	eval FFLAGS="\$pac_save_FFLAGS_${pac_save_FFLAGS_nesting}"
64436	eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}=""
64437
64438
64439	pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} - 1`
64440	eval FCFLAGS="\$pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}"
64441	eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}=""
64442
64443
64444	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1`
64445	eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}"
64446	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}=""
64447
64448
64449	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
64450	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
64451	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
64452
64453
64454
64455
64456	if echo "$CPPFLAGS" | $FGREP -e "\<-I${main_top_builddir}/modules/libfabric/include\>" >/dev/null 2>&1; then :
64457  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${main_top_builddir}/modules/libfabric/include', not appending" >&5
64458else
64459  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${main_top_builddir}/modules/libfabric/include', appending" >&5
64460		CPPFLAGS="$CPPFLAGS -I${main_top_builddir}/modules/libfabric/include"
64461
64462fi
64463
64464
64465
64466	if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/modules/libfabric/include\>" >/dev/null 2>&1; then :
64467  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/modules/libfabric/include', not appending" >&5
64468else
64469  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/modules/libfabric/include', appending" >&5
64470		CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/modules/libfabric/include"
64471
64472fi
64473
64474
64475        if test "x$ofi_direct_provider" != "x" ; then
64476
64477
64478	if echo "$CPPFLAGS" | $FGREP -e "\<-I${main_top_builddir}/modules/libfabric/prov/${ofi_direct_provider}/include\>" >/dev/null 2>&1; then :
64479  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${main_top_builddir}/modules/libfabric/prov/${ofi_direct_provider}/include', not appending" >&5
64480else
64481  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${main_top_builddir}/modules/libfabric/prov/${ofi_direct_provider}/include', appending" >&5
64482		CPPFLAGS="$CPPFLAGS -I${main_top_builddir}/modules/libfabric/prov/${ofi_direct_provider}/include"
64483
64484fi
64485
64486
64487
64488	if echo "$CPPFLAGS" | $FGREP -e "\<-I${use_top_srcdir}/modules/libfabric/prov/${ofi_direct_provider}/include\>" >/dev/null 2>&1; then :
64489  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${use_top_srcdir}/modules/libfabric/prov/${ofi_direct_provider}/include', not appending" >&5
64490else
64491  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${use_top_srcdir}/modules/libfabric/prov/${ofi_direct_provider}/include', appending" >&5
64492		CPPFLAGS="$CPPFLAGS -I${use_top_srcdir}/modules/libfabric/prov/${ofi_direct_provider}/include"
64493
64494fi
64495
64496
64497
64498	if echo "$CPPFLAGS" | $FGREP -e "\<-DFABRIC_DIRECT\>" >/dev/null 2>&1; then :
64499  echo "CPPFLAGS(='$CPPFLAGS') contains '-DFABRIC_DIRECT', not appending" >&5
64500else
64501  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-DFABRIC_DIRECT', appending" >&5
64502		CPPFLAGS="$CPPFLAGS -DFABRIC_DIRECT"
64503
64504fi
64505
64506        fi
64507
64508        ofisrcdir="${main_top_builddir}/modules/libfabric"
64509        ofilib="modules/libfabric/src/libfabric.la"
64510    else
64511        { $as_echo "$as_me:${as_lineno-$LINENO}: CH4 OFI Netmod:  Using an external libfabric" >&5
64512$as_echo "$as_me: CH4 OFI Netmod:  Using an external libfabric" >&6;}
64513
64514
64515	if echo "$WRAPPER_LIBS" | $FGREP -e "\<-lfabric\>" >/dev/null 2>&1; then :
64516  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '-lfabric', not appending" >&5
64517else
64518  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '-lfabric', appending" >&5
64519		WRAPPER_LIBS="$WRAPPER_LIBS -lfabric"
64520
64521fi
64522
64523    fi
64524
64525    # check for libfabric depedence libs
64526    pcdir=""
64527    if test "${ofi_embedded}" = "yes" ; then
64528        pcdir="${main_top_builddir}/modules/libfabric"
64529    elif test -f ${with_libfabric}/lib/pkgconfig/libfabric.pc ; then
64530        pcdir="${with_libfabric}/lib/pkgconfig"
64531    fi
64532
64533if test "x$pcdir" != "x"; then
64534    ac_libfabric_deps=`pkg-config --static --libs $pcdir/libfabric.pc 2>/dev/null`
64535    # remove the library itself in case it is embedded
64536    ac_libfabric_deps=`echo $ac_libfabric_deps | sed 's/-lfabric//'`
64537else
64538    # use system default
64539    ac_libfabric_deps=`pkg-config --static --libs libfabric 2>/dev/null`
64540fi
64541
64542    if test "x$ac_libfabric_deps" != "x"; then
64543
64544
64545	if echo "$WRAPPER_LIBS" | $FGREP -e "\<${ac_libfabric_deps}\>" >/dev/null 2>&1; then :
64546  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') contains '${ac_libfabric_deps}', not appending" >&5
64547else
64548  echo "WRAPPER_LIBS(='$WRAPPER_LIBS') does not contain '${ac_libfabric_deps}', appending" >&5
64549		WRAPPER_LIBS="$WRAPPER_LIBS ${ac_libfabric_deps}"
64550
64551fi
64552
64553    fi
64554
64555    # Check whether --enable-ofi-domain was given.
64556if test "${enable_ofi_domain+set}" = set; then :
64557  enableval=$enable_ofi_domain;
64558else
64559  enable_ofi_domain=yes
64560fi
64561
64562
64563    if test "$enable_ofi_domain" = "yes"; then
64564
64565$as_echo "#define MPIDI_OFI_VNI_USE_DOMAIN 1" >>confdefs.h
64566
64567    fi
64568
64569
64570fi
64571## end expansion of PAC_SUBCFG_BODY_src_mpid_ch4_netmod_ofi
64572
64573
64574# now configure any actual recursively configures subsystems, such as ROMIO and
64575# hydra, or older components that haven't been updated to a subconfigure.m4 yet
64576for subsys in $devsubsystems $subsystems ; do
64577
64578        pac_dir="$subsys"
64579        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== configuring $subsys =====" >&5
64580$as_echo "$as_me: ===== configuring $subsys =====" >&6;}
64581
64582	pac_abs_srcdir=`(cd $srcdir && pwd)`
64583
64584	if test -f $pac_abs_srcdir/$subsys/setup ; then
64585           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/$subsys/setup" >&5
64586$as_echo "$as_me: sourcing $pac_abs_srcdir/$subsys/setup" >&6;}
64587	   . $pac_abs_srcdir/$subsys/setup
64588	fi
64589
64590        # Adapted for MPICH from the autoconf-2.67 implementation of
64591        # AC_CONFIG_SUBDIRS.  Search for "MPICH note:" for relevant commentary and
64592        # local modifications.
64593
64594        # Remove --cache-file, --srcdir, and --disable-option-checking arguments
64595        # so they do not pile up.  Otherwise relative paths (like --srcdir=.. from
64596        # make distcheck) will be incorrect.
64597        pac_sub_configure_args=""
64598        pac_prev=
64599        eval "set x $ac_configure_args"
64600        shift
64601        for pac_arg
64602        do
64603          if test -n "$pac_prev"; then
64604            pac_prev=
64605            continue
64606          fi
64607          case $pac_arg in
64608          -cache-file | --cache-file | --cache-fil | --cache-fi \
64609          | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
64610            pac_prev=cache_file ;;
64611          -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
64612          | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
64613          | --c=*)
64614            ;;
64615          --config-cache | -C)
64616            ;;
64617          -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
64618            pac_prev=srcdir ;;
64619          -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
64620            ;;
64621          -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
64622            pac_prev=prefix ;;
64623          -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
64624            ;;
64625          --disable-option-checking)
64626            ;;
64627          *)
64628            # MPICH note: this is a more robust version of the "precious
64629            # variable" propagation code that was present in the previous
64630            # incarnation of this macro
64631            for pac_pvar in $ac_precious_vars ; do
64632                # check if configure argument token contains the
64633                # precious variable, i.e. "name_of_prec_var=".
64634                if ( echo $pac_arg | grep "^$pac_pvar=" >/dev/null 2>&1 ) ; then
64635                    # check if current precious variable is set in env
64636                    eval pvar_set=\${$pac_pvar+set}
64637                    if test "$pvar_set" = "set" ; then
64638                        # Append 'name_of_prec_var=value_of_prec_var'
64639                        # to the subconfigure arguments list, where
64640                        # value_of_prec_var is fetched from the env.
64641                        # this also overrides any value set on the command line
64642                        eval pac_pval=\${$pac_pvar}
64643                        pac_arg="$pac_pvar=$pac_pval"
64644                        break
64645                    fi
64646                fi
64647            done
64648            case $pac_arg in
64649            *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
64650            esac
64651            as_fn_append pac_sub_configure_args " '$pac_arg'" ;;
64652          esac
64653        done
64654
64655        # Always prepend --prefix to ensure using the same prefix
64656        # in subdir configurations.
64657        # MPICH note: see tt#983 for an example of why this is necessary
64658        pac_arg="--prefix=$prefix"
64659        case $pac_arg in
64660        *\'*) pac_arg=`$as_echo "$pac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
64661        esac
64662        pac_sub_configure_args="'$pac_arg' $pac_sub_configure_args"
64663
64664        # Pass --silent
64665        if test "$silent" = yes; then
64666          pac_sub_configure_args="--silent $pac_sub_configure_args"
64667        fi
64668
64669        # Always prepend --disable-option-checking to silence warnings, since
64670        # different subdirs can have different --enable and --with options.
64671        pac_sub_configure_args="--disable-option-checking $pac_sub_configure_args"
64672
64673        pac_popdir=`pwd`
64674
64675        # Do not complain, so a configure script can configure whichever
64676        # parts of a large source tree are present.
64677        test -d "$srcdir/$pac_dir" || continue
64678
64679        # MPICH note: modified to remove the internal "_AS_*" macro usage, also
64680        # msg is already printed at top
64681        as_dir="$pac_dir"; as_fn_mkdir_p
64682        # MPICH note: we leave this internal macro reference for now.  We can clone
64683        # the macro locally if this turns out to be non-portable across several autoconf
64684        # versions.  It sets the following variables: ac_builddir,
64685        # ac_top_builddir_sub, ac_top_build_prefix, ac_srcdir, ac_top_srcdir,
64686        # ac_abs_top_builddir, ac_abs_builddir, ac_abs_top_srcdir, ac_abs_srcdir
64687        ac_builddir=.
64688
64689case "$pac_dir" in
64690.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
64691*)
64692  ac_dir_suffix=/`$as_echo "$pac_dir" | sed 's|^\.[\\/]||'`
64693  # A ".." for each directory in $ac_dir_suffix.
64694  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
64695  case $ac_top_builddir_sub in
64696  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
64697  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
64698  esac ;;
64699esac
64700ac_abs_top_builddir=$ac_pwd
64701ac_abs_builddir=$ac_pwd$ac_dir_suffix
64702# for backward compatibility:
64703ac_top_builddir=$ac_top_build_prefix
64704
64705case $srcdir in
64706  .)  # We are building in place.
64707    ac_srcdir=.
64708    ac_top_srcdir=$ac_top_builddir_sub
64709    ac_abs_top_srcdir=$ac_pwd ;;
64710  [\\/]* | ?:[\\/]* )  # Absolute name.
64711    ac_srcdir=$srcdir$ac_dir_suffix;
64712    ac_top_srcdir=$srcdir
64713    ac_abs_top_srcdir=$srcdir ;;
64714  *) # Relative name.
64715    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
64716    ac_top_srcdir=$ac_top_build_prefix$srcdir
64717    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
64718esac
64719ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
64720
64721
64722        cd "$pac_dir"
64723
64724        # Check for guested configure; otherwise get Cygnus style configure.
64725        if test -f "$ac_srcdir/configure.gnu"; then
64726          pac_sub_configure=$ac_srcdir/configure.gnu
64727        elif test -f "$ac_srcdir/configure"; then
64728          pac_sub_configure=$ac_srcdir/configure
64729        elif test -f "$ac_srcdir/configure.ac"; then
64730          # This should be Cygnus configure.
64731          pac_sub_configure=$ac_aux_dir/configure
64732        else
64733          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $pac_dir" >&5
64734$as_echo "$as_me: WARNING: no configuration information is in $pac_dir" >&2;}
64735          pac_sub_configure=
64736        fi
64737
64738        # The recursion is here.
64739        if test -n "$pac_sub_configure"; then
64740          # MPICH note: overriding the cache file on purpose to prevent strange
64741          # issues resulting from inter-dir caching
64742          pac_sub_cache_file="/dev/null"
64743
64744          { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&5
64745$as_echo "$as_me: running $SHELL $pac_sub_configure $pac_sub_configure_args --cache-file=$pac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
64746          # The eval makes quoting arguments work.
64747          # MPICH note: we want to execute the provided actions, not be silent
64748          # or error out if the subconfigure succeeded/failed
64749          if eval "\$SHELL \"\$pac_sub_configure\" $pac_sub_configure_args \
64750               --cache-file=\"\$pac_sub_cache_file\" --srcdir=\"\$ac_srcdir\""
64751          then
64752            # restore the current dir for the provided actions
64753            cd "$pac_popdir"
64754
64755          else
64756            # restore the current dir for the provided actions
64757            cd "$pac_popdir"
64758            as_fn_error $? "$subsys configure failed" "$LINENO" 5
64759          fi
64760        fi
64761
64762        cd "$pac_popdir"
64763
64764        { $as_echo "$as_me:${as_lineno-$LINENO}: ===== done with $subsys configure =====" >&5
64765$as_echo "$as_me: ===== done with $subsys configure =====" >&6;}
64766
64767	# Check for any localdefs files.  These may be created, so we
64768	# look in the local directory first.
64769	if test -f $subsys/localdefs ; then
64770           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $subsys/localdefs" >&5
64771$as_echo "$as_me: sourcing $subsys/localdefs" >&6;}
64772	   . $subsys/localdefs
64773	elif test -f $pac_abs_srcdir/$subsys/localdefs ; then
64774           { $as_echo "$as_me:${as_lineno-$LINENO}: sourcing $pac_abs_srcdir/$subsys/localdefs" >&5
64775$as_echo "$as_me: sourcing $pac_abs_srcdir/$subsys/localdefs" >&6;}
64776	   . $pac_abs_srcdir/$subsys/localdefs
64777	fi
64778
64779done
64780if test "$DEBUG_SUBDIR_CACHE" = yes -a "$enable_echo" != yes ; then
64781    set +x
64782fi
64783
64784# Make subsystems available to makefiles.
64785# FIXME does the makefile actually need this?
64786subsystems="$devsubsystems $subsystems $bindingsubsystems"
64787
64788if test "$enable_f77" != "yes" ; then
64789    # These are Fortran datatypes ONLY.  Set to null if no Fortran compiler.
64790    for name in CHARACTER INTEGER REAL LOGICAL COMPLEX DOUBLE_PRECISION \
64791	2INTEGER 2REAL DOUBLE_COMPLEX 2DOUBLE_PRECISION ; do
64792	fullname="MPI_$name"
64793	eval $fullname=MPI_DATATYPE_NULL
64794    done
64795    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not define Fortran MPI datatypes for C" >&5
64796$as_echo "$as_me: WARNING: Could not define Fortran MPI datatypes for C" >&2;}
64797
64798$as_echo "#define HAVE_NO_FORTRAN_MPI_TYPES_IN_C 1" >>confdefs.h
64799
64800    # Temporary values for MPI_Fint (need help from the Fortran subsystem)
64801    MPI_FINT=int
64802fi
64803
64804
64805
64806
64807
64808
64809
64810
64811
64812
64813
64814
64815# If ROMIO was successfully configured, then ROMIO will have exported the
64816# definition of MPI_OFFSET_TYPE through its localdefs file (created by the
64817# ROMIO configure in src/mpi/romio/localdefs).  If MPI_OFFSET_TYPE was not
64818# defined, this code attempts to find a good choice for MPI_OFFSET_TYPE
64819# (As the offset type is used for File operations, the specific type
64820# really doesn't matter if ROMIO doesn't provide it).
64821if test -n "$MPI_OFFSET_TYPE" ; then
64822    # We got the value from the ROMIO configure
64823    MPI_OFFSET="$MPI_OFFSET_TYPE"
64824    # Get and export the size of this type if possible
64825    if test -z "$MPI_SIZEOF_OFFSET" ; then
64826        # set a default
64827        { $as_echo "$as_me:${as_lineno-$LINENO}: checking the sizeof MPI_Offset" >&5
64828$as_echo_n "checking the sizeof MPI_Offset... " >&6; }
64829if ${ac_cv_sizeof_MPI_Offset+:} false; then :
64830  $as_echo_n "(cached) " >&6
64831else
64832
64833            ac_cv_sizeof_MPI_Offset=unknown
64834            if ac_fn_c_compute_int "$LINENO" "sizeof($MPI_OFFSET)" "ac_cv_sizeof_MPI_Offset"        ""; then :
64835
64836else
64837
64838                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to determine the size of MPI_Offset" >&5
64839$as_echo "$as_me: WARNING: Unable to determine the size of MPI_Offset" >&2;}
64840
64841fi
64842
64843
64844fi
64845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPI_Offset" >&5
64846$as_echo "$ac_cv_sizeof_MPI_Offset" >&6; }
64847	if test "$ac_cv_sizeof_MPI_Offset" != "unknown" ; then
64848  	    MPI_SIZEOF_OFFSET=$ac_cv_sizeof_MPI_Offset
64849        fi
64850    fi
64851    export MPI_SIZEOF_OFFSET
64852else
64853    # Make a guess at the appropriate definition for offset.  Try to
64854    # find a 64bit type.
64855    if test "$ac_cv_sizeof_long" = 8 ; then
64856        MPI_OFFSET="long"
64857	# Make the size of this type available to other configures
64858	MPI_SIZEOF_OFFSET=8
64859    elif test "$ac_cv_sizeof_long_long" = 8 ; then
64860        MPI_OFFSET="long long"
64861	# Make the size of this type available to other configures
64862	MPI_SIZEOF_OFFSET=8
64863    else
64864        MPI_OFFSET=long
64865        MPI_SIZEOF_OFFSET=$ac_cv_sizeof_long
64866    fi
64867    export MPI_SIZEOF_OFFSET
64868fi
64869
64870
64871case $MPI_OFFSET in #(
64872  int) :
64873    MPIR_OFFSET_MAX="INT_MAX" ;; #(
64874  long) :
64875    MPIR_OFFSET_MAX="LONG_MAX" ;; #(
64876  'long long') :
64877    MPIR_OFFSET_MAX="LLONG_MAX" ;; #(
64878  short) :
64879    MPIR_OFFSET_MAX="SHRT_MAX" ;; #(
64880  *) :
64881    as_fn_error $? "unable to determine MPIR_OFFSET_MAX for MPI_Offset" "$LINENO" 5 ;;
64882esac
64883
64884cat >>confdefs.h <<_ACEOF
64885#define MPIR_OFFSET_MAX $MPIR_OFFSET_MAX
64886_ACEOF
64887
64888
64889# FIXME: we need an explanation of why we need both MPI_OFFSET and
64890# MPI_OFFSET_TYPEDEF.   Why is MPI_OFFSET_TYPEDEF necessary?
64891# This appears to be used by the Windows "winconfigure.wsf" which is used
64892# to create a multiline definition using an #ifdef check on USE_GCC
64893# We may wish to use a different approach
64894MPI_OFFSET_TYPEDEF="typedef $MPI_OFFSET MPI_Offset;"
64895
64896#
64897# Fortran type for an Offset type (needed to define MPI_DISPLACEMENT_CURRENT
64898# The value for this comes from ROMIO, and is needed in mpif.h.in
64899# First, we check that this works with both Fortran compilers (if
64900# they are defined)
64901#
64902# If there is no FORTRAN_MPI_OFFSET type (because ROMIO is disabled),
64903# just use INTEGER
64904if test -z "$FORTRAN_MPI_OFFSET" ; then
64905    FORTRAN_MPI_OFFSET=INTEGER
64906fi
64907if test "$enable_f77" = yes -a "$enable_fc" = yes ; then
64908    ac_ext=f
64909ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
64910ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
64911ac_compiler_gnu=$ac_cv_f77_compiler_gnu
64912
64913    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran Offset type works with Fortran 77" >&5
64914$as_echo_n "checking whether the Fortran Offset type works with Fortran 77... " >&6; }
64915    cat > conftest.$ac_ext <<_ACEOF
64916
64917              program main
64918      $FORTRAN_MPI_OFFSET i
64919      end
64920
64921_ACEOF
64922if ac_fn_f77_try_compile "$LINENO"; then :
64923  has_f77_offsettype=yes
64924else
64925  has_f77_offsetype=no
64926fi
64927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_f77_offsettype" >&5
64929$as_echo "$has_f77_offsettype" >&6; }
64930    ac_ext=c
64931ac_cpp='$CPP $CPPFLAGS'
64932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
64933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
64934ac_compiler_gnu=$ac_cv_c_compiler_gnu
64935
64936
64937    ac_ext=${ac_fc_srcext-f}
64938ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
64939ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
64940ac_compiler_gnu=$ac_cv_fc_compiler_gnu
64941
64942    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Fortran Offset type works with Fortran 90" >&5
64943$as_echo_n "checking whether the Fortran Offset type works with Fortran 90... " >&6; }
64944    cat > conftest.$ac_ext <<_ACEOF
64945
64946              program main
64947      $FORTRAN_MPI_OFFSET i
64948      end
64949
64950_ACEOF
64951if ac_fn_fc_try_compile "$LINENO"; then :
64952  has_fc_offsettype=yes
64953else
64954  has_fc_offsetype=no
64955fi
64956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64957    ac_ext=c
64958ac_cpp='$CPP $CPPFLAGS'
64959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
64960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
64961ac_compiler_gnu=$ac_cv_c_compiler_gnu
64962
64963    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_fc_offsettype" >&5
64964$as_echo "$has_fc_offsettype" >&6; }
64965
64966    if test "$has_f77_offsettype" != yes -o "$has_fc_offsettype" != yes ; then
64967        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mpif.h is not compatible with both $F77 $FFLAGS and $FC $FCFLAGS.  We recommend that you set both F77 and FC to the same compiler and reconfigure." >&5
64968$as_echo "$as_me: WARNING: mpif.h is not compatible with both $F77 $FFLAGS and $FC $FCFLAGS.  We recommend that you set both F77 and FC to the same compiler and reconfigure." >&2;}
64969    fi
64970fi
64971
64972#
64973
64974# ----------------------------------------------------------------------------
64975# MPI_OFFSET datatype
64976# ----------------------------------------------------------------------------
64977# must be done after ROMIO configure step
64978case "$MPI_SIZEOF_OFFSET" in
64979    4)    len_mpi_offset=04 ;;
64980    8)    len_mpi_offset=08 ;;
64981    16)   len_mpi_offset=10 ;;
64982    *)    as_fn_error $? "Unable to convert MPI_SIZEOF_OFFSET to a hex string.  This is either because we are building on a very strange platform or there is a bug somewhere in configure." "$LINENO" 5 ;;
64983esac
64984MPI_OFFSET_DATATYPE=0x4c00${len_mpi_offset}44
64985
64986export MPI_OFFSET_DATATYPE
64987
64988# 0x4c000044 is 1275068484 in decimal, add ($MPI_SIZEOF_OFFSET * 256) and you get
64989# the decimal equivalent of the hex number
64990MPI_F77_OFFSET=`expr 1275068484 '+' '(' 256 '*' $MPI_SIZEOF_OFFSET ')'`
64991
64992export MPI_F77_OFFSET
64993
64994# ----------------------------------------------------------------------------
64995# MPI_COUNT datatype
64996# ----------------------------------------------------------------------------
64997# quick sanity checking to avoid a bad test immediately below
64998if test -z "$MPI_SIZEOF_AINT"; then :
64999  as_fn_error $? "size of MPI_Aint is unknown at this stage" "$LINENO" 5
65000fi
65001if test -z "$MPI_SIZEOF_OFFSET"; then :
65002  as_fn_error $? "size of MPI_Offset is unknown at this stage" "$LINENO" 5
65003fi
65004
65005if test "$MPI_SIZEOF_AINT" -gt "$MPI_SIZEOF_OFFSET"; then :
65006  # an unlikely case, but I suppose it's theoretically possible
65007       MPI_COUNT="$MPI_AINT"
65008       COUNT_KIND="$ADDRESS_KIND"
65009       MPIR_COUNT_MAX="$MPIR_AINT_MAX"
65010       MPI_SIZEOF_COUNT="$MPI_SIZEOF_AINT"
65011else
65012  # don't bother checking whether Aint or Offset are larger than int, they
65013       # surely will be
65014       MPI_COUNT="$MPI_OFFSET"
65015       COUNT_KIND="$OFFSET_KIND"
65016       MPIR_COUNT_MAX="$MPIR_OFFSET_MAX"
65017       MPI_SIZEOF_COUNT="$MPI_SIZEOF_OFFSET"
65018fi
65019
65020
65021
65022cat >>confdefs.h <<_ACEOF
65023#define MPIR_COUNT_MAX $MPIR_COUNT_MAX
65024_ACEOF
65025
65026
65027cat >>confdefs.h <<_ACEOF
65028#define MPIR_Ucount unsigned $MPI_COUNT
65029_ACEOF
65030
65031
65032case $MPI_SIZEOF_COUNT in #(
65033  4) :
65034    len_mpi_count=04 ;; #(
65035  8) :
65036    len_mpi_count=08 ;; #(
65037  16) :
65038    len_mpi_count=10 ;; #(
65039  *) :
65040    as_fn_error $? "Unable to convert MPI_SIZEOF_COUNT to a hex string!" "$LINENO" 5 ;;
65041esac
65042MPI_COUNT_DATATYPE=0x4c00${len_mpi_count}45
65043
65044
65045# 0x4c000045 is 1275068485 in decimal, add ($MPI_SIZEOF_COUNT * 256) and you get
65046# the decimal equivalent of the hex number
65047MPI_F77_COUNT=`expr 1275068485 '+' '(' 256 '*' $MPI_SIZEOF_OFFSET ')'`
65048
65049
65050# ----------------------------------------------------------------------------
65051
65052#
65053# Set size of MPI_Status.  Must come after MPI_Count determination.
65054#
65055
65056#
65057# The size of MPI_Status is needed for the Fortran interface.
65058#
65059# WARNING!!! this is a spot where we duplicate code from mpi.h.in and it *must*
65060# be kept in sync in order to make a proper computation
65061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size of MPI_Status" >&5
65062$as_echo_n "checking for size of MPI_Status... " >&6; }
65063if ${pac_cv_sizeof_mpi_status+:} false; then :
65064  $as_echo_n "(cached) " >&6
65065else
65066
65067
65068    rm -f pac_mpi_status.h
65069    cat > pac_mpi_status.h <<_EOF
65070typedef struct {
65071    int count_lo;
65072    int count_hi_and_cancelled;
65073    int MPI_SOURCE;
65074    int MPI_TAG;
65075    int MPI_ERROR;
65076} MPI_Status;
65077_EOF
65078
65079
65080    if ac_fn_c_compute_int "$LINENO" "sizeof(MPI_Status)" "pac_cv_sizeof_mpi_status"        "#include \"pac_mpi_status.h\""; then :
65081
65082else
65083  as_fn_error $? "unable to compute status size, are you compiling on a non-2s-complement host?" "$LINENO" 5
65084fi
65085
65086    rm -f pac_mpi_status.h
65087
65088fi
65089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_sizeof_mpi_status" >&5
65090$as_echo "$pac_cv_sizeof_mpi_status" >&6; }
65091
65092SIZEOF_MPI_STATUS=$pac_cv_sizeof_mpi_status
65093export SIZEOF_MPI_STATUS
65094
65095
65096if test "$enable_f77" = yes -a -z "$MPI_STATUS_SIZE" ; then
65097    if test -n "$SIZEOF_MPI_STATUS" ; then
65098        # compute from the C sizeof
65099        as_fn_arith $SIZEOF_MPI_STATUS / $ac_cv_sizeof_int && MPI_STATUS_SIZE=$as_val
65100        if test "$MPI_STATUS_SIZE" = "0" ; then
65101            as_fn_error $? "Could not compute the size of MPI_Status" "$LINENO" 5
65102        fi
65103    else
65104        as_fn_error $? "MPI_STATUS_SIZE was not defined!" "$LINENO" 5
65105    fi
65106fi # enable_f77 and mpi_status_size not set
65107
65108MPIF_STATUS_SIZE=$MPI_STATUS_SIZE
65109
65110cat >>confdefs.h <<_ACEOF
65111#define MPIF_STATUS_SIZE $MPIF_STATUS_SIZE
65112_ACEOF
65113
65114
65115if test "$enable_f77" = yes ; then
65116    # Check if multiple __attribute__((alias)) is available
65117    # This test requires MPI_STATUS_SIZE, and thus must be made after
65118    # MPI_STATUS_SIZE is determined
65119    if test "$enable_multi_aliases" = "yes" ; then
65120
65121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD/POSIX style global symbol lister" >&5
65122$as_echo_n "checking for BSD/POSIX style global symbol lister... " >&6; }
65123ac_ext=c
65124ac_cpp='$CPP $CPPFLAGS'
65125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65127ac_compiler_gnu=$ac_cv_c_compiler_gnu
65128
65129if test -z "$NM_G"; then
65130  ac_path_NM_G_found=false
65131  # Loop through the user's path and test for each of PROGNAME-LIST
65132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
65133for as_dir in $PATH$PATH_SEPARATOR/usr/ccs/bin/elf$PATH_SEPARATOR/usr/ccs/bin$PATH_SEPARATOR/usr/ucb$PATH_SEPARATOR/bin
65134do
65135  IFS=$as_save_IFS
65136  test -z "$as_dir" && as_dir=.
65137    for ac_prog in nm; do
65138    for ac_exec_ext in '' $ac_executable_extensions; do
65139      ac_path_NM_G="$as_dir/$ac_prog$ac_exec_ext"
65140      as_fn_executable_p "$ac_path_NM_G" || continue
65141
65142    # Check if nm accepts -g and BSD or POSIX compatible flag.
65143    # Use the `sed 1q' to avoid HP-UX's unknown option message:
65144    #   nm: unknown option "B" ignored
65145    # Tru64's nm complains that /dev/null is an invalid object file
65146    #
65147    # AIX's sed does not accept \+, 1) instead of doing 's|a\+||', do 's|aa*||'
65148    # or 2) instead of 's|A \+B|AB|g', do 's|A  *B|AB|g'
65149
65150    # Check if nm accepts -g
65151    case `${ac_path_NM_G} -g /dev/null 2>&1 | sed '1q'` in
65152    */dev/null* | *'Invalid file or object type'*)
65153        ac_path_NM_G="${ac_path_NM_G} -g"
65154        # Check if nm accepts -B
65155        case `${ac_path_NM_G} -B /dev/null 2>&1 | sed '1q'` in
65156        */dev/null* | *'Invalid file or object type'*)
65157            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65158/* end confdefs.h.  */
65159
65160                int iglobal;
65161
65162_ACEOF
65163if ac_fn_c_try_compile "$LINENO"; then :
65164
65165
65166                case `${ac_path_NM_G} -B conftest.$OBJEXT | sed -e 's|[0-9][0-9]*  *[A-Z]  *iglobal|XXXX|g'` in
65167                *XXXX*)
65168                    pac_path_NM_G="${ac_path_NM_G} -B"
65169                    pac_path_NM_G_type="BSD"
65170                    ;;
65171                esac
65172
65173
65174fi
65175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65176            ;;
65177        *)
65178            # Check if nm accepts -P
65179            case `${ac_path_NM_G} -P /dev/null 2>&1 | sed '1q'` in
65180            */dev/null* | *'Invalid file or object type'*)
65181                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65182/* end confdefs.h.  */
65183
65184                    int iglobal;
65185
65186_ACEOF
65187if ac_fn_c_try_compile "$LINENO"; then :
65188
65189
65190                    case `${ac_path_NM_G} -P conftest.$OBJEXT | sed -e 's|iglobal  *[A-Z]  *[0-9][0-9]*|XXXX|g'` in
65191                    *XXXX*)
65192                        pac_path_NM_G="${ac_path_NM_G} -P"
65193                        pac_path_NM_G_type="POSIX"
65194                        ;;
65195                    esac
65196
65197
65198fi
65199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65200                ;;
65201            esac  # Endof case `${ac_path_NM_G} -P
65202            ;;
65203        esac   # Endof case `${ac_path_NM_G} -B
65204        ;;
65205    esac  # Endof case `${ac_path_NM_G} -g
65206    if test "X$pac_path_NM_G" != "X" ; then
65207        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_path_NM_G_type style,$pac_path_NM_G" >&5
65208$as_echo "$pac_path_NM_G_type style,$pac_path_NM_G" >&6; }
65209        NM_G="`echo $pac_path_NM_G | sed -e 's|^.*nm |nm |g'`"
65210    else
65211        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65212$as_echo "no" >&6; }
65213    fi
65214    ac_cv_path_NM_G=${ac_path_NM_G}
65215    ac_path_NM_G_found=:
65216
65217      $ac_path_NM_G_found && break 3
65218    done
65219  done
65220  done
65221IFS=$as_save_IFS
65222  if test -z "$ac_cv_path_NM_G"; then
65223    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65224$as_echo "no" >&6; }
65225  fi
65226else
65227  ac_cv_path_NM_G=$NM_G
65228fi
65229
65230ac_ext=c
65231ac_cpp='$CPP $CPPFLAGS'
65232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65234ac_compiler_gnu=$ac_cv_c_compiler_gnu
65235
65236
65237
65238
65239ac_ext=c
65240ac_cpp='$CPP $CPPFLAGS'
65241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65243ac_compiler_gnu=$ac_cv_c_compiler_gnu
65244
65245for ac_header in stdio.h
65246do :
65247  ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
65248if test "x$ac_cv_header_stdio_h" = xyes; then :
65249  cat >>confdefs.h <<_ACEOF
65250#define HAVE_STDIO_H 1
65251_ACEOF
65252
65253fi
65254
65255done
65256
65257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiple __attribute__((alias)) support" >&5
65258$as_echo_n "checking for multiple __attribute__((alias)) support... " >&6; }
65259
65260#Compile the "other" __attribute__ object file.
65261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65262/* end confdefs.h.  */
65263
65264
65265#if defined(HAVE_STDIO_H) || defined(STDC_HEADERS)
65266#include <stdio.h>
65267#endif
65268
65269struct mpif_cmblk_t_ { int imember; };
65270typedef struct mpif_cmblk_t_ mpif_cmblk_t;
65271
65272/* NOT initialize these structure so it appears in BSS or as COMMON symbols */
65273mpif_cmblk_t mpifcmb;
65274mpif_cmblk_t MPIFCMB;
65275
65276/*
65277   Do the test in this file instead in the file
65278   where __attribute__((alias)) is used.
65279   This is needed for pgcc since pgcc seems to
65280   define aliased symbols if they are in the same file.
65281*/
65282/*
65283    We can't do the following comparision in one test:
65284
65285    ilogical = (( &mpifcmb == ptr && &MPIFCMB == ptr ) ? TRUE : FALSE) ;
65286
65287    because some compiler, like gcc 4.4.2's -O* optimizes the code
65288    such that the ilogical expression is FALSE. The likely reason is that
65289    mpifcmb and MPIFCMB are defined in the same scope in which C optimizer
65290    may have treated them as different objects (with different addresses),
65291    &mpifcmb != &MPIFCMB, before actually running the test and hence the
65292    illogical expression is assumed to be always FALSE.  The solution taken
65293    here is to prevent the optimizer the opportunity to equate &mpifcmb and
65294    &MPIFCMB (in same scope), e.g. using 2 separate tests and combine the
65295    test results in a different scope.
65296*/
65297int same_addrs1( void *ptr );
65298int same_addrs1( void *ptr )
65299{
65300#if defined(ATTR_ALIAS_DEBUG)
65301    printf( "others: addr(mpifcmb)=%p, addr(input ptr)=%p\n", &mpifcmb, ptr );
65302#endif
65303    return ( &mpifcmb == ptr ? 1 : 0 );
65304}
65305
65306int same_addrs2( void *ptr );
65307int same_addrs2( void *ptr )
65308{
65309#if defined(ATTR_ALIAS_DEBUG)
65310    printf( "others: addr(MPIFCMB)=%p, addr(input ptr)=%p\n", &MPIFCMB, ptr );
65311#endif
65312    return ( &MPIFCMB == ptr ? 1 : 0 );
65313}
65314
65315
65316
65317_ACEOF
65318if ac_fn_c_try_compile "$LINENO"; then :
65319
65320    rm -f pac_conftest_other.$OBJEXT
65321
65322{ $as_echo "$as_me:$LINENO: cp conftest.$OBJEXT pac_conftest_other.$OBJEXT" >&5
65323  (eval cp conftest.$OBJEXT pac_conftest_other.$OBJEXT) 2>&5
65324  ac_status=$?
65325  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65326  test $ac_status = 0; }
65327    test -s pac_conftest_other.$OBJEXT && pac_c_attr_alias_other=yes
65328
65329else
65330
65331    pac_c_attr_alias_other=no
65332
65333fi
65334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65335pac_c_attr_alias_main=no
65336if test "$pac_c_attr_alias_other" = "yes" ; then
65337
65338#   Push LIBS for later restoration.
65339
65340	if test -z "${pac_save_LIBS_nesting}" ; then
65341	   pac_save_LIBS_nesting=0
65342	fi
65343	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
65344	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
65345
65346    LIBS="pac_conftest_other.$OBJEXT $LIBS"
65347
65348#   Link the "other" __attribute__ object file.
65349    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65350/* end confdefs.h.  */
65351
65352
65353#if defined(HAVE_STDIO_H) || defined(STDC_HEADERS)
65354#include <stdio.h>
65355#endif
65356
65357struct mpif_cmblk_t_ { int imember; };
65358typedef struct mpif_cmblk_t_ mpif_cmblk_t;
65359
65360mpif_cmblk_t mpifcmbr = {0};
65361extern mpif_cmblk_t MPIFCMB __attribute__ ((alias("mpifcmbr")));
65362extern mpif_cmblk_t mpifcmb __attribute__ ((alias("mpifcmbr")));
65363
65364extern int same_addrs1( void *ptr );
65365extern int same_addrs2( void *ptr );
65366
65367
65368int
65369main ()
65370{
65371
65372    int iaddr = 0;
65373#if defined(ATTR_ALIAS_DEBUG)
65374    printf( "main: addr(mpifcmbr) = %p\n", &mpifcmbr );
65375    printf( "main: addr(mpifcmb) = %p\n", &mpifcmb );
65376    printf( "main: addr(MPIFCMB) = %p\n", &MPIFCMB );
65377#endif
65378    iaddr = same_addrs1( &mpifcmbr ) && same_addrs2( &mpifcmbr );
65379    FILE *file = fopen( "pac_conftestval", "w" );
65380    if (!file) return 1;
65381    fprintf( file, "%d\n", iaddr );
65382
65383  ;
65384  return 0;
65385}
65386
65387_ACEOF
65388if ac_fn_c_try_link "$LINENO"; then :
65389
65390        rm -f pac_conftest_main$EXEEXT
65391
65392{ $as_echo "$as_me:$LINENO: cp conftest$EXEEXT pac_conftest_main$EXEEXT" >&5
65393  (eval cp conftest$EXEEXT pac_conftest_main$EXEEXT) 2>&5
65394  ac_status=$?
65395  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65396  test $ac_status = 0; }
65397        test -x pac_conftest_main$EXEEXT && pac_c_attr_alias_main=yes
65398
65399else
65400
65401        pac_c_attr_alias_main=no
65402
65403fi
65404rm -f core conftest.err conftest.$ac_objext \
65405    conftest$ac_exeext conftest.$ac_ext
65406# Restore the previously pushed LIBS
65407
65408	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
65409	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
65410	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
65411
65412    rm -f pac_conftest_other.$OBJEXT
65413fi
65414if test "$pac_c_attr_alias_main" = "yes" ; then
65415    if test "$cross_compiling" = "yes" ; then
65416
65417        # echo "PAC CROSS-COMPILING" dnl
65418        # POSIX NM = nm -P format dnl
65419        if test "$pac_path_NM_G_type" = "POSIX" ; then
65420            addrs=`${pac_path_NM_G} ./pac_conftest_main$EXEEXT | grep -i mpifcmb | sed -e 's% *[a-zA-Z][a-zA-Z]*  *[a-zA-Z]  *\([0-9abcdef][0-9abcdef]*\).*%\1%g'`
65421        fi
65422
65423        # BSD NM = nm -B format dnl
65424        if test "$pac_path_NM_G_type" = "BSD" ; then
65425            addrs=`${pac_path_NM_G} -g ./pac_conftest_main$EXEEXT | grep -i mpifcmb | sed -e "s% *\([0-9abcdef][0-9abcdef]*\)  *[a-zA-Z]  *[a-zA-Z][a-zA-A]*.*%\1%g"`
65426        fi
65427
65428
65429        cmp_addr=""
65430        diff_addrs=no
65431        for addr in ${addrs} ; do
65432            if test "X${cmp_addr}" != "X" ; then
65433                if test "${cmp_addr}" != "${addr}" ; then
65434                    diff_addrs=yes
65435                    break
65436                fi
65437            else
65438                cmp_addr=${addr}
65439            fi
65440        done
65441
65442        if test "$diff_addrs" != "yes" ; then
65443                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NM_G} says yes" >&5
65444$as_echo "${NM_G} says yes" >&6; }
65445            pac_c_multi_attr_alias=yes
65446        else
65447                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NM_G} says no" >&5
65448$as_echo "${NM_G} says no" >&6; }
65449            pac_c_multi_attr_alias=no
65450        fi
65451
65452    else # if test "$cross_compiling" != "yes"
65453        rm -f pac_conftestval
65454        ac_try="./pac_conftest_main$EXEEXT"
65455        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
65456  (eval $ac_try) 2>&5
65457  ac_status=$?
65458  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65459  test $ac_status = 0; } ; then
65460            pac_c_attr_alias_val=0
65461            if test -s pac_conftestval ; then
65462                eval pac_c_attr_alias_val=`cat pac_conftestval`
65463            fi
65464            if test "$pac_c_attr_alias_val" -eq 1 ; then
65465                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
65466$as_echo "yes" >&6; }
65467                pac_c_multi_attr_alias=yes
65468            else
65469                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
65470$as_echo "no" >&6; }
65471                pac_c_multi_attr_alias=no
65472            fi
65473            rm -f pac_conftestval
65474        fi
65475    fi
65476        rm -f pac_conftest_main$EXEEXT
65477else
65478    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no! link failure" >&5
65479$as_echo "no! link failure" >&6; }
65480    pac_c_multi_attr_alias=no
65481fi
65482ac_ext=c
65483ac_cpp='$CPP $CPPFLAGS'
65484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65486ac_compiler_gnu=$ac_cv_c_compiler_gnu
65487
65488
65489
65490        if test "$pac_c_multi_attr_alias" = "yes" ; then
65491
65492cmblksize=1
65493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the minimum alignment of Fortran common block of $cmblksize integers" >&5
65494$as_echo_n "checking the minimum alignment of Fortran common block of $cmblksize integers... " >&6; }
65495#
65496#
65497# First create a fortran CONFTEST which will be used repeatedly.
65498ac_ext=${ac_fc_srcext-f}
65499ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
65500ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
65501ac_compiler_gnu=$ac_cv_fc_compiler_gnu
65502 cat > conftest.$ac_ext <<_ACEOF
65503
65504
65505        program fconftest
65506        integer isize
65507        parameter (isize=$cmblksize)
65508        integer status_array(isize)
65509        common /mpifcmb/ status_array
65510        save /mpifcmb/
65511        end
65512
65513
65514_ACEOF
65515ac_ext=c
65516ac_cpp='$CPP $CPPFLAGS'
65517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65519ac_compiler_gnu=$ac_cv_c_compiler_gnu
65520 # Compile a C dummy.$OBJEXT and link with Fortran test program to create
65521# a reference linker output file, pac_align0.log, as the base of "diff".
65522ac_ext=c
65523ac_cpp='$CPP $CPPFLAGS'
65524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65526ac_compiler_gnu=$ac_cv_c_compiler_gnu
65527
65528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65529/* end confdefs.h.  */
65530
65531_ACEOF
65532if ac_fn_c_try_compile "$LINENO"; then :
65533
65534    cp conftest.$ac_ext pac_conftest.c
65535
65536{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
65537  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
65538  ac_status=$?
65539  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65540  test $ac_status = 0; }
65541
65542	if test -z "${pac_save_LIBS_nesting}" ; then
65543	   pac_save_LIBS_nesting=0
65544	fi
65545	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
65546	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
65547
65548    LIBS="pac_conftest.$OBJEXT $LIBS"
65549    ac_ext=${ac_fc_srcext-f}
65550ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
65551ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
65552ac_compiler_gnu=$ac_cv_fc_compiler_gnu
65553
65554	if test -z "${pac_save_ac_link_nesting}" ; then
65555	   pac_save_ac_link_nesting=0
65556	fi
65557	eval pac_save_ac_link_${pac_save_ac_link_nesting}='"$ac_link"'
65558	pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} + 1`
65559
65560    ac_link="`echo $ac_link | sed -e 's|>.*$|> $pac_logfile 2>\&1|g'`"
65561    pac_logfile="pac_align0.log"
65562    rm -f $pac_logfile
65563    if ac_fn_fc_try_link "$LINENO"; then :
65564
65565        pac_f2c_alignedn_diffbase=yes
65566
65567else
65568
65569        pac_f2c_alignedn_diffbase=no
65570
65571fi
65572rm -f core conftest.err conftest.$ac_objext \
65573    conftest$ac_exeext
65574    # Be sure NOT to remove the conftest.f which is still needed for later use.
65575    # rm -f conftest.$ac_ext
65576    # Restore everything in autoconf that has been overwritten
65577
65578	pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} - 1`
65579	eval ac_link="\$pac_save_ac_link_${pac_save_ac_link_nesting}"
65580	eval pac_save_ac_link_${pac_save_ac_link_nesting}=""
65581
65582    # restore previously pushed LIBS
65583
65584	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
65585	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
65586	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
65587
65588    ac_ext=c
65589ac_cpp='$CPP $CPPFLAGS'
65590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65592ac_compiler_gnu=$ac_cv_c_compiler_gnu
65593
65594else
65595
65596    pac_f2c_alignedn_diffbase=no
65597
65598fi
65599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65600ac_ext=c
65601ac_cpp='$CPP $CPPFLAGS'
65602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65604ac_compiler_gnu=$ac_cv_c_compiler_gnu
65605
65606if test "$pac_f2c_alignedn_diffbase" = "yes" ; then
65607    # Initialize pac_result_str to empty string since part of the test
65608    # depends on pac_result_str is empty or non-empty string.
65609    pac_result_str=""
65610    # Initialize pac_f2c_attr_aligned_str to empty string and
65611    # it will remain as empty string if the following test fails.
65612    pac_f2c_attr_aligned_str=""
65613    for asize in 4 8 16 32 64 128 max ; do
65614        if test "$asize" != "max" ; then
65615            pac_attr_aligned_str="__attribute__((aligned($asize)))"
65616        else
65617            pac_attr_aligned_str="__attribute__((aligned))"
65618        fi
65619        ac_ext=c
65620ac_cpp='$CPP $CPPFLAGS'
65621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65623ac_compiler_gnu=$ac_cv_c_compiler_gnu
65624
65625        #Compile the __attribute__ object file.
65626        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65627/* end confdefs.h.  */
65628
65629
65630
65631struct mpif_cmblk_t_ { $MPI_FINT imembers[$cmblksize]; };
65632
65633typedef struct mpif_cmblk_t_ mpif_cmblk_t;
65634mpif_cmblk_t mpifcmbr $pac_attr_aligned_str = {0};
65635
65636extern mpif_cmblk_t _CMPIFCMB  __attribute__ ((alias("mpifcmbr")));
65637extern mpif_cmblk_t   MPIFCMB  __attribute__ ((alias("mpifcmbr")));
65638extern mpif_cmblk_t   MPIFCMB_ __attribute__ ((alias("mpifcmbr")));
65639extern mpif_cmblk_t _Cmpifcmb  __attribute__ ((alias("mpifcmbr")));
65640extern mpif_cmblk_t   mpifcmb  __attribute__ ((alias("mpifcmbr")));
65641extern mpif_cmblk_t   mpifcmb_ __attribute__ ((alias("mpifcmbr")));
65642
65643
65644_ACEOF
65645if ac_fn_c_try_compile "$LINENO"; then :
65646
65647            cp conftest.$ac_ext pac_conftest.c
65648
65649{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
65650  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
65651  ac_status=$?
65652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65653  test $ac_status = 0; }
65654
65655	if test -z "${pac_save_LIBS_nesting}" ; then
65656	   pac_save_LIBS_nesting=0
65657	fi
65658	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
65659	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
65660
65661            LIBS="pac_conftest.$OBJEXT $LIBS"
65662            ac_ext=${ac_fc_srcext-f}
65663ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
65664ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
65665ac_compiler_gnu=$ac_cv_fc_compiler_gnu
65666
65667	if test -z "${pac_save_ac_link_nesting}" ; then
65668	   pac_save_ac_link_nesting=0
65669	fi
65670	eval pac_save_ac_link_${pac_save_ac_link_nesting}='"$ac_link"'
65671	pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} + 1`
65672
65673            ac_link="`echo $ac_link | sed -e 's|>.*$|> $pac_logfile 2>\&1|g'`"
65674            pac_logfile="pac_align1.log"
65675            rm -f $pac_logfile
65676            # Use conftest.f created in CONFTEST.
65677            if ac_fn_fc_try_link "$LINENO"; then :
65678
65679
65680pac_TESTLOG="pac_test.log"
65681rm -f $pac_TESTLOG
65682
65683if
65684{ $as_echo "$as_me:$LINENO: diff -b pac_align0.log pac_align1.log > $pac_TESTLOG" >&5
65685  (eval diff -b pac_align0.log pac_align1.log > $pac_TESTLOG) 2>&5
65686  ac_status=$?
65687  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65688  test $ac_status = 0; }; then :
65689
65690
65691
65692                    pac_attr_alignedn=yes
65693
65694
65695
65696else
65697
65698    $as_echo "$as_me: program exited with status $ac_status" >&5
65699
65700        (exit $ac_status)
65701
65702    $as_echo "*** diff -b pac_align0.log pac_align1.log :" >&5
65703    cat $pac_TESTLOG >&5
65704
65705                    pac_attr_alignedn=no
65706                    cat $pac_logfile >&5
65707                    echo "failed C program was:" >&5
65708                    cat pac_conftest.c >&5
65709                    echo "failed Fortran program was:" >&5
65710                    cat conftest.$ac_ext >&5
65711
65712
65713
65714
65715
65716fi
65717
65718rm -f $pac_TESTLOG
65719
65720
65721else
65722
65723                pac_attr_alignedn=no
65724
65725fi
65726rm -f core conftest.err conftest.$ac_objext \
65727    conftest$ac_exeext
65728            # Restore everything in autoconf that has been overwritten
65729
65730	pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} - 1`
65731	eval ac_link="\$pac_save_ac_link_${pac_save_ac_link_nesting}"
65732	eval pac_save_ac_link_${pac_save_ac_link_nesting}=""
65733
65734            # restore previously pushed LIBS
65735
65736	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
65737	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
65738	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
65739
65740            ac_ext=c
65741ac_cpp='$CPP $CPPFLAGS'
65742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65744ac_compiler_gnu=$ac_cv_c_compiler_gnu
65745             # remove previously generated object file and C file.
65746            rm -f pac_conftest.$OBJEXT pac_conftest.c
65747            rm -f $pac_logfile
65748            if test "$pac_attr_alignedn" = yes ; then
65749
65750                    pac_result_str="$asize"
65751                    pac_f2c_attr_aligned_str="$pac_attr_aligned_str"
65752                    break
65753
65754            fi
65755
65756else
65757
65758            pac_attr_alignedn=no
65759
65760fi
65761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65762        ac_ext=c
65763ac_cpp='$CPP $CPPFLAGS'
65764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65766ac_compiler_gnu=$ac_cv_c_compiler_gnu
65767
65768    done
65769    CMB_1INT_ALIGNMENT="$pac_f2c_attr_aligned_str"
65770else
65771    pac_result_str=""
65772    # Since the test fails, set pac_f2c_attr_aligned_str to empty string.
65773    pac_f2c_attr_aligned_str=""
65774fi
65775if test "X$pac_result_str" != "X" ; then
65776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result_str" >&5
65777$as_echo "$pac_result_str" >&6; }
65778else
65779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
65780$as_echo "unknown" >&6; }
65781fi
65782rm -f pac_align0.log
65783
65784
65785
65786cmblksize=$MPI_STATUS_SIZE
65787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the minimum alignment of Fortran common block of $cmblksize integers" >&5
65788$as_echo_n "checking the minimum alignment of Fortran common block of $cmblksize integers... " >&6; }
65789#
65790#
65791# First create a fortran CONFTEST which will be used repeatedly.
65792ac_ext=${ac_fc_srcext-f}
65793ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
65794ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
65795ac_compiler_gnu=$ac_cv_fc_compiler_gnu
65796 cat > conftest.$ac_ext <<_ACEOF
65797
65798
65799        program fconftest
65800        integer isize
65801        parameter (isize=$cmblksize)
65802        integer status_array(isize)
65803        common /mpifcmb/ status_array
65804        save /mpifcmb/
65805        end
65806
65807
65808_ACEOF
65809ac_ext=c
65810ac_cpp='$CPP $CPPFLAGS'
65811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65813ac_compiler_gnu=$ac_cv_c_compiler_gnu
65814 # Compile a C dummy.$OBJEXT and link with Fortran test program to create
65815# a reference linker output file, pac_align0.log, as the base of "diff".
65816ac_ext=c
65817ac_cpp='$CPP $CPPFLAGS'
65818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65820ac_compiler_gnu=$ac_cv_c_compiler_gnu
65821
65822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65823/* end confdefs.h.  */
65824
65825_ACEOF
65826if ac_fn_c_try_compile "$LINENO"; then :
65827
65828    cp conftest.$ac_ext pac_conftest.c
65829
65830{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
65831  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
65832  ac_status=$?
65833  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65834  test $ac_status = 0; }
65835
65836	if test -z "${pac_save_LIBS_nesting}" ; then
65837	   pac_save_LIBS_nesting=0
65838	fi
65839	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
65840	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
65841
65842    LIBS="pac_conftest.$OBJEXT $LIBS"
65843    ac_ext=${ac_fc_srcext-f}
65844ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
65845ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
65846ac_compiler_gnu=$ac_cv_fc_compiler_gnu
65847
65848	if test -z "${pac_save_ac_link_nesting}" ; then
65849	   pac_save_ac_link_nesting=0
65850	fi
65851	eval pac_save_ac_link_${pac_save_ac_link_nesting}='"$ac_link"'
65852	pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} + 1`
65853
65854    ac_link="`echo $ac_link | sed -e 's|>.*$|> $pac_logfile 2>\&1|g'`"
65855    pac_logfile="pac_align0.log"
65856    rm -f $pac_logfile
65857    if ac_fn_fc_try_link "$LINENO"; then :
65858
65859        pac_f2c_alignedn_diffbase=yes
65860
65861else
65862
65863        pac_f2c_alignedn_diffbase=no
65864
65865fi
65866rm -f core conftest.err conftest.$ac_objext \
65867    conftest$ac_exeext
65868    # Be sure NOT to remove the conftest.f which is still needed for later use.
65869    # rm -f conftest.$ac_ext
65870    # Restore everything in autoconf that has been overwritten
65871
65872	pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} - 1`
65873	eval ac_link="\$pac_save_ac_link_${pac_save_ac_link_nesting}"
65874	eval pac_save_ac_link_${pac_save_ac_link_nesting}=""
65875
65876    # restore previously pushed LIBS
65877
65878	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
65879	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
65880	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
65881
65882    ac_ext=c
65883ac_cpp='$CPP $CPPFLAGS'
65884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65886ac_compiler_gnu=$ac_cv_c_compiler_gnu
65887
65888else
65889
65890    pac_f2c_alignedn_diffbase=no
65891
65892fi
65893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65894ac_ext=c
65895ac_cpp='$CPP $CPPFLAGS'
65896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65898ac_compiler_gnu=$ac_cv_c_compiler_gnu
65899
65900if test "$pac_f2c_alignedn_diffbase" = "yes" ; then
65901    # Initialize pac_result_str to empty string since part of the test
65902    # depends on pac_result_str is empty or non-empty string.
65903    pac_result_str=""
65904    # Initialize pac_f2c_attr_aligned_str to empty string and
65905    # it will remain as empty string if the following test fails.
65906    pac_f2c_attr_aligned_str=""
65907    for asize in 4 8 16 32 64 128 max ; do
65908        if test "$asize" != "max" ; then
65909            pac_attr_aligned_str="__attribute__((aligned($asize)))"
65910        else
65911            pac_attr_aligned_str="__attribute__((aligned))"
65912        fi
65913        ac_ext=c
65914ac_cpp='$CPP $CPPFLAGS'
65915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
65916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
65917ac_compiler_gnu=$ac_cv_c_compiler_gnu
65918
65919        #Compile the __attribute__ object file.
65920        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
65921/* end confdefs.h.  */
65922
65923
65924
65925struct mpif_cmblk_t_ { $MPI_FINT imembers[$cmblksize]; };
65926
65927typedef struct mpif_cmblk_t_ mpif_cmblk_t;
65928mpif_cmblk_t mpifcmbr $pac_attr_aligned_str = {0};
65929
65930extern mpif_cmblk_t _CMPIFCMB  __attribute__ ((alias("mpifcmbr")));
65931extern mpif_cmblk_t   MPIFCMB  __attribute__ ((alias("mpifcmbr")));
65932extern mpif_cmblk_t   MPIFCMB_ __attribute__ ((alias("mpifcmbr")));
65933extern mpif_cmblk_t _Cmpifcmb  __attribute__ ((alias("mpifcmbr")));
65934extern mpif_cmblk_t   mpifcmb  __attribute__ ((alias("mpifcmbr")));
65935extern mpif_cmblk_t   mpifcmb_ __attribute__ ((alias("mpifcmbr")));
65936
65937
65938_ACEOF
65939if ac_fn_c_try_compile "$LINENO"; then :
65940
65941            cp conftest.$ac_ext pac_conftest.c
65942
65943{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
65944  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
65945  ac_status=$?
65946  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65947  test $ac_status = 0; }
65948
65949	if test -z "${pac_save_LIBS_nesting}" ; then
65950	   pac_save_LIBS_nesting=0
65951	fi
65952	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
65953	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
65954
65955            LIBS="pac_conftest.$OBJEXT $LIBS"
65956            ac_ext=${ac_fc_srcext-f}
65957ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
65958ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
65959ac_compiler_gnu=$ac_cv_fc_compiler_gnu
65960
65961	if test -z "${pac_save_ac_link_nesting}" ; then
65962	   pac_save_ac_link_nesting=0
65963	fi
65964	eval pac_save_ac_link_${pac_save_ac_link_nesting}='"$ac_link"'
65965	pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} + 1`
65966
65967            ac_link="`echo $ac_link | sed -e 's|>.*$|> $pac_logfile 2>\&1|g'`"
65968            pac_logfile="pac_align1.log"
65969            rm -f $pac_logfile
65970            # Use conftest.f created in CONFTEST.
65971            if ac_fn_fc_try_link "$LINENO"; then :
65972
65973
65974pac_TESTLOG="pac_test.log"
65975rm -f $pac_TESTLOG
65976
65977if
65978{ $as_echo "$as_me:$LINENO: diff -b pac_align0.log pac_align1.log > $pac_TESTLOG" >&5
65979  (eval diff -b pac_align0.log pac_align1.log > $pac_TESTLOG) 2>&5
65980  ac_status=$?
65981  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65982  test $ac_status = 0; }; then :
65983
65984
65985
65986                    pac_attr_alignedn=yes
65987
65988
65989
65990else
65991
65992    $as_echo "$as_me: program exited with status $ac_status" >&5
65993
65994        (exit $ac_status)
65995
65996    $as_echo "*** diff -b pac_align0.log pac_align1.log :" >&5
65997    cat $pac_TESTLOG >&5
65998
65999                    pac_attr_alignedn=no
66000                    cat $pac_logfile >&5
66001                    echo "failed C program was:" >&5
66002                    cat pac_conftest.c >&5
66003                    echo "failed Fortran program was:" >&5
66004                    cat conftest.$ac_ext >&5
66005
66006
66007
66008
66009
66010fi
66011
66012rm -f $pac_TESTLOG
66013
66014
66015else
66016
66017                pac_attr_alignedn=no
66018
66019fi
66020rm -f core conftest.err conftest.$ac_objext \
66021    conftest$ac_exeext
66022            # Restore everything in autoconf that has been overwritten
66023
66024	pac_save_ac_link_nesting=`expr ${pac_save_ac_link_nesting} - 1`
66025	eval ac_link="\$pac_save_ac_link_${pac_save_ac_link_nesting}"
66026	eval pac_save_ac_link_${pac_save_ac_link_nesting}=""
66027
66028            # restore previously pushed LIBS
66029
66030	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
66031	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
66032	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
66033
66034            ac_ext=c
66035ac_cpp='$CPP $CPPFLAGS'
66036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
66037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
66038ac_compiler_gnu=$ac_cv_c_compiler_gnu
66039             # remove previously generated object file and C file.
66040            rm -f pac_conftest.$OBJEXT pac_conftest.c
66041            rm -f $pac_logfile
66042            if test "$pac_attr_alignedn" = yes ; then
66043
66044                    if test "$asize" != "max" -a "$asize" -lt "32" ; then
66045                        if test "X$pac_result_str" = "X" ; then
66046                            pac_result_str="$asize"
66047                            pac_f2c_attr_aligned_str="$pac_attr_aligned_str"
66048                        fi
66049                        continue
66050                    else
66051                        pac_f2c_attr_aligned_str="$pac_attr_aligned_str"
66052                        if test "X$pac_result_str" != "X" ; then
66053                            pac_result_str="$pac_result_str, too small! reset to $asize"
66054                        else
66055                            pac_result_str="$asize"
66056                        fi
66057                        break
66058                    fi
66059
66060            fi
66061
66062else
66063
66064            pac_attr_alignedn=no
66065
66066fi
66067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66068        ac_ext=c
66069ac_cpp='$CPP $CPPFLAGS'
66070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
66071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
66072ac_compiler_gnu=$ac_cv_c_compiler_gnu
66073
66074    done
66075    CMB_STATUS_ALIGNMENT="$pac_f2c_attr_aligned_str"
66076else
66077    pac_result_str=""
66078    # Since the test fails, set pac_f2c_attr_aligned_str to empty string.
66079    pac_f2c_attr_aligned_str=""
66080fi
66081if test "X$pac_result_str" != "X" ; then
66082    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result_str" >&5
66083$as_echo "$pac_result_str" >&6; }
66084else
66085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
66086$as_echo "unknown" >&6; }
66087fi
66088rm -f pac_align0.log
66089
66090
66091            if test "X$CMB_1INT_ALIGNMENT" != "X" \
66092                 -a "X$CMB_STATUS_ALIGNMENT" != "X" ; then
66093
66094$as_echo "#define HAVE_C_MULTI_ATTR_ALIAS 1" >>confdefs.h
66095
66096            fi
66097        fi
66098    fi
66099fi
66100
66101# ----------------------------------------------------------------------------
66102
66103
66104$as_echo "#define HAVE_FC_TYPE_ROUTINES 1" >>confdefs.h
66105
66106
66107# -----------------------------------------------------------------------------
66108# Get the value of MPI_MAX_PROCESSOR_NAME
66109if test -z "$MPID_MAX_PROCESSOR_NAME" ; then
66110    if test -z "$MPI_MAX_PROCESSOR_NAME" ; then
66111       MPI_MAX_PROCESSOR_NAME=128
66112    fi
66113    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The $with_device device did not set the maximum size of a processor name, $MPI_MAX_PROCESSOR_NAME being used." >&5
66114$as_echo "$as_me: WARNING: The $with_device device did not set the maximum size of a processor name, $MPI_MAX_PROCESSOR_NAME being used." >&2;}
66115else
66116    MPI_MAX_PROCESSOR_NAME=$MPID_MAX_PROCESSOR_NAME
66117fi
66118
66119
66120# Get the value of MPI_MAX_LIBRARY_VERSION_STRING
66121if test -z "$MPID_MAX_LIBRARY_VERSION_STRING" ; then
66122    MPI_MAX_LIBRARY_VERSION_STRING=8192
66123else
66124    MPI_MAX_LIBRARY_VERSION_STRING=$MPID_MAX_LIBRARY_VERSION_STRING
66125fi
66126
66127
66128# Get the value of MPI_MAX_ERROR_STRING
66129if test -z "$MPID_MAX_ERROR_STRING" ; then
66130    if test -z "$MPI_MAX_ERROR_STRING" ; then
66131       MPI_MAX_ERROR_STRING=512
66132    fi
66133    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The $with_device device did not set the maximum size of an error string, $MPI_MAX_ERROR_STRING being used." >&5
66134$as_echo "$as_me: WARNING: The $with_device device did not set the maximum size of an error string, $MPI_MAX_ERROR_STRING being used." >&2;}
66135else
66136    MPI_MAX_ERROR_STRING=$MPID_MAX_ERROR_STRING
66137fi
66138
66139
66140# Add a definition that is used to help support Windows DLLs (used in mpi.h.in)
66141MPIU_DLL_SPEC_DEF="#define MPIU_DLL_SPEC"
66142
66143
66144# set and export values that the test/mpi configure will reference to ensure
66145# that the correct decisions are made since this configure happens before the
66146# MPICH library is built.
66147MPICH_ENABLE_CXX=$enable_cxx
66148MPICH_ENABLE_F77=$enable_f77
66149MPICH_ENABLE_FC=$enable_fc
66150export MPICH_ENABLE_CXX
66151export MPICH_ENABLE_F77
66152export MPICH_ENABLE_FC
66153 if test "$enable_cxx" = "yes"; then
66154  BUILD_CXX_BINDING_TRUE=
66155  BUILD_CXX_BINDING_FALSE='#'
66156else
66157  BUILD_CXX_BINDING_TRUE='#'
66158  BUILD_CXX_BINDING_FALSE=
66159fi
66160
66161 if test "$enable_f77" = "yes"; then
66162  BUILD_F77_BINDING_TRUE=
66163  BUILD_F77_BINDING_FALSE='#'
66164else
66165  BUILD_F77_BINDING_TRUE='#'
66166  BUILD_F77_BINDING_FALSE=
66167fi
66168
66169# MPI_SRCDIR gives the test/mpi configure the location of the source
66170# files for an MPI implementation
66171if test -n "$ac_abs_srcdir" ; then
66172    MPI_SRCDIR=$ac_abs_srcdir
66173fi
66174# Pass these two values with "MPI" names to the test configure
66175MPI_NO_SPAWN=$MPID_NO_SPAWN
66176export MPI_NO_SPAWN
66177MPI_NO_RMA=$MPID_NO_RMA
66178export MPI_NO_RMA
66179
66180# Attach program prefix and suffix to executable names for Makefile
66181
66182
66183
66184
66185
66186
66187
66188MPICC_NAME="mpicc"
66189if test "$program_prefix" != "NONE" ; then
66190    MPICC_NAME="${program_prefix}$MPICC_NAME"
66191fi
66192if test "$program_suffix" != "NONE" ; then
66193    MPICC_NAME="$MPICC_NAME$program_suffix"
66194fi
66195
66196
66197MPICXX_NAME="mpicxx"
66198if test "$program_prefix" != "NONE" ; then
66199    MPICXX_NAME="${program_prefix}$MPICXX_NAME"
66200fi
66201if test "$program_suffix" != "NONE" ; then
66202    MPICXX_NAME="$MPICXX_NAME$program_suffix"
66203fi
66204
66205
66206MPICPP_NAME="mpic++"
66207if test "$program_prefix" != "NONE" ; then
66208    MPICPP_NAME="${program_prefix}$MPICPP_NAME"
66209fi
66210if test "$program_suffix" != "NONE" ; then
66211    MPICPP_NAME="$MPICPP_NAME$program_suffix"
66212fi
66213
66214
66215MPIFORT_NAME="mpifort"
66216if test "$program_prefix" != "NONE" ; then
66217    MPIFORT_NAME="${program_prefix}$MPIFORT_NAME"
66218fi
66219if test "$program_suffix" != "NONE" ; then
66220    MPIFORT_NAME="$MPIFORT_NAME$program_suffix"
66221fi
66222
66223
66224MPIF90_NAME="mpif90"
66225if test "$program_prefix" != "NONE" ; then
66226    MPIF90_NAME="${program_prefix}$MPIF90_NAME"
66227fi
66228if test "$program_suffix" != "NONE" ; then
66229    MPIF90_NAME="$MPIF90_NAME$program_suffix"
66230fi
66231
66232
66233MPIF77_NAME="mpif77"
66234if test "$program_prefix" != "NONE" ; then
66235    MPIF77_NAME="${program_prefix}$MPIF77_NAME"
66236fi
66237if test "$program_suffix" != "NONE" ; then
66238    MPIF77_NAME="$MPIF77_NAME$program_suffix"
66239fi
66240
66241
66242
66243
66244subdirs="$subdirs test/mpi"
66245
66246ac_config_commands="$ac_config_commands default-2"
66247
66248
66249if test -z "$includebuild_dir" ; then
66250    includebuild_dir=`pwd`/src/include
66251fi
66252if test -z "$libbuild_dir" ; then
66253    libbuild_dir=`pwd`/lib
66254fi
66255if test -z "$modincbuild_dir" ; then
66256    # The include files may be in a different directory from the mpif.h file
66257    modincbuild_dir=`pwd`/src/binding/fortran/use_mpi
66258fi
66259
66260ac_config_commands="$ac_config_commands default-3"
66261
66262
66263ac_config_commands="$ac_config_commands default-4"
66264
66265
66266
66267
66268$as_echo "#define HAVE_MPICHCONF 1" >>confdefs.h
66269
66270
66271if test "$USE_PMI2_API" = "yes" ; then
66272
66273$as_echo "#define USE_PMI2_API 1" >>confdefs.h
66274
66275fi
66276
66277########################################################################
66278
66279# cause libtool script to be built now so that we can use it to test one last
66280# linking issue on Darwin
66281: ${CONFIG_LT=./config.lt}
66282{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
66283$as_echo "$as_me: creating $CONFIG_LT" >&6;}
66284as_write_fail=0
66285cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
66286#! $SHELL
66287# Generated by $as_me.
66288# Run this file to recreate a libtool stub with the current configuration.
66289SHELL=\${CONFIG_SHELL-$SHELL}
66290export SHELL
66291_ASEOF
66292cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
66293## -------------------- ##
66294## M4sh Initialization. ##
66295## -------------------- ##
66296
66297# Be more Bourne compatible
66298DUALCASE=1; export DUALCASE # for MKS sh
66299if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
66300  emulate sh
66301  NULLCMD=:
66302  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
66303  # is contrary to our usage.  Disable this feature.
66304  alias -g '${1+"$@"}'='"$@"'
66305  setopt NO_GLOB_SUBST
66306else
66307  case `(set -o) 2>/dev/null` in #(
66308  *posix*) :
66309    set -o posix ;; #(
66310  *) :
66311     ;;
66312esac
66313fi
66314
66315
66316as_nl='
66317'
66318export as_nl
66319# Printing a long string crashes Solaris 7 /usr/bin/printf.
66320as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
66321as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
66322as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
66323# Prefer a ksh shell builtin over an external printf program on Solaris,
66324# but without wasting forks for bash or zsh.
66325if test -z "$BASH_VERSION$ZSH_VERSION" \
66326    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
66327  as_echo='print -r --'
66328  as_echo_n='print -rn --'
66329elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
66330  as_echo='printf %s\n'
66331  as_echo_n='printf %s'
66332else
66333  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
66334    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
66335    as_echo_n='/usr/ucb/echo -n'
66336  else
66337    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
66338    as_echo_n_body='eval
66339      arg=$1;
66340      case $arg in #(
66341      *"$as_nl"*)
66342	expr "X$arg" : "X\\(.*\\)$as_nl";
66343	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66344      esac;
66345      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66346    '
66347    export as_echo_n_body
66348    as_echo_n='sh -c $as_echo_n_body as_echo'
66349  fi
66350  export as_echo_body
66351  as_echo='sh -c $as_echo_body as_echo'
66352fi
66353
66354# The user is always right.
66355if test "${PATH_SEPARATOR+set}" != set; then
66356  PATH_SEPARATOR=:
66357  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
66358    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
66359      PATH_SEPARATOR=';'
66360  }
66361fi
66362
66363
66364# IFS
66365# We need space, tab and new line, in precisely that order.  Quoting is
66366# there to prevent editors from complaining about space-tab.
66367# (If _AS_PATH_WALK were called with IFS unset, it would disable word
66368# splitting by setting IFS to empty value.)
66369IFS=" ""	$as_nl"
66370
66371# Find who we are.  Look in the path if we contain no directory separator.
66372as_myself=
66373case $0 in #((
66374  *[\\/]* ) as_myself=$0 ;;
66375  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66376for as_dir in $PATH
66377do
66378  IFS=$as_save_IFS
66379  test -z "$as_dir" && as_dir=.
66380    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
66381  done
66382IFS=$as_save_IFS
66383
66384     ;;
66385esac
66386# We did not find ourselves, most probably we were run as `sh COMMAND'
66387# in which case we are not to be found in the path.
66388if test "x$as_myself" = x; then
66389  as_myself=$0
66390fi
66391if test ! -f "$as_myself"; then
66392  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
66393  exit 1
66394fi
66395
66396# Unset variables that we do not need and which cause bugs (e.g. in
66397# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
66398# suppresses any "Segmentation fault" message there.  '((' could
66399# trigger a bug in pdksh 5.2.14.
66400for as_var in BASH_ENV ENV MAIL MAILPATH
66401do eval test x\${$as_var+set} = xset \
66402  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
66403done
66404PS1='$ '
66405PS2='> '
66406PS4='+ '
66407
66408# NLS nuisances.
66409LC_ALL=C
66410export LC_ALL
66411LANGUAGE=C
66412export LANGUAGE
66413
66414# CDPATH.
66415(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
66416
66417
66418# as_fn_error STATUS ERROR [LINENO LOG_FD]
66419# ----------------------------------------
66420# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
66421# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
66422# script with STATUS, using 1 if that was 0.
66423as_fn_error ()
66424{
66425  as_status=$1; test $as_status -eq 0 && as_status=1
66426  if test "$4"; then
66427    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
66428    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
66429  fi
66430  $as_echo "$as_me: error: $2" >&2
66431  as_fn_exit $as_status
66432} # as_fn_error
66433
66434
66435# as_fn_set_status STATUS
66436# -----------------------
66437# Set $? to STATUS, without forking.
66438as_fn_set_status ()
66439{
66440  return $1
66441} # as_fn_set_status
66442
66443# as_fn_exit STATUS
66444# -----------------
66445# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
66446as_fn_exit ()
66447{
66448  set +e
66449  as_fn_set_status $1
66450  exit $1
66451} # as_fn_exit
66452
66453# as_fn_unset VAR
66454# ---------------
66455# Portably unset VAR.
66456as_fn_unset ()
66457{
66458  { eval $1=; unset $1;}
66459}
66460as_unset=as_fn_unset
66461# as_fn_append VAR VALUE
66462# ----------------------
66463# Append the text in VALUE to the end of the definition contained in VAR. Take
66464# advantage of any shell optimizations that allow amortized linear growth over
66465# repeated appends, instead of the typical quadratic growth present in naive
66466# implementations.
66467if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
66468  eval 'as_fn_append ()
66469  {
66470    eval $1+=\$2
66471  }'
66472else
66473  as_fn_append ()
66474  {
66475    eval $1=\$$1\$2
66476  }
66477fi # as_fn_append
66478
66479# as_fn_arith ARG...
66480# ------------------
66481# Perform arithmetic evaluation on the ARGs, and store the result in the
66482# global $as_val. Take advantage of shells that can avoid forks. The arguments
66483# must be portable across $(()) and expr.
66484if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
66485  eval 'as_fn_arith ()
66486  {
66487    as_val=$(( $* ))
66488  }'
66489else
66490  as_fn_arith ()
66491  {
66492    as_val=`expr "$@" || test $? -eq 1`
66493  }
66494fi # as_fn_arith
66495
66496
66497if expr a : '\(a\)' >/dev/null 2>&1 &&
66498   test "X`expr 00001 : '.*\(...\)'`" = X001; then
66499  as_expr=expr
66500else
66501  as_expr=false
66502fi
66503
66504if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
66505  as_basename=basename
66506else
66507  as_basename=false
66508fi
66509
66510if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
66511  as_dirname=dirname
66512else
66513  as_dirname=false
66514fi
66515
66516as_me=`$as_basename -- "$0" ||
66517$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66518	 X"$0" : 'X\(//\)$' \| \
66519	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
66520$as_echo X/"$0" |
66521    sed '/^.*\/\([^/][^/]*\)\/*$/{
66522	    s//\1/
66523	    q
66524	  }
66525	  /^X\/\(\/\/\)$/{
66526	    s//\1/
66527	    q
66528	  }
66529	  /^X\/\(\/\).*/{
66530	    s//\1/
66531	    q
66532	  }
66533	  s/.*/./; q'`
66534
66535# Avoid depending upon Character Ranges.
66536as_cr_letters='abcdefghijklmnopqrstuvwxyz'
66537as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
66538as_cr_Letters=$as_cr_letters$as_cr_LETTERS
66539as_cr_digits='0123456789'
66540as_cr_alnum=$as_cr_Letters$as_cr_digits
66541
66542ECHO_C= ECHO_N= ECHO_T=
66543case `echo -n x` in #(((((
66544-n*)
66545  case `echo 'xy\c'` in
66546  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
66547  xy)  ECHO_C='\c';;
66548  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
66549       ECHO_T='	';;
66550  esac;;
66551*)
66552  ECHO_N='-n';;
66553esac
66554
66555rm -f conf$$ conf$$.exe conf$$.file
66556if test -d conf$$.dir; then
66557  rm -f conf$$.dir/conf$$.file
66558else
66559  rm -f conf$$.dir
66560  mkdir conf$$.dir 2>/dev/null
66561fi
66562if (echo >conf$$.file) 2>/dev/null; then
66563  if ln -s conf$$.file conf$$ 2>/dev/null; then
66564    as_ln_s='ln -s'
66565    # ... but there are two gotchas:
66566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
66567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
66568    # In both cases, we have to default to `cp -pR'.
66569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
66570      as_ln_s='cp -pR'
66571  elif ln conf$$.file conf$$ 2>/dev/null; then
66572    as_ln_s=ln
66573  else
66574    as_ln_s='cp -pR'
66575  fi
66576else
66577  as_ln_s='cp -pR'
66578fi
66579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
66580rmdir conf$$.dir 2>/dev/null
66581
66582
66583# as_fn_mkdir_p
66584# -------------
66585# Create "$as_dir" as a directory, including parents if necessary.
66586as_fn_mkdir_p ()
66587{
66588
66589  case $as_dir in #(
66590  -*) as_dir=./$as_dir;;
66591  esac
66592  test -d "$as_dir" || eval $as_mkdir_p || {
66593    as_dirs=
66594    while :; do
66595      case $as_dir in #(
66596      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
66597      *) as_qdir=$as_dir;;
66598      esac
66599      as_dirs="'$as_qdir' $as_dirs"
66600      as_dir=`$as_dirname -- "$as_dir" ||
66601$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
66602	 X"$as_dir" : 'X\(//\)[^/]' \| \
66603	 X"$as_dir" : 'X\(//\)$' \| \
66604	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
66605$as_echo X"$as_dir" |
66606    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
66607	    s//\1/
66608	    q
66609	  }
66610	  /^X\(\/\/\)[^/].*/{
66611	    s//\1/
66612	    q
66613	  }
66614	  /^X\(\/\/\)$/{
66615	    s//\1/
66616	    q
66617	  }
66618	  /^X\(\/\).*/{
66619	    s//\1/
66620	    q
66621	  }
66622	  s/.*/./; q'`
66623      test -d "$as_dir" && break
66624    done
66625    test -z "$as_dirs" || eval "mkdir $as_dirs"
66626  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
66627
66628
66629} # as_fn_mkdir_p
66630if mkdir -p . 2>/dev/null; then
66631  as_mkdir_p='mkdir -p "$as_dir"'
66632else
66633  test -d ./-p && rmdir ./-p
66634  as_mkdir_p=false
66635fi
66636
66637
66638# as_fn_executable_p FILE
66639# -----------------------
66640# Test if FILE is an executable regular file.
66641as_fn_executable_p ()
66642{
66643  test -f "$1" && test -x "$1"
66644} # as_fn_executable_p
66645as_test_x='test -x'
66646as_executable_p=as_fn_executable_p
66647
66648# Sed expression to map a string onto a valid CPP name.
66649as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
66650
66651# Sed expression to map a string onto a valid variable name.
66652as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
66653
66654
66655exec 6>&1
66656## --------------------------------- ##
66657## Main body of "$CONFIG_LT" script. ##
66658## --------------------------------- ##
66659_ASEOF
66660test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
66661
66662cat >>"$CONFIG_LT" <<\_LTEOF
66663lt_cl_silent=false
66664exec 5>>config.log
66665{
66666  echo
66667  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
66668## Running $as_me. ##
66669_ASBOX
66670} >&5
66671
66672lt_cl_help="\
66673'$as_me' creates a local libtool stub from the current configuration,
66674for use in further configure time tests before the real libtool is
66675generated.
66676
66677Usage: $0 [OPTIONS]
66678
66679  -h, --help      print this help, then exit
66680  -V, --version   print version number, then exit
66681  -q, --quiet     do not print progress messages
66682  -d, --debug     don't remove temporary files
66683
66684Report bugs to <bug-libtool@gnu.org>."
66685
66686lt_cl_version="\
66687MPICH config.lt 3.4.3
66688configured by $0, generated by GNU Autoconf 2.69.
66689
66690Copyright (C) 2011 Free Software Foundation, Inc.
66691This config.lt script is free software; the Free Software Foundation
66692gives unlimited permision to copy, distribute and modify it."
66693
66694while test 0 != $#
66695do
66696  case $1 in
66697    --version | --v* | -V )
66698      echo "$lt_cl_version"; exit 0 ;;
66699    --help | --h* | -h )
66700      echo "$lt_cl_help"; exit 0 ;;
66701    --debug | --d* | -d )
66702      debug=: ;;
66703    --quiet | --q* | --silent | --s* | -q )
66704      lt_cl_silent=: ;;
66705
66706    -*) as_fn_error $? "unrecognized option: $1
66707Try '$0 --help' for more information." "$LINENO" 5 ;;
66708
66709    *) as_fn_error $? "unrecognized argument: $1
66710Try '$0 --help' for more information." "$LINENO" 5 ;;
66711  esac
66712  shift
66713done
66714
66715if $lt_cl_silent; then
66716  exec 6>/dev/null
66717fi
66718_LTEOF
66719
66720cat >>"$CONFIG_LT" <<_LTEOF
66721
66722
66723# The HP-UX ksh and POSIX shell print the target directory to stdout
66724# if CDPATH is set.
66725(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
66726
66727sed_quote_subst='$sed_quote_subst'
66728double_quote_subst='$double_quote_subst'
66729delay_variable_subst='$delay_variable_subst'
66730macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
66731macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
66732enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
66733enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
66734pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
66735enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
66736shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
66737SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
66738ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
66739PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
66740host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
66741host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
66742host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
66743build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
66744build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
66745build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
66746SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
66747Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
66748GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
66749EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
66750FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
66751LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
66752NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
66753LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
66754max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
66755ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
66756exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
66757lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
66758lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
66759lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
66760lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
66761lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
66762reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
66763reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
66764OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
66765deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
66766file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
66767file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
66768want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
66769DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
66770sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
66771AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
66772AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
66773archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
66774STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
66775RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
66776old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
66777old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
66778old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
66779lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
66780CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
66781CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
66782compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
66783GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
66784lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
66785lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
66786lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
66787lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
66788lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
66789lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
66790nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
66791lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
66792lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
66793objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
66794MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
66795lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
66796lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
66797lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
66798lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
66799lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
66800need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
66801MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
66802DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
66803NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
66804LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
66805OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
66806OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
66807libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
66808shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
66809extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
66810archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
66811enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
66812export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
66813whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
66814compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
66815old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
66816old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
66817archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
66818archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
66819module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
66820module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
66821with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
66822allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
66823no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
66824hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
66825hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
66826hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
66827hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
66828hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
66829hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
66830hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
66831inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
66832link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
66833always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
66834export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
66835exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
66836include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
66837prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
66838postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
66839file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
66840variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
66841need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
66842need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
66843version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
66844runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
66845shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
66846shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
66847libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
66848library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
66849soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
66850install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
66851postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
66852postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
66853finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
66854finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
66855hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
66856sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
66857configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
66858configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
66859hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
66860enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
66861enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
66862enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
66863old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
66864striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
66865compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
66866predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
66867postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
66868predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
66869postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
66870compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
66871LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
66872LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
66873LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
66874reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
66875reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
66876reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
66877reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
66878reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
66879reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
66880old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
66881old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
66882old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
66883compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
66884compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
66885compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
66886GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
66887GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
66888GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
66889lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
66890lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
66891lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
66892lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
66893lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
66894lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
66895lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
66896lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
66897lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
66898lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
66899lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
66900lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
66901lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
66902lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
66903lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
66904archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
66905archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
66906archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
66907enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
66908enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
66909enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
66910export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
66911export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
66912export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
66913whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
66914whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
66915whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
66916compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
66917compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
66918compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
66919old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
66920old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
66921old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
66922old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
66923old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
66924old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
66925archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
66926archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
66927archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
66928archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
66929archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
66930archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
66931module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
66932module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
66933module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
66934module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
66935module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
66936module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
66937with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
66938with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
66939with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
66940allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
66941allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
66942allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
66943no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
66944no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
66945no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
66946hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
66947hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
66948hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
66949hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
66950hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
66951hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
66952hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
66953hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
66954hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
66955hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
66956hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
66957hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
66958hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
66959hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
66960hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
66961hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
66962hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
66963hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
66964hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
66965hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
66966hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
66967inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
66968inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
66969inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
66970link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
66971link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
66972link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
66973always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
66974always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
66975always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
66976export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
66977export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
66978export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
66979exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
66980exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
66981exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
66982include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
66983include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
66984include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
66985prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
66986prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
66987prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
66988postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
66989postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`'
66990postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
66991file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
66992file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
66993file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
66994hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
66995hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
66996hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
66997compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
66998compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
66999compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
67000predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
67001predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
67002predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
67003postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
67004postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
67005postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
67006predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
67007predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
67008predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
67009postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
67010postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
67011postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
67012compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
67013compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
67014compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
67015
67016LTCC='$LTCC'
67017LTCFLAGS='$LTCFLAGS'
67018compiler='$compiler_DEFAULT'
67019
67020# A function that is used when there is no print builtin or printf.
67021func_fallback_echo ()
67022{
67023  eval 'cat <<_LTECHO_EOF
67024\$1
67025_LTECHO_EOF'
67026}
67027
67028# Quote evaled strings.
67029for var in SHELL \
67030ECHO \
67031PATH_SEPARATOR \
67032SED \
67033GREP \
67034EGREP \
67035FGREP \
67036LD \
67037NM \
67038LN_S \
67039lt_SP2NL \
67040lt_NL2SP \
67041reload_flag \
67042OBJDUMP \
67043deplibs_check_method \
67044file_magic_cmd \
67045file_magic_glob \
67046want_nocaseglob \
67047DLLTOOL \
67048sharedlib_from_linklib_cmd \
67049AR \
67050AR_FLAGS \
67051archiver_list_spec \
67052STRIP \
67053RANLIB \
67054CC \
67055CFLAGS \
67056compiler \
67057lt_cv_sys_global_symbol_pipe \
67058lt_cv_sys_global_symbol_to_cdecl \
67059lt_cv_sys_global_symbol_to_import \
67060lt_cv_sys_global_symbol_to_c_name_address \
67061lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
67062lt_cv_nm_interface \
67063nm_file_list_spec \
67064lt_cv_truncate_bin \
67065lt_prog_compiler_no_builtin_flag \
67066lt_prog_compiler_pic \
67067lt_prog_compiler_wl \
67068lt_prog_compiler_static \
67069lt_cv_prog_compiler_c_o \
67070need_locks \
67071MANIFEST_TOOL \
67072DSYMUTIL \
67073NMEDIT \
67074LIPO \
67075OTOOL \
67076OTOOL64 \
67077shrext_cmds \
67078export_dynamic_flag_spec \
67079whole_archive_flag_spec \
67080compiler_needs_object \
67081with_gnu_ld \
67082allow_undefined_flag \
67083no_undefined_flag \
67084hardcode_libdir_flag_spec \
67085hardcode_libdir_separator \
67086exclude_expsyms \
67087include_expsyms \
67088file_list_spec \
67089variables_saved_for_relink \
67090libname_spec \
67091library_names_spec \
67092soname_spec \
67093install_override_mode \
67094finish_eval \
67095old_striplib \
67096striplib \
67097compiler_lib_search_dirs \
67098predep_objects \
67099postdep_objects \
67100predeps \
67101postdeps \
67102compiler_lib_search_path \
67103LD_CXX \
67104LD_FC \
67105LD_F77 \
67106reload_flag_CXX \
67107reload_flag_FC \
67108reload_flag_F77 \
67109compiler_CXX \
67110compiler_FC \
67111compiler_F77 \
67112lt_prog_compiler_no_builtin_flag_CXX \
67113lt_prog_compiler_no_builtin_flag_FC \
67114lt_prog_compiler_no_builtin_flag_F77 \
67115lt_prog_compiler_pic_CXX \
67116lt_prog_compiler_pic_FC \
67117lt_prog_compiler_pic_F77 \
67118lt_prog_compiler_wl_CXX \
67119lt_prog_compiler_wl_FC \
67120lt_prog_compiler_wl_F77 \
67121lt_prog_compiler_static_CXX \
67122lt_prog_compiler_static_FC \
67123lt_prog_compiler_static_F77 \
67124lt_cv_prog_compiler_c_o_CXX \
67125lt_cv_prog_compiler_c_o_FC \
67126lt_cv_prog_compiler_c_o_F77 \
67127export_dynamic_flag_spec_CXX \
67128export_dynamic_flag_spec_FC \
67129export_dynamic_flag_spec_F77 \
67130whole_archive_flag_spec_CXX \
67131whole_archive_flag_spec_FC \
67132whole_archive_flag_spec_F77 \
67133compiler_needs_object_CXX \
67134compiler_needs_object_FC \
67135compiler_needs_object_F77 \
67136with_gnu_ld_CXX \
67137with_gnu_ld_FC \
67138with_gnu_ld_F77 \
67139allow_undefined_flag_CXX \
67140allow_undefined_flag_FC \
67141allow_undefined_flag_F77 \
67142no_undefined_flag_CXX \
67143no_undefined_flag_FC \
67144no_undefined_flag_F77 \
67145hardcode_libdir_flag_spec_CXX \
67146hardcode_libdir_flag_spec_FC \
67147hardcode_libdir_flag_spec_F77 \
67148hardcode_libdir_separator_CXX \
67149hardcode_libdir_separator_FC \
67150hardcode_libdir_separator_F77 \
67151exclude_expsyms_CXX \
67152exclude_expsyms_FC \
67153exclude_expsyms_F77 \
67154include_expsyms_CXX \
67155include_expsyms_FC \
67156include_expsyms_F77 \
67157file_list_spec_CXX \
67158file_list_spec_FC \
67159file_list_spec_F77 \
67160compiler_lib_search_dirs_CXX \
67161compiler_lib_search_dirs_FC \
67162compiler_lib_search_dirs_F77 \
67163predep_objects_CXX \
67164predep_objects_FC \
67165predep_objects_F77 \
67166postdep_objects_CXX \
67167postdep_objects_FC \
67168postdep_objects_F77 \
67169predeps_CXX \
67170predeps_FC \
67171predeps_F77 \
67172postdeps_CXX \
67173postdeps_FC \
67174postdeps_F77 \
67175compiler_lib_search_path_CXX \
67176compiler_lib_search_path_FC \
67177compiler_lib_search_path_F77; do
67178    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
67179    *[\\\\\\\`\\"\\\$]*)
67180      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
67181      ;;
67182    *)
67183      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
67184      ;;
67185    esac
67186done
67187
67188# Double-quote double-evaled strings.
67189for var in reload_cmds \
67190old_postinstall_cmds \
67191old_postuninstall_cmds \
67192old_archive_cmds \
67193extract_expsyms_cmds \
67194old_archive_from_new_cmds \
67195old_archive_from_expsyms_cmds \
67196archive_cmds \
67197archive_expsym_cmds \
67198module_cmds \
67199module_expsym_cmds \
67200export_symbols_cmds \
67201prelink_cmds \
67202postlink_cmds \
67203postinstall_cmds \
67204postuninstall_cmds \
67205finish_cmds \
67206sys_lib_search_path_spec \
67207configure_time_dlsearch_path \
67208configure_time_lt_sys_library_path \
67209reload_cmds_CXX \
67210reload_cmds_FC \
67211reload_cmds_F77 \
67212old_archive_cmds_CXX \
67213old_archive_cmds_FC \
67214old_archive_cmds_F77 \
67215old_archive_from_new_cmds_CXX \
67216old_archive_from_new_cmds_FC \
67217old_archive_from_new_cmds_F77 \
67218old_archive_from_expsyms_cmds_CXX \
67219old_archive_from_expsyms_cmds_FC \
67220old_archive_from_expsyms_cmds_F77 \
67221archive_cmds_CXX \
67222archive_cmds_FC \
67223archive_cmds_F77 \
67224archive_expsym_cmds_CXX \
67225archive_expsym_cmds_FC \
67226archive_expsym_cmds_F77 \
67227module_cmds_CXX \
67228module_cmds_FC \
67229module_cmds_F77 \
67230module_expsym_cmds_CXX \
67231module_expsym_cmds_FC \
67232module_expsym_cmds_F77 \
67233export_symbols_cmds_CXX \
67234export_symbols_cmds_FC \
67235export_symbols_cmds_F77 \
67236prelink_cmds_CXX \
67237prelink_cmds_FC \
67238prelink_cmds_F77 \
67239postlink_cmds_CXX \
67240postlink_cmds_FC \
67241postlink_cmds_F77; do
67242    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
67243    *[\\\\\\\`\\"\\\$]*)
67244      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
67245      ;;
67246    *)
67247      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
67248      ;;
67249    esac
67250done
67251
67252ac_aux_dir='$ac_aux_dir'
67253
67254# See if we are running on zsh, and set the options that allow our
67255# commands through without removal of \ escapes INIT.
67256if test -n "\${ZSH_VERSION+set}"; then
67257   setopt NO_GLOB_SUBST
67258fi
67259
67260
67261    PACKAGE='$PACKAGE'
67262    VERSION='$VERSION'
67263    RM='$RM'
67264    ofile='$ofile'
67265
67266
67267
67268
67269
67270
67271
67272
67273
67274_LTEOF
67275
67276cat >>"$CONFIG_LT" <<\_LTEOF
67277{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
67278$as_echo "$as_me: creating $ofile" >&6;}
67279
67280
67281    # See if we are running on zsh, and set the options that allow our
67282    # commands through without removal of \ escapes.
67283    if test -n "${ZSH_VERSION+set}"; then
67284      setopt NO_GLOB_SUBST
67285    fi
67286
67287    cfgfile=${ofile}T
67288    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
67289    $RM "$cfgfile"
67290
67291    cat <<_LT_EOF >> "$cfgfile"
67292#! $SHELL
67293# Generated automatically by $as_me ($PACKAGE) $VERSION
67294# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
67295# NOTE: Changes made to this file will be lost: look at ltmain.sh.
67296
67297# Provide generalized library-building support services.
67298# Written by Gordon Matzigkeit, 1996
67299
67300# Copyright (C) 2014 Free Software Foundation, Inc.
67301# This is free software; see the source for copying conditions.  There is NO
67302# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
67303
67304# GNU Libtool is free software; you can redistribute it and/or modify
67305# it under the terms of the GNU General Public License as published by
67306# the Free Software Foundation; either version 2 of of the License, or
67307# (at your option) any later version.
67308#
67309# As a special exception to the GNU General Public License, if you
67310# distribute this file as part of a program or library that is built
67311# using GNU Libtool, you may include this file under the  same
67312# distribution terms that you use for the rest of that program.
67313#
67314# GNU Libtool is distributed in the hope that it will be useful, but
67315# WITHOUT ANY WARRANTY; without even the implied warranty of
67316# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
67317# GNU General Public License for more details.
67318#
67319# You should have received a copy of the GNU General Public License
67320# along with this program.  If not, see <http://www.gnu.org/licenses/>.
67321
67322
67323# The names of the tagged configurations supported by this script.
67324available_tags='CXX FC F77 '
67325
67326# Configured defaults for sys_lib_dlsearch_path munging.
67327: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
67328
67329# ### BEGIN LIBTOOL CONFIG
67330
67331# Which release of libtool.m4 was used?
67332macro_version=$macro_version
67333macro_revision=$macro_revision
67334
67335# Whether or not to build shared libraries.
67336build_libtool_libs=$enable_shared
67337
67338# Whether or not to build static libraries.
67339build_old_libs=$enable_static
67340
67341# What type of objects to build.
67342pic_mode=$pic_mode
67343
67344# Whether or not to optimize for fast installation.
67345fast_install=$enable_fast_install
67346
67347# Shared archive member basename,for filename based shared library versioning on AIX.
67348shared_archive_member_spec=$shared_archive_member_spec
67349
67350# Shell to use when invoking shell scripts.
67351SHELL=$lt_SHELL
67352
67353# An echo program that protects backslashes.
67354ECHO=$lt_ECHO
67355
67356# The PATH separator for the build system.
67357PATH_SEPARATOR=$lt_PATH_SEPARATOR
67358
67359# The host system.
67360host_alias=$host_alias
67361host=$host
67362host_os=$host_os
67363
67364# The build system.
67365build_alias=$build_alias
67366build=$build
67367build_os=$build_os
67368
67369# A sed program that does not truncate output.
67370SED=$lt_SED
67371
67372# Sed that helps us avoid accidentally triggering echo(1) options like -n.
67373Xsed="\$SED -e 1s/^X//"
67374
67375# A grep program that handles long lines.
67376GREP=$lt_GREP
67377
67378# An ERE matcher.
67379EGREP=$lt_EGREP
67380
67381# A literal string matcher.
67382FGREP=$lt_FGREP
67383
67384# A BSD- or MS-compatible name lister.
67385NM=$lt_NM
67386
67387# Whether we need soft or hard links.
67388LN_S=$lt_LN_S
67389
67390# What is the maximum length of a command?
67391max_cmd_len=$max_cmd_len
67392
67393# Object file suffix (normally "o").
67394objext=$ac_objext
67395
67396# Executable file suffix (normally "").
67397exeext=$exeext
67398
67399# whether the shell understands "unset".
67400lt_unset=$lt_unset
67401
67402# turn spaces into newlines.
67403SP2NL=$lt_lt_SP2NL
67404
67405# turn newlines into spaces.
67406NL2SP=$lt_lt_NL2SP
67407
67408# convert \$build file names to \$host format.
67409to_host_file_cmd=$lt_cv_to_host_file_cmd
67410
67411# convert \$build files to toolchain format.
67412to_tool_file_cmd=$lt_cv_to_tool_file_cmd
67413
67414# An object symbol dumper.
67415OBJDUMP=$lt_OBJDUMP
67416
67417# Method to check whether dependent libraries are shared objects.
67418deplibs_check_method=$lt_deplibs_check_method
67419
67420# Command to use when deplibs_check_method = "file_magic".
67421file_magic_cmd=$lt_file_magic_cmd
67422
67423# How to find potential files when deplibs_check_method = "file_magic".
67424file_magic_glob=$lt_file_magic_glob
67425
67426# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
67427want_nocaseglob=$lt_want_nocaseglob
67428
67429# DLL creation program.
67430DLLTOOL=$lt_DLLTOOL
67431
67432# Command to associate shared and link libraries.
67433sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
67434
67435# The archiver.
67436AR=$lt_AR
67437
67438# Flags to create an archive.
67439AR_FLAGS=$lt_AR_FLAGS
67440
67441# How to feed a file listing to the archiver.
67442archiver_list_spec=$lt_archiver_list_spec
67443
67444# A symbol stripping program.
67445STRIP=$lt_STRIP
67446
67447# Commands used to install an old-style archive.
67448RANLIB=$lt_RANLIB
67449old_postinstall_cmds=$lt_old_postinstall_cmds
67450old_postuninstall_cmds=$lt_old_postuninstall_cmds
67451
67452# Whether to use a lock for old archive extraction.
67453lock_old_archive_extraction=$lock_old_archive_extraction
67454
67455# A C compiler.
67456LTCC=$lt_CC
67457
67458# LTCC compiler flags.
67459LTCFLAGS=$lt_CFLAGS
67460
67461# Take the output of nm and produce a listing of raw symbols and C names.
67462global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
67463
67464# Transform the output of nm in a proper C declaration.
67465global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
67466
67467# Transform the output of nm into a list of symbols to manually relocate.
67468global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
67469
67470# Transform the output of nm in a C name address pair.
67471global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
67472
67473# Transform the output of nm in a C name address pair when lib prefix is needed.
67474global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
67475
67476# The name lister interface.
67477nm_interface=$lt_lt_cv_nm_interface
67478
67479# Specify filename containing input files for \$NM.
67480nm_file_list_spec=$lt_nm_file_list_spec
67481
67482# The root where to search for dependent libraries,and where our libraries should be installed.
67483lt_sysroot=$lt_sysroot
67484
67485# Command to truncate a binary pipe.
67486lt_truncate_bin=$lt_lt_cv_truncate_bin
67487
67488# The name of the directory that contains temporary libtool files.
67489objdir=$objdir
67490
67491# Used to examine libraries when file_magic_cmd begins with "file".
67492MAGIC_CMD=$MAGIC_CMD
67493
67494# Must we lock files when doing compilation?
67495need_locks=$lt_need_locks
67496
67497# Manifest tool.
67498MANIFEST_TOOL=$lt_MANIFEST_TOOL
67499
67500# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
67501DSYMUTIL=$lt_DSYMUTIL
67502
67503# Tool to change global to local symbols on Mac OS X.
67504NMEDIT=$lt_NMEDIT
67505
67506# Tool to manipulate fat objects and archives on Mac OS X.
67507LIPO=$lt_LIPO
67508
67509# ldd/readelf like tool for Mach-O binaries on Mac OS X.
67510OTOOL=$lt_OTOOL
67511
67512# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
67513OTOOL64=$lt_OTOOL64
67514
67515# Old archive suffix (normally "a").
67516libext=$libext
67517
67518# Shared library suffix (normally ".so").
67519shrext_cmds=$lt_shrext_cmds
67520
67521# The commands to extract the exported symbol list from a shared archive.
67522extract_expsyms_cmds=$lt_extract_expsyms_cmds
67523
67524# Variables whose values should be saved in libtool wrapper scripts and
67525# restored at link time.
67526variables_saved_for_relink=$lt_variables_saved_for_relink
67527
67528# Do we need the "lib" prefix for modules?
67529need_lib_prefix=$need_lib_prefix
67530
67531# Do we need a version for libraries?
67532need_version=$need_version
67533
67534# Library versioning type.
67535version_type=$version_type
67536
67537# Shared library runtime path variable.
67538runpath_var=$runpath_var
67539
67540# Shared library path variable.
67541shlibpath_var=$shlibpath_var
67542
67543# Is shlibpath searched before the hard-coded library search path?
67544shlibpath_overrides_runpath=$shlibpath_overrides_runpath
67545
67546# Format of library name prefix.
67547libname_spec=$lt_libname_spec
67548
67549# List of archive names.  First name is the real one, the rest are links.
67550# The last name is the one that the linker finds with -lNAME
67551library_names_spec=$lt_library_names_spec
67552
67553# The coded name of the library, if different from the real name.
67554soname_spec=$lt_soname_spec
67555
67556# Permission mode override for installation of shared libraries.
67557install_override_mode=$lt_install_override_mode
67558
67559# Command to use after installation of a shared archive.
67560postinstall_cmds=$lt_postinstall_cmds
67561
67562# Command to use after uninstallation of a shared archive.
67563postuninstall_cmds=$lt_postuninstall_cmds
67564
67565# Commands used to finish a libtool library installation in a directory.
67566finish_cmds=$lt_finish_cmds
67567
67568# As "finish_cmds", except a single script fragment to be evaled but
67569# not shown.
67570finish_eval=$lt_finish_eval
67571
67572# Whether we should hardcode library paths into libraries.
67573hardcode_into_libs=$hardcode_into_libs
67574
67575# Compile-time system search path for libraries.
67576sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
67577
67578# Detected run-time system search path for libraries.
67579sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
67580
67581# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
67582configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
67583
67584# Whether dlopen is supported.
67585dlopen_support=$enable_dlopen
67586
67587# Whether dlopen of programs is supported.
67588dlopen_self=$enable_dlopen_self
67589
67590# Whether dlopen of statically linked programs is supported.
67591dlopen_self_static=$enable_dlopen_self_static
67592
67593# Commands to strip libraries.
67594old_striplib=$lt_old_striplib
67595striplib=$lt_striplib
67596
67597
67598# The linker used to build libraries.
67599LD=$lt_LD
67600
67601# How to create reloadable object files.
67602reload_flag=$lt_reload_flag
67603reload_cmds=$lt_reload_cmds
67604
67605# Commands used to build an old-style archive.
67606old_archive_cmds=$lt_old_archive_cmds
67607
67608# A language specific compiler.
67609CC=$lt_compiler
67610
67611# Is the compiler the GNU compiler?
67612with_gcc=$GCC
67613
67614# Compiler flag to turn off builtin functions.
67615no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
67616
67617# Additional compiler flags for building library objects.
67618pic_flag=$lt_lt_prog_compiler_pic
67619
67620# How to pass a linker flag through the compiler.
67621wl=$lt_lt_prog_compiler_wl
67622
67623# Compiler flag to prevent dynamic linking.
67624link_static_flag=$lt_lt_prog_compiler_static
67625
67626# Does compiler simultaneously support -c and -o options?
67627compiler_c_o=$lt_lt_cv_prog_compiler_c_o
67628
67629# Whether or not to add -lc for building shared libraries.
67630build_libtool_need_lc=$archive_cmds_need_lc
67631
67632# Whether or not to disallow shared libs when runtime libs are static.
67633allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
67634
67635# Compiler flag to allow reflexive dlopens.
67636export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
67637
67638# Compiler flag to generate shared objects directly from archives.
67639whole_archive_flag_spec=$lt_whole_archive_flag_spec
67640
67641# Whether the compiler copes with passing no objects directly.
67642compiler_needs_object=$lt_compiler_needs_object
67643
67644# Create an old-style archive from a shared archive.
67645old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
67646
67647# Create a temporary old-style archive to link instead of a shared archive.
67648old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
67649
67650# Commands used to build a shared archive.
67651archive_cmds=$lt_archive_cmds
67652archive_expsym_cmds=$lt_archive_expsym_cmds
67653
67654# Commands used to build a loadable module if different from building
67655# a shared archive.
67656module_cmds=$lt_module_cmds
67657module_expsym_cmds=$lt_module_expsym_cmds
67658
67659# Whether we are building with GNU ld or not.
67660with_gnu_ld=$lt_with_gnu_ld
67661
67662# Flag that allows shared libraries with undefined symbols to be built.
67663allow_undefined_flag=$lt_allow_undefined_flag
67664
67665# Flag that enforces no undefined symbols.
67666no_undefined_flag=$lt_no_undefined_flag
67667
67668# Flag to hardcode \$libdir into a binary during linking.
67669# This must work even if \$libdir does not exist
67670hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
67671
67672# Whether we need a single "-rpath" flag with a separated argument.
67673hardcode_libdir_separator=$lt_hardcode_libdir_separator
67674
67675# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
67676# DIR into the resulting binary.
67677hardcode_direct=$hardcode_direct
67678
67679# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
67680# DIR into the resulting binary and the resulting library dependency is
67681# "absolute",i.e impossible to change by setting \$shlibpath_var if the
67682# library is relocated.
67683hardcode_direct_absolute=$hardcode_direct_absolute
67684
67685# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
67686# into the resulting binary.
67687hardcode_minus_L=$hardcode_minus_L
67688
67689# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
67690# into the resulting binary.
67691hardcode_shlibpath_var=$hardcode_shlibpath_var
67692
67693# Set to "yes" if building a shared library automatically hardcodes DIR
67694# into the library and all subsequent libraries and executables linked
67695# against it.
67696hardcode_automatic=$hardcode_automatic
67697
67698# Set to yes if linker adds runtime paths of dependent libraries
67699# to runtime path list.
67700inherit_rpath=$inherit_rpath
67701
67702# Whether libtool must link a program against all its dependency libraries.
67703link_all_deplibs=$link_all_deplibs
67704
67705# Set to "yes" if exported symbols are required.
67706always_export_symbols=$always_export_symbols
67707
67708# The commands to list exported symbols.
67709export_symbols_cmds=$lt_export_symbols_cmds
67710
67711# Symbols that should not be listed in the preloaded symbols.
67712exclude_expsyms=$lt_exclude_expsyms
67713
67714# Symbols that must always be exported.
67715include_expsyms=$lt_include_expsyms
67716
67717# Commands necessary for linking programs (against libraries) with templates.
67718prelink_cmds=$lt_prelink_cmds
67719
67720# Commands necessary for finishing linking programs.
67721postlink_cmds=$lt_postlink_cmds
67722
67723# Specify filename containing input files.
67724file_list_spec=$lt_file_list_spec
67725
67726# How to hardcode a shared library path into an executable.
67727hardcode_action=$hardcode_action
67728
67729# The directories searched by this compiler when creating a shared library.
67730compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
67731
67732# Dependencies to place before and after the objects being linked to
67733# create a shared library.
67734predep_objects=$lt_predep_objects
67735postdep_objects=$lt_postdep_objects
67736predeps=$lt_predeps
67737postdeps=$lt_postdeps
67738
67739# The library search path used internally by the compiler when linking
67740# a shared library.
67741compiler_lib_search_path=$lt_compiler_lib_search_path
67742
67743# ### END LIBTOOL CONFIG
67744
67745_LT_EOF
67746
67747    cat <<'_LT_EOF' >> "$cfgfile"
67748
67749# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
67750
67751# func_munge_path_list VARIABLE PATH
67752# -----------------------------------
67753# VARIABLE is name of variable containing _space_ separated list of
67754# directories to be munged by the contents of PATH, which is string
67755# having a format:
67756# "DIR[:DIR]:"
67757#       string "DIR[ DIR]" will be prepended to VARIABLE
67758# ":DIR[:DIR]"
67759#       string "DIR[ DIR]" will be appended to VARIABLE
67760# "DIRP[:DIRP]::[DIRA:]DIRA"
67761#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
67762#       "DIRA[ DIRA]" will be appended to VARIABLE
67763# "DIR[:DIR]"
67764#       VARIABLE will be replaced by "DIR[ DIR]"
67765func_munge_path_list ()
67766{
67767    case x$2 in
67768    x)
67769        ;;
67770    *:)
67771        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
67772        ;;
67773    x:*)
67774        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
67775        ;;
67776    *::*)
67777        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
67778        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
67779        ;;
67780    *)
67781        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
67782        ;;
67783    esac
67784}
67785
67786
67787# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
67788func_cc_basename ()
67789{
67790    for cc_temp in $*""; do
67791      case $cc_temp in
67792        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
67793        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
67794        \-*) ;;
67795        *) break;;
67796      esac
67797    done
67798    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
67799}
67800
67801
67802# ### END FUNCTIONS SHARED WITH CONFIGURE
67803
67804_LT_EOF
67805
67806  case $host_os in
67807  aix3*)
67808    cat <<\_LT_EOF >> "$cfgfile"
67809# AIX sometimes has problems with the GCC collect2 program.  For some
67810# reason, if we set the COLLECT_NAMES environment variable, the problems
67811# vanish in a puff of smoke.
67812if test set != "${COLLECT_NAMES+set}"; then
67813  COLLECT_NAMES=
67814  export COLLECT_NAMES
67815fi
67816_LT_EOF
67817    ;;
67818  esac
67819
67820
67821ltmain=$ac_aux_dir/ltmain.sh
67822
67823
67824  # We use sed instead of cat because bash on DJGPP gets confused if
67825  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
67826  # text mode, it properly converts lines to CR/LF.  This bash problem
67827  # is reportedly fixed, but why not run on old versions too?
67828  sed '$q' "$ltmain" >> "$cfgfile" \
67829     || (rm -f "$cfgfile"; exit 1)
67830
67831   mv -f "$cfgfile" "$ofile" ||
67832    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
67833  chmod +x "$ofile"
67834
67835
67836    cat <<_LT_EOF >> "$ofile"
67837
67838# ### BEGIN LIBTOOL TAG CONFIG: CXX
67839
67840# The linker used to build libraries.
67841LD=$lt_LD_CXX
67842
67843# How to create reloadable object files.
67844reload_flag=$lt_reload_flag_CXX
67845reload_cmds=$lt_reload_cmds_CXX
67846
67847# Commands used to build an old-style archive.
67848old_archive_cmds=$lt_old_archive_cmds_CXX
67849
67850# A language specific compiler.
67851CC=$lt_compiler_CXX
67852
67853# Is the compiler the GNU compiler?
67854with_gcc=$GCC_CXX
67855
67856# Compiler flag to turn off builtin functions.
67857no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
67858
67859# Additional compiler flags for building library objects.
67860pic_flag=$lt_lt_prog_compiler_pic_CXX
67861
67862# How to pass a linker flag through the compiler.
67863wl=$lt_lt_prog_compiler_wl_CXX
67864
67865# Compiler flag to prevent dynamic linking.
67866link_static_flag=$lt_lt_prog_compiler_static_CXX
67867
67868# Does compiler simultaneously support -c and -o options?
67869compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
67870
67871# Whether or not to add -lc for building shared libraries.
67872build_libtool_need_lc=$archive_cmds_need_lc_CXX
67873
67874# Whether or not to disallow shared libs when runtime libs are static.
67875allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
67876
67877# Compiler flag to allow reflexive dlopens.
67878export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
67879
67880# Compiler flag to generate shared objects directly from archives.
67881whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
67882
67883# Whether the compiler copes with passing no objects directly.
67884compiler_needs_object=$lt_compiler_needs_object_CXX
67885
67886# Create an old-style archive from a shared archive.
67887old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
67888
67889# Create a temporary old-style archive to link instead of a shared archive.
67890old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
67891
67892# Commands used to build a shared archive.
67893archive_cmds=$lt_archive_cmds_CXX
67894archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
67895
67896# Commands used to build a loadable module if different from building
67897# a shared archive.
67898module_cmds=$lt_module_cmds_CXX
67899module_expsym_cmds=$lt_module_expsym_cmds_CXX
67900
67901# Whether we are building with GNU ld or not.
67902with_gnu_ld=$lt_with_gnu_ld_CXX
67903
67904# Flag that allows shared libraries with undefined symbols to be built.
67905allow_undefined_flag=$lt_allow_undefined_flag_CXX
67906
67907# Flag that enforces no undefined symbols.
67908no_undefined_flag=$lt_no_undefined_flag_CXX
67909
67910# Flag to hardcode \$libdir into a binary during linking.
67911# This must work even if \$libdir does not exist
67912hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
67913
67914# Whether we need a single "-rpath" flag with a separated argument.
67915hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
67916
67917# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
67918# DIR into the resulting binary.
67919hardcode_direct=$hardcode_direct_CXX
67920
67921# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
67922# DIR into the resulting binary and the resulting library dependency is
67923# "absolute",i.e impossible to change by setting \$shlibpath_var if the
67924# library is relocated.
67925hardcode_direct_absolute=$hardcode_direct_absolute_CXX
67926
67927# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
67928# into the resulting binary.
67929hardcode_minus_L=$hardcode_minus_L_CXX
67930
67931# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
67932# into the resulting binary.
67933hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
67934
67935# Set to "yes" if building a shared library automatically hardcodes DIR
67936# into the library and all subsequent libraries and executables linked
67937# against it.
67938hardcode_automatic=$hardcode_automatic_CXX
67939
67940# Set to yes if linker adds runtime paths of dependent libraries
67941# to runtime path list.
67942inherit_rpath=$inherit_rpath_CXX
67943
67944# Whether libtool must link a program against all its dependency libraries.
67945link_all_deplibs=$link_all_deplibs_CXX
67946
67947# Set to "yes" if exported symbols are required.
67948always_export_symbols=$always_export_symbols_CXX
67949
67950# The commands to list exported symbols.
67951export_symbols_cmds=$lt_export_symbols_cmds_CXX
67952
67953# Symbols that should not be listed in the preloaded symbols.
67954exclude_expsyms=$lt_exclude_expsyms_CXX
67955
67956# Symbols that must always be exported.
67957include_expsyms=$lt_include_expsyms_CXX
67958
67959# Commands necessary for linking programs (against libraries) with templates.
67960prelink_cmds=$lt_prelink_cmds_CXX
67961
67962# Commands necessary for finishing linking programs.
67963postlink_cmds=$lt_postlink_cmds_CXX
67964
67965# Specify filename containing input files.
67966file_list_spec=$lt_file_list_spec_CXX
67967
67968# How to hardcode a shared library path into an executable.
67969hardcode_action=$hardcode_action_CXX
67970
67971# The directories searched by this compiler when creating a shared library.
67972compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
67973
67974# Dependencies to place before and after the objects being linked to
67975# create a shared library.
67976predep_objects=$lt_predep_objects_CXX
67977postdep_objects=$lt_postdep_objects_CXX
67978predeps=$lt_predeps_CXX
67979postdeps=$lt_postdeps_CXX
67980
67981# The library search path used internally by the compiler when linking
67982# a shared library.
67983compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
67984
67985# ### END LIBTOOL TAG CONFIG: CXX
67986_LT_EOF
67987
67988
67989    cat <<_LT_EOF >> "$ofile"
67990
67991# ### BEGIN LIBTOOL TAG CONFIG: FC
67992
67993# The linker used to build libraries.
67994LD=$lt_LD_FC
67995
67996# How to create reloadable object files.
67997reload_flag=$lt_reload_flag_FC
67998reload_cmds=$lt_reload_cmds_FC
67999
68000# Commands used to build an old-style archive.
68001old_archive_cmds=$lt_old_archive_cmds_FC
68002
68003# A language specific compiler.
68004CC=$lt_compiler_FC
68005
68006# Is the compiler the GNU compiler?
68007with_gcc=$GCC_FC
68008
68009# Compiler flag to turn off builtin functions.
68010no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
68011
68012# Additional compiler flags for building library objects.
68013pic_flag=$lt_lt_prog_compiler_pic_FC
68014
68015# How to pass a linker flag through the compiler.
68016wl=$lt_lt_prog_compiler_wl_FC
68017
68018# Compiler flag to prevent dynamic linking.
68019link_static_flag=$lt_lt_prog_compiler_static_FC
68020
68021# Does compiler simultaneously support -c and -o options?
68022compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
68023
68024# Whether or not to add -lc for building shared libraries.
68025build_libtool_need_lc=$archive_cmds_need_lc_FC
68026
68027# Whether or not to disallow shared libs when runtime libs are static.
68028allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
68029
68030# Compiler flag to allow reflexive dlopens.
68031export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
68032
68033# Compiler flag to generate shared objects directly from archives.
68034whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
68035
68036# Whether the compiler copes with passing no objects directly.
68037compiler_needs_object=$lt_compiler_needs_object_FC
68038
68039# Create an old-style archive from a shared archive.
68040old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
68041
68042# Create a temporary old-style archive to link instead of a shared archive.
68043old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
68044
68045# Commands used to build a shared archive.
68046archive_cmds=$lt_archive_cmds_FC
68047archive_expsym_cmds=$lt_archive_expsym_cmds_FC
68048
68049# Commands used to build a loadable module if different from building
68050# a shared archive.
68051module_cmds=$lt_module_cmds_FC
68052module_expsym_cmds=$lt_module_expsym_cmds_FC
68053
68054# Whether we are building with GNU ld or not.
68055with_gnu_ld=$lt_with_gnu_ld_FC
68056
68057# Flag that allows shared libraries with undefined symbols to be built.
68058allow_undefined_flag=$lt_allow_undefined_flag_FC
68059
68060# Flag that enforces no undefined symbols.
68061no_undefined_flag=$lt_no_undefined_flag_FC
68062
68063# Flag to hardcode \$libdir into a binary during linking.
68064# This must work even if \$libdir does not exist
68065hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
68066
68067# Whether we need a single "-rpath" flag with a separated argument.
68068hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
68069
68070# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
68071# DIR into the resulting binary.
68072hardcode_direct=$hardcode_direct_FC
68073
68074# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
68075# DIR into the resulting binary and the resulting library dependency is
68076# "absolute",i.e impossible to change by setting \$shlibpath_var if the
68077# library is relocated.
68078hardcode_direct_absolute=$hardcode_direct_absolute_FC
68079
68080# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
68081# into the resulting binary.
68082hardcode_minus_L=$hardcode_minus_L_FC
68083
68084# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
68085# into the resulting binary.
68086hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
68087
68088# Set to "yes" if building a shared library automatically hardcodes DIR
68089# into the library and all subsequent libraries and executables linked
68090# against it.
68091hardcode_automatic=$hardcode_automatic_FC
68092
68093# Set to yes if linker adds runtime paths of dependent libraries
68094# to runtime path list.
68095inherit_rpath=$inherit_rpath_FC
68096
68097# Whether libtool must link a program against all its dependency libraries.
68098link_all_deplibs=$link_all_deplibs_FC
68099
68100# Set to "yes" if exported symbols are required.
68101always_export_symbols=$always_export_symbols_FC
68102
68103# The commands to list exported symbols.
68104export_symbols_cmds=$lt_export_symbols_cmds_FC
68105
68106# Symbols that should not be listed in the preloaded symbols.
68107exclude_expsyms=$lt_exclude_expsyms_FC
68108
68109# Symbols that must always be exported.
68110include_expsyms=$lt_include_expsyms_FC
68111
68112# Commands necessary for linking programs (against libraries) with templates.
68113prelink_cmds=$lt_prelink_cmds_FC
68114
68115# Commands necessary for finishing linking programs.
68116postlink_cmds=$lt_postlink_cmds_FC
68117
68118# Specify filename containing input files.
68119file_list_spec=$lt_file_list_spec_FC
68120
68121# How to hardcode a shared library path into an executable.
68122hardcode_action=$hardcode_action_FC
68123
68124# The directories searched by this compiler when creating a shared library.
68125compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
68126
68127# Dependencies to place before and after the objects being linked to
68128# create a shared library.
68129predep_objects=$lt_predep_objects_FC
68130postdep_objects=$lt_postdep_objects_FC
68131predeps=$lt_predeps_FC
68132postdeps=$lt_postdeps_FC
68133
68134# The library search path used internally by the compiler when linking
68135# a shared library.
68136compiler_lib_search_path=$lt_compiler_lib_search_path_FC
68137
68138# ### END LIBTOOL TAG CONFIG: FC
68139_LT_EOF
68140
68141
68142    cat <<_LT_EOF >> "$ofile"
68143
68144# ### BEGIN LIBTOOL TAG CONFIG: F77
68145
68146# The linker used to build libraries.
68147LD=$lt_LD_F77
68148
68149# How to create reloadable object files.
68150reload_flag=$lt_reload_flag_F77
68151reload_cmds=$lt_reload_cmds_F77
68152
68153# Commands used to build an old-style archive.
68154old_archive_cmds=$lt_old_archive_cmds_F77
68155
68156# A language specific compiler.
68157CC=$lt_compiler_F77
68158
68159# Is the compiler the GNU compiler?
68160with_gcc=$GCC_F77
68161
68162# Compiler flag to turn off builtin functions.
68163no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
68164
68165# Additional compiler flags for building library objects.
68166pic_flag=$lt_lt_prog_compiler_pic_F77
68167
68168# How to pass a linker flag through the compiler.
68169wl=$lt_lt_prog_compiler_wl_F77
68170
68171# Compiler flag to prevent dynamic linking.
68172link_static_flag=$lt_lt_prog_compiler_static_F77
68173
68174# Does compiler simultaneously support -c and -o options?
68175compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
68176
68177# Whether or not to add -lc for building shared libraries.
68178build_libtool_need_lc=$archive_cmds_need_lc_F77
68179
68180# Whether or not to disallow shared libs when runtime libs are static.
68181allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
68182
68183# Compiler flag to allow reflexive dlopens.
68184export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
68185
68186# Compiler flag to generate shared objects directly from archives.
68187whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
68188
68189# Whether the compiler copes with passing no objects directly.
68190compiler_needs_object=$lt_compiler_needs_object_F77
68191
68192# Create an old-style archive from a shared archive.
68193old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
68194
68195# Create a temporary old-style archive to link instead of a shared archive.
68196old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
68197
68198# Commands used to build a shared archive.
68199archive_cmds=$lt_archive_cmds_F77
68200archive_expsym_cmds=$lt_archive_expsym_cmds_F77
68201
68202# Commands used to build a loadable module if different from building
68203# a shared archive.
68204module_cmds=$lt_module_cmds_F77
68205module_expsym_cmds=$lt_module_expsym_cmds_F77
68206
68207# Whether we are building with GNU ld or not.
68208with_gnu_ld=$lt_with_gnu_ld_F77
68209
68210# Flag that allows shared libraries with undefined symbols to be built.
68211allow_undefined_flag=$lt_allow_undefined_flag_F77
68212
68213# Flag that enforces no undefined symbols.
68214no_undefined_flag=$lt_no_undefined_flag_F77
68215
68216# Flag to hardcode \$libdir into a binary during linking.
68217# This must work even if \$libdir does not exist
68218hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
68219
68220# Whether we need a single "-rpath" flag with a separated argument.
68221hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
68222
68223# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
68224# DIR into the resulting binary.
68225hardcode_direct=$hardcode_direct_F77
68226
68227# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
68228# DIR into the resulting binary and the resulting library dependency is
68229# "absolute",i.e impossible to change by setting \$shlibpath_var if the
68230# library is relocated.
68231hardcode_direct_absolute=$hardcode_direct_absolute_F77
68232
68233# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
68234# into the resulting binary.
68235hardcode_minus_L=$hardcode_minus_L_F77
68236
68237# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
68238# into the resulting binary.
68239hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
68240
68241# Set to "yes" if building a shared library automatically hardcodes DIR
68242# into the library and all subsequent libraries and executables linked
68243# against it.
68244hardcode_automatic=$hardcode_automatic_F77
68245
68246# Set to yes if linker adds runtime paths of dependent libraries
68247# to runtime path list.
68248inherit_rpath=$inherit_rpath_F77
68249
68250# Whether libtool must link a program against all its dependency libraries.
68251link_all_deplibs=$link_all_deplibs_F77
68252
68253# Set to "yes" if exported symbols are required.
68254always_export_symbols=$always_export_symbols_F77
68255
68256# The commands to list exported symbols.
68257export_symbols_cmds=$lt_export_symbols_cmds_F77
68258
68259# Symbols that should not be listed in the preloaded symbols.
68260exclude_expsyms=$lt_exclude_expsyms_F77
68261
68262# Symbols that must always be exported.
68263include_expsyms=$lt_include_expsyms_F77
68264
68265# Commands necessary for linking programs (against libraries) with templates.
68266prelink_cmds=$lt_prelink_cmds_F77
68267
68268# Commands necessary for finishing linking programs.
68269postlink_cmds=$lt_postlink_cmds_F77
68270
68271# Specify filename containing input files.
68272file_list_spec=$lt_file_list_spec_F77
68273
68274# How to hardcode a shared library path into an executable.
68275hardcode_action=$hardcode_action_F77
68276
68277# The directories searched by this compiler when creating a shared library.
68278compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
68279
68280# Dependencies to place before and after the objects being linked to
68281# create a shared library.
68282predep_objects=$lt_predep_objects_F77
68283postdep_objects=$lt_postdep_objects_F77
68284predeps=$lt_predeps_F77
68285postdeps=$lt_postdeps_F77
68286
68287# The library search path used internally by the compiler when linking
68288# a shared library.
68289compiler_lib_search_path=$lt_compiler_lib_search_path_F77
68290
68291# ### END LIBTOOL TAG CONFIG: F77
68292_LT_EOF
68293
68294
68295as_fn_exit 0
68296_LTEOF
68297chmod +x "$CONFIG_LT"
68298
68299# configure is writing to config.log, but config.lt does its own redirection,
68300# appending to config.log, which fails on DOS, as config.log is still kept
68301# open by configure.  Here we exec the FD to /dev/null, effectively closing
68302# config.log, so it can be properly (re)opened and appended to by config.lt.
68303lt_cl_success=:
68304test yes = "$silent" &&
68305  lt_config_lt_args="$lt_config_lt_args --quiet"
68306exec 5>/dev/null
68307$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
68308exec 5>>config.log
68309$lt_cl_success || as_fn_exit 1
68310
68311
68312if test "X$enable_shared" = "Xyes" ; then
68313    # see ticket #1590 for some more background on these Darwin linking issues
68314    case $host in #(
68315  *-*-darwin*) :
68316
68317
68318        # The linker on Darwin does not allow common symbols, thus libtool
68319        # adds the -fno-common option by default for shared libraries.
68320        # However, the common symbols defined in different shared libraries
68321        # and object files still can not be treated as the same symbol.
68322        # For example:
68323        # with gfortran, the same common block in the shared libraries and
68324        # the object files will have different memory locations separately;
68325        # with ifort, the same common block in different shared libraries
68326        # will get the same memory location but still get a different location
68327        # in the object file.
68328
68329        # The -Wl,-commons,use_dylibs option asks linker to check dylibs for
68330        # definitions and use them to replace tentative definitions(commons)
68331        # from object files, thus it solves the issue of the common symbol
68332        # mismatch between the object file and the dylibs (i.e., by setting
68333        # the address of a common symbol to the place located in the first
68334        # dylib that is linked with the object file and contains this symbol).
68335        # It needs to be added only in the linking stage for the final
68336        # executable file.
68337
68338        # On the other hand, the -flat-namespace option allows linker to
68339        # unify the same common symbols in different dylibs. It needs to be
68340        # added in linking stage for both the shared library and the final
68341        # executable file.
68342
68343        # In Fortran programs, we implement global definitions such as MPI_BOTTOM
68344        # as common symbols. We check the address of the user input and translate it
68345        # to the C global definition if it is equal to the internal pre-stored address
68346        # in the Fortran binding layer. Without -flat-namespace, we may get different
68347        # addresses and thus treat the predefined constant as a normal buffer.
68348
68349        # Although gfortran works fine by only adding -flat-namespace, and
68350        # ifort works by only adding -Wl,-commons,use_dylibs, we should add
68351        # both options here as a generic solution to make sure everything safe.
68352
68353        # sanity check that -Wl,-flat_namespace works on darwin, unless the user
68354        # asked us not to add it
68355        if test "X$enable_two_level_namespace" = "Xno"; then
68356            # TODO, move this into a PAC macro with real autoconf caching
68357            pac_cv_wl_flat_namespace_works=no
68358            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler accepts -Wl,-flat_namespace" >&5
68359$as_echo_n "checking if the C compiler accepts -Wl,-flat_namespace... " >&6; }
68360
68361	if test -z "${pac_save_LDFLAGS_nesting}" ; then
68362	   pac_save_LDFLAGS_nesting=0
68363	fi
68364	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"'
68365	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1`
68366
68367
68368
68369	if echo "$LDFLAGS" | $FGREP -e "\<-Wl,-flat_namespace\>" >/dev/null 2>&1; then :
68370  echo "LDFLAGS(='$LDFLAGS') contains '-Wl,-flat_namespace', not appending" >&5
68371else
68372  echo "LDFLAGS(='$LDFLAGS') does not contain '-Wl,-flat_namespace', appending" >&5
68373		LDFLAGS="$LDFLAGS -Wl,-flat_namespace"
68374
68375fi
68376
68377            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
68378/* end confdefs.h.  */
68379
68380int
68381main ()
68382{
68383int i;
68384  ;
68385  return 0;
68386}
68387_ACEOF
68388if ac_fn_c_try_link "$LINENO"; then :
68389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68390$as_echo "yes" >&6; }
68391                            pac_cv_wl_flat_namespace_works=yes
68392else
68393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68394$as_echo "no" >&6; }
68395fi
68396rm -f core conftest.err conftest.$ac_objext \
68397    conftest$ac_exeext conftest.$ac_ext
68398
68399	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1`
68400	eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}"
68401	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}=""
68402
68403
68404            # Technically we may not be able to use the same form of the argument
68405            # for all four compilers (CC/CXX/F77/FC).  But we only think this is
68406            # necessary for Darwin for now, so this unconditional, single-var
68407            # approximation will work for now.
68408            if test "X$pac_cv_wl_flat_namespace_works" = "Xyes" ; then
68409
68410
68411	if echo "$LDFLAGS" | $FGREP -e "\<-Wl,-flat_namespace\>" >/dev/null 2>&1; then :
68412  echo "LDFLAGS(='$LDFLAGS') contains '-Wl,-flat_namespace', not appending" >&5
68413else
68414  echo "LDFLAGS(='$LDFLAGS') does not contain '-Wl,-flat_namespace', appending" >&5
68415		LDFLAGS="$LDFLAGS -Wl,-flat_namespace"
68416
68417fi
68418
68419
68420
68421	if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-Wl,-flat_namespace\>" >/dev/null 2>&1; then :
68422  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-Wl,-flat_namespace', not appending" >&5
68423else
68424  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-Wl,-flat_namespace', appending" >&5
68425		WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -Wl,-flat_namespace"
68426
68427fi
68428
68429            fi
68430        fi
68431
68432        # We only need to bother with -Wl,-commons,-use_dylibs if we are
68433        # building fortran bindings (no common block usage in our C libs).
68434        if test "X$enable_f77" = "Xyes" ; then
68435            # TODO, move this into a PAC macro with real autoconf caching
68436            pac_cv_wl_commons_use_dylibs_works=no
68437            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the F77 compiler accepts -Wl,-commons,use_dylibs" >&5
68438$as_echo_n "checking if the F77 compiler accepts -Wl,-commons,use_dylibs... " >&6; }
68439            ac_ext=f
68440ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
68441ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
68442ac_compiler_gnu=$ac_cv_f77_compiler_gnu
68443
68444
68445	if test -z "${pac_save_LDFLAGS_nesting}" ; then
68446	   pac_save_LDFLAGS_nesting=0
68447	fi
68448	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"'
68449	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1`
68450
68451
68452
68453	if echo "$LDFLAGS" | $FGREP -e "\<-Wl,-commons,use_dylibs\>" >/dev/null 2>&1; then :
68454  echo "LDFLAGS(='$LDFLAGS') contains '-Wl,-commons,use_dylibs', not appending" >&5
68455else
68456  echo "LDFLAGS(='$LDFLAGS') does not contain '-Wl,-commons,use_dylibs', appending" >&5
68457		LDFLAGS="$LDFLAGS -Wl,-commons,use_dylibs"
68458
68459fi
68460
68461            cat > conftest.$ac_ext <<_ACEOF
68462      program main
68463      INTEGER i
68464      end
68465_ACEOF
68466if ac_fn_f77_try_link "$LINENO"; then :
68467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
68468$as_echo "yes" >&6; }
68469                            pac_cv_wl_commons_use_dylibs_works=yes
68470else
68471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
68472$as_echo "no" >&6; }
68473fi
68474rm -f core conftest.err conftest.$ac_objext \
68475    conftest$ac_exeext conftest.$ac_ext
68476
68477	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1`
68478	eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}"
68479	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}=""
68480
68481            ac_ext=c
68482ac_cpp='$CPP $CPPFLAGS'
68483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
68484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
68485ac_compiler_gnu=$ac_cv_c_compiler_gnu
68486
68487
68488            # Add the flag to the WRAPPER_LDFLAGS, since this common block issue
68489            # is really only a problem for dynamically linked user programs.
68490            #
68491            # Technically we may not be able to use the same form of the argument
68492            # for all four compilers (CC/CXX/F77/FC).  But we only think this is
68493            # necessary for Darwin for now, so this unconditional, single-var
68494            # approximation will work for now.
68495            if test "X$pac_cv_wl_commons_use_dylibs_works" = "Xyes" ; then
68496
68497
68498	if echo "$WRAPPER_LDFLAGS" | $FGREP -e "\<-Wl,-commons,use_dylibs\>" >/dev/null 2>&1; then :
68499  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') contains '-Wl,-commons,use_dylibs', not appending" >&5
68500else
68501  echo "WRAPPER_LDFLAGS(='$WRAPPER_LDFLAGS') does not contain '-Wl,-commons,use_dylibs', appending" >&5
68502		WRAPPER_LDFLAGS="$WRAPPER_LDFLAGS -Wl,-commons,use_dylibs"
68503
68504fi
68505
68506            fi
68507        fi
68508
68509     ;; #(
68510  *) :
68511     ;;
68512esac
68513fi
68514
68515# Set F08 versions of datatypes, which have type MPI_Datatype and are not integers anymore.
68516# If the correspoinding F77 datatypes exist, i.e., not MPI_DATATYPE_NULL, we simply use their
68517# integer value (already converted into decimal) in F08 counterparts. Otherwise, we use
68518# MPI_VAL value of F08 MPI_DATATYPE_NULL.
68519# We put the code at the end to ensure all F77 datatypes have been set.
68520
68521if test "X$f08_works" = "Xyes"; then
68522    for type in INTEGER1 INTEGER2 INTEGER4 INTEGER8 INTEGER16 \
68523                REAL4 REAL8 REAL16 \
68524                COMPLEX8 COMPLEX16 COMPLEX32; do
68525        eval f77typename=F77_$type
68526        eval f77typevalue=\$$f77typename
68527        if test "$f77typevalue" = MPI_DATATYPE_NULL ; then
68528            eval F08_$type=MPI_DATATYPE_NULL%MPI_VAL
68529        else
68530            eval F08_$type=$f77typevalue
68531        fi
68532    done
68533
68534
68535
68536
68537
68538
68539
68540
68541
68542
68543
68544
68545    for type in PACKED UB LB BYTE \
68546                CHAR SIGNED_CHAR UNSIGNED_CHAR WCHAR SHORT \
68547                UNSIGNED_SHORT UNSIGNED INT LONG UNSIGNED_INT UNSIGNED_LONG \
68548                FLOAT DOUBLE LONG_DOUBLE LONG_LONG_INT \
68549                UNSIGNED_LONG_LONG LONG_LONG FLOAT_INT DOUBLE_INT \
68550                LONG_INT SHORT_INT "2INT" LONG_DOUBLE_INT \
68551                INT8_T INT16_T INT32_T INT64_T            \
68552                UINT8_T UINT16_T UINT32_T UINT64_T        \
68553                C_BOOL C_FLOAT_COMPLEX C_COMPLEX C_DOUBLE_COMPLEX  C_LONG_DOUBLE_COMPLEX \
68554                AINT OFFSET COUNT \
68555                CXX_BOOL CXX_FLOAT_COMPLEX CXX_DOUBLE_COMPLEX CXX_LONG_DOUBLE_COMPLEX; do
68556        eval f77typename=MPI_F77_$type
68557        eval f77typevalue=\$$f77typename
68558        if test "$f77typevalue" = MPI_DATATYPE_NULL ; then
68559            eval F08_$type=MPI_DATATYPE_NULL%MPI_VAL
68560        else
68561            eval F08_$type=$f77typevalue
68562        fi
68563    done
68564
68565
68566
68567
68568
68569
68570
68571
68572
68573
68574
68575
68576
68577
68578
68579
68580
68581
68582
68583
68584
68585
68586
68587
68588
68589
68590
68591
68592
68593
68594
68595
68596
68597
68598
68599
68600
68601
68602
68603
68604
68605
68606
68607
68608
68609
68610
68611
68612    case $MPI_AINT in #(
68613  short) :
68614    F08_C_AINT="c_short" ;; #(
68615  int) :
68616    F08_C_AINT="c_int" ;; #(
68617  long) :
68618    F08_C_AINT="c_long" ;; #(
68619  'long long') :
68620    F08_C_AINT="c_long_long" ;; #(
68621  *) :
68622    as_fn_error $? "unable to determine C MPI_AINT type in Fortran 2008" "$LINENO" 5 ;;
68623esac
68624
68625    case $MPI_COUNT in #(
68626  short) :
68627    F08_C_COUNT="c_short" ;; #(
68628  int) :
68629    F08_C_COUNT="c_int" ;; #(
68630  long) :
68631    F08_C_COUNT="c_long" ;; #(
68632  'long long') :
68633    F08_C_COUNT="c_long_long" ;; #(
68634  *) :
68635    as_fn_error $? "unable to determine C MPI_COUNT type in Fortran 2008" "$LINENO" 5 ;;
68636esac
68637
68638    case $MPI_OFFSET in #(
68639  short) :
68640    F08_C_OFFSET="c_short" ;; #(
68641  int) :
68642    F08_C_OFFSET="c_int" ;; #(
68643  long) :
68644    F08_C_OFFSET="c_long" ;; #(
68645  'long long') :
68646    F08_C_OFFSET="c_long_long" ;; #(
68647  *) :
68648    as_fn_error $? "unable to determine C MPI_OFFSET type in Fortran 2008" "$LINENO" 5 ;;
68649esac
68650
68651
68652
68653
68654fi
68655
68656########################################################################
68657# Some of the settings need to be applied at the end
68658if test x"$pac_cc_strict_werror" = xyes ; then
68659
68660
68661	if echo "$CFLAGS" | $FGREP -e "\<-Werror\>" >/dev/null 2>&1; then :
68662  echo "CFLAGS(='$CFLAGS') contains '-Werror', not appending" >&5
68663else
68664  echo "CFLAGS(='$CFLAGS') does not contain '-Werror', appending" >&5
68665		CFLAGS="$CFLAGS -Werror"
68666
68667fi
68668
68669fi
68670########################################################################
68671
68672if test -z "$pkgconfigdir" ; then
68673  # The default pkgconfig dir is under the lib dir
68674  pkgconfigdir=$libdir/pkgconfig
68675fi
68676
68677export pkgconfigdir
68678
68679ac_config_files="$ac_config_files Makefile examples/Makefile test/Makefile test/commands/Makefile src/include/mpichinfo.h mpich-doxygen src/include/mpir_ext.h src/binding/cxx/mpicxx.h src/binding/fortran/mpif_h/mpif.h src/binding/fortran/mpif_h/setbotf.f src/binding/fortran/mpif_h/setbot.c src/binding/fortran/use_mpi/mpi_sizeofs.f90 src/binding/fortran/use_mpi/mpi_base.f90 src/binding/fortran/use_mpi/mpi_constants.f90 src/binding/fortran/use_mpi_f08/mpi_f08_compile_constants.f90 src/binding/fortran/use_mpi_f08/mpi_c_interface_types.f90 src/packaging/pkgconfig/mpich.pc src/packaging/envmods/mpich.module src/env/mpixxx_opts.conf src/env/mpicc.sh src/env/mpicc.bash src/env/mpicxx.sh src/env/mpicxx.bash src/env/mpif77.sh src/env/mpif77.bash src/env/mpifort.sh src/env/mpifort.bash src/env/parkill src/include/mpi.h doc/design/Makefile doc/installguide/Makefile doc/logging/Makefile doc/refman/Makefile doc/userguide/Makefile test/commands/cmdtests"
68680
68681cat >confcache <<\_ACEOF
68682# This file is a shell script that caches the results of configure
68683# tests run on this system so they can be shared between configure
68684# scripts and configure runs, see configure's option --config-cache.
68685# It is not useful on other systems.  If it contains results you don't
68686# want to keep, you may remove or edit it.
68687#
68688# config.status only pays attention to the cache file if you give it
68689# the --recheck option to rerun configure.
68690#
68691# `ac_cv_env_foo' variables (set or unset) will be overridden when
68692# loading this file, other *unset* `ac_cv_foo' will be assigned the
68693# following values.
68694
68695_ACEOF
68696
68697# The following way of writing the cache mishandles newlines in values,
68698# but we know of no workaround that is simple, portable, and efficient.
68699# So, we kill variables containing newlines.
68700# Ultrix sh set writes to stderr and can't be redirected directly,
68701# and sets the high bit in the cache file unless we assign to the vars.
68702(
68703  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
68704    eval ac_val=\$$ac_var
68705    case $ac_val in #(
68706    *${as_nl}*)
68707      case $ac_var in #(
68708      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
68709$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
68710      esac
68711      case $ac_var in #(
68712      _ | IFS | as_nl) ;; #(
68713      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
68714      *) { eval $ac_var=; unset $ac_var;} ;;
68715      esac ;;
68716    esac
68717  done
68718
68719  (set) 2>&1 |
68720    case $as_nl`(ac_space=' '; set) 2>&1` in #(
68721    *${as_nl}ac_space=\ *)
68722      # `set' does not quote correctly, so add quotes: double-quote
68723      # substitution turns \\\\ into \\, and sed turns \\ into \.
68724      sed -n \
68725	"s/'/'\\\\''/g;
68726	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
68727      ;; #(
68728    *)
68729      # `set' quotes correctly as required by POSIX, so do not add quotes.
68730      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
68731      ;;
68732    esac |
68733    sort
68734) |
68735  sed '
68736     /^ac_cv_env_/b end
68737     t clear
68738     :clear
68739     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
68740     t end
68741     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
68742     :end' >>confcache
68743if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
68744  if test -w "$cache_file"; then
68745    if test "x$cache_file" != "x/dev/null"; then
68746      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
68747$as_echo "$as_me: updating cache $cache_file" >&6;}
68748      if test ! -f "$cache_file" || test -h "$cache_file"; then
68749	cat confcache >"$cache_file"
68750      else
68751        case $cache_file in #(
68752        */* | ?:*)
68753	  mv -f confcache "$cache_file"$$ &&
68754	  mv -f "$cache_file"$$ "$cache_file" ;; #(
68755        *)
68756	  mv -f confcache "$cache_file" ;;
68757	esac
68758      fi
68759    fi
68760  else
68761    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
68762$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
68763  fi
68764fi
68765rm -f confcache
68766
68767test "x$prefix" = xNONE && prefix=$ac_default_prefix
68768# Let make expand exec_prefix.
68769test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
68770
68771DEFS=-DHAVE_CONFIG_H
68772
68773ac_libobjs=
68774ac_ltlibobjs=
68775U=
68776for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
68777  # 1. Remove the extension, and $U if already installed.
68778  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
68779  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
68780  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
68781  #    will be set to the directory where LIBOBJS objects are built.
68782  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
68783  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
68784done
68785LIBOBJS=$ac_libobjs
68786
68787LTLIBOBJS=$ac_ltlibobjs
68788
68789
68790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
68791$as_echo_n "checking that generated files are newer than configure... " >&6; }
68792   if test -n "$am_sleep_pid"; then
68793     # Hide warnings about reused PIDs.
68794     wait $am_sleep_pid 2>/dev/null
68795   fi
68796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
68797$as_echo "done" >&6; }
68798if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
68799  as_fn_error $? "conditional \"AMDEP\" was never defined.
68800Usually this means the macro was only invoked conditionally." "$LINENO" 5
68801fi
68802if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
68803  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
68804Usually this means the macro was only invoked conditionally." "$LINENO" 5
68805fi
68806 if test -n "$EXEEXT"; then
68807  am__EXEEXT_TRUE=
68808  am__EXEEXT_FALSE='#'
68809else
68810  am__EXEEXT_TRUE='#'
68811  am__EXEEXT_FALSE=
68812fi
68813
68814if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
68815  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
68816Usually this means the macro was only invoked conditionally." "$LINENO" 5
68817fi
68818if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
68819  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
68820Usually this means the macro was only invoked conditionally." "$LINENO" 5
68821fi
68822if test -z "${INSTALL_MPIF77_TRUE}" && test -z "${INSTALL_MPIF77_FALSE}"; then
68823  as_fn_error $? "conditional \"INSTALL_MPIF77\" was never defined.
68824Usually this means the macro was only invoked conditionally." "$LINENO" 5
68825fi
68826if test -z "${BUILD_CH4_TRUE}" && test -z "${BUILD_CH4_FALSE}"; then
68827  as_fn_error $? "conditional \"BUILD_CH4\" was never defined.
68828Usually this means the macro was only invoked conditionally." "$LINENO" 5
68829fi
68830if test -z "${BUILD_CH4_NETMOD_UCX_TRUE}" && test -z "${BUILD_CH4_NETMOD_UCX_FALSE}"; then
68831  as_fn_error $? "conditional \"BUILD_CH4_NETMOD_UCX\" was never defined.
68832Usually this means the macro was only invoked conditionally." "$LINENO" 5
68833fi
68834if test -z "${BUILD_SHM_STUBSHM_TRUE}" && test -z "${BUILD_SHM_STUBSHM_FALSE}"; then
68835  as_fn_error $? "conditional \"BUILD_SHM_STUBSHM\" was never defined.
68836Usually this means the macro was only invoked conditionally." "$LINENO" 5
68837fi
68838if test -z "${BUILD_FC_BINDING_TRUE}" && test -z "${BUILD_FC_BINDING_FALSE}"; then
68839  as_fn_error $? "conditional \"BUILD_FC_BINDING\" was never defined.
68840Usually this means the macro was only invoked conditionally." "$LINENO" 5
68841fi
68842if test -z "${BUILD_SHM_IPC_GPU_TRUE}" && test -z "${BUILD_SHM_IPC_GPU_FALSE}"; then
68843  as_fn_error $? "conditional \"BUILD_SHM_IPC_GPU\" was never defined.
68844Usually this means the macro was only invoked conditionally." "$LINENO" 5
68845fi
68846if test -z "${BUILD_SHM_IPC_XPMEM_TRUE}" && test -z "${BUILD_SHM_IPC_XPMEM_FALSE}"; then
68847  as_fn_error $? "conditional \"BUILD_SHM_IPC_XPMEM\" was never defined.
68848Usually this means the macro was only invoked conditionally." "$LINENO" 5
68849fi
68850if test -z "${BUILD_CH4_NETMOD_STUBNM_TRUE}" && test -z "${BUILD_CH4_NETMOD_STUBNM_FALSE}"; then
68851  as_fn_error $? "conditional \"BUILD_CH4_NETMOD_STUBNM\" was never defined.
68852Usually this means the macro was only invoked conditionally." "$LINENO" 5
68853fi
68854if test -z "${BUILD_MPID_COMMON_GENQ_TRUE}" && test -z "${BUILD_MPID_COMMON_GENQ_FALSE}"; then
68855  as_fn_error $? "conditional \"BUILD_MPID_COMMON_GENQ\" was never defined.
68856Usually this means the macro was only invoked conditionally." "$LINENO" 5
68857fi
68858if test -z "${BUILD_HCOLL_TRUE}" && test -z "${BUILD_HCOLL_FALSE}"; then
68859  as_fn_error $? "conditional \"BUILD_HCOLL\" was never defined.
68860Usually this means the macro was only invoked conditionally." "$LINENO" 5
68861fi
68862if test -z "${BUILD_SHM_POSIX_TRUE}" && test -z "${BUILD_SHM_POSIX_FALSE}"; then
68863  as_fn_error $? "conditional \"BUILD_SHM_POSIX\" was never defined.
68864Usually this means the macro was only invoked conditionally." "$LINENO" 5
68865fi
68866if test -z "${BUILD_CH4_SHM_POSIX_EAGER_IQUEUE_TRUE}" && test -z "${BUILD_CH4_SHM_POSIX_EAGER_IQUEUE_FALSE}"; then
68867  as_fn_error $? "conditional \"BUILD_CH4_SHM_POSIX_EAGER_IQUEUE\" was never defined.
68868Usually this means the macro was only invoked conditionally." "$LINENO" 5
68869fi
68870if test -z "${BUILD_CH4_SHM_POSIX_EAGER_STUB_TRUE}" && test -z "${BUILD_CH4_SHM_POSIX_EAGER_STUB_FALSE}"; then
68871  as_fn_error $? "conditional \"BUILD_CH4_SHM_POSIX_EAGER_STUB\" was never defined.
68872Usually this means the macro was only invoked conditionally." "$LINENO" 5
68873fi
68874if test -z "${BUILD_MPID_COMMON_BC_TRUE}" && test -z "${BUILD_MPID_COMMON_BC_FALSE}"; then
68875  as_fn_error $? "conditional \"BUILD_MPID_COMMON_BC\" was never defined.
68876Usually this means the macro was only invoked conditionally." "$LINENO" 5
68877fi
68878if test -z "${BUILD_CH3_TRUE}" && test -z "${BUILD_CH3_FALSE}"; then
68879  as_fn_error $? "conditional \"BUILD_CH3\" was never defined.
68880Usually this means the macro was only invoked conditionally." "$LINENO" 5
68881fi
68882if test -z "${BUILD_CH3_NEMESIS_TRUE}" && test -z "${BUILD_CH3_NEMESIS_FALSE}"; then
68883  as_fn_error $? "conditional \"BUILD_CH3_NEMESIS\" was never defined.
68884Usually this means the macro was only invoked conditionally." "$LINENO" 5
68885fi
68886if test -z "${BUILD_MPID_COMMON_SHM_TRUE}" && test -z "${BUILD_MPID_COMMON_SHM_FALSE}"; then
68887  as_fn_error $? "conditional \"BUILD_MPID_COMMON_SHM\" was never defined.
68888Usually this means the macro was only invoked conditionally." "$LINENO" 5
68889fi
68890if test -z "${BUILD_NEMESIS_NETMOD_OFI_TRUE}" && test -z "${BUILD_NEMESIS_NETMOD_OFI_FALSE}"; then
68891  as_fn_error $? "conditional \"BUILD_NEMESIS_NETMOD_OFI\" was never defined.
68892Usually this means the macro was only invoked conditionally." "$LINENO" 5
68893fi
68894if test -z "${BUILD_NEMESIS_NETMOD_TCP_TRUE}" && test -z "${BUILD_NEMESIS_NETMOD_TCP_FALSE}"; then
68895  as_fn_error $? "conditional \"BUILD_NEMESIS_NETMOD_TCP\" was never defined.
68896Usually this means the macro was only invoked conditionally." "$LINENO" 5
68897fi
68898if test -z "${BUILD_MPID_COMMON_THREAD_TRUE}" && test -z "${BUILD_MPID_COMMON_THREAD_FALSE}"; then
68899  as_fn_error $? "conditional \"BUILD_MPID_COMMON_THREAD\" was never defined.
68900Usually this means the macro was only invoked conditionally." "$LINENO" 5
68901fi
68902if test -z "${BUILD_MPID_COMMON_SCHED_TRUE}" && test -z "${BUILD_MPID_COMMON_SCHED_FALSE}"; then
68903  as_fn_error $? "conditional \"BUILD_MPID_COMMON_SCHED\" was never defined.
68904Usually this means the macro was only invoked conditionally." "$LINENO" 5
68905fi
68906if test -z "${BUILD_CH3_SOCK_TRUE}" && test -z "${BUILD_CH3_SOCK_FALSE}"; then
68907  as_fn_error $? "conditional \"BUILD_CH3_SOCK\" was never defined.
68908Usually this means the macro was only invoked conditionally." "$LINENO" 5
68909fi
68910if test -z "${BUILD_CH3_UTIL_SOCK_TRUE}" && test -z "${BUILD_CH3_UTIL_SOCK_FALSE}"; then
68911  as_fn_error $? "conditional \"BUILD_CH3_UTIL_SOCK\" was never defined.
68912Usually this means the macro was only invoked conditionally." "$LINENO" 5
68913fi
68914if test -z "${BUILD_CH4_NETMOD_OFI_TRUE}" && test -z "${BUILD_CH4_NETMOD_OFI_FALSE}"; then
68915  as_fn_error $? "conditional \"BUILD_CH4_NETMOD_OFI\" was never defined.
68916Usually this means the macro was only invoked conditionally." "$LINENO" 5
68917fi
68918if test -z "${BUILD_PROFILING_LIB_TRUE}" && test -z "${BUILD_PROFILING_LIB_FALSE}"; then
68919  as_fn_error $? "conditional \"BUILD_PROFILING_LIB\" was never defined.
68920Usually this means the macro was only invoked conditionally." "$LINENO" 5
68921fi
68922if test -z "${HWLOC_BUILD_STANDALONE_TRUE}" && test -z "${HWLOC_BUILD_STANDALONE_FALSE}"; then
68923  as_fn_error $? "conditional \"HWLOC_BUILD_STANDALONE\" was never defined.
68924Usually this means the macro was only invoked conditionally." "$LINENO" 5
68925fi
68926if test -z "${HWLOC_HAVE_GCC_TRUE}" && test -z "${HWLOC_HAVE_GCC_FALSE}"; then
68927  as_fn_error $? "conditional \"HWLOC_HAVE_GCC\" was never defined.
68928Usually this means the macro was only invoked conditionally." "$LINENO" 5
68929fi
68930if test -z "${HWLOC_HAVE_MS_LIB_TRUE}" && test -z "${HWLOC_HAVE_MS_LIB_FALSE}"; then
68931  as_fn_error $? "conditional \"HWLOC_HAVE_MS_LIB\" was never defined.
68932Usually this means the macro was only invoked conditionally." "$LINENO" 5
68933fi
68934if test -z "${HWLOC_HAVE_OPENAT_TRUE}" && test -z "${HWLOC_HAVE_OPENAT_FALSE}"; then
68935  as_fn_error $? "conditional \"HWLOC_HAVE_OPENAT\" was never defined.
68936Usually this means the macro was only invoked conditionally." "$LINENO" 5
68937fi
68938if test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_TRUE}" && test -z "${HWLOC_HAVE_SCHED_SETAFFINITY_FALSE}"; then
68939  as_fn_error $? "conditional \"HWLOC_HAVE_SCHED_SETAFFINITY\" was never defined.
68940Usually this means the macro was only invoked conditionally." "$LINENO" 5
68941fi
68942if test -z "${HWLOC_HAVE_PTHREAD_TRUE}" && test -z "${HWLOC_HAVE_PTHREAD_FALSE}"; then
68943  as_fn_error $? "conditional \"HWLOC_HAVE_PTHREAD\" was never defined.
68944Usually this means the macro was only invoked conditionally." "$LINENO" 5
68945fi
68946if test -z "${HWLOC_HAVE_LINUX_LIBNUMA_TRUE}" && test -z "${HWLOC_HAVE_LINUX_LIBNUMA_FALSE}"; then
68947  as_fn_error $? "conditional \"HWLOC_HAVE_LINUX_LIBNUMA\" was never defined.
68948Usually this means the macro was only invoked conditionally." "$LINENO" 5
68949fi
68950if test -z "${HWLOC_HAVE_LIBIBVERBS_TRUE}" && test -z "${HWLOC_HAVE_LIBIBVERBS_FALSE}"; then
68951  as_fn_error $? "conditional \"HWLOC_HAVE_LIBIBVERBS\" was never defined.
68952Usually this means the macro was only invoked conditionally." "$LINENO" 5
68953fi
68954if test -z "${HWLOC_HAVE_CUDA_TRUE}" && test -z "${HWLOC_HAVE_CUDA_FALSE}"; then
68955  as_fn_error $? "conditional \"HWLOC_HAVE_CUDA\" was never defined.
68956Usually this means the macro was only invoked conditionally." "$LINENO" 5
68957fi
68958if test -z "${HWLOC_HAVE_GL_TRUE}" && test -z "${HWLOC_HAVE_GL_FALSE}"; then
68959  as_fn_error $? "conditional \"HWLOC_HAVE_GL\" was never defined.
68960Usually this means the macro was only invoked conditionally." "$LINENO" 5
68961fi
68962if test -z "${HWLOC_HAVE_CUDART_TRUE}" && test -z "${HWLOC_HAVE_CUDART_FALSE}"; then
68963  as_fn_error $? "conditional \"HWLOC_HAVE_CUDART\" was never defined.
68964Usually this means the macro was only invoked conditionally." "$LINENO" 5
68965fi
68966if test -z "${HWLOC_HAVE_LIBXML2_TRUE}" && test -z "${HWLOC_HAVE_LIBXML2_FALSE}"; then
68967  as_fn_error $? "conditional \"HWLOC_HAVE_LIBXML2\" was never defined.
68968Usually this means the macro was only invoked conditionally." "$LINENO" 5
68969fi
68970if test -z "${HWLOC_HAVE_CAIRO_TRUE}" && test -z "${HWLOC_HAVE_CAIRO_FALSE}"; then
68971  as_fn_error $? "conditional \"HWLOC_HAVE_CAIRO\" was never defined.
68972Usually this means the macro was only invoked conditionally." "$LINENO" 5
68973fi
68974if test -z "${HWLOC_HAVE_PCIACCESS_TRUE}" && test -z "${HWLOC_HAVE_PCIACCESS_FALSE}"; then
68975  as_fn_error $? "conditional \"HWLOC_HAVE_PCIACCESS\" was never defined.
68976Usually this means the macro was only invoked conditionally." "$LINENO" 5
68977fi
68978if test -z "${HWLOC_HAVE_OPENCL_TRUE}" && test -z "${HWLOC_HAVE_OPENCL_FALSE}"; then
68979  as_fn_error $? "conditional \"HWLOC_HAVE_OPENCL\" was never defined.
68980Usually this means the macro was only invoked conditionally." "$LINENO" 5
68981fi
68982if test -z "${HWLOC_HAVE_NVML_TRUE}" && test -z "${HWLOC_HAVE_NVML_FALSE}"; then
68983  as_fn_error $? "conditional \"HWLOC_HAVE_NVML\" was never defined.
68984Usually this means the macro was only invoked conditionally." "$LINENO" 5
68985fi
68986if test -z "${HWLOC_HAVE_RSMI_TRUE}" && test -z "${HWLOC_HAVE_RSMI_FALSE}"; then
68987  as_fn_error $? "conditional \"HWLOC_HAVE_RSMI\" was never defined.
68988Usually this means the macro was only invoked conditionally." "$LINENO" 5
68989fi
68990if test -z "${HWLOC_HAVE_BUNZIPP_TRUE}" && test -z "${HWLOC_HAVE_BUNZIPP_FALSE}"; then
68991  as_fn_error $? "conditional \"HWLOC_HAVE_BUNZIPP\" was never defined.
68992Usually this means the macro was only invoked conditionally." "$LINENO" 5
68993fi
68994if test -z "${HWLOC_HAVE_USER32_TRUE}" && test -z "${HWLOC_HAVE_USER32_FALSE}"; then
68995  as_fn_error $? "conditional \"HWLOC_HAVE_USER32\" was never defined.
68996Usually this means the macro was only invoked conditionally." "$LINENO" 5
68997fi
68998if test -z "${HWLOC_BUILD_DOXYGEN_TRUE}" && test -z "${HWLOC_BUILD_DOXYGEN_FALSE}"; then
68999  as_fn_error $? "conditional \"HWLOC_BUILD_DOXYGEN\" was never defined.
69000Usually this means the macro was only invoked conditionally." "$LINENO" 5
69001fi
69002if test -z "${HWLOC_BUILD_README_TRUE}" && test -z "${HWLOC_BUILD_README_FALSE}"; then
69003  as_fn_error $? "conditional \"HWLOC_BUILD_README\" was never defined.
69004Usually this means the macro was only invoked conditionally." "$LINENO" 5
69005fi
69006if test -z "${HWLOC_INSTALL_DOXYGEN_TRUE}" && test -z "${HWLOC_INSTALL_DOXYGEN_FALSE}"; then
69007  as_fn_error $? "conditional \"HWLOC_INSTALL_DOXYGEN\" was never defined.
69008Usually this means the macro was only invoked conditionally." "$LINENO" 5
69009fi
69010if test -z "${HWLOC_HAVE_LINUX_TRUE}" && test -z "${HWLOC_HAVE_LINUX_FALSE}"; then
69011  as_fn_error $? "conditional \"HWLOC_HAVE_LINUX\" was never defined.
69012Usually this means the macro was only invoked conditionally." "$LINENO" 5
69013fi
69014if test -z "${HWLOC_HAVE_BGQ_TRUE}" && test -z "${HWLOC_HAVE_BGQ_FALSE}"; then
69015  as_fn_error $? "conditional \"HWLOC_HAVE_BGQ\" was never defined.
69016Usually this means the macro was only invoked conditionally." "$LINENO" 5
69017fi
69018if test -z "${HWLOC_HAVE_IRIX_TRUE}" && test -z "${HWLOC_HAVE_IRIX_FALSE}"; then
69019  as_fn_error $? "conditional \"HWLOC_HAVE_IRIX\" was never defined.
69020Usually this means the macro was only invoked conditionally." "$LINENO" 5
69021fi
69022if test -z "${HWLOC_HAVE_DARWIN_TRUE}" && test -z "${HWLOC_HAVE_DARWIN_FALSE}"; then
69023  as_fn_error $? "conditional \"HWLOC_HAVE_DARWIN\" was never defined.
69024Usually this means the macro was only invoked conditionally." "$LINENO" 5
69025fi
69026if test -z "${HWLOC_HAVE_FREEBSD_TRUE}" && test -z "${HWLOC_HAVE_FREEBSD_FALSE}"; then
69027  as_fn_error $? "conditional \"HWLOC_HAVE_FREEBSD\" was never defined.
69028Usually this means the macro was only invoked conditionally." "$LINENO" 5
69029fi
69030if test -z "${HWLOC_HAVE_NETBSD_TRUE}" && test -z "${HWLOC_HAVE_NETBSD_FALSE}"; then
69031  as_fn_error $? "conditional \"HWLOC_HAVE_NETBSD\" was never defined.
69032Usually this means the macro was only invoked conditionally." "$LINENO" 5
69033fi
69034if test -z "${HWLOC_HAVE_SOLARIS_TRUE}" && test -z "${HWLOC_HAVE_SOLARIS_FALSE}"; then
69035  as_fn_error $? "conditional \"HWLOC_HAVE_SOLARIS\" was never defined.
69036Usually this means the macro was only invoked conditionally." "$LINENO" 5
69037fi
69038if test -z "${HWLOC_HAVE_AIX_TRUE}" && test -z "${HWLOC_HAVE_AIX_FALSE}"; then
69039  as_fn_error $? "conditional \"HWLOC_HAVE_AIX\" was never defined.
69040Usually this means the macro was only invoked conditionally." "$LINENO" 5
69041fi
69042if test -z "${HWLOC_HAVE_HPUX_TRUE}" && test -z "${HWLOC_HAVE_HPUX_FALSE}"; then
69043  as_fn_error $? "conditional \"HWLOC_HAVE_HPUX\" was never defined.
69044Usually this means the macro was only invoked conditionally." "$LINENO" 5
69045fi
69046if test -z "${HWLOC_HAVE_WINDOWS_TRUE}" && test -z "${HWLOC_HAVE_WINDOWS_FALSE}"; then
69047  as_fn_error $? "conditional \"HWLOC_HAVE_WINDOWS\" was never defined.
69048Usually this means the macro was only invoked conditionally." "$LINENO" 5
69049fi
69050if test -z "${HWLOC_HAVE_MINGW32_TRUE}" && test -z "${HWLOC_HAVE_MINGW32_FALSE}"; then
69051  as_fn_error $? "conditional \"HWLOC_HAVE_MINGW32\" was never defined.
69052Usually this means the macro was only invoked conditionally." "$LINENO" 5
69053fi
69054if test -z "${HWLOC_HAVE_X86_TRUE}" && test -z "${HWLOC_HAVE_X86_FALSE}"; then
69055  as_fn_error $? "conditional \"HWLOC_HAVE_X86\" was never defined.
69056Usually this means the macro was only invoked conditionally." "$LINENO" 5
69057fi
69058if test -z "${HWLOC_HAVE_X86_32_TRUE}" && test -z "${HWLOC_HAVE_X86_32_FALSE}"; then
69059  as_fn_error $? "conditional \"HWLOC_HAVE_X86_32\" was never defined.
69060Usually this means the macro was only invoked conditionally." "$LINENO" 5
69061fi
69062if test -z "${HWLOC_HAVE_X86_64_TRUE}" && test -z "${HWLOC_HAVE_X86_64_FALSE}"; then
69063  as_fn_error $? "conditional \"HWLOC_HAVE_X86_64\" was never defined.
69064Usually this means the macro was only invoked conditionally." "$LINENO" 5
69065fi
69066if test -z "${HWLOC_HAVE_X86_CPUID_TRUE}" && test -z "${HWLOC_HAVE_X86_CPUID_FALSE}"; then
69067  as_fn_error $? "conditional \"HWLOC_HAVE_X86_CPUID\" was never defined.
69068Usually this means the macro was only invoked conditionally." "$LINENO" 5
69069fi
69070if test -z "${HWLOC_HAVE_32BITS_PCI_DOMAIN_TRUE}" && test -z "${HWLOC_HAVE_32BITS_PCI_DOMAIN_FALSE}"; then
69071  as_fn_error $? "conditional \"HWLOC_HAVE_32BITS_PCI_DOMAIN\" was never defined.
69072Usually this means the macro was only invoked conditionally." "$LINENO" 5
69073fi
69074if test -z "${HWLOC_HAVE_PLUGINS_TRUE}" && test -z "${HWLOC_HAVE_PLUGINS_FALSE}"; then
69075  as_fn_error $? "conditional \"HWLOC_HAVE_PLUGINS\" was never defined.
69076Usually this means the macro was only invoked conditionally." "$LINENO" 5
69077fi
69078if test -z "${HWLOC_PCI_BUILD_STATIC_TRUE}" && test -z "${HWLOC_PCI_BUILD_STATIC_FALSE}"; then
69079  as_fn_error $? "conditional \"HWLOC_PCI_BUILD_STATIC\" was never defined.
69080Usually this means the macro was only invoked conditionally." "$LINENO" 5
69081fi
69082if test -z "${HWLOC_OPENCL_BUILD_STATIC_TRUE}" && test -z "${HWLOC_OPENCL_BUILD_STATIC_FALSE}"; then
69083  as_fn_error $? "conditional \"HWLOC_OPENCL_BUILD_STATIC\" was never defined.
69084Usually this means the macro was only invoked conditionally." "$LINENO" 5
69085fi
69086if test -z "${HWLOC_CUDA_BUILD_STATIC_TRUE}" && test -z "${HWLOC_CUDA_BUILD_STATIC_FALSE}"; then
69087  as_fn_error $? "conditional \"HWLOC_CUDA_BUILD_STATIC\" was never defined.
69088Usually this means the macro was only invoked conditionally." "$LINENO" 5
69089fi
69090if test -z "${HWLOC_NVML_BUILD_STATIC_TRUE}" && test -z "${HWLOC_NVML_BUILD_STATIC_FALSE}"; then
69091  as_fn_error $? "conditional \"HWLOC_NVML_BUILD_STATIC\" was never defined.
69092Usually this means the macro was only invoked conditionally." "$LINENO" 5
69093fi
69094if test -z "${HWLOC_RSMI_BUILD_STATIC_TRUE}" && test -z "${HWLOC_RSMI_BUILD_STATIC_FALSE}"; then
69095  as_fn_error $? "conditional \"HWLOC_RSMI_BUILD_STATIC\" was never defined.
69096Usually this means the macro was only invoked conditionally." "$LINENO" 5
69097fi
69098if test -z "${HWLOC_GL_BUILD_STATIC_TRUE}" && test -z "${HWLOC_GL_BUILD_STATIC_FALSE}"; then
69099  as_fn_error $? "conditional \"HWLOC_GL_BUILD_STATIC\" was never defined.
69100Usually this means the macro was only invoked conditionally." "$LINENO" 5
69101fi
69102if test -z "${HWLOC_XML_LIBXML_BUILD_STATIC_TRUE}" && test -z "${HWLOC_XML_LIBXML_BUILD_STATIC_FALSE}"; then
69103  as_fn_error $? "conditional \"HWLOC_XML_LIBXML_BUILD_STATIC\" was never defined.
69104Usually this means the macro was only invoked conditionally." "$LINENO" 5
69105fi
69106if test -z "${HWLOC_HAVE_CXX_TRUE}" && test -z "${HWLOC_HAVE_CXX_FALSE}"; then
69107  as_fn_error $? "conditional \"HWLOC_HAVE_CXX\" was never defined.
69108Usually this means the macro was only invoked conditionally." "$LINENO" 5
69109fi
69110if test -z "${BUILD_NETLOC_TRUE}" && test -z "${BUILD_NETLOC_FALSE}"; then
69111  as_fn_error $? "conditional \"BUILD_NETLOC\" was never defined.
69112Usually this means the macro was only invoked conditionally." "$LINENO" 5
69113fi
69114if test -z "${BUILD_NETLOCSCOTCH_TRUE}" && test -z "${BUILD_NETLOCSCOTCH_FALSE}"; then
69115  as_fn_error $? "conditional \"BUILD_NETLOCSCOTCH\" was never defined.
69116Usually this means the macro was only invoked conditionally." "$LINENO" 5
69117fi
69118if test -z "${BUILD_MPITOOLS_TRUE}" && test -z "${BUILD_MPITOOLS_FALSE}"; then
69119  as_fn_error $? "conditional \"BUILD_MPITOOLS\" was never defined.
69120Usually this means the macro was only invoked conditionally." "$LINENO" 5
69121fi
69122if test -z "${FOUND_XZ_TRUE}" && test -z "${FOUND_XZ_FALSE}"; then
69123  as_fn_error $? "conditional \"FOUND_XZ\" was never defined.
69124Usually this means the macro was only invoked conditionally." "$LINENO" 5
69125fi
69126if test -z "${BUILD_ROMIO_TRUE}" && test -z "${BUILD_ROMIO_FALSE}"; then
69127  as_fn_error $? "conditional \"BUILD_ROMIO\" was never defined.
69128Usually this means the macro was only invoked conditionally." "$LINENO" 5
69129fi
69130if test -z "${BUILD_F08_BINDING_TRUE}" && test -z "${BUILD_F08_BINDING_FALSE}"; then
69131  as_fn_error $? "conditional \"BUILD_F08_BINDING\" was never defined.
69132Usually this means the macro was only invoked conditionally." "$LINENO" 5
69133fi
69134if test -z "${BUILD_BASH_SCRIPTS_TRUE}" && test -z "${BUILD_BASH_SCRIPTS_FALSE}"; then
69135  as_fn_error $? "conditional \"BUILD_BASH_SCRIPTS\" was never defined.
69136Usually this means the macro was only invoked conditionally." "$LINENO" 5
69137fi
69138if test -z "${BUILD_DEBUGGER_DLL_TRUE}" && test -z "${BUILD_DEBUGGER_DLL_FALSE}"; then
69139  as_fn_error $? "conditional \"BUILD_DEBUGGER_DLL\" was never defined.
69140Usually this means the macro was only invoked conditionally." "$LINENO" 5
69141fi
69142if test -z "${BUILD_NAMEPUB_FILE_TRUE}" && test -z "${BUILD_NAMEPUB_FILE_FALSE}"; then
69143  as_fn_error $? "conditional \"BUILD_NAMEPUB_FILE\" was never defined.
69144Usually this means the macro was only invoked conditionally." "$LINENO" 5
69145fi
69146if test -z "${BUILD_NAMEPUB_PMI_TRUE}" && test -z "${BUILD_NAMEPUB_PMI_FALSE}"; then
69147  as_fn_error $? "conditional \"BUILD_NAMEPUB_PMI\" was never defined.
69148Usually this means the macro was only invoked conditionally." "$LINENO" 5
69149fi
69150if test -z "${BUILD_COVERAGE_TRUE}" && test -z "${BUILD_COVERAGE_FALSE}"; then
69151  as_fn_error $? "conditional \"BUILD_COVERAGE\" was never defined.
69152Usually this means the macro was only invoked conditionally." "$LINENO" 5
69153fi
69154if test -z "${BUILD_YAKSA_ENGINE_TRUE}" && test -z "${BUILD_YAKSA_ENGINE_FALSE}"; then
69155  as_fn_error $? "conditional \"BUILD_YAKSA_ENGINE\" was never defined.
69156Usually this means the macro was only invoked conditionally." "$LINENO" 5
69157fi
69158if test -z "${BUILD_DATALOOP_ENGINE_TRUE}" && test -z "${BUILD_DATALOOP_ENGINE_FALSE}"; then
69159  as_fn_error $? "conditional \"BUILD_DATALOOP_ENGINE\" was never defined.
69160Usually this means the macro was only invoked conditionally." "$LINENO" 5
69161fi
69162if test -z "${BUILD_CH4_SHM_TRUE}" && test -z "${BUILD_CH4_SHM_FALSE}"; then
69163  as_fn_error $? "conditional \"BUILD_CH4_SHM\" was never defined.
69164Usually this means the macro was only invoked conditionally." "$LINENO" 5
69165fi
69166if test -z "${BUILD_CH4_COLL_TUNING_TRUE}" && test -z "${BUILD_CH4_COLL_TUNING_FALSE}"; then
69167  as_fn_error $? "conditional \"BUILD_CH4_COLL_TUNING\" was never defined.
69168Usually this means the macro was only invoked conditionally." "$LINENO" 5
69169fi
69170if test -z "${BUILD_PM_HYDRA_TRUE}" && test -z "${BUILD_PM_HYDRA_FALSE}"; then
69171  as_fn_error $? "conditional \"BUILD_PM_HYDRA\" was never defined.
69172Usually this means the macro was only invoked conditionally." "$LINENO" 5
69173fi
69174if test -z "${BUILD_PM_HYDRA2_TRUE}" && test -z "${BUILD_PM_HYDRA2_FALSE}"; then
69175  as_fn_error $? "conditional \"BUILD_PM_HYDRA2\" was never defined.
69176Usually this means the macro was only invoked conditionally." "$LINENO" 5
69177fi
69178if test -z "${BUILD_PM_GFORKER_TRUE}" && test -z "${BUILD_PM_GFORKER_FALSE}"; then
69179  as_fn_error $? "conditional \"BUILD_PM_GFORKER\" was never defined.
69180Usually this means the macro was only invoked conditionally." "$LINENO" 5
69181fi
69182if test -z "${PRIMARY_PM_GFORKER_TRUE}" && test -z "${PRIMARY_PM_GFORKER_FALSE}"; then
69183  as_fn_error $? "conditional \"PRIMARY_PM_GFORKER\" was never defined.
69184Usually this means the macro was only invoked conditionally." "$LINENO" 5
69185fi
69186if test -z "${BUILD_SHM_IPC_XPMEM_TRUE}" && test -z "${BUILD_SHM_IPC_XPMEM_FALSE}"; then
69187  as_fn_error $? "conditional \"BUILD_SHM_IPC_XPMEM\" was never defined.
69188Usually this means the macro was only invoked conditionally." "$LINENO" 5
69189fi
69190if test -z "${BUILD_PM_REMSHELL_TRUE}" && test -z "${BUILD_PM_REMSHELL_FALSE}"; then
69191  as_fn_error $? "conditional \"BUILD_PM_REMSHELL\" was never defined.
69192Usually this means the macro was only invoked conditionally." "$LINENO" 5
69193fi
69194if test -z "${PRIMARY_PM_REMSHELL_TRUE}" && test -z "${PRIMARY_PM_REMSHELL_FALSE}"; then
69195  as_fn_error $? "conditional \"PRIMARY_PM_REMSHELL\" was never defined.
69196Usually this means the macro was only invoked conditionally." "$LINENO" 5
69197fi
69198if test -z "${BUILD_PM_UTIL_TRUE}" && test -z "${BUILD_PM_UTIL_FALSE}"; then
69199  as_fn_error $? "conditional \"BUILD_PM_UTIL\" was never defined.
69200Usually this means the macro was only invoked conditionally." "$LINENO" 5
69201fi
69202if test -z "${BUILD_PMI_SLURM_TRUE}" && test -z "${BUILD_PMI_SLURM_FALSE}"; then
69203  as_fn_error $? "conditional \"BUILD_PMI_SLURM\" was never defined.
69204Usually this means the macro was only invoked conditionally." "$LINENO" 5
69205fi
69206if test -z "${BUILD_PMI_PMI2_TRUE}" && test -z "${BUILD_PMI_PMI2_FALSE}"; then
69207  as_fn_error $? "conditional \"BUILD_PMI_PMI2\" was never defined.
69208Usually this means the macro was only invoked conditionally." "$LINENO" 5
69209fi
69210if test -z "${BUILD_PMI_PMI2_SIMPLE_TRUE}" && test -z "${BUILD_PMI_PMI2_SIMPLE_FALSE}"; then
69211  as_fn_error $? "conditional \"BUILD_PMI_PMI2_SIMPLE\" was never defined.
69212Usually this means the macro was only invoked conditionally." "$LINENO" 5
69213fi
69214if test -z "${BUILD_PMI_BGQ_TRUE}" && test -z "${BUILD_PMI_BGQ_FALSE}"; then
69215  as_fn_error $? "conditional \"BUILD_PMI_BGQ\" was never defined.
69216Usually this means the macro was only invoked conditionally." "$LINENO" 5
69217fi
69218if test -z "${BUILD_PMI_CRAY_TRUE}" && test -z "${BUILD_PMI_CRAY_FALSE}"; then
69219  as_fn_error $? "conditional \"BUILD_PMI_CRAY\" was never defined.
69220Usually this means the macro was only invoked conditionally." "$LINENO" 5
69221fi
69222if test -z "${BUILD_PMI_SIMPLE_TRUE}" && test -z "${BUILD_PMI_SIMPLE_FALSE}"; then
69223  as_fn_error $? "conditional \"BUILD_PMI_SIMPLE\" was never defined.
69224Usually this means the macro was only invoked conditionally." "$LINENO" 5
69225fi
69226
69227if test -z "${BUILD_CXX_BINDING_TRUE}" && test -z "${BUILD_CXX_BINDING_FALSE}"; then
69228  as_fn_error $? "conditional \"BUILD_CXX_BINDING\" was never defined.
69229Usually this means the macro was only invoked conditionally." "$LINENO" 5
69230fi
69231if test -z "${BUILD_F77_BINDING_TRUE}" && test -z "${BUILD_F77_BINDING_FALSE}"; then
69232  as_fn_error $? "conditional \"BUILD_F77_BINDING\" was never defined.
69233Usually this means the macro was only invoked conditionally." "$LINENO" 5
69234fi
69235
69236: "${CONFIG_STATUS=./config.status}"
69237ac_write_fail=0
69238ac_clean_files_save=$ac_clean_files
69239ac_clean_files="$ac_clean_files $CONFIG_STATUS"
69240{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
69241$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
69242as_write_fail=0
69243cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
69244#! $SHELL
69245# Generated by $as_me.
69246# Run this file to recreate the current configuration.
69247# Compiler output produced by configure, useful for debugging
69248# configure, is in config.log if it exists.
69249
69250debug=false
69251ac_cs_recheck=false
69252ac_cs_silent=false
69253
69254SHELL=\${CONFIG_SHELL-$SHELL}
69255export SHELL
69256_ASEOF
69257cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
69258## -------------------- ##
69259## M4sh Initialization. ##
69260## -------------------- ##
69261
69262# Be more Bourne compatible
69263DUALCASE=1; export DUALCASE # for MKS sh
69264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
69265  emulate sh
69266  NULLCMD=:
69267  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
69268  # is contrary to our usage.  Disable this feature.
69269  alias -g '${1+"$@"}'='"$@"'
69270  setopt NO_GLOB_SUBST
69271else
69272  case `(set -o) 2>/dev/null` in #(
69273  *posix*) :
69274    set -o posix ;; #(
69275  *) :
69276     ;;
69277esac
69278fi
69279
69280
69281as_nl='
69282'
69283export as_nl
69284# Printing a long string crashes Solaris 7 /usr/bin/printf.
69285as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
69286as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
69287as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
69288# Prefer a ksh shell builtin over an external printf program on Solaris,
69289# but without wasting forks for bash or zsh.
69290if test -z "$BASH_VERSION$ZSH_VERSION" \
69291    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
69292  as_echo='print -r --'
69293  as_echo_n='print -rn --'
69294elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
69295  as_echo='printf %s\n'
69296  as_echo_n='printf %s'
69297else
69298  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
69299    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
69300    as_echo_n='/usr/ucb/echo -n'
69301  else
69302    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
69303    as_echo_n_body='eval
69304      arg=$1;
69305      case $arg in #(
69306      *"$as_nl"*)
69307	expr "X$arg" : "X\\(.*\\)$as_nl";
69308	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
69309      esac;
69310      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69311    '
69312    export as_echo_n_body
69313    as_echo_n='sh -c $as_echo_n_body as_echo'
69314  fi
69315  export as_echo_body
69316  as_echo='sh -c $as_echo_body as_echo'
69317fi
69318
69319# The user is always right.
69320if test "${PATH_SEPARATOR+set}" != set; then
69321  PATH_SEPARATOR=:
69322  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
69323    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
69324      PATH_SEPARATOR=';'
69325  }
69326fi
69327
69328
69329# IFS
69330# We need space, tab and new line, in precisely that order.  Quoting is
69331# there to prevent editors from complaining about space-tab.
69332# (If _AS_PATH_WALK were called with IFS unset, it would disable word
69333# splitting by setting IFS to empty value.)
69334IFS=" ""	$as_nl"
69335
69336# Find who we are.  Look in the path if we contain no directory separator.
69337as_myself=
69338case $0 in #((
69339  *[\\/]* ) as_myself=$0 ;;
69340  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
69341for as_dir in $PATH
69342do
69343  IFS=$as_save_IFS
69344  test -z "$as_dir" && as_dir=.
69345    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
69346  done
69347IFS=$as_save_IFS
69348
69349     ;;
69350esac
69351# We did not find ourselves, most probably we were run as `sh COMMAND'
69352# in which case we are not to be found in the path.
69353if test "x$as_myself" = x; then
69354  as_myself=$0
69355fi
69356if test ! -f "$as_myself"; then
69357  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
69358  exit 1
69359fi
69360
69361# Unset variables that we do not need and which cause bugs (e.g. in
69362# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
69363# suppresses any "Segmentation fault" message there.  '((' could
69364# trigger a bug in pdksh 5.2.14.
69365for as_var in BASH_ENV ENV MAIL MAILPATH
69366do eval test x\${$as_var+set} = xset \
69367  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
69368done
69369PS1='$ '
69370PS2='> '
69371PS4='+ '
69372
69373# NLS nuisances.
69374LC_ALL=C
69375export LC_ALL
69376LANGUAGE=C
69377export LANGUAGE
69378
69379# CDPATH.
69380(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
69381
69382
69383# as_fn_error STATUS ERROR [LINENO LOG_FD]
69384# ----------------------------------------
69385# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
69386# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
69387# script with STATUS, using 1 if that was 0.
69388as_fn_error ()
69389{
69390  as_status=$1; test $as_status -eq 0 && as_status=1
69391  if test "$4"; then
69392    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
69393    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
69394  fi
69395  $as_echo "$as_me: error: $2" >&2
69396  as_fn_exit $as_status
69397} # as_fn_error
69398
69399
69400# as_fn_set_status STATUS
69401# -----------------------
69402# Set $? to STATUS, without forking.
69403as_fn_set_status ()
69404{
69405  return $1
69406} # as_fn_set_status
69407
69408# as_fn_exit STATUS
69409# -----------------
69410# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
69411as_fn_exit ()
69412{
69413  set +e
69414  as_fn_set_status $1
69415  exit $1
69416} # as_fn_exit
69417
69418# as_fn_unset VAR
69419# ---------------
69420# Portably unset VAR.
69421as_fn_unset ()
69422{
69423  { eval $1=; unset $1;}
69424}
69425as_unset=as_fn_unset
69426# as_fn_append VAR VALUE
69427# ----------------------
69428# Append the text in VALUE to the end of the definition contained in VAR. Take
69429# advantage of any shell optimizations that allow amortized linear growth over
69430# repeated appends, instead of the typical quadratic growth present in naive
69431# implementations.
69432if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
69433  eval 'as_fn_append ()
69434  {
69435    eval $1+=\$2
69436  }'
69437else
69438  as_fn_append ()
69439  {
69440    eval $1=\$$1\$2
69441  }
69442fi # as_fn_append
69443
69444# as_fn_arith ARG...
69445# ------------------
69446# Perform arithmetic evaluation on the ARGs, and store the result in the
69447# global $as_val. Take advantage of shells that can avoid forks. The arguments
69448# must be portable across $(()) and expr.
69449if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
69450  eval 'as_fn_arith ()
69451  {
69452    as_val=$(( $* ))
69453  }'
69454else
69455  as_fn_arith ()
69456  {
69457    as_val=`expr "$@" || test $? -eq 1`
69458  }
69459fi # as_fn_arith
69460
69461
69462if expr a : '\(a\)' >/dev/null 2>&1 &&
69463   test "X`expr 00001 : '.*\(...\)'`" = X001; then
69464  as_expr=expr
69465else
69466  as_expr=false
69467fi
69468
69469if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
69470  as_basename=basename
69471else
69472  as_basename=false
69473fi
69474
69475if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
69476  as_dirname=dirname
69477else
69478  as_dirname=false
69479fi
69480
69481as_me=`$as_basename -- "$0" ||
69482$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69483	 X"$0" : 'X\(//\)$' \| \
69484	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
69485$as_echo X/"$0" |
69486    sed '/^.*\/\([^/][^/]*\)\/*$/{
69487	    s//\1/
69488	    q
69489	  }
69490	  /^X\/\(\/\/\)$/{
69491	    s//\1/
69492	    q
69493	  }
69494	  /^X\/\(\/\).*/{
69495	    s//\1/
69496	    q
69497	  }
69498	  s/.*/./; q'`
69499
69500# Avoid depending upon Character Ranges.
69501as_cr_letters='abcdefghijklmnopqrstuvwxyz'
69502as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
69503as_cr_Letters=$as_cr_letters$as_cr_LETTERS
69504as_cr_digits='0123456789'
69505as_cr_alnum=$as_cr_Letters$as_cr_digits
69506
69507ECHO_C= ECHO_N= ECHO_T=
69508case `echo -n x` in #(((((
69509-n*)
69510  case `echo 'xy\c'` in
69511  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
69512  xy)  ECHO_C='\c';;
69513  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
69514       ECHO_T='	';;
69515  esac;;
69516*)
69517  ECHO_N='-n';;
69518esac
69519
69520rm -f conf$$ conf$$.exe conf$$.file
69521if test -d conf$$.dir; then
69522  rm -f conf$$.dir/conf$$.file
69523else
69524  rm -f conf$$.dir
69525  mkdir conf$$.dir 2>/dev/null
69526fi
69527if (echo >conf$$.file) 2>/dev/null; then
69528  if ln -s conf$$.file conf$$ 2>/dev/null; then
69529    as_ln_s='ln -s'
69530    # ... but there are two gotchas:
69531    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
69532    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
69533    # In both cases, we have to default to `cp -pR'.
69534    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
69535      as_ln_s='cp -pR'
69536  elif ln conf$$.file conf$$ 2>/dev/null; then
69537    as_ln_s=ln
69538  else
69539    as_ln_s='cp -pR'
69540  fi
69541else
69542  as_ln_s='cp -pR'
69543fi
69544rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
69545rmdir conf$$.dir 2>/dev/null
69546
69547
69548# as_fn_mkdir_p
69549# -------------
69550# Create "$as_dir" as a directory, including parents if necessary.
69551as_fn_mkdir_p ()
69552{
69553
69554  case $as_dir in #(
69555  -*) as_dir=./$as_dir;;
69556  esac
69557  test -d "$as_dir" || eval $as_mkdir_p || {
69558    as_dirs=
69559    while :; do
69560      case $as_dir in #(
69561      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
69562      *) as_qdir=$as_dir;;
69563      esac
69564      as_dirs="'$as_qdir' $as_dirs"
69565      as_dir=`$as_dirname -- "$as_dir" ||
69566$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
69567	 X"$as_dir" : 'X\(//\)[^/]' \| \
69568	 X"$as_dir" : 'X\(//\)$' \| \
69569	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
69570$as_echo X"$as_dir" |
69571    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
69572	    s//\1/
69573	    q
69574	  }
69575	  /^X\(\/\/\)[^/].*/{
69576	    s//\1/
69577	    q
69578	  }
69579	  /^X\(\/\/\)$/{
69580	    s//\1/
69581	    q
69582	  }
69583	  /^X\(\/\).*/{
69584	    s//\1/
69585	    q
69586	  }
69587	  s/.*/./; q'`
69588      test -d "$as_dir" && break
69589    done
69590    test -z "$as_dirs" || eval "mkdir $as_dirs"
69591  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
69592
69593
69594} # as_fn_mkdir_p
69595if mkdir -p . 2>/dev/null; then
69596  as_mkdir_p='mkdir -p "$as_dir"'
69597else
69598  test -d ./-p && rmdir ./-p
69599  as_mkdir_p=false
69600fi
69601
69602
69603# as_fn_executable_p FILE
69604# -----------------------
69605# Test if FILE is an executable regular file.
69606as_fn_executable_p ()
69607{
69608  test -f "$1" && test -x "$1"
69609} # as_fn_executable_p
69610as_test_x='test -x'
69611as_executable_p=as_fn_executable_p
69612
69613# Sed expression to map a string onto a valid CPP name.
69614as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
69615
69616# Sed expression to map a string onto a valid variable name.
69617as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
69618
69619
69620exec 6>&1
69621## ----------------------------------- ##
69622## Main body of $CONFIG_STATUS script. ##
69623## ----------------------------------- ##
69624_ASEOF
69625test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
69626
69627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69628# Save the log message, to keep $0 and so on meaningful, and to
69629# report actual input values of CONFIG_FILES etc. instead of their
69630# values after options handling.
69631ac_log="
69632This file was extended by MPICH $as_me 3.4.3, which was
69633generated by GNU Autoconf 2.69.  Invocation command line was
69634
69635  CONFIG_FILES    = $CONFIG_FILES
69636  CONFIG_HEADERS  = $CONFIG_HEADERS
69637  CONFIG_LINKS    = $CONFIG_LINKS
69638  CONFIG_COMMANDS = $CONFIG_COMMANDS
69639  $ $0 $@
69640
69641on `(hostname || uname -n) 2>/dev/null | sed 1q`
69642"
69643
69644_ACEOF
69645
69646case $ac_config_files in *"
69647"*) set x $ac_config_files; shift; ac_config_files=$*;;
69648esac
69649
69650case $ac_config_headers in *"
69651"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
69652esac
69653
69654
69655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69656# Files that config.status was made for.
69657config_files="$ac_config_files"
69658config_headers="$ac_config_headers"
69659config_commands="$ac_config_commands"
69660
69661_ACEOF
69662
69663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69664ac_cs_usage="\
69665\`$as_me' instantiates files and other configuration actions
69666from templates according to the current configuration.  Unless the files
69667and actions are specified as TAGs, all are instantiated by default.
69668
69669Usage: $0 [OPTION]... [TAG]...
69670
69671  -h, --help       print this help, then exit
69672  -V, --version    print version number and configuration settings, then exit
69673      --config     print configuration, then exit
69674  -q, --quiet, --silent
69675                   do not print progress messages
69676  -d, --debug      don't remove temporary files
69677      --recheck    update $as_me by reconfiguring in the same conditions
69678      --file=FILE[:TEMPLATE]
69679                   instantiate the configuration file FILE
69680      --header=FILE[:TEMPLATE]
69681                   instantiate the configuration header FILE
69682
69683Configuration files:
69684$config_files
69685
69686Configuration headers:
69687$config_headers
69688
69689Configuration commands:
69690$config_commands
69691
69692Report bugs to <discuss@mpich.org>.
69693MPICH home page: <http://www.mpich.org/>."
69694
69695_ACEOF
69696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69697ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
69698ac_cs_version="\\
69699MPICH config.status 3.4.3
69700configured by $0, generated by GNU Autoconf 2.69,
69701  with options \\"\$ac_cs_config\\"
69702
69703Copyright (C) 2012 Free Software Foundation, Inc.
69704This config.status script is free software; the Free Software Foundation
69705gives unlimited permission to copy, distribute and modify it."
69706
69707ac_pwd='$ac_pwd'
69708srcdir='$srcdir'
69709INSTALL='$INSTALL'
69710MKDIR_P='$MKDIR_P'
69711AWK='$AWK'
69712test -n "\$AWK" || AWK=awk
69713_ACEOF
69714
69715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69716# The default lists apply if the user does not specify any file.
69717ac_need_defaults=:
69718while test $# != 0
69719do
69720  case $1 in
69721  --*=?*)
69722    ac_option=`expr "X$1" : 'X\([^=]*\)='`
69723    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
69724    ac_shift=:
69725    ;;
69726  --*=)
69727    ac_option=`expr "X$1" : 'X\([^=]*\)='`
69728    ac_optarg=
69729    ac_shift=:
69730    ;;
69731  *)
69732    ac_option=$1
69733    ac_optarg=$2
69734    ac_shift=shift
69735    ;;
69736  esac
69737
69738  case $ac_option in
69739  # Handling of the options.
69740  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
69741    ac_cs_recheck=: ;;
69742  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
69743    $as_echo "$ac_cs_version"; exit ;;
69744  --config | --confi | --conf | --con | --co | --c )
69745    $as_echo "$ac_cs_config"; exit ;;
69746  --debug | --debu | --deb | --de | --d | -d )
69747    debug=: ;;
69748  --file | --fil | --fi | --f )
69749    $ac_shift
69750    case $ac_optarg in
69751    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
69752    '') as_fn_error $? "missing file argument" ;;
69753    esac
69754    as_fn_append CONFIG_FILES " '$ac_optarg'"
69755    ac_need_defaults=false;;
69756  --header | --heade | --head | --hea )
69757    $ac_shift
69758    case $ac_optarg in
69759    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
69760    esac
69761    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
69762    ac_need_defaults=false;;
69763  --he | --h)
69764    # Conflict between --help and --header
69765    as_fn_error $? "ambiguous option: \`$1'
69766Try \`$0 --help' for more information.";;
69767  --help | --hel | -h )
69768    $as_echo "$ac_cs_usage"; exit ;;
69769  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
69770  | -silent | --silent | --silen | --sile | --sil | --si | --s)
69771    ac_cs_silent=: ;;
69772
69773  # This is an error.
69774  -*) as_fn_error $? "unrecognized option: \`$1'
69775Try \`$0 --help' for more information." ;;
69776
69777  *) as_fn_append ac_config_targets " $1"
69778     ac_need_defaults=false ;;
69779
69780  esac
69781  shift
69782done
69783
69784ac_configure_extra_args=
69785
69786if $ac_cs_silent; then
69787  exec 6>/dev/null
69788  ac_configure_extra_args="$ac_configure_extra_args --silent"
69789fi
69790
69791_ACEOF
69792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69793if \$ac_cs_recheck; then
69794  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
69795  shift
69796  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
69797  CONFIG_SHELL='$SHELL'
69798  export CONFIG_SHELL
69799  exec "\$@"
69800fi
69801
69802_ACEOF
69803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69804exec 5>>config.log
69805{
69806  echo
69807  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
69808## Running $as_me. ##
69809_ASBOX
69810  $as_echo "$ac_log"
69811} >&5
69812
69813_ACEOF
69814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69815#
69816# INIT-COMMANDS
69817#
69818AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
69819
69820
69821# The HP-UX ksh and POSIX shell print the target directory to stdout
69822# if CDPATH is set.
69823(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
69824
69825sed_quote_subst='$sed_quote_subst'
69826double_quote_subst='$double_quote_subst'
69827delay_variable_subst='$delay_variable_subst'
69828macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
69829macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
69830enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
69831enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
69832pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
69833enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
69834shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
69835SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
69836ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
69837PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
69838host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
69839host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
69840host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
69841build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
69842build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
69843build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
69844SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
69845Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
69846GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
69847EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
69848FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
69849LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
69850NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
69851LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
69852max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
69853ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
69854exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
69855lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
69856lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
69857lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
69858lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
69859lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
69860reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
69861reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
69862OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
69863deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
69864file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
69865file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
69866want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
69867DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
69868sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
69869AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
69870AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
69871archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
69872STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
69873RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
69874old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
69875old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
69876old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
69877lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
69878CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
69879CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
69880compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
69881GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
69882lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
69883lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
69884lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
69885lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
69886lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
69887lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
69888nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
69889lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
69890lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
69891objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
69892MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
69893lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
69894lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
69895lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
69896lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
69897lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
69898need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
69899MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
69900DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
69901NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
69902LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
69903OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
69904OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
69905libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
69906shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
69907extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
69908archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
69909enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
69910export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
69911whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
69912compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
69913old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
69914old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
69915archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
69916archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
69917module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
69918module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
69919with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
69920allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
69921no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
69922hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
69923hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
69924hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
69925hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
69926hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
69927hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
69928hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
69929inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
69930link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
69931always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
69932export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
69933exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
69934include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
69935prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
69936postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
69937file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
69938variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
69939need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
69940need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
69941version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
69942runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
69943shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
69944shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
69945libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
69946library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
69947soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
69948install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
69949postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
69950postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
69951finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
69952finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
69953hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
69954sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
69955configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
69956configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
69957hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
69958enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
69959enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
69960enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
69961old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
69962striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
69963compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
69964predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
69965postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
69966predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
69967postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
69968compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
69969LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
69970LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
69971LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
69972reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
69973reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
69974reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
69975reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
69976reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
69977reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
69978old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
69979old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
69980old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
69981compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
69982compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
69983compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
69984GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
69985GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
69986GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
69987lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
69988lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
69989lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
69990lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
69991lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
69992lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
69993lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
69994lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
69995lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
69996lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
69997lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
69998lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
69999lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
70000lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
70001lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
70002archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
70003archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
70004archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
70005enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
70006enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
70007enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
70008export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
70009export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
70010export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
70011whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
70012whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
70013whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
70014compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
70015compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
70016compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
70017old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
70018old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
70019old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
70020old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
70021old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
70022old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
70023archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
70024archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
70025archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
70026archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
70027archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
70028archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
70029module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
70030module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
70031module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
70032module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
70033module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
70034module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
70035with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
70036with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
70037with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
70038allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
70039allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
70040allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
70041no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
70042no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
70043no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
70044hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
70045hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
70046hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
70047hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
70048hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
70049hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
70050hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
70051hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
70052hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
70053hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
70054hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
70055hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
70056hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
70057hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
70058hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
70059hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
70060hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
70061hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
70062hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
70063hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
70064hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
70065inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
70066inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
70067inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
70068link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
70069link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
70070link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
70071always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
70072always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
70073always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
70074export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
70075export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
70076export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
70077exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
70078exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
70079exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
70080include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
70081include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
70082include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
70083prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
70084prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
70085prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
70086postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
70087postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`'
70088postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
70089file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
70090file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
70091file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
70092hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
70093hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
70094hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
70095compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
70096compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
70097compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
70098predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
70099predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
70100predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
70101postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
70102postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
70103postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
70104predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
70105predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
70106predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
70107postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
70108postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
70109postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
70110compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
70111compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
70112compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
70113
70114LTCC='$LTCC'
70115LTCFLAGS='$LTCFLAGS'
70116compiler='$compiler_DEFAULT'
70117
70118# A function that is used when there is no print builtin or printf.
70119func_fallback_echo ()
70120{
70121  eval 'cat <<_LTECHO_EOF
70122\$1
70123_LTECHO_EOF'
70124}
70125
70126# Quote evaled strings.
70127for var in SHELL \
70128ECHO \
70129PATH_SEPARATOR \
70130SED \
70131GREP \
70132EGREP \
70133FGREP \
70134LD \
70135NM \
70136LN_S \
70137lt_SP2NL \
70138lt_NL2SP \
70139reload_flag \
70140OBJDUMP \
70141deplibs_check_method \
70142file_magic_cmd \
70143file_magic_glob \
70144want_nocaseglob \
70145DLLTOOL \
70146sharedlib_from_linklib_cmd \
70147AR \
70148AR_FLAGS \
70149archiver_list_spec \
70150STRIP \
70151RANLIB \
70152CC \
70153CFLAGS \
70154compiler \
70155lt_cv_sys_global_symbol_pipe \
70156lt_cv_sys_global_symbol_to_cdecl \
70157lt_cv_sys_global_symbol_to_import \
70158lt_cv_sys_global_symbol_to_c_name_address \
70159lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
70160lt_cv_nm_interface \
70161nm_file_list_spec \
70162lt_cv_truncate_bin \
70163lt_prog_compiler_no_builtin_flag \
70164lt_prog_compiler_pic \
70165lt_prog_compiler_wl \
70166lt_prog_compiler_static \
70167lt_cv_prog_compiler_c_o \
70168need_locks \
70169MANIFEST_TOOL \
70170DSYMUTIL \
70171NMEDIT \
70172LIPO \
70173OTOOL \
70174OTOOL64 \
70175shrext_cmds \
70176export_dynamic_flag_spec \
70177whole_archive_flag_spec \
70178compiler_needs_object \
70179with_gnu_ld \
70180allow_undefined_flag \
70181no_undefined_flag \
70182hardcode_libdir_flag_spec \
70183hardcode_libdir_separator \
70184exclude_expsyms \
70185include_expsyms \
70186file_list_spec \
70187variables_saved_for_relink \
70188libname_spec \
70189library_names_spec \
70190soname_spec \
70191install_override_mode \
70192finish_eval \
70193old_striplib \
70194striplib \
70195compiler_lib_search_dirs \
70196predep_objects \
70197postdep_objects \
70198predeps \
70199postdeps \
70200compiler_lib_search_path \
70201LD_CXX \
70202LD_FC \
70203LD_F77 \
70204reload_flag_CXX \
70205reload_flag_FC \
70206reload_flag_F77 \
70207compiler_CXX \
70208compiler_FC \
70209compiler_F77 \
70210lt_prog_compiler_no_builtin_flag_CXX \
70211lt_prog_compiler_no_builtin_flag_FC \
70212lt_prog_compiler_no_builtin_flag_F77 \
70213lt_prog_compiler_pic_CXX \
70214lt_prog_compiler_pic_FC \
70215lt_prog_compiler_pic_F77 \
70216lt_prog_compiler_wl_CXX \
70217lt_prog_compiler_wl_FC \
70218lt_prog_compiler_wl_F77 \
70219lt_prog_compiler_static_CXX \
70220lt_prog_compiler_static_FC \
70221lt_prog_compiler_static_F77 \
70222lt_cv_prog_compiler_c_o_CXX \
70223lt_cv_prog_compiler_c_o_FC \
70224lt_cv_prog_compiler_c_o_F77 \
70225export_dynamic_flag_spec_CXX \
70226export_dynamic_flag_spec_FC \
70227export_dynamic_flag_spec_F77 \
70228whole_archive_flag_spec_CXX \
70229whole_archive_flag_spec_FC \
70230whole_archive_flag_spec_F77 \
70231compiler_needs_object_CXX \
70232compiler_needs_object_FC \
70233compiler_needs_object_F77 \
70234with_gnu_ld_CXX \
70235with_gnu_ld_FC \
70236with_gnu_ld_F77 \
70237allow_undefined_flag_CXX \
70238allow_undefined_flag_FC \
70239allow_undefined_flag_F77 \
70240no_undefined_flag_CXX \
70241no_undefined_flag_FC \
70242no_undefined_flag_F77 \
70243hardcode_libdir_flag_spec_CXX \
70244hardcode_libdir_flag_spec_FC \
70245hardcode_libdir_flag_spec_F77 \
70246hardcode_libdir_separator_CXX \
70247hardcode_libdir_separator_FC \
70248hardcode_libdir_separator_F77 \
70249exclude_expsyms_CXX \
70250exclude_expsyms_FC \
70251exclude_expsyms_F77 \
70252include_expsyms_CXX \
70253include_expsyms_FC \
70254include_expsyms_F77 \
70255file_list_spec_CXX \
70256file_list_spec_FC \
70257file_list_spec_F77 \
70258compiler_lib_search_dirs_CXX \
70259compiler_lib_search_dirs_FC \
70260compiler_lib_search_dirs_F77 \
70261predep_objects_CXX \
70262predep_objects_FC \
70263predep_objects_F77 \
70264postdep_objects_CXX \
70265postdep_objects_FC \
70266postdep_objects_F77 \
70267predeps_CXX \
70268predeps_FC \
70269predeps_F77 \
70270postdeps_CXX \
70271postdeps_FC \
70272postdeps_F77 \
70273compiler_lib_search_path_CXX \
70274compiler_lib_search_path_FC \
70275compiler_lib_search_path_F77; do
70276    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
70277    *[\\\\\\\`\\"\\\$]*)
70278      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
70279      ;;
70280    *)
70281      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
70282      ;;
70283    esac
70284done
70285
70286# Double-quote double-evaled strings.
70287for var in reload_cmds \
70288old_postinstall_cmds \
70289old_postuninstall_cmds \
70290old_archive_cmds \
70291extract_expsyms_cmds \
70292old_archive_from_new_cmds \
70293old_archive_from_expsyms_cmds \
70294archive_cmds \
70295archive_expsym_cmds \
70296module_cmds \
70297module_expsym_cmds \
70298export_symbols_cmds \
70299prelink_cmds \
70300postlink_cmds \
70301postinstall_cmds \
70302postuninstall_cmds \
70303finish_cmds \
70304sys_lib_search_path_spec \
70305configure_time_dlsearch_path \
70306configure_time_lt_sys_library_path \
70307reload_cmds_CXX \
70308reload_cmds_FC \
70309reload_cmds_F77 \
70310old_archive_cmds_CXX \
70311old_archive_cmds_FC \
70312old_archive_cmds_F77 \
70313old_archive_from_new_cmds_CXX \
70314old_archive_from_new_cmds_FC \
70315old_archive_from_new_cmds_F77 \
70316old_archive_from_expsyms_cmds_CXX \
70317old_archive_from_expsyms_cmds_FC \
70318old_archive_from_expsyms_cmds_F77 \
70319archive_cmds_CXX \
70320archive_cmds_FC \
70321archive_cmds_F77 \
70322archive_expsym_cmds_CXX \
70323archive_expsym_cmds_FC \
70324archive_expsym_cmds_F77 \
70325module_cmds_CXX \
70326module_cmds_FC \
70327module_cmds_F77 \
70328module_expsym_cmds_CXX \
70329module_expsym_cmds_FC \
70330module_expsym_cmds_F77 \
70331export_symbols_cmds_CXX \
70332export_symbols_cmds_FC \
70333export_symbols_cmds_F77 \
70334prelink_cmds_CXX \
70335prelink_cmds_FC \
70336prelink_cmds_F77 \
70337postlink_cmds_CXX \
70338postlink_cmds_FC \
70339postlink_cmds_F77; do
70340    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
70341    *[\\\\\\\`\\"\\\$]*)
70342      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
70343      ;;
70344    *)
70345      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
70346      ;;
70347    esac
70348done
70349
70350ac_aux_dir='$ac_aux_dir'
70351
70352# See if we are running on zsh, and set the options that allow our
70353# commands through without removal of \ escapes INIT.
70354if test -n "\${ZSH_VERSION+set}"; then
70355   setopt NO_GLOB_SUBST
70356fi
70357
70358
70359    PACKAGE='$PACKAGE'
70360    VERSION='$VERSION'
70361    RM='$RM'
70362    ofile='$ofile'
70363
70364
70365
70366
70367
70368
70369
70370ac_aux_dir='$ac_aux_dir'
70371
70372
70373main_top_srcdir=$main_top_srcdir
70374enable_f77=$enable_f77
70375enable_fc=$enable_fc
70376has_exclaim=$has_exclaim
70377has_fort_real8=$pac_cv_fort_real8
70378includebuild_dir=$includebuild_dir
70379libbuild_dir=$libbuild_dir
70380bashWorks=$bashWorks
70381
70382EXTERNAL_SETUPS="$EXTERNAL_SETUPS"
70383LIBDIR="$libbuild_dir"
70384MPILIBNAME="$MPILIBNAME"
70385PMPILIBNAME="$PMPILIBNAME"
70386CC="$CC"
70387CPPFLAGS="$CPPFLAGS"
70388CFLAGS="$CFLAGS"
70389export LIBDIR ; export MPILIBNAME ; export CC ; export CPPFLAGS
70390export PMPILIBNAME
70391export CFLAGS
70392# For test/mpi/configure
70393MPI_SRCDIR=$MPI_SRCDIR
70394MPI_NO_SPAWN=$MPID_NO_SPAWN
70395export MPI_SRCDIR
70396export MPI_NO_SPAWN
70397
70398
70399
70400
70401_ACEOF
70402
70403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70404
70405# Handling of arguments.
70406for ac_config_target in $ac_config_targets
70407do
70408  case $ac_config_target in
70409    "src/include/mpichconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/mpichconf.h" ;;
70410    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
70411    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
70412    "src/mpid/ch4/shm/posix/posix_eager_array.c") CONFIG_FILES="$CONFIG_FILES src/mpid/ch4/shm/posix/posix_eager_array.c" ;;
70413    "src/mpid/ch4/shm/posix/eager/include/posix_eager_pre.h") CONFIG_FILES="$CONFIG_FILES src/mpid/ch4/shm/posix/eager/include/posix_eager_pre.h" ;;
70414    "modules/hwloc/include/private/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS modules/hwloc/include/private/autogen/config.h" ;;
70415    "modules/hwloc/include/hwloc/autogen/config.h") CONFIG_HEADERS="$CONFIG_HEADERS modules/hwloc/include/hwloc/autogen/config.h" ;;
70416    "modules/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/hwloc/Makefile" ;;
70417    "modules/hwloc/include/Makefile") CONFIG_FILES="$CONFIG_FILES modules/hwloc/include/Makefile" ;;
70418    "modules/hwloc/hwloc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/hwloc/hwloc/Makefile" ;;
70419    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
70420    "src/mpid/ch4/src/mpid_ch4_net_array.c") CONFIG_FILES="$CONFIG_FILES src/mpid/ch4/src/mpid_ch4_net_array.c" ;;
70421    "src/mpid/ch4/include/netmodpre.h") CONFIG_FILES="$CONFIG_FILES src/mpid/ch4/include/netmodpre.h" ;;
70422    "src/binding/fortran/use_mpi/mpif90model.h") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/use_mpi/mpif90model.h" ;;
70423    "src/mpid/ch3/channels/nemesis/include/mpid_nem_net_module_defs.h") CONFIG_FILES="$CONFIG_FILES src/mpid/ch3/channels/nemesis/include/mpid_nem_net_module_defs.h" ;;
70424    "src/mpid/ch3/channels/nemesis/src/mpid_nem_net_array.c") CONFIG_FILES="$CONFIG_FILES src/mpid/ch3/channels/nemesis/src/mpid_nem_net_array.c" ;;
70425    "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
70426    "default-3") CONFIG_COMMANDS="$CONFIG_COMMANDS default-3" ;;
70427    "default-4") CONFIG_COMMANDS="$CONFIG_COMMANDS default-4" ;;
70428    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
70429    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
70430    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
70431    "test/commands/Makefile") CONFIG_FILES="$CONFIG_FILES test/commands/Makefile" ;;
70432    "src/include/mpichinfo.h") CONFIG_FILES="$CONFIG_FILES src/include/mpichinfo.h" ;;
70433    "mpich-doxygen") CONFIG_FILES="$CONFIG_FILES mpich-doxygen" ;;
70434    "src/include/mpir_ext.h") CONFIG_FILES="$CONFIG_FILES src/include/mpir_ext.h" ;;
70435    "src/binding/cxx/mpicxx.h") CONFIG_FILES="$CONFIG_FILES src/binding/cxx/mpicxx.h" ;;
70436    "src/binding/fortran/mpif_h/mpif.h") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/mpif_h/mpif.h" ;;
70437    "src/binding/fortran/mpif_h/setbotf.f") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/mpif_h/setbotf.f" ;;
70438    "src/binding/fortran/mpif_h/setbot.c") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/mpif_h/setbot.c" ;;
70439    "src/binding/fortran/use_mpi/mpi_sizeofs.f90") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/use_mpi/mpi_sizeofs.f90" ;;
70440    "src/binding/fortran/use_mpi/mpi_base.f90") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/use_mpi/mpi_base.f90" ;;
70441    "src/binding/fortran/use_mpi/mpi_constants.f90") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/use_mpi/mpi_constants.f90" ;;
70442    "src/binding/fortran/use_mpi_f08/mpi_f08_compile_constants.f90") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/use_mpi_f08/mpi_f08_compile_constants.f90" ;;
70443    "src/binding/fortran/use_mpi_f08/mpi_c_interface_types.f90") CONFIG_FILES="$CONFIG_FILES src/binding/fortran/use_mpi_f08/mpi_c_interface_types.f90" ;;
70444    "src/packaging/pkgconfig/mpich.pc") CONFIG_FILES="$CONFIG_FILES src/packaging/pkgconfig/mpich.pc" ;;
70445    "src/packaging/envmods/mpich.module") CONFIG_FILES="$CONFIG_FILES src/packaging/envmods/mpich.module" ;;
70446    "src/env/mpixxx_opts.conf") CONFIG_FILES="$CONFIG_FILES src/env/mpixxx_opts.conf" ;;
70447    "src/env/mpicc.sh") CONFIG_FILES="$CONFIG_FILES src/env/mpicc.sh" ;;
70448    "src/env/mpicc.bash") CONFIG_FILES="$CONFIG_FILES src/env/mpicc.bash" ;;
70449    "src/env/mpicxx.sh") CONFIG_FILES="$CONFIG_FILES src/env/mpicxx.sh" ;;
70450    "src/env/mpicxx.bash") CONFIG_FILES="$CONFIG_FILES src/env/mpicxx.bash" ;;
70451    "src/env/mpif77.sh") CONFIG_FILES="$CONFIG_FILES src/env/mpif77.sh" ;;
70452    "src/env/mpif77.bash") CONFIG_FILES="$CONFIG_FILES src/env/mpif77.bash" ;;
70453    "src/env/mpifort.sh") CONFIG_FILES="$CONFIG_FILES src/env/mpifort.sh" ;;
70454    "src/env/mpifort.bash") CONFIG_FILES="$CONFIG_FILES src/env/mpifort.bash" ;;
70455    "src/env/parkill") CONFIG_FILES="$CONFIG_FILES src/env/parkill" ;;
70456    "src/include/mpi.h") CONFIG_FILES="$CONFIG_FILES src/include/mpi.h" ;;
70457    "doc/design/Makefile") CONFIG_FILES="$CONFIG_FILES doc/design/Makefile" ;;
70458    "doc/installguide/Makefile") CONFIG_FILES="$CONFIG_FILES doc/installguide/Makefile" ;;
70459    "doc/logging/Makefile") CONFIG_FILES="$CONFIG_FILES doc/logging/Makefile" ;;
70460    "doc/refman/Makefile") CONFIG_FILES="$CONFIG_FILES doc/refman/Makefile" ;;
70461    "doc/userguide/Makefile") CONFIG_FILES="$CONFIG_FILES doc/userguide/Makefile" ;;
70462    "test/commands/cmdtests") CONFIG_FILES="$CONFIG_FILES test/commands/cmdtests" ;;
70463
70464  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
70465  esac
70466done
70467
70468
70469# If the user did not use the arguments to specify the items to instantiate,
70470# then the envvar interface is used.  Set only those that are not.
70471# We use the long form for the default assignment because of an extremely
70472# bizarre bug on SunOS 4.1.3.
70473if $ac_need_defaults; then
70474  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
70475  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
70476  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
70477fi
70478
70479# Have a temporary directory for convenience.  Make it in the build tree
70480# simply because there is no reason against having it here, and in addition,
70481# creating and moving files from /tmp can sometimes cause problems.
70482# Hook for its removal unless debugging.
70483# Note that there is a small window in which the directory will not be cleaned:
70484# after its creation but before its name has been assigned to `$tmp'.
70485$debug ||
70486{
70487  tmp= ac_tmp=
70488  trap 'exit_status=$?
70489  : "${ac_tmp:=$tmp}"
70490  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
70491' 0
70492  trap 'as_fn_exit 1' 1 2 13 15
70493}
70494# Create a (secure) tmp directory for tmp files.
70495
70496{
70497  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
70498  test -d "$tmp"
70499}  ||
70500{
70501  tmp=./conf$$-$RANDOM
70502  (umask 077 && mkdir "$tmp")
70503} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
70504ac_tmp=$tmp
70505
70506# Set up the scripts for CONFIG_FILES section.
70507# No need to generate them if there are no CONFIG_FILES.
70508# This happens for instance with `./config.status config.h'.
70509if test -n "$CONFIG_FILES"; then
70510
70511if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
70512  ac_cs_awk_getline=:
70513  ac_cs_awk_pipe_init=
70514  ac_cs_awk_read_file='
70515      while ((getline aline < (F[key])) > 0)
70516	print(aline)
70517      close(F[key])'
70518  ac_cs_awk_pipe_fini=
70519else
70520  ac_cs_awk_getline=false
70521  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
70522  ac_cs_awk_read_file='
70523      print "|#_!!_#|"
70524      print "cat " F[key] " &&"
70525      '$ac_cs_awk_pipe_init
70526  # The final `:' finishes the AND list.
70527  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
70528fi
70529ac_cr=`echo X | tr X '\015'`
70530# On cygwin, bash can eat \r inside `` if the user requested igncr.
70531# But we know of no other shell where ac_cr would be empty at this
70532# point, so we can use a bashism as a fallback.
70533if test "x$ac_cr" = x; then
70534  eval ac_cr=\$\'\\r\'
70535fi
70536ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
70537if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
70538  ac_cs_awk_cr='\\r'
70539else
70540  ac_cs_awk_cr=$ac_cr
70541fi
70542
70543echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
70544_ACEOF
70545
70546# Create commands to substitute file output variables.
70547{
70548  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
70549  echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
70550  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
70551  echo "_ACAWK" &&
70552  echo "_ACEOF"
70553} >conf$$files.sh &&
70554. ./conf$$files.sh ||
70555  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
70556rm -f conf$$files.sh
70557
70558{
70559  echo "cat >conf$$subs.awk <<_ACEOF" &&
70560  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
70561  echo "_ACEOF"
70562} >conf$$subs.sh ||
70563  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
70564ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
70565ac_delim='%!_!# '
70566for ac_last_try in false false false false false :; do
70567  . ./conf$$subs.sh ||
70568    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
70569
70570  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
70571  if test $ac_delim_n = $ac_delim_num; then
70572    break
70573  elif $ac_last_try; then
70574    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
70575  else
70576    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
70577  fi
70578done
70579rm -f conf$$subs.sh
70580
70581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70582cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
70583_ACEOF
70584sed -n '
70585h
70586s/^/S["/; s/!.*/"]=/
70587p
70588g
70589s/^[^!]*!//
70590:repl
70591t repl
70592s/'"$ac_delim"'$//
70593t delim
70594:nl
70595h
70596s/\(.\{148\}\)..*/\1/
70597t more1
70598s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
70599p
70600n
70601b repl
70602:more1
70603s/["\\]/\\&/g; s/^/"/; s/$/"\\/
70604p
70605g
70606s/.\{148\}//
70607t nl
70608:delim
70609h
70610s/\(.\{148\}\)..*/\1/
70611t more2
70612s/["\\]/\\&/g; s/^/"/; s/$/"/
70613p
70614b
70615:more2
70616s/["\\]/\\&/g; s/^/"/; s/$/"\\/
70617p
70618g
70619s/.\{148\}//
70620t delim
70621' <conf$$subs.awk | sed '
70622/^[^""]/{
70623  N
70624  s/\n//
70625}
70626' >>$CONFIG_STATUS || ac_write_fail=1
70627rm -f conf$$subs.awk
70628cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70629_ACAWK
70630cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
70631  for (key in S) S_is_set[key] = 1
70632  FS = ""
70633  \$ac_cs_awk_pipe_init
70634}
70635{
70636  line = $ 0
70637  nfields = split(line, field, "@")
70638  substed = 0
70639  len = length(field[1])
70640  for (i = 2; i < nfields; i++) {
70641    key = field[i]
70642    keylen = length(key)
70643    if (S_is_set[key]) {
70644      value = S[key]
70645      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
70646      len += length(value) + length(field[++i])
70647      substed = 1
70648    } else
70649      len += 1 + keylen
70650  }
70651  if (nfields == 3 && !substed) {
70652    key = field[2]
70653    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
70654      \$ac_cs_awk_read_file
70655      next
70656    }
70657  }
70658  print line
70659}
70660\$ac_cs_awk_pipe_fini
70661_ACAWK
70662_ACEOF
70663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70664if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
70665  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
70666else
70667  cat
70668fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
70669  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
70670_ACEOF
70671
70672# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
70673# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
70674# trailing colons and then remove the whole line if VPATH becomes empty
70675# (actually we leave an empty line to preserve line numbers).
70676if test "x$srcdir" = x.; then
70677  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
70678h
70679s///
70680s/^/:/
70681s/[	 ]*$/:/
70682s/:\$(srcdir):/:/g
70683s/:\${srcdir}:/:/g
70684s/:@srcdir@:/:/g
70685s/^:*//
70686s/:*$//
70687x
70688s/\(=[	 ]*\).*/\1/
70689G
70690s/\n//
70691s/^[^=]*=[	 ]*$//
70692}'
70693fi
70694
70695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70696fi # test -n "$CONFIG_FILES"
70697
70698# Set up the scripts for CONFIG_HEADERS section.
70699# No need to generate them if there are no CONFIG_HEADERS.
70700# This happens for instance with `./config.status Makefile'.
70701if test -n "$CONFIG_HEADERS"; then
70702cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
70703BEGIN {
70704_ACEOF
70705
70706# Transform confdefs.h into an awk script `defines.awk', embedded as
70707# here-document in config.status, that substitutes the proper values into
70708# config.h.in to produce config.h.
70709
70710# Create a delimiter string that does not exist in confdefs.h, to ease
70711# handling of long lines.
70712ac_delim='%!_!# '
70713for ac_last_try in false false :; do
70714  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
70715  if test -z "$ac_tt"; then
70716    break
70717  elif $ac_last_try; then
70718    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
70719  else
70720    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
70721  fi
70722done
70723
70724# For the awk script, D is an array of macro values keyed by name,
70725# likewise P contains macro parameters if any.  Preserve backslash
70726# newline sequences.
70727
70728ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
70729sed -n '
70730s/.\{148\}/&'"$ac_delim"'/g
70731t rset
70732:rset
70733s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
70734t def
70735d
70736:def
70737s/\\$//
70738t bsnl
70739s/["\\]/\\&/g
70740s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
70741D["\1"]=" \3"/p
70742s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
70743d
70744:bsnl
70745s/["\\]/\\&/g
70746s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
70747D["\1"]=" \3\\\\\\n"\\/p
70748t cont
70749s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
70750t cont
70751d
70752:cont
70753n
70754s/.\{148\}/&'"$ac_delim"'/g
70755t clear
70756:clear
70757s/\\$//
70758t bsnlc
70759s/["\\]/\\&/g; s/^/"/; s/$/"/p
70760d
70761:bsnlc
70762s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
70763b cont
70764' <confdefs.h | sed '
70765s/'"$ac_delim"'/"\\\
70766"/g' >>$CONFIG_STATUS || ac_write_fail=1
70767
70768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70769  for (key in D) D_is_set[key] = 1
70770  FS = ""
70771}
70772/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
70773  line = \$ 0
70774  split(line, arg, " ")
70775  if (arg[1] == "#") {
70776    defundef = arg[2]
70777    mac1 = arg[3]
70778  } else {
70779    defundef = substr(arg[1], 2)
70780    mac1 = arg[2]
70781  }
70782  split(mac1, mac2, "(") #)
70783  macro = mac2[1]
70784  prefix = substr(line, 1, index(line, defundef) - 1)
70785  if (D_is_set[macro]) {
70786    # Preserve the white space surrounding the "#".
70787    print prefix "define", macro P[macro] D[macro]
70788    next
70789  } else {
70790    # Replace #undef with comments.  This is necessary, for example,
70791    # in the case of _POSIX_SOURCE, which is predefined and required
70792    # on some systems where configure will not decide to define it.
70793    if (defundef == "undef") {
70794      print "/*", prefix defundef, macro, "*/"
70795      next
70796    }
70797  }
70798}
70799{ print }
70800_ACAWK
70801_ACEOF
70802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70803  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
70804fi # test -n "$CONFIG_HEADERS"
70805
70806
70807eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
70808shift
70809for ac_tag
70810do
70811  case $ac_tag in
70812  :[FHLC]) ac_mode=$ac_tag; continue;;
70813  esac
70814  case $ac_mode$ac_tag in
70815  :[FHL]*:*);;
70816  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
70817  :[FH]-) ac_tag=-:-;;
70818  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
70819  esac
70820  ac_save_IFS=$IFS
70821  IFS=:
70822  set x $ac_tag
70823  IFS=$ac_save_IFS
70824  shift
70825  ac_file=$1
70826  shift
70827
70828  case $ac_mode in
70829  :L) ac_source=$1;;
70830  :[FH])
70831    ac_file_inputs=
70832    for ac_f
70833    do
70834      case $ac_f in
70835      -) ac_f="$ac_tmp/stdin";;
70836      *) # Look for the file first in the build tree, then in the source tree
70837	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
70838	 # because $ac_f cannot contain `:'.
70839	 test -f "$ac_f" ||
70840	   case $ac_f in
70841	   [\\/$]*) false;;
70842	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
70843	   esac ||
70844	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
70845      esac
70846      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
70847      as_fn_append ac_file_inputs " '$ac_f'"
70848    done
70849
70850    # Let's still pretend it is `configure' which instantiates (i.e., don't
70851    # use $as_me), people would be surprised to read:
70852    #    /* config.h.  Generated by config.status.  */
70853    configure_input='Generated from '`
70854	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
70855	`' by configure.'
70856    if test x"$ac_file" != x-; then
70857      configure_input="$ac_file.  $configure_input"
70858      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
70859$as_echo "$as_me: creating $ac_file" >&6;}
70860    fi
70861    # Neutralize special characters interpreted by sed in replacement strings.
70862    case $configure_input in #(
70863    *\&* | *\|* | *\\* )
70864       ac_sed_conf_input=`$as_echo "$configure_input" |
70865       sed 's/[\\\\&|]/\\\\&/g'`;; #(
70866    *) ac_sed_conf_input=$configure_input;;
70867    esac
70868
70869    case $ac_tag in
70870    *:-:* | *:-) cat >"$ac_tmp/stdin" \
70871      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
70872    esac
70873    ;;
70874  esac
70875
70876  ac_dir=`$as_dirname -- "$ac_file" ||
70877$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70878	 X"$ac_file" : 'X\(//\)[^/]' \| \
70879	 X"$ac_file" : 'X\(//\)$' \| \
70880	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
70881$as_echo X"$ac_file" |
70882    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70883	    s//\1/
70884	    q
70885	  }
70886	  /^X\(\/\/\)[^/].*/{
70887	    s//\1/
70888	    q
70889	  }
70890	  /^X\(\/\/\)$/{
70891	    s//\1/
70892	    q
70893	  }
70894	  /^X\(\/\).*/{
70895	    s//\1/
70896	    q
70897	  }
70898	  s/.*/./; q'`
70899  as_dir="$ac_dir"; as_fn_mkdir_p
70900  ac_builddir=.
70901
70902case "$ac_dir" in
70903.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
70904*)
70905  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
70906  # A ".." for each directory in $ac_dir_suffix.
70907  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
70908  case $ac_top_builddir_sub in
70909  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
70910  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
70911  esac ;;
70912esac
70913ac_abs_top_builddir=$ac_pwd
70914ac_abs_builddir=$ac_pwd$ac_dir_suffix
70915# for backward compatibility:
70916ac_top_builddir=$ac_top_build_prefix
70917
70918case $srcdir in
70919  .)  # We are building in place.
70920    ac_srcdir=.
70921    ac_top_srcdir=$ac_top_builddir_sub
70922    ac_abs_top_srcdir=$ac_pwd ;;
70923  [\\/]* | ?:[\\/]* )  # Absolute name.
70924    ac_srcdir=$srcdir$ac_dir_suffix;
70925    ac_top_srcdir=$srcdir
70926    ac_abs_top_srcdir=$srcdir ;;
70927  *) # Relative name.
70928    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
70929    ac_top_srcdir=$ac_top_build_prefix$srcdir
70930    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
70931esac
70932ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
70933
70934
70935  case $ac_mode in
70936  :F)
70937  #
70938  # CONFIG_FILE
70939  #
70940
70941  case $INSTALL in
70942  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
70943  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
70944  esac
70945  ac_MKDIR_P=$MKDIR_P
70946  case $MKDIR_P in
70947  [\\/$]* | ?:[\\/]* ) ;;
70948  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
70949  esac
70950_ACEOF
70951
70952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70953# If the template does not know about datarootdir, expand it.
70954# FIXME: This hack should be removed a few years after 2.60.
70955ac_datarootdir_hack=; ac_datarootdir_seen=
70956ac_sed_dataroot='
70957/datarootdir/ {
70958  p
70959  q
70960}
70961/@datadir@/p
70962/@docdir@/p
70963/@infodir@/p
70964/@localedir@/p
70965/@mandir@/p'
70966case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
70967*datarootdir*) ac_datarootdir_seen=yes;;
70968*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
70969  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
70970$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
70971_ACEOF
70972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70973  ac_datarootdir_hack='
70974  s&@datadir@&$datadir&g
70975  s&@docdir@&$docdir&g
70976  s&@infodir@&$infodir&g
70977  s&@localedir@&$localedir&g
70978  s&@mandir@&$mandir&g
70979  s&\\\${datarootdir}&$datarootdir&g' ;;
70980esac
70981_ACEOF
70982
70983# Neutralize VPATH when `$srcdir' = `.'.
70984# Shell code in configure.ac might set extrasub.
70985# FIXME: do we really want to maintain this feature?
70986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
70987ac_sed_extra="$ac_vpsub
70988$extrasub
70989_ACEOF
70990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
70991:t
70992/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
70993s|@configure_input@|$ac_sed_conf_input|;t t
70994s&@top_builddir@&$ac_top_builddir_sub&;t t
70995s&@top_build_prefix@&$ac_top_build_prefix&;t t
70996s&@srcdir@&$ac_srcdir&;t t
70997s&@abs_srcdir@&$ac_abs_srcdir&;t t
70998s&@top_srcdir@&$ac_top_srcdir&;t t
70999s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
71000s&@builddir@&$ac_builddir&;t t
71001s&@abs_builddir@&$ac_abs_builddir&;t t
71002s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
71003s&@INSTALL@&$ac_INSTALL&;t t
71004s&@MKDIR_P@&$ac_MKDIR_P&;t t
71005$ac_datarootdir_hack
71006"
71007eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
71008if $ac_cs_awk_getline; then
71009  $AWK -f "$ac_tmp/subs.awk"
71010else
71011  $AWK -f "$ac_tmp/subs.awk" | $SHELL
71012fi \
71013  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
71014
71015test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
71016  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
71017  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
71018      "$ac_tmp/out"`; test -z "$ac_out"; } &&
71019  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
71020which seems to be undefined.  Please make sure it is defined" >&5
71021$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
71022which seems to be undefined.  Please make sure it is defined" >&2;}
71023
71024  rm -f "$ac_tmp/stdin"
71025  case $ac_file in
71026  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
71027  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
71028  esac \
71029  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
71030 ;;
71031  :H)
71032  #
71033  # CONFIG_HEADER
71034  #
71035  if test x"$ac_file" != x-; then
71036    {
71037      $as_echo "/* $configure_input  */" \
71038      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
71039    } >"$ac_tmp/config.h" \
71040      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
71041    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
71042      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
71043$as_echo "$as_me: $ac_file is unchanged" >&6;}
71044    else
71045      rm -f "$ac_file"
71046      mv "$ac_tmp/config.h" "$ac_file" \
71047	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
71048    fi
71049  else
71050    $as_echo "/* $configure_input  */" \
71051      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
71052      || as_fn_error $? "could not create -" "$LINENO" 5
71053  fi
71054# Compute "$ac_file"'s index in $config_headers.
71055_am_arg="$ac_file"
71056_am_stamp_count=1
71057for _am_header in $config_headers :; do
71058  case $_am_header in
71059    $_am_arg | $_am_arg:* )
71060      break ;;
71061    * )
71062      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
71063  esac
71064done
71065echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
71066$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
71067	 X"$_am_arg" : 'X\(//\)[^/]' \| \
71068	 X"$_am_arg" : 'X\(//\)$' \| \
71069	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
71070$as_echo X"$_am_arg" |
71071    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
71072	    s//\1/
71073	    q
71074	  }
71075	  /^X\(\/\/\)[^/].*/{
71076	    s//\1/
71077	    q
71078	  }
71079	  /^X\(\/\/\)$/{
71080	    s//\1/
71081	    q
71082	  }
71083	  /^X\(\/\).*/{
71084	    s//\1/
71085	    q
71086	  }
71087	  s/.*/./; q'`/stamp-h$_am_stamp_count
71088 ;;
71089
71090  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
71091$as_echo "$as_me: executing $ac_file commands" >&6;}
71092 ;;
71093  esac
71094
71095
71096  case $ac_file$ac_mode in
71097    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
71098  # Older Autoconf quotes --file arguments for eval, but not when files
71099  # are listed without --file.  Let's play safe and only enable the eval
71100  # if we detect the quoting.
71101  case $CONFIG_FILES in
71102  *\'*) eval set x "$CONFIG_FILES" ;;
71103  *)   set x $CONFIG_FILES ;;
71104  esac
71105  shift
71106  for mf
71107  do
71108    # Strip MF so we end up with the name of the file.
71109    mf=`echo "$mf" | sed -e 's/:.*$//'`
71110    # Check whether this is an Automake generated Makefile or not.
71111    # We used to match only the files named 'Makefile.in', but
71112    # some people rename them; so instead we look at the file content.
71113    # Grep'ing the first line is not enough: some people post-process
71114    # each Makefile.in and add a new line on top of each file to say so.
71115    # Grep'ing the whole file is not good either: AIX grep has a line
71116    # limit of 2048, but all sed's we know have understand at least 4000.
71117    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
71118      dirpart=`$as_dirname -- "$mf" ||
71119$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
71120	 X"$mf" : 'X\(//\)[^/]' \| \
71121	 X"$mf" : 'X\(//\)$' \| \
71122	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
71123$as_echo X"$mf" |
71124    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
71125	    s//\1/
71126	    q
71127	  }
71128	  /^X\(\/\/\)[^/].*/{
71129	    s//\1/
71130	    q
71131	  }
71132	  /^X\(\/\/\)$/{
71133	    s//\1/
71134	    q
71135	  }
71136	  /^X\(\/\).*/{
71137	    s//\1/
71138	    q
71139	  }
71140	  s/.*/./; q'`
71141    else
71142      continue
71143    fi
71144    # Extract the definition of DEPDIR, am__include, and am__quote
71145    # from the Makefile without running 'make'.
71146    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
71147    test -z "$DEPDIR" && continue
71148    am__include=`sed -n 's/^am__include = //p' < "$mf"`
71149    test -z "$am__include" && continue
71150    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
71151    # Find all dependency output files, they are included files with
71152    # $(DEPDIR) in their names.  We invoke sed twice because it is the
71153    # simplest approach to changing $(DEPDIR) to its actual value in the
71154    # expansion.
71155    for file in `sed -n "
71156      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
71157	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
71158      # Make sure the directory exists.
71159      test -f "$dirpart/$file" && continue
71160      fdir=`$as_dirname -- "$file" ||
71161$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
71162	 X"$file" : 'X\(//\)[^/]' \| \
71163	 X"$file" : 'X\(//\)$' \| \
71164	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
71165$as_echo X"$file" |
71166    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
71167	    s//\1/
71168	    q
71169	  }
71170	  /^X\(\/\/\)[^/].*/{
71171	    s//\1/
71172	    q
71173	  }
71174	  /^X\(\/\/\)$/{
71175	    s//\1/
71176	    q
71177	  }
71178	  /^X\(\/\).*/{
71179	    s//\1/
71180	    q
71181	  }
71182	  s/.*/./; q'`
71183      as_dir=$dirpart/$fdir; as_fn_mkdir_p
71184      # echo "creating $dirpart/$file"
71185      echo '# dummy' > "$dirpart/$file"
71186    done
71187  done
71188}
71189 ;;
71190    "libtool":C)
71191
71192    # See if we are running on zsh, and set the options that allow our
71193    # commands through without removal of \ escapes.
71194    if test -n "${ZSH_VERSION+set}"; then
71195      setopt NO_GLOB_SUBST
71196    fi
71197
71198    cfgfile=${ofile}T
71199    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
71200    $RM "$cfgfile"
71201
71202    cat <<_LT_EOF >> "$cfgfile"
71203#! $SHELL
71204# Generated automatically by $as_me ($PACKAGE) $VERSION
71205# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
71206# NOTE: Changes made to this file will be lost: look at ltmain.sh.
71207
71208# Provide generalized library-building support services.
71209# Written by Gordon Matzigkeit, 1996
71210
71211# Copyright (C) 2014 Free Software Foundation, Inc.
71212# This is free software; see the source for copying conditions.  There is NO
71213# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
71214
71215# GNU Libtool is free software; you can redistribute it and/or modify
71216# it under the terms of the GNU General Public License as published by
71217# the Free Software Foundation; either version 2 of of the License, or
71218# (at your option) any later version.
71219#
71220# As a special exception to the GNU General Public License, if you
71221# distribute this file as part of a program or library that is built
71222# using GNU Libtool, you may include this file under the  same
71223# distribution terms that you use for the rest of that program.
71224#
71225# GNU Libtool is distributed in the hope that it will be useful, but
71226# WITHOUT ANY WARRANTY; without even the implied warranty of
71227# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
71228# GNU General Public License for more details.
71229#
71230# You should have received a copy of the GNU General Public License
71231# along with this program.  If not, see <http://www.gnu.org/licenses/>.
71232
71233
71234# The names of the tagged configurations supported by this script.
71235available_tags='CXX FC F77 '
71236
71237# Configured defaults for sys_lib_dlsearch_path munging.
71238: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
71239
71240# ### BEGIN LIBTOOL CONFIG
71241
71242# Which release of libtool.m4 was used?
71243macro_version=$macro_version
71244macro_revision=$macro_revision
71245
71246# Whether or not to build shared libraries.
71247build_libtool_libs=$enable_shared
71248
71249# Whether or not to build static libraries.
71250build_old_libs=$enable_static
71251
71252# What type of objects to build.
71253pic_mode=$pic_mode
71254
71255# Whether or not to optimize for fast installation.
71256fast_install=$enable_fast_install
71257
71258# Shared archive member basename,for filename based shared library versioning on AIX.
71259shared_archive_member_spec=$shared_archive_member_spec
71260
71261# Shell to use when invoking shell scripts.
71262SHELL=$lt_SHELL
71263
71264# An echo program that protects backslashes.
71265ECHO=$lt_ECHO
71266
71267# The PATH separator for the build system.
71268PATH_SEPARATOR=$lt_PATH_SEPARATOR
71269
71270# The host system.
71271host_alias=$host_alias
71272host=$host
71273host_os=$host_os
71274
71275# The build system.
71276build_alias=$build_alias
71277build=$build
71278build_os=$build_os
71279
71280# A sed program that does not truncate output.
71281SED=$lt_SED
71282
71283# Sed that helps us avoid accidentally triggering echo(1) options like -n.
71284Xsed="\$SED -e 1s/^X//"
71285
71286# A grep program that handles long lines.
71287GREP=$lt_GREP
71288
71289# An ERE matcher.
71290EGREP=$lt_EGREP
71291
71292# A literal string matcher.
71293FGREP=$lt_FGREP
71294
71295# A BSD- or MS-compatible name lister.
71296NM=$lt_NM
71297
71298# Whether we need soft or hard links.
71299LN_S=$lt_LN_S
71300
71301# What is the maximum length of a command?
71302max_cmd_len=$max_cmd_len
71303
71304# Object file suffix (normally "o").
71305objext=$ac_objext
71306
71307# Executable file suffix (normally "").
71308exeext=$exeext
71309
71310# whether the shell understands "unset".
71311lt_unset=$lt_unset
71312
71313# turn spaces into newlines.
71314SP2NL=$lt_lt_SP2NL
71315
71316# turn newlines into spaces.
71317NL2SP=$lt_lt_NL2SP
71318
71319# convert \$build file names to \$host format.
71320to_host_file_cmd=$lt_cv_to_host_file_cmd
71321
71322# convert \$build files to toolchain format.
71323to_tool_file_cmd=$lt_cv_to_tool_file_cmd
71324
71325# An object symbol dumper.
71326OBJDUMP=$lt_OBJDUMP
71327
71328# Method to check whether dependent libraries are shared objects.
71329deplibs_check_method=$lt_deplibs_check_method
71330
71331# Command to use when deplibs_check_method = "file_magic".
71332file_magic_cmd=$lt_file_magic_cmd
71333
71334# How to find potential files when deplibs_check_method = "file_magic".
71335file_magic_glob=$lt_file_magic_glob
71336
71337# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
71338want_nocaseglob=$lt_want_nocaseglob
71339
71340# DLL creation program.
71341DLLTOOL=$lt_DLLTOOL
71342
71343# Command to associate shared and link libraries.
71344sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
71345
71346# The archiver.
71347AR=$lt_AR
71348
71349# Flags to create an archive.
71350AR_FLAGS=$lt_AR_FLAGS
71351
71352# How to feed a file listing to the archiver.
71353archiver_list_spec=$lt_archiver_list_spec
71354
71355# A symbol stripping program.
71356STRIP=$lt_STRIP
71357
71358# Commands used to install an old-style archive.
71359RANLIB=$lt_RANLIB
71360old_postinstall_cmds=$lt_old_postinstall_cmds
71361old_postuninstall_cmds=$lt_old_postuninstall_cmds
71362
71363# Whether to use a lock for old archive extraction.
71364lock_old_archive_extraction=$lock_old_archive_extraction
71365
71366# A C compiler.
71367LTCC=$lt_CC
71368
71369# LTCC compiler flags.
71370LTCFLAGS=$lt_CFLAGS
71371
71372# Take the output of nm and produce a listing of raw symbols and C names.
71373global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
71374
71375# Transform the output of nm in a proper C declaration.
71376global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
71377
71378# Transform the output of nm into a list of symbols to manually relocate.
71379global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
71380
71381# Transform the output of nm in a C name address pair.
71382global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
71383
71384# Transform the output of nm in a C name address pair when lib prefix is needed.
71385global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
71386
71387# The name lister interface.
71388nm_interface=$lt_lt_cv_nm_interface
71389
71390# Specify filename containing input files for \$NM.
71391nm_file_list_spec=$lt_nm_file_list_spec
71392
71393# The root where to search for dependent libraries,and where our libraries should be installed.
71394lt_sysroot=$lt_sysroot
71395
71396# Command to truncate a binary pipe.
71397lt_truncate_bin=$lt_lt_cv_truncate_bin
71398
71399# The name of the directory that contains temporary libtool files.
71400objdir=$objdir
71401
71402# Used to examine libraries when file_magic_cmd begins with "file".
71403MAGIC_CMD=$MAGIC_CMD
71404
71405# Must we lock files when doing compilation?
71406need_locks=$lt_need_locks
71407
71408# Manifest tool.
71409MANIFEST_TOOL=$lt_MANIFEST_TOOL
71410
71411# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
71412DSYMUTIL=$lt_DSYMUTIL
71413
71414# Tool to change global to local symbols on Mac OS X.
71415NMEDIT=$lt_NMEDIT
71416
71417# Tool to manipulate fat objects and archives on Mac OS X.
71418LIPO=$lt_LIPO
71419
71420# ldd/readelf like tool for Mach-O binaries on Mac OS X.
71421OTOOL=$lt_OTOOL
71422
71423# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
71424OTOOL64=$lt_OTOOL64
71425
71426# Old archive suffix (normally "a").
71427libext=$libext
71428
71429# Shared library suffix (normally ".so").
71430shrext_cmds=$lt_shrext_cmds
71431
71432# The commands to extract the exported symbol list from a shared archive.
71433extract_expsyms_cmds=$lt_extract_expsyms_cmds
71434
71435# Variables whose values should be saved in libtool wrapper scripts and
71436# restored at link time.
71437variables_saved_for_relink=$lt_variables_saved_for_relink
71438
71439# Do we need the "lib" prefix for modules?
71440need_lib_prefix=$need_lib_prefix
71441
71442# Do we need a version for libraries?
71443need_version=$need_version
71444
71445# Library versioning type.
71446version_type=$version_type
71447
71448# Shared library runtime path variable.
71449runpath_var=$runpath_var
71450
71451# Shared library path variable.
71452shlibpath_var=$shlibpath_var
71453
71454# Is shlibpath searched before the hard-coded library search path?
71455shlibpath_overrides_runpath=$shlibpath_overrides_runpath
71456
71457# Format of library name prefix.
71458libname_spec=$lt_libname_spec
71459
71460# List of archive names.  First name is the real one, the rest are links.
71461# The last name is the one that the linker finds with -lNAME
71462library_names_spec=$lt_library_names_spec
71463
71464# The coded name of the library, if different from the real name.
71465soname_spec=$lt_soname_spec
71466
71467# Permission mode override for installation of shared libraries.
71468install_override_mode=$lt_install_override_mode
71469
71470# Command to use after installation of a shared archive.
71471postinstall_cmds=$lt_postinstall_cmds
71472
71473# Command to use after uninstallation of a shared archive.
71474postuninstall_cmds=$lt_postuninstall_cmds
71475
71476# Commands used to finish a libtool library installation in a directory.
71477finish_cmds=$lt_finish_cmds
71478
71479# As "finish_cmds", except a single script fragment to be evaled but
71480# not shown.
71481finish_eval=$lt_finish_eval
71482
71483# Whether we should hardcode library paths into libraries.
71484hardcode_into_libs=$hardcode_into_libs
71485
71486# Compile-time system search path for libraries.
71487sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
71488
71489# Detected run-time system search path for libraries.
71490sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
71491
71492# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
71493configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
71494
71495# Whether dlopen is supported.
71496dlopen_support=$enable_dlopen
71497
71498# Whether dlopen of programs is supported.
71499dlopen_self=$enable_dlopen_self
71500
71501# Whether dlopen of statically linked programs is supported.
71502dlopen_self_static=$enable_dlopen_self_static
71503
71504# Commands to strip libraries.
71505old_striplib=$lt_old_striplib
71506striplib=$lt_striplib
71507
71508
71509# The linker used to build libraries.
71510LD=$lt_LD
71511
71512# How to create reloadable object files.
71513reload_flag=$lt_reload_flag
71514reload_cmds=$lt_reload_cmds
71515
71516# Commands used to build an old-style archive.
71517old_archive_cmds=$lt_old_archive_cmds
71518
71519# A language specific compiler.
71520CC=$lt_compiler
71521
71522# Is the compiler the GNU compiler?
71523with_gcc=$GCC
71524
71525# Compiler flag to turn off builtin functions.
71526no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
71527
71528# Additional compiler flags for building library objects.
71529pic_flag=$lt_lt_prog_compiler_pic
71530
71531# How to pass a linker flag through the compiler.
71532wl=$lt_lt_prog_compiler_wl
71533
71534# Compiler flag to prevent dynamic linking.
71535link_static_flag=$lt_lt_prog_compiler_static
71536
71537# Does compiler simultaneously support -c and -o options?
71538compiler_c_o=$lt_lt_cv_prog_compiler_c_o
71539
71540# Whether or not to add -lc for building shared libraries.
71541build_libtool_need_lc=$archive_cmds_need_lc
71542
71543# Whether or not to disallow shared libs when runtime libs are static.
71544allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
71545
71546# Compiler flag to allow reflexive dlopens.
71547export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
71548
71549# Compiler flag to generate shared objects directly from archives.
71550whole_archive_flag_spec=$lt_whole_archive_flag_spec
71551
71552# Whether the compiler copes with passing no objects directly.
71553compiler_needs_object=$lt_compiler_needs_object
71554
71555# Create an old-style archive from a shared archive.
71556old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
71557
71558# Create a temporary old-style archive to link instead of a shared archive.
71559old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
71560
71561# Commands used to build a shared archive.
71562archive_cmds=$lt_archive_cmds
71563archive_expsym_cmds=$lt_archive_expsym_cmds
71564
71565# Commands used to build a loadable module if different from building
71566# a shared archive.
71567module_cmds=$lt_module_cmds
71568module_expsym_cmds=$lt_module_expsym_cmds
71569
71570# Whether we are building with GNU ld or not.
71571with_gnu_ld=$lt_with_gnu_ld
71572
71573# Flag that allows shared libraries with undefined symbols to be built.
71574allow_undefined_flag=$lt_allow_undefined_flag
71575
71576# Flag that enforces no undefined symbols.
71577no_undefined_flag=$lt_no_undefined_flag
71578
71579# Flag to hardcode \$libdir into a binary during linking.
71580# This must work even if \$libdir does not exist
71581hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
71582
71583# Whether we need a single "-rpath" flag with a separated argument.
71584hardcode_libdir_separator=$lt_hardcode_libdir_separator
71585
71586# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
71587# DIR into the resulting binary.
71588hardcode_direct=$hardcode_direct
71589
71590# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
71591# DIR into the resulting binary and the resulting library dependency is
71592# "absolute",i.e impossible to change by setting \$shlibpath_var if the
71593# library is relocated.
71594hardcode_direct_absolute=$hardcode_direct_absolute
71595
71596# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
71597# into the resulting binary.
71598hardcode_minus_L=$hardcode_minus_L
71599
71600# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
71601# into the resulting binary.
71602hardcode_shlibpath_var=$hardcode_shlibpath_var
71603
71604# Set to "yes" if building a shared library automatically hardcodes DIR
71605# into the library and all subsequent libraries and executables linked
71606# against it.
71607hardcode_automatic=$hardcode_automatic
71608
71609# Set to yes if linker adds runtime paths of dependent libraries
71610# to runtime path list.
71611inherit_rpath=$inherit_rpath
71612
71613# Whether libtool must link a program against all its dependency libraries.
71614link_all_deplibs=$link_all_deplibs
71615
71616# Set to "yes" if exported symbols are required.
71617always_export_symbols=$always_export_symbols
71618
71619# The commands to list exported symbols.
71620export_symbols_cmds=$lt_export_symbols_cmds
71621
71622# Symbols that should not be listed in the preloaded symbols.
71623exclude_expsyms=$lt_exclude_expsyms
71624
71625# Symbols that must always be exported.
71626include_expsyms=$lt_include_expsyms
71627
71628# Commands necessary for linking programs (against libraries) with templates.
71629prelink_cmds=$lt_prelink_cmds
71630
71631# Commands necessary for finishing linking programs.
71632postlink_cmds=$lt_postlink_cmds
71633
71634# Specify filename containing input files.
71635file_list_spec=$lt_file_list_spec
71636
71637# How to hardcode a shared library path into an executable.
71638hardcode_action=$hardcode_action
71639
71640# The directories searched by this compiler when creating a shared library.
71641compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
71642
71643# Dependencies to place before and after the objects being linked to
71644# create a shared library.
71645predep_objects=$lt_predep_objects
71646postdep_objects=$lt_postdep_objects
71647predeps=$lt_predeps
71648postdeps=$lt_postdeps
71649
71650# The library search path used internally by the compiler when linking
71651# a shared library.
71652compiler_lib_search_path=$lt_compiler_lib_search_path
71653
71654# ### END LIBTOOL CONFIG
71655
71656_LT_EOF
71657
71658    cat <<'_LT_EOF' >> "$cfgfile"
71659
71660# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
71661
71662# func_munge_path_list VARIABLE PATH
71663# -----------------------------------
71664# VARIABLE is name of variable containing _space_ separated list of
71665# directories to be munged by the contents of PATH, which is string
71666# having a format:
71667# "DIR[:DIR]:"
71668#       string "DIR[ DIR]" will be prepended to VARIABLE
71669# ":DIR[:DIR]"
71670#       string "DIR[ DIR]" will be appended to VARIABLE
71671# "DIRP[:DIRP]::[DIRA:]DIRA"
71672#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
71673#       "DIRA[ DIRA]" will be appended to VARIABLE
71674# "DIR[:DIR]"
71675#       VARIABLE will be replaced by "DIR[ DIR]"
71676func_munge_path_list ()
71677{
71678    case x$2 in
71679    x)
71680        ;;
71681    *:)
71682        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
71683        ;;
71684    x:*)
71685        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
71686        ;;
71687    *::*)
71688        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
71689        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
71690        ;;
71691    *)
71692        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
71693        ;;
71694    esac
71695}
71696
71697
71698# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
71699func_cc_basename ()
71700{
71701    for cc_temp in $*""; do
71702      case $cc_temp in
71703        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
71704        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
71705        \-*) ;;
71706        *) break;;
71707      esac
71708    done
71709    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
71710}
71711
71712
71713# ### END FUNCTIONS SHARED WITH CONFIGURE
71714
71715_LT_EOF
71716
71717  case $host_os in
71718  aix3*)
71719    cat <<\_LT_EOF >> "$cfgfile"
71720# AIX sometimes has problems with the GCC collect2 program.  For some
71721# reason, if we set the COLLECT_NAMES environment variable, the problems
71722# vanish in a puff of smoke.
71723if test set != "${COLLECT_NAMES+set}"; then
71724  COLLECT_NAMES=
71725  export COLLECT_NAMES
71726fi
71727_LT_EOF
71728    ;;
71729  esac
71730
71731
71732ltmain=$ac_aux_dir/ltmain.sh
71733
71734
71735  # We use sed instead of cat because bash on DJGPP gets confused if
71736  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
71737  # text mode, it properly converts lines to CR/LF.  This bash problem
71738  # is reportedly fixed, but why not run on old versions too?
71739  sed '$q' "$ltmain" >> "$cfgfile" \
71740     || (rm -f "$cfgfile"; exit 1)
71741
71742   mv -f "$cfgfile" "$ofile" ||
71743    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
71744  chmod +x "$ofile"
71745
71746
71747    cat <<_LT_EOF >> "$ofile"
71748
71749# ### BEGIN LIBTOOL TAG CONFIG: CXX
71750
71751# The linker used to build libraries.
71752LD=$lt_LD_CXX
71753
71754# How to create reloadable object files.
71755reload_flag=$lt_reload_flag_CXX
71756reload_cmds=$lt_reload_cmds_CXX
71757
71758# Commands used to build an old-style archive.
71759old_archive_cmds=$lt_old_archive_cmds_CXX
71760
71761# A language specific compiler.
71762CC=$lt_compiler_CXX
71763
71764# Is the compiler the GNU compiler?
71765with_gcc=$GCC_CXX
71766
71767# Compiler flag to turn off builtin functions.
71768no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
71769
71770# Additional compiler flags for building library objects.
71771pic_flag=$lt_lt_prog_compiler_pic_CXX
71772
71773# How to pass a linker flag through the compiler.
71774wl=$lt_lt_prog_compiler_wl_CXX
71775
71776# Compiler flag to prevent dynamic linking.
71777link_static_flag=$lt_lt_prog_compiler_static_CXX
71778
71779# Does compiler simultaneously support -c and -o options?
71780compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
71781
71782# Whether or not to add -lc for building shared libraries.
71783build_libtool_need_lc=$archive_cmds_need_lc_CXX
71784
71785# Whether or not to disallow shared libs when runtime libs are static.
71786allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
71787
71788# Compiler flag to allow reflexive dlopens.
71789export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
71790
71791# Compiler flag to generate shared objects directly from archives.
71792whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
71793
71794# Whether the compiler copes with passing no objects directly.
71795compiler_needs_object=$lt_compiler_needs_object_CXX
71796
71797# Create an old-style archive from a shared archive.
71798old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
71799
71800# Create a temporary old-style archive to link instead of a shared archive.
71801old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
71802
71803# Commands used to build a shared archive.
71804archive_cmds=$lt_archive_cmds_CXX
71805archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
71806
71807# Commands used to build a loadable module if different from building
71808# a shared archive.
71809module_cmds=$lt_module_cmds_CXX
71810module_expsym_cmds=$lt_module_expsym_cmds_CXX
71811
71812# Whether we are building with GNU ld or not.
71813with_gnu_ld=$lt_with_gnu_ld_CXX
71814
71815# Flag that allows shared libraries with undefined symbols to be built.
71816allow_undefined_flag=$lt_allow_undefined_flag_CXX
71817
71818# Flag that enforces no undefined symbols.
71819no_undefined_flag=$lt_no_undefined_flag_CXX
71820
71821# Flag to hardcode \$libdir into a binary during linking.
71822# This must work even if \$libdir does not exist
71823hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
71824
71825# Whether we need a single "-rpath" flag with a separated argument.
71826hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
71827
71828# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
71829# DIR into the resulting binary.
71830hardcode_direct=$hardcode_direct_CXX
71831
71832# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
71833# DIR into the resulting binary and the resulting library dependency is
71834# "absolute",i.e impossible to change by setting \$shlibpath_var if the
71835# library is relocated.
71836hardcode_direct_absolute=$hardcode_direct_absolute_CXX
71837
71838# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
71839# into the resulting binary.
71840hardcode_minus_L=$hardcode_minus_L_CXX
71841
71842# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
71843# into the resulting binary.
71844hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
71845
71846# Set to "yes" if building a shared library automatically hardcodes DIR
71847# into the library and all subsequent libraries and executables linked
71848# against it.
71849hardcode_automatic=$hardcode_automatic_CXX
71850
71851# Set to yes if linker adds runtime paths of dependent libraries
71852# to runtime path list.
71853inherit_rpath=$inherit_rpath_CXX
71854
71855# Whether libtool must link a program against all its dependency libraries.
71856link_all_deplibs=$link_all_deplibs_CXX
71857
71858# Set to "yes" if exported symbols are required.
71859always_export_symbols=$always_export_symbols_CXX
71860
71861# The commands to list exported symbols.
71862export_symbols_cmds=$lt_export_symbols_cmds_CXX
71863
71864# Symbols that should not be listed in the preloaded symbols.
71865exclude_expsyms=$lt_exclude_expsyms_CXX
71866
71867# Symbols that must always be exported.
71868include_expsyms=$lt_include_expsyms_CXX
71869
71870# Commands necessary for linking programs (against libraries) with templates.
71871prelink_cmds=$lt_prelink_cmds_CXX
71872
71873# Commands necessary for finishing linking programs.
71874postlink_cmds=$lt_postlink_cmds_CXX
71875
71876# Specify filename containing input files.
71877file_list_spec=$lt_file_list_spec_CXX
71878
71879# How to hardcode a shared library path into an executable.
71880hardcode_action=$hardcode_action_CXX
71881
71882# The directories searched by this compiler when creating a shared library.
71883compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
71884
71885# Dependencies to place before and after the objects being linked to
71886# create a shared library.
71887predep_objects=$lt_predep_objects_CXX
71888postdep_objects=$lt_postdep_objects_CXX
71889predeps=$lt_predeps_CXX
71890postdeps=$lt_postdeps_CXX
71891
71892# The library search path used internally by the compiler when linking
71893# a shared library.
71894compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
71895
71896# ### END LIBTOOL TAG CONFIG: CXX
71897_LT_EOF
71898
71899
71900    cat <<_LT_EOF >> "$ofile"
71901
71902# ### BEGIN LIBTOOL TAG CONFIG: FC
71903
71904# The linker used to build libraries.
71905LD=$lt_LD_FC
71906
71907# How to create reloadable object files.
71908reload_flag=$lt_reload_flag_FC
71909reload_cmds=$lt_reload_cmds_FC
71910
71911# Commands used to build an old-style archive.
71912old_archive_cmds=$lt_old_archive_cmds_FC
71913
71914# A language specific compiler.
71915CC=$lt_compiler_FC
71916
71917# Is the compiler the GNU compiler?
71918with_gcc=$GCC_FC
71919
71920# Compiler flag to turn off builtin functions.
71921no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
71922
71923# Additional compiler flags for building library objects.
71924pic_flag=$lt_lt_prog_compiler_pic_FC
71925
71926# How to pass a linker flag through the compiler.
71927wl=$lt_lt_prog_compiler_wl_FC
71928
71929# Compiler flag to prevent dynamic linking.
71930link_static_flag=$lt_lt_prog_compiler_static_FC
71931
71932# Does compiler simultaneously support -c and -o options?
71933compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
71934
71935# Whether or not to add -lc for building shared libraries.
71936build_libtool_need_lc=$archive_cmds_need_lc_FC
71937
71938# Whether or not to disallow shared libs when runtime libs are static.
71939allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
71940
71941# Compiler flag to allow reflexive dlopens.
71942export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
71943
71944# Compiler flag to generate shared objects directly from archives.
71945whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
71946
71947# Whether the compiler copes with passing no objects directly.
71948compiler_needs_object=$lt_compiler_needs_object_FC
71949
71950# Create an old-style archive from a shared archive.
71951old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
71952
71953# Create a temporary old-style archive to link instead of a shared archive.
71954old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
71955
71956# Commands used to build a shared archive.
71957archive_cmds=$lt_archive_cmds_FC
71958archive_expsym_cmds=$lt_archive_expsym_cmds_FC
71959
71960# Commands used to build a loadable module if different from building
71961# a shared archive.
71962module_cmds=$lt_module_cmds_FC
71963module_expsym_cmds=$lt_module_expsym_cmds_FC
71964
71965# Whether we are building with GNU ld or not.
71966with_gnu_ld=$lt_with_gnu_ld_FC
71967
71968# Flag that allows shared libraries with undefined symbols to be built.
71969allow_undefined_flag=$lt_allow_undefined_flag_FC
71970
71971# Flag that enforces no undefined symbols.
71972no_undefined_flag=$lt_no_undefined_flag_FC
71973
71974# Flag to hardcode \$libdir into a binary during linking.
71975# This must work even if \$libdir does not exist
71976hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
71977
71978# Whether we need a single "-rpath" flag with a separated argument.
71979hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
71980
71981# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
71982# DIR into the resulting binary.
71983hardcode_direct=$hardcode_direct_FC
71984
71985# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
71986# DIR into the resulting binary and the resulting library dependency is
71987# "absolute",i.e impossible to change by setting \$shlibpath_var if the
71988# library is relocated.
71989hardcode_direct_absolute=$hardcode_direct_absolute_FC
71990
71991# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
71992# into the resulting binary.
71993hardcode_minus_L=$hardcode_minus_L_FC
71994
71995# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
71996# into the resulting binary.
71997hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
71998
71999# Set to "yes" if building a shared library automatically hardcodes DIR
72000# into the library and all subsequent libraries and executables linked
72001# against it.
72002hardcode_automatic=$hardcode_automatic_FC
72003
72004# Set to yes if linker adds runtime paths of dependent libraries
72005# to runtime path list.
72006inherit_rpath=$inherit_rpath_FC
72007
72008# Whether libtool must link a program against all its dependency libraries.
72009link_all_deplibs=$link_all_deplibs_FC
72010
72011# Set to "yes" if exported symbols are required.
72012always_export_symbols=$always_export_symbols_FC
72013
72014# The commands to list exported symbols.
72015export_symbols_cmds=$lt_export_symbols_cmds_FC
72016
72017# Symbols that should not be listed in the preloaded symbols.
72018exclude_expsyms=$lt_exclude_expsyms_FC
72019
72020# Symbols that must always be exported.
72021include_expsyms=$lt_include_expsyms_FC
72022
72023# Commands necessary for linking programs (against libraries) with templates.
72024prelink_cmds=$lt_prelink_cmds_FC
72025
72026# Commands necessary for finishing linking programs.
72027postlink_cmds=$lt_postlink_cmds_FC
72028
72029# Specify filename containing input files.
72030file_list_spec=$lt_file_list_spec_FC
72031
72032# How to hardcode a shared library path into an executable.
72033hardcode_action=$hardcode_action_FC
72034
72035# The directories searched by this compiler when creating a shared library.
72036compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
72037
72038# Dependencies to place before and after the objects being linked to
72039# create a shared library.
72040predep_objects=$lt_predep_objects_FC
72041postdep_objects=$lt_postdep_objects_FC
72042predeps=$lt_predeps_FC
72043postdeps=$lt_postdeps_FC
72044
72045# The library search path used internally by the compiler when linking
72046# a shared library.
72047compiler_lib_search_path=$lt_compiler_lib_search_path_FC
72048
72049# ### END LIBTOOL TAG CONFIG: FC
72050_LT_EOF
72051
72052
72053    cat <<_LT_EOF >> "$ofile"
72054
72055# ### BEGIN LIBTOOL TAG CONFIG: F77
72056
72057# The linker used to build libraries.
72058LD=$lt_LD_F77
72059
72060# How to create reloadable object files.
72061reload_flag=$lt_reload_flag_F77
72062reload_cmds=$lt_reload_cmds_F77
72063
72064# Commands used to build an old-style archive.
72065old_archive_cmds=$lt_old_archive_cmds_F77
72066
72067# A language specific compiler.
72068CC=$lt_compiler_F77
72069
72070# Is the compiler the GNU compiler?
72071with_gcc=$GCC_F77
72072
72073# Compiler flag to turn off builtin functions.
72074no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
72075
72076# Additional compiler flags for building library objects.
72077pic_flag=$lt_lt_prog_compiler_pic_F77
72078
72079# How to pass a linker flag through the compiler.
72080wl=$lt_lt_prog_compiler_wl_F77
72081
72082# Compiler flag to prevent dynamic linking.
72083link_static_flag=$lt_lt_prog_compiler_static_F77
72084
72085# Does compiler simultaneously support -c and -o options?
72086compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
72087
72088# Whether or not to add -lc for building shared libraries.
72089build_libtool_need_lc=$archive_cmds_need_lc_F77
72090
72091# Whether or not to disallow shared libs when runtime libs are static.
72092allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
72093
72094# Compiler flag to allow reflexive dlopens.
72095export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
72096
72097# Compiler flag to generate shared objects directly from archives.
72098whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
72099
72100# Whether the compiler copes with passing no objects directly.
72101compiler_needs_object=$lt_compiler_needs_object_F77
72102
72103# Create an old-style archive from a shared archive.
72104old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
72105
72106# Create a temporary old-style archive to link instead of a shared archive.
72107old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
72108
72109# Commands used to build a shared archive.
72110archive_cmds=$lt_archive_cmds_F77
72111archive_expsym_cmds=$lt_archive_expsym_cmds_F77
72112
72113# Commands used to build a loadable module if different from building
72114# a shared archive.
72115module_cmds=$lt_module_cmds_F77
72116module_expsym_cmds=$lt_module_expsym_cmds_F77
72117
72118# Whether we are building with GNU ld or not.
72119with_gnu_ld=$lt_with_gnu_ld_F77
72120
72121# Flag that allows shared libraries with undefined symbols to be built.
72122allow_undefined_flag=$lt_allow_undefined_flag_F77
72123
72124# Flag that enforces no undefined symbols.
72125no_undefined_flag=$lt_no_undefined_flag_F77
72126
72127# Flag to hardcode \$libdir into a binary during linking.
72128# This must work even if \$libdir does not exist
72129hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
72130
72131# Whether we need a single "-rpath" flag with a separated argument.
72132hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
72133
72134# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
72135# DIR into the resulting binary.
72136hardcode_direct=$hardcode_direct_F77
72137
72138# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
72139# DIR into the resulting binary and the resulting library dependency is
72140# "absolute",i.e impossible to change by setting \$shlibpath_var if the
72141# library is relocated.
72142hardcode_direct_absolute=$hardcode_direct_absolute_F77
72143
72144# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
72145# into the resulting binary.
72146hardcode_minus_L=$hardcode_minus_L_F77
72147
72148# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
72149# into the resulting binary.
72150hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
72151
72152# Set to "yes" if building a shared library automatically hardcodes DIR
72153# into the library and all subsequent libraries and executables linked
72154# against it.
72155hardcode_automatic=$hardcode_automatic_F77
72156
72157# Set to yes if linker adds runtime paths of dependent libraries
72158# to runtime path list.
72159inherit_rpath=$inherit_rpath_F77
72160
72161# Whether libtool must link a program against all its dependency libraries.
72162link_all_deplibs=$link_all_deplibs_F77
72163
72164# Set to "yes" if exported symbols are required.
72165always_export_symbols=$always_export_symbols_F77
72166
72167# The commands to list exported symbols.
72168export_symbols_cmds=$lt_export_symbols_cmds_F77
72169
72170# Symbols that should not be listed in the preloaded symbols.
72171exclude_expsyms=$lt_exclude_expsyms_F77
72172
72173# Symbols that must always be exported.
72174include_expsyms=$lt_include_expsyms_F77
72175
72176# Commands necessary for linking programs (against libraries) with templates.
72177prelink_cmds=$lt_prelink_cmds_F77
72178
72179# Commands necessary for finishing linking programs.
72180postlink_cmds=$lt_postlink_cmds_F77
72181
72182# Specify filename containing input files.
72183file_list_spec=$lt_file_list_spec_F77
72184
72185# How to hardcode a shared library path into an executable.
72186hardcode_action=$hardcode_action_F77
72187
72188# The directories searched by this compiler when creating a shared library.
72189compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
72190
72191# Dependencies to place before and after the objects being linked to
72192# create a shared library.
72193predep_objects=$lt_predep_objects_F77
72194postdep_objects=$lt_postdep_objects_F77
72195predeps=$lt_predeps_F77
72196postdeps=$lt_postdeps_F77
72197
72198# The library search path used internally by the compiler when linking
72199# a shared library.
72200compiler_lib_search_path=$lt_compiler_lib_search_path_F77
72201
72202# ### END LIBTOOL TAG CONFIG: F77
72203_LT_EOF
72204
72205 ;;
72206    "default-1":C) if test "$enable_f77" = yes ; then
72207if test "$has_exclaim" = "yes" ; then
72208    sed -e 's/^C/\!/g' src/binding/fortran/mpif_h/mpif.h > src/include/mpif.h
72209	cp src/include/mpif.h src/binding/fortran/mpif_h/mpif.h
72210else
72211    cp src/binding/fortran/mpif_h/mpif.h src/include
72212fi
72213if test "$has_fort_real8" = "yes" ; then
72214    sed -e 's/DOUBLE PRECISION/REAL*8/g' src/include/mpif.h > src/include/mpif.h.new
72215    mv src/include/mpif.h.new src/include/mpif.h
72216    cp src/include/mpif.h src/binding/fortran/mpif_h/mpif.h
72217fi
72218fi ;;
72219    "default-2":C)
72220for prog in $EXTERNAL_SETUPS - ; do
72221    if test "$prog" != "-" ; then
72222      dir=`dirname $prog`
72223      name=`basename $prog`
72224      (cd $dir && ./$name)
72225    fi
72226done ;;
72227    "default-3":C) if [ ! -d lib ] ; then mkdir lib ; fi
72228date > lib/newconfig ;;
72229    "default-4":C) chmod a+x test/commands/cmdtests ;;
72230
72231  esac
72232done # for ac_tag
72233
72234
72235as_fn_exit 0
72236_ACEOF
72237ac_clean_files=$ac_clean_files_save
72238
72239test $ac_write_fail = 0 ||
72240  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
72241
72242
72243# configure is writing to config.log, and then calls config.status.
72244# config.status does its own redirection, appending to config.log.
72245# Unfortunately, on DOS this fails, as config.log is still kept open
72246# by configure, so config.status won't be able to write to it; its
72247# output is simply discarded.  So we exec the FD to /dev/null,
72248# effectively closing config.log, so it can be properly (re)opened and
72249# appended to by config.status.  When coming back to configure, we
72250# need to make the FD available again.
72251if test "$no_create" != yes; then
72252  ac_cs_success=:
72253  ac_config_status_args=
72254  test "$silent" = yes &&
72255    ac_config_status_args="$ac_config_status_args --quiet"
72256  exec 5>/dev/null
72257  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
72258  exec 5>>config.log
72259  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
72260  # would make configure fail if this is the last instruction.
72261  $ac_cs_success || as_fn_exit 1
72262fi
72263
72264#
72265# CONFIG_SUBDIRS section.
72266#
72267if test "$no_recursion" != yes; then
72268
72269  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
72270  # so they do not pile up.
72271  ac_sub_configure_args=
72272  ac_prev=
72273  eval "set x $ac_configure_args"
72274  shift
72275  for ac_arg
72276  do
72277    if test -n "$ac_prev"; then
72278      ac_prev=
72279      continue
72280    fi
72281    case $ac_arg in
72282    -cache-file | --cache-file | --cache-fil | --cache-fi \
72283    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
72284      ac_prev=cache_file ;;
72285    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
72286    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
72287    | --c=*)
72288      ;;
72289    --config-cache | -C)
72290      ;;
72291    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
72292      ac_prev=srcdir ;;
72293    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
72294      ;;
72295    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
72296      ac_prev=prefix ;;
72297    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
72298      ;;
72299    --disable-option-checking)
72300      ;;
72301    *)
72302      case $ac_arg in
72303      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
72304      esac
72305      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
72306    esac
72307  done
72308
72309  # Always prepend --prefix to ensure using the same prefix
72310  # in subdir configurations.
72311  ac_arg="--prefix=$prefix"
72312  case $ac_arg in
72313  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
72314  esac
72315  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
72316
72317  # Pass --silent
72318  if test "$silent" = yes; then
72319    ac_sub_configure_args="--silent $ac_sub_configure_args"
72320  fi
72321
72322  # Always prepend --disable-option-checking to silence warnings, since
72323  # different subdirs can have different --enable and --with options.
72324  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
72325
72326  ac_popdir=`pwd`
72327  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
72328
72329    # Do not complain, so a configure script can configure whichever
72330    # parts of a large source tree are present.
72331    test -d "$srcdir/$ac_dir" || continue
72332
72333    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
72334    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
72335    $as_echo "$ac_msg" >&6
72336    as_dir="$ac_dir"; as_fn_mkdir_p
72337    ac_builddir=.
72338
72339case "$ac_dir" in
72340.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
72341*)
72342  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
72343  # A ".." for each directory in $ac_dir_suffix.
72344  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
72345  case $ac_top_builddir_sub in
72346  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
72347  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
72348  esac ;;
72349esac
72350ac_abs_top_builddir=$ac_pwd
72351ac_abs_builddir=$ac_pwd$ac_dir_suffix
72352# for backward compatibility:
72353ac_top_builddir=$ac_top_build_prefix
72354
72355case $srcdir in
72356  .)  # We are building in place.
72357    ac_srcdir=.
72358    ac_top_srcdir=$ac_top_builddir_sub
72359    ac_abs_top_srcdir=$ac_pwd ;;
72360  [\\/]* | ?:[\\/]* )  # Absolute name.
72361    ac_srcdir=$srcdir$ac_dir_suffix;
72362    ac_top_srcdir=$srcdir
72363    ac_abs_top_srcdir=$srcdir ;;
72364  *) # Relative name.
72365    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
72366    ac_top_srcdir=$ac_top_build_prefix$srcdir
72367    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
72368esac
72369ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
72370
72371
72372    cd "$ac_dir"
72373
72374    # Check for guested configure; otherwise get Cygnus style configure.
72375    if test -f "$ac_srcdir/configure.gnu"; then
72376      ac_sub_configure=$ac_srcdir/configure.gnu
72377    elif test -f "$ac_srcdir/configure"; then
72378      ac_sub_configure=$ac_srcdir/configure
72379    elif test -f "$ac_srcdir/configure.in"; then
72380      # This should be Cygnus configure.
72381      ac_sub_configure=$ac_aux_dir/configure
72382    else
72383      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
72384$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
72385      ac_sub_configure=
72386    fi
72387
72388    # The recursion is here.
72389    if test -n "$ac_sub_configure"; then
72390      # Make the cache file name correct relative to the subdirectory.
72391      case $cache_file in
72392      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
72393      *) # Relative name.
72394	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
72395      esac
72396
72397      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
72398$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
72399      # The eval makes quoting arguments work.
72400      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
72401	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
72402	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
72403    fi
72404
72405    cd "$ac_popdir"
72406  done
72407fi
72408if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
72409  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
72410$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
72411fi
72412
72413
72414if test ${device_name} = "ch4" ; then
72415cat <<EOF
72416***
72417*** device: ch4
72418*** netmods: ${ch4_netmods}
72419*** shm: ${ch4_shm}
72420***
72421EOF
72422elif test ${DEVICE} = "ch3:nemesis" ; then
72423cat <<EOF
72424***
72425*** device configuration: ch3:nemesis
72426*** nemesis networks: ${nemesis_networks}
72427***
72428EOF
72429else
72430cat <<EOF
72431***
72432*** device configuration: ${DEVICE}
72433***
72434EOF
72435fi
72436
72437echo 'Configuration completed.'
72438