1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for pmix 2.2.3.
4#
5# Report bugs to <https://github.com/pmix/pmix/issues>.
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
278$0: https://github.com/pmix/pmix/issues about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do 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='pmix'
592PACKAGE_TARNAME='pmix'
593PACKAGE_VERSION='2.2.3'
594PACKAGE_STRING='pmix 2.2.3'
595PACKAGE_BUGREPORT='https://github.com/pmix/pmix/issues'
596PACKAGE_URL=''
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
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638libmca_common_dstore_so_version
639libpmi2_so_version
640libpmi_so_version
641libpmix_so_version
642CONFIGURE_DEPENDENCIES
643CC_FOR_BUILD
644NEED_LIBPMIX_FALSE
645NEED_LIBPMIX_TRUE
646WANT_PMI_BACKWARD_FALSE
647WANT_PMI_BACKWARD_TRUE
648WANT_PRIMARY_HEADERS_FALSE
649WANT_PRIMARY_HEADERS_TRUE
650WANT_DSTORE_FALSE
651WANT_DSTORE_TRUE
652PMIX_WANT_SASL_FALSE
653PMIX_WANT_SASL_TRUE
654PMIX_WANT_MUNGE_FALSE
655PMIX_WANT_MUNGE_TRUE
656PMIX_COMPILE_TIMING_FALSE
657PMIX_COMPILE_TIMING_TRUE
658PMIX_TESTS_EXAMPLES_FALSE
659PMIX_TESTS_EXAMPLES_TRUE
660PMIX_EMBEDDED_MODE_FALSE
661PMIX_EMBEDDED_MODE_TRUE
662PMIX_EMBEDDED_CPPFLAGS
663PMIX_EMBEDDED_LDFLAGS
664PMIX_EMBEDDED_LIBS
665pmixincludedir
666pmixlibdir
667pmixdatadir
668HAVE_DSTORE_FCNTL_LOCK_FALSE
669HAVE_DSTORE_FCNTL_LOCK_TRUE
670HAVE_DSTORE_PTHREAD_LOCK_FALSE
671HAVE_DSTORE_PTHREAD_LOCK_TRUE
672MCA_PROJECT_SUBDIRS
673MCA_pmix_FRAMEWORK_LIBS
674MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS
675MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS
676MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS
677MCA_pmix_FRAMEWORKS_SUBDIRS
678MCA_pmix_FRAMEWORKS
679MCA_pmix_ptl_DSO_SUBDIRS
680MCA_pmix_ptl_STATIC_SUBDIRS
681MCA_pmix_ptl_ALL_SUBDIRS
682MCA_pmix_ptl_STATIC_LTLIBS
683MCA_pmix_ptl_DSO_COMPONENTS
684MCA_pmix_ptl_STATIC_COMPONENTS
685MCA_pmix_ptl_ALL_COMPONENTS
686MCA_BUILD_pmix_ptl_usock_DSO_FALSE
687MCA_BUILD_pmix_ptl_usock_DSO_TRUE
688MCA_BUILD_pmix_ptl_tcp_DSO_FALSE
689MCA_BUILD_pmix_ptl_tcp_DSO_TRUE
690MCA_pmix_pshmem_DSO_SUBDIRS
691MCA_pmix_pshmem_STATIC_SUBDIRS
692MCA_pmix_pshmem_ALL_SUBDIRS
693MCA_pmix_pshmem_STATIC_LTLIBS
694MCA_pmix_pshmem_DSO_COMPONENTS
695MCA_pmix_pshmem_STATIC_COMPONENTS
696MCA_pmix_pshmem_ALL_COMPONENTS
697MCA_BUILD_pmix_pshmem_mmap_DSO_FALSE
698MCA_BUILD_pmix_pshmem_mmap_DSO_TRUE
699MCA_pmix_psensor_DSO_SUBDIRS
700MCA_pmix_psensor_STATIC_SUBDIRS
701MCA_pmix_psensor_ALL_SUBDIRS
702MCA_pmix_psensor_STATIC_LTLIBS
703MCA_pmix_psensor_DSO_COMPONENTS
704MCA_pmix_psensor_STATIC_COMPONENTS
705MCA_pmix_psensor_ALL_COMPONENTS
706MCA_BUILD_pmix_psensor_heartbeat_DSO_FALSE
707MCA_BUILD_pmix_psensor_heartbeat_DSO_TRUE
708MCA_BUILD_pmix_psensor_file_DSO_FALSE
709MCA_BUILD_pmix_psensor_file_DSO_TRUE
710MCA_pmix_psec_DSO_SUBDIRS
711MCA_pmix_psec_STATIC_SUBDIRS
712MCA_pmix_psec_ALL_SUBDIRS
713MCA_pmix_psec_STATIC_LTLIBS
714MCA_pmix_psec_DSO_COMPONENTS
715MCA_pmix_psec_STATIC_COMPONENTS
716MCA_pmix_psec_ALL_COMPONENTS
717MCA_BUILD_pmix_psec_munge_DSO_FALSE
718MCA_BUILD_pmix_psec_munge_DSO_TRUE
719psec_munge_LIBS
720psec_munge_LDFLAGS
721psec_munge_CPPFLAGS
722MCA_BUILD_pmix_psec_none_DSO_FALSE
723MCA_BUILD_pmix_psec_none_DSO_TRUE
724MCA_BUILD_pmix_psec_native_DSO_FALSE
725MCA_BUILD_pmix_psec_native_DSO_TRUE
726MCA_BUILD_pmix_psec_dummy_handshake_DSO_FALSE
727MCA_BUILD_pmix_psec_dummy_handshake_DSO_TRUE
728MCA_pmix_preg_DSO_SUBDIRS
729MCA_pmix_preg_STATIC_SUBDIRS
730MCA_pmix_preg_ALL_SUBDIRS
731MCA_pmix_preg_STATIC_LTLIBS
732MCA_pmix_preg_DSO_COMPONENTS
733MCA_pmix_preg_STATIC_COMPONENTS
734MCA_pmix_preg_ALL_COMPONENTS
735MCA_BUILD_pmix_preg_native_DSO_FALSE
736MCA_BUILD_pmix_preg_native_DSO_TRUE
737MCA_pmix_pnet_DSO_SUBDIRS
738MCA_pmix_pnet_STATIC_SUBDIRS
739MCA_pmix_pnet_ALL_SUBDIRS
740MCA_pmix_pnet_STATIC_LTLIBS
741MCA_pmix_pnet_DSO_COMPONENTS
742MCA_pmix_pnet_STATIC_COMPONENTS
743MCA_pmix_pnet_ALL_COMPONENTS
744MCA_pmix_pinstalldirs_DSO_SUBDIRS
745MCA_pmix_pinstalldirs_STATIC_SUBDIRS
746MCA_pmix_pinstalldirs_ALL_SUBDIRS
747MCA_pmix_pinstalldirs_STATIC_LTLIBS
748MCA_pmix_pinstalldirs_DSO_COMPONENTS
749MCA_pmix_pinstalldirs_STATIC_COMPONENTS
750MCA_pmix_pinstalldirs_ALL_COMPONENTS
751MCA_BUILD_pmix_pinstalldirs_config_DSO_FALSE
752MCA_BUILD_pmix_pinstalldirs_config_DSO_TRUE
753MCA_BUILD_pmix_pinstalldirs_env_DSO_FALSE
754MCA_BUILD_pmix_pinstalldirs_env_DSO_TRUE
755MCA_pmix_pif_DSO_SUBDIRS
756MCA_pmix_pif_STATIC_SUBDIRS
757MCA_pmix_pif_ALL_SUBDIRS
758MCA_pmix_pif_STATIC_LTLIBS
759MCA_pmix_pif_DSO_COMPONENTS
760MCA_pmix_pif_STATIC_COMPONENTS
761MCA_pmix_pif_ALL_COMPONENTS
762MCA_BUILD_pmix_pif_solaris_ipv6_DSO_FALSE
763MCA_BUILD_pmix_pif_solaris_ipv6_DSO_TRUE
764MCA_BUILD_pmix_pif_posix_ipv4_DSO_FALSE
765MCA_BUILD_pmix_pif_posix_ipv4_DSO_TRUE
766MCA_BUILD_pmix_pif_linux_ipv6_DSO_FALSE
767MCA_BUILD_pmix_pif_linux_ipv6_DSO_TRUE
768MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_FALSE
769MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_TRUE
770MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_FALSE
771MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_TRUE
772MCA_pmix_pdl_DSO_SUBDIRS
773MCA_pmix_pdl_STATIC_SUBDIRS
774MCA_pmix_pdl_ALL_SUBDIRS
775MCA_pmix_pdl_STATIC_LTLIBS
776MCA_pmix_pdl_DSO_COMPONENTS
777MCA_pmix_pdl_STATIC_COMPONENTS
778MCA_pmix_pdl_ALL_COMPONENTS
779MCA_BUILD_pmix_pdl_plibltdl_DSO_FALSE
780MCA_BUILD_pmix_pdl_plibltdl_DSO_TRUE
781pmix_pdl_plibltdl_LIBS
782pmix_pdl_plibltdl_LDFLAGS
783pmix_pdl_plibltdl_CPPFLAGS
784MCA_BUILD_pmix_pdl_pdlopen_DSO_FALSE
785MCA_BUILD_pmix_pdl_pdlopen_DSO_TRUE
786pmix_pdl_pdlopen_LIBS
787MCA_pmix_gds_DSO_SUBDIRS
788MCA_pmix_gds_STATIC_SUBDIRS
789MCA_pmix_gds_ALL_SUBDIRS
790MCA_pmix_gds_STATIC_LTLIBS
791MCA_pmix_gds_DSO_COMPONENTS
792MCA_pmix_gds_STATIC_COMPONENTS
793MCA_pmix_gds_ALL_COMPONENTS
794MCA_BUILD_pmix_gds_ds21_DSO_FALSE
795MCA_BUILD_pmix_gds_ds21_DSO_TRUE
796MCA_BUILD_pmix_gds_ds12_DSO_FALSE
797MCA_BUILD_pmix_gds_ds12_DSO_TRUE
798MCA_BUILD_pmix_gds_hash_DSO_FALSE
799MCA_BUILD_pmix_gds_hash_DSO_TRUE
800MCA_pmix_bfrops_DSO_SUBDIRS
801MCA_pmix_bfrops_STATIC_SUBDIRS
802MCA_pmix_bfrops_ALL_SUBDIRS
803MCA_pmix_bfrops_STATIC_LTLIBS
804MCA_pmix_bfrops_DSO_COMPONENTS
805MCA_pmix_bfrops_STATIC_COMPONENTS
806MCA_pmix_bfrops_ALL_COMPONENTS
807MCA_BUILD_pmix_bfrops_v21_DSO_FALSE
808MCA_BUILD_pmix_bfrops_v21_DSO_TRUE
809MCA_BUILD_pmix_bfrops_v20_DSO_FALSE
810MCA_BUILD_pmix_bfrops_v20_DSO_TRUE
811MCA_BUILD_pmix_bfrops_v12_DSO_FALSE
812MCA_BUILD_pmix_bfrops_v12_DSO_TRUE
813MCA_pmix_common_DSO_SUBDIRS
814MCA_pmix_common_STATIC_SUBDIRS
815MCA_pmix_common_ALL_SUBDIRS
816MCA_pmix_common_STATIC_LTLIBS
817MCA_pmix_common_DSO_COMPONENTS
818MCA_pmix_common_STATIC_COMPONENTS
819MCA_pmix_common_ALL_COMPONENTS
820MCA_BUILD_pmix_common_dstore_DSO_FALSE
821MCA_BUILD_pmix_common_dstore_DSO_TRUE
822WANT_HIDDEN_FALSE
823WANT_HIDDEN_TRUE
824PMIX_DESTRUCTOR_USE_FINI_FALSE
825PMIX_DESTRUCTOR_USE_FINI_TRUE
826PMIX_ASSEMBLY_BUILTIN
827PMIX_ASSEMBLY_ARCH
828PMIX_ASSEMBLY_FORMAT
829PMIX_ASM_SUPPORT_64BIT
830PMIX_ASM_TYPE
831PMIX_ASM_LSYM
832PMIX_ASM_GSYM
833PMIX_AS_LABEL_SUFFIX
834PMIX_AS_GLOBAL
835PMIX_ASM_TEXT
836PERL
837am__fastdepCCAS_FALSE
838am__fastdepCCAS_TRUE
839CCASDEPMODE
840CCASFLAGS
841CCAS
842PMIX_EXTRA_LTLIB
843PMIX_EXTRA_LIB
844PMIX_RENAME
845PMIX_REPO_REV
846PMIX_GREEK_VERSION
847pmixnumeric
848pmixrelease
849pmixminor
850pmixmajor
851PMIX_RELEASE_VERSION
852PMIX_MINOR_VERSION
853PMIX_MAJOR_VERSION
854PMIX_RELEASE_DATE
855PMIX_VERSION
856PMIX_top_srcdir
857PMIX_top_builddir
858PMIX_CC_ABSOLUTE
859LT_SYS_LIBRARY_PATH
860OTOOL64
861OTOOL
862LIPO
863NMEDIT
864DSYMUTIL
865MANIFEST_TOOL
866RANLIB
867DLLTOOL
868OBJDUMP
869LN_S
870NM
871ac_ct_DUMPBIN
872DUMPBIN
873LD
874FGREP
875SED
876LIBTOOL
877ac_prefix_program
878CLEANFILES
879MCA_BUILD_PSEC_DUMMY_HANDSHAKE_FALSE
880MCA_BUILD_PSEC_DUMMY_HANDSHAKE_TRUE
881PMIX_INSTALL_BINARIES_FALSE
882PMIX_INSTALL_BINARIES_TRUE
883WANT_INSTALL_HEADERS_FALSE
884WANT_INSTALL_HEADERS_TRUE
885LEXLIB
886LEX_OUTPUT_ROOT
887LEX
888ac_ct_AR
889AR
890EGREP
891GREP
892CPP
893am__fastdepCC_FALSE
894am__fastdepCC_TRUE
895CCDEPMODE
896am__nodep
897AMDEPBACKSLASH
898AMDEP_FALSE
899AMDEP_TRUE
900am__quote
901am__include
902DEPDIR
903OBJEXT
904EXEEXT
905ac_ct_CC
906CPPFLAGS
907LDFLAGS
908CFLAGS
909CC
910AM_BACKSLASH
911AM_DEFAULT_VERBOSITY
912AM_DEFAULT_V
913AM_V
914am__untar
915am__tar
916AMTAR
917am__leading_dot
918SET_MAKE
919AWK
920mkdir_p
921MKDIR_P
922INSTALL_STRIP_PROGRAM
923STRIP
924install_sh
925MAKEINFO
926AUTOHEADER
927AUTOMAKE
928AUTOCONF
929ACLOCAL
930VERSION
931PACKAGE
932CYGPATH_W
933am__isrc
934INSTALL_DATA
935INSTALL_SCRIPT
936INSTALL_PROGRAM
937target_os
938target_vendor
939target_cpu
940target
941host_os
942host_vendor
943host_cpu
944host
945build_os
946build_vendor
947build_cpu
948build
949PMIX_CONFIGURE_DATE
950PMIX_CONFIGURE_HOST
951PMIX_CONFIGURE_USER
952PMIX_TOP_SRCDIR
953PMIX_TOP_BUILDDIR
954PMIX_CONFIGURE_CLI
955target_alias
956host_alias
957build_alias
958LIBS
959ECHO_T
960ECHO_N
961ECHO_C
962DEFS
963mandir
964localedir
965libdir
966psdir
967pdfdir
968dvidir
969htmldir
970infodir
971docdir
972oldincludedir
973includedir
974localstatedir
975sharedstatedir
976sysconfdir
977datadir
978datarootdir
979libexecdir
980sbindir
981bindir
982program_transform_name
983prefix
984exec_prefix
985PACKAGE_URL
986PACKAGE_BUGREPORT
987PACKAGE_STRING
988PACKAGE_VERSION
989PACKAGE_TARNAME
990PACKAGE_NAME
991PATH_SEPARATOR
992SHELL'
993ac_subst_files=''
994ac_user_opts='
995enable_option_checking
996with_platform
997enable_silent_rules
998enable_dependency_tracking
999enable_shared
1000enable_static
1001enable_dlopen
1002enable_embedded_mode
1003enable_picky
1004enable_debug
1005enable_debug_symbols
1006with_devel_headers
1007with_tests_examples
1008enable_per_user_config_files
1009enable_pretty_print_stacktrace
1010enable_dstore_pthlck
1011with_ident_string
1012enable_pmix_timing
1013enable_pmi_backward_compatibility
1014enable_pmix_binaries
1015enable_dummy_handshake
1016enable_nonglobal_dlopen
1017with_pic
1018enable_fast_install
1019with_aix_soname
1020with_gnu_ld
1021with_sysroot
1022enable_libtool_lock
1023with_pmix_symbol_rename
1024with_pmix_extra_lib
1025with_pmix_extra_ltlib
1026with_pmix_package_string
1027enable_c11_atomics
1028enable_builtin_atomics
1029with_broken_qsort
1030enable_visibility
1031with_libevent_header
1032with_libevent
1033with_libevent_libdir
1034with_zlib
1035with_zlib_libdir
1036enable_show_load_errors_by_default
1037enable_mca_no_build
1038enable_mca_dso
1039enable_mca_static
1040enable_mca_direct
1041enable_dl_dlopen
1042with_plibltdl
1043with_libltdl_libdir
1044with_munge
1045with_munge_libdir
1046'
1047      ac_precious_vars='build_alias
1048host_alias
1049target_alias
1050CC
1051CFLAGS
1052LDFLAGS
1053LIBS
1054CPPFLAGS
1055CPP
1056LT_SYS_LIBRARY_PATH
1057CCAS
1058CCASFLAGS
1059CC_FOR_BUILD'
1060
1061
1062# Initialize some variables set by options.
1063ac_init_help=
1064ac_init_version=false
1065ac_unrecognized_opts=
1066ac_unrecognized_sep=
1067# The variables have the same names as the options, with
1068# dashes changed to underlines.
1069cache_file=/dev/null
1070exec_prefix=NONE
1071no_create=
1072no_recursion=
1073prefix=NONE
1074program_prefix=NONE
1075program_suffix=NONE
1076program_transform_name=s,x,x,
1077silent=
1078site=
1079srcdir=
1080verbose=
1081x_includes=NONE
1082x_libraries=NONE
1083
1084# Installation directory options.
1085# These are left unexpanded so users can "make install exec_prefix=/foo"
1086# and all the variables that are supposed to be based on exec_prefix
1087# by default will actually change.
1088# Use braces instead of parens because sh, perl, etc. also accept them.
1089# (The list follows the same order as the GNU Coding Standards.)
1090bindir='${exec_prefix}/bin'
1091sbindir='${exec_prefix}/sbin'
1092libexecdir='${exec_prefix}/libexec'
1093datarootdir='${prefix}/share'
1094datadir='${datarootdir}'
1095sysconfdir='${prefix}/etc'
1096sharedstatedir='${prefix}/com'
1097localstatedir='${prefix}/var'
1098includedir='${prefix}/include'
1099oldincludedir='/usr/include'
1100docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1101infodir='${datarootdir}/info'
1102htmldir='${docdir}'
1103dvidir='${docdir}'
1104pdfdir='${docdir}'
1105psdir='${docdir}'
1106libdir='${exec_prefix}/lib'
1107localedir='${datarootdir}/locale'
1108mandir='${datarootdir}/man'
1109
1110ac_prev=
1111ac_dashdash=
1112for ac_option
1113do
1114  # If the previous option needs an argument, assign it.
1115  if test -n "$ac_prev"; then
1116    eval $ac_prev=\$ac_option
1117    ac_prev=
1118    continue
1119  fi
1120
1121  case $ac_option in
1122  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1123  *=)   ac_optarg= ;;
1124  *)    ac_optarg=yes ;;
1125  esac
1126
1127  # Accept the important Cygnus configure options, so we can diagnose typos.
1128
1129  case $ac_dashdash$ac_option in
1130  --)
1131    ac_dashdash=yes ;;
1132
1133  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1134    ac_prev=bindir ;;
1135  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1136    bindir=$ac_optarg ;;
1137
1138  -build | --build | --buil | --bui | --bu)
1139    ac_prev=build_alias ;;
1140  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1141    build_alias=$ac_optarg ;;
1142
1143  -cache-file | --cache-file | --cache-fil | --cache-fi \
1144  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1145    ac_prev=cache_file ;;
1146  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1147  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1148    cache_file=$ac_optarg ;;
1149
1150  --config-cache | -C)
1151    cache_file=config.cache ;;
1152
1153  -datadir | --datadir | --datadi | --datad)
1154    ac_prev=datadir ;;
1155  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1156    datadir=$ac_optarg ;;
1157
1158  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1159  | --dataroo | --dataro | --datar)
1160    ac_prev=datarootdir ;;
1161  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1162  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1163    datarootdir=$ac_optarg ;;
1164
1165  -disable-* | --disable-*)
1166    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1167    # Reject names that are not valid shell variable names.
1168    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169      as_fn_error $? "invalid feature name: $ac_useropt"
1170    ac_useropt_orig=$ac_useropt
1171    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172    case $ac_user_opts in
1173      *"
1174"enable_$ac_useropt"
1175"*) ;;
1176      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1177	 ac_unrecognized_sep=', ';;
1178    esac
1179    eval enable_$ac_useropt=no ;;
1180
1181  -docdir | --docdir | --docdi | --doc | --do)
1182    ac_prev=docdir ;;
1183  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1184    docdir=$ac_optarg ;;
1185
1186  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1187    ac_prev=dvidir ;;
1188  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1189    dvidir=$ac_optarg ;;
1190
1191  -enable-* | --enable-*)
1192    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1193    # Reject names that are not valid shell variable names.
1194    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195      as_fn_error $? "invalid feature name: $ac_useropt"
1196    ac_useropt_orig=$ac_useropt
1197    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198    case $ac_user_opts in
1199      *"
1200"enable_$ac_useropt"
1201"*) ;;
1202      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1203	 ac_unrecognized_sep=', ';;
1204    esac
1205    eval enable_$ac_useropt=\$ac_optarg ;;
1206
1207  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1208  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1209  | --exec | --exe | --ex)
1210    ac_prev=exec_prefix ;;
1211  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1212  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1213  | --exec=* | --exe=* | --ex=*)
1214    exec_prefix=$ac_optarg ;;
1215
1216  -gas | --gas | --ga | --g)
1217    # Obsolete; use --with-gas.
1218    with_gas=yes ;;
1219
1220  -help | --help | --hel | --he | -h)
1221    ac_init_help=long ;;
1222  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1223    ac_init_help=recursive ;;
1224  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1225    ac_init_help=short ;;
1226
1227  -host | --host | --hos | --ho)
1228    ac_prev=host_alias ;;
1229  -host=* | --host=* | --hos=* | --ho=*)
1230    host_alias=$ac_optarg ;;
1231
1232  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1233    ac_prev=htmldir ;;
1234  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1235  | --ht=*)
1236    htmldir=$ac_optarg ;;
1237
1238  -includedir | --includedir | --includedi | --included | --include \
1239  | --includ | --inclu | --incl | --inc)
1240    ac_prev=includedir ;;
1241  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1242  | --includ=* | --inclu=* | --incl=* | --inc=*)
1243    includedir=$ac_optarg ;;
1244
1245  -infodir | --infodir | --infodi | --infod | --info | --inf)
1246    ac_prev=infodir ;;
1247  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1248    infodir=$ac_optarg ;;
1249
1250  -libdir | --libdir | --libdi | --libd)
1251    ac_prev=libdir ;;
1252  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1253    libdir=$ac_optarg ;;
1254
1255  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1256  | --libexe | --libex | --libe)
1257    ac_prev=libexecdir ;;
1258  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1259  | --libexe=* | --libex=* | --libe=*)
1260    libexecdir=$ac_optarg ;;
1261
1262  -localedir | --localedir | --localedi | --localed | --locale)
1263    ac_prev=localedir ;;
1264  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1265    localedir=$ac_optarg ;;
1266
1267  -localstatedir | --localstatedir | --localstatedi | --localstated \
1268  | --localstate | --localstat | --localsta | --localst | --locals)
1269    ac_prev=localstatedir ;;
1270  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1271  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1272    localstatedir=$ac_optarg ;;
1273
1274  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1275    ac_prev=mandir ;;
1276  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1277    mandir=$ac_optarg ;;
1278
1279  -nfp | --nfp | --nf)
1280    # Obsolete; use --without-fp.
1281    with_fp=no ;;
1282
1283  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1284  | --no-cr | --no-c | -n)
1285    no_create=yes ;;
1286
1287  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1288  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1289    no_recursion=yes ;;
1290
1291  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1292  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1293  | --oldin | --oldi | --old | --ol | --o)
1294    ac_prev=oldincludedir ;;
1295  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1296  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1297  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1298    oldincludedir=$ac_optarg ;;
1299
1300  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1301    ac_prev=prefix ;;
1302  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1303    prefix=$ac_optarg ;;
1304
1305  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1306  | --program-pre | --program-pr | --program-p)
1307    ac_prev=program_prefix ;;
1308  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1309  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1310    program_prefix=$ac_optarg ;;
1311
1312  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1313  | --program-suf | --program-su | --program-s)
1314    ac_prev=program_suffix ;;
1315  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1316  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1317    program_suffix=$ac_optarg ;;
1318
1319  -program-transform-name | --program-transform-name \
1320  | --program-transform-nam | --program-transform-na \
1321  | --program-transform-n | --program-transform- \
1322  | --program-transform | --program-transfor \
1323  | --program-transfo | --program-transf \
1324  | --program-trans | --program-tran \
1325  | --progr-tra | --program-tr | --program-t)
1326    ac_prev=program_transform_name ;;
1327  -program-transform-name=* | --program-transform-name=* \
1328  | --program-transform-nam=* | --program-transform-na=* \
1329  | --program-transform-n=* | --program-transform-=* \
1330  | --program-transform=* | --program-transfor=* \
1331  | --program-transfo=* | --program-transf=* \
1332  | --program-trans=* | --program-tran=* \
1333  | --progr-tra=* | --program-tr=* | --program-t=*)
1334    program_transform_name=$ac_optarg ;;
1335
1336  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1337    ac_prev=pdfdir ;;
1338  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1339    pdfdir=$ac_optarg ;;
1340
1341  -psdir | --psdir | --psdi | --psd | --ps)
1342    ac_prev=psdir ;;
1343  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1344    psdir=$ac_optarg ;;
1345
1346  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1347  | -silent | --silent | --silen | --sile | --sil)
1348    silent=yes ;;
1349
1350  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1351    ac_prev=sbindir ;;
1352  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1353  | --sbi=* | --sb=*)
1354    sbindir=$ac_optarg ;;
1355
1356  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1357  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1358  | --sharedst | --shareds | --shared | --share | --shar \
1359  | --sha | --sh)
1360    ac_prev=sharedstatedir ;;
1361  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1362  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1363  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1364  | --sha=* | --sh=*)
1365    sharedstatedir=$ac_optarg ;;
1366
1367  -site | --site | --sit)
1368    ac_prev=site ;;
1369  -site=* | --site=* | --sit=*)
1370    site=$ac_optarg ;;
1371
1372  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1373    ac_prev=srcdir ;;
1374  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1375    srcdir=$ac_optarg ;;
1376
1377  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1378  | --syscon | --sysco | --sysc | --sys | --sy)
1379    ac_prev=sysconfdir ;;
1380  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1381  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1382    sysconfdir=$ac_optarg ;;
1383
1384  -target | --target | --targe | --targ | --tar | --ta | --t)
1385    ac_prev=target_alias ;;
1386  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1387    target_alias=$ac_optarg ;;
1388
1389  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1390    verbose=yes ;;
1391
1392  -version | --version | --versio | --versi | --vers | -V)
1393    ac_init_version=: ;;
1394
1395  -with-* | --with-*)
1396    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1397    # Reject names that are not valid shell variable names.
1398    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1399      as_fn_error $? "invalid package name: $ac_useropt"
1400    ac_useropt_orig=$ac_useropt
1401    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1402    case $ac_user_opts in
1403      *"
1404"with_$ac_useropt"
1405"*) ;;
1406      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1407	 ac_unrecognized_sep=', ';;
1408    esac
1409    eval with_$ac_useropt=\$ac_optarg ;;
1410
1411  -without-* | --without-*)
1412    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1413    # Reject names that are not valid shell variable names.
1414    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1415      as_fn_error $? "invalid package name: $ac_useropt"
1416    ac_useropt_orig=$ac_useropt
1417    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1418    case $ac_user_opts in
1419      *"
1420"with_$ac_useropt"
1421"*) ;;
1422      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1423	 ac_unrecognized_sep=', ';;
1424    esac
1425    eval with_$ac_useropt=no ;;
1426
1427  --x)
1428    # Obsolete; use --with-x.
1429    with_x=yes ;;
1430
1431  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1432  | --x-incl | --x-inc | --x-in | --x-i)
1433    ac_prev=x_includes ;;
1434  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1435  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1436    x_includes=$ac_optarg ;;
1437
1438  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1439  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1440    ac_prev=x_libraries ;;
1441  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1442  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1443    x_libraries=$ac_optarg ;;
1444
1445  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1446Try \`$0 --help' for more information"
1447    ;;
1448
1449  *=*)
1450    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1451    # Reject names that are not valid shell variable names.
1452    case $ac_envvar in #(
1453      '' | [0-9]* | *[!_$as_cr_alnum]* )
1454      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1455    esac
1456    eval $ac_envvar=\$ac_optarg
1457    export $ac_envvar ;;
1458
1459  *)
1460    # FIXME: should be removed in autoconf 3.0.
1461    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1462    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1463      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1464    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1465    ;;
1466
1467  esac
1468done
1469
1470if test -n "$ac_prev"; then
1471  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1472  as_fn_error $? "missing argument to $ac_option"
1473fi
1474
1475if test -n "$ac_unrecognized_opts"; then
1476  case $enable_option_checking in
1477    no) ;;
1478    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1479    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1480  esac
1481fi
1482
1483# Check all directory arguments for consistency.
1484for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1485		datadir sysconfdir sharedstatedir localstatedir includedir \
1486		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1487		libdir localedir mandir
1488do
1489  eval ac_val=\$$ac_var
1490  # Remove trailing slashes.
1491  case $ac_val in
1492    */ )
1493      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1494      eval $ac_var=\$ac_val;;
1495  esac
1496  # Be sure to have absolute directory names.
1497  case $ac_val in
1498    [\\/$]* | ?:[\\/]* )  continue;;
1499    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1500  esac
1501  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1502done
1503
1504# There might be people who depend on the old broken behavior: `$host'
1505# used to hold the argument of --host etc.
1506# FIXME: To remove some day.
1507build=$build_alias
1508host=$host_alias
1509target=$target_alias
1510
1511# FIXME: To remove some day.
1512if test "x$host_alias" != x; then
1513  if test "x$build_alias" = x; then
1514    cross_compiling=maybe
1515  elif test "x$build_alias" != "x$host_alias"; then
1516    cross_compiling=yes
1517  fi
1518fi
1519
1520ac_tool_prefix=
1521test -n "$host_alias" && ac_tool_prefix=$host_alias-
1522
1523test "$silent" = yes && exec 6>/dev/null
1524
1525
1526ac_pwd=`pwd` && test -n "$ac_pwd" &&
1527ac_ls_di=`ls -di .` &&
1528ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1529  as_fn_error $? "working directory cannot be determined"
1530test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1531  as_fn_error $? "pwd does not report name of working directory"
1532
1533
1534# Find the source files, if location was not specified.
1535if test -z "$srcdir"; then
1536  ac_srcdir_defaulted=yes
1537  # Try the directory containing this script, then the parent directory.
1538  ac_confdir=`$as_dirname -- "$as_myself" ||
1539$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1540	 X"$as_myself" : 'X\(//\)[^/]' \| \
1541	 X"$as_myself" : 'X\(//\)$' \| \
1542	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1543$as_echo X"$as_myself" |
1544    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1545	    s//\1/
1546	    q
1547	  }
1548	  /^X\(\/\/\)[^/].*/{
1549	    s//\1/
1550	    q
1551	  }
1552	  /^X\(\/\/\)$/{
1553	    s//\1/
1554	    q
1555	  }
1556	  /^X\(\/\).*/{
1557	    s//\1/
1558	    q
1559	  }
1560	  s/.*/./; q'`
1561  srcdir=$ac_confdir
1562  if test ! -r "$srcdir/$ac_unique_file"; then
1563    srcdir=..
1564  fi
1565else
1566  ac_srcdir_defaulted=no
1567fi
1568if test ! -r "$srcdir/$ac_unique_file"; then
1569  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1570  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1571fi
1572ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1573ac_abs_confdir=`(
1574	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1575	pwd)`
1576# When building in place, set srcdir=.
1577if test "$ac_abs_confdir" = "$ac_pwd"; then
1578  srcdir=.
1579fi
1580# Remove unnecessary trailing slashes from srcdir.
1581# Double slashes in file names in object file debugging info
1582# mess up M-x gdb in Emacs.
1583case $srcdir in
1584*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1585esac
1586for ac_var in $ac_precious_vars; do
1587  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1588  eval ac_env_${ac_var}_value=\$${ac_var}
1589  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1590  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1591done
1592
1593#
1594# Report the --help message.
1595#
1596if test "$ac_init_help" = "long"; then
1597  # Omit some internal or obsolete options to make the list less imposing.
1598  # This message is too long to be a string in the A/UX 3.1 sh.
1599  cat <<_ACEOF
1600\`configure' configures pmix 2.2.3 to adapt to many kinds of systems.
1601
1602Usage: $0 [OPTION]... [VAR=VALUE]...
1603
1604To assign environment variables (e.g., CC, CFLAGS...), specify them as
1605VAR=VALUE.  See below for descriptions of some of the useful variables.
1606
1607Defaults for the options are specified in brackets.
1608
1609Configuration:
1610  -h, --help              display this help and exit
1611      --help=short        display options specific to this package
1612      --help=recursive    display the short help of all the included packages
1613  -V, --version           display version information and exit
1614  -q, --quiet, --silent   do not print \`checking ...' messages
1615      --cache-file=FILE   cache test results in FILE [disabled]
1616  -C, --config-cache      alias for \`--cache-file=config.cache'
1617  -n, --no-create         do not create output files
1618      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1619
1620Installation directories:
1621  --prefix=PREFIX         install architecture-independent files in PREFIX
1622                          [$ac_default_prefix]
1623  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1624                          [PREFIX]
1625
1626By default, \`make install' will install all the files in
1627\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1628an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1629for instance \`--prefix=\$HOME'.
1630
1631For better control, use the options below.
1632
1633Fine tuning of the installation directories:
1634  --bindir=DIR            user executables [EPREFIX/bin]
1635  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1636  --libexecdir=DIR        program executables [EPREFIX/libexec]
1637  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1638  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1639  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1640  --libdir=DIR            object code libraries [EPREFIX/lib]
1641  --includedir=DIR        C header files [PREFIX/include]
1642  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1643  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1644  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1645  --infodir=DIR           info documentation [DATAROOTDIR/info]
1646  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1647  --mandir=DIR            man documentation [DATAROOTDIR/man]
1648  --docdir=DIR            documentation root [DATAROOTDIR/doc/pmix]
1649  --htmldir=DIR           html documentation [DOCDIR]
1650  --dvidir=DIR            dvi documentation [DOCDIR]
1651  --pdfdir=DIR            pdf documentation [DOCDIR]
1652  --psdir=DIR             ps documentation [DOCDIR]
1653_ACEOF
1654
1655  cat <<\_ACEOF
1656
1657Program names:
1658  --program-prefix=PREFIX            prepend PREFIX to installed program names
1659  --program-suffix=SUFFIX            append SUFFIX to installed program names
1660  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1661
1662System types:
1663  --build=BUILD     configure for building on BUILD [guessed]
1664  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1665  --target=TARGET   configure for building compilers for TARGET [HOST]
1666_ACEOF
1667fi
1668
1669if test -n "$ac_init_help"; then
1670  case $ac_init_help in
1671     short | recursive ) echo "Configuration of pmix 2.2.3:";;
1672   esac
1673  cat <<\_ACEOF
1674
1675Optional Features:
1676  --disable-option-checking  ignore unrecognized --enable/--with options
1677  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1678  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1679  --enable-silent-rules   less verbose build output (undo: "make V=1")
1680  --disable-silent-rules  verbose build output (undo: "make V=0")
1681  --enable-dependency-tracking
1682                          do not reject slow dependency extractors
1683  --disable-dependency-tracking
1684                          speeds up one-time build
1685  --enable-shared[=PKGS]  build shared libraries [default=yes]
1686  --enable-static[=PKGS]  build static libraries [default=no]
1687  --enable-dlopen         Whether build should attempt to use dlopen (or
1688                          similar) to dynamically load components. (default:
1689                          enabled)
1690  --enable-embedded-mode  Using --enable-embedded-mode causes PMIx to skip a
1691                          few configure checks and install nothing. It should
1692                          only be used when building PMIx within the scope of
1693                          a larger package.
1694  --enable-picky          enable developer-level compiler pickyness when
1695                          building PMIx (default: disabled)
1696  --enable-debug          enable developer-level debugging code (not for
1697                          general PMIx users!) (default: disabled)
1698  --disable-debug-symbols Disable adding compiler flags to enable debugging
1699                          symbols if --enable-debug is specified. For
1700                          non-debugging builds, this flag has no effect.
1701  --enable-per-user-config-files
1702                          Disable per-user configuration files, to save disk
1703                          accesses during job start-up. This is likely
1704                          desirable for large jobs. Note that this can also be
1705                          acheived by environment variables at run-time.
1706                          (default: enabled)
1707  --enable-pretty-print-stacktrace
1708                          Pretty print stacktrace on process signal (default:
1709                          enabled)
1710  --disable-dstore-pthlck Disable pthread-based locking in dstor (default:
1711                          enabled)
1712  --enable-pmix-timing    enable PMIx developer-level timing code (default:
1713                          disabled)
1714  --enable-pmi-backward-compatibility
1715                          enable PMIx support for PMI-1 and PMI-2 (default:
1716                          enabled)
1717  --enable-pmix-binaries  enable PMIx tools
1718  --enable-dummy-handshake
1719                          Enables psec dummy component intended to check the
1720                          PTL handshake scenario (default: disabled)
1721  --enable-nonglobal-dlopen
1722                          enable non-global dlopen (default: enabled)
1723  --enable-fast-install[=PKGS]
1724                          optimize for fast installation [default=yes]
1725  --disable-libtool-lock  avoid locking (might break parallel builds)
1726  --enable-c11-atomics    Enable use of C11 atomics if available (default:
1727                          enabled)
1728  --enable-builtin-atomics
1729                          Enable use of __sync builtin atomics (default:
1730                          disabled)
1731  --enable-visibility     enable visibility feature of certain
1732                          compilers/linkers (default: enabled)
1733  --enable-show-load-errors-by-default
1734                          Set the default value for the MCA parameter
1735                          mca_base_component_show_load_errors (but can be
1736                          overridden at run time by the usual
1737                          MCA-variable-setting mechansism). This MCA variable
1738                          controls whether warnings are displayed when an MCA
1739                          component fails to load at run time due to an error.
1740                          (default: enabled, meaning that
1741                          mca_base_component_show_load_errors is enabled by
1742                          default
1743  --enable-mca-no-build=LIST
1744                          Comma-separated list of <type>-<component> pairs
1745                          that will not be built. Example:
1746                          "--enable-mca-no-build=maffinity,btl-portals" will
1747                          disable building all maffinity components and the
1748                          "portals" btl components.
1749  --enable-mca-dso=LIST   Comma-separated list of types and/or type-component
1750                          pairs that will be built as run-time loadable
1751                          components (as opposed to statically linked in), if
1752                          supported on this platform. The default is to build
1753                          all components as DSOs.
1754  --enable-mca-static=LIST
1755                          Comma-separated list of types and/or type-component
1756                          pairs that will be built statically linked into the
1757                          library. The default (if DSOs are supported) is to
1758                          build all components as DSOs. Enabling a component
1759                          as static disables it building as a DSO.
1760  --enable-mca-direct=LIST
1761                          Comma-separated list of type-component pairs that
1762                          will be hard coded as the one component to use for a
1763                          given component type, saving the (small) overhead of
1764                          the component architecture. LIST must not be empty
1765                          and implies given component pairs are build as
1766                          static components.
1767  --disable-dl-dlopen     Disable the "dlopen" PDL component (and probably
1768                          force the use of the "libltdl" PDL component).
1769
1770
1771Optional Packages:
1772  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1773  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1774  --with-platform=FILE    Load options for build from FILE. Options on the
1775                          command line not in FILE are used. Options on the
1776                          command line and in FILE are replaced by what is in
1777                          FILE.
1778  --with-devel-headers    normal PMIx users/applications do not need this
1779                          (pmix.h and friends are ALWAYS installed). Developer
1780                          headers are only necessary for authors doing deeper
1781                          integration (default: disabled).
1782  --with-tests-examples   Whether or not to install the tests and example
1783                          programs.
1784  --with-ident-string=STRING
1785                          Embed an ident string into PMIx object files
1786  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1787                          both]
1788  --with-aix-soname=aix|svr4|both
1789                          shared library versioning (aka "SONAME") variant to
1790                          provide on AIX, [default=aix].
1791  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1792  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1793                          compiler's sysroot if not specified).
1794  --with-pmix-symbol-rename=PREFIX
1795                          Provide a prefix to rename PMIx symbols
1796  --with-pmix-extra-lib=LIB
1797                          Link the output PMIx library to this extra lib (used
1798                          in embedded mode)
1799  --with-pmix-extra-ltlib=LIB
1800                          Link any embedded components/tools that require it
1801                          to the provided libtool lib (used in embedded mode)
1802  --with-pmix-package-string=STRING
1803                          Use a branding string throughout PMIx
1804  --with-broken-qsort     Build with FreeBSD qsort instead of native qsort
1805                          (default: no)
1806  --with-libevent-header=HEADER
1807                          The value that should be included in C files to
1808                          include event.h
1809  --with-libevent=DIR     Search for libevent headers and libraries in DIR
1810  --with-libevent-libdir=DIR
1811                          Search for libevent libraries in DIR
1812  --with-zlib=DIR         Search for zlib headers and libraries in DIR
1813  --with-zlib-libdir=DIR  Search for zlib libraries in DIR
1814  --with-libltdl(=DIR)    Build libltdl support, optionally adding
1815                          DIR/include, DIR/lib, and DIR/lib64 to the search
1816                          path for headers and libraries
1817  --with-libltdl-libdir=DIR
1818                          Search for libltdl libraries in DIR
1819  --with-munge=DIR        Search for munge headers and libraries in DIR
1820  --with-munge-libdir=DIR Search for munge libraries in DIR
1821
1822Some influential environment variables:
1823  CC          C compiler command
1824  CFLAGS      C compiler flags
1825  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1826              nonstandard directory <lib dir>
1827  LIBS        libraries to pass to the linker, e.g. -l<library>
1828  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1829              you have headers in a nonstandard directory <include dir>
1830  CPP         C preprocessor
1831  LT_SYS_LIBRARY_PATH
1832              User-defined run-time library search path.
1833  CCAS        assembler compiler command (defaults to CC)
1834  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1835  CC_FOR_BUILD
1836              build system C compiler
1837
1838Use these variables to override the choices made by `configure' or to help
1839it to find libraries and programs with nonstandard names/locations.
1840
1841Report bugs to <https://github.com/pmix/pmix/issues>.
1842_ACEOF
1843ac_status=$?
1844fi
1845
1846if test "$ac_init_help" = "recursive"; then
1847  # If there are subdirs, report their specific --help.
1848  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1849    test -d "$ac_dir" ||
1850      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1851      continue
1852    ac_builddir=.
1853
1854case "$ac_dir" in
1855.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1856*)
1857  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1858  # A ".." for each directory in $ac_dir_suffix.
1859  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1860  case $ac_top_builddir_sub in
1861  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1862  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1863  esac ;;
1864esac
1865ac_abs_top_builddir=$ac_pwd
1866ac_abs_builddir=$ac_pwd$ac_dir_suffix
1867# for backward compatibility:
1868ac_top_builddir=$ac_top_build_prefix
1869
1870case $srcdir in
1871  .)  # We are building in place.
1872    ac_srcdir=.
1873    ac_top_srcdir=$ac_top_builddir_sub
1874    ac_abs_top_srcdir=$ac_pwd ;;
1875  [\\/]* | ?:[\\/]* )  # Absolute name.
1876    ac_srcdir=$srcdir$ac_dir_suffix;
1877    ac_top_srcdir=$srcdir
1878    ac_abs_top_srcdir=$srcdir ;;
1879  *) # Relative name.
1880    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1881    ac_top_srcdir=$ac_top_build_prefix$srcdir
1882    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1883esac
1884ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1885
1886    cd "$ac_dir" || { ac_status=$?; continue; }
1887    # Check for guested configure.
1888    if test -f "$ac_srcdir/configure.gnu"; then
1889      echo &&
1890      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1891    elif test -f "$ac_srcdir/configure"; then
1892      echo &&
1893      $SHELL "$ac_srcdir/configure" --help=recursive
1894    else
1895      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1896    fi || ac_status=$?
1897    cd "$ac_pwd" || { ac_status=$?; break; }
1898  done
1899fi
1900
1901test -n "$ac_init_help" && exit $ac_status
1902if $ac_init_version; then
1903  cat <<\_ACEOF
1904pmix configure 2.2.3
1905generated by GNU Autoconf 2.69
1906
1907Copyright (C) 2012 Free Software Foundation, Inc.
1908This configure script is free software; the Free Software Foundation
1909gives unlimited permission to copy, distribute and modify it.
1910_ACEOF
1911  exit
1912fi
1913
1914## ------------------------ ##
1915## Autoconf initialization. ##
1916## ------------------------ ##
1917
1918# ac_fn_c_try_compile LINENO
1919# --------------------------
1920# Try to compile conftest.$ac_ext, and return whether this succeeded.
1921ac_fn_c_try_compile ()
1922{
1923  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924  rm -f conftest.$ac_objext
1925  if { { ac_try="$ac_compile"
1926case "(($ac_try" in
1927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928  *) ac_try_echo=$ac_try;;
1929esac
1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931$as_echo "$ac_try_echo"; } >&5
1932  (eval "$ac_compile") 2>conftest.err
1933  ac_status=$?
1934  if test -s conftest.err; then
1935    grep -v '^ *+' conftest.err >conftest.er1
1936    cat conftest.er1 >&5
1937    mv -f conftest.er1 conftest.err
1938  fi
1939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940  test $ac_status = 0; } && {
1941	 test -z "$ac_c_werror_flag" ||
1942	 test ! -s conftest.err
1943       } && test -s conftest.$ac_objext; then :
1944  ac_retval=0
1945else
1946  $as_echo "$as_me: failed program was:" >&5
1947sed 's/^/| /' conftest.$ac_ext >&5
1948
1949	ac_retval=1
1950fi
1951  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952  as_fn_set_status $ac_retval
1953
1954} # ac_fn_c_try_compile
1955
1956# ac_fn_c_try_cpp LINENO
1957# ----------------------
1958# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1959ac_fn_c_try_cpp ()
1960{
1961  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962  if { { ac_try="$ac_cpp conftest.$ac_ext"
1963case "(($ac_try" in
1964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965  *) ac_try_echo=$ac_try;;
1966esac
1967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968$as_echo "$ac_try_echo"; } >&5
1969  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1970  ac_status=$?
1971  if test -s conftest.err; then
1972    grep -v '^ *+' conftest.err >conftest.er1
1973    cat conftest.er1 >&5
1974    mv -f conftest.er1 conftest.err
1975  fi
1976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977  test $ac_status = 0; } > conftest.i && {
1978	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1979	 test ! -s conftest.err
1980       }; then :
1981  ac_retval=0
1982else
1983  $as_echo "$as_me: failed program was:" >&5
1984sed 's/^/| /' conftest.$ac_ext >&5
1985
1986    ac_retval=1
1987fi
1988  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989  as_fn_set_status $ac_retval
1990
1991} # ac_fn_c_try_cpp
1992
1993# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1994# -------------------------------------------------------
1995# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1996# the include files in INCLUDES and setting the cache variable VAR
1997# accordingly.
1998ac_fn_c_check_header_mongrel ()
1999{
2000  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001  if eval \${$3+:} false; then :
2002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003$as_echo_n "checking for $2... " >&6; }
2004if eval \${$3+:} false; then :
2005  $as_echo_n "(cached) " >&6
2006fi
2007eval ac_res=\$$3
2008	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009$as_echo "$ac_res" >&6; }
2010else
2011  # Is the header compilable?
2012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2013$as_echo_n "checking $2 usability... " >&6; }
2014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h.  */
2016$4
2017#include <$2>
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020  ac_header_compiler=yes
2021else
2022  ac_header_compiler=no
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2026$as_echo "$ac_header_compiler" >&6; }
2027
2028# Is the header present?
2029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2030$as_echo_n "checking $2 presence... " >&6; }
2031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h.  */
2033#include <$2>
2034_ACEOF
2035if ac_fn_c_try_cpp "$LINENO"; then :
2036  ac_header_preproc=yes
2037else
2038  ac_header_preproc=no
2039fi
2040rm -f conftest.err conftest.i conftest.$ac_ext
2041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2042$as_echo "$ac_header_preproc" >&6; }
2043
2044# So?  What about this header?
2045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2046  yes:no: )
2047    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2048$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2049    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2050$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2051    ;;
2052  no:yes:* )
2053    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2054$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2055    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2056$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2057    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2058$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2059    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2060$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2061    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2062$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063( $as_echo "## -------------------------------------------------- ##
2064## Report this to https://github.com/pmix/pmix/issues ##
2065## -------------------------------------------------- ##"
2066     ) | sed "s/^/$as_me: WARNING:     /" >&2
2067    ;;
2068esac
2069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070$as_echo_n "checking for $2... " >&6; }
2071if eval \${$3+:} false; then :
2072  $as_echo_n "(cached) " >&6
2073else
2074  eval "$3=\$ac_header_compiler"
2075fi
2076eval ac_res=\$$3
2077	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079fi
2080  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081
2082} # ac_fn_c_check_header_mongrel
2083
2084# ac_fn_c_try_run LINENO
2085# ----------------------
2086# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2087# that executables *can* be run.
2088ac_fn_c_try_run ()
2089{
2090  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091  if { { ac_try="$ac_link"
2092case "(($ac_try" in
2093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094  *) ac_try_echo=$ac_try;;
2095esac
2096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097$as_echo "$ac_try_echo"; } >&5
2098  (eval "$ac_link") 2>&5
2099  ac_status=$?
2100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2102  { { case "(($ac_try" in
2103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104  *) ac_try_echo=$ac_try;;
2105esac
2106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107$as_echo "$ac_try_echo"; } >&5
2108  (eval "$ac_try") 2>&5
2109  ac_status=$?
2110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111  test $ac_status = 0; }; }; then :
2112  ac_retval=0
2113else
2114  $as_echo "$as_me: program exited with status $ac_status" >&5
2115       $as_echo "$as_me: failed program was:" >&5
2116sed 's/^/| /' conftest.$ac_ext >&5
2117
2118       ac_retval=$ac_status
2119fi
2120  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2121  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122  as_fn_set_status $ac_retval
2123
2124} # ac_fn_c_try_run
2125
2126# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2127# -------------------------------------------------------
2128# Tests whether HEADER exists and can be compiled using the include files in
2129# INCLUDES, setting the cache variable VAR accordingly.
2130ac_fn_c_check_header_compile ()
2131{
2132  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2134$as_echo_n "checking for $2... " >&6; }
2135if eval \${$3+:} false; then :
2136  $as_echo_n "(cached) " >&6
2137else
2138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139/* end confdefs.h.  */
2140$4
2141#include <$2>
2142_ACEOF
2143if ac_fn_c_try_compile "$LINENO"; then :
2144  eval "$3=yes"
2145else
2146  eval "$3=no"
2147fi
2148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149fi
2150eval ac_res=\$$3
2151	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152$as_echo "$ac_res" >&6; }
2153  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154
2155} # ac_fn_c_check_header_compile
2156
2157# ac_fn_c_try_link LINENO
2158# -----------------------
2159# Try to link conftest.$ac_ext, and return whether this succeeded.
2160ac_fn_c_try_link ()
2161{
2162  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163  rm -f conftest.$ac_objext conftest$ac_exeext
2164  if { { ac_try="$ac_link"
2165case "(($ac_try" in
2166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167  *) ac_try_echo=$ac_try;;
2168esac
2169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2170$as_echo "$ac_try_echo"; } >&5
2171  (eval "$ac_link") 2>conftest.err
2172  ac_status=$?
2173  if test -s conftest.err; then
2174    grep -v '^ *+' conftest.err >conftest.er1
2175    cat conftest.er1 >&5
2176    mv -f conftest.er1 conftest.err
2177  fi
2178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2179  test $ac_status = 0; } && {
2180	 test -z "$ac_c_werror_flag" ||
2181	 test ! -s conftest.err
2182       } && test -s conftest$ac_exeext && {
2183	 test "$cross_compiling" = yes ||
2184	 test -x conftest$ac_exeext
2185       }; then :
2186  ac_retval=0
2187else
2188  $as_echo "$as_me: failed program was:" >&5
2189sed 's/^/| /' conftest.$ac_ext >&5
2190
2191	ac_retval=1
2192fi
2193  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2194  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2195  # interfere with the next link command; also delete a directory that is
2196  # left behind by Apple's compiler.  We do this before executing the actions.
2197  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2198  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199  as_fn_set_status $ac_retval
2200
2201} # ac_fn_c_try_link
2202
2203# ac_fn_c_check_func LINENO FUNC VAR
2204# ----------------------------------
2205# Tests whether FUNC exists, setting the cache variable VAR accordingly
2206ac_fn_c_check_func ()
2207{
2208  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210$as_echo_n "checking for $2... " >&6; }
2211if eval \${$3+:} false; then :
2212  $as_echo_n "(cached) " >&6
2213else
2214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215/* end confdefs.h.  */
2216/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2217   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2218#define $2 innocuous_$2
2219
2220/* System header to define __stub macros and hopefully few prototypes,
2221    which can conflict with char $2 (); below.
2222    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2223    <limits.h> exists even on freestanding compilers.  */
2224
2225#ifdef __STDC__
2226# include <limits.h>
2227#else
2228# include <assert.h>
2229#endif
2230
2231#undef $2
2232
2233/* Override any GCC internal prototype to avoid an error.
2234   Use char because int might match the return type of a GCC
2235   builtin and then its argument prototype would still apply.  */
2236#ifdef __cplusplus
2237extern "C"
2238#endif
2239char $2 ();
2240/* The GNU C library defines this for functions which it implements
2241    to always fail with ENOSYS.  Some functions are actually named
2242    something starting with __ and the normal name is an alias.  */
2243#if defined __stub_$2 || defined __stub___$2
2244choke me
2245#endif
2246
2247int
2248main ()
2249{
2250return $2 ();
2251  ;
2252  return 0;
2253}
2254_ACEOF
2255if ac_fn_c_try_link "$LINENO"; then :
2256  eval "$3=yes"
2257else
2258  eval "$3=no"
2259fi
2260rm -f core conftest.err conftest.$ac_objext \
2261    conftest$ac_exeext conftest.$ac_ext
2262fi
2263eval ac_res=\$$3
2264	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265$as_echo "$ac_res" >&6; }
2266  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267
2268} # ac_fn_c_check_func
2269
2270# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2271# -------------------------------------------
2272# Tests whether TYPE exists after having included INCLUDES, setting cache
2273# variable VAR accordingly.
2274ac_fn_c_check_type ()
2275{
2276  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2278$as_echo_n "checking for $2... " >&6; }
2279if eval \${$3+:} false; then :
2280  $as_echo_n "(cached) " >&6
2281else
2282  eval "$3=no"
2283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284/* end confdefs.h.  */
2285$4
2286int
2287main ()
2288{
2289if (sizeof ($2))
2290	 return 0;
2291  ;
2292  return 0;
2293}
2294_ACEOF
2295if ac_fn_c_try_compile "$LINENO"; then :
2296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297/* end confdefs.h.  */
2298$4
2299int
2300main ()
2301{
2302if (sizeof (($2)))
2303	    return 0;
2304  ;
2305  return 0;
2306}
2307_ACEOF
2308if ac_fn_c_try_compile "$LINENO"; then :
2309
2310else
2311  eval "$3=yes"
2312fi
2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314fi
2315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316fi
2317eval ac_res=\$$3
2318	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319$as_echo "$ac_res" >&6; }
2320  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2321
2322} # ac_fn_c_check_type
2323
2324# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2325# --------------------------------------------
2326# Tries to find the compile-time value of EXPR in a program that includes
2327# INCLUDES, setting VAR accordingly. Returns whether the value could be
2328# computed
2329ac_fn_c_compute_int ()
2330{
2331  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332  if test "$cross_compiling" = yes; then
2333    # Depending upon the size, compute the lo and hi bounds.
2334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335/* end confdefs.h.  */
2336$4
2337int
2338main ()
2339{
2340static int test_array [1 - 2 * !(($2) >= 0)];
2341test_array [0] = 0;
2342return test_array [0];
2343
2344  ;
2345  return 0;
2346}
2347_ACEOF
2348if ac_fn_c_try_compile "$LINENO"; then :
2349  ac_lo=0 ac_mid=0
2350  while :; do
2351    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352/* end confdefs.h.  */
2353$4
2354int
2355main ()
2356{
2357static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2358test_array [0] = 0;
2359return test_array [0];
2360
2361  ;
2362  return 0;
2363}
2364_ACEOF
2365if ac_fn_c_try_compile "$LINENO"; then :
2366  ac_hi=$ac_mid; break
2367else
2368  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2369			if test $ac_lo -le $ac_mid; then
2370			  ac_lo= ac_hi=
2371			  break
2372			fi
2373			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2374fi
2375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376  done
2377else
2378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379/* end confdefs.h.  */
2380$4
2381int
2382main ()
2383{
2384static int test_array [1 - 2 * !(($2) < 0)];
2385test_array [0] = 0;
2386return test_array [0];
2387
2388  ;
2389  return 0;
2390}
2391_ACEOF
2392if ac_fn_c_try_compile "$LINENO"; then :
2393  ac_hi=-1 ac_mid=-1
2394  while :; do
2395    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396/* end confdefs.h.  */
2397$4
2398int
2399main ()
2400{
2401static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2402test_array [0] = 0;
2403return test_array [0];
2404
2405  ;
2406  return 0;
2407}
2408_ACEOF
2409if ac_fn_c_try_compile "$LINENO"; then :
2410  ac_lo=$ac_mid; break
2411else
2412  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2413			if test $ac_mid -le $ac_hi; then
2414			  ac_lo= ac_hi=
2415			  break
2416			fi
2417			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2418fi
2419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420  done
2421else
2422  ac_lo= ac_hi=
2423fi
2424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425fi
2426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427# Binary search between lo and hi bounds.
2428while test "x$ac_lo" != "x$ac_hi"; do
2429  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2431/* end confdefs.h.  */
2432$4
2433int
2434main ()
2435{
2436static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2437test_array [0] = 0;
2438return test_array [0];
2439
2440  ;
2441  return 0;
2442}
2443_ACEOF
2444if ac_fn_c_try_compile "$LINENO"; then :
2445  ac_hi=$ac_mid
2446else
2447  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2448fi
2449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450done
2451case $ac_lo in #((
2452?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2453'') ac_retval=1 ;;
2454esac
2455  else
2456    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457/* end confdefs.h.  */
2458$4
2459static long int longval () { return $2; }
2460static unsigned long int ulongval () { return $2; }
2461#include <stdio.h>
2462#include <stdlib.h>
2463int
2464main ()
2465{
2466
2467  FILE *f = fopen ("conftest.val", "w");
2468  if (! f)
2469    return 1;
2470  if (($2) < 0)
2471    {
2472      long int i = longval ();
2473      if (i != ($2))
2474	return 1;
2475      fprintf (f, "%ld", i);
2476    }
2477  else
2478    {
2479      unsigned long int i = ulongval ();
2480      if (i != ($2))
2481	return 1;
2482      fprintf (f, "%lu", i);
2483    }
2484  /* Do not output a trailing newline, as this causes \r\n confusion
2485     on some platforms.  */
2486  return ferror (f) || fclose (f) != 0;
2487
2488  ;
2489  return 0;
2490}
2491_ACEOF
2492if ac_fn_c_try_run "$LINENO"; then :
2493  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2494else
2495  ac_retval=1
2496fi
2497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2498  conftest.$ac_objext conftest.beam conftest.$ac_ext
2499rm -f conftest.val
2500
2501  fi
2502  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2503  as_fn_set_status $ac_retval
2504
2505} # ac_fn_c_compute_int
2506
2507# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2508# ---------------------------------------------
2509# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2510# accordingly.
2511ac_fn_c_check_decl ()
2512{
2513  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514  as_decl_name=`echo $2|sed 's/ *(.*//'`
2515  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2517$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2518if eval \${$3+:} false; then :
2519  $as_echo_n "(cached) " >&6
2520else
2521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522/* end confdefs.h.  */
2523$4
2524int
2525main ()
2526{
2527#ifndef $as_decl_name
2528#ifdef __cplusplus
2529  (void) $as_decl_use;
2530#else
2531  (void) $as_decl_name;
2532#endif
2533#endif
2534
2535  ;
2536  return 0;
2537}
2538_ACEOF
2539if ac_fn_c_try_compile "$LINENO"; then :
2540  eval "$3=yes"
2541else
2542  eval "$3=no"
2543fi
2544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2545fi
2546eval ac_res=\$$3
2547	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2548$as_echo "$ac_res" >&6; }
2549  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2550
2551} # ac_fn_c_check_decl
2552
2553# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2554# ----------------------------------------------------
2555# Tries to find if the field MEMBER exists in type AGGR, after including
2556# INCLUDES, setting cache variable VAR accordingly.
2557ac_fn_c_check_member ()
2558{
2559  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2561$as_echo_n "checking for $2.$3... " >&6; }
2562if eval \${$4+:} false; then :
2563  $as_echo_n "(cached) " >&6
2564else
2565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566/* end confdefs.h.  */
2567$5
2568int
2569main ()
2570{
2571static $2 ac_aggr;
2572if (ac_aggr.$3)
2573return 0;
2574  ;
2575  return 0;
2576}
2577_ACEOF
2578if ac_fn_c_try_compile "$LINENO"; then :
2579  eval "$4=yes"
2580else
2581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582/* end confdefs.h.  */
2583$5
2584int
2585main ()
2586{
2587static $2 ac_aggr;
2588if (sizeof ac_aggr.$3)
2589return 0;
2590  ;
2591  return 0;
2592}
2593_ACEOF
2594if ac_fn_c_try_compile "$LINENO"; then :
2595  eval "$4=yes"
2596else
2597  eval "$4=no"
2598fi
2599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600fi
2601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602fi
2603eval ac_res=\$$4
2604	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605$as_echo "$ac_res" >&6; }
2606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2607
2608} # ac_fn_c_check_member
2609cat >config.log <<_ACEOF
2610This file contains any messages produced by compilers while
2611running configure, to aid debugging if configure makes a mistake.
2612
2613It was created by pmix $as_me 2.2.3, which was
2614generated by GNU Autoconf 2.69.  Invocation command line was
2615
2616  $ $0 $@
2617
2618_ACEOF
2619exec 5>>config.log
2620{
2621cat <<_ASUNAME
2622## --------- ##
2623## Platform. ##
2624## --------- ##
2625
2626hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2627uname -m = `(uname -m) 2>/dev/null || echo unknown`
2628uname -r = `(uname -r) 2>/dev/null || echo unknown`
2629uname -s = `(uname -s) 2>/dev/null || echo unknown`
2630uname -v = `(uname -v) 2>/dev/null || echo unknown`
2631
2632/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2633/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2634
2635/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2636/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2637/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2638/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2639/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2640/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2641/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2642
2643_ASUNAME
2644
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648  IFS=$as_save_IFS
2649  test -z "$as_dir" && as_dir=.
2650    $as_echo "PATH: $as_dir"
2651  done
2652IFS=$as_save_IFS
2653
2654} >&5
2655
2656cat >&5 <<_ACEOF
2657
2658
2659## ----------- ##
2660## Core tests. ##
2661## ----------- ##
2662
2663_ACEOF
2664
2665
2666# Keep a trace of the command line.
2667# Strip out --no-create and --no-recursion so they do not pile up.
2668# Strip out --silent because we don't want to record it for future runs.
2669# Also quote any args containing shell meta-characters.
2670# Make two passes to allow for proper duplicate-argument suppression.
2671ac_configure_args=
2672ac_configure_args0=
2673ac_configure_args1=
2674ac_must_keep_next=false
2675for ac_pass in 1 2
2676do
2677  for ac_arg
2678  do
2679    case $ac_arg in
2680    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2681    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2682    | -silent | --silent | --silen | --sile | --sil)
2683      continue ;;
2684    *\'*)
2685      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2686    esac
2687    case $ac_pass in
2688    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2689    2)
2690      as_fn_append ac_configure_args1 " '$ac_arg'"
2691      if test $ac_must_keep_next = true; then
2692	ac_must_keep_next=false # Got value, back to normal.
2693      else
2694	case $ac_arg in
2695	  *=* | --config-cache | -C | -disable-* | --disable-* \
2696	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2697	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2698	  | -with-* | --with-* | -without-* | --without-* | --x)
2699	    case "$ac_configure_args0 " in
2700	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2701	    esac
2702	    ;;
2703	  -* ) ac_must_keep_next=true ;;
2704	esac
2705      fi
2706      as_fn_append ac_configure_args " '$ac_arg'"
2707      ;;
2708    esac
2709  done
2710done
2711{ ac_configure_args0=; unset ac_configure_args0;}
2712{ ac_configure_args1=; unset ac_configure_args1;}
2713
2714# When interrupted or exit'd, cleanup temporary files, and complete
2715# config.log.  We remove comments because anyway the quotes in there
2716# would cause problems or look ugly.
2717# WARNING: Use '\'' to represent an apostrophe within the trap.
2718# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2719trap 'exit_status=$?
2720  # Save into config.log some information that might help in debugging.
2721  {
2722    echo
2723
2724    $as_echo "## ---------------- ##
2725## Cache variables. ##
2726## ---------------- ##"
2727    echo
2728    # The following way of writing the cache mishandles newlines in values,
2729(
2730  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2731    eval ac_val=\$$ac_var
2732    case $ac_val in #(
2733    *${as_nl}*)
2734      case $ac_var in #(
2735      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2736$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2737      esac
2738      case $ac_var in #(
2739      _ | IFS | as_nl) ;; #(
2740      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2741      *) { eval $ac_var=; unset $ac_var;} ;;
2742      esac ;;
2743    esac
2744  done
2745  (set) 2>&1 |
2746    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2747    *${as_nl}ac_space=\ *)
2748      sed -n \
2749	"s/'\''/'\''\\\\'\'''\''/g;
2750	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2751      ;; #(
2752    *)
2753      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2754      ;;
2755    esac |
2756    sort
2757)
2758    echo
2759
2760    $as_echo "## ----------------- ##
2761## Output variables. ##
2762## ----------------- ##"
2763    echo
2764    for ac_var in $ac_subst_vars
2765    do
2766      eval ac_val=\$$ac_var
2767      case $ac_val in
2768      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2769      esac
2770      $as_echo "$ac_var='\''$ac_val'\''"
2771    done | sort
2772    echo
2773
2774    if test -n "$ac_subst_files"; then
2775      $as_echo "## ------------------- ##
2776## File substitutions. ##
2777## ------------------- ##"
2778      echo
2779      for ac_var in $ac_subst_files
2780      do
2781	eval ac_val=\$$ac_var
2782	case $ac_val in
2783	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2784	esac
2785	$as_echo "$ac_var='\''$ac_val'\''"
2786      done | sort
2787      echo
2788    fi
2789
2790    if test -s confdefs.h; then
2791      $as_echo "## ----------- ##
2792## confdefs.h. ##
2793## ----------- ##"
2794      echo
2795      cat confdefs.h
2796      echo
2797    fi
2798    test "$ac_signal" != 0 &&
2799      $as_echo "$as_me: caught signal $ac_signal"
2800    $as_echo "$as_me: exit $exit_status"
2801  } >&5
2802  rm -f core *.core core.conftest.* &&
2803    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2804    exit $exit_status
2805' 0
2806for ac_signal in 1 2 13 15; do
2807  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2808done
2809ac_signal=0
2810
2811# confdefs.h avoids OS command line length limits that DEFS can exceed.
2812rm -f -r conftest* confdefs.h
2813
2814$as_echo "/* confdefs.h */" > confdefs.h
2815
2816# Predefined preprocessor variables.
2817
2818cat >>confdefs.h <<_ACEOF
2819#define PACKAGE_NAME "$PACKAGE_NAME"
2820_ACEOF
2821
2822cat >>confdefs.h <<_ACEOF
2823#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2824_ACEOF
2825
2826cat >>confdefs.h <<_ACEOF
2827#define PACKAGE_VERSION "$PACKAGE_VERSION"
2828_ACEOF
2829
2830cat >>confdefs.h <<_ACEOF
2831#define PACKAGE_STRING "$PACKAGE_STRING"
2832_ACEOF
2833
2834cat >>confdefs.h <<_ACEOF
2835#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2836_ACEOF
2837
2838cat >>confdefs.h <<_ACEOF
2839#define PACKAGE_URL "$PACKAGE_URL"
2840_ACEOF
2841
2842
2843# Let the site file select an alternate cache file if it wants to.
2844# Prefer an explicitly selected file to automatically selected ones.
2845ac_site_file1=NONE
2846ac_site_file2=NONE
2847if test -n "$CONFIG_SITE"; then
2848  # We do not want a PATH search for config.site.
2849  case $CONFIG_SITE in #((
2850    -*)  ac_site_file1=./$CONFIG_SITE;;
2851    */*) ac_site_file1=$CONFIG_SITE;;
2852    *)   ac_site_file1=./$CONFIG_SITE;;
2853  esac
2854elif test "x$prefix" != xNONE; then
2855  ac_site_file1=$prefix/share/config.site
2856  ac_site_file2=$prefix/etc/config.site
2857else
2858  ac_site_file1=$ac_default_prefix/share/config.site
2859  ac_site_file2=$ac_default_prefix/etc/config.site
2860fi
2861for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2862do
2863  test "x$ac_site_file" = xNONE && continue
2864  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2865    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2866$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2867    sed 's/^/| /' "$ac_site_file" >&5
2868    . "$ac_site_file" \
2869      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2871as_fn_error $? "failed to load site script $ac_site_file
2872See \`config.log' for more details" "$LINENO" 5; }
2873  fi
2874done
2875
2876if test -r "$cache_file"; then
2877  # Some versions of bash will fail to source /dev/null (special files
2878  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2879  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2880    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2881$as_echo "$as_me: loading cache $cache_file" >&6;}
2882    case $cache_file in
2883      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2884      *)                      . "./$cache_file";;
2885    esac
2886  fi
2887else
2888  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2889$as_echo "$as_me: creating cache $cache_file" >&6;}
2890  >$cache_file
2891fi
2892
2893# Check that the precious variables saved in the cache have kept the same
2894# value.
2895ac_cache_corrupted=false
2896for ac_var in $ac_precious_vars; do
2897  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2898  eval ac_new_set=\$ac_env_${ac_var}_set
2899  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2900  eval ac_new_val=\$ac_env_${ac_var}_value
2901  case $ac_old_set,$ac_new_set in
2902    set,)
2903      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2904$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2905      ac_cache_corrupted=: ;;
2906    ,set)
2907      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2908$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2909      ac_cache_corrupted=: ;;
2910    ,);;
2911    *)
2912      if test "x$ac_old_val" != "x$ac_new_val"; then
2913	# differences in whitespace do not lead to failure.
2914	ac_old_val_w=`echo x $ac_old_val`
2915	ac_new_val_w=`echo x $ac_new_val`
2916	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2917	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2918$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2919	  ac_cache_corrupted=:
2920	else
2921	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2922$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2923	  eval $ac_var=\$ac_old_val
2924	fi
2925	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2926$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2927	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2928$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2929      fi;;
2930  esac
2931  # Pass precious variables to config.status.
2932  if test "$ac_new_set" = set; then
2933    case $ac_new_val in
2934    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2935    *) ac_arg=$ac_var=$ac_new_val ;;
2936    esac
2937    case " $ac_configure_args " in
2938      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2939      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2940    esac
2941  fi
2942done
2943if $ac_cache_corrupted; then
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2946  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2947$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2948  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2949fi
2950## -------------------- ##
2951## Main body of script. ##
2952## -------------------- ##
2953
2954ac_ext=c
2955ac_cpp='$CPP $CPPFLAGS'
2956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959
2960
2961
2962ac_aux_dir=
2963for ac_dir in ./config "$srcdir"/./config; do
2964  if test -f "$ac_dir/install-sh"; then
2965    ac_aux_dir=$ac_dir
2966    ac_install_sh="$ac_aux_dir/install-sh -c"
2967    break
2968  elif test -f "$ac_dir/install.sh"; then
2969    ac_aux_dir=$ac_dir
2970    ac_install_sh="$ac_aux_dir/install.sh -c"
2971    break
2972  elif test -f "$ac_dir/shtool"; then
2973    ac_aux_dir=$ac_dir
2974    ac_install_sh="$ac_aux_dir/shtool install -c"
2975    break
2976  fi
2977done
2978if test -z "$ac_aux_dir"; then
2979  as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./config \"$srcdir\"/./config" "$LINENO" 5
2980fi
2981
2982# These three variables are undocumented and unsupported,
2983# and are intended to be withdrawn in a future Autoconf release.
2984# They can cause serious problems if a builder's source tree is in a directory
2985# whose full name contains unusual characters.
2986ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2987ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2988ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2989
2990
2991# Note that this directory must *exactly* match what was specified via
2992# -I in ACLOCAL_AMFLAGS in the top-level Makefile.am.
2993
2994
2995# autotools expects to perform tests without interference
2996# from user-provided CFLAGS, particularly -Werror flags.
2997# Search for them here and cache any we find
2998PMIX_CFLAGS_cache=
2999PMIX_CFLAGS_pass=
3000for val in $CFLAGS; do
3001    if echo "$val" | grep -q -e "-W"; then
3002        PMIX_CFLAGS_cache="$PMIX_CFLAGS_cache $val";
3003    else
3004        PMIX_CFLAGS_pass="$PMIX_CFLAGS_pass $val";
3005    fi
3006done
3007CFLAGS=$PMIX_CFLAGS_pass
3008
3009
3010    # Capture configure command line do the AC substitution
3011
3012
3013    # Is the private index set?  If not, set it.
3014    if test "x$pmix_scope_index" = "x"; then
3015        pmix_scope_index=1
3016    fi
3017
3018    # First, check to see if any of these variables are already set.
3019    # This is a simple sanity check to ensure we're not already
3020    # overwriting pre-existing variables (that have a non-empty
3021    # value).  It's not a perfect check, but at least it's something.
3022    for pmix_var in sed_quote_subst arg quoted_arg; do
3023        pmix_str="pmix_str=\"\$$pmix_var\""
3024        eval $pmix_str
3025
3026        if test "x$pmix_str" != "x"; then
3027            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
3028$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
3029            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
3030$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
3031            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
3032$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
3033            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
3034$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
3035            as_fn_error $? "Cannot continue" "$LINENO" 5
3036        fi
3037    done
3038
3039    # Ok, we passed the simple sanity check.  Save all these names so
3040    # that we can unset them at the end of the scope.
3041    pmix_str="pmix_scope_$pmix_scope_index=\"sed_quote_subst arg quoted_arg\""
3042    eval $pmix_str
3043    unset pmix_str
3044
3045    env | grep pmix_scope
3046    pmix_scope_index=`expr $pmix_scope_index + 1`
3047
3048    PMIX_CONFIGURE_CLI=
3049    for arg in "$@"; do
3050        sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
3051        case "$arg" in
3052          *[\\\`\"\$]*)
3053	    quoted_arg=\'`echo "$arg" | sed $sed_quote_subst`\' ;;
3054          *)
3055            quoted_arg="\'$arg\'" ;;
3056        esac
3057
3058        eval "PMIX_CONFIGURE_CLI=\$PMIX_CONFIGURE_CLI\\ \$quoted_arg"
3059    done
3060
3061cat >>confdefs.h <<_ACEOF
3062#define PMIX_CONFIGURE_CLI "$PMIX_CONFIGURE_CLI"
3063_ACEOF
3064
3065
3066    # Unwind the index
3067    pmix_scope_index=`expr $pmix_scope_index - 1`
3068    pmix_scope_test=`expr $pmix_scope_index \> 0`
3069    if test "$pmix_scope_test" = "0"; then
3070        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
3071$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
3072        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
3073$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
3074        as_fn_error $? "Cannot continue" "$LINENO" 5
3075    fi
3076
3077    # Get the variable names from that index
3078    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
3079    eval $pmix_str
3080
3081    # Iterate over all the variables and unset them all
3082    for pmix_var in $pmix_str; do
3083        unset $pmix_var
3084    done
3085
3086
3087
3088
3089# Get our platform support file.  This has to be done very, very early
3090# because it twiddles random bits of autoconf
3091
3092
3093
3094# Check whether --with-platform was given.
3095if test "${with_platform+set}" = set; then :
3096  withval=$with_platform;
3097fi
3098
3099
3100    if test "$with_platform" = "yes" ; then
3101        as_fn_error $? "--with-platform argument must include FILE option" "$LINENO" 5
3102    elif test "$with_platform" = "no" ; then
3103        as_fn_error $? "--without-platform is not a valid argument" "$LINENO" 5
3104    elif test "$with_platform" != "" ; then
3105        # if not an absolute path, check in contrib/platform
3106        if test ! "`echo $with_platform | cut -c1`" = "/" && test ! "`echo $with_platform | cut -c2`" = ".." ; then
3107            if test -r "${srcdir}/contrib/platform/$with_platform" ; then
3108                with_platform="${srcdir}/contrib/platform/$with_platform"
3109            fi
3110        fi
3111
3112        # make sure file exists
3113        if test ! -r "$with_platform" ; then
3114            as_fn_error $? "platform file $with_platform not found" "$LINENO" 5
3115        fi
3116
3117        # eval into environment
3118
3119# 1 is the message
3120# 2 is whether to put a prefix or not
3121if test -n ""; then
3122    echo "configure:3122: Loading environment file $with_platform, with contents below" >&5
3123else
3124    echo Loading environment file $with_platform, with contents below >&5
3125fi
3126
3127# 1 is the filename
3128if test -n "$with_platform" && test -f "$with_platform"; then
3129    cat $with_platform >&5
3130fi
3131
3132        # setup by getting full pathname for the platform directories
3133        platform_base="`dirname $with_platform`"
3134        platform_file="`basename $with_platform`"
3135        # get full pathname of where we are so we can return
3136        platform_savedir="`pwd`"
3137        # go to where the platform file is located
3138        cd "$platform_base"
3139        # get the full path to this location
3140        platform_file_dir=`pwd`
3141
3142        . ./"$platform_file"
3143
3144        # see if they left us a name
3145        if test "$PMIX_PLATFORM_LOADED" != "" ; then
3146           platform_loaded="$PMIX_PLATFORM_LOADED"
3147        else
3148           platform_loaded="$with_platform"
3149        fi
3150        echo "Loaded platform arguments for $platform_loaded"
3151
3152# 1 is the message
3153# 2 is whether to put a prefix or not
3154if test -n ""; then
3155    echo "configure:3155: Loaded platform arguments for $platform_loaded" >&5
3156else
3157    echo Loaded platform arguments for $platform_loaded >&5
3158fi
3159
3160        # look for default mca param file
3161
3162        # return to where we started
3163        cd "$platform_savedir"
3164    fi
3165
3166
3167PMIX_TOP_BUILDDIR="`pwd`"
3168
3169top_buildir=`pwd`
3170cd "$srcdir"
3171PMIX_TOP_SRCDIR="`pwd`"
3172
3173cd "$PMIX_TOP_BUILDDIR"
3174top_srcdir=`pwd`
3175
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: builddir: $PMIX_TOP_BUILDDIR" >&5
3177$as_echo "$as_me: builddir: $PMIX_TOP_BUILDDIR" >&6;}
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: srcdir: $PMIX_TOP_SRCDIR" >&5
3179$as_echo "$as_me: srcdir: $PMIX_TOP_SRCDIR" >&6;}
3180if test "$PMIX_TOP_BUILDDIR" != "$PMIX_TOP_SRCDIR"; then
3181    { $as_echo "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5
3182$as_echo "$as_me: Detected VPATH build" >&6;}
3183fi
3184
3185# setup configure options (e.g., show_title and friends)
3186
3187
3188# Some helper script functions.  Unfortunately, we cannot use  kinds
3189# of arugments here because of the m4 substitution.  So we have to set
3190# special variable names before invoking the function.  :-\
3191
3192pmix_show_title() {
3193  cat <<EOF
3194
3195============================================================================
3196== ${1}
3197============================================================================
3198EOF
3199
3200# 1 is the message
3201# 2 is whether to put a prefix or not
3202if test -n "1"; then
3203    echo "configure:3203: === ${1}" >&5
3204else
3205    echo === ${1} >&5
3206fi
3207}
3208
3209
3210pmix_show_subtitle() {
3211  cat <<EOF
3212
3213*** ${1}
3214EOF
3215
3216# 1 is the message
3217# 2 is whether to put a prefix or not
3218if test -n "1"; then
3219    echo "configure:3219: *** ${1}" >&5
3220else
3221    echo *** ${1} >&5
3222fi
3223}
3224
3225
3226pmix_show_subsubtitle() {
3227  cat <<EOF
3228
3229+++ ${1}
3230EOF
3231
3232# 1 is the message
3233# 2 is whether to put a prefix or not
3234if test -n "1"; then
3235    echo "configure:3235: +++ ${1}" >&5
3236else
3237    echo +++ ${1} >&5
3238fi
3239}
3240
3241pmix_show_subsubsubtitle() {
3242  cat <<EOF
3243
3244--- ${1}
3245EOF
3246
3247# 1 is the message
3248# 2 is whether to put a prefix or not
3249if test -n "1"; then
3250    echo "configure:3250: --- ${1}" >&5
3251else
3252    echo --- ${1} >&5
3253fi
3254}
3255
3256pmix_show_verbose() {
3257  if test "$V" = "1"; then
3258      cat <<EOF
3259+++ VERBOSE: ${1}
3260EOF
3261
3262# 1 is the message
3263# 2 is whether to put a prefix or not
3264if test -n "1"; then
3265    echo "configure:3265: --- ${1}" >&5
3266else
3267    echo --- ${1} >&5
3268fi
3269  fi
3270}
3271
3272#
3273# Save some stats about this build
3274#
3275
3276PMIX_CONFIGURE_USER="`whoami`"
3277PMIX_CONFIGURE_HOST="`(hostname || uname -n) 2> /dev/null | sed 1q`"
3278PMIX_CONFIGURE_DATE="`date`"
3279
3280#
3281# Save these details so that they can be used in pmix_info later
3282#
3283
3284
3285cat >>confdefs.h <<_ACEOF
3286#define PMIX_CONFIGURE_USER "$PMIX_CONFIGURE_USER"
3287_ACEOF
3288
3289
3290
3291cat >>confdefs.h <<_ACEOF
3292#define PMIX_CONFIGURE_HOST "$PMIX_CONFIGURE_HOST"
3293_ACEOF
3294
3295
3296
3297cat >>confdefs.h <<_ACEOF
3298#define PMIX_CONFIGURE_DATE "$PMIX_CONFIGURE_DATE"
3299_ACEOF
3300
3301
3302pmix_show_title "Configuring PMIx"
3303
3304# This must be before AM_INIT_AUTOMAKE
3305# Make sure we can run config.sub.
3306$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3307  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3308
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3310$as_echo_n "checking build system type... " >&6; }
3311if ${ac_cv_build+:} false; then :
3312  $as_echo_n "(cached) " >&6
3313else
3314  ac_build_alias=$build_alias
3315test "x$ac_build_alias" = x &&
3316  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3317test "x$ac_build_alias" = x &&
3318  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3319ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3320  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3321
3322fi
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3324$as_echo "$ac_cv_build" >&6; }
3325case $ac_cv_build in
3326*-*-*) ;;
3327*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3328esac
3329build=$ac_cv_build
3330ac_save_IFS=$IFS; IFS='-'
3331set x $ac_cv_build
3332shift
3333build_cpu=$1
3334build_vendor=$2
3335shift; shift
3336# Remember, the first character of IFS is used to create $*,
3337# except with old shells:
3338build_os=$*
3339IFS=$ac_save_IFS
3340case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3341
3342
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3344$as_echo_n "checking host system type... " >&6; }
3345if ${ac_cv_host+:} false; then :
3346  $as_echo_n "(cached) " >&6
3347else
3348  if test "x$host_alias" = x; then
3349  ac_cv_host=$ac_cv_build
3350else
3351  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3352    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3353fi
3354
3355fi
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3357$as_echo "$ac_cv_host" >&6; }
3358case $ac_cv_host in
3359*-*-*) ;;
3360*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3361esac
3362host=$ac_cv_host
3363ac_save_IFS=$IFS; IFS='-'
3364set x $ac_cv_host
3365shift
3366host_cpu=$1
3367host_vendor=$2
3368shift; shift
3369# Remember, the first character of IFS is used to create $*,
3370# except with old shells:
3371host_os=$*
3372IFS=$ac_save_IFS
3373case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3374
3375
3376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3377$as_echo_n "checking target system type... " >&6; }
3378if ${ac_cv_target+:} false; then :
3379  $as_echo_n "(cached) " >&6
3380else
3381  if test "x$target_alias" = x; then
3382  ac_cv_target=$ac_cv_host
3383else
3384  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3385    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3386fi
3387
3388fi
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3390$as_echo "$ac_cv_target" >&6; }
3391case $ac_cv_target in
3392*-*-*) ;;
3393*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3394esac
3395target=$ac_cv_target
3396ac_save_IFS=$IFS; IFS='-'
3397set x $ac_cv_target
3398shift
3399target_cpu=$1
3400target_vendor=$2
3401shift; shift
3402# Remember, the first character of IFS is used to create $*,
3403# except with old shells:
3404target_os=$*
3405IFS=$ac_save_IFS
3406case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3407
3408
3409# The aliases save the names the user supplied, while $host etc.
3410# will get canonicalized.
3411test -n "$target_alias" &&
3412  test "$program_prefix$program_suffix$program_transform_name" = \
3413    NONENONEs,x,x, &&
3414  program_prefix=${target_alias}-
3415
3416# Init automake
3417am__api_version='1.15'
3418
3419# Find a good install program.  We prefer a C program (faster),
3420# so one script is as good as another.  But avoid the broken or
3421# incompatible versions:
3422# SysV /etc/install, /usr/sbin/install
3423# SunOS /usr/etc/install
3424# IRIX /sbin/install
3425# AIX /bin/install
3426# AmigaOS /C/install, which installs bootblocks on floppy discs
3427# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3428# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3429# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3430# OS/2's system install, which has a completely different semantic
3431# ./install, which can be erroneously created by make from ./install.sh.
3432# Reject install programs that cannot install multiple files.
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3434$as_echo_n "checking for a BSD-compatible install... " >&6; }
3435if test -z "$INSTALL"; then
3436if ${ac_cv_path_install+:} false; then :
3437  $as_echo_n "(cached) " >&6
3438else
3439  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440for as_dir in $PATH
3441do
3442  IFS=$as_save_IFS
3443  test -z "$as_dir" && as_dir=.
3444    # Account for people who put trailing slashes in PATH elements.
3445case $as_dir/ in #((
3446  ./ | .// | /[cC]/* | \
3447  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3448  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3449  /usr/ucb/* ) ;;
3450  *)
3451    # OSF1 and SCO ODT 3.0 have their own names for install.
3452    # Don't use installbsd from OSF since it installs stuff as root
3453    # by default.
3454    for ac_prog in ginstall scoinst install; do
3455      for ac_exec_ext in '' $ac_executable_extensions; do
3456	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3457	  if test $ac_prog = install &&
3458	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3459	    # AIX install.  It has an incompatible calling convention.
3460	    :
3461	  elif test $ac_prog = install &&
3462	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3463	    # program-specific install script used by HP pwplus--don't use.
3464	    :
3465	  else
3466	    rm -rf conftest.one conftest.two conftest.dir
3467	    echo one > conftest.one
3468	    echo two > conftest.two
3469	    mkdir conftest.dir
3470	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3471	      test -s conftest.one && test -s conftest.two &&
3472	      test -s conftest.dir/conftest.one &&
3473	      test -s conftest.dir/conftest.two
3474	    then
3475	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3476	      break 3
3477	    fi
3478	  fi
3479	fi
3480      done
3481    done
3482    ;;
3483esac
3484
3485  done
3486IFS=$as_save_IFS
3487
3488rm -rf conftest.one conftest.two conftest.dir
3489
3490fi
3491  if test "${ac_cv_path_install+set}" = set; then
3492    INSTALL=$ac_cv_path_install
3493  else
3494    # As a last resort, use the slow shell script.  Don't cache a
3495    # value for INSTALL within a source directory, because that will
3496    # break other packages using the cache if that directory is
3497    # removed, or if the value is a relative name.
3498    INSTALL=$ac_install_sh
3499  fi
3500fi
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3502$as_echo "$INSTALL" >&6; }
3503
3504# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3505# It thinks the first close brace ends the variable substitution.
3506test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3507
3508test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3509
3510test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3511
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3513$as_echo_n "checking whether build environment is sane... " >&6; }
3514# Reject unsafe characters in $srcdir or the absolute working directory
3515# name.  Accept space and tab only in the latter.
3516am_lf='
3517'
3518case `pwd` in
3519  *[\\\"\#\$\&\'\`$am_lf]*)
3520    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3521esac
3522case $srcdir in
3523  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3524    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3525esac
3526
3527# Do 'set' in a subshell so we don't clobber the current shell's
3528# arguments.  Must try -L first in case configure is actually a
3529# symlink; some systems play weird games with the mod time of symlinks
3530# (eg FreeBSD returns the mod time of the symlink's containing
3531# directory).
3532if (
3533   am_has_slept=no
3534   for am_try in 1 2; do
3535     echo "timestamp, slept: $am_has_slept" > conftest.file
3536     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3537     if test "$*" = "X"; then
3538	# -L didn't work.
3539	set X `ls -t "$srcdir/configure" conftest.file`
3540     fi
3541     if test "$*" != "X $srcdir/configure conftest.file" \
3542	&& test "$*" != "X conftest.file $srcdir/configure"; then
3543
3544	# If neither matched, then we have a broken ls.  This can happen
3545	# if, for instance, CONFIG_SHELL is bash and it inherits a
3546	# broken ls alias from the environment.  This has actually
3547	# happened.  Such a system could not be considered "sane".
3548	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3549  alias in your environment" "$LINENO" 5
3550     fi
3551     if test "$2" = conftest.file || test $am_try -eq 2; then
3552       break
3553     fi
3554     # Just in case.
3555     sleep 1
3556     am_has_slept=yes
3557   done
3558   test "$2" = conftest.file
3559   )
3560then
3561   # Ok.
3562   :
3563else
3564   as_fn_error $? "newly created file is older than distributed files!
3565Check your system clock" "$LINENO" 5
3566fi
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3568$as_echo "yes" >&6; }
3569# If we didn't sleep, we still need to ensure time stamps of config.status and
3570# generated files are strictly newer.
3571am_sleep_pid=
3572if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3573  ( sleep 1 ) &
3574  am_sleep_pid=$!
3575fi
3576
3577rm -f conftest.file
3578
3579test "$program_prefix" != NONE &&
3580  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3581# Use a double $ so make ignores it.
3582test "$program_suffix" != NONE &&
3583  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3584# Double any \ or $.
3585# By default was `s,x,x', remove it if useless.
3586ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3587program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3588
3589# Expand $ac_aux_dir to an absolute path.
3590am_aux_dir=`cd "$ac_aux_dir" && pwd`
3591
3592if test x"${MISSING+set}" != xset; then
3593  case $am_aux_dir in
3594  *\ * | *\	*)
3595    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3596  *)
3597    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3598  esac
3599fi
3600# Use eval to expand $SHELL
3601if eval "$MISSING --is-lightweight"; then
3602  am_missing_run="$MISSING "
3603else
3604  am_missing_run=
3605  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3606$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3607fi
3608
3609if test x"${install_sh+set}" != xset; then
3610  case $am_aux_dir in
3611  *\ * | *\	*)
3612    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3613  *)
3614    install_sh="\${SHELL} $am_aux_dir/install-sh"
3615  esac
3616fi
3617
3618# Installed binaries are usually stripped using 'strip' when the user
3619# run "make install-strip".  However 'strip' might not be the right
3620# tool to use in cross-compilation environments, therefore Automake
3621# will honor the 'STRIP' environment variable to overrule this program.
3622if test "$cross_compiling" != no; then
3623  if test -n "$ac_tool_prefix"; then
3624  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3625set dummy ${ac_tool_prefix}strip; ac_word=$2
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627$as_echo_n "checking for $ac_word... " >&6; }
3628if ${ac_cv_prog_STRIP+:} false; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  if test -n "$STRIP"; then
3632  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3633else
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH
3636do
3637  IFS=$as_save_IFS
3638  test -z "$as_dir" && as_dir=.
3639    for ac_exec_ext in '' $ac_executable_extensions; do
3640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3641    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643    break 2
3644  fi
3645done
3646  done
3647IFS=$as_save_IFS
3648
3649fi
3650fi
3651STRIP=$ac_cv_prog_STRIP
3652if test -n "$STRIP"; then
3653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3654$as_echo "$STRIP" >&6; }
3655else
3656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657$as_echo "no" >&6; }
3658fi
3659
3660
3661fi
3662if test -z "$ac_cv_prog_STRIP"; then
3663  ac_ct_STRIP=$STRIP
3664  # Extract the first word of "strip", so it can be a program name with args.
3665set dummy strip; ac_word=$2
3666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667$as_echo_n "checking for $ac_word... " >&6; }
3668if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3669  $as_echo_n "(cached) " >&6
3670else
3671  if test -n "$ac_ct_STRIP"; then
3672  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3673else
3674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675for as_dir in $PATH
3676do
3677  IFS=$as_save_IFS
3678  test -z "$as_dir" && as_dir=.
3679    for ac_exec_ext in '' $ac_executable_extensions; do
3680  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3681    ac_cv_prog_ac_ct_STRIP="strip"
3682    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683    break 2
3684  fi
3685done
3686  done
3687IFS=$as_save_IFS
3688
3689fi
3690fi
3691ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3692if test -n "$ac_ct_STRIP"; then
3693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3694$as_echo "$ac_ct_STRIP" >&6; }
3695else
3696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697$as_echo "no" >&6; }
3698fi
3699
3700  if test "x$ac_ct_STRIP" = x; then
3701    STRIP=":"
3702  else
3703    case $cross_compiling:$ac_tool_warned in
3704yes:)
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707ac_tool_warned=yes ;;
3708esac
3709    STRIP=$ac_ct_STRIP
3710  fi
3711else
3712  STRIP="$ac_cv_prog_STRIP"
3713fi
3714
3715fi
3716INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3717
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3719$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3720if test -z "$MKDIR_P"; then
3721  if ${ac_cv_path_mkdir+:} false; then :
3722  $as_echo_n "(cached) " >&6
3723else
3724  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3726do
3727  IFS=$as_save_IFS
3728  test -z "$as_dir" && as_dir=.
3729    for ac_prog in mkdir gmkdir; do
3730	 for ac_exec_ext in '' $ac_executable_extensions; do
3731	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3732	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3733	     'mkdir (GNU coreutils) '* | \
3734	     'mkdir (coreutils) '* | \
3735	     'mkdir (fileutils) '4.1*)
3736	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3737	       break 3;;
3738	   esac
3739	 done
3740       done
3741  done
3742IFS=$as_save_IFS
3743
3744fi
3745
3746  test -d ./--version && rmdir ./--version
3747  if test "${ac_cv_path_mkdir+set}" = set; then
3748    MKDIR_P="$ac_cv_path_mkdir -p"
3749  else
3750    # As a last resort, use the slow shell script.  Don't cache a
3751    # value for MKDIR_P within a source directory, because that will
3752    # break other packages using the cache if that directory is
3753    # removed, or if the value is a relative name.
3754    MKDIR_P="$ac_install_sh -d"
3755  fi
3756fi
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3758$as_echo "$MKDIR_P" >&6; }
3759
3760for ac_prog in gawk mawk nawk awk
3761do
3762  # Extract the first word of "$ac_prog", so it can be a program name with args.
3763set dummy $ac_prog; ac_word=$2
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765$as_echo_n "checking for $ac_word... " >&6; }
3766if ${ac_cv_prog_AWK+:} false; then :
3767  $as_echo_n "(cached) " >&6
3768else
3769  if test -n "$AWK"; then
3770  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3771else
3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
3774do
3775  IFS=$as_save_IFS
3776  test -z "$as_dir" && as_dir=.
3777    for ac_exec_ext in '' $ac_executable_extensions; do
3778  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779    ac_cv_prog_AWK="$ac_prog"
3780    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781    break 2
3782  fi
3783done
3784  done
3785IFS=$as_save_IFS
3786
3787fi
3788fi
3789AWK=$ac_cv_prog_AWK
3790if test -n "$AWK"; then
3791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3792$as_echo "$AWK" >&6; }
3793else
3794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795$as_echo "no" >&6; }
3796fi
3797
3798
3799  test -n "$AWK" && break
3800done
3801
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3803$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3804set x ${MAKE-make}
3805ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3806if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3807  $as_echo_n "(cached) " >&6
3808else
3809  cat >conftest.make <<\_ACEOF
3810SHELL = /bin/sh
3811all:
3812	@echo '@@@%%%=$(MAKE)=@@@%%%'
3813_ACEOF
3814# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3815case `${MAKE-make} -f conftest.make 2>/dev/null` in
3816  *@@@%%%=?*=@@@%%%*)
3817    eval ac_cv_prog_make_${ac_make}_set=yes;;
3818  *)
3819    eval ac_cv_prog_make_${ac_make}_set=no;;
3820esac
3821rm -f conftest.make
3822fi
3823if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3825$as_echo "yes" >&6; }
3826  SET_MAKE=
3827else
3828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829$as_echo "no" >&6; }
3830  SET_MAKE="MAKE=${MAKE-make}"
3831fi
3832
3833rm -rf .tst 2>/dev/null
3834mkdir .tst 2>/dev/null
3835if test -d .tst; then
3836  am__leading_dot=.
3837else
3838  am__leading_dot=_
3839fi
3840rmdir .tst 2>/dev/null
3841
3842# Check whether --enable-silent-rules was given.
3843if test "${enable_silent_rules+set}" = set; then :
3844  enableval=$enable_silent_rules;
3845fi
3846
3847case $enable_silent_rules in # (((
3848  yes) AM_DEFAULT_VERBOSITY=0;;
3849   no) AM_DEFAULT_VERBOSITY=1;;
3850    *) AM_DEFAULT_VERBOSITY=1;;
3851esac
3852am_make=${MAKE-make}
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3854$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3855if ${am_cv_make_support_nested_variables+:} false; then :
3856  $as_echo_n "(cached) " >&6
3857else
3858  if $as_echo 'TRUE=$(BAR$(V))
3859BAR0=false
3860BAR1=true
3861V=1
3862am__doit:
3863	@$(TRUE)
3864.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3865  am_cv_make_support_nested_variables=yes
3866else
3867  am_cv_make_support_nested_variables=no
3868fi
3869fi
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3871$as_echo "$am_cv_make_support_nested_variables" >&6; }
3872if test $am_cv_make_support_nested_variables = yes; then
3873    AM_V='$(V)'
3874  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3875else
3876  AM_V=$AM_DEFAULT_VERBOSITY
3877  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3878fi
3879AM_BACKSLASH='\'
3880
3881if test "`cd $srcdir && pwd`" != "`pwd`"; then
3882  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3883  # is not polluted with repeated "-I."
3884  am__isrc=' -I$(srcdir)'
3885  # test to see if srcdir already configured
3886  if test -f $srcdir/config.status; then
3887    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3888  fi
3889fi
3890
3891# test whether we have cygpath
3892if test -z "$CYGPATH_W"; then
3893  if (cygpath --version) >/dev/null 2>/dev/null; then
3894    CYGPATH_W='cygpath -w'
3895  else
3896    CYGPATH_W=echo
3897  fi
3898fi
3899
3900
3901# Define the identity of the package.
3902 PACKAGE='pmix'
3903 VERSION='2.2.3'
3904
3905
3906# Some tools Automake needs.
3907
3908ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3909
3910
3911AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3912
3913
3914AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3915
3916
3917AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3918
3919
3920MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3921
3922# For better backward compatibility.  To be removed once Automake 1.9.x
3923# dies out for good.  For more background, see:
3924# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3925# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3926mkdir_p='$(MKDIR_P)'
3927
3928# We need awk for the "check" target (and possibly the TAP driver).  The
3929# system "awk" is bad on some platforms.
3930# Always define AMTAR for backward compatibility.  Yes, it's still used
3931# in the wild :-(  We should find a proper way to deprecate it ...
3932AMTAR='$${TAR-tar}'
3933
3934
3935# We'll loop over all known methods to create a tar archive until one works.
3936_am_tools='gnutar  pax cpio none'
3937
3938am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3939
3940
3941
3942
3943
3944
3945# POSIX will say in a future version that running "rm -f" with no argument
3946# is OK; and we want to be able to make that assumption in our Makefile
3947# recipes.  So use an aggressive probe to check that the usage we want is
3948# actually supported "in the wild" to an acceptable degree.
3949# See automake bug#10828.
3950# To make any issue more visible, cause the running configure to be aborted
3951# by default if the 'rm' program in use doesn't match our expectations; the
3952# user can still override this though.
3953if rm -f && rm -fr && rm -rf; then : OK; else
3954  cat >&2 <<'END'
3955Oops!
3956
3957Your 'rm' program seems unable to run without file operands specified
3958on the command line, even when the '-f' option is present.  This is contrary
3959to the behaviour of most rm programs out there, and not conforming with
3960the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3961
3962Please tell bug-automake@gnu.org about your system, including the value
3963of your $PATH and any error possibly output before this message.  This
3964can help us improve future automake versions.
3965
3966END
3967  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3968    echo 'Configuration will proceed anyway, since you have set the' >&2
3969    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3970    echo >&2
3971  else
3972    cat >&2 <<'END'
3973Aborting the configuration process, to ensure you take notice of the issue.
3974
3975You can download and install GNU coreutils to get an 'rm' implementation
3976that behaves properly: <http://www.gnu.org/software/coreutils/>.
3977
3978If you want to complete the configuration process using your problematic
3979'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3980to "yes", and re-run configure.
3981
3982END
3983    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3984  fi
3985fi
3986
3987
3988# SILENT_RULES is new in AM 1.11, but we require 1.13.4 or higher via
3989# autogen.  Limited testing shows that calling SILENT_RULES directly
3990# works in more cases than adding "silent-rules" to INIT_AUTOMAKE
3991# (even though they're supposed to be identical).  Shrug.
3992# Check whether --enable-silent-rules was given.
3993if test "${enable_silent_rules+set}" = set; then :
3994  enableval=$enable_silent_rules;
3995fi
3996
3997case $enable_silent_rules in # (((
3998  yes) AM_DEFAULT_VERBOSITY=0;;
3999   no) AM_DEFAULT_VERBOSITY=1;;
4000    *) AM_DEFAULT_VERBOSITY=0;;
4001esac
4002am_make=${MAKE-make}
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4004$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4005if ${am_cv_make_support_nested_variables+:} false; then :
4006  $as_echo_n "(cached) " >&6
4007else
4008  if $as_echo 'TRUE=$(BAR$(V))
4009BAR0=false
4010BAR1=true
4011V=1
4012am__doit:
4013	@$(TRUE)
4014.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4015  am_cv_make_support_nested_variables=yes
4016else
4017  am_cv_make_support_nested_variables=no
4018fi
4019fi
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4021$as_echo "$am_cv_make_support_nested_variables" >&6; }
4022if test $am_cv_make_support_nested_variables = yes; then
4023    AM_V='$(V)'
4024  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4025else
4026  AM_V=$AM_DEFAULT_VERBOSITY
4027  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4028fi
4029AM_BACKSLASH='\'
4030
4031
4032# set the language
4033ac_ext=c
4034ac_cpp='$CPP $CPPFLAGS'
4035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038
4039
4040# AC_USE_SYSTEM_EXTENSIONS will modify CFLAGS if nothing was in there
4041# beforehand.  We don't want that.  So if there was nothing in
4042# CFLAGS, put nothing back in there.
4043
4044
4045    # Is the private index set?  If not, set it.
4046    if test "x$pmix_scope_index" = "x"; then
4047        pmix_scope_index=1
4048    fi
4049
4050    # First, check to see if any of these variables are already set.
4051    # This is a simple sanity check to ensure we're not already
4052    # overwriting pre-existing variables (that have a non-empty
4053    # value).  It's not a perfect check, but at least it's something.
4054    for pmix_var in CFLAGS_save; do
4055        pmix_str="pmix_str=\"\$$pmix_var\""
4056        eval $pmix_str
4057
4058        if test "x$pmix_str" != "x"; then
4059            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
4060$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
4061            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
4062$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
4063            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
4064$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
4065            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
4066$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
4067            as_fn_error $? "Cannot continue" "$LINENO" 5
4068        fi
4069    done
4070
4071    # Ok, we passed the simple sanity check.  Save all these names so
4072    # that we can unset them at the end of the scope.
4073    pmix_str="pmix_scope_$pmix_scope_index=\"CFLAGS_save\""
4074    eval $pmix_str
4075    unset pmix_str
4076
4077    env | grep pmix_scope
4078    pmix_scope_index=`expr $pmix_scope_index + 1`
4079
4080CFLAGS_save=$CFLAGS
4081DEPDIR="${am__leading_dot}deps"
4082
4083ac_config_commands="$ac_config_commands depfiles"
4084
4085
4086am_make=${MAKE-make}
4087cat > confinc << 'END'
4088am__doit:
4089	@echo this is the am__doit target
4090.PHONY: am__doit
4091END
4092# If we don't find an include directive, just comment out the code.
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4094$as_echo_n "checking for style of include used by $am_make... " >&6; }
4095am__include="#"
4096am__quote=
4097_am_result=none
4098# First try GNU make style include.
4099echo "include confinc" > confmf
4100# Ignore all kinds of additional output from 'make'.
4101case `$am_make -s -f confmf 2> /dev/null` in #(
4102*the\ am__doit\ target*)
4103  am__include=include
4104  am__quote=
4105  _am_result=GNU
4106  ;;
4107esac
4108# Now try BSD make style include.
4109if test "$am__include" = "#"; then
4110   echo '.include "confinc"' > confmf
4111   case `$am_make -s -f confmf 2> /dev/null` in #(
4112   *the\ am__doit\ target*)
4113     am__include=.include
4114     am__quote="\""
4115     _am_result=BSD
4116     ;;
4117   esac
4118fi
4119
4120
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4122$as_echo "$_am_result" >&6; }
4123rm -f confinc confmf
4124
4125# Check whether --enable-dependency-tracking was given.
4126if test "${enable_dependency_tracking+set}" = set; then :
4127  enableval=$enable_dependency_tracking;
4128fi
4129
4130if test "x$enable_dependency_tracking" != xno; then
4131  am_depcomp="$ac_aux_dir/depcomp"
4132  AMDEPBACKSLASH='\'
4133  am__nodep='_no'
4134fi
4135 if test "x$enable_dependency_tracking" != xno; then
4136  AMDEP_TRUE=
4137  AMDEP_FALSE='#'
4138else
4139  AMDEP_TRUE='#'
4140  AMDEP_FALSE=
4141fi
4142
4143
4144ac_ext=c
4145ac_cpp='$CPP $CPPFLAGS'
4146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149if test -n "$ac_tool_prefix"; then
4150  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4151set dummy ${ac_tool_prefix}gcc; ac_word=$2
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153$as_echo_n "checking for $ac_word... " >&6; }
4154if ${ac_cv_prog_CC+:} false; then :
4155  $as_echo_n "(cached) " >&6
4156else
4157  if test -n "$CC"; then
4158  ac_cv_prog_CC="$CC" # Let the user override the test.
4159else
4160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161for as_dir in $PATH
4162do
4163  IFS=$as_save_IFS
4164  test -z "$as_dir" && as_dir=.
4165    for ac_exec_ext in '' $ac_executable_extensions; do
4166  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169    break 2
4170  fi
4171done
4172  done
4173IFS=$as_save_IFS
4174
4175fi
4176fi
4177CC=$ac_cv_prog_CC
4178if test -n "$CC"; then
4179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4180$as_echo "$CC" >&6; }
4181else
4182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183$as_echo "no" >&6; }
4184fi
4185
4186
4187fi
4188if test -z "$ac_cv_prog_CC"; then
4189  ac_ct_CC=$CC
4190  # Extract the first word of "gcc", so it can be a program name with args.
4191set dummy gcc; ac_word=$2
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193$as_echo_n "checking for $ac_word... " >&6; }
4194if ${ac_cv_prog_ac_ct_CC+:} false; then :
4195  $as_echo_n "(cached) " >&6
4196else
4197  if test -n "$ac_ct_CC"; then
4198  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4199else
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203  IFS=$as_save_IFS
4204  test -z "$as_dir" && as_dir=.
4205    for ac_exec_ext in '' $ac_executable_extensions; do
4206  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207    ac_cv_prog_ac_ct_CC="gcc"
4208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4209    break 2
4210  fi
4211done
4212  done
4213IFS=$as_save_IFS
4214
4215fi
4216fi
4217ac_ct_CC=$ac_cv_prog_ac_ct_CC
4218if test -n "$ac_ct_CC"; then
4219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4220$as_echo "$ac_ct_CC" >&6; }
4221else
4222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223$as_echo "no" >&6; }
4224fi
4225
4226  if test "x$ac_ct_CC" = x; then
4227    CC=""
4228  else
4229    case $cross_compiling:$ac_tool_warned in
4230yes:)
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4233ac_tool_warned=yes ;;
4234esac
4235    CC=$ac_ct_CC
4236  fi
4237else
4238  CC="$ac_cv_prog_CC"
4239fi
4240
4241if test -z "$CC"; then
4242          if test -n "$ac_tool_prefix"; then
4243    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4244set dummy ${ac_tool_prefix}cc; ac_word=$2
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246$as_echo_n "checking for $ac_word... " >&6; }
4247if ${ac_cv_prog_CC+:} false; then :
4248  $as_echo_n "(cached) " >&6
4249else
4250  if test -n "$CC"; then
4251  ac_cv_prog_CC="$CC" # Let the user override the test.
4252else
4253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254for as_dir in $PATH
4255do
4256  IFS=$as_save_IFS
4257  test -z "$as_dir" && as_dir=.
4258    for ac_exec_ext in '' $ac_executable_extensions; do
4259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260    ac_cv_prog_CC="${ac_tool_prefix}cc"
4261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262    break 2
4263  fi
4264done
4265  done
4266IFS=$as_save_IFS
4267
4268fi
4269fi
4270CC=$ac_cv_prog_CC
4271if test -n "$CC"; then
4272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4273$as_echo "$CC" >&6; }
4274else
4275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276$as_echo "no" >&6; }
4277fi
4278
4279
4280  fi
4281fi
4282if test -z "$CC"; then
4283  # Extract the first word of "cc", so it can be a program name with args.
4284set dummy cc; ac_word=$2
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286$as_echo_n "checking for $ac_word... " >&6; }
4287if ${ac_cv_prog_CC+:} false; then :
4288  $as_echo_n "(cached) " >&6
4289else
4290  if test -n "$CC"; then
4291  ac_cv_prog_CC="$CC" # Let the user override the test.
4292else
4293  ac_prog_rejected=no
4294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295for as_dir in $PATH
4296do
4297  IFS=$as_save_IFS
4298  test -z "$as_dir" && as_dir=.
4299    for ac_exec_ext in '' $ac_executable_extensions; do
4300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4302       ac_prog_rejected=yes
4303       continue
4304     fi
4305    ac_cv_prog_CC="cc"
4306    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307    break 2
4308  fi
4309done
4310  done
4311IFS=$as_save_IFS
4312
4313if test $ac_prog_rejected = yes; then
4314  # We found a bogon in the path, so make sure we never use it.
4315  set dummy $ac_cv_prog_CC
4316  shift
4317  if test $# != 0; then
4318    # We chose a different compiler from the bogus one.
4319    # However, it has the same basename, so the bogon will be chosen
4320    # first if we set CC to just the basename; use the full file name.
4321    shift
4322    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4323  fi
4324fi
4325fi
4326fi
4327CC=$ac_cv_prog_CC
4328if test -n "$CC"; then
4329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4330$as_echo "$CC" >&6; }
4331else
4332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333$as_echo "no" >&6; }
4334fi
4335
4336
4337fi
4338if test -z "$CC"; then
4339  if test -n "$ac_tool_prefix"; then
4340  for ac_prog in cl.exe
4341  do
4342    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4343set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4345$as_echo_n "checking for $ac_word... " >&6; }
4346if ${ac_cv_prog_CC+:} false; then :
4347  $as_echo_n "(cached) " >&6
4348else
4349  if test -n "$CC"; then
4350  ac_cv_prog_CC="$CC" # Let the user override the test.
4351else
4352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355  IFS=$as_save_IFS
4356  test -z "$as_dir" && as_dir=.
4357    for ac_exec_ext in '' $ac_executable_extensions; do
4358  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361    break 2
4362  fi
4363done
4364  done
4365IFS=$as_save_IFS
4366
4367fi
4368fi
4369CC=$ac_cv_prog_CC
4370if test -n "$CC"; then
4371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4372$as_echo "$CC" >&6; }
4373else
4374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375$as_echo "no" >&6; }
4376fi
4377
4378
4379    test -n "$CC" && break
4380  done
4381fi
4382if test -z "$CC"; then
4383  ac_ct_CC=$CC
4384  for ac_prog in cl.exe
4385do
4386  # Extract the first word of "$ac_prog", so it can be a program name with args.
4387set dummy $ac_prog; ac_word=$2
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389$as_echo_n "checking for $ac_word... " >&6; }
4390if ${ac_cv_prog_ac_ct_CC+:} false; then :
4391  $as_echo_n "(cached) " >&6
4392else
4393  if test -n "$ac_ct_CC"; then
4394  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4395else
4396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH
4398do
4399  IFS=$as_save_IFS
4400  test -z "$as_dir" && as_dir=.
4401    for ac_exec_ext in '' $ac_executable_extensions; do
4402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403    ac_cv_prog_ac_ct_CC="$ac_prog"
4404    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405    break 2
4406  fi
4407done
4408  done
4409IFS=$as_save_IFS
4410
4411fi
4412fi
4413ac_ct_CC=$ac_cv_prog_ac_ct_CC
4414if test -n "$ac_ct_CC"; then
4415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4416$as_echo "$ac_ct_CC" >&6; }
4417else
4418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419$as_echo "no" >&6; }
4420fi
4421
4422
4423  test -n "$ac_ct_CC" && break
4424done
4425
4426  if test "x$ac_ct_CC" = x; then
4427    CC=""
4428  else
4429    case $cross_compiling:$ac_tool_warned in
4430yes:)
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4432$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4433ac_tool_warned=yes ;;
4434esac
4435    CC=$ac_ct_CC
4436  fi
4437fi
4438
4439fi
4440
4441
4442test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444as_fn_error $? "no acceptable C compiler found in \$PATH
4445See \`config.log' for more details" "$LINENO" 5; }
4446
4447# Provide some information about the compiler.
4448$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4449set X $ac_compile
4450ac_compiler=$2
4451for ac_option in --version -v -V -qversion; do
4452  { { ac_try="$ac_compiler $ac_option >&5"
4453case "(($ac_try" in
4454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455  *) ac_try_echo=$ac_try;;
4456esac
4457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458$as_echo "$ac_try_echo"; } >&5
4459  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4460  ac_status=$?
4461  if test -s conftest.err; then
4462    sed '10a\
4463... rest of stderr output deleted ...
4464         10q' conftest.err >conftest.er1
4465    cat conftest.er1 >&5
4466  fi
4467  rm -f conftest.er1 conftest.err
4468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4469  test $ac_status = 0; }
4470done
4471
4472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473/* end confdefs.h.  */
4474
4475int
4476main ()
4477{
4478
4479  ;
4480  return 0;
4481}
4482_ACEOF
4483ac_clean_files_save=$ac_clean_files
4484ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4485# Try to create an executable without -o first, disregard a.out.
4486# It will help us diagnose broken compilers, and finding out an intuition
4487# of exeext.
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4489$as_echo_n "checking whether the C compiler works... " >&6; }
4490ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4491
4492# The possible output files:
4493ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4494
4495ac_rmfiles=
4496for ac_file in $ac_files
4497do
4498  case $ac_file in
4499    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4500    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4501  esac
4502done
4503rm -f $ac_rmfiles
4504
4505if { { ac_try="$ac_link_default"
4506case "(($ac_try" in
4507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508  *) ac_try_echo=$ac_try;;
4509esac
4510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511$as_echo "$ac_try_echo"; } >&5
4512  (eval "$ac_link_default") 2>&5
4513  ac_status=$?
4514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515  test $ac_status = 0; }; then :
4516  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4517# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4518# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4519# so that the user can short-circuit this test for compilers unknown to
4520# Autoconf.
4521for ac_file in $ac_files ''
4522do
4523  test -f "$ac_file" || continue
4524  case $ac_file in
4525    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4526	;;
4527    [ab].out )
4528	# We found the default executable, but exeext='' is most
4529	# certainly right.
4530	break;;
4531    *.* )
4532	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4533	then :; else
4534	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4535	fi
4536	# We set ac_cv_exeext here because the later test for it is not
4537	# safe: cross compilers may not add the suffix if given an `-o'
4538	# argument, so we may need to know it at that point already.
4539	# Even if this section looks crufty: it has the advantage of
4540	# actually working.
4541	break;;
4542    * )
4543	break;;
4544  esac
4545done
4546test "$ac_cv_exeext" = no && ac_cv_exeext=
4547
4548else
4549  ac_file=''
4550fi
4551if test -z "$ac_file"; then :
4552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553$as_echo "no" >&6; }
4554$as_echo "$as_me: failed program was:" >&5
4555sed 's/^/| /' conftest.$ac_ext >&5
4556
4557{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4559as_fn_error 77 "C compiler cannot create executables
4560See \`config.log' for more details" "$LINENO" 5; }
4561else
4562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4563$as_echo "yes" >&6; }
4564fi
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4566$as_echo_n "checking for C compiler default output file name... " >&6; }
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4568$as_echo "$ac_file" >&6; }
4569ac_exeext=$ac_cv_exeext
4570
4571rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4572ac_clean_files=$ac_clean_files_save
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4574$as_echo_n "checking for suffix of executables... " >&6; }
4575if { { ac_try="$ac_link"
4576case "(($ac_try" in
4577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578  *) ac_try_echo=$ac_try;;
4579esac
4580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581$as_echo "$ac_try_echo"; } >&5
4582  (eval "$ac_link") 2>&5
4583  ac_status=$?
4584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585  test $ac_status = 0; }; then :
4586  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4587# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4588# work properly (i.e., refer to `conftest.exe'), while it won't with
4589# `rm'.
4590for ac_file in conftest.exe conftest conftest.*; do
4591  test -f "$ac_file" || continue
4592  case $ac_file in
4593    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4594    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4595	  break;;
4596    * ) break;;
4597  esac
4598done
4599else
4600  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4602as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4603See \`config.log' for more details" "$LINENO" 5; }
4604fi
4605rm -f conftest conftest$ac_cv_exeext
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4607$as_echo "$ac_cv_exeext" >&6; }
4608
4609rm -f conftest.$ac_ext
4610EXEEXT=$ac_cv_exeext
4611ac_exeext=$EXEEXT
4612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613/* end confdefs.h.  */
4614#include <stdio.h>
4615int
4616main ()
4617{
4618FILE *f = fopen ("conftest.out", "w");
4619 return ferror (f) || fclose (f) != 0;
4620
4621  ;
4622  return 0;
4623}
4624_ACEOF
4625ac_clean_files="$ac_clean_files conftest.out"
4626# Check that the compiler produces executables we can run.  If not, either
4627# the compiler is broken, or we cross compile.
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4629$as_echo_n "checking whether we are cross compiling... " >&6; }
4630if test "$cross_compiling" != yes; then
4631  { { ac_try="$ac_link"
4632case "(($ac_try" in
4633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634  *) ac_try_echo=$ac_try;;
4635esac
4636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4637$as_echo "$ac_try_echo"; } >&5
4638  (eval "$ac_link") 2>&5
4639  ac_status=$?
4640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4641  test $ac_status = 0; }
4642  if { ac_try='./conftest$ac_cv_exeext'
4643  { { case "(($ac_try" in
4644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645  *) ac_try_echo=$ac_try;;
4646esac
4647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4648$as_echo "$ac_try_echo"; } >&5
4649  (eval "$ac_try") 2>&5
4650  ac_status=$?
4651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4652  test $ac_status = 0; }; }; then
4653    cross_compiling=no
4654  else
4655    if test "$cross_compiling" = maybe; then
4656	cross_compiling=yes
4657    else
4658	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4660as_fn_error $? "cannot run C compiled programs.
4661If you meant to cross compile, use \`--host'.
4662See \`config.log' for more details" "$LINENO" 5; }
4663    fi
4664  fi
4665fi
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4667$as_echo "$cross_compiling" >&6; }
4668
4669rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4670ac_clean_files=$ac_clean_files_save
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4672$as_echo_n "checking for suffix of object files... " >&6; }
4673if ${ac_cv_objext+:} false; then :
4674  $as_echo_n "(cached) " >&6
4675else
4676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677/* end confdefs.h.  */
4678
4679int
4680main ()
4681{
4682
4683  ;
4684  return 0;
4685}
4686_ACEOF
4687rm -f conftest.o conftest.obj
4688if { { ac_try="$ac_compile"
4689case "(($ac_try" in
4690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691  *) ac_try_echo=$ac_try;;
4692esac
4693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4694$as_echo "$ac_try_echo"; } >&5
4695  (eval "$ac_compile") 2>&5
4696  ac_status=$?
4697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4698  test $ac_status = 0; }; then :
4699  for ac_file in conftest.o conftest.obj conftest.*; do
4700  test -f "$ac_file" || continue;
4701  case $ac_file in
4702    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4703    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4704       break;;
4705  esac
4706done
4707else
4708  $as_echo "$as_me: failed program was:" >&5
4709sed 's/^/| /' conftest.$ac_ext >&5
4710
4711{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4713as_fn_error $? "cannot compute suffix of object files: cannot compile
4714See \`config.log' for more details" "$LINENO" 5; }
4715fi
4716rm -f conftest.$ac_cv_objext conftest.$ac_ext
4717fi
4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4719$as_echo "$ac_cv_objext" >&6; }
4720OBJEXT=$ac_cv_objext
4721ac_objext=$OBJEXT
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4723$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4724if ${ac_cv_c_compiler_gnu+:} false; then :
4725  $as_echo_n "(cached) " >&6
4726else
4727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728/* end confdefs.h.  */
4729
4730int
4731main ()
4732{
4733#ifndef __GNUC__
4734       choke me
4735#endif
4736
4737  ;
4738  return 0;
4739}
4740_ACEOF
4741if ac_fn_c_try_compile "$LINENO"; then :
4742  ac_compiler_gnu=yes
4743else
4744  ac_compiler_gnu=no
4745fi
4746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747ac_cv_c_compiler_gnu=$ac_compiler_gnu
4748
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4751$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4752if test $ac_compiler_gnu = yes; then
4753  GCC=yes
4754else
4755  GCC=
4756fi
4757ac_test_CFLAGS=${CFLAGS+set}
4758ac_save_CFLAGS=$CFLAGS
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4760$as_echo_n "checking whether $CC accepts -g... " >&6; }
4761if ${ac_cv_prog_cc_g+:} false; then :
4762  $as_echo_n "(cached) " >&6
4763else
4764  ac_save_c_werror_flag=$ac_c_werror_flag
4765   ac_c_werror_flag=yes
4766   ac_cv_prog_cc_g=no
4767   CFLAGS="-g"
4768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769/* end confdefs.h.  */
4770
4771int
4772main ()
4773{
4774
4775  ;
4776  return 0;
4777}
4778_ACEOF
4779if ac_fn_c_try_compile "$LINENO"; then :
4780  ac_cv_prog_cc_g=yes
4781else
4782  CFLAGS=""
4783      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784/* end confdefs.h.  */
4785
4786int
4787main ()
4788{
4789
4790  ;
4791  return 0;
4792}
4793_ACEOF
4794if ac_fn_c_try_compile "$LINENO"; then :
4795
4796else
4797  ac_c_werror_flag=$ac_save_c_werror_flag
4798	 CFLAGS="-g"
4799	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800/* end confdefs.h.  */
4801
4802int
4803main ()
4804{
4805
4806  ;
4807  return 0;
4808}
4809_ACEOF
4810if ac_fn_c_try_compile "$LINENO"; then :
4811  ac_cv_prog_cc_g=yes
4812fi
4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814fi
4815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816fi
4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818   ac_c_werror_flag=$ac_save_c_werror_flag
4819fi
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4821$as_echo "$ac_cv_prog_cc_g" >&6; }
4822if test "$ac_test_CFLAGS" = set; then
4823  CFLAGS=$ac_save_CFLAGS
4824elif test $ac_cv_prog_cc_g = yes; then
4825  if test "$GCC" = yes; then
4826    CFLAGS="-g -O2"
4827  else
4828    CFLAGS="-g"
4829  fi
4830else
4831  if test "$GCC" = yes; then
4832    CFLAGS="-O2"
4833  else
4834    CFLAGS=
4835  fi
4836fi
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4838$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4839if ${ac_cv_prog_cc_c89+:} false; then :
4840  $as_echo_n "(cached) " >&6
4841else
4842  ac_cv_prog_cc_c89=no
4843ac_save_CC=$CC
4844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845/* end confdefs.h.  */
4846#include <stdarg.h>
4847#include <stdio.h>
4848struct stat;
4849/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4850struct buf { int x; };
4851FILE * (*rcsopen) (struct buf *, struct stat *, int);
4852static char *e (p, i)
4853     char **p;
4854     int i;
4855{
4856  return p[i];
4857}
4858static char *f (char * (*g) (char **, int), char **p, ...)
4859{
4860  char *s;
4861  va_list v;
4862  va_start (v,p);
4863  s = g (p, va_arg (v,int));
4864  va_end (v);
4865  return s;
4866}
4867
4868/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4869   function prototypes and stuff, but not '\xHH' hex character constants.
4870   These don't provoke an error unfortunately, instead are silently treated
4871   as 'x'.  The following induces an error, until -std is added to get
4872   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4873   array size at least.  It's necessary to write '\x00'==0 to get something
4874   that's true only with -std.  */
4875int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4876
4877/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4878   inside strings and character constants.  */
4879#define FOO(x) 'x'
4880int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4881
4882int test (int i, double x);
4883struct s1 {int (*f) (int a);};
4884struct s2 {int (*f) (double a);};
4885int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4886int argc;
4887char **argv;
4888int
4889main ()
4890{
4891return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4892  ;
4893  return 0;
4894}
4895_ACEOF
4896for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4897	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4898do
4899  CC="$ac_save_CC $ac_arg"
4900  if ac_fn_c_try_compile "$LINENO"; then :
4901  ac_cv_prog_cc_c89=$ac_arg
4902fi
4903rm -f core conftest.err conftest.$ac_objext
4904  test "x$ac_cv_prog_cc_c89" != "xno" && break
4905done
4906rm -f conftest.$ac_ext
4907CC=$ac_save_CC
4908
4909fi
4910# AC_CACHE_VAL
4911case "x$ac_cv_prog_cc_c89" in
4912  x)
4913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4914$as_echo "none needed" >&6; } ;;
4915  xno)
4916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4917$as_echo "unsupported" >&6; } ;;
4918  *)
4919    CC="$CC $ac_cv_prog_cc_c89"
4920    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4921$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4922esac
4923if test "x$ac_cv_prog_cc_c89" != xno; then :
4924
4925fi
4926
4927ac_ext=c
4928ac_cpp='$CPP $CPPFLAGS'
4929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4931ac_compiler_gnu=$ac_cv_c_compiler_gnu
4932
4933ac_ext=c
4934ac_cpp='$CPP $CPPFLAGS'
4935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937ac_compiler_gnu=$ac_cv_c_compiler_gnu
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4939$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4940if ${am_cv_prog_cc_c_o+:} false; then :
4941  $as_echo_n "(cached) " >&6
4942else
4943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944/* end confdefs.h.  */
4945
4946int
4947main ()
4948{
4949
4950  ;
4951  return 0;
4952}
4953_ACEOF
4954  # Make sure it works both with $CC and with simple cc.
4955  # Following AC_PROG_CC_C_O, we do the test twice because some
4956  # compilers refuse to overwrite an existing .o file with -o,
4957  # though they will create one.
4958  am_cv_prog_cc_c_o=yes
4959  for am_i in 1 2; do
4960    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4961   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4962   ac_status=$?
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } \
4965         && test -f conftest2.$ac_objext; then
4966      : OK
4967    else
4968      am_cv_prog_cc_c_o=no
4969      break
4970    fi
4971  done
4972  rm -f core conftest*
4973  unset am_i
4974fi
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4976$as_echo "$am_cv_prog_cc_c_o" >&6; }
4977if test "$am_cv_prog_cc_c_o" != yes; then
4978   # Losing compiler, so override with the script.
4979   # FIXME: It is wrong to rewrite CC.
4980   # But if we don't then we get into trouble of one sort or another.
4981   # A longer-term fix would be to have automake use am__CC in this case,
4982   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4983   CC="$am_aux_dir/compile $CC"
4984fi
4985ac_ext=c
4986ac_cpp='$CPP $CPPFLAGS'
4987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4989ac_compiler_gnu=$ac_cv_c_compiler_gnu
4990
4991
4992depcc="$CC"   am_compiler_list=
4993
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4995$as_echo_n "checking dependency style of $depcc... " >&6; }
4996if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5000  # We make a subdir and do the tests there.  Otherwise we can end up
5001  # making bogus files that we don't know about and never remove.  For
5002  # instance it was reported that on HP-UX the gcc test will end up
5003  # making a dummy file named 'D' -- because '-MD' means "put the output
5004  # in D".
5005  rm -rf conftest.dir
5006  mkdir conftest.dir
5007  # Copy depcomp to subdir because otherwise we won't find it if we're
5008  # using a relative directory.
5009  cp "$am_depcomp" conftest.dir
5010  cd conftest.dir
5011  # We will build objects and dependencies in a subdirectory because
5012  # it helps to detect inapplicable dependency modes.  For instance
5013  # both Tru64's cc and ICC support -MD to output dependencies as a
5014  # side effect of compilation, but ICC will put the dependencies in
5015  # the current directory while Tru64 will put them in the object
5016  # directory.
5017  mkdir sub
5018
5019  am_cv_CC_dependencies_compiler_type=none
5020  if test "$am_compiler_list" = ""; then
5021     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5022  fi
5023  am__universal=false
5024  case " $depcc " in #(
5025     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5026     esac
5027
5028  for depmode in $am_compiler_list; do
5029    # Setup a source with many dependencies, because some compilers
5030    # like to wrap large dependency lists on column 80 (with \), and
5031    # we should not choose a depcomp mode which is confused by this.
5032    #
5033    # We need to recreate these files for each test, as the compiler may
5034    # overwrite some of them when testing with obscure command lines.
5035    # This happens at least with the AIX C compiler.
5036    : > sub/conftest.c
5037    for i in 1 2 3 4 5 6; do
5038      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5039      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5040      # Solaris 10 /bin/sh.
5041      echo '/* dummy */' > sub/conftst$i.h
5042    done
5043    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5044
5045    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5046    # mode.  It turns out that the SunPro C++ compiler does not properly
5047    # handle '-M -o', and we need to detect this.  Also, some Intel
5048    # versions had trouble with output in subdirs.
5049    am__obj=sub/conftest.${OBJEXT-o}
5050    am__minus_obj="-o $am__obj"
5051    case $depmode in
5052    gcc)
5053      # This depmode causes a compiler race in universal mode.
5054      test "$am__universal" = false || continue
5055      ;;
5056    nosideeffect)
5057      # After this tag, mechanisms are not by side-effect, so they'll
5058      # only be used when explicitly requested.
5059      if test "x$enable_dependency_tracking" = xyes; then
5060	continue
5061      else
5062	break
5063      fi
5064      ;;
5065    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5066      # This compiler won't grok '-c -o', but also, the minuso test has
5067      # not run yet.  These depmodes are late enough in the game, and
5068      # so weak that their functioning should not be impacted.
5069      am__obj=conftest.${OBJEXT-o}
5070      am__minus_obj=
5071      ;;
5072    none) break ;;
5073    esac
5074    if depmode=$depmode \
5075       source=sub/conftest.c object=$am__obj \
5076       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5077       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5078         >/dev/null 2>conftest.err &&
5079       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5080       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5081       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5082       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5083      # icc doesn't choke on unknown options, it will just issue warnings
5084      # or remarks (even with -Werror).  So we grep stderr for any message
5085      # that says an option was ignored or not supported.
5086      # When given -MP, icc 7.0 and 7.1 complain thusly:
5087      #   icc: Command line warning: ignoring option '-M'; no argument required
5088      # The diagnosis changed in icc 8.0:
5089      #   icc: Command line remark: option '-MP' not supported
5090      if (grep 'ignoring option' conftest.err ||
5091          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5092        am_cv_CC_dependencies_compiler_type=$depmode
5093        break
5094      fi
5095    fi
5096  done
5097
5098  cd ..
5099  rm -rf conftest.dir
5100else
5101  am_cv_CC_dependencies_compiler_type=none
5102fi
5103
5104fi
5105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5106$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5107CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5108
5109 if
5110  test "x$enable_dependency_tracking" != xno \
5111  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5112  am__fastdepCC_TRUE=
5113  am__fastdepCC_FALSE='#'
5114else
5115  am__fastdepCC_TRUE='#'
5116  am__fastdepCC_FALSE=
5117fi
5118
5119
5120
5121ac_ext=c
5122ac_cpp='$CPP $CPPFLAGS'
5123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5125ac_compiler_gnu=$ac_cv_c_compiler_gnu
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5127$as_echo_n "checking how to run the C preprocessor... " >&6; }
5128# On Suns, sometimes $CPP names a directory.
5129if test -n "$CPP" && test -d "$CPP"; then
5130  CPP=
5131fi
5132if test -z "$CPP"; then
5133  if ${ac_cv_prog_CPP+:} false; then :
5134  $as_echo_n "(cached) " >&6
5135else
5136      # Double quotes because CPP needs to be expanded
5137    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5138    do
5139      ac_preproc_ok=false
5140for ac_c_preproc_warn_flag in '' yes
5141do
5142  # Use a header file that comes with gcc, so configuring glibc
5143  # with a fresh cross-compiler works.
5144  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5145  # <limits.h> exists even on freestanding compilers.
5146  # On the NeXT, cc -E runs the code through the compiler's parser,
5147  # not just through cpp. "Syntax error" is here to catch this case.
5148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149/* end confdefs.h.  */
5150#ifdef __STDC__
5151# include <limits.h>
5152#else
5153# include <assert.h>
5154#endif
5155		     Syntax error
5156_ACEOF
5157if ac_fn_c_try_cpp "$LINENO"; then :
5158
5159else
5160  # Broken: fails on valid input.
5161continue
5162fi
5163rm -f conftest.err conftest.i conftest.$ac_ext
5164
5165  # OK, works on sane cases.  Now check whether nonexistent headers
5166  # can be detected and how.
5167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168/* end confdefs.h.  */
5169#include <ac_nonexistent.h>
5170_ACEOF
5171if ac_fn_c_try_cpp "$LINENO"; then :
5172  # Broken: success on invalid input.
5173continue
5174else
5175  # Passes both tests.
5176ac_preproc_ok=:
5177break
5178fi
5179rm -f conftest.err conftest.i conftest.$ac_ext
5180
5181done
5182# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5183rm -f conftest.i conftest.err conftest.$ac_ext
5184if $ac_preproc_ok; then :
5185  break
5186fi
5187
5188    done
5189    ac_cv_prog_CPP=$CPP
5190
5191fi
5192  CPP=$ac_cv_prog_CPP
5193else
5194  ac_cv_prog_CPP=$CPP
5195fi
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5197$as_echo "$CPP" >&6; }
5198ac_preproc_ok=false
5199for ac_c_preproc_warn_flag in '' yes
5200do
5201  # Use a header file that comes with gcc, so configuring glibc
5202  # with a fresh cross-compiler works.
5203  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5204  # <limits.h> exists even on freestanding compilers.
5205  # On the NeXT, cc -E runs the code through the compiler's parser,
5206  # not just through cpp. "Syntax error" is here to catch this case.
5207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208/* end confdefs.h.  */
5209#ifdef __STDC__
5210# include <limits.h>
5211#else
5212# include <assert.h>
5213#endif
5214		     Syntax error
5215_ACEOF
5216if ac_fn_c_try_cpp "$LINENO"; then :
5217
5218else
5219  # Broken: fails on valid input.
5220continue
5221fi
5222rm -f conftest.err conftest.i conftest.$ac_ext
5223
5224  # OK, works on sane cases.  Now check whether nonexistent headers
5225  # can be detected and how.
5226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227/* end confdefs.h.  */
5228#include <ac_nonexistent.h>
5229_ACEOF
5230if ac_fn_c_try_cpp "$LINENO"; then :
5231  # Broken: success on invalid input.
5232continue
5233else
5234  # Passes both tests.
5235ac_preproc_ok=:
5236break
5237fi
5238rm -f conftest.err conftest.i conftest.$ac_ext
5239
5240done
5241# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5242rm -f conftest.i conftest.err conftest.$ac_ext
5243if $ac_preproc_ok; then :
5244
5245else
5246  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5248as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5249See \`config.log' for more details" "$LINENO" 5; }
5250fi
5251
5252ac_ext=c
5253ac_cpp='$CPP $CPPFLAGS'
5254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257
5258
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5260$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5261if ${ac_cv_path_GREP+:} false; then :
5262  $as_echo_n "(cached) " >&6
5263else
5264  if test -z "$GREP"; then
5265  ac_path_GREP_found=false
5266  # Loop through the user's path and test for each of PROGNAME-LIST
5267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5269do
5270  IFS=$as_save_IFS
5271  test -z "$as_dir" && as_dir=.
5272    for ac_prog in grep ggrep; do
5273    for ac_exec_ext in '' $ac_executable_extensions; do
5274      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5275      as_fn_executable_p "$ac_path_GREP" || continue
5276# Check for GNU ac_path_GREP and select it if it is found.
5277  # Check for GNU $ac_path_GREP
5278case `"$ac_path_GREP" --version 2>&1` in
5279*GNU*)
5280  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5281*)
5282  ac_count=0
5283  $as_echo_n 0123456789 >"conftest.in"
5284  while :
5285  do
5286    cat "conftest.in" "conftest.in" >"conftest.tmp"
5287    mv "conftest.tmp" "conftest.in"
5288    cp "conftest.in" "conftest.nl"
5289    $as_echo 'GREP' >> "conftest.nl"
5290    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5291    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5292    as_fn_arith $ac_count + 1 && ac_count=$as_val
5293    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5294      # Best one so far, save it but keep looking for a better one
5295      ac_cv_path_GREP="$ac_path_GREP"
5296      ac_path_GREP_max=$ac_count
5297    fi
5298    # 10*(2^10) chars as input seems more than enough
5299    test $ac_count -gt 10 && break
5300  done
5301  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5302esac
5303
5304      $ac_path_GREP_found && break 3
5305    done
5306  done
5307  done
5308IFS=$as_save_IFS
5309  if test -z "$ac_cv_path_GREP"; then
5310    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5311  fi
5312else
5313  ac_cv_path_GREP=$GREP
5314fi
5315
5316fi
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5318$as_echo "$ac_cv_path_GREP" >&6; }
5319 GREP="$ac_cv_path_GREP"
5320
5321
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5323$as_echo_n "checking for egrep... " >&6; }
5324if ${ac_cv_path_EGREP+:} false; then :
5325  $as_echo_n "(cached) " >&6
5326else
5327  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5328   then ac_cv_path_EGREP="$GREP -E"
5329   else
5330     if test -z "$EGREP"; then
5331  ac_path_EGREP_found=false
5332  # Loop through the user's path and test for each of PROGNAME-LIST
5333  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5335do
5336  IFS=$as_save_IFS
5337  test -z "$as_dir" && as_dir=.
5338    for ac_prog in egrep; do
5339    for ac_exec_ext in '' $ac_executable_extensions; do
5340      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5341      as_fn_executable_p "$ac_path_EGREP" || continue
5342# Check for GNU ac_path_EGREP and select it if it is found.
5343  # Check for GNU $ac_path_EGREP
5344case `"$ac_path_EGREP" --version 2>&1` in
5345*GNU*)
5346  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5347*)
5348  ac_count=0
5349  $as_echo_n 0123456789 >"conftest.in"
5350  while :
5351  do
5352    cat "conftest.in" "conftest.in" >"conftest.tmp"
5353    mv "conftest.tmp" "conftest.in"
5354    cp "conftest.in" "conftest.nl"
5355    $as_echo 'EGREP' >> "conftest.nl"
5356    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5357    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5358    as_fn_arith $ac_count + 1 && ac_count=$as_val
5359    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5360      # Best one so far, save it but keep looking for a better one
5361      ac_cv_path_EGREP="$ac_path_EGREP"
5362      ac_path_EGREP_max=$ac_count
5363    fi
5364    # 10*(2^10) chars as input seems more than enough
5365    test $ac_count -gt 10 && break
5366  done
5367  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5368esac
5369
5370      $ac_path_EGREP_found && break 3
5371    done
5372  done
5373  done
5374IFS=$as_save_IFS
5375  if test -z "$ac_cv_path_EGREP"; then
5376    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5377  fi
5378else
5379  ac_cv_path_EGREP=$EGREP
5380fi
5381
5382   fi
5383fi
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5385$as_echo "$ac_cv_path_EGREP" >&6; }
5386 EGREP="$ac_cv_path_EGREP"
5387
5388
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5390$as_echo_n "checking for ANSI C header files... " >&6; }
5391if ${ac_cv_header_stdc+:} false; then :
5392  $as_echo_n "(cached) " >&6
5393else
5394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396#include <stdlib.h>
5397#include <stdarg.h>
5398#include <string.h>
5399#include <float.h>
5400
5401int
5402main ()
5403{
5404
5405  ;
5406  return 0;
5407}
5408_ACEOF
5409if ac_fn_c_try_compile "$LINENO"; then :
5410  ac_cv_header_stdc=yes
5411else
5412  ac_cv_header_stdc=no
5413fi
5414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415
5416if test $ac_cv_header_stdc = yes; then
5417  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419/* end confdefs.h.  */
5420#include <string.h>
5421
5422_ACEOF
5423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5424  $EGREP "memchr" >/dev/null 2>&1; then :
5425
5426else
5427  ac_cv_header_stdc=no
5428fi
5429rm -f conftest*
5430
5431fi
5432
5433if test $ac_cv_header_stdc = yes; then
5434  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h.  */
5437#include <stdlib.h>
5438
5439_ACEOF
5440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5441  $EGREP "free" >/dev/null 2>&1; then :
5442
5443else
5444  ac_cv_header_stdc=no
5445fi
5446rm -f conftest*
5447
5448fi
5449
5450if test $ac_cv_header_stdc = yes; then
5451  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5452  if test "$cross_compiling" = yes; then :
5453  :
5454else
5455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456/* end confdefs.h.  */
5457#include <ctype.h>
5458#include <stdlib.h>
5459#if ((' ' & 0x0FF) == 0x020)
5460# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5461# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5462#else
5463# define ISLOWER(c) \
5464		   (('a' <= (c) && (c) <= 'i') \
5465		     || ('j' <= (c) && (c) <= 'r') \
5466		     || ('s' <= (c) && (c) <= 'z'))
5467# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5468#endif
5469
5470#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5471int
5472main ()
5473{
5474  int i;
5475  for (i = 0; i < 256; i++)
5476    if (XOR (islower (i), ISLOWER (i))
5477	|| toupper (i) != TOUPPER (i))
5478      return 2;
5479  return 0;
5480}
5481_ACEOF
5482if ac_fn_c_try_run "$LINENO"; then :
5483
5484else
5485  ac_cv_header_stdc=no
5486fi
5487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5488  conftest.$ac_objext conftest.beam conftest.$ac_ext
5489fi
5490
5491fi
5492fi
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5494$as_echo "$ac_cv_header_stdc" >&6; }
5495if test $ac_cv_header_stdc = yes; then
5496
5497$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5498
5499fi
5500
5501# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5502for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5503		  inttypes.h stdint.h unistd.h
5504do :
5505  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5506ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5507"
5508if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5509  cat >>confdefs.h <<_ACEOF
5510#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5511_ACEOF
5512
5513fi
5514
5515done
5516
5517
5518
5519  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5520if test "x$ac_cv_header_minix_config_h" = xyes; then :
5521  MINIX=yes
5522else
5523  MINIX=
5524fi
5525
5526
5527  if test "$MINIX" = yes; then
5528
5529$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5530
5531
5532$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5533
5534
5535$as_echo "#define _MINIX 1" >>confdefs.h
5536
5537  fi
5538
5539
5540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5541$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5542if ${ac_cv_safe_to_define___extensions__+:} false; then :
5543  $as_echo_n "(cached) " >&6
5544else
5545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546/* end confdefs.h.  */
5547
5548#         define __EXTENSIONS__ 1
5549          $ac_includes_default
5550int
5551main ()
5552{
5553
5554  ;
5555  return 0;
5556}
5557_ACEOF
5558if ac_fn_c_try_compile "$LINENO"; then :
5559  ac_cv_safe_to_define___extensions__=yes
5560else
5561  ac_cv_safe_to_define___extensions__=no
5562fi
5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564fi
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5566$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5567  test $ac_cv_safe_to_define___extensions__ = yes &&
5568    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5569
5570  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5571
5572  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5573
5574  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5575
5576  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5577
5578
5579if test -z "$CFLAGS_save"; then :
5580  CFLAGS=
5581fi
5582
5583    # Unwind the index
5584    pmix_scope_index=`expr $pmix_scope_index - 1`
5585    pmix_scope_test=`expr $pmix_scope_index \> 0`
5586    if test "$pmix_scope_test" = "0"; then
5587        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
5588$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
5589        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
5590$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
5591        as_fn_error $? "Cannot continue" "$LINENO" 5
5592    fi
5593
5594    # Get the variable names from that index
5595    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
5596    eval $pmix_str
5597
5598    # Iterate over all the variables and unset them all
5599    for pmix_var in $pmix_str; do
5600        unset $pmix_var
5601    done
5602
5603
5604####################################################################
5605# Setup the configure header files
5606####################################################################
5607
5608
5609
5610
5611############################################################################
5612# Setup Libtool
5613############################################################################
5614
5615# We want new Libtool.  None of that old stuff.  Pfft.
5616
5617
5618
5619#
5620# Enable static so that we have the --with tests done up here and can
5621# check for OS.  Save the values of $enable_static and $enable_shared
5622# before setting the defaults, because if the user specified
5623# --[en|dis]able-[static|shared] on the command line, they'll already
5624# be set.  In this way, we can tell if the user requested something or
5625# if the default was set here.
5626#
5627
5628pmix_enable_shared="$enable_shared"
5629pmix_enable_static="$enable_static"
5630if test ! -z "$enable_static" && test "$enable_static" = "yes"; then :
5631  CFLAGS="$CFLAGS -fPIC"
5632fi
5633
5634# Check whether --enable-shared was given.
5635if test "${enable_shared+set}" = set; then :
5636  enableval=$enable_shared; p=${PACKAGE-default}
5637    case $enableval in
5638    yes) enable_shared=yes ;;
5639    no) enable_shared=no ;;
5640    *)
5641      enable_shared=no
5642      # Look at the argument we got.  We use all the common list separators.
5643      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5644      for pkg in $enableval; do
5645	IFS=$lt_save_ifs
5646	if test "X$pkg" = "X$p"; then
5647	  enable_shared=yes
5648	fi
5649      done
5650      IFS=$lt_save_ifs
5651      ;;
5652    esac
5653else
5654  enable_shared=yes
5655fi
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665# Check whether --enable-static was given.
5666if test "${enable_static+set}" = set; then :
5667  enableval=$enable_static; p=${PACKAGE-default}
5668    case $enableval in
5669    yes) enable_static=yes ;;
5670    no) enable_static=no ;;
5671    *)
5672     enable_static=no
5673      # Look at the argument we got.  We use all the common list separators.
5674      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5675      for pkg in $enableval; do
5676	IFS=$lt_save_ifs
5677	if test "X$pkg" = "X$p"; then
5678	  enable_static=yes
5679	fi
5680      done
5681      IFS=$lt_save_ifs
5682      ;;
5683    esac
5684else
5685  enable_static=no
5686fi
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697# This did not exist pre AM 1.11.x (where x is somewhere >0 and <3),
5698# but it is necessary in AM 1.12.x.
5699if test -n "$ac_tool_prefix"; then
5700  for ac_prog in ar lib "link -lib"
5701  do
5702    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5703set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705$as_echo_n "checking for $ac_word... " >&6; }
5706if ${ac_cv_prog_AR+:} false; then :
5707  $as_echo_n "(cached) " >&6
5708else
5709  if test -n "$AR"; then
5710  ac_cv_prog_AR="$AR" # Let the user override the test.
5711else
5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713for as_dir in $PATH
5714do
5715  IFS=$as_save_IFS
5716  test -z "$as_dir" && as_dir=.
5717    for ac_exec_ext in '' $ac_executable_extensions; do
5718  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5720    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721    break 2
5722  fi
5723done
5724  done
5725IFS=$as_save_IFS
5726
5727fi
5728fi
5729AR=$ac_cv_prog_AR
5730if test -n "$AR"; then
5731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5732$as_echo "$AR" >&6; }
5733else
5734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735$as_echo "no" >&6; }
5736fi
5737
5738
5739    test -n "$AR" && break
5740  done
5741fi
5742if test -z "$AR"; then
5743  ac_ct_AR=$AR
5744  for ac_prog in ar lib "link -lib"
5745do
5746  # Extract the first word of "$ac_prog", so it can be a program name with args.
5747set dummy $ac_prog; ac_word=$2
5748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749$as_echo_n "checking for $ac_word... " >&6; }
5750if ${ac_cv_prog_ac_ct_AR+:} false; then :
5751  $as_echo_n "(cached) " >&6
5752else
5753  if test -n "$ac_ct_AR"; then
5754  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5755else
5756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757for as_dir in $PATH
5758do
5759  IFS=$as_save_IFS
5760  test -z "$as_dir" && as_dir=.
5761    for ac_exec_ext in '' $ac_executable_extensions; do
5762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763    ac_cv_prog_ac_ct_AR="$ac_prog"
5764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765    break 2
5766  fi
5767done
5768  done
5769IFS=$as_save_IFS
5770
5771fi
5772fi
5773ac_ct_AR=$ac_cv_prog_ac_ct_AR
5774if test -n "$ac_ct_AR"; then
5775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5776$as_echo "$ac_ct_AR" >&6; }
5777else
5778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779$as_echo "no" >&6; }
5780fi
5781
5782
5783  test -n "$ac_ct_AR" && break
5784done
5785
5786  if test "x$ac_ct_AR" = x; then
5787    AR="false"
5788  else
5789    case $cross_compiling:$ac_tool_warned in
5790yes:)
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5793ac_tool_warned=yes ;;
5794esac
5795    AR=$ac_ct_AR
5796  fi
5797fi
5798
5799: ${AR=ar}
5800
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5802$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5803if ${am_cv_ar_interface+:} false; then :
5804  $as_echo_n "(cached) " >&6
5805else
5806  ac_ext=c
5807ac_cpp='$CPP $CPPFLAGS'
5808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810ac_compiler_gnu=$ac_cv_c_compiler_gnu
5811
5812   am_cv_ar_interface=ar
5813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h.  */
5815int some_variable = 0;
5816_ACEOF
5817if ac_fn_c_try_compile "$LINENO"; then :
5818  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5819      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5820  (eval $am_ar_try) 2>&5
5821  ac_status=$?
5822  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5823  test $ac_status = 0; }
5824      if test "$ac_status" -eq 0; then
5825        am_cv_ar_interface=ar
5826      else
5827        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5828        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5829  (eval $am_ar_try) 2>&5
5830  ac_status=$?
5831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5832  test $ac_status = 0; }
5833        if test "$ac_status" -eq 0; then
5834          am_cv_ar_interface=lib
5835        else
5836          am_cv_ar_interface=unknown
5837        fi
5838      fi
5839      rm -f conftest.lib libconftest.a
5840
5841fi
5842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843   ac_ext=c
5844ac_cpp='$CPP $CPPFLAGS'
5845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5847ac_compiler_gnu=$ac_cv_c_compiler_gnu
5848
5849fi
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5851$as_echo "$am_cv_ar_interface" >&6; }
5852
5853case $am_cv_ar_interface in
5854ar)
5855  ;;
5856lib)
5857  # Microsoft lib, so override with the ar-lib wrapper script.
5858  # FIXME: It is wrong to rewrite AR.
5859  # But if we don't then we get into trouble of one sort or another.
5860  # A longer-term fix would be to have automake use am__AR in this case,
5861  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5862  # similar.
5863  AR="$am_aux_dir/ar-lib $AR"
5864  ;;
5865unknown)
5866  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5867  ;;
5868esac
5869
5870for ac_prog in flex lex
5871do
5872  # Extract the first word of "$ac_prog", so it can be a program name with args.
5873set dummy $ac_prog; ac_word=$2
5874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875$as_echo_n "checking for $ac_word... " >&6; }
5876if ${ac_cv_prog_LEX+:} false; then :
5877  $as_echo_n "(cached) " >&6
5878else
5879  if test -n "$LEX"; then
5880  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5881else
5882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883for as_dir in $PATH
5884do
5885  IFS=$as_save_IFS
5886  test -z "$as_dir" && as_dir=.
5887    for ac_exec_ext in '' $ac_executable_extensions; do
5888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889    ac_cv_prog_LEX="$ac_prog"
5890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891    break 2
5892  fi
5893done
5894  done
5895IFS=$as_save_IFS
5896
5897fi
5898fi
5899LEX=$ac_cv_prog_LEX
5900if test -n "$LEX"; then
5901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5902$as_echo "$LEX" >&6; }
5903else
5904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905$as_echo "no" >&6; }
5906fi
5907
5908
5909  test -n "$LEX" && break
5910done
5911test -n "$LEX" || LEX=":"
5912
5913if test "x$LEX" != "x:"; then
5914  cat >conftest.l <<_ACEOF
5915%%
5916a { ECHO; }
5917b { REJECT; }
5918c { yymore (); }
5919d { yyless (1); }
5920e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
5921    yyless ((input () != 0)); }
5922f { unput (yytext[0]); }
5923. { BEGIN INITIAL; }
5924%%
5925#ifdef YYTEXT_POINTER
5926extern char *yytext;
5927#endif
5928int
5929main (void)
5930{
5931  return ! yylex () + ! yywrap ();
5932}
5933_ACEOF
5934{ { ac_try="$LEX conftest.l"
5935case "(($ac_try" in
5936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937  *) ac_try_echo=$ac_try;;
5938esac
5939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5940$as_echo "$ac_try_echo"; } >&5
5941  (eval "$LEX conftest.l") 2>&5
5942  ac_status=$?
5943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5944  test $ac_status = 0; }
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5946$as_echo_n "checking lex output file root... " >&6; }
5947if ${ac_cv_prog_lex_root+:} false; then :
5948  $as_echo_n "(cached) " >&6
5949else
5950
5951if test -f lex.yy.c; then
5952  ac_cv_prog_lex_root=lex.yy
5953elif test -f lexyy.c; then
5954  ac_cv_prog_lex_root=lexyy
5955else
5956  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
5957fi
5958fi
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5960$as_echo "$ac_cv_prog_lex_root" >&6; }
5961LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5962
5963if test -z "${LEXLIB+set}"; then
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5965$as_echo_n "checking lex library... " >&6; }
5966if ${ac_cv_lib_lex+:} false; then :
5967  $as_echo_n "(cached) " >&6
5968else
5969
5970    ac_save_LIBS=$LIBS
5971    ac_cv_lib_lex='none needed'
5972    for ac_lib in '' -lfl -ll; do
5973      LIBS="$ac_lib $ac_save_LIBS"
5974      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975/* end confdefs.h.  */
5976`cat $LEX_OUTPUT_ROOT.c`
5977_ACEOF
5978if ac_fn_c_try_link "$LINENO"; then :
5979  ac_cv_lib_lex=$ac_lib
5980fi
5981rm -f core conftest.err conftest.$ac_objext \
5982    conftest$ac_exeext conftest.$ac_ext
5983      test "$ac_cv_lib_lex" != 'none needed' && break
5984    done
5985    LIBS=$ac_save_LIBS
5986
5987fi
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5989$as_echo "$ac_cv_lib_lex" >&6; }
5990  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5991fi
5992
5993
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5995$as_echo_n "checking whether yytext is a pointer... " >&6; }
5996if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
5997  $as_echo_n "(cached) " >&6
5998else
5999  # POSIX says lex can declare yytext either as a pointer or an array; the
6000# default is implementation-dependent.  Figure out which it is, since
6001# not all implementations provide the %pointer and %array declarations.
6002ac_cv_prog_lex_yytext_pointer=no
6003ac_save_LIBS=$LIBS
6004LIBS="$LEXLIB $ac_save_LIBS"
6005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006/* end confdefs.h.  */
6007
6008  #define YYTEXT_POINTER 1
6009`cat $LEX_OUTPUT_ROOT.c`
6010_ACEOF
6011if ac_fn_c_try_link "$LINENO"; then :
6012  ac_cv_prog_lex_yytext_pointer=yes
6013fi
6014rm -f core conftest.err conftest.$ac_objext \
6015    conftest$ac_exeext conftest.$ac_ext
6016LIBS=$ac_save_LIBS
6017
6018fi
6019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
6020$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6021if test $ac_cv_prog_lex_yytext_pointer = yes; then
6022
6023$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
6024
6025fi
6026rm -f conftest.l $LEX_OUTPUT_ROOT.c
6027
6028fi
6029if test "$LEX" = :; then
6030  LEX=${am_missing_run}flex
6031fi
6032
6033############################################################################
6034# Configuration options
6035############################################################################
6036
6037# Set the MCA prefix
6038
6039    if test "$pmix_mca_prefix_set" = "yes"; then :
6040  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX mca prefix was already set!" >&5
6041$as_echo "$as_me: WARNING: PMIX mca prefix was already set!" >&2;}
6042           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a configury programming error" >&5
6043$as_echo "$as_me: WARNING: This is a configury programming error" >&2;}
6044           as_fn_error $? "Cannot continue" "$LINENO" 5
6045fi
6046
6047    MCA_PREFIX=PMIX_MCA_
6048    pmix_mca_prefix_set=yes
6049
6050cat >>confdefs.h <<_ACEOF
6051#define PMIX_MCA_PREFIX "$MCA_PREFIX"
6052_ACEOF
6053
6054
6055
6056    if test "$pmix_mca_cmd_id_set" = "yes"; then :
6057  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX mca cmd line id was already set!" >&5
6058$as_echo "$as_me: WARNING: PMIX mca cmd line id was already set!" >&2;}
6059           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is a configury programming error" >&5
6060$as_echo "$as_me: WARNING: This is a configury programming error" >&2;}
6061           as_fn_error $? "Cannot continue" "$LINENO" 5
6062fi
6063
6064    MCA_CMD_LINE_ID=pmca
6065    pmix_mca_cmd_id_set=yes
6066
6067cat >>confdefs.h <<_ACEOF
6068#define PMIX_MCA_CMD_LINE_ID "$MCA_CMD_LINE_ID"
6069_ACEOF
6070
6071
6072
6073# Define PMIx configure arguments
6074
6075    # do we want dlopen support ?
6076    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want dlopen support" >&5
6077$as_echo_n "checking if want dlopen support... " >&6; }
6078    # Check whether --enable-dlopen was given.
6079if test "${enable_dlopen+set}" = set; then :
6080  enableval=$enable_dlopen;
6081fi
6082
6083    if test "$enable_dlopen" = "unknown"; then :
6084  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: enable_dlopen variable has been overwritten by configure" >&5
6085$as_echo "$as_me: WARNING: enable_dlopen variable has been overwritten by configure" >&2;}
6086           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is an internal error that should be reported to PMIx developers" >&5
6087$as_echo "$as_me: WARNING: This is an internal error that should be reported to PMIx developers" >&2;}
6088           as_fn_error $? "Cannot continue" "$LINENO" 5
6089fi
6090    if test "$enable_dlopen" = "no"; then :
6091  enable_mca_dso="no"
6092           enable_mca_static="yes"
6093           PMIX_ENABLE_DLOPEN_SUPPORT=0
6094           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095$as_echo "no" >&6; }
6096else
6097  PMIX_ENABLE_DLOPEN_SUPPORT=1
6098           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6099$as_echo "yes" >&6; }
6100fi
6101
6102cat >>confdefs.h <<_ACEOF
6103#define PMIX_ENABLE_DLOPEN_SUPPORT $PMIX_ENABLE_DLOPEN_SUPPORT
6104_ACEOF
6105
6106
6107    # Embedded mode, or standalone?
6108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if embedded mode is enabled" >&5
6109$as_echo_n "checking if embedded mode is enabled... " >&6; }
6110    # Check whether --enable-embedded-mode was given.
6111if test "${enable_embedded_mode+set}" = set; then :
6112  enableval=$enable_embedded_mode;
6113fi
6114
6115    if test "$enable_embedded_mode" = "yes"; then :
6116  pmix_mode=embedded
6117           pmix_install_primary_headers=no
6118           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6119$as_echo "yes" >&6; }
6120else
6121  pmix_mode=standalone
6122           pmix_install_primary_headers=yes
6123           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124$as_echo "no" >&6; }
6125fi
6126
6127#
6128# Is this a developer copy?
6129#
6130
6131if test -e $PMIX_TOP_SRCDIR/.git; then
6132    PMIX_DEVEL=1
6133    # check for Flex
6134
6135    if test "x$LEX" != xflex; then
6136        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIx requires Flex to build from non-tarball sources," >&5
6137$as_echo "$as_me: WARNING: PMIx requires Flex to build from non-tarball sources," >&2;}
6138        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but Flex was not found. Please install Flex into" >&5
6139$as_echo "$as_me: WARNING: but Flex was not found. Please install Flex into" >&2;}
6140        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your path and try again" >&5
6141$as_echo "$as_me: WARNING: your path and try again" >&2;}
6142        as_fn_error $? "Cannot continue" "$LINENO" 5
6143    fi
6144else
6145    PMIX_DEVEL=0
6146fi
6147
6148
6149#
6150# Developer picky compiler options
6151#
6152
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want developer-level compiler pickyness" >&5
6154$as_echo_n "checking if want developer-level compiler pickyness... " >&6; }
6155# Check whether --enable-picky was given.
6156if test "${enable_picky+set}" = set; then :
6157  enableval=$enable_picky;
6158fi
6159
6160if test "$enable_picky" = "yes"; then
6161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6162$as_echo "yes" >&6; }
6163    WANT_PICKY_COMPILER=1
6164else
6165    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166$as_echo "no" >&6; }
6167    WANT_PICKY_COMPILER=0
6168fi
6169#################### Early development override ####################
6170if test "$WANT_PICKY_COMPILER" = "0" && test -z "$enable_picky" && test "$PMIX_DEVEL" = "1"; then
6171    WANT_PICKY_COMPILER=1
6172    echo "--> developer override: enable picky compiler by default"
6173fi
6174#################### Early development override ####################
6175
6176#
6177# Developer debugging
6178#
6179
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want developer-level debugging code" >&5
6181$as_echo_n "checking if want developer-level debugging code... " >&6; }
6182# Check whether --enable-debug was given.
6183if test "${enable_debug+set}" = set; then :
6184  enableval=$enable_debug;
6185fi
6186
6187if test "$enable_debug" = "yes"; then
6188    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6189$as_echo "yes" >&6; }
6190    WANT_DEBUG=1
6191else
6192    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193$as_echo "no" >&6; }
6194    WANT_DEBUG=0
6195fi
6196#################### Early development override ####################
6197if test "$WANT_DEBUG" = "0" && test -z "$enable_debug" && test "$PMIX_DEVEL" = "1"; then
6198    WANT_DEBUG=1
6199    echo "--> developer override: enable debugging code by default"
6200fi
6201#################### Early development override ####################
6202if test "$WANT_DEBUG" = "0"; then
6203    CFLAGS="-DNDEBUG $CFLAGS"
6204fi
6205
6206cat >>confdefs.h <<_ACEOF
6207#define PMIX_ENABLE_DEBUG $WANT_DEBUG
6208_ACEOF
6209
6210
6211# Check whether --enable-debug-symbols was given.
6212if test "${enable_debug_symbols+set}" = set; then :
6213  enableval=$enable_debug_symbols;
6214fi
6215
6216
6217#
6218# Do we want to install the internal devel headers?
6219#
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to install project-internal header files" >&5
6221$as_echo_n "checking if want to install project-internal header files... " >&6; }
6222
6223# Check whether --with-devel-headers was given.
6224if test "${with_devel_headers+set}" = set; then :
6225  withval=$with_devel_headers;
6226fi
6227
6228if test "$with_devel_headers" = "yes"; then
6229    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6230$as_echo "yes" >&6; }
6231    WANT_INSTALL_HEADERS=1
6232    pmix_install_primary_headers=yes
6233else
6234    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235$as_echo "no" >&6; }
6236    WANT_INSTALL_HEADERS=0
6237fi
6238
6239# Install tests and examples?
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if tests and examples are to be installed" >&5
6241$as_echo_n "checking if tests and examples are to be installed... " >&6; }
6242
6243# Check whether --with-tests-examples was given.
6244if test "${with_tests_examples+set}" = set; then :
6245  withval=$with_tests_examples;
6246fi
6247
6248if test "$pmix_install_primary_headers" = "no"; then :
6249  if test -z "$with_tests_examples" || test "$with_tests_examples" = "no"; then :
6250  pmix_tests=no
6251              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252$as_echo "no" >&6; }
6253else
6254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255$as_echo "no" >&6; }
6256              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot install tests/examples without installing primary headers." >&5
6257$as_echo "$as_me: WARNING: Cannot install tests/examples without installing primary headers." >&2;}
6258              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This situation arises when configured in embedded mode" >&5
6259$as_echo "$as_me: WARNING: This situation arises when configured in embedded mode" >&2;}
6260              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: and without devel headers." >&5
6261$as_echo "$as_me: WARNING: and without devel headers." >&2;}
6262              as_fn_error $? "Please correct the configure line and retry" "$LINENO" 5
6263fi
6264else
6265  if test ! -z "$with_tests_examples" && test "$with_tests_examples" = "no"; then :
6266  pmix_tests=no
6267              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268$as_echo "no" >&6; }
6269else
6270  pmix_tests=yes
6271              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6272$as_echo "yes" >&6; }
6273fi
6274fi
6275
6276#
6277# Support per-user config files?
6278#
6279# Check whether --enable-per-user-config-files was given.
6280if test "${enable_per_user_config_files+set}" = set; then :
6281  enableval=$enable_per_user_config_files;
6282fi
6283
6284if test "$enable_per_user_config_files" = "no" ; then
6285  result=0
6286else
6287  result=1
6288fi
6289
6290cat >>confdefs.h <<_ACEOF
6291#define PMIX_WANT_HOME_CONFIG_FILES $result
6292_ACEOF
6293
6294
6295#
6296# Do we want the pretty-print stack trace feature?
6297#
6298
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want pretty-print stacktrace" >&5
6300$as_echo_n "checking if want pretty-print stacktrace... " >&6; }
6301# Check whether --enable-pretty-print-stacktrace was given.
6302if test "${enable_pretty_print_stacktrace+set}" = set; then :
6303  enableval=$enable_pretty_print_stacktrace;
6304fi
6305
6306if test "$enable_pretty_print_stacktrace" = "no" ; then
6307    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308$as_echo "no" >&6; }
6309    WANT_PRETTY_PRINT_STACKTRACE=0
6310else
6311    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6312$as_echo "yes" >&6; }
6313    WANT_PRETTY_PRINT_STACKTRACE=1
6314fi
6315
6316cat >>confdefs.h <<_ACEOF
6317#define PMIX_WANT_PRETTY_PRINT_STACKTRACE $WANT_PRETTY_PRINT_STACKTRACE
6318_ACEOF
6319
6320
6321#
6322# Use pthread-based locking
6323#
6324DSTORE_PTHREAD_LOCK="1"
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want dstore pthread-based locking" >&5
6326$as_echo_n "checking if want dstore pthread-based locking... " >&6; }
6327# Check whether --enable-dstore-pthlck was given.
6328if test "${enable_dstore_pthlck+set}" = set; then :
6329  enableval=$enable_dstore_pthlck;
6330fi
6331
6332if test "$enable_dstore_pthlck" = "no" ; then
6333    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334$as_echo "no" >&6; }
6335    DSTORE_PTHREAD_LOCK="0"
6336else
6337    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6338$as_echo "yes" >&6; }
6339    DSTORE_PTHREAD_LOCK="1"
6340fi
6341
6342#
6343# Ident string
6344#
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want ident string" >&5
6346$as_echo_n "checking if want ident string... " >&6; }
6347
6348# Check whether --with-ident-string was given.
6349if test "${with_ident_string+set}" = set; then :
6350  withval=$with_ident_string;
6351fi
6352
6353if test "$with_ident_string" = "" || test "$with_ident_string" = "no"; then
6354    with_ident_string="%VERSION%"
6355fi
6356# This is complicated, because $PMIX_VERSION may have spaces in it.
6357# So put the whole sed expr in single quotes -- i.e., directly
6358# substitute %VERSION% for (not expanded) $PMIX_VERSION.
6359with_ident_string="`echo $with_ident_string | sed -e 's/%VERSION%/$PMIX_VERSION/'`"
6360
6361# Now eval an echo of that so that the "$PMIX_VERSION" token is
6362# replaced with its value.  Enclose the whole thing in "" so that it
6363# ends up as 1 token.
6364with_ident_string="`eval echo $with_ident_string`"
6365
6366
6367cat >>confdefs.h <<_ACEOF
6368#define PMIX_IDENT_STRING "$with_ident_string"
6369_ACEOF
6370
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ident_string" >&5
6372$as_echo "$with_ident_string" >&6; }
6373
6374#
6375# Timing support
6376#
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want developer-level timing support" >&5
6378$as_echo_n "checking if want developer-level timing support... " >&6; }
6379# Check whether --enable-pmix-timing was given.
6380if test "${enable_pmix_timing+set}" = set; then :
6381  enableval=$enable_pmix_timing;
6382fi
6383
6384if test "$enable_pmix_timing" = "yes"; then
6385    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6386$as_echo "yes" >&6; }
6387    WANT_PMIX_TIMING=1
6388else
6389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390$as_echo "no" >&6; }
6391    WANT_PMIX_TIMING=0
6392fi
6393
6394
6395cat >>confdefs.h <<_ACEOF
6396#define PMIX_ENABLE_TIMING $WANT_PMIX_TIMING
6397_ACEOF
6398
6399
6400#
6401#
6402# Install backward compatibility support for PMI-1 and PMI-2
6403#
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want backward compatibility for PMI-1 and PMI-2" >&5
6405$as_echo_n "checking if want backward compatibility for PMI-1 and PMI-2... " >&6; }
6406# Check whether --enable-pmi-backward-compatibility was given.
6407if test "${enable_pmi_backward_compatibility+set}" = set; then :
6408  enableval=$enable_pmi_backward_compatibility;
6409fi
6410
6411if test "$enable_pmi_backward_compatibility" = "no"; then
6412    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413$as_echo "no" >&6; }
6414    WANT_PMI_BACKWARD=0
6415else
6416    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6417$as_echo "yes" >&6; }
6418    WANT_PMI_BACKWARD=1
6419fi
6420
6421 if test $WANT_INSTALL_HEADERS -eq 1; then
6422  WANT_INSTALL_HEADERS_TRUE=
6423  WANT_INSTALL_HEADERS_FALSE='#'
6424else
6425  WANT_INSTALL_HEADERS_TRUE='#'
6426  WANT_INSTALL_HEADERS_FALSE=
6427fi
6428
6429
6430#
6431# Do we want to install binaries?
6432#
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to disable binaries" >&5
6434$as_echo_n "checking if want to disable binaries... " >&6; }
6435# Check whether --enable-pmix-binaries was given.
6436if test "${enable_pmix_binaries+set}" = set; then :
6437  enableval=$enable_pmix_binaries;
6438fi
6439
6440if test "$enable_pmix_binaries" = "no"; then
6441    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6442$as_echo "no" >&6; }
6443    WANT_PMIX_BINARIES=0
6444else
6445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6446$as_echo "yes" >&6; }
6447    WANT_PMIX_BINARIES=1
6448fi
6449
6450 if test $WANT_PMIX_BINARIES -eq 1; then
6451  PMIX_INSTALL_BINARIES_TRUE=
6452  PMIX_INSTALL_BINARIES_FALSE='#'
6453else
6454  PMIX_INSTALL_BINARIES_TRUE='#'
6455  PMIX_INSTALL_BINARIES_FALSE=
6456fi
6457
6458
6459#
6460# psec/dummy_handshake
6461#
6462
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want build psec/dummy_handshake" >&5
6464$as_echo_n "checking if want build psec/dummy_handshake... " >&6; }
6465# Check whether --enable-dummy-handshake was given.
6466if test "${enable_dummy_handshake+set}" = set; then :
6467  enableval=$enable_dummy_handshake;
6468fi
6469
6470if test "$enable_dummy_handshake" != "yes"; then
6471    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472$as_echo "no" >&6; }
6473    eval "DISABLE_psec_dummy_handshake=1"
6474else
6475    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6476$as_echo "yes" >&6; }
6477    eval "DISABLE_psec_dummy_handshake=0"
6478fi
6479 if test "$DISABLE_psec_dummy_handshake" = "0"; then
6480  MCA_BUILD_PSEC_DUMMY_HANDSHAKE_TRUE=
6481  MCA_BUILD_PSEC_DUMMY_HANDSHAKE_FALSE='#'
6482else
6483  MCA_BUILD_PSEC_DUMMY_HANDSHAKE_TRUE='#'
6484  MCA_BUILD_PSEC_DUMMY_HANDSHAKE_FALSE=
6485fi
6486
6487
6488# see if they want to disable non-RTLD_GLOBAL dlopen
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if want to support dlopen of non-global namespaces" >&5
6490$as_echo_n "checking if want to support dlopen of non-global namespaces... " >&6; }
6491# Check whether --enable-nonglobal-dlopen was given.
6492if test "${enable_nonglobal_dlopen+set}" = set; then :
6493  enableval=$enable_nonglobal_dlopen;
6494fi
6495
6496if test "$enable_nonglobal_dlopen" = "no"; then
6497    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498$as_echo "no" >&6; }
6499    pmix_need_libpmix=0
6500else
6501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6502$as_echo "yes" >&6; }
6503    pmix_need_libpmix=1
6504fi
6505
6506# if someone enables embedded mode but doesn't want to install the
6507# devel headers, then default nonglobal-dlopen to false
6508if test -z "$enable_nonglobal_dlopen" && test "x$pmix_mode" = "xembedded" && test $WANT_INSTALL_HEADERS -eq 0 && test $pmix_need_libpmix -eq 1; then :
6509  pmix_need_libpmix=0
6510fi
6511
6512
6513# Define some basic useful values
6514
6515
6516#
6517# Make automake clean emacs ~ files for "make clean"
6518#
6519
6520CLEANFILES="*~ .\#*"
6521
6522
6523#
6524# See if we can find an old installation of PMIX to overwrite
6525#
6526
6527# Stupid autoconf 2.54 has a bug in AC_PREFIX_PROGRAM -- if pmix_clean
6528# is not found in the path and the user did not specify --prefix,
6529# we'll get a $prefix of "."
6530
6531pmix_prefix_save="$prefix"
6532if test "x$prefix" = xNONE; then
6533  $as_echo_n "checking for prefix by " >&6
6534  # Extract the first word of "pmix_clean", so it can be a program name with args.
6535set dummy pmix_clean; ac_word=$2
6536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537$as_echo_n "checking for $ac_word... " >&6; }
6538if ${ac_cv_path_ac_prefix_program+:} false; then :
6539  $as_echo_n "(cached) " >&6
6540else
6541  case $ac_prefix_program in
6542  [\\/]* | ?:[\\/]*)
6543  ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
6544  ;;
6545  *)
6546  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in $PATH
6548do
6549  IFS=$as_save_IFS
6550  test -z "$as_dir" && as_dir=.
6551    for ac_exec_ext in '' $ac_executable_extensions; do
6552  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6553    ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
6554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555    break 2
6556  fi
6557done
6558  done
6559IFS=$as_save_IFS
6560
6561  ;;
6562esac
6563fi
6564ac_prefix_program=$ac_cv_path_ac_prefix_program
6565if test -n "$ac_prefix_program"; then
6566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
6567$as_echo "$ac_prefix_program" >&6; }
6568else
6569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571fi
6572
6573
6574  if test -n "$ac_prefix_program"; then
6575    prefix=`$as_dirname -- "$ac_prefix_program" ||
6576$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6577	 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
6578	 X"$ac_prefix_program" : 'X\(//\)$' \| \
6579	 X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
6580$as_echo X"$ac_prefix_program" |
6581    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6582	    s//\1/
6583	    q
6584	  }
6585	  /^X\(\/\/\)[^/].*/{
6586	    s//\1/
6587	    q
6588	  }
6589	  /^X\(\/\/\)$/{
6590	    s//\1/
6591	    q
6592	  }
6593	  /^X\(\/\).*/{
6594	    s//\1/
6595	    q
6596	  }
6597	  s/.*/./; q'`
6598    prefix=`$as_dirname -- "$prefix" ||
6599$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6600	 X"$prefix" : 'X\(//\)[^/]' \| \
6601	 X"$prefix" : 'X\(//\)$' \| \
6602	 X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
6603$as_echo X"$prefix" |
6604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6605	    s//\1/
6606	    q
6607	  }
6608	  /^X\(\/\/\)[^/].*/{
6609	    s//\1/
6610	    q
6611	  }
6612	  /^X\(\/\/\)$/{
6613	    s//\1/
6614	    q
6615	  }
6616	  /^X\(\/\).*/{
6617	    s//\1/
6618	    q
6619	  }
6620	  s/.*/./; q'`
6621  fi
6622fi
6623
6624if test "$prefix" = "."; then
6625    prefix="$pmix_prefix_save"
6626fi
6627unset pmix_prefix_save
6628
6629#
6630# Basic sanity checking; we can't install to a relative path
6631#
6632
6633case "$prefix" in
6634  /*/bin)
6635    prefix="`dirname $prefix`"
6636    echo installing to directory \"$prefix\"
6637    ;;
6638  /*)
6639    echo installing to directory \"$prefix\"
6640    ;;
6641  NONE)
6642    echo installing to directory \"$ac_default_prefix\"
6643    ;;
6644  [a-zA-Z]:*)
6645    echo installing to directory \"$prefix\"
6646    ;;
6647  *)
6648    as_fn_error $? "prefix \"$prefix\" must be an absolute directory path" "$LINENO" 5
6649    ;;
6650esac
6651
6652# BEGIN: Derived from GASNet
6653
6654# Suggestion from Paul Hargrove to disable --program-prefix and
6655# friends.  Heavily influenced by GASNet 1.12 acinclude.m4
6656# functionality to do the same thing (copyright listed at top of this
6657# file).
6658
6659# echo program_prefix=$program_prefix  program_suffix=$program_suffix program_transform_name=$program_transform_name
6660# undo prefix autoconf automatically adds during cross-compilation
6661if test "$cross_compiling" = yes && test "$program_prefix" = "${target_alias}-" ; then
6662    program_prefix=NONE
6663fi
6664# normalize empty prefix/suffix
6665if test -z "$program_prefix" ; then
6666    program_prefix=NONE
6667fi
6668if test -z "$program_suffix" ; then
6669    program_suffix=NONE
6670fi
6671# undo transforms caused by empty prefix/suffix
6672if expr "$program_transform_name" : 's.^..$' >/dev/null || \
6673   expr "$program_transform_name" : 's.$$..$' >/dev/null || \
6674   expr "$program_transform_name" : 's.$$..;s.^..$' >/dev/null ; then
6675    program_transform_name="s,x,x,"
6676fi
6677if test "$program_prefix$program_suffix$program_transform_name" != "NONENONEs,x,x," ; then
6678    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The PMIx configure script does not support --program-prefix, --program-suffix or --program-transform-name. Users are recommended to instead use --prefix with a unique directory and make symbolic links as desired for renaming." >&5
6679$as_echo "$as_me: WARNING: *** The PMIx configure script does not support --program-prefix, --program-suffix or --program-transform-name. Users are recommended to instead use --prefix with a unique directory and make symbolic links as desired for renaming." >&2;}
6680    as_fn_error $? "*** Cannot continue" "$LINENO" 5
6681fi
6682
6683# END: Derived from GASNet
6684
6685
6686# If debug mode, add -g
6687if test "$pmix_debug" = "1"; then :
6688  CFLAGS="$CFLAGS -g"
6689fi
6690
6691case `pwd` in
6692  *\ * | *\	*)
6693    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6694$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6695esac
6696
6697
6698
6699macro_version='2.4.6'
6700macro_revision='2.4.6'
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714ltmain=$ac_aux_dir/ltmain.sh
6715
6716# Backslashify metacharacters that are still active within
6717# double-quoted strings.
6718sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6719
6720# Same as above, but do not quote variable references.
6721double_quote_subst='s/\(["`\\]\)/\\\1/g'
6722
6723# Sed substitution to delay expansion of an escaped shell variable in a
6724# double_quote_subst'ed string.
6725delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6726
6727# Sed substitution to delay expansion of an escaped single quote.
6728delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6729
6730# Sed substitution to avoid accidental globbing in evaled expressions
6731no_glob_subst='s/\*/\\\*/g'
6732
6733ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6734ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6735ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6736
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6738$as_echo_n "checking how to print strings... " >&6; }
6739# Test print first, because it will be a builtin if present.
6740if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6741   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6742  ECHO='print -r --'
6743elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6744  ECHO='printf %s\n'
6745else
6746  # Use this function as a fallback that always works.
6747  func_fallback_echo ()
6748  {
6749    eval 'cat <<_LTECHO_EOF
6750$1
6751_LTECHO_EOF'
6752  }
6753  ECHO='func_fallback_echo'
6754fi
6755
6756# func_echo_all arg...
6757# Invoke $ECHO with all args, space-separated.
6758func_echo_all ()
6759{
6760    $ECHO ""
6761}
6762
6763case $ECHO in
6764  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6765$as_echo "printf" >&6; } ;;
6766  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6767$as_echo "print -r" >&6; } ;;
6768  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6769$as_echo "cat" >&6; } ;;
6770esac
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6786$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6787if ${ac_cv_path_SED+:} false; then :
6788  $as_echo_n "(cached) " >&6
6789else
6790            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6791     for ac_i in 1 2 3 4 5 6 7; do
6792       ac_script="$ac_script$as_nl$ac_script"
6793     done
6794     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6795     { ac_script=; unset ac_script;}
6796     if test -z "$SED"; then
6797  ac_path_SED_found=false
6798  # Loop through the user's path and test for each of PROGNAME-LIST
6799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800for as_dir in $PATH
6801do
6802  IFS=$as_save_IFS
6803  test -z "$as_dir" && as_dir=.
6804    for ac_prog in sed gsed; do
6805    for ac_exec_ext in '' $ac_executable_extensions; do
6806      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6807      as_fn_executable_p "$ac_path_SED" || continue
6808# Check for GNU ac_path_SED and select it if it is found.
6809  # Check for GNU $ac_path_SED
6810case `"$ac_path_SED" --version 2>&1` in
6811*GNU*)
6812  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6813*)
6814  ac_count=0
6815  $as_echo_n 0123456789 >"conftest.in"
6816  while :
6817  do
6818    cat "conftest.in" "conftest.in" >"conftest.tmp"
6819    mv "conftest.tmp" "conftest.in"
6820    cp "conftest.in" "conftest.nl"
6821    $as_echo '' >> "conftest.nl"
6822    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6823    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6824    as_fn_arith $ac_count + 1 && ac_count=$as_val
6825    if test $ac_count -gt ${ac_path_SED_max-0}; then
6826      # Best one so far, save it but keep looking for a better one
6827      ac_cv_path_SED="$ac_path_SED"
6828      ac_path_SED_max=$ac_count
6829    fi
6830    # 10*(2^10) chars as input seems more than enough
6831    test $ac_count -gt 10 && break
6832  done
6833  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6834esac
6835
6836      $ac_path_SED_found && break 3
6837    done
6838  done
6839  done
6840IFS=$as_save_IFS
6841  if test -z "$ac_cv_path_SED"; then
6842    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6843  fi
6844else
6845  ac_cv_path_SED=$SED
6846fi
6847
6848fi
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6850$as_echo "$ac_cv_path_SED" >&6; }
6851 SED="$ac_cv_path_SED"
6852  rm -f conftest.sed
6853
6854test -z "$SED" && SED=sed
6855Xsed="$SED -e 1s/^X//"
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6868$as_echo_n "checking for fgrep... " >&6; }
6869if ${ac_cv_path_FGREP+:} false; then :
6870  $as_echo_n "(cached) " >&6
6871else
6872  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6873   then ac_cv_path_FGREP="$GREP -F"
6874   else
6875     if test -z "$FGREP"; then
6876  ac_path_FGREP_found=false
6877  # Loop through the user's path and test for each of PROGNAME-LIST
6878  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6880do
6881  IFS=$as_save_IFS
6882  test -z "$as_dir" && as_dir=.
6883    for ac_prog in fgrep; do
6884    for ac_exec_ext in '' $ac_executable_extensions; do
6885      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6886      as_fn_executable_p "$ac_path_FGREP" || continue
6887# Check for GNU ac_path_FGREP and select it if it is found.
6888  # Check for GNU $ac_path_FGREP
6889case `"$ac_path_FGREP" --version 2>&1` in
6890*GNU*)
6891  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6892*)
6893  ac_count=0
6894  $as_echo_n 0123456789 >"conftest.in"
6895  while :
6896  do
6897    cat "conftest.in" "conftest.in" >"conftest.tmp"
6898    mv "conftest.tmp" "conftest.in"
6899    cp "conftest.in" "conftest.nl"
6900    $as_echo 'FGREP' >> "conftest.nl"
6901    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6902    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6903    as_fn_arith $ac_count + 1 && ac_count=$as_val
6904    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6905      # Best one so far, save it but keep looking for a better one
6906      ac_cv_path_FGREP="$ac_path_FGREP"
6907      ac_path_FGREP_max=$ac_count
6908    fi
6909    # 10*(2^10) chars as input seems more than enough
6910    test $ac_count -gt 10 && break
6911  done
6912  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6913esac
6914
6915      $ac_path_FGREP_found && break 3
6916    done
6917  done
6918  done
6919IFS=$as_save_IFS
6920  if test -z "$ac_cv_path_FGREP"; then
6921    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6922  fi
6923else
6924  ac_cv_path_FGREP=$FGREP
6925fi
6926
6927   fi
6928fi
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6930$as_echo "$ac_cv_path_FGREP" >&6; }
6931 FGREP="$ac_cv_path_FGREP"
6932
6933
6934test -z "$GREP" && GREP=grep
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954# Check whether --with-gnu-ld was given.
6955if test "${with_gnu_ld+set}" = set; then :
6956  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6957else
6958  with_gnu_ld=no
6959fi
6960
6961ac_prog=ld
6962if test yes = "$GCC"; then
6963  # Check if gcc -print-prog-name=ld gives a path.
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6965$as_echo_n "checking for ld used by $CC... " >&6; }
6966  case $host in
6967  *-*-mingw*)
6968    # gcc leaves a trailing carriage return, which upsets mingw
6969    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6970  *)
6971    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6972  esac
6973  case $ac_prog in
6974    # Accept absolute paths.
6975    [\\/]* | ?:[\\/]*)
6976      re_direlt='/[^/][^/]*/\.\./'
6977      # Canonicalize the pathname of ld
6978      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6979      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6980	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6981      done
6982      test -z "$LD" && LD=$ac_prog
6983      ;;
6984  "")
6985    # If it fails, then pretend we aren't using GCC.
6986    ac_prog=ld
6987    ;;
6988  *)
6989    # If it is relative, then search for the first ld in PATH.
6990    with_gnu_ld=unknown
6991    ;;
6992  esac
6993elif test yes = "$with_gnu_ld"; then
6994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6995$as_echo_n "checking for GNU ld... " >&6; }
6996else
6997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6998$as_echo_n "checking for non-GNU ld... " >&6; }
6999fi
7000if ${lt_cv_path_LD+:} false; then :
7001  $as_echo_n "(cached) " >&6
7002else
7003  if test -z "$LD"; then
7004  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7005  for ac_dir in $PATH; do
7006    IFS=$lt_save_ifs
7007    test -z "$ac_dir" && ac_dir=.
7008    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7009      lt_cv_path_LD=$ac_dir/$ac_prog
7010      # Check to see if the program is GNU ld.  I'd rather use --version,
7011      # but apparently some variants of GNU ld only accept -v.
7012      # Break only if it was the GNU/non-GNU ld that we prefer.
7013      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7014      *GNU* | *'with BFD'*)
7015	test no != "$with_gnu_ld" && break
7016	;;
7017      *)
7018	test yes != "$with_gnu_ld" && break
7019	;;
7020      esac
7021    fi
7022  done
7023  IFS=$lt_save_ifs
7024else
7025  lt_cv_path_LD=$LD # Let the user override the test with a path.
7026fi
7027fi
7028
7029LD=$lt_cv_path_LD
7030if test -n "$LD"; then
7031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7032$as_echo "$LD" >&6; }
7033else
7034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035$as_echo "no" >&6; }
7036fi
7037test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7039$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7040if ${lt_cv_prog_gnu_ld+:} false; then :
7041  $as_echo_n "(cached) " >&6
7042else
7043  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7044case `$LD -v 2>&1 </dev/null` in
7045*GNU* | *'with BFD'*)
7046  lt_cv_prog_gnu_ld=yes
7047  ;;
7048*)
7049  lt_cv_prog_gnu_ld=no
7050  ;;
7051esac
7052fi
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7054$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7055with_gnu_ld=$lt_cv_prog_gnu_ld
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7066$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7067if ${lt_cv_path_NM+:} false; then :
7068  $as_echo_n "(cached) " >&6
7069else
7070  if test -n "$NM"; then
7071  # Let the user override the test.
7072  lt_cv_path_NM=$NM
7073else
7074  lt_nm_to_check=${ac_tool_prefix}nm
7075  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7076    lt_nm_to_check="$lt_nm_to_check nm"
7077  fi
7078  for lt_tmp_nm in $lt_nm_to_check; do
7079    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7080    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7081      IFS=$lt_save_ifs
7082      test -z "$ac_dir" && ac_dir=.
7083      tmp_nm=$ac_dir/$lt_tmp_nm
7084      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7085	# Check to see if the nm accepts a BSD-compat flag.
7086	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7087	#   nm: unknown option "B" ignored
7088	# Tru64's nm complains that /dev/null is an invalid object file
7089	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7090	case $build_os in
7091	mingw*) lt_bad_file=conftest.nm/nofile ;;
7092	*) lt_bad_file=/dev/null ;;
7093	esac
7094	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7095	*$lt_bad_file* | *'Invalid file or object type'*)
7096	  lt_cv_path_NM="$tmp_nm -B"
7097	  break 2
7098	  ;;
7099	*)
7100	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7101	  */dev/null*)
7102	    lt_cv_path_NM="$tmp_nm -p"
7103	    break 2
7104	    ;;
7105	  *)
7106	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7107	    continue # so that we can try to find one that supports BSD flags
7108	    ;;
7109	  esac
7110	  ;;
7111	esac
7112      fi
7113    done
7114    IFS=$lt_save_ifs
7115  done
7116  : ${lt_cv_path_NM=no}
7117fi
7118fi
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7120$as_echo "$lt_cv_path_NM" >&6; }
7121if test no != "$lt_cv_path_NM"; then
7122  NM=$lt_cv_path_NM
7123else
7124  # Didn't find any BSD compatible name lister, look for dumpbin.
7125  if test -n "$DUMPBIN"; then :
7126    # Let the user override the test.
7127  else
7128    if test -n "$ac_tool_prefix"; then
7129  for ac_prog in dumpbin "link -dump"
7130  do
7131    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7132set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134$as_echo_n "checking for $ac_word... " >&6; }
7135if ${ac_cv_prog_DUMPBIN+:} false; then :
7136  $as_echo_n "(cached) " >&6
7137else
7138  if test -n "$DUMPBIN"; then
7139  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7140else
7141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142for as_dir in $PATH
7143do
7144  IFS=$as_save_IFS
7145  test -z "$as_dir" && as_dir=.
7146    for ac_exec_ext in '' $ac_executable_extensions; do
7147  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150    break 2
7151  fi
7152done
7153  done
7154IFS=$as_save_IFS
7155
7156fi
7157fi
7158DUMPBIN=$ac_cv_prog_DUMPBIN
7159if test -n "$DUMPBIN"; then
7160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7161$as_echo "$DUMPBIN" >&6; }
7162else
7163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164$as_echo "no" >&6; }
7165fi
7166
7167
7168    test -n "$DUMPBIN" && break
7169  done
7170fi
7171if test -z "$DUMPBIN"; then
7172  ac_ct_DUMPBIN=$DUMPBIN
7173  for ac_prog in dumpbin "link -dump"
7174do
7175  # Extract the first word of "$ac_prog", so it can be a program name with args.
7176set dummy $ac_prog; ac_word=$2
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178$as_echo_n "checking for $ac_word... " >&6; }
7179if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7180  $as_echo_n "(cached) " >&6
7181else
7182  if test -n "$ac_ct_DUMPBIN"; then
7183  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188  IFS=$as_save_IFS
7189  test -z "$as_dir" && as_dir=.
7190    for ac_exec_ext in '' $ac_executable_extensions; do
7191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7193    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194    break 2
7195  fi
7196done
7197  done
7198IFS=$as_save_IFS
7199
7200fi
7201fi
7202ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7203if test -n "$ac_ct_DUMPBIN"; then
7204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7205$as_echo "$ac_ct_DUMPBIN" >&6; }
7206else
7207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208$as_echo "no" >&6; }
7209fi
7210
7211
7212  test -n "$ac_ct_DUMPBIN" && break
7213done
7214
7215  if test "x$ac_ct_DUMPBIN" = x; then
7216    DUMPBIN=":"
7217  else
7218    case $cross_compiling:$ac_tool_warned in
7219yes:)
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222ac_tool_warned=yes ;;
7223esac
7224    DUMPBIN=$ac_ct_DUMPBIN
7225  fi
7226fi
7227
7228    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7229    *COFF*)
7230      DUMPBIN="$DUMPBIN -symbols -headers"
7231      ;;
7232    *)
7233      DUMPBIN=:
7234      ;;
7235    esac
7236  fi
7237
7238  if test : != "$DUMPBIN"; then
7239    NM=$DUMPBIN
7240  fi
7241fi
7242test -z "$NM" && NM=nm
7243
7244
7245
7246
7247
7248
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7250$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7251if ${lt_cv_nm_interface+:} false; then :
7252  $as_echo_n "(cached) " >&6
7253else
7254  lt_cv_nm_interface="BSD nm"
7255  echo "int some_variable = 0;" > conftest.$ac_ext
7256  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7257  (eval "$ac_compile" 2>conftest.err)
7258  cat conftest.err >&5
7259  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7260  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7261  cat conftest.err >&5
7262  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7263  cat conftest.out >&5
7264  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7265    lt_cv_nm_interface="MS dumpbin"
7266  fi
7267  rm -f conftest*
7268fi
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7270$as_echo "$lt_cv_nm_interface" >&6; }
7271
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7273$as_echo_n "checking whether ln -s works... " >&6; }
7274LN_S=$as_ln_s
7275if test "$LN_S" = "ln -s"; then
7276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7277$as_echo "yes" >&6; }
7278else
7279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7280$as_echo "no, using $LN_S" >&6; }
7281fi
7282
7283# find the maximum length of command line arguments
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7285$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7286if ${lt_cv_sys_max_cmd_len+:} false; then :
7287  $as_echo_n "(cached) " >&6
7288else
7289    i=0
7290  teststring=ABCD
7291
7292  case $build_os in
7293  msdosdjgpp*)
7294    # On DJGPP, this test can blow up pretty badly due to problems in libc
7295    # (any single argument exceeding 2000 bytes causes a buffer overrun
7296    # during glob expansion).  Even if it were fixed, the result of this
7297    # check would be larger than it should be.
7298    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7299    ;;
7300
7301  gnu*)
7302    # Under GNU Hurd, this test is not required because there is
7303    # no limit to the length of command line arguments.
7304    # Libtool will interpret -1 as no limit whatsoever
7305    lt_cv_sys_max_cmd_len=-1;
7306    ;;
7307
7308  cygwin* | mingw* | cegcc*)
7309    # On Win9x/ME, this test blows up -- it succeeds, but takes
7310    # about 5 minutes as the teststring grows exponentially.
7311    # Worse, since 9x/ME are not pre-emptively multitasking,
7312    # you end up with a "frozen" computer, even though with patience
7313    # the test eventually succeeds (with a max line length of 256k).
7314    # Instead, let's just punt: use the minimum linelength reported by
7315    # all of the supported platforms: 8192 (on NT/2K/XP).
7316    lt_cv_sys_max_cmd_len=8192;
7317    ;;
7318
7319  mint*)
7320    # On MiNT this can take a long time and run out of memory.
7321    lt_cv_sys_max_cmd_len=8192;
7322    ;;
7323
7324  amigaos*)
7325    # On AmigaOS with pdksh, this test takes hours, literally.
7326    # So we just punt and use a minimum line length of 8192.
7327    lt_cv_sys_max_cmd_len=8192;
7328    ;;
7329
7330  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7331    # This has been around since 386BSD, at least.  Likely further.
7332    if test -x /sbin/sysctl; then
7333      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7334    elif test -x /usr/sbin/sysctl; then
7335      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7336    else
7337      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7338    fi
7339    # And add a safety zone
7340    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7341    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7342    ;;
7343
7344  interix*)
7345    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7346    lt_cv_sys_max_cmd_len=196608
7347    ;;
7348
7349  os2*)
7350    # The test takes a long time on OS/2.
7351    lt_cv_sys_max_cmd_len=8192
7352    ;;
7353
7354  osf*)
7355    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7356    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7357    # nice to cause kernel panics so lets avoid the loop below.
7358    # First set a reasonable default.
7359    lt_cv_sys_max_cmd_len=16384
7360    #
7361    if test -x /sbin/sysconfig; then
7362      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7363        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7364      esac
7365    fi
7366    ;;
7367  sco3.2v5*)
7368    lt_cv_sys_max_cmd_len=102400
7369    ;;
7370  sysv5* | sco5v6* | sysv4.2uw2*)
7371    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7372    if test -n "$kargmax"; then
7373      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7374    else
7375      lt_cv_sys_max_cmd_len=32768
7376    fi
7377    ;;
7378  *)
7379    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7380    if test -n "$lt_cv_sys_max_cmd_len" && \
7381       test undefined != "$lt_cv_sys_max_cmd_len"; then
7382      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7383      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7384    else
7385      # Make teststring a little bigger before we do anything with it.
7386      # a 1K string should be a reasonable start.
7387      for i in 1 2 3 4 5 6 7 8; do
7388        teststring=$teststring$teststring
7389      done
7390      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7391      # If test is not a shell built-in, we'll probably end up computing a
7392      # maximum length that is only half of the actual maximum length, but
7393      # we can't tell.
7394      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7395	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7396	      test 17 != "$i" # 1/2 MB should be enough
7397      do
7398        i=`expr $i + 1`
7399        teststring=$teststring$teststring
7400      done
7401      # Only check the string length outside the loop.
7402      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7403      teststring=
7404      # Add a significant safety factor because C++ compilers can tack on
7405      # massive amounts of additional arguments before passing them to the
7406      # linker.  It appears as though 1/2 is a usable value.
7407      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7408    fi
7409    ;;
7410  esac
7411
7412fi
7413
7414if test -n "$lt_cv_sys_max_cmd_len"; then
7415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7416$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7417else
7418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7419$as_echo "none" >&6; }
7420fi
7421max_cmd_len=$lt_cv_sys_max_cmd_len
7422
7423
7424
7425
7426
7427
7428: ${CP="cp -f"}
7429: ${MV="mv -f"}
7430: ${RM="rm -f"}
7431
7432if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7433  lt_unset=unset
7434else
7435  lt_unset=false
7436fi
7437
7438
7439
7440
7441
7442# test EBCDIC or ASCII
7443case `echo X|tr X '\101'` in
7444 A) # ASCII based system
7445    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7446  lt_SP2NL='tr \040 \012'
7447  lt_NL2SP='tr \015\012 \040\040'
7448  ;;
7449 *) # EBCDIC based system
7450  lt_SP2NL='tr \100 \n'
7451  lt_NL2SP='tr \r\n \100\100'
7452  ;;
7453esac
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7464$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7465if ${lt_cv_to_host_file_cmd+:} false; then :
7466  $as_echo_n "(cached) " >&6
7467else
7468  case $host in
7469  *-*-mingw* )
7470    case $build in
7471      *-*-mingw* ) # actually msys
7472        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7473        ;;
7474      *-*-cygwin* )
7475        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7476        ;;
7477      * ) # otherwise, assume *nix
7478        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7479        ;;
7480    esac
7481    ;;
7482  *-*-cygwin* )
7483    case $build in
7484      *-*-mingw* ) # actually msys
7485        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7486        ;;
7487      *-*-cygwin* )
7488        lt_cv_to_host_file_cmd=func_convert_file_noop
7489        ;;
7490      * ) # otherwise, assume *nix
7491        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7492        ;;
7493    esac
7494    ;;
7495  * ) # unhandled hosts (and "normal" native builds)
7496    lt_cv_to_host_file_cmd=func_convert_file_noop
7497    ;;
7498esac
7499
7500fi
7501
7502to_host_file_cmd=$lt_cv_to_host_file_cmd
7503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7504$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7505
7506
7507
7508
7509
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7511$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7512if ${lt_cv_to_tool_file_cmd+:} false; then :
7513  $as_echo_n "(cached) " >&6
7514else
7515  #assume ordinary cross tools, or native build.
7516lt_cv_to_tool_file_cmd=func_convert_file_noop
7517case $host in
7518  *-*-mingw* )
7519    case $build in
7520      *-*-mingw* ) # actually msys
7521        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7522        ;;
7523    esac
7524    ;;
7525esac
7526
7527fi
7528
7529to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7531$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7532
7533
7534
7535
7536
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7538$as_echo_n "checking for $LD option to reload object files... " >&6; }
7539if ${lt_cv_ld_reload_flag+:} false; then :
7540  $as_echo_n "(cached) " >&6
7541else
7542  lt_cv_ld_reload_flag='-r'
7543fi
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7545$as_echo "$lt_cv_ld_reload_flag" >&6; }
7546reload_flag=$lt_cv_ld_reload_flag
7547case $reload_flag in
7548"" | " "*) ;;
7549*) reload_flag=" $reload_flag" ;;
7550esac
7551reload_cmds='$LD$reload_flag -o $output$reload_objs'
7552case $host_os in
7553  cygwin* | mingw* | pw32* | cegcc*)
7554    if test yes != "$GCC"; then
7555      reload_cmds=false
7556    fi
7557    ;;
7558  darwin*)
7559    if test yes = "$GCC"; then
7560      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7561    else
7562      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7563    fi
7564    ;;
7565esac
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575if test -n "$ac_tool_prefix"; then
7576  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7577set dummy ${ac_tool_prefix}objdump; ac_word=$2
7578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579$as_echo_n "checking for $ac_word... " >&6; }
7580if ${ac_cv_prog_OBJDUMP+:} false; then :
7581  $as_echo_n "(cached) " >&6
7582else
7583  if test -n "$OBJDUMP"; then
7584  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7585else
7586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587for as_dir in $PATH
7588do
7589  IFS=$as_save_IFS
7590  test -z "$as_dir" && as_dir=.
7591    for ac_exec_ext in '' $ac_executable_extensions; do
7592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595    break 2
7596  fi
7597done
7598  done
7599IFS=$as_save_IFS
7600
7601fi
7602fi
7603OBJDUMP=$ac_cv_prog_OBJDUMP
7604if test -n "$OBJDUMP"; then
7605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7606$as_echo "$OBJDUMP" >&6; }
7607else
7608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609$as_echo "no" >&6; }
7610fi
7611
7612
7613fi
7614if test -z "$ac_cv_prog_OBJDUMP"; then
7615  ac_ct_OBJDUMP=$OBJDUMP
7616  # Extract the first word of "objdump", so it can be a program name with args.
7617set dummy objdump; ac_word=$2
7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619$as_echo_n "checking for $ac_word... " >&6; }
7620if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7621  $as_echo_n "(cached) " >&6
7622else
7623  if test -n "$ac_ct_OBJDUMP"; then
7624  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7625else
7626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627for as_dir in $PATH
7628do
7629  IFS=$as_save_IFS
7630  test -z "$as_dir" && as_dir=.
7631    for ac_exec_ext in '' $ac_executable_extensions; do
7632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635    break 2
7636  fi
7637done
7638  done
7639IFS=$as_save_IFS
7640
7641fi
7642fi
7643ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7644if test -n "$ac_ct_OBJDUMP"; then
7645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7646$as_echo "$ac_ct_OBJDUMP" >&6; }
7647else
7648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649$as_echo "no" >&6; }
7650fi
7651
7652  if test "x$ac_ct_OBJDUMP" = x; then
7653    OBJDUMP="false"
7654  else
7655    case $cross_compiling:$ac_tool_warned in
7656yes:)
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659ac_tool_warned=yes ;;
7660esac
7661    OBJDUMP=$ac_ct_OBJDUMP
7662  fi
7663else
7664  OBJDUMP="$ac_cv_prog_OBJDUMP"
7665fi
7666
7667test -z "$OBJDUMP" && OBJDUMP=objdump
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7678$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7679if ${lt_cv_deplibs_check_method+:} false; then :
7680  $as_echo_n "(cached) " >&6
7681else
7682  lt_cv_file_magic_cmd='$MAGIC_CMD'
7683lt_cv_file_magic_test_file=
7684lt_cv_deplibs_check_method='unknown'
7685# Need to set the preceding variable on all platforms that support
7686# interlibrary dependencies.
7687# 'none' -- dependencies not supported.
7688# 'unknown' -- same as none, but documents that we really don't know.
7689# 'pass_all' -- all dependencies passed with no checks.
7690# 'test_compile' -- check by making test program.
7691# 'file_magic [[regex]]' -- check by looking for files in library path
7692# that responds to the $file_magic_cmd with a given extended regex.
7693# If you have 'file' or equivalent on your system and you're not sure
7694# whether 'pass_all' will *always* work, you probably want this one.
7695
7696case $host_os in
7697aix[4-9]*)
7698  lt_cv_deplibs_check_method=pass_all
7699  ;;
7700
7701beos*)
7702  lt_cv_deplibs_check_method=pass_all
7703  ;;
7704
7705bsdi[45]*)
7706  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7707  lt_cv_file_magic_cmd='/usr/bin/file -L'
7708  lt_cv_file_magic_test_file=/shlib/libc.so
7709  ;;
7710
7711cygwin*)
7712  # func_win32_libid is a shell function defined in ltmain.sh
7713  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7714  lt_cv_file_magic_cmd='func_win32_libid'
7715  ;;
7716
7717mingw* | pw32*)
7718  # Base MSYS/MinGW do not provide the 'file' command needed by
7719  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7720  # unless we find 'file', for example because we are cross-compiling.
7721  if ( file / ) >/dev/null 2>&1; then
7722    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7723    lt_cv_file_magic_cmd='func_win32_libid'
7724  else
7725    # Keep this pattern in sync with the one in func_win32_libid.
7726    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7727    lt_cv_file_magic_cmd='$OBJDUMP -f'
7728  fi
7729  ;;
7730
7731cegcc*)
7732  # use the weaker test based on 'objdump'. See mingw*.
7733  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7734  lt_cv_file_magic_cmd='$OBJDUMP -f'
7735  ;;
7736
7737darwin* | rhapsody*)
7738  lt_cv_deplibs_check_method=pass_all
7739  ;;
7740
7741freebsd* | dragonfly*)
7742  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7743    case $host_cpu in
7744    i*86 )
7745      # Not sure whether the presence of OpenBSD here was a mistake.
7746      # Let's accept both of them until this is cleared up.
7747      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7748      lt_cv_file_magic_cmd=/usr/bin/file
7749      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7750      ;;
7751    esac
7752  else
7753    lt_cv_deplibs_check_method=pass_all
7754  fi
7755  ;;
7756
7757haiku*)
7758  lt_cv_deplibs_check_method=pass_all
7759  ;;
7760
7761hpux10.20* | hpux11*)
7762  lt_cv_file_magic_cmd=/usr/bin/file
7763  case $host_cpu in
7764  ia64*)
7765    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7766    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7767    ;;
7768  hppa*64*)
7769    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]'
7770    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7771    ;;
7772  *)
7773    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7774    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7775    ;;
7776  esac
7777  ;;
7778
7779interix[3-9]*)
7780  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7781  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7782  ;;
7783
7784irix5* | irix6* | nonstopux*)
7785  case $LD in
7786  *-32|*"-32 ") libmagic=32-bit;;
7787  *-n32|*"-n32 ") libmagic=N32;;
7788  *-64|*"-64 ") libmagic=64-bit;;
7789  *) libmagic=never-match;;
7790  esac
7791  lt_cv_deplibs_check_method=pass_all
7792  ;;
7793
7794# This must be glibc/ELF.
7795linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7796  lt_cv_deplibs_check_method=pass_all
7797  ;;
7798
7799netbsd*)
7800  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7801    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7802  else
7803    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7804  fi
7805  ;;
7806
7807newos6*)
7808  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7809  lt_cv_file_magic_cmd=/usr/bin/file
7810  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7811  ;;
7812
7813*nto* | *qnx*)
7814  lt_cv_deplibs_check_method=pass_all
7815  ;;
7816
7817openbsd* | bitrig*)
7818  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7819    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7820  else
7821    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7822  fi
7823  ;;
7824
7825osf3* | osf4* | osf5*)
7826  lt_cv_deplibs_check_method=pass_all
7827  ;;
7828
7829rdos*)
7830  lt_cv_deplibs_check_method=pass_all
7831  ;;
7832
7833solaris*)
7834  lt_cv_deplibs_check_method=pass_all
7835  ;;
7836
7837sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7838  lt_cv_deplibs_check_method=pass_all
7839  ;;
7840
7841sysv4 | sysv4.3*)
7842  case $host_vendor in
7843  motorola)
7844    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]'
7845    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7846    ;;
7847  ncr)
7848    lt_cv_deplibs_check_method=pass_all
7849    ;;
7850  sequent)
7851    lt_cv_file_magic_cmd='/bin/file'
7852    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7853    ;;
7854  sni)
7855    lt_cv_file_magic_cmd='/bin/file'
7856    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7857    lt_cv_file_magic_test_file=/lib/libc.so
7858    ;;
7859  siemens)
7860    lt_cv_deplibs_check_method=pass_all
7861    ;;
7862  pc)
7863    lt_cv_deplibs_check_method=pass_all
7864    ;;
7865  esac
7866  ;;
7867
7868tpf*)
7869  lt_cv_deplibs_check_method=pass_all
7870  ;;
7871os2*)
7872  lt_cv_deplibs_check_method=pass_all
7873  ;;
7874esac
7875
7876fi
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7878$as_echo "$lt_cv_deplibs_check_method" >&6; }
7879
7880file_magic_glob=
7881want_nocaseglob=no
7882if test "$build" = "$host"; then
7883  case $host_os in
7884  mingw* | pw32*)
7885    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7886      want_nocaseglob=yes
7887    else
7888      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7889    fi
7890    ;;
7891  esac
7892fi
7893
7894file_magic_cmd=$lt_cv_file_magic_cmd
7895deplibs_check_method=$lt_cv_deplibs_check_method
7896test -z "$deplibs_check_method" && deplibs_check_method=unknown
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919if test -n "$ac_tool_prefix"; then
7920  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7921set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923$as_echo_n "checking for $ac_word... " >&6; }
7924if ${ac_cv_prog_DLLTOOL+:} false; then :
7925  $as_echo_n "(cached) " >&6
7926else
7927  if test -n "$DLLTOOL"; then
7928  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7929else
7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931for as_dir in $PATH
7932do
7933  IFS=$as_save_IFS
7934  test -z "$as_dir" && as_dir=.
7935    for ac_exec_ext in '' $ac_executable_extensions; do
7936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939    break 2
7940  fi
7941done
7942  done
7943IFS=$as_save_IFS
7944
7945fi
7946fi
7947DLLTOOL=$ac_cv_prog_DLLTOOL
7948if test -n "$DLLTOOL"; then
7949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7950$as_echo "$DLLTOOL" >&6; }
7951else
7952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953$as_echo "no" >&6; }
7954fi
7955
7956
7957fi
7958if test -z "$ac_cv_prog_DLLTOOL"; then
7959  ac_ct_DLLTOOL=$DLLTOOL
7960  # Extract the first word of "dlltool", so it can be a program name with args.
7961set dummy dlltool; ac_word=$2
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963$as_echo_n "checking for $ac_word... " >&6; }
7964if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7965  $as_echo_n "(cached) " >&6
7966else
7967  if test -n "$ac_ct_DLLTOOL"; then
7968  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7969else
7970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971for as_dir in $PATH
7972do
7973  IFS=$as_save_IFS
7974  test -z "$as_dir" && as_dir=.
7975    for ac_exec_ext in '' $ac_executable_extensions; do
7976  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979    break 2
7980  fi
7981done
7982  done
7983IFS=$as_save_IFS
7984
7985fi
7986fi
7987ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7988if test -n "$ac_ct_DLLTOOL"; then
7989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7990$as_echo "$ac_ct_DLLTOOL" >&6; }
7991else
7992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993$as_echo "no" >&6; }
7994fi
7995
7996  if test "x$ac_ct_DLLTOOL" = x; then
7997    DLLTOOL="false"
7998  else
7999    case $cross_compiling:$ac_tool_warned in
8000yes:)
8001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8003ac_tool_warned=yes ;;
8004esac
8005    DLLTOOL=$ac_ct_DLLTOOL
8006  fi
8007else
8008  DLLTOOL="$ac_cv_prog_DLLTOOL"
8009fi
8010
8011test -z "$DLLTOOL" && DLLTOOL=dlltool
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8023$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8024if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8025  $as_echo_n "(cached) " >&6
8026else
8027  lt_cv_sharedlib_from_linklib_cmd='unknown'
8028
8029case $host_os in
8030cygwin* | mingw* | pw32* | cegcc*)
8031  # two different shell functions defined in ltmain.sh;
8032  # decide which one to use based on capabilities of $DLLTOOL
8033  case `$DLLTOOL --help 2>&1` in
8034  *--identify-strict*)
8035    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8036    ;;
8037  *)
8038    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8039    ;;
8040  esac
8041  ;;
8042*)
8043  # fallback: assume linklib IS sharedlib
8044  lt_cv_sharedlib_from_linklib_cmd=$ECHO
8045  ;;
8046esac
8047
8048fi
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8050$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8051sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8052test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8053
8054
8055
8056
8057
8058
8059
8060if test -n "$ac_tool_prefix"; then
8061  for ac_prog in ar
8062  do
8063    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8064set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066$as_echo_n "checking for $ac_word... " >&6; }
8067if ${ac_cv_prog_AR+:} false; then :
8068  $as_echo_n "(cached) " >&6
8069else
8070  if test -n "$AR"; then
8071  ac_cv_prog_AR="$AR" # Let the user override the test.
8072else
8073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074for as_dir in $PATH
8075do
8076  IFS=$as_save_IFS
8077  test -z "$as_dir" && as_dir=.
8078    for ac_exec_ext in '' $ac_executable_extensions; do
8079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082    break 2
8083  fi
8084done
8085  done
8086IFS=$as_save_IFS
8087
8088fi
8089fi
8090AR=$ac_cv_prog_AR
8091if test -n "$AR"; then
8092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8093$as_echo "$AR" >&6; }
8094else
8095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096$as_echo "no" >&6; }
8097fi
8098
8099
8100    test -n "$AR" && break
8101  done
8102fi
8103if test -z "$AR"; then
8104  ac_ct_AR=$AR
8105  for ac_prog in ar
8106do
8107  # Extract the first word of "$ac_prog", so it can be a program name with args.
8108set dummy $ac_prog; ac_word=$2
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110$as_echo_n "checking for $ac_word... " >&6; }
8111if ${ac_cv_prog_ac_ct_AR+:} false; then :
8112  $as_echo_n "(cached) " >&6
8113else
8114  if test -n "$ac_ct_AR"; then
8115  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8116else
8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120  IFS=$as_save_IFS
8121  test -z "$as_dir" && as_dir=.
8122    for ac_exec_ext in '' $ac_executable_extensions; do
8123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124    ac_cv_prog_ac_ct_AR="$ac_prog"
8125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126    break 2
8127  fi
8128done
8129  done
8130IFS=$as_save_IFS
8131
8132fi
8133fi
8134ac_ct_AR=$ac_cv_prog_ac_ct_AR
8135if test -n "$ac_ct_AR"; then
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8137$as_echo "$ac_ct_AR" >&6; }
8138else
8139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140$as_echo "no" >&6; }
8141fi
8142
8143
8144  test -n "$ac_ct_AR" && break
8145done
8146
8147  if test "x$ac_ct_AR" = x; then
8148    AR="false"
8149  else
8150    case $cross_compiling:$ac_tool_warned in
8151yes:)
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8154ac_tool_warned=yes ;;
8155esac
8156    AR=$ac_ct_AR
8157  fi
8158fi
8159
8160: ${AR=ar}
8161: ${AR_FLAGS=cru}
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8174$as_echo_n "checking for archiver @FILE support... " >&6; }
8175if ${lt_cv_ar_at_file+:} false; then :
8176  $as_echo_n "(cached) " >&6
8177else
8178  lt_cv_ar_at_file=no
8179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180/* end confdefs.h.  */
8181
8182int
8183main ()
8184{
8185
8186  ;
8187  return 0;
8188}
8189_ACEOF
8190if ac_fn_c_try_compile "$LINENO"; then :
8191  echo conftest.$ac_objext > conftest.lst
8192      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8193      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8194  (eval $lt_ar_try) 2>&5
8195  ac_status=$?
8196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8197  test $ac_status = 0; }
8198      if test 0 -eq "$ac_status"; then
8199	# Ensure the archiver fails upon bogus file names.
8200	rm -f conftest.$ac_objext libconftest.a
8201	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8202  (eval $lt_ar_try) 2>&5
8203  ac_status=$?
8204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8205  test $ac_status = 0; }
8206	if test 0 -ne "$ac_status"; then
8207          lt_cv_ar_at_file=@
8208        fi
8209      fi
8210      rm -f conftest.* libconftest.a
8211
8212fi
8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214
8215fi
8216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8217$as_echo "$lt_cv_ar_at_file" >&6; }
8218
8219if test no = "$lt_cv_ar_at_file"; then
8220  archiver_list_spec=
8221else
8222  archiver_list_spec=$lt_cv_ar_at_file
8223fi
8224
8225
8226
8227
8228
8229
8230
8231if test -n "$ac_tool_prefix"; then
8232  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8233set dummy ${ac_tool_prefix}strip; ac_word=$2
8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235$as_echo_n "checking for $ac_word... " >&6; }
8236if ${ac_cv_prog_STRIP+:} false; then :
8237  $as_echo_n "(cached) " >&6
8238else
8239  if test -n "$STRIP"; then
8240  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8241else
8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243for as_dir in $PATH
8244do
8245  IFS=$as_save_IFS
8246  test -z "$as_dir" && as_dir=.
8247    for ac_exec_ext in '' $ac_executable_extensions; do
8248  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8249    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251    break 2
8252  fi
8253done
8254  done
8255IFS=$as_save_IFS
8256
8257fi
8258fi
8259STRIP=$ac_cv_prog_STRIP
8260if test -n "$STRIP"; then
8261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8262$as_echo "$STRIP" >&6; }
8263else
8264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265$as_echo "no" >&6; }
8266fi
8267
8268
8269fi
8270if test -z "$ac_cv_prog_STRIP"; then
8271  ac_ct_STRIP=$STRIP
8272  # Extract the first word of "strip", so it can be a program name with args.
8273set dummy strip; ac_word=$2
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275$as_echo_n "checking for $ac_word... " >&6; }
8276if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8277  $as_echo_n "(cached) " >&6
8278else
8279  if test -n "$ac_ct_STRIP"; then
8280  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8281else
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285  IFS=$as_save_IFS
8286  test -z "$as_dir" && as_dir=.
8287    for ac_exec_ext in '' $ac_executable_extensions; do
8288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289    ac_cv_prog_ac_ct_STRIP="strip"
8290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291    break 2
8292  fi
8293done
8294  done
8295IFS=$as_save_IFS
8296
8297fi
8298fi
8299ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8300if test -n "$ac_ct_STRIP"; then
8301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8302$as_echo "$ac_ct_STRIP" >&6; }
8303else
8304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
8306fi
8307
8308  if test "x$ac_ct_STRIP" = x; then
8309    STRIP=":"
8310  else
8311    case $cross_compiling:$ac_tool_warned in
8312yes:)
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8315ac_tool_warned=yes ;;
8316esac
8317    STRIP=$ac_ct_STRIP
8318  fi
8319else
8320  STRIP="$ac_cv_prog_STRIP"
8321fi
8322
8323test -z "$STRIP" && STRIP=:
8324
8325
8326
8327
8328
8329
8330if test -n "$ac_tool_prefix"; then
8331  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8332set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334$as_echo_n "checking for $ac_word... " >&6; }
8335if ${ac_cv_prog_RANLIB+:} false; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338  if test -n "$RANLIB"; then
8339  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8340else
8341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342for as_dir in $PATH
8343do
8344  IFS=$as_save_IFS
8345  test -z "$as_dir" && as_dir=.
8346    for ac_exec_ext in '' $ac_executable_extensions; do
8347  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8348    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350    break 2
8351  fi
8352done
8353  done
8354IFS=$as_save_IFS
8355
8356fi
8357fi
8358RANLIB=$ac_cv_prog_RANLIB
8359if test -n "$RANLIB"; then
8360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8361$as_echo "$RANLIB" >&6; }
8362else
8363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
8365fi
8366
8367
8368fi
8369if test -z "$ac_cv_prog_RANLIB"; then
8370  ac_ct_RANLIB=$RANLIB
8371  # Extract the first word of "ranlib", so it can be a program name with args.
8372set dummy ranlib; ac_word=$2
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374$as_echo_n "checking for $ac_word... " >&6; }
8375if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8376  $as_echo_n "(cached) " >&6
8377else
8378  if test -n "$ac_ct_RANLIB"; then
8379  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8380else
8381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382for as_dir in $PATH
8383do
8384  IFS=$as_save_IFS
8385  test -z "$as_dir" && as_dir=.
8386    for ac_exec_ext in '' $ac_executable_extensions; do
8387  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8388    ac_cv_prog_ac_ct_RANLIB="ranlib"
8389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390    break 2
8391  fi
8392done
8393  done
8394IFS=$as_save_IFS
8395
8396fi
8397fi
8398ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8399if test -n "$ac_ct_RANLIB"; then
8400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8401$as_echo "$ac_ct_RANLIB" >&6; }
8402else
8403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404$as_echo "no" >&6; }
8405fi
8406
8407  if test "x$ac_ct_RANLIB" = x; then
8408    RANLIB=":"
8409  else
8410    case $cross_compiling:$ac_tool_warned in
8411yes:)
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414ac_tool_warned=yes ;;
8415esac
8416    RANLIB=$ac_ct_RANLIB
8417  fi
8418else
8419  RANLIB="$ac_cv_prog_RANLIB"
8420fi
8421
8422test -z "$RANLIB" && RANLIB=:
8423
8424
8425
8426
8427
8428
8429# Determine commands to create old-style static archives.
8430old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8431old_postinstall_cmds='chmod 644 $oldlib'
8432old_postuninstall_cmds=
8433
8434if test -n "$RANLIB"; then
8435  case $host_os in
8436  bitrig* | openbsd*)
8437    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8438    ;;
8439  *)
8440    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8441    ;;
8442  esac
8443  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8444fi
8445
8446case $host_os in
8447  darwin*)
8448    lock_old_archive_extraction=yes ;;
8449  *)
8450    lock_old_archive_extraction=no ;;
8451esac
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491# If no C compiler was specified, use CC.
8492LTCC=${LTCC-"$CC"}
8493
8494# If no C compiler flags were specified, use CFLAGS.
8495LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8496
8497# Allow CC to be a program name with arguments.
8498compiler=$CC
8499
8500
8501# Check for command to grab the raw symbol name followed by C symbol from nm.
8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8503$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8504if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8505  $as_echo_n "(cached) " >&6
8506else
8507
8508# These are sane defaults that work on at least a few old systems.
8509# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8510
8511# Character class describing NM global symbol codes.
8512symcode='[BCDEGRST]'
8513
8514# Regexp to match symbols that can be accessed directly from C.
8515sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8516
8517# Define system-specific variables.
8518case $host_os in
8519aix*)
8520  symcode='[BCDT]'
8521  ;;
8522cygwin* | mingw* | pw32* | cegcc*)
8523  symcode='[ABCDGISTW]'
8524  ;;
8525hpux*)
8526  if test ia64 = "$host_cpu"; then
8527    symcode='[ABCDEGRST]'
8528  fi
8529  ;;
8530irix* | nonstopux*)
8531  symcode='[BCDEGRST]'
8532  ;;
8533osf*)
8534  symcode='[BCDEGQRST]'
8535  ;;
8536solaris*)
8537  symcode='[BDRT]'
8538  ;;
8539sco3.2v5*)
8540  symcode='[DT]'
8541  ;;
8542sysv4.2uw2*)
8543  symcode='[DT]'
8544  ;;
8545sysv5* | sco5v6* | unixware* | OpenUNIX*)
8546  symcode='[ABDT]'
8547  ;;
8548sysv4)
8549  symcode='[DFNSTU]'
8550  ;;
8551esac
8552
8553# If we're using GNU nm, then use its standard symbol codes.
8554case `$NM -V 2>&1` in
8555*GNU* | *'with BFD'*)
8556  symcode='[ABCDGIRSTW]' ;;
8557esac
8558
8559if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8560  # Gets list of data symbols to import.
8561  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8562  # Adjust the below global symbol transforms to fixup imported variables.
8563  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8564  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8565  lt_c_name_lib_hook="\
8566  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8567  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8568else
8569  # Disable hooks by default.
8570  lt_cv_sys_global_symbol_to_import=
8571  lt_cdecl_hook=
8572  lt_c_name_hook=
8573  lt_c_name_lib_hook=
8574fi
8575
8576# Transform an extracted symbol line into a proper C declaration.
8577# Some systems (esp. on ia64) link data and code symbols differently,
8578# so use this general approach.
8579lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8580$lt_cdecl_hook\
8581" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8582" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8583
8584# Transform an extracted symbol line into symbol name and symbol address
8585lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8586$lt_c_name_hook\
8587" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8588" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8589
8590# Transform an extracted symbol line into symbol name with lib prefix and
8591# symbol address.
8592lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8593$lt_c_name_lib_hook\
8594" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8595" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8596" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8597
8598# Handle CRLF in mingw tool chain
8599opt_cr=
8600case $build_os in
8601mingw*)
8602  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8603  ;;
8604esac
8605
8606# Try without a prefix underscore, then with it.
8607for ac_symprfx in "" "_"; do
8608
8609  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8610  symxfrm="\\1 $ac_symprfx\\2 \\2"
8611
8612  # Write the raw and C identifiers.
8613  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8614    # Fake it for dumpbin and say T for any non-static function,
8615    # D for any global variable and I for any imported variable.
8616    # Also find C++ and __fastcall symbols from MSVC++,
8617    # which start with @ or ?.
8618    lt_cv_sys_global_symbol_pipe="$AWK '"\
8619"     {last_section=section; section=\$ 3};"\
8620"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8621"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8622"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8623"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8624"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8625"     \$ 0!~/External *\|/{next};"\
8626"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8627"     {if(hide[section]) next};"\
8628"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8629"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8630"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8631"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8632"     ' prfx=^$ac_symprfx"
8633  else
8634    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8635  fi
8636  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8637
8638  # Check to see that the pipe works correctly.
8639  pipe_works=no
8640
8641  rm -f conftest*
8642  cat > conftest.$ac_ext <<_LT_EOF
8643#ifdef __cplusplus
8644extern "C" {
8645#endif
8646char nm_test_var;
8647void nm_test_func(void);
8648void nm_test_func(void){}
8649#ifdef __cplusplus
8650}
8651#endif
8652int main(){nm_test_var='a';nm_test_func();return(0);}
8653_LT_EOF
8654
8655  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8656  (eval $ac_compile) 2>&5
8657  ac_status=$?
8658  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8659  test $ac_status = 0; }; then
8660    # Now try to grab the symbols.
8661    nlist=conftest.nm
8662    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8663  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8664  ac_status=$?
8665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8666  test $ac_status = 0; } && test -s "$nlist"; then
8667      # Try sorting and uniquifying the output.
8668      if sort "$nlist" | uniq > "$nlist"T; then
8669	mv -f "$nlist"T "$nlist"
8670      else
8671	rm -f "$nlist"T
8672      fi
8673
8674      # Make sure that we snagged all the symbols we need.
8675      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8676	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8677	  cat <<_LT_EOF > conftest.$ac_ext
8678/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8679#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8680/* DATA imports from DLLs on WIN32 can't be const, because runtime
8681   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8682# define LT_DLSYM_CONST
8683#elif defined __osf__
8684/* This system does not cope well with relocations in const data.  */
8685# define LT_DLSYM_CONST
8686#else
8687# define LT_DLSYM_CONST const
8688#endif
8689
8690#ifdef __cplusplus
8691extern "C" {
8692#endif
8693
8694_LT_EOF
8695	  # Now generate the symbol file.
8696	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8697
8698	  cat <<_LT_EOF >> conftest.$ac_ext
8699
8700/* The mapping between symbol names and symbols.  */
8701LT_DLSYM_CONST struct {
8702  const char *name;
8703  void       *address;
8704}
8705lt__PROGRAM__LTX_preloaded_symbols[] =
8706{
8707  { "@PROGRAM@", (void *) 0 },
8708_LT_EOF
8709	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8710	  cat <<\_LT_EOF >> conftest.$ac_ext
8711  {0, (void *) 0}
8712};
8713
8714/* This works around a problem in FreeBSD linker */
8715#ifdef FREEBSD_WORKAROUND
8716static const void *lt_preloaded_setup() {
8717  return lt__PROGRAM__LTX_preloaded_symbols;
8718}
8719#endif
8720
8721#ifdef __cplusplus
8722}
8723#endif
8724_LT_EOF
8725	  # Now try linking the two files.
8726	  mv conftest.$ac_objext conftstm.$ac_objext
8727	  lt_globsym_save_LIBS=$LIBS
8728	  lt_globsym_save_CFLAGS=$CFLAGS
8729	  LIBS=conftstm.$ac_objext
8730	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8731	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8732  (eval $ac_link) 2>&5
8733  ac_status=$?
8734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8735  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8736	    pipe_works=yes
8737	  fi
8738	  LIBS=$lt_globsym_save_LIBS
8739	  CFLAGS=$lt_globsym_save_CFLAGS
8740	else
8741	  echo "cannot find nm_test_func in $nlist" >&5
8742	fi
8743      else
8744	echo "cannot find nm_test_var in $nlist" >&5
8745      fi
8746    else
8747      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8748    fi
8749  else
8750    echo "$progname: failed program was:" >&5
8751    cat conftest.$ac_ext >&5
8752  fi
8753  rm -rf conftest* conftst*
8754
8755  # Do not use the global_symbol_pipe unless it works.
8756  if test yes = "$pipe_works"; then
8757    break
8758  else
8759    lt_cv_sys_global_symbol_pipe=
8760  fi
8761done
8762
8763fi
8764
8765if test -z "$lt_cv_sys_global_symbol_pipe"; then
8766  lt_cv_sys_global_symbol_to_cdecl=
8767fi
8768if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8770$as_echo "failed" >&6; }
8771else
8772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8773$as_echo "ok" >&6; }
8774fi
8775
8776# Response file support.
8777if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8778  nm_file_list_spec='@'
8779elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8780  nm_file_list_spec='@'
8781fi
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8820$as_echo_n "checking for sysroot... " >&6; }
8821
8822# Check whether --with-sysroot was given.
8823if test "${with_sysroot+set}" = set; then :
8824  withval=$with_sysroot;
8825else
8826  with_sysroot=no
8827fi
8828
8829
8830lt_sysroot=
8831case $with_sysroot in #(
8832 yes)
8833   if test yes = "$GCC"; then
8834     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8835   fi
8836   ;; #(
8837 /*)
8838   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8839   ;; #(
8840 no|'')
8841   ;; #(
8842 *)
8843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8844$as_echo "$with_sysroot" >&6; }
8845   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8846   ;;
8847esac
8848
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8850$as_echo "${lt_sysroot:-no}" >&6; }
8851
8852
8853
8854
8855
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8857$as_echo_n "checking for a working dd... " >&6; }
8858if ${ac_cv_path_lt_DD+:} false; then :
8859  $as_echo_n "(cached) " >&6
8860else
8861  printf 0123456789abcdef0123456789abcdef >conftest.i
8862cat conftest.i conftest.i >conftest2.i
8863: ${lt_DD:=$DD}
8864if test -z "$lt_DD"; then
8865  ac_path_lt_DD_found=false
8866  # Loop through the user's path and test for each of PROGNAME-LIST
8867  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868for as_dir in $PATH
8869do
8870  IFS=$as_save_IFS
8871  test -z "$as_dir" && as_dir=.
8872    for ac_prog in dd; do
8873    for ac_exec_ext in '' $ac_executable_extensions; do
8874      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8875      as_fn_executable_p "$ac_path_lt_DD" || continue
8876if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8877  cmp -s conftest.i conftest.out \
8878  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8879fi
8880      $ac_path_lt_DD_found && break 3
8881    done
8882  done
8883  done
8884IFS=$as_save_IFS
8885  if test -z "$ac_cv_path_lt_DD"; then
8886    :
8887  fi
8888else
8889  ac_cv_path_lt_DD=$lt_DD
8890fi
8891
8892rm -f conftest.i conftest2.i conftest.out
8893fi
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8895$as_echo "$ac_cv_path_lt_DD" >&6; }
8896
8897
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8899$as_echo_n "checking how to truncate binary pipes... " >&6; }
8900if ${lt_cv_truncate_bin+:} false; then :
8901  $as_echo_n "(cached) " >&6
8902else
8903  printf 0123456789abcdef0123456789abcdef >conftest.i
8904cat conftest.i conftest.i >conftest2.i
8905lt_cv_truncate_bin=
8906if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8907  cmp -s conftest.i conftest.out \
8908  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8909fi
8910rm -f conftest.i conftest2.i conftest.out
8911test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8912fi
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8914$as_echo "$lt_cv_truncate_bin" >&6; }
8915
8916
8917
8918
8919
8920
8921
8922# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8923func_cc_basename ()
8924{
8925    for cc_temp in $*""; do
8926      case $cc_temp in
8927        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8928        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8929        \-*) ;;
8930        *) break;;
8931      esac
8932    done
8933    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8934}
8935
8936# Check whether --enable-libtool-lock was given.
8937if test "${enable_libtool_lock+set}" = set; then :
8938  enableval=$enable_libtool_lock;
8939fi
8940
8941test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8942
8943# Some flags need to be propagated to the compiler or linker for good
8944# libtool support.
8945case $host in
8946ia64-*-hpux*)
8947  # Find out what ABI is being produced by ac_compile, and set mode
8948  # options accordingly.
8949  echo 'int i;' > conftest.$ac_ext
8950  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8951  (eval $ac_compile) 2>&5
8952  ac_status=$?
8953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8954  test $ac_status = 0; }; then
8955    case `/usr/bin/file conftest.$ac_objext` in
8956      *ELF-32*)
8957	HPUX_IA64_MODE=32
8958	;;
8959      *ELF-64*)
8960	HPUX_IA64_MODE=64
8961	;;
8962    esac
8963  fi
8964  rm -rf conftest*
8965  ;;
8966*-*-irix6*)
8967  # Find out what ABI is being produced by ac_compile, and set linker
8968  # options accordingly.
8969  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8970  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8971  (eval $ac_compile) 2>&5
8972  ac_status=$?
8973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8974  test $ac_status = 0; }; then
8975    if test yes = "$lt_cv_prog_gnu_ld"; then
8976      case `/usr/bin/file conftest.$ac_objext` in
8977	*32-bit*)
8978	  LD="${LD-ld} -melf32bsmip"
8979	  ;;
8980	*N32*)
8981	  LD="${LD-ld} -melf32bmipn32"
8982	  ;;
8983	*64-bit*)
8984	  LD="${LD-ld} -melf64bmip"
8985	;;
8986      esac
8987    else
8988      case `/usr/bin/file conftest.$ac_objext` in
8989	*32-bit*)
8990	  LD="${LD-ld} -32"
8991	  ;;
8992	*N32*)
8993	  LD="${LD-ld} -n32"
8994	  ;;
8995	*64-bit*)
8996	  LD="${LD-ld} -64"
8997	  ;;
8998      esac
8999    fi
9000  fi
9001  rm -rf conftest*
9002  ;;
9003
9004mips64*-*linux*)
9005  # Find out what ABI is being produced by ac_compile, and set linker
9006  # options accordingly.
9007  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9008  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9009  (eval $ac_compile) 2>&5
9010  ac_status=$?
9011  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9012  test $ac_status = 0; }; then
9013    emul=elf
9014    case `/usr/bin/file conftest.$ac_objext` in
9015      *32-bit*)
9016	emul="${emul}32"
9017	;;
9018      *64-bit*)
9019	emul="${emul}64"
9020	;;
9021    esac
9022    case `/usr/bin/file conftest.$ac_objext` in
9023      *MSB*)
9024	emul="${emul}btsmip"
9025	;;
9026      *LSB*)
9027	emul="${emul}ltsmip"
9028	;;
9029    esac
9030    case `/usr/bin/file conftest.$ac_objext` in
9031      *N32*)
9032	emul="${emul}n32"
9033	;;
9034    esac
9035    LD="${LD-ld} -m $emul"
9036  fi
9037  rm -rf conftest*
9038  ;;
9039
9040x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9041s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9042  # Find out what ABI is being produced by ac_compile, and set linker
9043  # options accordingly.  Note that the listed cases only cover the
9044  # situations where additional linker options are needed (such as when
9045  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9046  # vice versa); the common cases where no linker options are needed do
9047  # not appear in the list.
9048  echo 'int i;' > conftest.$ac_ext
9049  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9050  (eval $ac_compile) 2>&5
9051  ac_status=$?
9052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9053  test $ac_status = 0; }; then
9054    case `/usr/bin/file conftest.o` in
9055      *32-bit*)
9056	case $host in
9057	  x86_64-*kfreebsd*-gnu)
9058	    LD="${LD-ld} -m elf_i386_fbsd"
9059	    ;;
9060	  x86_64-*linux*)
9061	    case `/usr/bin/file conftest.o` in
9062	      *x86-64*)
9063		LD="${LD-ld} -m elf32_x86_64"
9064		;;
9065	      *)
9066		LD="${LD-ld} -m elf_i386"
9067		;;
9068	    esac
9069	    ;;
9070	  powerpc64le-*linux*)
9071	    LD="${LD-ld} -m elf32lppclinux"
9072	    ;;
9073	  powerpc64-*linux*)
9074	    LD="${LD-ld} -m elf32ppclinux"
9075	    ;;
9076	  s390x-*linux*)
9077	    LD="${LD-ld} -m elf_s390"
9078	    ;;
9079	  sparc64-*linux*)
9080	    LD="${LD-ld} -m elf32_sparc"
9081	    ;;
9082	esac
9083	;;
9084      *64-bit*)
9085	case $host in
9086	  x86_64-*kfreebsd*-gnu)
9087	    LD="${LD-ld} -m elf_x86_64_fbsd"
9088	    ;;
9089	  x86_64-*linux*)
9090	    LD="${LD-ld} -m elf_x86_64"
9091	    ;;
9092	  powerpcle-*linux*)
9093	    LD="${LD-ld} -m elf64lppc"
9094	    ;;
9095	  powerpc-*linux*)
9096	    LD="${LD-ld} -m elf64ppc"
9097	    ;;
9098	  s390*-*linux*|s390*-*tpf*)
9099	    LD="${LD-ld} -m elf64_s390"
9100	    ;;
9101	  sparc*-*linux*)
9102	    LD="${LD-ld} -m elf64_sparc"
9103	    ;;
9104	esac
9105	;;
9106    esac
9107  fi
9108  rm -rf conftest*
9109  ;;
9110
9111*-*-sco3.2v5*)
9112  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9113  SAVE_CFLAGS=$CFLAGS
9114  CFLAGS="$CFLAGS -belf"
9115  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9116$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9117if ${lt_cv_cc_needs_belf+:} false; then :
9118  $as_echo_n "(cached) " >&6
9119else
9120  ac_ext=c
9121ac_cpp='$CPP $CPPFLAGS'
9122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9124ac_compiler_gnu=$ac_cv_c_compiler_gnu
9125
9126     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127/* end confdefs.h.  */
9128
9129int
9130main ()
9131{
9132
9133  ;
9134  return 0;
9135}
9136_ACEOF
9137if ac_fn_c_try_link "$LINENO"; then :
9138  lt_cv_cc_needs_belf=yes
9139else
9140  lt_cv_cc_needs_belf=no
9141fi
9142rm -f core conftest.err conftest.$ac_objext \
9143    conftest$ac_exeext conftest.$ac_ext
9144     ac_ext=c
9145ac_cpp='$CPP $CPPFLAGS'
9146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9148ac_compiler_gnu=$ac_cv_c_compiler_gnu
9149
9150fi
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9152$as_echo "$lt_cv_cc_needs_belf" >&6; }
9153  if test yes != "$lt_cv_cc_needs_belf"; then
9154    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9155    CFLAGS=$SAVE_CFLAGS
9156  fi
9157  ;;
9158*-*solaris*)
9159  # Find out what ABI is being produced by ac_compile, and set linker
9160  # options accordingly.
9161  echo 'int i;' > conftest.$ac_ext
9162  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9163  (eval $ac_compile) 2>&5
9164  ac_status=$?
9165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9166  test $ac_status = 0; }; then
9167    case `/usr/bin/file conftest.o` in
9168    *64-bit*)
9169      case $lt_cv_prog_gnu_ld in
9170      yes*)
9171        case $host in
9172        i?86-*-solaris*|x86_64-*-solaris*)
9173          LD="${LD-ld} -m elf_x86_64"
9174          ;;
9175        sparc*-*-solaris*)
9176          LD="${LD-ld} -m elf64_sparc"
9177          ;;
9178        esac
9179        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
9180        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9181          LD=${LD-ld}_sol2
9182        fi
9183        ;;
9184      *)
9185	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9186	  LD="${LD-ld} -64"
9187	fi
9188	;;
9189      esac
9190      ;;
9191    esac
9192  fi
9193  rm -rf conftest*
9194  ;;
9195esac
9196
9197need_locks=$enable_libtool_lock
9198
9199if test -n "$ac_tool_prefix"; then
9200  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9201set dummy ${ac_tool_prefix}mt; ac_word=$2
9202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203$as_echo_n "checking for $ac_word... " >&6; }
9204if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9205  $as_echo_n "(cached) " >&6
9206else
9207  if test -n "$MANIFEST_TOOL"; then
9208  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9209else
9210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211for as_dir in $PATH
9212do
9213  IFS=$as_save_IFS
9214  test -z "$as_dir" && as_dir=.
9215    for ac_exec_ext in '' $ac_executable_extensions; do
9216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9217    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9219    break 2
9220  fi
9221done
9222  done
9223IFS=$as_save_IFS
9224
9225fi
9226fi
9227MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9228if test -n "$MANIFEST_TOOL"; then
9229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9230$as_echo "$MANIFEST_TOOL" >&6; }
9231else
9232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233$as_echo "no" >&6; }
9234fi
9235
9236
9237fi
9238if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9239  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9240  # Extract the first word of "mt", so it can be a program name with args.
9241set dummy mt; ac_word=$2
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243$as_echo_n "checking for $ac_word... " >&6; }
9244if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9245  $as_echo_n "(cached) " >&6
9246else
9247  if test -n "$ac_ct_MANIFEST_TOOL"; then
9248  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9249else
9250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251for as_dir in $PATH
9252do
9253  IFS=$as_save_IFS
9254  test -z "$as_dir" && as_dir=.
9255    for ac_exec_ext in '' $ac_executable_extensions; do
9256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9257    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259    break 2
9260  fi
9261done
9262  done
9263IFS=$as_save_IFS
9264
9265fi
9266fi
9267ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9268if test -n "$ac_ct_MANIFEST_TOOL"; then
9269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9270$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9271else
9272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273$as_echo "no" >&6; }
9274fi
9275
9276  if test "x$ac_ct_MANIFEST_TOOL" = x; then
9277    MANIFEST_TOOL=":"
9278  else
9279    case $cross_compiling:$ac_tool_warned in
9280yes:)
9281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9283ac_tool_warned=yes ;;
9284esac
9285    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9286  fi
9287else
9288  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9289fi
9290
9291test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9293$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9294if ${lt_cv_path_mainfest_tool+:} false; then :
9295  $as_echo_n "(cached) " >&6
9296else
9297  lt_cv_path_mainfest_tool=no
9298  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9299  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9300  cat conftest.err >&5
9301  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9302    lt_cv_path_mainfest_tool=yes
9303  fi
9304  rm -f conftest*
9305fi
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9307$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9308if test yes != "$lt_cv_path_mainfest_tool"; then
9309  MANIFEST_TOOL=:
9310fi
9311
9312
9313
9314
9315
9316
9317  case $host_os in
9318    rhapsody* | darwin*)
9319    if test -n "$ac_tool_prefix"; then
9320  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9321set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9323$as_echo_n "checking for $ac_word... " >&6; }
9324if ${ac_cv_prog_DSYMUTIL+:} false; then :
9325  $as_echo_n "(cached) " >&6
9326else
9327  if test -n "$DSYMUTIL"; then
9328  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9329else
9330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331for as_dir in $PATH
9332do
9333  IFS=$as_save_IFS
9334  test -z "$as_dir" && as_dir=.
9335    for ac_exec_ext in '' $ac_executable_extensions; do
9336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9337    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9339    break 2
9340  fi
9341done
9342  done
9343IFS=$as_save_IFS
9344
9345fi
9346fi
9347DSYMUTIL=$ac_cv_prog_DSYMUTIL
9348if test -n "$DSYMUTIL"; then
9349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9350$as_echo "$DSYMUTIL" >&6; }
9351else
9352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353$as_echo "no" >&6; }
9354fi
9355
9356
9357fi
9358if test -z "$ac_cv_prog_DSYMUTIL"; then
9359  ac_ct_DSYMUTIL=$DSYMUTIL
9360  # Extract the first word of "dsymutil", so it can be a program name with args.
9361set dummy dsymutil; ac_word=$2
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363$as_echo_n "checking for $ac_word... " >&6; }
9364if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9365  $as_echo_n "(cached) " >&6
9366else
9367  if test -n "$ac_ct_DSYMUTIL"; then
9368  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9369else
9370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9371for as_dir in $PATH
9372do
9373  IFS=$as_save_IFS
9374  test -z "$as_dir" && as_dir=.
9375    for ac_exec_ext in '' $ac_executable_extensions; do
9376  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9377    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9379    break 2
9380  fi
9381done
9382  done
9383IFS=$as_save_IFS
9384
9385fi
9386fi
9387ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9388if test -n "$ac_ct_DSYMUTIL"; then
9389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9390$as_echo "$ac_ct_DSYMUTIL" >&6; }
9391else
9392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393$as_echo "no" >&6; }
9394fi
9395
9396  if test "x$ac_ct_DSYMUTIL" = x; then
9397    DSYMUTIL=":"
9398  else
9399    case $cross_compiling:$ac_tool_warned in
9400yes:)
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9403ac_tool_warned=yes ;;
9404esac
9405    DSYMUTIL=$ac_ct_DSYMUTIL
9406  fi
9407else
9408  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9409fi
9410
9411    if test -n "$ac_tool_prefix"; then
9412  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9413set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415$as_echo_n "checking for $ac_word... " >&6; }
9416if ${ac_cv_prog_NMEDIT+:} false; then :
9417  $as_echo_n "(cached) " >&6
9418else
9419  if test -n "$NMEDIT"; then
9420  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9421else
9422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423for as_dir in $PATH
9424do
9425  IFS=$as_save_IFS
9426  test -z "$as_dir" && as_dir=.
9427    for ac_exec_ext in '' $ac_executable_extensions; do
9428  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9429    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9430    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9431    break 2
9432  fi
9433done
9434  done
9435IFS=$as_save_IFS
9436
9437fi
9438fi
9439NMEDIT=$ac_cv_prog_NMEDIT
9440if test -n "$NMEDIT"; then
9441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9442$as_echo "$NMEDIT" >&6; }
9443else
9444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445$as_echo "no" >&6; }
9446fi
9447
9448
9449fi
9450if test -z "$ac_cv_prog_NMEDIT"; then
9451  ac_ct_NMEDIT=$NMEDIT
9452  # Extract the first word of "nmedit", so it can be a program name with args.
9453set dummy nmedit; ac_word=$2
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455$as_echo_n "checking for $ac_word... " >&6; }
9456if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9457  $as_echo_n "(cached) " >&6
9458else
9459  if test -n "$ac_ct_NMEDIT"; then
9460  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9461else
9462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463for as_dir in $PATH
9464do
9465  IFS=$as_save_IFS
9466  test -z "$as_dir" && as_dir=.
9467    for ac_exec_ext in '' $ac_executable_extensions; do
9468  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9469    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471    break 2
9472  fi
9473done
9474  done
9475IFS=$as_save_IFS
9476
9477fi
9478fi
9479ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9480if test -n "$ac_ct_NMEDIT"; then
9481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9482$as_echo "$ac_ct_NMEDIT" >&6; }
9483else
9484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485$as_echo "no" >&6; }
9486fi
9487
9488  if test "x$ac_ct_NMEDIT" = x; then
9489    NMEDIT=":"
9490  else
9491    case $cross_compiling:$ac_tool_warned in
9492yes:)
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9495ac_tool_warned=yes ;;
9496esac
9497    NMEDIT=$ac_ct_NMEDIT
9498  fi
9499else
9500  NMEDIT="$ac_cv_prog_NMEDIT"
9501fi
9502
9503    if test -n "$ac_tool_prefix"; then
9504  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9505set dummy ${ac_tool_prefix}lipo; ac_word=$2
9506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9507$as_echo_n "checking for $ac_word... " >&6; }
9508if ${ac_cv_prog_LIPO+:} false; then :
9509  $as_echo_n "(cached) " >&6
9510else
9511  if test -n "$LIPO"; then
9512  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9513else
9514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515for as_dir in $PATH
9516do
9517  IFS=$as_save_IFS
9518  test -z "$as_dir" && as_dir=.
9519    for ac_exec_ext in '' $ac_executable_extensions; do
9520  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9521    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9522    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9523    break 2
9524  fi
9525done
9526  done
9527IFS=$as_save_IFS
9528
9529fi
9530fi
9531LIPO=$ac_cv_prog_LIPO
9532if test -n "$LIPO"; then
9533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9534$as_echo "$LIPO" >&6; }
9535else
9536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9537$as_echo "no" >&6; }
9538fi
9539
9540
9541fi
9542if test -z "$ac_cv_prog_LIPO"; then
9543  ac_ct_LIPO=$LIPO
9544  # Extract the first word of "lipo", so it can be a program name with args.
9545set dummy lipo; ac_word=$2
9546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9547$as_echo_n "checking for $ac_word... " >&6; }
9548if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9549  $as_echo_n "(cached) " >&6
9550else
9551  if test -n "$ac_ct_LIPO"; then
9552  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9553else
9554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555for as_dir in $PATH
9556do
9557  IFS=$as_save_IFS
9558  test -z "$as_dir" && as_dir=.
9559    for ac_exec_ext in '' $ac_executable_extensions; do
9560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9561    ac_cv_prog_ac_ct_LIPO="lipo"
9562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9563    break 2
9564  fi
9565done
9566  done
9567IFS=$as_save_IFS
9568
9569fi
9570fi
9571ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9572if test -n "$ac_ct_LIPO"; then
9573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9574$as_echo "$ac_ct_LIPO" >&6; }
9575else
9576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9577$as_echo "no" >&6; }
9578fi
9579
9580  if test "x$ac_ct_LIPO" = x; then
9581    LIPO=":"
9582  else
9583    case $cross_compiling:$ac_tool_warned in
9584yes:)
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9587ac_tool_warned=yes ;;
9588esac
9589    LIPO=$ac_ct_LIPO
9590  fi
9591else
9592  LIPO="$ac_cv_prog_LIPO"
9593fi
9594
9595    if test -n "$ac_tool_prefix"; then
9596  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9597set dummy ${ac_tool_prefix}otool; ac_word=$2
9598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9599$as_echo_n "checking for $ac_word... " >&6; }
9600if ${ac_cv_prog_OTOOL+:} false; then :
9601  $as_echo_n "(cached) " >&6
9602else
9603  if test -n "$OTOOL"; then
9604  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9605else
9606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607for as_dir in $PATH
9608do
9609  IFS=$as_save_IFS
9610  test -z "$as_dir" && as_dir=.
9611    for ac_exec_ext in '' $ac_executable_extensions; do
9612  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9613    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9614    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9615    break 2
9616  fi
9617done
9618  done
9619IFS=$as_save_IFS
9620
9621fi
9622fi
9623OTOOL=$ac_cv_prog_OTOOL
9624if test -n "$OTOOL"; then
9625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9626$as_echo "$OTOOL" >&6; }
9627else
9628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9629$as_echo "no" >&6; }
9630fi
9631
9632
9633fi
9634if test -z "$ac_cv_prog_OTOOL"; then
9635  ac_ct_OTOOL=$OTOOL
9636  # Extract the first word of "otool", so it can be a program name with args.
9637set dummy otool; ac_word=$2
9638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9639$as_echo_n "checking for $ac_word... " >&6; }
9640if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9641  $as_echo_n "(cached) " >&6
9642else
9643  if test -n "$ac_ct_OTOOL"; then
9644  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9645else
9646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9647for as_dir in $PATH
9648do
9649  IFS=$as_save_IFS
9650  test -z "$as_dir" && as_dir=.
9651    for ac_exec_ext in '' $ac_executable_extensions; do
9652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9653    ac_cv_prog_ac_ct_OTOOL="otool"
9654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9655    break 2
9656  fi
9657done
9658  done
9659IFS=$as_save_IFS
9660
9661fi
9662fi
9663ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9664if test -n "$ac_ct_OTOOL"; then
9665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9666$as_echo "$ac_ct_OTOOL" >&6; }
9667else
9668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669$as_echo "no" >&6; }
9670fi
9671
9672  if test "x$ac_ct_OTOOL" = x; then
9673    OTOOL=":"
9674  else
9675    case $cross_compiling:$ac_tool_warned in
9676yes:)
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9679ac_tool_warned=yes ;;
9680esac
9681    OTOOL=$ac_ct_OTOOL
9682  fi
9683else
9684  OTOOL="$ac_cv_prog_OTOOL"
9685fi
9686
9687    if test -n "$ac_tool_prefix"; then
9688  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9689set dummy ${ac_tool_prefix}otool64; ac_word=$2
9690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9691$as_echo_n "checking for $ac_word... " >&6; }
9692if ${ac_cv_prog_OTOOL64+:} false; then :
9693  $as_echo_n "(cached) " >&6
9694else
9695  if test -n "$OTOOL64"; then
9696  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9697else
9698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9699for as_dir in $PATH
9700do
9701  IFS=$as_save_IFS
9702  test -z "$as_dir" && as_dir=.
9703    for ac_exec_ext in '' $ac_executable_extensions; do
9704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9705    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9707    break 2
9708  fi
9709done
9710  done
9711IFS=$as_save_IFS
9712
9713fi
9714fi
9715OTOOL64=$ac_cv_prog_OTOOL64
9716if test -n "$OTOOL64"; then
9717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9718$as_echo "$OTOOL64" >&6; }
9719else
9720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9721$as_echo "no" >&6; }
9722fi
9723
9724
9725fi
9726if test -z "$ac_cv_prog_OTOOL64"; then
9727  ac_ct_OTOOL64=$OTOOL64
9728  # Extract the first word of "otool64", so it can be a program name with args.
9729set dummy otool64; ac_word=$2
9730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731$as_echo_n "checking for $ac_word... " >&6; }
9732if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9733  $as_echo_n "(cached) " >&6
9734else
9735  if test -n "$ac_ct_OTOOL64"; then
9736  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9737else
9738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739for as_dir in $PATH
9740do
9741  IFS=$as_save_IFS
9742  test -z "$as_dir" && as_dir=.
9743    for ac_exec_ext in '' $ac_executable_extensions; do
9744  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9745    ac_cv_prog_ac_ct_OTOOL64="otool64"
9746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9747    break 2
9748  fi
9749done
9750  done
9751IFS=$as_save_IFS
9752
9753fi
9754fi
9755ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9756if test -n "$ac_ct_OTOOL64"; then
9757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9758$as_echo "$ac_ct_OTOOL64" >&6; }
9759else
9760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761$as_echo "no" >&6; }
9762fi
9763
9764  if test "x$ac_ct_OTOOL64" = x; then
9765    OTOOL64=":"
9766  else
9767    case $cross_compiling:$ac_tool_warned in
9768yes:)
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9771ac_tool_warned=yes ;;
9772esac
9773    OTOOL64=$ac_ct_OTOOL64
9774  fi
9775else
9776  OTOOL64="$ac_cv_prog_OTOOL64"
9777fi
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9806$as_echo_n "checking for -single_module linker flag... " >&6; }
9807if ${lt_cv_apple_cc_single_mod+:} false; then :
9808  $as_echo_n "(cached) " >&6
9809else
9810  lt_cv_apple_cc_single_mod=no
9811      if test -z "$LT_MULTI_MODULE"; then
9812	# By default we will add the -single_module flag. You can override
9813	# by either setting the environment variable LT_MULTI_MODULE
9814	# non-empty at configure time, or by adding -multi_module to the
9815	# link flags.
9816	rm -rf libconftest.dylib*
9817	echo "int foo(void){return 1;}" > conftest.c
9818	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9819-dynamiclib -Wl,-single_module conftest.c" >&5
9820	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9821	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9822        _lt_result=$?
9823	# If there is a non-empty error log, and "single_module"
9824	# appears in it, assume the flag caused a linker warning
9825        if test -s conftest.err && $GREP single_module conftest.err; then
9826	  cat conftest.err >&5
9827	# Otherwise, if the output was created with a 0 exit code from
9828	# the compiler, it worked.
9829	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9830	  lt_cv_apple_cc_single_mod=yes
9831	else
9832	  cat conftest.err >&5
9833	fi
9834	rm -rf libconftest.dylib*
9835	rm -f conftest.*
9836      fi
9837fi
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9839$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9840
9841    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9842$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9843if ${lt_cv_ld_exported_symbols_list+:} false; then :
9844  $as_echo_n "(cached) " >&6
9845else
9846  lt_cv_ld_exported_symbols_list=no
9847      save_LDFLAGS=$LDFLAGS
9848      echo "_main" > conftest.sym
9849      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9850      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851/* end confdefs.h.  */
9852
9853int
9854main ()
9855{
9856
9857  ;
9858  return 0;
9859}
9860_ACEOF
9861if ac_fn_c_try_link "$LINENO"; then :
9862  lt_cv_ld_exported_symbols_list=yes
9863else
9864  lt_cv_ld_exported_symbols_list=no
9865fi
9866rm -f core conftest.err conftest.$ac_objext \
9867    conftest$ac_exeext conftest.$ac_ext
9868	LDFLAGS=$save_LDFLAGS
9869
9870fi
9871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9872$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9873
9874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9875$as_echo_n "checking for -force_load linker flag... " >&6; }
9876if ${lt_cv_ld_force_load+:} false; then :
9877  $as_echo_n "(cached) " >&6
9878else
9879  lt_cv_ld_force_load=no
9880      cat > conftest.c << _LT_EOF
9881int forced_loaded() { return 2;}
9882_LT_EOF
9883      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9884      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9885      echo "$AR cru libconftest.a conftest.o" >&5
9886      $AR cru libconftest.a conftest.o 2>&5
9887      echo "$RANLIB libconftest.a" >&5
9888      $RANLIB libconftest.a 2>&5
9889      cat > conftest.c << _LT_EOF
9890int main() { return 0;}
9891_LT_EOF
9892      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9893      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9894      _lt_result=$?
9895      if test -s conftest.err && $GREP force_load conftest.err; then
9896	cat conftest.err >&5
9897      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9898	lt_cv_ld_force_load=yes
9899      else
9900	cat conftest.err >&5
9901      fi
9902        rm -f conftest.err libconftest.a conftest conftest.c
9903        rm -rf conftest.dSYM
9904
9905fi
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9907$as_echo "$lt_cv_ld_force_load" >&6; }
9908    case $host_os in
9909    rhapsody* | darwin1.[012])
9910      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9911    darwin1.*)
9912      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9913    darwin*) # darwin 5.x on
9914      # if running on 10.5 or later, the deployment target defaults
9915      # to the OS version, if on x86, and 10.4, the deployment
9916      # target defaults to 10.4. Don't you love it?
9917      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9918	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9919	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9920	10.[012][,.]*)
9921	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9922	10.*)
9923	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9924      esac
9925    ;;
9926  esac
9927    if test yes = "$lt_cv_apple_cc_single_mod"; then
9928      _lt_dar_single_mod='$single_module'
9929    fi
9930    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9931      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9932    else
9933      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9934    fi
9935    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9936      _lt_dsymutil='~$DSYMUTIL $lib || :'
9937    else
9938      _lt_dsymutil=
9939    fi
9940    ;;
9941  esac
9942
9943# func_munge_path_list VARIABLE PATH
9944# -----------------------------------
9945# VARIABLE is name of variable containing _space_ separated list of
9946# directories to be munged by the contents of PATH, which is string
9947# having a format:
9948# "DIR[:DIR]:"
9949#       string "DIR[ DIR]" will be prepended to VARIABLE
9950# ":DIR[:DIR]"
9951#       string "DIR[ DIR]" will be appended to VARIABLE
9952# "DIRP[:DIRP]::[DIRA:]DIRA"
9953#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9954#       "DIRA[ DIRA]" will be appended to VARIABLE
9955# "DIR[:DIR]"
9956#       VARIABLE will be replaced by "DIR[ DIR]"
9957func_munge_path_list ()
9958{
9959    case x$2 in
9960    x)
9961        ;;
9962    *:)
9963        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9964        ;;
9965    x:*)
9966        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9967        ;;
9968    *::*)
9969        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9970        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9971        ;;
9972    *)
9973        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9974        ;;
9975    esac
9976}
9977
9978for ac_header in dlfcn.h
9979do :
9980  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9981"
9982if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9983  cat >>confdefs.h <<_ACEOF
9984#define HAVE_DLFCN_H 1
9985_ACEOF
9986
9987fi
9988
9989done
9990
9991
9992
9993
9994
9995# Set options
9996
9997
9998
9999        enable_dlopen=no
10000
10001
10002  enable_win32_dll=no
10003
10004
10005
10006
10007
10008# Check whether --with-pic was given.
10009if test "${with_pic+set}" = set; then :
10010  withval=$with_pic; lt_p=${PACKAGE-default}
10011    case $withval in
10012    yes|no) pic_mode=$withval ;;
10013    *)
10014      pic_mode=default
10015      # Look at the argument we got.  We use all the common list separators.
10016      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10017      for lt_pkg in $withval; do
10018	IFS=$lt_save_ifs
10019	if test "X$lt_pkg" = "X$lt_p"; then
10020	  pic_mode=yes
10021	fi
10022      done
10023      IFS=$lt_save_ifs
10024      ;;
10025    esac
10026else
10027  pic_mode=default
10028fi
10029
10030
10031
10032
10033
10034
10035
10036
10037  # Check whether --enable-fast-install was given.
10038if test "${enable_fast_install+set}" = set; then :
10039  enableval=$enable_fast_install; p=${PACKAGE-default}
10040    case $enableval in
10041    yes) enable_fast_install=yes ;;
10042    no) enable_fast_install=no ;;
10043    *)
10044      enable_fast_install=no
10045      # Look at the argument we got.  We use all the common list separators.
10046      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10047      for pkg in $enableval; do
10048	IFS=$lt_save_ifs
10049	if test "X$pkg" = "X$p"; then
10050	  enable_fast_install=yes
10051	fi
10052      done
10053      IFS=$lt_save_ifs
10054      ;;
10055    esac
10056else
10057  enable_fast_install=yes
10058fi
10059
10060
10061
10062
10063
10064
10065
10066
10067  shared_archive_member_spec=
10068case $host,$enable_shared in
10069power*-*-aix[5-9]*,yes)
10070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10071$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10072
10073# Check whether --with-aix-soname was given.
10074if test "${with_aix_soname+set}" = set; then :
10075  withval=$with_aix_soname; case $withval in
10076    aix|svr4|both)
10077      ;;
10078    *)
10079      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10080      ;;
10081    esac
10082    lt_cv_with_aix_soname=$with_aix_soname
10083else
10084  if ${lt_cv_with_aix_soname+:} false; then :
10085  $as_echo_n "(cached) " >&6
10086else
10087  lt_cv_with_aix_soname=aix
10088fi
10089
10090    with_aix_soname=$lt_cv_with_aix_soname
10091fi
10092
10093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10094$as_echo "$with_aix_soname" >&6; }
10095  if test aix != "$with_aix_soname"; then
10096    # For the AIX way of multilib, we name the shared archive member
10097    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10098    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10099    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10100    # the AIX toolchain works better with OBJECT_MODE set (default 32).
10101    if test 64 = "${OBJECT_MODE-32}"; then
10102      shared_archive_member_spec=shr_64
10103    else
10104      shared_archive_member_spec=shr
10105    fi
10106  fi
10107  ;;
10108*)
10109  with_aix_soname=aix
10110  ;;
10111esac
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122# This can be used to rebuild libtool when needed
10123LIBTOOL_DEPS=$ltmain
10124
10125# Always use our own libtool.
10126LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157test -z "$LN_S" && LN_S="ln -s"
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172if test -n "${ZSH_VERSION+set}"; then
10173   setopt NO_GLOB_SUBST
10174fi
10175
10176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10177$as_echo_n "checking for objdir... " >&6; }
10178if ${lt_cv_objdir+:} false; then :
10179  $as_echo_n "(cached) " >&6
10180else
10181  rm -f .libs 2>/dev/null
10182mkdir .libs 2>/dev/null
10183if test -d .libs; then
10184  lt_cv_objdir=.libs
10185else
10186  # MS-DOS does not allow filenames that begin with a dot.
10187  lt_cv_objdir=_libs
10188fi
10189rmdir .libs 2>/dev/null
10190fi
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10192$as_echo "$lt_cv_objdir" >&6; }
10193objdir=$lt_cv_objdir
10194
10195
10196
10197
10198
10199cat >>confdefs.h <<_ACEOF
10200#define LT_OBJDIR "$lt_cv_objdir/"
10201_ACEOF
10202
10203
10204
10205
10206case $host_os in
10207aix3*)
10208  # AIX sometimes has problems with the GCC collect2 program.  For some
10209  # reason, if we set the COLLECT_NAMES environment variable, the problems
10210  # vanish in a puff of smoke.
10211  if test set != "${COLLECT_NAMES+set}"; then
10212    COLLECT_NAMES=
10213    export COLLECT_NAMES
10214  fi
10215  ;;
10216esac
10217
10218# Global variables:
10219ofile=libtool
10220can_build_shared=yes
10221
10222# All known linkers require a '.a' archive for static linking (except MSVC,
10223# which needs '.lib').
10224libext=a
10225
10226with_gnu_ld=$lt_cv_prog_gnu_ld
10227
10228old_CC=$CC
10229old_CFLAGS=$CFLAGS
10230
10231# Set sane defaults for various variables
10232test -z "$CC" && CC=cc
10233test -z "$LTCC" && LTCC=$CC
10234test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10235test -z "$LD" && LD=ld
10236test -z "$ac_objext" && ac_objext=o
10237
10238func_cc_basename $compiler
10239cc_basename=$func_cc_basename_result
10240
10241
10242# Only perform the check for file, if the check method requires it
10243test -z "$MAGIC_CMD" && MAGIC_CMD=file
10244case $deplibs_check_method in
10245file_magic*)
10246  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10248$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10249if ${lt_cv_path_MAGIC_CMD+:} false; then :
10250  $as_echo_n "(cached) " >&6
10251else
10252  case $MAGIC_CMD in
10253[\\/*] |  ?:[\\/]*)
10254  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10255  ;;
10256*)
10257  lt_save_MAGIC_CMD=$MAGIC_CMD
10258  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10259  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10260  for ac_dir in $ac_dummy; do
10261    IFS=$lt_save_ifs
10262    test -z "$ac_dir" && ac_dir=.
10263    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10264      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10265      if test -n "$file_magic_test_file"; then
10266	case $deplibs_check_method in
10267	"file_magic "*)
10268	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10269	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10270	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10271	    $EGREP "$file_magic_regex" > /dev/null; then
10272	    :
10273	  else
10274	    cat <<_LT_EOF 1>&2
10275
10276*** Warning: the command libtool uses to detect shared libraries,
10277*** $file_magic_cmd, produces output that libtool cannot recognize.
10278*** The result is that libtool may fail to recognize shared libraries
10279*** as such.  This will affect the creation of libtool libraries that
10280*** depend on shared libraries, but programs linked with such libtool
10281*** libraries will work regardless of this problem.  Nevertheless, you
10282*** may want to report the problem to your system manager and/or to
10283*** bug-libtool@gnu.org
10284
10285_LT_EOF
10286	  fi ;;
10287	esac
10288      fi
10289      break
10290    fi
10291  done
10292  IFS=$lt_save_ifs
10293  MAGIC_CMD=$lt_save_MAGIC_CMD
10294  ;;
10295esac
10296fi
10297
10298MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10299if test -n "$MAGIC_CMD"; then
10300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10301$as_echo "$MAGIC_CMD" >&6; }
10302else
10303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304$as_echo "no" >&6; }
10305fi
10306
10307
10308
10309
10310
10311if test -z "$lt_cv_path_MAGIC_CMD"; then
10312  if test -n "$ac_tool_prefix"; then
10313    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10314$as_echo_n "checking for file... " >&6; }
10315if ${lt_cv_path_MAGIC_CMD+:} false; then :
10316  $as_echo_n "(cached) " >&6
10317else
10318  case $MAGIC_CMD in
10319[\\/*] |  ?:[\\/]*)
10320  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10321  ;;
10322*)
10323  lt_save_MAGIC_CMD=$MAGIC_CMD
10324  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10325  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10326  for ac_dir in $ac_dummy; do
10327    IFS=$lt_save_ifs
10328    test -z "$ac_dir" && ac_dir=.
10329    if test -f "$ac_dir/file"; then
10330      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10331      if test -n "$file_magic_test_file"; then
10332	case $deplibs_check_method in
10333	"file_magic "*)
10334	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10335	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10336	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10337	    $EGREP "$file_magic_regex" > /dev/null; then
10338	    :
10339	  else
10340	    cat <<_LT_EOF 1>&2
10341
10342*** Warning: the command libtool uses to detect shared libraries,
10343*** $file_magic_cmd, produces output that libtool cannot recognize.
10344*** The result is that libtool may fail to recognize shared libraries
10345*** as such.  This will affect the creation of libtool libraries that
10346*** depend on shared libraries, but programs linked with such libtool
10347*** libraries will work regardless of this problem.  Nevertheless, you
10348*** may want to report the problem to your system manager and/or to
10349*** bug-libtool@gnu.org
10350
10351_LT_EOF
10352	  fi ;;
10353	esac
10354      fi
10355      break
10356    fi
10357  done
10358  IFS=$lt_save_ifs
10359  MAGIC_CMD=$lt_save_MAGIC_CMD
10360  ;;
10361esac
10362fi
10363
10364MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10365if test -n "$MAGIC_CMD"; then
10366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10367$as_echo "$MAGIC_CMD" >&6; }
10368else
10369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370$as_echo "no" >&6; }
10371fi
10372
10373
10374  else
10375    MAGIC_CMD=:
10376  fi
10377fi
10378
10379  fi
10380  ;;
10381esac
10382
10383# Use C for the default configuration in the libtool script
10384
10385lt_save_CC=$CC
10386ac_ext=c
10387ac_cpp='$CPP $CPPFLAGS'
10388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10390ac_compiler_gnu=$ac_cv_c_compiler_gnu
10391
10392
10393# Source file extension for C test sources.
10394ac_ext=c
10395
10396# Object file extension for compiled C test sources.
10397objext=o
10398objext=$objext
10399
10400# Code to be used in simple compile tests
10401lt_simple_compile_test_code="int some_variable = 0;"
10402
10403# Code to be used in simple link tests
10404lt_simple_link_test_code='int main(){return(0);}'
10405
10406
10407
10408
10409
10410
10411
10412# If no C compiler was specified, use CC.
10413LTCC=${LTCC-"$CC"}
10414
10415# If no C compiler flags were specified, use CFLAGS.
10416LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10417
10418# Allow CC to be a program name with arguments.
10419compiler=$CC
10420
10421# Save the default compiler, since it gets overwritten when the other
10422# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10423compiler_DEFAULT=$CC
10424
10425# save warnings/boilerplate of simple test code
10426ac_outfile=conftest.$ac_objext
10427echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10428eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10429_lt_compiler_boilerplate=`cat conftest.err`
10430$RM conftest*
10431
10432ac_outfile=conftest.$ac_objext
10433echo "$lt_simple_link_test_code" >conftest.$ac_ext
10434eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10435_lt_linker_boilerplate=`cat conftest.err`
10436$RM -r conftest*
10437
10438
10439## CAVEAT EMPTOR:
10440## There is no encapsulation within the following macros, do not change
10441## the running order or otherwise move them around unless you know exactly
10442## what you are doing...
10443if test -n "$compiler"; then
10444
10445lt_prog_compiler_no_builtin_flag=
10446
10447if test yes = "$GCC"; then
10448  case $cc_basename in
10449  nvcc*)
10450    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10451  *)
10452    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10453  esac
10454
10455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10456$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10457if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10458  $as_echo_n "(cached) " >&6
10459else
10460  lt_cv_prog_compiler_rtti_exceptions=no
10461   ac_outfile=conftest.$ac_objext
10462   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10463   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10464   # Insert the option either (1) after the last *FLAGS variable, or
10465   # (2) before a word containing "conftest.", or (3) at the end.
10466   # Note that $ac_compile itself does not contain backslashes and begins
10467   # with a dollar sign (not a hyphen), so the echo should work correctly.
10468   # The option is referenced via a variable to avoid confusing sed.
10469   lt_compile=`echo "$ac_compile" | $SED \
10470   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10471   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10472   -e 's:$: $lt_compiler_flag:'`
10473   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10474   (eval "$lt_compile" 2>conftest.err)
10475   ac_status=$?
10476   cat conftest.err >&5
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   if (exit $ac_status) && test -s "$ac_outfile"; then
10479     # The compiler can only warn and ignore the option if not recognized
10480     # So say no if there are warnings other than the usual output.
10481     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10482     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10483     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10484       lt_cv_prog_compiler_rtti_exceptions=yes
10485     fi
10486   fi
10487   $RM conftest*
10488
10489fi
10490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10491$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10492
10493if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10494    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10495else
10496    :
10497fi
10498
10499fi
10500
10501
10502
10503
10504
10505
10506  lt_prog_compiler_wl=
10507lt_prog_compiler_pic=
10508lt_prog_compiler_static=
10509
10510
10511  if test yes = "$GCC"; then
10512    lt_prog_compiler_wl='-Wl,'
10513    lt_prog_compiler_static='-static'
10514
10515    case $host_os in
10516      aix*)
10517      # All AIX code is PIC.
10518      if test ia64 = "$host_cpu"; then
10519	# AIX 5 now supports IA64 processor
10520	lt_prog_compiler_static='-Bstatic'
10521      fi
10522      lt_prog_compiler_pic='-fPIC'
10523      ;;
10524
10525    amigaos*)
10526      case $host_cpu in
10527      powerpc)
10528            # see comment about AmigaOS4 .so support
10529            lt_prog_compiler_pic='-fPIC'
10530        ;;
10531      m68k)
10532            # FIXME: we need at least 68020 code to build shared libraries, but
10533            # adding the '-m68020' flag to GCC prevents building anything better,
10534            # like '-m68040'.
10535            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10536        ;;
10537      esac
10538      ;;
10539
10540    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10541      # PIC is the default for these OSes.
10542      ;;
10543
10544    mingw* | cygwin* | pw32* | os2* | cegcc*)
10545      # This hack is so that the source file can tell whether it is being
10546      # built for inclusion in a dll (and should export symbols for example).
10547      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10548      # (--disable-auto-import) libraries
10549      lt_prog_compiler_pic='-DDLL_EXPORT'
10550      case $host_os in
10551      os2*)
10552	lt_prog_compiler_static='$wl-static'
10553	;;
10554      esac
10555      ;;
10556
10557    darwin* | rhapsody*)
10558      # PIC is the default on this platform
10559      # Common symbols not allowed in MH_DYLIB files
10560      lt_prog_compiler_pic='-fno-common'
10561      ;;
10562
10563    haiku*)
10564      # PIC is the default for Haiku.
10565      # The "-static" flag exists, but is broken.
10566      lt_prog_compiler_static=
10567      ;;
10568
10569    hpux*)
10570      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10571      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10572      # sets the default TLS model and affects inlining.
10573      case $host_cpu in
10574      hppa*64*)
10575	# +Z the default
10576	;;
10577      *)
10578	lt_prog_compiler_pic='-fPIC'
10579	;;
10580      esac
10581      ;;
10582
10583    interix[3-9]*)
10584      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10585      # Instead, we relocate shared libraries at runtime.
10586      ;;
10587
10588    msdosdjgpp*)
10589      # Just because we use GCC doesn't mean we suddenly get shared libraries
10590      # on systems that don't support them.
10591      lt_prog_compiler_can_build_shared=no
10592      enable_shared=no
10593      ;;
10594
10595    *nto* | *qnx*)
10596      # QNX uses GNU C++, but need to define -shared option too, otherwise
10597      # it will coredump.
10598      lt_prog_compiler_pic='-fPIC -shared'
10599      ;;
10600
10601    sysv4*MP*)
10602      if test -d /usr/nec; then
10603	lt_prog_compiler_pic=-Kconform_pic
10604      fi
10605      ;;
10606
10607    *)
10608      lt_prog_compiler_pic='-fPIC'
10609      ;;
10610    esac
10611
10612    case $cc_basename in
10613    nvcc*) # Cuda Compiler Driver 2.2
10614      lt_prog_compiler_wl='-Xlinker '
10615      if test -n "$lt_prog_compiler_pic"; then
10616        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10617      fi
10618      ;;
10619    esac
10620  else
10621    # PORTME Check for flag to pass linker flags through the system compiler.
10622    case $host_os in
10623    aix*)
10624      lt_prog_compiler_wl='-Wl,'
10625      if test ia64 = "$host_cpu"; then
10626	# AIX 5 now supports IA64 processor
10627	lt_prog_compiler_static='-Bstatic'
10628      else
10629	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10630      fi
10631      ;;
10632
10633    darwin* | rhapsody*)
10634      # PIC is the default on this platform
10635      # Common symbols not allowed in MH_DYLIB files
10636      lt_prog_compiler_pic='-fno-common'
10637      case $cc_basename in
10638      nagfor*)
10639        # NAG Fortran compiler
10640        lt_prog_compiler_wl='-Wl,-Wl,,'
10641        lt_prog_compiler_pic='-PIC'
10642        lt_prog_compiler_static='-Bstatic'
10643        ;;
10644      esac
10645      ;;
10646
10647    mingw* | cygwin* | pw32* | os2* | cegcc*)
10648      # This hack is so that the source file can tell whether it is being
10649      # built for inclusion in a dll (and should export symbols for example).
10650      lt_prog_compiler_pic='-DDLL_EXPORT'
10651      case $host_os in
10652      os2*)
10653	lt_prog_compiler_static='$wl-static'
10654	;;
10655      esac
10656      ;;
10657
10658    hpux9* | hpux10* | hpux11*)
10659      lt_prog_compiler_wl='-Wl,'
10660      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10661      # not for PA HP-UX.
10662      case $host_cpu in
10663      hppa*64*|ia64*)
10664	# +Z the default
10665	;;
10666      *)
10667	lt_prog_compiler_pic='+Z'
10668	;;
10669      esac
10670      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10671      lt_prog_compiler_static='$wl-a ${wl}archive'
10672      ;;
10673
10674    irix5* | irix6* | nonstopux*)
10675      lt_prog_compiler_wl='-Wl,'
10676      # PIC (with -KPIC) is the default.
10677      lt_prog_compiler_static='-non_shared'
10678      ;;
10679
10680    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10681      case $cc_basename in
10682      # old Intel for x86_64, which still supported -KPIC.
10683      ecc*)
10684	lt_prog_compiler_wl='-Wl,'
10685	lt_prog_compiler_pic='-KPIC'
10686	lt_prog_compiler_static='-static'
10687        ;;
10688      # Flang compiler
10689      *flang)
10690	lt_prog_compiler_wl='-Wl,'
10691	lt_prog_compiler_pic='-fPIC -DPIC'
10692	lt_prog_compiler_static='-static'
10693        ;;
10694      # icc used to be incompatible with GCC.
10695      # ICC 10 doesn't accept -KPIC any more.
10696      icc* | ifort*)
10697	lt_prog_compiler_wl='-Wl,'
10698	lt_prog_compiler_pic='-fPIC'
10699	lt_prog_compiler_static='-static'
10700        ;;
10701      # Lahey Fortran 8.1.
10702      lf95*)
10703	lt_prog_compiler_wl='-Wl,'
10704	lt_prog_compiler_pic='--shared'
10705	lt_prog_compiler_static='--static'
10706	;;
10707      nagfor*)
10708	# NAG Fortran compiler
10709	lt_prog_compiler_wl='-Wl,-Wl,,'
10710	lt_prog_compiler_pic='-PIC'
10711	lt_prog_compiler_static='-Bstatic'
10712	;;
10713      tcc*)
10714	# Fabrice Bellard et al's Tiny C Compiler
10715	lt_prog_compiler_wl='-Wl,'
10716	lt_prog_compiler_pic='-fPIC'
10717	lt_prog_compiler_static='-static'
10718	;;
10719      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10720        # Portland Group compilers (*not* the Pentium gcc compiler,
10721	# which looks to be a dead project)
10722	lt_prog_compiler_wl='-Wl,'
10723	lt_prog_compiler_pic='-fpic'
10724	lt_prog_compiler_static='-Bstatic'
10725        ;;
10726      ccc*)
10727        lt_prog_compiler_wl='-Wl,'
10728        # All Alpha code is PIC.
10729        lt_prog_compiler_static='-non_shared'
10730        ;;
10731      xl* | bgxl* | bgf* | mpixl*)
10732	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10733	lt_prog_compiler_wl='-Wl,'
10734	lt_prog_compiler_pic='-qpic'
10735	lt_prog_compiler_static='-qstaticlink'
10736	;;
10737      *)
10738	case `$CC -V 2>&1 | sed 5q` in
10739	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10740	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10741	  lt_prog_compiler_pic='-KPIC'
10742	  lt_prog_compiler_static='-Bstatic'
10743	  lt_prog_compiler_wl=''
10744	  ;;
10745	*Sun\ F* | *Sun*Fortran* | *Studio*Fortran*)
10746	  lt_prog_compiler_pic='-KPIC'
10747	  lt_prog_compiler_static='-Bstatic'
10748	  lt_prog_compiler_wl='-Qoption ld '
10749	  ;;
10750	*Sun\ C*)
10751	  # Sun C 5.9
10752	  lt_prog_compiler_pic='-KPIC'
10753	  lt_prog_compiler_static='-Bstatic'
10754	  lt_prog_compiler_wl='-Wl,'
10755	  ;;
10756        *Intel*\ [CF]*Compiler*)
10757	  lt_prog_compiler_wl='-Wl,'
10758	  lt_prog_compiler_pic='-fPIC'
10759	  lt_prog_compiler_static='-static'
10760	  ;;
10761	*Portland\ Group*)
10762	  lt_prog_compiler_wl='-Wl,'
10763	  lt_prog_compiler_pic='-fpic'
10764	  lt_prog_compiler_static='-Bstatic'
10765	  ;;
10766	esac
10767	;;
10768      esac
10769      ;;
10770
10771    newsos6)
10772      lt_prog_compiler_pic='-KPIC'
10773      lt_prog_compiler_static='-Bstatic'
10774      ;;
10775
10776    *nto* | *qnx*)
10777      # QNX uses GNU C++, but need to define -shared option too, otherwise
10778      # it will coredump.
10779      lt_prog_compiler_pic='-fPIC -shared'
10780      ;;
10781
10782    osf3* | osf4* | osf5*)
10783      lt_prog_compiler_wl='-Wl,'
10784      # All OSF/1 code is PIC.
10785      lt_prog_compiler_static='-non_shared'
10786      ;;
10787
10788    rdos*)
10789      lt_prog_compiler_static='-non_shared'
10790      ;;
10791
10792    solaris*)
10793      lt_prog_compiler_pic='-KPIC'
10794      lt_prog_compiler_static='-Bstatic'
10795      case $cc_basename in
10796      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10797	lt_prog_compiler_wl='-Qoption ld ';;
10798      *)
10799	lt_prog_compiler_wl='-Wl,';;
10800      esac
10801      ;;
10802
10803    sunos4*)
10804      lt_prog_compiler_wl='-Qoption ld '
10805      lt_prog_compiler_pic='-PIC'
10806      lt_prog_compiler_static='-Bstatic'
10807      ;;
10808
10809    sysv4 | sysv4.2uw2* | sysv4.3*)
10810      lt_prog_compiler_wl='-Wl,'
10811      lt_prog_compiler_pic='-KPIC'
10812      lt_prog_compiler_static='-Bstatic'
10813      ;;
10814
10815    sysv4*MP*)
10816      if test -d /usr/nec; then
10817	lt_prog_compiler_pic='-Kconform_pic'
10818	lt_prog_compiler_static='-Bstatic'
10819      fi
10820      ;;
10821
10822    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10823      lt_prog_compiler_wl='-Wl,'
10824      lt_prog_compiler_pic='-KPIC'
10825      lt_prog_compiler_static='-Bstatic'
10826      ;;
10827
10828    unicos*)
10829      lt_prog_compiler_wl='-Wl,'
10830      lt_prog_compiler_can_build_shared=no
10831      ;;
10832
10833    uts4*)
10834      lt_prog_compiler_pic='-pic'
10835      lt_prog_compiler_static='-Bstatic'
10836      ;;
10837
10838    *)
10839      lt_prog_compiler_can_build_shared=no
10840      ;;
10841    esac
10842  fi
10843
10844case $host_os in
10845  # For platforms that do not support PIC, -DPIC is meaningless:
10846  *djgpp*)
10847    lt_prog_compiler_pic=
10848    ;;
10849  *)
10850    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10851    ;;
10852esac
10853
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10855$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10856if ${lt_cv_prog_compiler_pic+:} false; then :
10857  $as_echo_n "(cached) " >&6
10858else
10859  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10860fi
10861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10862$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10863lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10864
10865#
10866# Check to make sure the PIC flag actually works.
10867#
10868if test -n "$lt_prog_compiler_pic"; then
10869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10870$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10871if ${lt_cv_prog_compiler_pic_works+:} false; then :
10872  $as_echo_n "(cached) " >&6
10873else
10874  lt_cv_prog_compiler_pic_works=no
10875   ac_outfile=conftest.$ac_objext
10876   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10877   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10878   # Insert the option either (1) after the last *FLAGS variable, or
10879   # (2) before a word containing "conftest.", or (3) at the end.
10880   # Note that $ac_compile itself does not contain backslashes and begins
10881   # with a dollar sign (not a hyphen), so the echo should work correctly.
10882   # The option is referenced via a variable to avoid confusing sed.
10883   lt_compile=`echo "$ac_compile" | $SED \
10884   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10885   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10886   -e 's:$: $lt_compiler_flag:'`
10887   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10888   (eval "$lt_compile" 2>conftest.err)
10889   ac_status=$?
10890   cat conftest.err >&5
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   if (exit $ac_status) && test -s "$ac_outfile"; then
10893     # The compiler can only warn and ignore the option if not recognized
10894     # So say no if there are warnings other than the usual output.
10895     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10896     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10897     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10898       lt_cv_prog_compiler_pic_works=yes
10899     fi
10900   fi
10901   $RM conftest*
10902
10903fi
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10905$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10906
10907if test yes = "$lt_cv_prog_compiler_pic_works"; then
10908    case $lt_prog_compiler_pic in
10909     "" | " "*) ;;
10910     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10911     esac
10912else
10913    lt_prog_compiler_pic=
10914     lt_prog_compiler_can_build_shared=no
10915fi
10916
10917fi
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929#
10930# Check to make sure the static flag actually works.
10931#
10932wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10934$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10935if ${lt_cv_prog_compiler_static_works+:} false; then :
10936  $as_echo_n "(cached) " >&6
10937else
10938  lt_cv_prog_compiler_static_works=no
10939   save_LDFLAGS=$LDFLAGS
10940   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10941   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10942   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10943     # The linker can only warn and ignore the option if not recognized
10944     # So say no if there are warnings
10945     if test -s conftest.err; then
10946       # Append any errors to the config.log.
10947       cat conftest.err 1>&5
10948       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10949       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10950       if diff conftest.exp conftest.er2 >/dev/null; then
10951         lt_cv_prog_compiler_static_works=yes
10952       fi
10953     else
10954       lt_cv_prog_compiler_static_works=yes
10955     fi
10956   fi
10957   $RM -r conftest*
10958   LDFLAGS=$save_LDFLAGS
10959
10960fi
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10962$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10963
10964if test yes = "$lt_cv_prog_compiler_static_works"; then
10965    :
10966else
10967    lt_prog_compiler_static=
10968fi
10969
10970
10971
10972
10973
10974
10975
10976  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10977$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10978if ${lt_cv_prog_compiler_c_o+:} false; then :
10979  $as_echo_n "(cached) " >&6
10980else
10981  lt_cv_prog_compiler_c_o=no
10982   $RM -r conftest 2>/dev/null
10983   mkdir conftest
10984   cd conftest
10985   mkdir out
10986   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10987
10988   lt_compiler_flag="-o out/conftest2.$ac_objext"
10989   # Insert the option either (1) after the last *FLAGS variable, or
10990   # (2) before a word containing "conftest.", or (3) at the end.
10991   # Note that $ac_compile itself does not contain backslashes and begins
10992   # with a dollar sign (not a hyphen), so the echo should work correctly.
10993   lt_compile=`echo "$ac_compile" | $SED \
10994   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10995   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10996   -e 's:$: $lt_compiler_flag:'`
10997   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10998   (eval "$lt_compile" 2>out/conftest.err)
10999   ac_status=$?
11000   cat out/conftest.err >&5
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11003   then
11004     # The compiler can only warn and ignore the option if not recognized
11005     # So say no if there are warnings
11006     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11007     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11008     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11009       lt_cv_prog_compiler_c_o=yes
11010     fi
11011   fi
11012   chmod u+w . 2>&5
11013   $RM conftest*
11014   # SGI C++ compiler will create directory out/ii_files/ for
11015   # template instantiation
11016   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11017   $RM out/* && rmdir out
11018   cd ..
11019   $RM -r conftest
11020   $RM conftest*
11021
11022fi
11023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11024$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11025
11026
11027
11028
11029
11030
11031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11032$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11033if ${lt_cv_prog_compiler_c_o+:} false; then :
11034  $as_echo_n "(cached) " >&6
11035else
11036  lt_cv_prog_compiler_c_o=no
11037   $RM -r conftest 2>/dev/null
11038   mkdir conftest
11039   cd conftest
11040   mkdir out
11041   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11042
11043   lt_compiler_flag="-o out/conftest2.$ac_objext"
11044   # Insert the option either (1) after the last *FLAGS variable, or
11045   # (2) before a word containing "conftest.", or (3) at the end.
11046   # Note that $ac_compile itself does not contain backslashes and begins
11047   # with a dollar sign (not a hyphen), so the echo should work correctly.
11048   lt_compile=`echo "$ac_compile" | $SED \
11049   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11050   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11051   -e 's:$: $lt_compiler_flag:'`
11052   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11053   (eval "$lt_compile" 2>out/conftest.err)
11054   ac_status=$?
11055   cat out/conftest.err >&5
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11058   then
11059     # The compiler can only warn and ignore the option if not recognized
11060     # So say no if there are warnings
11061     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11062     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11063     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11064       lt_cv_prog_compiler_c_o=yes
11065     fi
11066   fi
11067   chmod u+w . 2>&5
11068   $RM conftest*
11069   # SGI C++ compiler will create directory out/ii_files/ for
11070   # template instantiation
11071   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11072   $RM out/* && rmdir out
11073   cd ..
11074   $RM -r conftest
11075   $RM conftest*
11076
11077fi
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11079$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11080
11081
11082
11083
11084hard_links=nottested
11085if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11086  # do not overwrite the value of need_locks provided by the user
11087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11088$as_echo_n "checking if we can lock with hard links... " >&6; }
11089  hard_links=yes
11090  $RM conftest*
11091  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11092  touch conftest.a
11093  ln conftest.a conftest.b 2>&5 || hard_links=no
11094  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11096$as_echo "$hard_links" >&6; }
11097  if test no = "$hard_links"; then
11098    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11099$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11100    need_locks=warn
11101  fi
11102else
11103  need_locks=no
11104fi
11105
11106
11107
11108
11109
11110
11111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11112$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11113
11114  runpath_var=
11115  allow_undefined_flag=
11116  always_export_symbols=no
11117  archive_cmds=
11118  archive_expsym_cmds=
11119  compiler_needs_object=no
11120  enable_shared_with_static_runtimes=no
11121  export_dynamic_flag_spec=
11122  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11123  hardcode_automatic=no
11124  hardcode_direct=no
11125  hardcode_direct_absolute=no
11126  hardcode_libdir_flag_spec=
11127  hardcode_libdir_separator=
11128  hardcode_minus_L=no
11129  hardcode_shlibpath_var=unsupported
11130  inherit_rpath=no
11131  link_all_deplibs=unknown
11132  module_cmds=
11133  module_expsym_cmds=
11134  old_archive_from_new_cmds=
11135  old_archive_from_expsyms_cmds=
11136  thread_safe_flag_spec=
11137  whole_archive_flag_spec=
11138  # include_expsyms should be a list of space-separated symbols to be *always*
11139  # included in the symbol list
11140  include_expsyms=
11141  # exclude_expsyms can be an extended regexp of symbols to exclude
11142  # it will be wrapped by ' (' and ')$', so one must not match beginning or
11143  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11144  # as well as any symbol that contains 'd'.
11145  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11146  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11147  # platforms (ab)use it in PIC code, but their linkers get confused if
11148  # the symbol is explicitly referenced.  Since portable code cannot
11149  # rely on this symbol name, it's probably fine to never include it in
11150  # preloaded symbol tables.
11151  # Exclude shared library initialization/finalization symbols.
11152  extract_expsyms_cmds=
11153
11154  case $host_os in
11155  cygwin* | mingw* | pw32* | cegcc*)
11156    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11157    # When not using gcc, we currently assume that we are using
11158    # Microsoft Visual C++.
11159    if test yes != "$GCC"; then
11160      with_gnu_ld=no
11161    fi
11162    ;;
11163  interix*)
11164    # we just hope/assume this is gcc and not c89 (= MSVC++)
11165    with_gnu_ld=yes
11166    ;;
11167  openbsd* | bitrig*)
11168    with_gnu_ld=no
11169    ;;
11170  esac
11171
11172  ld_shlibs=yes
11173
11174  # On some targets, GNU ld is compatible enough with the native linker
11175  # that we're better off using the native interface for both.
11176  lt_use_gnu_ld_interface=no
11177  if test yes = "$with_gnu_ld"; then
11178    case $host_os in
11179      aix*)
11180	# The AIX port of GNU ld has always aspired to compatibility
11181	# with the native linker.  However, as the warning in the GNU ld
11182	# block says, versions before 2.19.5* couldn't really create working
11183	# shared libraries, regardless of the interface used.
11184	case `$LD -v 2>&1` in
11185	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11186	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11187	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11188	  *)
11189	    lt_use_gnu_ld_interface=yes
11190	    ;;
11191	esac
11192	;;
11193      *)
11194	lt_use_gnu_ld_interface=yes
11195	;;
11196    esac
11197  fi
11198
11199  if test yes = "$lt_use_gnu_ld_interface"; then
11200    # If archive_cmds runs LD, not CC, wlarc should be empty
11201    wlarc='$wl'
11202
11203    # Set some defaults for GNU ld with shared library support. These
11204    # are reset later if shared libraries are not supported. Putting them
11205    # here allows them to be overridden if necessary.
11206    runpath_var=LD_RUN_PATH
11207    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11208    export_dynamic_flag_spec='$wl--export-dynamic'
11209    # ancient GNU ld didn't support --whole-archive et. al.
11210    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11211      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11212    else
11213      whole_archive_flag_spec=
11214    fi
11215    supports_anon_versioning=no
11216    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11217      *GNU\ gold*) supports_anon_versioning=yes ;;
11218      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11219      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11220      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11221      *\ 2.11.*) ;; # other 2.11 versions
11222      *) supports_anon_versioning=yes ;;
11223    esac
11224
11225    # See if GNU ld supports shared libraries.
11226    case $host_os in
11227    aix[3-9]*)
11228      # On AIX/PPC, the GNU linker is very broken
11229      if test ia64 != "$host_cpu"; then
11230	ld_shlibs=no
11231	cat <<_LT_EOF 1>&2
11232
11233*** Warning: the GNU linker, at least up to release 2.19, is reported
11234*** to be unable to reliably create shared libraries on AIX.
11235*** Therefore, libtool is disabling shared libraries support.  If you
11236*** really care for shared libraries, you may want to install binutils
11237*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11238*** You will then need to restart the configuration process.
11239
11240_LT_EOF
11241      fi
11242      ;;
11243
11244    amigaos*)
11245      case $host_cpu in
11246      powerpc)
11247            # see comment about AmigaOS4 .so support
11248            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11249            archive_expsym_cmds=''
11250        ;;
11251      m68k)
11252            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)'
11253            hardcode_libdir_flag_spec='-L$libdir'
11254            hardcode_minus_L=yes
11255        ;;
11256      esac
11257      ;;
11258
11259    beos*)
11260      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11261	allow_undefined_flag=unsupported
11262	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11263	# support --undefined.  This deserves some investigation.  FIXME
11264	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11265      else
11266	ld_shlibs=no
11267      fi
11268      ;;
11269
11270    cygwin* | mingw* | pw32* | cegcc*)
11271      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11272      # as there is no search path for DLLs.
11273      hardcode_libdir_flag_spec='-L$libdir'
11274      export_dynamic_flag_spec='$wl--export-all-symbols'
11275      allow_undefined_flag=unsupported
11276      always_export_symbols=no
11277      enable_shared_with_static_runtimes=yes
11278      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'
11279      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11280
11281      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11282        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11283	# If the export-symbols file already is a .def file, use it as
11284	# is; otherwise, prepend EXPORTS...
11285	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11286          cp $export_symbols $output_objdir/$soname.def;
11287        else
11288          echo EXPORTS > $output_objdir/$soname.def;
11289          cat $export_symbols >> $output_objdir/$soname.def;
11290        fi~
11291        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11292      else
11293	ld_shlibs=no
11294      fi
11295      ;;
11296
11297    haiku*)
11298      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11299      link_all_deplibs=yes
11300      ;;
11301
11302    os2*)
11303      hardcode_libdir_flag_spec='-L$libdir'
11304      hardcode_minus_L=yes
11305      allow_undefined_flag=unsupported
11306      shrext_cmds=.dll
11307      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11308	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11309	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11310	$ECHO EXPORTS >> $output_objdir/$libname.def~
11311	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11312	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11313	emximp -o $lib $output_objdir/$libname.def'
11314      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11315	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11316	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11317	$ECHO EXPORTS >> $output_objdir/$libname.def~
11318	prefix_cmds="$SED"~
11319	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11320	  prefix_cmds="$prefix_cmds -e 1d";
11321	fi~
11322	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11323	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11324	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11325	emximp -o $lib $output_objdir/$libname.def'
11326      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11327      enable_shared_with_static_runtimes=yes
11328      ;;
11329
11330    interix[3-9]*)
11331      hardcode_direct=no
11332      hardcode_shlibpath_var=no
11333      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11334      export_dynamic_flag_spec='$wl-E'
11335      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11336      # Instead, shared libraries are loaded at an image base (0x10000000 by
11337      # default) and relocated if they conflict, which is a slow very memory
11338      # consuming and fragmenting process.  To avoid this, we pick a random,
11339      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11340      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11341      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11342      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'
11343      ;;
11344
11345    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11346      tmp_diet=no
11347      if test linux-dietlibc = "$host_os"; then
11348	case $cc_basename in
11349	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11350	esac
11351      fi
11352      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11353	 && test no = "$tmp_diet"
11354      then
11355	tmp_addflag=' $pic_flag'
11356	tmp_sharedflag='-shared'
11357	case $cc_basename,$host_cpu in
11358        pgcc*)				# Portland Group C compiler
11359	  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'
11360	  tmp_addflag=' $pic_flag'
11361	  ;;
11362	pgf77* | pgf90* | pgf95* | pgfortran*)
11363					# Portland Group f77 and f90 compilers
11364	  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'
11365	  tmp_addflag=' $pic_flag -Mnomain' ;;
11366	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11367	  tmp_addflag=' -i_dynamic' ;;
11368	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11369	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11370	ifc* | ifort*)			# Intel Fortran compiler
11371	  tmp_addflag=' -nofor_main' ;;
11372	lf95*)				# Lahey Fortran 8.1
11373	  whole_archive_flag_spec=
11374	  tmp_sharedflag='--shared' ;;
11375        nagfor*)                        # NAGFOR 5.3
11376          tmp_sharedflag='-Wl,-shared' ;;
11377	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11378	  tmp_sharedflag='-qmkshrobj'
11379	  tmp_addflag= ;;
11380	nvcc*)	# Cuda Compiler Driver 2.2
11381	  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'
11382	  compiler_needs_object=yes
11383	  ;;
11384	esac
11385	case `$CC -V 2>&1 | sed 5q` in
11386	*Sun\ C*)			# Sun C 5.9
11387	  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'
11388	  compiler_needs_object=yes
11389	  tmp_sharedflag='-G' ;;
11390	*Sun\ F* | *Studio*Fortran*)			# Sun Fortran 8.3
11391	  tmp_sharedflag='-G' ;;
11392	esac
11393	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11394
11395        if test yes = "$supports_anon_versioning"; then
11396          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11397            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11398            echo "local: *; };" >> $output_objdir/$libname.ver~
11399            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11400        fi
11401
11402	case $cc_basename in
11403	tcc*)
11404	  export_dynamic_flag_spec='-rdynamic'
11405	  ;;
11406	xlf* | bgf* | bgxlf* | mpixlf*)
11407	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11408	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11409	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11410	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11411	  if test yes = "$supports_anon_versioning"; then
11412	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11413              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11414              echo "local: *; };" >> $output_objdir/$libname.ver~
11415              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11416	  fi
11417	  ;;
11418	esac
11419      else
11420        ld_shlibs=no
11421      fi
11422      ;;
11423
11424    netbsd*)
11425      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11426	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11427	wlarc=
11428      else
11429	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11430	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11431      fi
11432      ;;
11433
11434    solaris*)
11435      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11436	ld_shlibs=no
11437	cat <<_LT_EOF 1>&2
11438
11439*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11440*** create shared libraries on Solaris systems.  Therefore, libtool
11441*** is disabling shared libraries support.  We urge you to upgrade GNU
11442*** binutils to release 2.9.1 or newer.  Another option is to modify
11443*** your PATH or compiler configuration so that the native linker is
11444*** used, and then restart.
11445
11446_LT_EOF
11447      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11448	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11449	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11450      else
11451	ld_shlibs=no
11452      fi
11453      ;;
11454
11455    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11456      case `$LD -v 2>&1` in
11457        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11458	ld_shlibs=no
11459	cat <<_LT_EOF 1>&2
11460
11461*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11462*** reliably create shared libraries on SCO systems.  Therefore, libtool
11463*** is disabling shared libraries support.  We urge you to upgrade GNU
11464*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11465*** your PATH or compiler configuration so that the native linker is
11466*** used, and then restart.
11467
11468_LT_EOF
11469	;;
11470	*)
11471	  # For security reasons, it is highly recommended that you always
11472	  # use absolute paths for naming shared libraries, and exclude the
11473	  # DT_RUNPATH tag from executables and libraries.  But doing so
11474	  # requires that you compile everything twice, which is a pain.
11475	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11476	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11477	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11478	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11479	  else
11480	    ld_shlibs=no
11481	  fi
11482	;;
11483      esac
11484      ;;
11485
11486    sunos4*)
11487      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11488      wlarc=
11489      hardcode_direct=yes
11490      hardcode_shlibpath_var=no
11491      ;;
11492
11493    *)
11494      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11495	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11496	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11497      else
11498	ld_shlibs=no
11499      fi
11500      ;;
11501    esac
11502
11503    if test no = "$ld_shlibs"; then
11504      runpath_var=
11505      hardcode_libdir_flag_spec=
11506      export_dynamic_flag_spec=
11507      whole_archive_flag_spec=
11508    fi
11509  else
11510    # PORTME fill in a description of your system's linker (not GNU ld)
11511    case $host_os in
11512    aix3*)
11513      allow_undefined_flag=unsupported
11514      always_export_symbols=yes
11515      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'
11516      # Note: this linker hardcodes the directories in LIBPATH if there
11517      # are no directories specified by -L.
11518      hardcode_minus_L=yes
11519      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11520	# Neither direct hardcoding nor static linking is supported with a
11521	# broken collect2.
11522	hardcode_direct=unsupported
11523      fi
11524      ;;
11525
11526    aix[4-9]*)
11527      if test ia64 = "$host_cpu"; then
11528	# On IA64, the linker does run time linking by default, so we don't
11529	# have to do anything special.
11530	aix_use_runtimelinking=no
11531	exp_sym_flag='-Bexport'
11532	no_entry_flag=
11533      else
11534	# If we're using GNU nm, then we don't want the "-C" option.
11535	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11536	# Without the "-l" option, or with the "-B" option, AIX nm treats
11537	# weak defined symbols like other global defined symbols, whereas
11538	# GNU nm marks them as "W".
11539	# While the 'weak' keyword is ignored in the Export File, we need
11540	# it in the Import File for the 'aix-soname' feature, so we have
11541	# to replace the "-B" option with "-P" for AIX nm.
11542	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11543	  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'
11544	else
11545	  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'
11546	fi
11547	aix_use_runtimelinking=no
11548
11549	# Test if we are trying to use run time linking or normal
11550	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11551	# have runtime linking enabled, and use it for executables.
11552	# For shared libraries, we enable/disable runtime linking
11553	# depending on the kind of the shared library created -
11554	# when "with_aix_soname,aix_use_runtimelinking" is:
11555	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11556	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11557	#            lib.a           static archive
11558	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11559	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11560	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11561	#            lib.a(lib.so.V) shared, rtl:no
11562	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11563	#            lib.a           static archive
11564	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11565	  for ld_flag in $LDFLAGS; do
11566	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11567	    aix_use_runtimelinking=yes
11568	    break
11569	  fi
11570	  done
11571	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11572	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11573	    # so we don't have lib.a shared libs to link our executables.
11574	    # We have to force runtime linking in this case.
11575	    aix_use_runtimelinking=yes
11576	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11577	  fi
11578	  ;;
11579	esac
11580
11581	exp_sym_flag='-bexport'
11582	no_entry_flag='-bnoentry'
11583      fi
11584
11585      # When large executables or shared objects are built, AIX ld can
11586      # have problems creating the table of contents.  If linking a library
11587      # or program results in "error TOC overflow" add -mminimal-toc to
11588      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11589      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11590
11591      archive_cmds=''
11592      hardcode_direct=yes
11593      hardcode_direct_absolute=yes
11594      hardcode_libdir_separator=':'
11595      link_all_deplibs=yes
11596      file_list_spec='$wl-f,'
11597      case $with_aix_soname,$aix_use_runtimelinking in
11598      aix,*) ;; # traditional, no import file
11599      svr4,* | *,yes) # use import file
11600	# The Import File defines what to hardcode.
11601	hardcode_direct=no
11602	hardcode_direct_absolute=no
11603	;;
11604      esac
11605
11606      if test yes = "$GCC"; then
11607	case $host_os in aix4.[012]|aix4.[012].*)
11608	# We only want to do this on AIX 4.2 and lower, the check
11609	# below for broken collect2 doesn't work under 4.3+
11610	  collect2name=`$CC -print-prog-name=collect2`
11611	  if test -f "$collect2name" &&
11612	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11613	  then
11614	  # We have reworked collect2
11615	  :
11616	  else
11617	  # We have old collect2
11618	  hardcode_direct=unsupported
11619	  # It fails to find uninstalled libraries when the uninstalled
11620	  # path is not listed in the libpath.  Setting hardcode_minus_L
11621	  # to unsupported forces relinking
11622	  hardcode_minus_L=yes
11623	  hardcode_libdir_flag_spec='-L$libdir'
11624	  hardcode_libdir_separator=
11625	  fi
11626	  ;;
11627	esac
11628	shared_flag='-shared'
11629	if test yes = "$aix_use_runtimelinking"; then
11630	  shared_flag="$shared_flag "'$wl-G'
11631	fi
11632	# Need to ensure runtime linking is disabled for the traditional
11633	# shared library, or the linker may eventually find shared libraries
11634	# /with/ Import File - we do not want to mix them.
11635	shared_flag_aix='-shared'
11636	shared_flag_svr4='-shared $wl-G'
11637      else
11638	# not using gcc
11639	if test ia64 = "$host_cpu"; then
11640	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11641	# chokes on -Wl,-G. The following line is correct:
11642	  shared_flag='-G'
11643	else
11644	  if test yes = "$aix_use_runtimelinking"; then
11645	    shared_flag='$wl-G'
11646	  else
11647	    shared_flag='$wl-bM:SRE'
11648	  fi
11649	  shared_flag_aix='$wl-bM:SRE'
11650	  shared_flag_svr4='$wl-G'
11651	fi
11652      fi
11653
11654      export_dynamic_flag_spec='$wl-bexpall'
11655      # It seems that -bexpall does not export symbols beginning with
11656      # underscore (_), so it is better to generate a list of symbols to export.
11657      always_export_symbols=yes
11658      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11659	# Warning - without using the other runtime loading flags (-brtl),
11660	# -berok will link without error, but may produce a broken library.
11661	allow_undefined_flag='-berok'
11662        # Determine the default libpath from the value encoded in an
11663        # empty executable.
11664        if test set = "${lt_cv_aix_libpath+set}"; then
11665  aix_libpath=$lt_cv_aix_libpath
11666else
11667  if ${lt_cv_aix_libpath_+:} false; then :
11668  $as_echo_n "(cached) " >&6
11669else
11670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671/* end confdefs.h.  */
11672
11673int
11674main ()
11675{
11676
11677  ;
11678  return 0;
11679}
11680_ACEOF
11681if ac_fn_c_try_link "$LINENO"; then :
11682
11683  lt_aix_libpath_sed='
11684      /Import File Strings/,/^$/ {
11685	  /^0/ {
11686	      s/^0  *\([^ ]*\) *$/\1/
11687	      p
11688	  }
11689      }'
11690  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11691  # Check for a 64-bit object if we didn't find anything.
11692  if test -z "$lt_cv_aix_libpath_"; then
11693    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11694  fi
11695fi
11696rm -f core conftest.err conftest.$ac_objext \
11697    conftest$ac_exeext conftest.$ac_ext
11698  if test -z "$lt_cv_aix_libpath_"; then
11699    lt_cv_aix_libpath_=/usr/lib:/lib
11700  fi
11701
11702fi
11703
11704  aix_libpath=$lt_cv_aix_libpath_
11705fi
11706
11707        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11708        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
11709      else
11710	if test ia64 = "$host_cpu"; then
11711	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11712	  allow_undefined_flag="-z nodefs"
11713	  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"
11714	else
11715	 # Determine the default libpath from the value encoded in an
11716	 # empty executable.
11717	 if test set = "${lt_cv_aix_libpath+set}"; then
11718  aix_libpath=$lt_cv_aix_libpath
11719else
11720  if ${lt_cv_aix_libpath_+:} false; then :
11721  $as_echo_n "(cached) " >&6
11722else
11723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724/* end confdefs.h.  */
11725
11726int
11727main ()
11728{
11729
11730  ;
11731  return 0;
11732}
11733_ACEOF
11734if ac_fn_c_try_link "$LINENO"; then :
11735
11736  lt_aix_libpath_sed='
11737      /Import File Strings/,/^$/ {
11738	  /^0/ {
11739	      s/^0  *\([^ ]*\) *$/\1/
11740	      p
11741	  }
11742      }'
11743  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11744  # Check for a 64-bit object if we didn't find anything.
11745  if test -z "$lt_cv_aix_libpath_"; then
11746    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11747  fi
11748fi
11749rm -f core conftest.err conftest.$ac_objext \
11750    conftest$ac_exeext conftest.$ac_ext
11751  if test -z "$lt_cv_aix_libpath_"; then
11752    lt_cv_aix_libpath_=/usr/lib:/lib
11753  fi
11754
11755fi
11756
11757  aix_libpath=$lt_cv_aix_libpath_
11758fi
11759
11760	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11761	  # Warning - without using the other run time loading flags,
11762	  # -berok will link without error, but may produce a broken library.
11763	  no_undefined_flag=' $wl-bernotok'
11764	  allow_undefined_flag=' $wl-berok'
11765	  if test yes = "$with_gnu_ld"; then
11766	    # We only use this code for GNU lds that support --whole-archive.
11767	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11768	  else
11769	    # Exported symbols can be pulled into shared objects from archives
11770	    whole_archive_flag_spec='$convenience'
11771	  fi
11772	  archive_cmds_need_lc=yes
11773	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11774	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11775	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11776	  if test svr4 != "$with_aix_soname"; then
11777	    # This is similar to how AIX traditionally builds its shared libraries.
11778	    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'
11779	  fi
11780	  if test aix != "$with_aix_soname"; then
11781	    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'
11782	  else
11783	    # used by -dlpreopen to get the symbols
11784	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11785	  fi
11786	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11787	fi
11788      fi
11789      ;;
11790
11791    amigaos*)
11792      case $host_cpu in
11793      powerpc)
11794            # see comment about AmigaOS4 .so support
11795            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11796            archive_expsym_cmds=''
11797        ;;
11798      m68k)
11799            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)'
11800            hardcode_libdir_flag_spec='-L$libdir'
11801            hardcode_minus_L=yes
11802        ;;
11803      esac
11804      ;;
11805
11806    bsdi[45]*)
11807      export_dynamic_flag_spec=-rdynamic
11808      ;;
11809
11810    cygwin* | mingw* | pw32* | cegcc*)
11811      # When not using gcc, we currently assume that we are using
11812      # Microsoft Visual C++.
11813      # hardcode_libdir_flag_spec is actually meaningless, as there is
11814      # no search path for DLLs.
11815      case $cc_basename in
11816      cl*)
11817	# Native MSVC
11818	hardcode_libdir_flag_spec=' '
11819	allow_undefined_flag=unsupported
11820	always_export_symbols=yes
11821	file_list_spec='@'
11822	# Tell ltmain to make .lib files, not .a files.
11823	libext=lib
11824	# Tell ltmain to make .dll files, not .so files.
11825	shrext_cmds=.dll
11826	# FIXME: Setting linknames here is a bad hack.
11827	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11828	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11829            cp "$export_symbols" "$output_objdir/$soname.def";
11830            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11831          else
11832            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11833          fi~
11834          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11835          linknames='
11836	# The linker will not automatically build a static lib if we build a DLL.
11837	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11838	enable_shared_with_static_runtimes=yes
11839	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11840	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11841	# Don't use ranlib
11842	old_postinstall_cmds='chmod 644 $oldlib'
11843	postlink_cmds='lt_outputfile="@OUTPUT@"~
11844          lt_tool_outputfile="@TOOL_OUTPUT@"~
11845          case $lt_outputfile in
11846            *.exe|*.EXE) ;;
11847            *)
11848              lt_outputfile=$lt_outputfile.exe
11849              lt_tool_outputfile=$lt_tool_outputfile.exe
11850              ;;
11851          esac~
11852          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11853            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11854            $RM "$lt_outputfile.manifest";
11855          fi'
11856	;;
11857      *)
11858	# Assume MSVC wrapper
11859	hardcode_libdir_flag_spec=' '
11860	allow_undefined_flag=unsupported
11861	# Tell ltmain to make .lib files, not .a files.
11862	libext=lib
11863	# Tell ltmain to make .dll files, not .so files.
11864	shrext_cmds=.dll
11865	# FIXME: Setting linknames here is a bad hack.
11866	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11867	# The linker will automatically build a .lib file if we build a DLL.
11868	old_archive_from_new_cmds='true'
11869	# FIXME: Should let the user specify the lib program.
11870	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11871	enable_shared_with_static_runtimes=yes
11872	;;
11873      esac
11874      ;;
11875
11876    darwin* | rhapsody*)
11877
11878
11879  archive_cmds_need_lc=no
11880  hardcode_direct=no
11881  hardcode_automatic=yes
11882  hardcode_shlibpath_var=unsupported
11883  if test yes = "$lt_cv_ld_force_load"; then
11884    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\"`'
11885
11886  else
11887    whole_archive_flag_spec=''
11888  fi
11889  link_all_deplibs=yes
11890  allow_undefined_flag=$_lt_dar_allow_undefined
11891  case $cc_basename in
11892     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11893     *) _lt_dar_can_shared=$GCC ;;
11894  esac
11895  if test yes = "$_lt_dar_can_shared"; then
11896    output_verbose_link_cmd=func_echo_all
11897    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11898    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11899    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"
11900    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"
11901
11902  else
11903  ld_shlibs=no
11904  fi
11905
11906      ;;
11907
11908    dgux*)
11909      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11910      hardcode_libdir_flag_spec='-L$libdir'
11911      hardcode_shlibpath_var=no
11912      ;;
11913
11914    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11915    # support.  Future versions do this automatically, but an explicit c++rt0.o
11916    # does not break anything, and helps significantly (at the cost of a little
11917    # extra space).
11918    freebsd2.2*)
11919      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11920      hardcode_libdir_flag_spec='-R$libdir'
11921      hardcode_direct=yes
11922      hardcode_shlibpath_var=no
11923      ;;
11924
11925    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11926    freebsd2.*)
11927      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11928      hardcode_direct=yes
11929      hardcode_minus_L=yes
11930      hardcode_shlibpath_var=no
11931      ;;
11932
11933    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11934    freebsd* | dragonfly*)
11935      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11936      hardcode_libdir_flag_spec='-R$libdir'
11937      hardcode_direct=yes
11938      hardcode_shlibpath_var=no
11939      ;;
11940
11941    hpux9*)
11942      if test yes = "$GCC"; then
11943	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'
11944      else
11945	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'
11946      fi
11947      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11948      hardcode_libdir_separator=:
11949      hardcode_direct=yes
11950
11951      # hardcode_minus_L: Not really in the search PATH,
11952      # but as the default location of the library.
11953      hardcode_minus_L=yes
11954      export_dynamic_flag_spec='$wl-E'
11955      ;;
11956
11957    hpux10*)
11958      if test yes,no = "$GCC,$with_gnu_ld"; then
11959	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11960      else
11961	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11962      fi
11963      if test no = "$with_gnu_ld"; then
11964	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11965	hardcode_libdir_separator=:
11966	hardcode_direct=yes
11967	hardcode_direct_absolute=yes
11968	export_dynamic_flag_spec='$wl-E'
11969	# hardcode_minus_L: Not really in the search PATH,
11970	# but as the default location of the library.
11971	hardcode_minus_L=yes
11972      fi
11973      ;;
11974
11975    hpux11*)
11976      if test yes,no = "$GCC,$with_gnu_ld"; then
11977	case $host_cpu in
11978	hppa*64*)
11979	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11980	  ;;
11981	ia64*)
11982	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11983	  ;;
11984	*)
11985	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11986	  ;;
11987	esac
11988      else
11989	case $host_cpu in
11990	hppa*64*)
11991	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11992	  ;;
11993	ia64*)
11994	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11995	  ;;
11996	*)
11997
11998	  # Older versions of the 11.00 compiler do not understand -b yet
11999	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12000	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12001$as_echo_n "checking if $CC understands -b... " >&6; }
12002if ${lt_cv_prog_compiler__b+:} false; then :
12003  $as_echo_n "(cached) " >&6
12004else
12005  lt_cv_prog_compiler__b=no
12006   save_LDFLAGS=$LDFLAGS
12007   LDFLAGS="$LDFLAGS -b"
12008   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12009   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12010     # The linker can only warn and ignore the option if not recognized
12011     # So say no if there are warnings
12012     if test -s conftest.err; then
12013       # Append any errors to the config.log.
12014       cat conftest.err 1>&5
12015       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12016       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12017       if diff conftest.exp conftest.er2 >/dev/null; then
12018         lt_cv_prog_compiler__b=yes
12019       fi
12020     else
12021       lt_cv_prog_compiler__b=yes
12022     fi
12023   fi
12024   $RM -r conftest*
12025   LDFLAGS=$save_LDFLAGS
12026
12027fi
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12029$as_echo "$lt_cv_prog_compiler__b" >&6; }
12030
12031if test yes = "$lt_cv_prog_compiler__b"; then
12032    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12033else
12034    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12035fi
12036
12037	  ;;
12038	esac
12039      fi
12040      if test no = "$with_gnu_ld"; then
12041	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12042	hardcode_libdir_separator=:
12043
12044	case $host_cpu in
12045	hppa*64*|ia64*)
12046	  hardcode_direct=no
12047	  hardcode_shlibpath_var=no
12048	  ;;
12049	*)
12050	  hardcode_direct=yes
12051	  hardcode_direct_absolute=yes
12052	  export_dynamic_flag_spec='$wl-E'
12053
12054	  # hardcode_minus_L: Not really in the search PATH,
12055	  # but as the default location of the library.
12056	  hardcode_minus_L=yes
12057	  ;;
12058	esac
12059      fi
12060      ;;
12061
12062    irix5* | irix6* | nonstopux*)
12063      if test yes = "$GCC"; then
12064	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'
12065	# Try to use the -exported_symbol ld option, if it does not
12066	# work, assume that -exports_file does not work either and
12067	# implicitly export all symbols.
12068	# This should be the same for all languages, so no per-tag cache variable.
12069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12070$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12071if ${lt_cv_irix_exported_symbol+:} false; then :
12072  $as_echo_n "(cached) " >&6
12073else
12074  save_LDFLAGS=$LDFLAGS
12075	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12076	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077/* end confdefs.h.  */
12078int foo (void) { return 0; }
12079_ACEOF
12080if ac_fn_c_try_link "$LINENO"; then :
12081  lt_cv_irix_exported_symbol=yes
12082else
12083  lt_cv_irix_exported_symbol=no
12084fi
12085rm -f core conftest.err conftest.$ac_objext \
12086    conftest$ac_exeext conftest.$ac_ext
12087           LDFLAGS=$save_LDFLAGS
12088fi
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12090$as_echo "$lt_cv_irix_exported_symbol" >&6; }
12091	if test yes = "$lt_cv_irix_exported_symbol"; then
12092          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'
12093	fi
12094      else
12095	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'
12096	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'
12097      fi
12098      archive_cmds_need_lc='no'
12099      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12100      hardcode_libdir_separator=:
12101      inherit_rpath=yes
12102      link_all_deplibs=yes
12103      ;;
12104
12105    linux*)
12106      case $cc_basename in
12107      tcc*)
12108	# Fabrice Bellard et al's Tiny C Compiler
12109	ld_shlibs=yes
12110	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12111	;;
12112      esac
12113      ;;
12114
12115    netbsd*)
12116      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12117	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12118      else
12119	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12120      fi
12121      hardcode_libdir_flag_spec='-R$libdir'
12122      hardcode_direct=yes
12123      hardcode_shlibpath_var=no
12124      ;;
12125
12126    newsos6)
12127      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12128      hardcode_direct=yes
12129      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12130      hardcode_libdir_separator=:
12131      hardcode_shlibpath_var=no
12132      ;;
12133
12134    *nto* | *qnx*)
12135      ;;
12136
12137    openbsd* | bitrig*)
12138      if test -f /usr/libexec/ld.so; then
12139	hardcode_direct=yes
12140	hardcode_shlibpath_var=no
12141	hardcode_direct_absolute=yes
12142	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12143	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12144	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12145	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12146	  export_dynamic_flag_spec='$wl-E'
12147	else
12148	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12149	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12150	fi
12151      else
12152	ld_shlibs=no
12153      fi
12154      ;;
12155
12156    os2*)
12157      hardcode_libdir_flag_spec='-L$libdir'
12158      hardcode_minus_L=yes
12159      allow_undefined_flag=unsupported
12160      shrext_cmds=.dll
12161      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12162	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12163	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12164	$ECHO EXPORTS >> $output_objdir/$libname.def~
12165	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12166	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12167	emximp -o $lib $output_objdir/$libname.def'
12168      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12169	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12170	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12171	$ECHO EXPORTS >> $output_objdir/$libname.def~
12172	prefix_cmds="$SED"~
12173	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12174	  prefix_cmds="$prefix_cmds -e 1d";
12175	fi~
12176	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12177	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12178	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12179	emximp -o $lib $output_objdir/$libname.def'
12180      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12181      enable_shared_with_static_runtimes=yes
12182      ;;
12183
12184    osf3*)
12185      if test yes = "$GCC"; then
12186	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12187	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'
12188      else
12189	allow_undefined_flag=' -expect_unresolved \*'
12190	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'
12191      fi
12192      archive_cmds_need_lc='no'
12193      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12194      hardcode_libdir_separator=:
12195      ;;
12196
12197    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12198      if test yes = "$GCC"; then
12199	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12200	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'
12201	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12202      else
12203	allow_undefined_flag=' -expect_unresolved \*'
12204	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'
12205	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~
12206          $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'
12207
12208	# Both c and cxx compiler support -rpath directly
12209	hardcode_libdir_flag_spec='-rpath $libdir'
12210      fi
12211      archive_cmds_need_lc='no'
12212      hardcode_libdir_separator=:
12213      ;;
12214
12215    solaris*)
12216      no_undefined_flag=' -z defs'
12217      if test yes = "$GCC"; then
12218	wlarc='$wl'
12219	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12220	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12221          $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'
12222      else
12223	case `$CC -V 2>&1` in
12224	*"Compilers 5.0"*)
12225	  wlarc=''
12226	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12227	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12228            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12229	  ;;
12230	*)
12231	  wlarc='$wl'
12232	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12233	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12234            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12235	  ;;
12236	esac
12237      fi
12238      hardcode_libdir_flag_spec='-R$libdir'
12239      hardcode_shlibpath_var=no
12240      case $host_os in
12241      solaris2.[0-5] | solaris2.[0-5].*) ;;
12242      *)
12243	# The compiler driver will combine and reorder linker options,
12244	# but understands '-z linker_flag'.  GCC discards it without '$wl',
12245	# but is careful enough not to reorder.
12246	# Supported since Solaris 2.6 (maybe 2.5.1?)
12247	if test yes = "$GCC"; then
12248	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12249	else
12250	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12251	fi
12252	;;
12253      esac
12254      link_all_deplibs=yes
12255      ;;
12256
12257    sunos4*)
12258      if test sequent = "$host_vendor"; then
12259	# Use $CC to link under sequent, because it throws in some extra .o
12260	# files that make .init and .fini sections work.
12261	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12262      else
12263	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12264      fi
12265      hardcode_libdir_flag_spec='-L$libdir'
12266      hardcode_direct=yes
12267      hardcode_minus_L=yes
12268      hardcode_shlibpath_var=no
12269      ;;
12270
12271    sysv4)
12272      case $host_vendor in
12273	sni)
12274	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12275	  hardcode_direct=yes # is this really true???
12276	;;
12277	siemens)
12278	  ## LD is ld it makes a PLAMLIB
12279	  ## CC just makes a GrossModule.
12280	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12281	  reload_cmds='$CC -r -o $output$reload_objs'
12282	  hardcode_direct=no
12283        ;;
12284	motorola)
12285	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12286	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12287	;;
12288      esac
12289      runpath_var='LD_RUN_PATH'
12290      hardcode_shlibpath_var=no
12291      ;;
12292
12293    sysv4.3*)
12294      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12295      hardcode_shlibpath_var=no
12296      export_dynamic_flag_spec='-Bexport'
12297      ;;
12298
12299    sysv4*MP*)
12300      if test -d /usr/nec; then
12301	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12302	hardcode_shlibpath_var=no
12303	runpath_var=LD_RUN_PATH
12304	hardcode_runpath_var=yes
12305	ld_shlibs=yes
12306      fi
12307      ;;
12308
12309    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12310      no_undefined_flag='$wl-z,text'
12311      archive_cmds_need_lc=no
12312      hardcode_shlibpath_var=no
12313      runpath_var='LD_RUN_PATH'
12314
12315      if test yes = "$GCC"; then
12316	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12317	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12318      else
12319	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12320	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12321      fi
12322      ;;
12323
12324    sysv5* | sco3.2v5* | sco5v6*)
12325      # Note: We CANNOT use -z defs as we might desire, because we do not
12326      # link with -lc, and that would cause any symbols used from libc to
12327      # always be unresolved, which means just about no library would
12328      # ever link correctly.  If we're not using GNU ld we use -z text
12329      # though, which does catch some bad symbols but isn't as heavy-handed
12330      # as -z defs.
12331      no_undefined_flag='$wl-z,text'
12332      allow_undefined_flag='$wl-z,nodefs'
12333      archive_cmds_need_lc=no
12334      hardcode_shlibpath_var=no
12335      hardcode_libdir_flag_spec='$wl-R,$libdir'
12336      hardcode_libdir_separator=':'
12337      link_all_deplibs=yes
12338      export_dynamic_flag_spec='$wl-Bexport'
12339      runpath_var='LD_RUN_PATH'
12340
12341      if test yes = "$GCC"; then
12342	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12343	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12344      else
12345	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12346	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12347      fi
12348      ;;
12349
12350    uts4*)
12351      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12352      hardcode_libdir_flag_spec='-L$libdir'
12353      hardcode_shlibpath_var=no
12354      ;;
12355
12356    *)
12357      ld_shlibs=no
12358      ;;
12359    esac
12360
12361    if test sni = "$host_vendor"; then
12362      case $host in
12363      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12364	export_dynamic_flag_spec='$wl-Blargedynsym'
12365	;;
12366      esac
12367    fi
12368  fi
12369
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12371$as_echo "$ld_shlibs" >&6; }
12372test no = "$ld_shlibs" && can_build_shared=no
12373
12374with_gnu_ld=$with_gnu_ld
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390#
12391# Do we need to explicitly link libc?
12392#
12393case "x$archive_cmds_need_lc" in
12394x|xyes)
12395  # Assume -lc should be added
12396  archive_cmds_need_lc=yes
12397
12398  if test yes,yes = "$GCC,$enable_shared"; then
12399    case $archive_cmds in
12400    *'~'*)
12401      # FIXME: we may have to deal with multi-command sequences.
12402      ;;
12403    '$CC '*)
12404      # Test whether the compiler implicitly links with -lc since on some
12405      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12406      # to ld, don't add -lc before -lgcc.
12407      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12408$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12409if ${lt_cv_archive_cmds_need_lc+:} false; then :
12410  $as_echo_n "(cached) " >&6
12411else
12412  $RM conftest*
12413	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12414
12415	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12416  (eval $ac_compile) 2>&5
12417  ac_status=$?
12418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12419  test $ac_status = 0; } 2>conftest.err; then
12420	  soname=conftest
12421	  lib=conftest
12422	  libobjs=conftest.$ac_objext
12423	  deplibs=
12424	  wl=$lt_prog_compiler_wl
12425	  pic_flag=$lt_prog_compiler_pic
12426	  compiler_flags=-v
12427	  linker_flags=-v
12428	  verstring=
12429	  output_objdir=.
12430	  libname=conftest
12431	  lt_save_allow_undefined_flag=$allow_undefined_flag
12432	  allow_undefined_flag=
12433	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12434  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12435  ac_status=$?
12436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12437  test $ac_status = 0; }
12438	  then
12439	    lt_cv_archive_cmds_need_lc=no
12440	  else
12441	    lt_cv_archive_cmds_need_lc=yes
12442	  fi
12443	  allow_undefined_flag=$lt_save_allow_undefined_flag
12444	else
12445	  cat conftest.err 1>&5
12446	fi
12447	$RM conftest*
12448
12449fi
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12451$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12452      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12453      ;;
12454    esac
12455  fi
12456  ;;
12457esac
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12611$as_echo_n "checking dynamic linker characteristics... " >&6; }
12612
12613if test yes = "$GCC"; then
12614  case $host_os in
12615    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12616    *) lt_awk_arg='/^libraries:/' ;;
12617  esac
12618  case $host_os in
12619    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12620    *) lt_sed_strip_eq='s|=/|/|g' ;;
12621  esac
12622  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12623  case $lt_search_path_spec in
12624  *\;*)
12625    # if the path contains ";" then we assume it to be the separator
12626    # otherwise default to the standard path separator (i.e. ":") - it is
12627    # assumed that no part of a normal pathname contains ";" but that should
12628    # okay in the real world where ";" in dirpaths is itself problematic.
12629    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12630    ;;
12631  *)
12632    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12633    ;;
12634  esac
12635  # Ok, now we have the path, separated by spaces, we can step through it
12636  # and add multilib dir if necessary...
12637  lt_tmp_lt_search_path_spec=
12638  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12639  # ...but if some path component already ends with the multilib dir we assume
12640  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12641  case "$lt_multi_os_dir; $lt_search_path_spec " in
12642  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12643    lt_multi_os_dir=
12644    ;;
12645  esac
12646  for lt_sys_path in $lt_search_path_spec; do
12647    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12648      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12649    elif test -n "$lt_multi_os_dir"; then
12650      test -d "$lt_sys_path" && \
12651	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12652    fi
12653  done
12654  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12655BEGIN {RS = " "; FS = "/|\n";} {
12656  lt_foo = "";
12657  lt_count = 0;
12658  for (lt_i = NF; lt_i > 0; lt_i--) {
12659    if ($lt_i != "" && $lt_i != ".") {
12660      if ($lt_i == "..") {
12661        lt_count++;
12662      } else {
12663        if (lt_count == 0) {
12664          lt_foo = "/" $lt_i lt_foo;
12665        } else {
12666          lt_count--;
12667        }
12668      }
12669    }
12670  }
12671  if (lt_foo != "") { lt_freq[lt_foo]++; }
12672  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12673}'`
12674  # AWK program above erroneously prepends '/' to C:/dos/paths
12675  # for these hosts.
12676  case $host_os in
12677    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12678      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12679  esac
12680  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12681else
12682  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12683fi
12684library_names_spec=
12685libname_spec='lib$name'
12686soname_spec=
12687shrext_cmds=.so
12688postinstall_cmds=
12689postuninstall_cmds=
12690finish_cmds=
12691finish_eval=
12692shlibpath_var=
12693shlibpath_overrides_runpath=unknown
12694version_type=none
12695dynamic_linker="$host_os ld.so"
12696sys_lib_dlsearch_path_spec="/lib /usr/lib"
12697need_lib_prefix=unknown
12698hardcode_into_libs=no
12699
12700# when you set need_version to no, make sure it does not cause -set_version
12701# flags to be left without arguments
12702need_version=unknown
12703
12704
12705
12706case $host_os in
12707aix3*)
12708  version_type=linux # correct to gnu/linux during the next big refactor
12709  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12710  shlibpath_var=LIBPATH
12711
12712  # AIX 3 has no versioning support, so we append a major version to the name.
12713  soname_spec='$libname$release$shared_ext$major'
12714  ;;
12715
12716aix[4-9]*)
12717  version_type=linux # correct to gnu/linux during the next big refactor
12718  need_lib_prefix=no
12719  need_version=no
12720  hardcode_into_libs=yes
12721  if test ia64 = "$host_cpu"; then
12722    # AIX 5 supports IA64
12723    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12724    shlibpath_var=LD_LIBRARY_PATH
12725  else
12726    # With GCC up to 2.95.x, collect2 would create an import file
12727    # for dependence libraries.  The import file would start with
12728    # the line '#! .'.  This would cause the generated library to
12729    # depend on '.', always an invalid library.  This was fixed in
12730    # development snapshots of GCC prior to 3.0.
12731    case $host_os in
12732      aix4 | aix4.[01] | aix4.[01].*)
12733      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12734	   echo ' yes '
12735	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12736	:
12737      else
12738	can_build_shared=no
12739      fi
12740      ;;
12741    esac
12742    # Using Import Files as archive members, it is possible to support
12743    # filename-based versioning of shared library archives on AIX. While
12744    # this would work for both with and without runtime linking, it will
12745    # prevent static linking of such archives. So we do filename-based
12746    # shared library versioning with .so extension only, which is used
12747    # when both runtime linking and shared linking is enabled.
12748    # Unfortunately, runtime linking may impact performance, so we do
12749    # not want this to be the default eventually. Also, we use the
12750    # versioned .so libs for executables only if there is the -brtl
12751    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12752    # To allow for filename-based versioning support, we need to create
12753    # libNAME.so.V as an archive file, containing:
12754    # *) an Import File, referring to the versioned filename of the
12755    #    archive as well as the shared archive member, telling the
12756    #    bitwidth (32 or 64) of that shared object, and providing the
12757    #    list of exported symbols of that shared object, eventually
12758    #    decorated with the 'weak' keyword
12759    # *) the shared object with the F_LOADONLY flag set, to really avoid
12760    #    it being seen by the linker.
12761    # At run time we better use the real file rather than another symlink,
12762    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12763
12764    case $with_aix_soname,$aix_use_runtimelinking in
12765    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12766    # soname into executable. Probably we can add versioning support to
12767    # collect2, so additional links can be useful in future.
12768    aix,yes) # traditional libtool
12769      dynamic_linker='AIX unversionable lib.so'
12770      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12771      # instead of lib<name>.a to let people know that these are not
12772      # typical AIX shared libraries.
12773      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12774      ;;
12775    aix,no) # traditional AIX only
12776      dynamic_linker='AIX lib.a(lib.so.V)'
12777      # We preserve .a as extension for shared libraries through AIX4.2
12778      # and later when we are not doing run time linking.
12779      library_names_spec='$libname$release.a $libname.a'
12780      soname_spec='$libname$release$shared_ext$major'
12781      ;;
12782    svr4,*) # full svr4 only
12783      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12784      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12785      # We do not specify a path in Import Files, so LIBPATH fires.
12786      shlibpath_overrides_runpath=yes
12787      ;;
12788    *,yes) # both, prefer svr4
12789      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12790      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12791      # unpreferred sharedlib libNAME.a needs extra handling
12792      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"'
12793      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"'
12794      # We do not specify a path in Import Files, so LIBPATH fires.
12795      shlibpath_overrides_runpath=yes
12796      ;;
12797    *,no) # both, prefer aix
12798      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12799      library_names_spec='$libname$release.a $libname.a'
12800      soname_spec='$libname$release$shared_ext$major'
12801      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12802      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)'
12803      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"'
12804      ;;
12805    esac
12806    shlibpath_var=LIBPATH
12807  fi
12808  ;;
12809
12810amigaos*)
12811  case $host_cpu in
12812  powerpc)
12813    # Since July 2007 AmigaOS4 officially supports .so libraries.
12814    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12815    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12816    ;;
12817  m68k)
12818    library_names_spec='$libname.ixlibrary $libname.a'
12819    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12820    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'
12821    ;;
12822  esac
12823  ;;
12824
12825beos*)
12826  library_names_spec='$libname$shared_ext'
12827  dynamic_linker="$host_os ld.so"
12828  shlibpath_var=LIBRARY_PATH
12829  ;;
12830
12831bsdi[45]*)
12832  version_type=linux # correct to gnu/linux during the next big refactor
12833  need_version=no
12834  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12835  soname_spec='$libname$release$shared_ext$major'
12836  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12837  shlibpath_var=LD_LIBRARY_PATH
12838  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12839  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12840  # the default ld.so.conf also contains /usr/contrib/lib and
12841  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12842  # libtool to hard-code these into programs
12843  ;;
12844
12845cygwin* | mingw* | pw32* | cegcc*)
12846  version_type=windows
12847  shrext_cmds=.dll
12848  need_version=no
12849  need_lib_prefix=no
12850
12851  case $GCC,$cc_basename in
12852  yes,*)
12853    # gcc
12854    library_names_spec='$libname.dll.a'
12855    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12856    postinstall_cmds='base_file=`basename \$file`~
12857      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12858      dldir=$destdir/`dirname \$dlpath`~
12859      test -d \$dldir || mkdir -p \$dldir~
12860      $install_prog $dir/$dlname \$dldir/$dlname~
12861      chmod a+x \$dldir/$dlname~
12862      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12863        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12864      fi'
12865    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12866      dlpath=$dir/\$dldll~
12867       $RM \$dlpath'
12868    shlibpath_overrides_runpath=yes
12869
12870    case $host_os in
12871    cygwin*)
12872      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12873      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12874
12875      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12876      ;;
12877    mingw* | cegcc*)
12878      # MinGW DLLs use traditional 'lib' prefix
12879      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12880      ;;
12881    pw32*)
12882      # pw32 DLLs use 'pw' prefix rather than 'lib'
12883      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12884      ;;
12885    esac
12886    dynamic_linker='Win32 ld.exe'
12887    ;;
12888
12889  *,cl*)
12890    # Native MSVC
12891    libname_spec='$name'
12892    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12893    library_names_spec='$libname.dll.lib'
12894
12895    case $build_os in
12896    mingw*)
12897      sys_lib_search_path_spec=
12898      lt_save_ifs=$IFS
12899      IFS=';'
12900      for lt_path in $LIB
12901      do
12902        IFS=$lt_save_ifs
12903        # Let DOS variable expansion print the short 8.3 style file name.
12904        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12905        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12906      done
12907      IFS=$lt_save_ifs
12908      # Convert to MSYS style.
12909      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12910      ;;
12911    cygwin*)
12912      # Convert to unix form, then to dos form, then back to unix form
12913      # but this time dos style (no spaces!) so that the unix form looks
12914      # like /cygdrive/c/PROGRA~1:/cygdr...
12915      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12916      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12917      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12918      ;;
12919    *)
12920      sys_lib_search_path_spec=$LIB
12921      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12922        # It is most probably a Windows format PATH.
12923        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12924      else
12925        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12926      fi
12927      # FIXME: find the short name or the path components, as spaces are
12928      # common. (e.g. "Program Files" -> "PROGRA~1")
12929      ;;
12930    esac
12931
12932    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12933    postinstall_cmds='base_file=`basename \$file`~
12934      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12935      dldir=$destdir/`dirname \$dlpath`~
12936      test -d \$dldir || mkdir -p \$dldir~
12937      $install_prog $dir/$dlname \$dldir/$dlname'
12938    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12939      dlpath=$dir/\$dldll~
12940       $RM \$dlpath'
12941    shlibpath_overrides_runpath=yes
12942    dynamic_linker='Win32 link.exe'
12943    ;;
12944
12945  *)
12946    # Assume MSVC wrapper
12947    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12948    dynamic_linker='Win32 ld.exe'
12949    ;;
12950  esac
12951  # FIXME: first we should search . and the directory the executable is in
12952  shlibpath_var=PATH
12953  ;;
12954
12955darwin* | rhapsody*)
12956  dynamic_linker="$host_os dyld"
12957  version_type=darwin
12958  need_lib_prefix=no
12959  need_version=no
12960  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12961  soname_spec='$libname$release$major$shared_ext'
12962  shlibpath_overrides_runpath=yes
12963  shlibpath_var=DYLD_LIBRARY_PATH
12964  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12965
12966  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12967  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12968  ;;
12969
12970dgux*)
12971  version_type=linux # correct to gnu/linux during the next big refactor
12972  need_lib_prefix=no
12973  need_version=no
12974  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12975  soname_spec='$libname$release$shared_ext$major'
12976  shlibpath_var=LD_LIBRARY_PATH
12977  ;;
12978
12979freebsd* | dragonfly*)
12980  # DragonFly does not have aout.  When/if they implement a new
12981  # versioning mechanism, adjust this.
12982  if test -x /usr/bin/objformat; then
12983    objformat=`/usr/bin/objformat`
12984  else
12985    case $host_os in
12986    freebsd[23].*) objformat=aout ;;
12987    *) objformat=elf ;;
12988    esac
12989  fi
12990  version_type=freebsd-$objformat
12991  case $version_type in
12992    freebsd-elf*)
12993      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12994      soname_spec='$libname$release$shared_ext$major'
12995      need_version=no
12996      need_lib_prefix=no
12997      ;;
12998    freebsd-*)
12999      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13000      need_version=yes
13001      ;;
13002  esac
13003  shlibpath_var=LD_LIBRARY_PATH
13004  case $host_os in
13005  freebsd2.*)
13006    shlibpath_overrides_runpath=yes
13007    ;;
13008  freebsd3.[01]* | freebsdelf3.[01]*)
13009    shlibpath_overrides_runpath=yes
13010    hardcode_into_libs=yes
13011    ;;
13012  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13013  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13014    shlibpath_overrides_runpath=no
13015    hardcode_into_libs=yes
13016    ;;
13017  *) # from 4.6 on, and DragonFly
13018    shlibpath_overrides_runpath=yes
13019    hardcode_into_libs=yes
13020    ;;
13021  esac
13022  ;;
13023
13024haiku*)
13025  version_type=linux # correct to gnu/linux during the next big refactor
13026  need_lib_prefix=no
13027  need_version=no
13028  dynamic_linker="$host_os runtime_loader"
13029  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13030  soname_spec='$libname$release$shared_ext$major'
13031  shlibpath_var=LIBRARY_PATH
13032  shlibpath_overrides_runpath=no
13033  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13034  hardcode_into_libs=yes
13035  ;;
13036
13037hpux9* | hpux10* | hpux11*)
13038  # Give a soname corresponding to the major version so that dld.sl refuses to
13039  # link against other versions.
13040  version_type=sunos
13041  need_lib_prefix=no
13042  need_version=no
13043  case $host_cpu in
13044  ia64*)
13045    shrext_cmds='.so'
13046    hardcode_into_libs=yes
13047    dynamic_linker="$host_os dld.so"
13048    shlibpath_var=LD_LIBRARY_PATH
13049    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13050    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13051    soname_spec='$libname$release$shared_ext$major'
13052    if test 32 = "$HPUX_IA64_MODE"; then
13053      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13054      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13055    else
13056      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13057      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13058    fi
13059    ;;
13060  hppa*64*)
13061    shrext_cmds='.sl'
13062    hardcode_into_libs=yes
13063    dynamic_linker="$host_os dld.sl"
13064    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13065    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13066    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13067    soname_spec='$libname$release$shared_ext$major'
13068    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13069    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13070    ;;
13071  *)
13072    shrext_cmds='.sl'
13073    dynamic_linker="$host_os dld.sl"
13074    shlibpath_var=SHLIB_PATH
13075    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13076    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13077    soname_spec='$libname$release$shared_ext$major'
13078    ;;
13079  esac
13080  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13081  postinstall_cmds='chmod 555 $lib'
13082  # or fails outright, so override atomically:
13083  install_override_mode=555
13084  ;;
13085
13086interix[3-9]*)
13087  version_type=linux # correct to gnu/linux during the next big refactor
13088  need_lib_prefix=no
13089  need_version=no
13090  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13091  soname_spec='$libname$release$shared_ext$major'
13092  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13093  shlibpath_var=LD_LIBRARY_PATH
13094  shlibpath_overrides_runpath=no
13095  hardcode_into_libs=yes
13096  ;;
13097
13098irix5* | irix6* | nonstopux*)
13099  case $host_os in
13100    nonstopux*) version_type=nonstopux ;;
13101    *)
13102	if test yes = "$lt_cv_prog_gnu_ld"; then
13103		version_type=linux # correct to gnu/linux during the next big refactor
13104	else
13105		version_type=irix
13106	fi ;;
13107  esac
13108  need_lib_prefix=no
13109  need_version=no
13110  soname_spec='$libname$release$shared_ext$major'
13111  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13112  case $host_os in
13113  irix5* | nonstopux*)
13114    libsuff= shlibsuff=
13115    ;;
13116  *)
13117    case $LD in # libtool.m4 will add one of these switches to LD
13118    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13119      libsuff= shlibsuff= libmagic=32-bit;;
13120    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13121      libsuff=32 shlibsuff=N32 libmagic=N32;;
13122    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13123      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13124    *) libsuff= shlibsuff= libmagic=never-match;;
13125    esac
13126    ;;
13127  esac
13128  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13129  shlibpath_overrides_runpath=no
13130  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13131  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13132  hardcode_into_libs=yes
13133  ;;
13134
13135# No shared lib support for Linux oldld, aout, or coff.
13136linux*oldld* | linux*aout* | linux*coff*)
13137  dynamic_linker=no
13138  ;;
13139
13140linux*android*)
13141  version_type=none # Android doesn't support versioned libraries.
13142  need_lib_prefix=no
13143  need_version=no
13144  library_names_spec='$libname$release$shared_ext'
13145  soname_spec='$libname$release$shared_ext'
13146  finish_cmds=
13147  shlibpath_var=LD_LIBRARY_PATH
13148  shlibpath_overrides_runpath=yes
13149
13150  # This implies no fast_install, which is unacceptable.
13151  # Some rework will be needed to allow for fast_install
13152  # before this can be enabled.
13153  hardcode_into_libs=yes
13154
13155  dynamic_linker='Android linker'
13156  # Don't embed -rpath directories since the linker doesn't support them.
13157  hardcode_libdir_flag_spec='-L$libdir'
13158  ;;
13159
13160# This must be glibc/ELF.
13161linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13162  version_type=linux # correct to gnu/linux during the next big refactor
13163  need_lib_prefix=no
13164  need_version=no
13165  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13166  soname_spec='$libname$release$shared_ext$major'
13167  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13168  shlibpath_var=LD_LIBRARY_PATH
13169  shlibpath_overrides_runpath=no
13170
13171  # Some binutils ld are patched to set DT_RUNPATH
13172  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13173  $as_echo_n "(cached) " >&6
13174else
13175  lt_cv_shlibpath_overrides_runpath=no
13176    save_LDFLAGS=$LDFLAGS
13177    save_libdir=$libdir
13178    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13179	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13180    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181/* end confdefs.h.  */
13182
13183int
13184main ()
13185{
13186
13187  ;
13188  return 0;
13189}
13190_ACEOF
13191if ac_fn_c_try_link "$LINENO"; then :
13192  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13193  lt_cv_shlibpath_overrides_runpath=yes
13194fi
13195fi
13196rm -f core conftest.err conftest.$ac_objext \
13197    conftest$ac_exeext conftest.$ac_ext
13198    LDFLAGS=$save_LDFLAGS
13199    libdir=$save_libdir
13200
13201fi
13202
13203  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13204
13205  # This implies no fast_install, which is unacceptable.
13206  # Some rework will be needed to allow for fast_install
13207  # before this can be enabled.
13208  hardcode_into_libs=yes
13209
13210  # Ideally, we could use ldconfig to report *all* directores which are
13211  # searched for libraries, however this is still not possible.  Aside from not
13212  # being certain /sbin/ldconfig is available, command
13213  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13214  # even though it is searched at run-time.  Try to do the best guess by
13215  # appending ld.so.conf contents (and includes) to the search path.
13216  if test -f /etc/ld.so.conf; then
13217    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' ' '`
13218    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13219  fi
13220
13221  # We used to test for /lib/ld.so.1 and disable shared libraries on
13222  # powerpc, because MkLinux only supported shared libraries with the
13223  # GNU dynamic linker.  Since this was broken with cross compilers,
13224  # most powerpc-linux boxes support dynamic linking these days and
13225  # people can always --disable-shared, the test was removed, and we
13226  # assume the GNU/Linux dynamic linker is in use.
13227  dynamic_linker='GNU/Linux ld.so'
13228  ;;
13229
13230netbsd*)
13231  version_type=sunos
13232  need_lib_prefix=no
13233  need_version=no
13234  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13235    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13236    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13237    dynamic_linker='NetBSD (a.out) ld.so'
13238  else
13239    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13240    soname_spec='$libname$release$shared_ext$major'
13241    dynamic_linker='NetBSD ld.elf_so'
13242  fi
13243  shlibpath_var=LD_LIBRARY_PATH
13244  shlibpath_overrides_runpath=yes
13245  hardcode_into_libs=yes
13246  ;;
13247
13248newsos6)
13249  version_type=linux # correct to gnu/linux during the next big refactor
13250  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13251  shlibpath_var=LD_LIBRARY_PATH
13252  shlibpath_overrides_runpath=yes
13253  ;;
13254
13255*nto* | *qnx*)
13256  version_type=qnx
13257  need_lib_prefix=no
13258  need_version=no
13259  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13260  soname_spec='$libname$release$shared_ext$major'
13261  shlibpath_var=LD_LIBRARY_PATH
13262  shlibpath_overrides_runpath=no
13263  hardcode_into_libs=yes
13264  dynamic_linker='ldqnx.so'
13265  ;;
13266
13267openbsd* | bitrig*)
13268  version_type=sunos
13269  sys_lib_dlsearch_path_spec=/usr/lib
13270  need_lib_prefix=no
13271  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13272    need_version=no
13273  else
13274    need_version=yes
13275  fi
13276  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13277  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13278  shlibpath_var=LD_LIBRARY_PATH
13279  shlibpath_overrides_runpath=yes
13280  ;;
13281
13282os2*)
13283  libname_spec='$name'
13284  version_type=windows
13285  shrext_cmds=.dll
13286  need_version=no
13287  need_lib_prefix=no
13288  # OS/2 can only load a DLL with a base name of 8 characters or less.
13289  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13290    v=$($ECHO $release$versuffix | tr -d .-);
13291    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13292    $ECHO $n$v`$shared_ext'
13293  library_names_spec='${libname}_dll.$libext'
13294  dynamic_linker='OS/2 ld.exe'
13295  shlibpath_var=BEGINLIBPATH
13296  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13297  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13298  postinstall_cmds='base_file=`basename \$file`~
13299    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13300    dldir=$destdir/`dirname \$dlpath`~
13301    test -d \$dldir || mkdir -p \$dldir~
13302    $install_prog $dir/$dlname \$dldir/$dlname~
13303    chmod a+x \$dldir/$dlname~
13304    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13305      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13306    fi'
13307  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13308    dlpath=$dir/\$dldll~
13309    $RM \$dlpath'
13310  ;;
13311
13312osf3* | osf4* | osf5*)
13313  version_type=osf
13314  need_lib_prefix=no
13315  need_version=no
13316  soname_spec='$libname$release$shared_ext$major'
13317  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13318  shlibpath_var=LD_LIBRARY_PATH
13319  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13320  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13321  ;;
13322
13323rdos*)
13324  dynamic_linker=no
13325  ;;
13326
13327solaris*)
13328  version_type=linux # correct to gnu/linux during the next big refactor
13329  need_lib_prefix=no
13330  need_version=no
13331  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13332  soname_spec='$libname$release$shared_ext$major'
13333  shlibpath_var=LD_LIBRARY_PATH
13334  shlibpath_overrides_runpath=yes
13335  hardcode_into_libs=yes
13336  # ldd complains unless libraries are executable
13337  postinstall_cmds='chmod +x $lib'
13338  ;;
13339
13340sunos4*)
13341  version_type=sunos
13342  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13343  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13344  shlibpath_var=LD_LIBRARY_PATH
13345  shlibpath_overrides_runpath=yes
13346  if test yes = "$with_gnu_ld"; then
13347    need_lib_prefix=no
13348  fi
13349  need_version=yes
13350  ;;
13351
13352sysv4 | sysv4.3*)
13353  version_type=linux # correct to gnu/linux during the next big refactor
13354  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13355  soname_spec='$libname$release$shared_ext$major'
13356  shlibpath_var=LD_LIBRARY_PATH
13357  case $host_vendor in
13358    sni)
13359      shlibpath_overrides_runpath=no
13360      need_lib_prefix=no
13361      runpath_var=LD_RUN_PATH
13362      ;;
13363    siemens)
13364      need_lib_prefix=no
13365      ;;
13366    motorola)
13367      need_lib_prefix=no
13368      need_version=no
13369      shlibpath_overrides_runpath=no
13370      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13371      ;;
13372  esac
13373  ;;
13374
13375sysv4*MP*)
13376  if test -d /usr/nec; then
13377    version_type=linux # correct to gnu/linux during the next big refactor
13378    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13379    soname_spec='$libname$shared_ext.$major'
13380    shlibpath_var=LD_LIBRARY_PATH
13381  fi
13382  ;;
13383
13384sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13385  version_type=sco
13386  need_lib_prefix=no
13387  need_version=no
13388  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13389  soname_spec='$libname$release$shared_ext$major'
13390  shlibpath_var=LD_LIBRARY_PATH
13391  shlibpath_overrides_runpath=yes
13392  hardcode_into_libs=yes
13393  if test yes = "$with_gnu_ld"; then
13394    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13395  else
13396    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13397    case $host_os in
13398      sco3.2v5*)
13399        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13400	;;
13401    esac
13402  fi
13403  sys_lib_dlsearch_path_spec='/usr/lib'
13404  ;;
13405
13406tpf*)
13407  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13408  version_type=linux # correct to gnu/linux during the next big refactor
13409  need_lib_prefix=no
13410  need_version=no
13411  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13412  shlibpath_var=LD_LIBRARY_PATH
13413  shlibpath_overrides_runpath=no
13414  hardcode_into_libs=yes
13415  ;;
13416
13417uts4*)
13418  version_type=linux # correct to gnu/linux during the next big refactor
13419  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13420  soname_spec='$libname$release$shared_ext$major'
13421  shlibpath_var=LD_LIBRARY_PATH
13422  ;;
13423
13424*)
13425  dynamic_linker=no
13426  ;;
13427esac
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13429$as_echo "$dynamic_linker" >&6; }
13430test no = "$dynamic_linker" && can_build_shared=no
13431
13432variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13433if test yes = "$GCC"; then
13434  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13435fi
13436
13437if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13438  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13439fi
13440
13441if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13442  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13443fi
13444
13445# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13446configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13447
13448# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13449func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13450
13451# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13452configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13551$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13552hardcode_action=
13553if test -n "$hardcode_libdir_flag_spec" ||
13554   test -n "$runpath_var" ||
13555   test yes = "$hardcode_automatic"; then
13556
13557  # We can hardcode non-existent directories.
13558  if test no != "$hardcode_direct" &&
13559     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13560     # have to relink, otherwise we might link with an installed library
13561     # when we should be linking with a yet-to-be-installed one
13562     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13563     test no != "$hardcode_minus_L"; then
13564    # Linking always hardcodes the temporary library directory.
13565    hardcode_action=relink
13566  else
13567    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13568    hardcode_action=immediate
13569  fi
13570else
13571  # We cannot hardcode anything, or else we can only hardcode existing
13572  # directories.
13573  hardcode_action=unsupported
13574fi
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13576$as_echo "$hardcode_action" >&6; }
13577
13578if test relink = "$hardcode_action" ||
13579   test yes = "$inherit_rpath"; then
13580  # Fast installation is not supported
13581  enable_fast_install=no
13582elif test yes = "$shlibpath_overrides_runpath" ||
13583     test no = "$enable_shared"; then
13584  # Fast installation is not necessary
13585  enable_fast_install=needless
13586fi
13587
13588
13589
13590
13591
13592
13593  if test yes != "$enable_dlopen"; then
13594  enable_dlopen=unknown
13595  enable_dlopen_self=unknown
13596  enable_dlopen_self_static=unknown
13597else
13598  lt_cv_dlopen=no
13599  lt_cv_dlopen_libs=
13600
13601  case $host_os in
13602  beos*)
13603    lt_cv_dlopen=load_add_on
13604    lt_cv_dlopen_libs=
13605    lt_cv_dlopen_self=yes
13606    ;;
13607
13608  mingw* | pw32* | cegcc*)
13609    lt_cv_dlopen=LoadLibrary
13610    lt_cv_dlopen_libs=
13611    ;;
13612
13613  cygwin*)
13614    lt_cv_dlopen=dlopen
13615    lt_cv_dlopen_libs=
13616    ;;
13617
13618  darwin*)
13619    # if libdl is installed we need to link against it
13620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13621$as_echo_n "checking for dlopen in -ldl... " >&6; }
13622if ${ac_cv_lib_dl_dlopen+:} false; then :
13623  $as_echo_n "(cached) " >&6
13624else
13625  ac_check_lib_save_LIBS=$LIBS
13626LIBS="-ldl  $LIBS"
13627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13628/* end confdefs.h.  */
13629
13630/* Override any GCC internal prototype to avoid an error.
13631   Use char because int might match the return type of a GCC
13632   builtin and then its argument prototype would still apply.  */
13633#ifdef __cplusplus
13634extern "C"
13635#endif
13636char dlopen ();
13637int
13638main ()
13639{
13640return dlopen ();
13641  ;
13642  return 0;
13643}
13644_ACEOF
13645if ac_fn_c_try_link "$LINENO"; then :
13646  ac_cv_lib_dl_dlopen=yes
13647else
13648  ac_cv_lib_dl_dlopen=no
13649fi
13650rm -f core conftest.err conftest.$ac_objext \
13651    conftest$ac_exeext conftest.$ac_ext
13652LIBS=$ac_check_lib_save_LIBS
13653fi
13654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13655$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13656if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13657  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13658else
13659
13660    lt_cv_dlopen=dyld
13661    lt_cv_dlopen_libs=
13662    lt_cv_dlopen_self=yes
13663
13664fi
13665
13666    ;;
13667
13668  tpf*)
13669    # Don't try to run any link tests for TPF.  We know it's impossible
13670    # because TPF is a cross-compiler, and we know how we open DSOs.
13671    lt_cv_dlopen=dlopen
13672    lt_cv_dlopen_libs=
13673    lt_cv_dlopen_self=no
13674    ;;
13675
13676  *)
13677    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13678if test "x$ac_cv_func_shl_load" = xyes; then :
13679  lt_cv_dlopen=shl_load
13680else
13681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13682$as_echo_n "checking for shl_load in -ldld... " >&6; }
13683if ${ac_cv_lib_dld_shl_load+:} false; then :
13684  $as_echo_n "(cached) " >&6
13685else
13686  ac_check_lib_save_LIBS=$LIBS
13687LIBS="-ldld  $LIBS"
13688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689/* end confdefs.h.  */
13690
13691/* Override any GCC internal prototype to avoid an error.
13692   Use char because int might match the return type of a GCC
13693   builtin and then its argument prototype would still apply.  */
13694#ifdef __cplusplus
13695extern "C"
13696#endif
13697char shl_load ();
13698int
13699main ()
13700{
13701return shl_load ();
13702  ;
13703  return 0;
13704}
13705_ACEOF
13706if ac_fn_c_try_link "$LINENO"; then :
13707  ac_cv_lib_dld_shl_load=yes
13708else
13709  ac_cv_lib_dld_shl_load=no
13710fi
13711rm -f core conftest.err conftest.$ac_objext \
13712    conftest$ac_exeext conftest.$ac_ext
13713LIBS=$ac_check_lib_save_LIBS
13714fi
13715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13716$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13717if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13718  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13719else
13720  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13721if test "x$ac_cv_func_dlopen" = xyes; then :
13722  lt_cv_dlopen=dlopen
13723else
13724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13725$as_echo_n "checking for dlopen in -ldl... " >&6; }
13726if ${ac_cv_lib_dl_dlopen+:} false; then :
13727  $as_echo_n "(cached) " >&6
13728else
13729  ac_check_lib_save_LIBS=$LIBS
13730LIBS="-ldl  $LIBS"
13731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732/* end confdefs.h.  */
13733
13734/* Override any GCC internal prototype to avoid an error.
13735   Use char because int might match the return type of a GCC
13736   builtin and then its argument prototype would still apply.  */
13737#ifdef __cplusplus
13738extern "C"
13739#endif
13740char dlopen ();
13741int
13742main ()
13743{
13744return dlopen ();
13745  ;
13746  return 0;
13747}
13748_ACEOF
13749if ac_fn_c_try_link "$LINENO"; then :
13750  ac_cv_lib_dl_dlopen=yes
13751else
13752  ac_cv_lib_dl_dlopen=no
13753fi
13754rm -f core conftest.err conftest.$ac_objext \
13755    conftest$ac_exeext conftest.$ac_ext
13756LIBS=$ac_check_lib_save_LIBS
13757fi
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13759$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13760if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13761  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13762else
13763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13764$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13765if ${ac_cv_lib_svld_dlopen+:} false; then :
13766  $as_echo_n "(cached) " >&6
13767else
13768  ac_check_lib_save_LIBS=$LIBS
13769LIBS="-lsvld  $LIBS"
13770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771/* end confdefs.h.  */
13772
13773/* Override any GCC internal prototype to avoid an error.
13774   Use char because int might match the return type of a GCC
13775   builtin and then its argument prototype would still apply.  */
13776#ifdef __cplusplus
13777extern "C"
13778#endif
13779char dlopen ();
13780int
13781main ()
13782{
13783return dlopen ();
13784  ;
13785  return 0;
13786}
13787_ACEOF
13788if ac_fn_c_try_link "$LINENO"; then :
13789  ac_cv_lib_svld_dlopen=yes
13790else
13791  ac_cv_lib_svld_dlopen=no
13792fi
13793rm -f core conftest.err conftest.$ac_objext \
13794    conftest$ac_exeext conftest.$ac_ext
13795LIBS=$ac_check_lib_save_LIBS
13796fi
13797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13798$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13799if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13800  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13801else
13802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13803$as_echo_n "checking for dld_link in -ldld... " >&6; }
13804if ${ac_cv_lib_dld_dld_link+:} false; then :
13805  $as_echo_n "(cached) " >&6
13806else
13807  ac_check_lib_save_LIBS=$LIBS
13808LIBS="-ldld  $LIBS"
13809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810/* end confdefs.h.  */
13811
13812/* Override any GCC internal prototype to avoid an error.
13813   Use char because int might match the return type of a GCC
13814   builtin and then its argument prototype would still apply.  */
13815#ifdef __cplusplus
13816extern "C"
13817#endif
13818char dld_link ();
13819int
13820main ()
13821{
13822return dld_link ();
13823  ;
13824  return 0;
13825}
13826_ACEOF
13827if ac_fn_c_try_link "$LINENO"; then :
13828  ac_cv_lib_dld_dld_link=yes
13829else
13830  ac_cv_lib_dld_dld_link=no
13831fi
13832rm -f core conftest.err conftest.$ac_objext \
13833    conftest$ac_exeext conftest.$ac_ext
13834LIBS=$ac_check_lib_save_LIBS
13835fi
13836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13837$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13838if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13839  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13840fi
13841
13842
13843fi
13844
13845
13846fi
13847
13848
13849fi
13850
13851
13852fi
13853
13854
13855fi
13856
13857    ;;
13858  esac
13859
13860  if test no = "$lt_cv_dlopen"; then
13861    enable_dlopen=no
13862  else
13863    enable_dlopen=yes
13864  fi
13865
13866  case $lt_cv_dlopen in
13867  dlopen)
13868    save_CPPFLAGS=$CPPFLAGS
13869    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13870
13871    save_LDFLAGS=$LDFLAGS
13872    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13873
13874    save_LIBS=$LIBS
13875    LIBS="$lt_cv_dlopen_libs $LIBS"
13876
13877    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13878$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13879if ${lt_cv_dlopen_self+:} false; then :
13880  $as_echo_n "(cached) " >&6
13881else
13882  	  if test yes = "$cross_compiling"; then :
13883  lt_cv_dlopen_self=cross
13884else
13885  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13886  lt_status=$lt_dlunknown
13887  cat > conftest.$ac_ext <<_LT_EOF
13888#line $LINENO "configure"
13889#include "confdefs.h"
13890
13891#if HAVE_DLFCN_H
13892#include <dlfcn.h>
13893#endif
13894
13895#include <stdio.h>
13896
13897#ifdef RTLD_GLOBAL
13898#  define LT_DLGLOBAL		RTLD_GLOBAL
13899#else
13900#  ifdef DL_GLOBAL
13901#    define LT_DLGLOBAL		DL_GLOBAL
13902#  else
13903#    define LT_DLGLOBAL		0
13904#  endif
13905#endif
13906
13907/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13908   find out it does not work in some platform. */
13909#ifndef LT_DLLAZY_OR_NOW
13910#  ifdef RTLD_LAZY
13911#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13912#  else
13913#    ifdef DL_LAZY
13914#      define LT_DLLAZY_OR_NOW		DL_LAZY
13915#    else
13916#      ifdef RTLD_NOW
13917#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13918#      else
13919#        ifdef DL_NOW
13920#          define LT_DLLAZY_OR_NOW	DL_NOW
13921#        else
13922#          define LT_DLLAZY_OR_NOW	0
13923#        endif
13924#      endif
13925#    endif
13926#  endif
13927#endif
13928
13929/* When -fvisibility=hidden is used, assume the code has been annotated
13930   correspondingly for the symbols needed.  */
13931#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13932int fnord () __attribute__((visibility("default")));
13933#endif
13934
13935int fnord () { return 42; }
13936int main ()
13937{
13938  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13939  int status = $lt_dlunknown;
13940
13941  if (self)
13942    {
13943      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13944      else
13945        {
13946	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13947          else puts (dlerror ());
13948	}
13949      /* dlclose (self); */
13950    }
13951  else
13952    puts (dlerror ());
13953
13954  return status;
13955}
13956_LT_EOF
13957  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13958  (eval $ac_link) 2>&5
13959  ac_status=$?
13960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13961  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13962    (./conftest; exit; ) >&5 2>/dev/null
13963    lt_status=$?
13964    case x$lt_status in
13965      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13966      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13967      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13968    esac
13969  else :
13970    # compilation failed
13971    lt_cv_dlopen_self=no
13972  fi
13973fi
13974rm -fr conftest*
13975
13976
13977fi
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13979$as_echo "$lt_cv_dlopen_self" >&6; }
13980
13981    if test yes = "$lt_cv_dlopen_self"; then
13982      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13983      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13984$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13985if ${lt_cv_dlopen_self_static+:} false; then :
13986  $as_echo_n "(cached) " >&6
13987else
13988  	  if test yes = "$cross_compiling"; then :
13989  lt_cv_dlopen_self_static=cross
13990else
13991  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13992  lt_status=$lt_dlunknown
13993  cat > conftest.$ac_ext <<_LT_EOF
13994#line $LINENO "configure"
13995#include "confdefs.h"
13996
13997#if HAVE_DLFCN_H
13998#include <dlfcn.h>
13999#endif
14000
14001#include <stdio.h>
14002
14003#ifdef RTLD_GLOBAL
14004#  define LT_DLGLOBAL		RTLD_GLOBAL
14005#else
14006#  ifdef DL_GLOBAL
14007#    define LT_DLGLOBAL		DL_GLOBAL
14008#  else
14009#    define LT_DLGLOBAL		0
14010#  endif
14011#endif
14012
14013/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14014   find out it does not work in some platform. */
14015#ifndef LT_DLLAZY_OR_NOW
14016#  ifdef RTLD_LAZY
14017#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14018#  else
14019#    ifdef DL_LAZY
14020#      define LT_DLLAZY_OR_NOW		DL_LAZY
14021#    else
14022#      ifdef RTLD_NOW
14023#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14024#      else
14025#        ifdef DL_NOW
14026#          define LT_DLLAZY_OR_NOW	DL_NOW
14027#        else
14028#          define LT_DLLAZY_OR_NOW	0
14029#        endif
14030#      endif
14031#    endif
14032#  endif
14033#endif
14034
14035/* When -fvisibility=hidden is used, assume the code has been annotated
14036   correspondingly for the symbols needed.  */
14037#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14038int fnord () __attribute__((visibility("default")));
14039#endif
14040
14041int fnord () { return 42; }
14042int main ()
14043{
14044  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14045  int status = $lt_dlunknown;
14046
14047  if (self)
14048    {
14049      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14050      else
14051        {
14052	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14053          else puts (dlerror ());
14054	}
14055      /* dlclose (self); */
14056    }
14057  else
14058    puts (dlerror ());
14059
14060  return status;
14061}
14062_LT_EOF
14063  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14064  (eval $ac_link) 2>&5
14065  ac_status=$?
14066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14067  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14068    (./conftest; exit; ) >&5 2>/dev/null
14069    lt_status=$?
14070    case x$lt_status in
14071      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14072      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14073      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14074    esac
14075  else :
14076    # compilation failed
14077    lt_cv_dlopen_self_static=no
14078  fi
14079fi
14080rm -fr conftest*
14081
14082
14083fi
14084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14085$as_echo "$lt_cv_dlopen_self_static" >&6; }
14086    fi
14087
14088    CPPFLAGS=$save_CPPFLAGS
14089    LDFLAGS=$save_LDFLAGS
14090    LIBS=$save_LIBS
14091    ;;
14092  esac
14093
14094  case $lt_cv_dlopen_self in
14095  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14096  *) enable_dlopen_self=unknown ;;
14097  esac
14098
14099  case $lt_cv_dlopen_self_static in
14100  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14101  *) enable_dlopen_self_static=unknown ;;
14102  esac
14103fi
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121striplib=
14122old_striplib=
14123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14124$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14125if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14126  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14127  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14129$as_echo "yes" >&6; }
14130else
14131# FIXME - insert some real tests, host_os isn't really good enough
14132  case $host_os in
14133  darwin*)
14134    if test -n "$STRIP"; then
14135      striplib="$STRIP -x"
14136      old_striplib="$STRIP -S"
14137      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14138$as_echo "yes" >&6; }
14139    else
14140      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14141$as_echo "no" >&6; }
14142    fi
14143    ;;
14144  *)
14145    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146$as_echo "no" >&6; }
14147    ;;
14148  esac
14149fi
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162  # Report what library types will actually be built
14163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14164$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14166$as_echo "$can_build_shared" >&6; }
14167
14168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14169$as_echo_n "checking whether to build shared libraries... " >&6; }
14170  test no = "$can_build_shared" && enable_shared=no
14171
14172  # On AIX, shared libraries and static libraries use the same namespace, and
14173  # are all built from PIC.
14174  case $host_os in
14175  aix3*)
14176    test yes = "$enable_shared" && enable_static=no
14177    if test -n "$RANLIB"; then
14178      archive_cmds="$archive_cmds~\$RANLIB \$lib"
14179      postinstall_cmds='$RANLIB $lib'
14180    fi
14181    ;;
14182
14183  aix[4-9]*)
14184    if test ia64 != "$host_cpu"; then
14185      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14186      yes,aix,yes) ;;			# shared object as lib.so file only
14187      yes,svr4,*) ;;			# shared object as lib.so archive member only
14188      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
14189      esac
14190    fi
14191    ;;
14192  esac
14193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14194$as_echo "$enable_shared" >&6; }
14195
14196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14197$as_echo_n "checking whether to build static libraries... " >&6; }
14198  # Make sure either enable_shared or enable_static is yes.
14199  test yes = "$enable_shared" || enable_static=yes
14200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14201$as_echo "$enable_static" >&6; }
14202
14203
14204
14205
14206fi
14207ac_ext=c
14208ac_cpp='$CPP $CPPFLAGS'
14209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14211ac_compiler_gnu=$ac_cv_c_compiler_gnu
14212
14213CC=$lt_save_CC
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229        ac_config_commands="$ac_config_commands libtool"
14230
14231
14232
14233
14234# Only expand once:
14235
14236
14237
14238
14239############################################################################
14240# Setup the core
14241############################################################################
14242
14243# Setup the pmix core
14244
14245    pmix_show_subtitle "C compiler and preprocessor"
14246
14247	# $%@#!@#% AIX!!  This has to be called before anything invokes the C
14248    # compiler.
14249
14250
14251    #
14252    # Check for the compiler
14253    #
14254
14255
14256    # Is the private index set?  If not, set it.
14257    if test "x$pmix_scope_index" = "x"; then
14258        pmix_scope_index=1
14259    fi
14260
14261    # First, check to see if any of these variables are already set.
14262    # This is a simple sanity check to ensure we're not already
14263    # overwriting pre-existing variables (that have a non-empty
14264    # value).  It's not a perfect check, but at least it's something.
14265    for pmix_var in pmix_cflags_save dummy pmix_cc_arvgv0; do
14266        pmix_str="pmix_str=\"\$$pmix_var\""
14267        eval $pmix_str
14268
14269        if test "x$pmix_str" != "x"; then
14270            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
14271$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
14272            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
14273$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
14274            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
14275$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
14276            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
14277$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
14278            as_fn_error $? "Cannot continue" "$LINENO" 5
14279        fi
14280    done
14281
14282    # Ok, we passed the simple sanity check.  Save all these names so
14283    # that we can unset them at the end of the scope.
14284    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cflags_save dummy pmix_cc_arvgv0\""
14285    eval $pmix_str
14286    unset pmix_str
14287
14288    env | grep pmix_scope
14289    pmix_scope_index=`expr $pmix_scope_index + 1`
14290
14291    pmix_cflags_save="$CFLAGS"
14292    ac_ext=c
14293ac_cpp='$CPP $CPPFLAGS'
14294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14296ac_compiler_gnu=$ac_cv_c_compiler_gnu
14297if test -n "$ac_tool_prefix"; then
14298  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14299set dummy ${ac_tool_prefix}gcc; ac_word=$2
14300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14301$as_echo_n "checking for $ac_word... " >&6; }
14302if ${ac_cv_prog_CC+:} false; then :
14303  $as_echo_n "(cached) " >&6
14304else
14305  if test -n "$CC"; then
14306  ac_cv_prog_CC="$CC" # Let the user override the test.
14307else
14308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309for as_dir in $PATH
14310do
14311  IFS=$as_save_IFS
14312  test -z "$as_dir" && as_dir=.
14313    for ac_exec_ext in '' $ac_executable_extensions; do
14314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14315    ac_cv_prog_CC="${ac_tool_prefix}gcc"
14316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14317    break 2
14318  fi
14319done
14320  done
14321IFS=$as_save_IFS
14322
14323fi
14324fi
14325CC=$ac_cv_prog_CC
14326if test -n "$CC"; then
14327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14328$as_echo "$CC" >&6; }
14329else
14330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331$as_echo "no" >&6; }
14332fi
14333
14334
14335fi
14336if test -z "$ac_cv_prog_CC"; then
14337  ac_ct_CC=$CC
14338  # Extract the first word of "gcc", so it can be a program name with args.
14339set dummy gcc; ac_word=$2
14340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14341$as_echo_n "checking for $ac_word... " >&6; }
14342if ${ac_cv_prog_ac_ct_CC+:} false; then :
14343  $as_echo_n "(cached) " >&6
14344else
14345  if test -n "$ac_ct_CC"; then
14346  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14347else
14348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349for as_dir in $PATH
14350do
14351  IFS=$as_save_IFS
14352  test -z "$as_dir" && as_dir=.
14353    for ac_exec_ext in '' $ac_executable_extensions; do
14354  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14355    ac_cv_prog_ac_ct_CC="gcc"
14356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14357    break 2
14358  fi
14359done
14360  done
14361IFS=$as_save_IFS
14362
14363fi
14364fi
14365ac_ct_CC=$ac_cv_prog_ac_ct_CC
14366if test -n "$ac_ct_CC"; then
14367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14368$as_echo "$ac_ct_CC" >&6; }
14369else
14370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371$as_echo "no" >&6; }
14372fi
14373
14374  if test "x$ac_ct_CC" = x; then
14375    CC=""
14376  else
14377    case $cross_compiling:$ac_tool_warned in
14378yes:)
14379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14381ac_tool_warned=yes ;;
14382esac
14383    CC=$ac_ct_CC
14384  fi
14385else
14386  CC="$ac_cv_prog_CC"
14387fi
14388
14389if test -z "$CC"; then
14390          if test -n "$ac_tool_prefix"; then
14391    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14392set dummy ${ac_tool_prefix}cc; ac_word=$2
14393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14394$as_echo_n "checking for $ac_word... " >&6; }
14395if ${ac_cv_prog_CC+:} false; then :
14396  $as_echo_n "(cached) " >&6
14397else
14398  if test -n "$CC"; then
14399  ac_cv_prog_CC="$CC" # Let the user override the test.
14400else
14401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402for as_dir in $PATH
14403do
14404  IFS=$as_save_IFS
14405  test -z "$as_dir" && as_dir=.
14406    for ac_exec_ext in '' $ac_executable_extensions; do
14407  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14408    ac_cv_prog_CC="${ac_tool_prefix}cc"
14409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14410    break 2
14411  fi
14412done
14413  done
14414IFS=$as_save_IFS
14415
14416fi
14417fi
14418CC=$ac_cv_prog_CC
14419if test -n "$CC"; then
14420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14421$as_echo "$CC" >&6; }
14422else
14423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424$as_echo "no" >&6; }
14425fi
14426
14427
14428  fi
14429fi
14430if test -z "$CC"; then
14431  # Extract the first word of "cc", so it can be a program name with args.
14432set dummy cc; ac_word=$2
14433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14434$as_echo_n "checking for $ac_word... " >&6; }
14435if ${ac_cv_prog_CC+:} false; then :
14436  $as_echo_n "(cached) " >&6
14437else
14438  if test -n "$CC"; then
14439  ac_cv_prog_CC="$CC" # Let the user override the test.
14440else
14441  ac_prog_rejected=no
14442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14443for as_dir in $PATH
14444do
14445  IFS=$as_save_IFS
14446  test -z "$as_dir" && as_dir=.
14447    for ac_exec_ext in '' $ac_executable_extensions; do
14448  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14449    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14450       ac_prog_rejected=yes
14451       continue
14452     fi
14453    ac_cv_prog_CC="cc"
14454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14455    break 2
14456  fi
14457done
14458  done
14459IFS=$as_save_IFS
14460
14461if test $ac_prog_rejected = yes; then
14462  # We found a bogon in the path, so make sure we never use it.
14463  set dummy $ac_cv_prog_CC
14464  shift
14465  if test $# != 0; then
14466    # We chose a different compiler from the bogus one.
14467    # However, it has the same basename, so the bogon will be chosen
14468    # first if we set CC to just the basename; use the full file name.
14469    shift
14470    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14471  fi
14472fi
14473fi
14474fi
14475CC=$ac_cv_prog_CC
14476if test -n "$CC"; then
14477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14478$as_echo "$CC" >&6; }
14479else
14480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14481$as_echo "no" >&6; }
14482fi
14483
14484
14485fi
14486if test -z "$CC"; then
14487  if test -n "$ac_tool_prefix"; then
14488  for ac_prog in cl.exe
14489  do
14490    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14491set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14493$as_echo_n "checking for $ac_word... " >&6; }
14494if ${ac_cv_prog_CC+:} false; then :
14495  $as_echo_n "(cached) " >&6
14496else
14497  if test -n "$CC"; then
14498  ac_cv_prog_CC="$CC" # Let the user override the test.
14499else
14500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14501for as_dir in $PATH
14502do
14503  IFS=$as_save_IFS
14504  test -z "$as_dir" && as_dir=.
14505    for ac_exec_ext in '' $ac_executable_extensions; do
14506  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14507    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14509    break 2
14510  fi
14511done
14512  done
14513IFS=$as_save_IFS
14514
14515fi
14516fi
14517CC=$ac_cv_prog_CC
14518if test -n "$CC"; then
14519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14520$as_echo "$CC" >&6; }
14521else
14522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14523$as_echo "no" >&6; }
14524fi
14525
14526
14527    test -n "$CC" && break
14528  done
14529fi
14530if test -z "$CC"; then
14531  ac_ct_CC=$CC
14532  for ac_prog in cl.exe
14533do
14534  # Extract the first word of "$ac_prog", so it can be a program name with args.
14535set dummy $ac_prog; ac_word=$2
14536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14537$as_echo_n "checking for $ac_word... " >&6; }
14538if ${ac_cv_prog_ac_ct_CC+:} false; then :
14539  $as_echo_n "(cached) " >&6
14540else
14541  if test -n "$ac_ct_CC"; then
14542  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14543else
14544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14545for as_dir in $PATH
14546do
14547  IFS=$as_save_IFS
14548  test -z "$as_dir" && as_dir=.
14549    for ac_exec_ext in '' $ac_executable_extensions; do
14550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14551    ac_cv_prog_ac_ct_CC="$ac_prog"
14552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14553    break 2
14554  fi
14555done
14556  done
14557IFS=$as_save_IFS
14558
14559fi
14560fi
14561ac_ct_CC=$ac_cv_prog_ac_ct_CC
14562if test -n "$ac_ct_CC"; then
14563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14564$as_echo "$ac_ct_CC" >&6; }
14565else
14566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14567$as_echo "no" >&6; }
14568fi
14569
14570
14571  test -n "$ac_ct_CC" && break
14572done
14573
14574  if test "x$ac_ct_CC" = x; then
14575    CC=""
14576  else
14577    case $cross_compiling:$ac_tool_warned in
14578yes:)
14579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14581ac_tool_warned=yes ;;
14582esac
14583    CC=$ac_ct_CC
14584  fi
14585fi
14586
14587fi
14588
14589
14590test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14592as_fn_error $? "no acceptable C compiler found in \$PATH
14593See \`config.log' for more details" "$LINENO" 5; }
14594
14595# Provide some information about the compiler.
14596$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14597set X $ac_compile
14598ac_compiler=$2
14599for ac_option in --version -v -V -qversion; do
14600  { { ac_try="$ac_compiler $ac_option >&5"
14601case "(($ac_try" in
14602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603  *) ac_try_echo=$ac_try;;
14604esac
14605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14606$as_echo "$ac_try_echo"; } >&5
14607  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14608  ac_status=$?
14609  if test -s conftest.err; then
14610    sed '10a\
14611... rest of stderr output deleted ...
14612         10q' conftest.err >conftest.er1
14613    cat conftest.er1 >&5
14614  fi
14615  rm -f conftest.er1 conftest.err
14616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617  test $ac_status = 0; }
14618done
14619
14620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14621$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14622if ${ac_cv_c_compiler_gnu+:} false; then :
14623  $as_echo_n "(cached) " >&6
14624else
14625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626/* end confdefs.h.  */
14627
14628int
14629main ()
14630{
14631#ifndef __GNUC__
14632       choke me
14633#endif
14634
14635  ;
14636  return 0;
14637}
14638_ACEOF
14639if ac_fn_c_try_compile "$LINENO"; then :
14640  ac_compiler_gnu=yes
14641else
14642  ac_compiler_gnu=no
14643fi
14644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14645ac_cv_c_compiler_gnu=$ac_compiler_gnu
14646
14647fi
14648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14649$as_echo "$ac_cv_c_compiler_gnu" >&6; }
14650if test $ac_compiler_gnu = yes; then
14651  GCC=yes
14652else
14653  GCC=
14654fi
14655ac_test_CFLAGS=${CFLAGS+set}
14656ac_save_CFLAGS=$CFLAGS
14657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14658$as_echo_n "checking whether $CC accepts -g... " >&6; }
14659if ${ac_cv_prog_cc_g+:} false; then :
14660  $as_echo_n "(cached) " >&6
14661else
14662  ac_save_c_werror_flag=$ac_c_werror_flag
14663   ac_c_werror_flag=yes
14664   ac_cv_prog_cc_g=no
14665   CFLAGS="-g"
14666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667/* end confdefs.h.  */
14668
14669int
14670main ()
14671{
14672
14673  ;
14674  return 0;
14675}
14676_ACEOF
14677if ac_fn_c_try_compile "$LINENO"; then :
14678  ac_cv_prog_cc_g=yes
14679else
14680  CFLAGS=""
14681      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14682/* end confdefs.h.  */
14683
14684int
14685main ()
14686{
14687
14688  ;
14689  return 0;
14690}
14691_ACEOF
14692if ac_fn_c_try_compile "$LINENO"; then :
14693
14694else
14695  ac_c_werror_flag=$ac_save_c_werror_flag
14696	 CFLAGS="-g"
14697	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698/* end confdefs.h.  */
14699
14700int
14701main ()
14702{
14703
14704  ;
14705  return 0;
14706}
14707_ACEOF
14708if ac_fn_c_try_compile "$LINENO"; then :
14709  ac_cv_prog_cc_g=yes
14710fi
14711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14712fi
14713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14714fi
14715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716   ac_c_werror_flag=$ac_save_c_werror_flag
14717fi
14718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14719$as_echo "$ac_cv_prog_cc_g" >&6; }
14720if test "$ac_test_CFLAGS" = set; then
14721  CFLAGS=$ac_save_CFLAGS
14722elif test $ac_cv_prog_cc_g = yes; then
14723  if test "$GCC" = yes; then
14724    CFLAGS="-g -O2"
14725  else
14726    CFLAGS="-g"
14727  fi
14728else
14729  if test "$GCC" = yes; then
14730    CFLAGS="-O2"
14731  else
14732    CFLAGS=
14733  fi
14734fi
14735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14736$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14737if ${ac_cv_prog_cc_c89+:} false; then :
14738  $as_echo_n "(cached) " >&6
14739else
14740  ac_cv_prog_cc_c89=no
14741ac_save_CC=$CC
14742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743/* end confdefs.h.  */
14744#include <stdarg.h>
14745#include <stdio.h>
14746struct stat;
14747/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14748struct buf { int x; };
14749FILE * (*rcsopen) (struct buf *, struct stat *, int);
14750static char *e (p, i)
14751     char **p;
14752     int i;
14753{
14754  return p[i];
14755}
14756static char *f (char * (*g) (char **, int), char **p, ...)
14757{
14758  char *s;
14759  va_list v;
14760  va_start (v,p);
14761  s = g (p, va_arg (v,int));
14762  va_end (v);
14763  return s;
14764}
14765
14766/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14767   function prototypes and stuff, but not '\xHH' hex character constants.
14768   These don't provoke an error unfortunately, instead are silently treated
14769   as 'x'.  The following induces an error, until -std is added to get
14770   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14771   array size at least.  It's necessary to write '\x00'==0 to get something
14772   that's true only with -std.  */
14773int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14774
14775/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14776   inside strings and character constants.  */
14777#define FOO(x) 'x'
14778int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14779
14780int test (int i, double x);
14781struct s1 {int (*f) (int a);};
14782struct s2 {int (*f) (double a);};
14783int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14784int argc;
14785char **argv;
14786int
14787main ()
14788{
14789return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14790  ;
14791  return 0;
14792}
14793_ACEOF
14794for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14795	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14796do
14797  CC="$ac_save_CC $ac_arg"
14798  if ac_fn_c_try_compile "$LINENO"; then :
14799  ac_cv_prog_cc_c89=$ac_arg
14800fi
14801rm -f core conftest.err conftest.$ac_objext
14802  test "x$ac_cv_prog_cc_c89" != "xno" && break
14803done
14804rm -f conftest.$ac_ext
14805CC=$ac_save_CC
14806
14807fi
14808# AC_CACHE_VAL
14809case "x$ac_cv_prog_cc_c89" in
14810  x)
14811    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14812$as_echo "none needed" >&6; } ;;
14813  xno)
14814    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14815$as_echo "unsupported" >&6; } ;;
14816  *)
14817    CC="$CC $ac_cv_prog_cc_c89"
14818    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14819$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14820esac
14821if test "x$ac_cv_prog_cc_c89" != xno; then :
14822
14823fi
14824
14825ac_ext=c
14826ac_cpp='$CPP $CPPFLAGS'
14827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14829ac_compiler_gnu=$ac_cv_c_compiler_gnu
14830
14831ac_ext=c
14832ac_cpp='$CPP $CPPFLAGS'
14833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14835ac_compiler_gnu=$ac_cv_c_compiler_gnu
14836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14837$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14838if ${am_cv_prog_cc_c_o+:} false; then :
14839  $as_echo_n "(cached) " >&6
14840else
14841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14842/* end confdefs.h.  */
14843
14844int
14845main ()
14846{
14847
14848  ;
14849  return 0;
14850}
14851_ACEOF
14852  # Make sure it works both with $CC and with simple cc.
14853  # Following AC_PROG_CC_C_O, we do the test twice because some
14854  # compilers refuse to overwrite an existing .o file with -o,
14855  # though they will create one.
14856  am_cv_prog_cc_c_o=yes
14857  for am_i in 1 2; do
14858    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14859   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14860   ac_status=$?
14861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862   (exit $ac_status); } \
14863         && test -f conftest2.$ac_objext; then
14864      : OK
14865    else
14866      am_cv_prog_cc_c_o=no
14867      break
14868    fi
14869  done
14870  rm -f core conftest*
14871  unset am_i
14872fi
14873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14874$as_echo "$am_cv_prog_cc_c_o" >&6; }
14875if test "$am_cv_prog_cc_c_o" != yes; then
14876   # Losing compiler, so override with the script.
14877   # FIXME: It is wrong to rewrite CC.
14878   # But if we don't then we get into trouble of one sort or another.
14879   # A longer-term fix would be to have automake use am__CC in this case,
14880   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14881   CC="$am_aux_dir/compile $CC"
14882fi
14883ac_ext=c
14884ac_cpp='$CPP $CPPFLAGS'
14885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14887ac_compiler_gnu=$ac_cv_c_compiler_gnu
14888
14889
14890depcc="$CC"   am_compiler_list=
14891
14892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14893$as_echo_n "checking dependency style of $depcc... " >&6; }
14894if ${am_cv_CC_dependencies_compiler_type+:} false; then :
14895  $as_echo_n "(cached) " >&6
14896else
14897  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14898  # We make a subdir and do the tests there.  Otherwise we can end up
14899  # making bogus files that we don't know about and never remove.  For
14900  # instance it was reported that on HP-UX the gcc test will end up
14901  # making a dummy file named 'D' -- because '-MD' means "put the output
14902  # in D".
14903  rm -rf conftest.dir
14904  mkdir conftest.dir
14905  # Copy depcomp to subdir because otherwise we won't find it if we're
14906  # using a relative directory.
14907  cp "$am_depcomp" conftest.dir
14908  cd conftest.dir
14909  # We will build objects and dependencies in a subdirectory because
14910  # it helps to detect inapplicable dependency modes.  For instance
14911  # both Tru64's cc and ICC support -MD to output dependencies as a
14912  # side effect of compilation, but ICC will put the dependencies in
14913  # the current directory while Tru64 will put them in the object
14914  # directory.
14915  mkdir sub
14916
14917  am_cv_CC_dependencies_compiler_type=none
14918  if test "$am_compiler_list" = ""; then
14919     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14920  fi
14921  am__universal=false
14922  case " $depcc " in #(
14923     *\ -arch\ *\ -arch\ *) am__universal=true ;;
14924     esac
14925
14926  for depmode in $am_compiler_list; do
14927    # Setup a source with many dependencies, because some compilers
14928    # like to wrap large dependency lists on column 80 (with \), and
14929    # we should not choose a depcomp mode which is confused by this.
14930    #
14931    # We need to recreate these files for each test, as the compiler may
14932    # overwrite some of them when testing with obscure command lines.
14933    # This happens at least with the AIX C compiler.
14934    : > sub/conftest.c
14935    for i in 1 2 3 4 5 6; do
14936      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14937      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14938      # Solaris 10 /bin/sh.
14939      echo '/* dummy */' > sub/conftst$i.h
14940    done
14941    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14942
14943    # We check with '-c' and '-o' for the sake of the "dashmstdout"
14944    # mode.  It turns out that the SunPro C++ compiler does not properly
14945    # handle '-M -o', and we need to detect this.  Also, some Intel
14946    # versions had trouble with output in subdirs.
14947    am__obj=sub/conftest.${OBJEXT-o}
14948    am__minus_obj="-o $am__obj"
14949    case $depmode in
14950    gcc)
14951      # This depmode causes a compiler race in universal mode.
14952      test "$am__universal" = false || continue
14953      ;;
14954    nosideeffect)
14955      # After this tag, mechanisms are not by side-effect, so they'll
14956      # only be used when explicitly requested.
14957      if test "x$enable_dependency_tracking" = xyes; then
14958	continue
14959      else
14960	break
14961      fi
14962      ;;
14963    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14964      # This compiler won't grok '-c -o', but also, the minuso test has
14965      # not run yet.  These depmodes are late enough in the game, and
14966      # so weak that their functioning should not be impacted.
14967      am__obj=conftest.${OBJEXT-o}
14968      am__minus_obj=
14969      ;;
14970    none) break ;;
14971    esac
14972    if depmode=$depmode \
14973       source=sub/conftest.c object=$am__obj \
14974       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14975       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14976         >/dev/null 2>conftest.err &&
14977       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14978       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14979       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14980       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14981      # icc doesn't choke on unknown options, it will just issue warnings
14982      # or remarks (even with -Werror).  So we grep stderr for any message
14983      # that says an option was ignored or not supported.
14984      # When given -MP, icc 7.0 and 7.1 complain thusly:
14985      #   icc: Command line warning: ignoring option '-M'; no argument required
14986      # The diagnosis changed in icc 8.0:
14987      #   icc: Command line remark: option '-MP' not supported
14988      if (grep 'ignoring option' conftest.err ||
14989          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14990        am_cv_CC_dependencies_compiler_type=$depmode
14991        break
14992      fi
14993    fi
14994  done
14995
14996  cd ..
14997  rm -rf conftest.dir
14998else
14999  am_cv_CC_dependencies_compiler_type=none
15000fi
15001
15002fi
15003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15004$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15005CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15006
15007 if
15008  test "x$enable_dependency_tracking" != xno \
15009  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15010  am__fastdepCC_TRUE=
15011  am__fastdepCC_FALSE='#'
15012else
15013  am__fastdepCC_TRUE='#'
15014  am__fastdepCC_FALSE=
15015fi
15016
15017
15018    BASECC="`basename $CC`"
15019    CFLAGS="$pmix_cflags_save"
15020
15021cat >>confdefs.h <<_ACEOF
15022#define PMIX_CC "$CC"
15023_ACEOF
15024
15025    set dummy $CC
15026    pmix_cc_argv0=$2
15027
15028# 1 is the variable name to do "which" on
15029# 2 is the variable name to assign the return value to
15030
15031
15032
15033    # Is the private index set?  If not, set it.
15034    if test "x$pmix_scope_index" = "x"; then
15035        pmix_scope_index=1
15036    fi
15037
15038    # First, check to see if any of these variables are already set.
15039    # This is a simple sanity check to ensure we're not already
15040    # overwriting pre-existing variables (that have a non-empty
15041    # value).  It's not a perfect check, but at least it's something.
15042    for pmix_var in pmix_prog pmix_file pmix_dir pmix_sentinel; do
15043        pmix_str="pmix_str=\"\$$pmix_var\""
15044        eval $pmix_str
15045
15046        if test "x$pmix_str" != "x"; then
15047            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
15048$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
15049            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
15050$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
15051            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
15052$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
15053            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
15054$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
15055            as_fn_error $? "Cannot continue" "$LINENO" 5
15056        fi
15057    done
15058
15059    # Ok, we passed the simple sanity check.  Save all these names so
15060    # that we can unset them at the end of the scope.
15061    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_prog pmix_file pmix_dir pmix_sentinel\""
15062    eval $pmix_str
15063    unset pmix_str
15064
15065    env | grep pmix_scope
15066    pmix_scope_index=`expr $pmix_scope_index + 1`
15067
15068
15069pmix_prog=$pmix_cc_argv0
15070
15071IFS_SAVE=$IFS
15072IFS="$PATH_SEPARATOR"
15073for pmix_dir in $PATH; do
15074    if test -x "$pmix_dir/$pmix_prog"; then
15075        PMIX_CC_ABSOLUTE="$pmix_dir/$pmix_prog"
15076        break
15077    fi
15078done
15079IFS=$IFS_SAVE
15080
15081
15082    # Unwind the index
15083    pmix_scope_index=`expr $pmix_scope_index - 1`
15084    pmix_scope_test=`expr $pmix_scope_index \> 0`
15085    if test "$pmix_scope_test" = "0"; then
15086        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
15087$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
15088        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
15089$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
15090        as_fn_error $? "Cannot continue" "$LINENO" 5
15091    fi
15092
15093    # Get the variable names from that index
15094    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
15095    eval $pmix_str
15096
15097    # Iterate over all the variables and unset them all
15098    for pmix_var in $pmix_str; do
15099        unset $pmix_var
15100    done
15101
15102
15103
15104
15105    # Unwind the index
15106    pmix_scope_index=`expr $pmix_scope_index - 1`
15107    pmix_scope_test=`expr $pmix_scope_index \> 0`
15108    if test "$pmix_scope_test" = "0"; then
15109        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
15110$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
15111        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
15112$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
15113        as_fn_error $? "Cannot continue" "$LINENO" 5
15114    fi
15115
15116    # Get the variable names from that index
15117    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
15118    eval $pmix_str
15119
15120    # Iterate over all the variables and unset them all
15121    for pmix_var in $pmix_str; do
15122        unset $pmix_var
15123    done
15124
15125
15126
15127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
15128$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
15129if ${lt_cv_path_NM+:} false; then :
15130  $as_echo_n "(cached) " >&6
15131else
15132  if test -n "$NM"; then
15133  # Let the user override the test.
15134  lt_cv_path_NM=$NM
15135else
15136  lt_nm_to_check=${ac_tool_prefix}nm
15137  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
15138    lt_nm_to_check="$lt_nm_to_check nm"
15139  fi
15140  for lt_tmp_nm in $lt_nm_to_check; do
15141    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15142    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
15143      IFS=$lt_save_ifs
15144      test -z "$ac_dir" && ac_dir=.
15145      tmp_nm=$ac_dir/$lt_tmp_nm
15146      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
15147	# Check to see if the nm accepts a BSD-compat flag.
15148	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
15149	#   nm: unknown option "B" ignored
15150	# Tru64's nm complains that /dev/null is an invalid object file
15151	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
15152	case $build_os in
15153	mingw*) lt_bad_file=conftest.nm/nofile ;;
15154	*) lt_bad_file=/dev/null ;;
15155	esac
15156	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
15157	*$lt_bad_file* | *'Invalid file or object type'*)
15158	  lt_cv_path_NM="$tmp_nm -B"
15159	  break 2
15160	  ;;
15161	*)
15162	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
15163	  */dev/null*)
15164	    lt_cv_path_NM="$tmp_nm -p"
15165	    break 2
15166	    ;;
15167	  *)
15168	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15169	    continue # so that we can try to find one that supports BSD flags
15170	    ;;
15171	  esac
15172	  ;;
15173	esac
15174      fi
15175    done
15176    IFS=$lt_save_ifs
15177  done
15178  : ${lt_cv_path_NM=no}
15179fi
15180fi
15181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
15182$as_echo "$lt_cv_path_NM" >&6; }
15183if test no != "$lt_cv_path_NM"; then
15184  NM=$lt_cv_path_NM
15185else
15186  # Didn't find any BSD compatible name lister, look for dumpbin.
15187  if test -n "$DUMPBIN"; then :
15188    # Let the user override the test.
15189  else
15190    if test -n "$ac_tool_prefix"; then
15191  for ac_prog in dumpbin "link -dump"
15192  do
15193    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15194set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15196$as_echo_n "checking for $ac_word... " >&6; }
15197if ${ac_cv_prog_DUMPBIN+:} false; then :
15198  $as_echo_n "(cached) " >&6
15199else
15200  if test -n "$DUMPBIN"; then
15201  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
15202else
15203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15204for as_dir in $PATH
15205do
15206  IFS=$as_save_IFS
15207  test -z "$as_dir" && as_dir=.
15208    for ac_exec_ext in '' $ac_executable_extensions; do
15209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15210    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
15211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15212    break 2
15213  fi
15214done
15215  done
15216IFS=$as_save_IFS
15217
15218fi
15219fi
15220DUMPBIN=$ac_cv_prog_DUMPBIN
15221if test -n "$DUMPBIN"; then
15222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
15223$as_echo "$DUMPBIN" >&6; }
15224else
15225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226$as_echo "no" >&6; }
15227fi
15228
15229
15230    test -n "$DUMPBIN" && break
15231  done
15232fi
15233if test -z "$DUMPBIN"; then
15234  ac_ct_DUMPBIN=$DUMPBIN
15235  for ac_prog in dumpbin "link -dump"
15236do
15237  # Extract the first word of "$ac_prog", so it can be a program name with args.
15238set dummy $ac_prog; ac_word=$2
15239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15240$as_echo_n "checking for $ac_word... " >&6; }
15241if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
15242  $as_echo_n "(cached) " >&6
15243else
15244  if test -n "$ac_ct_DUMPBIN"; then
15245  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
15246else
15247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15248for as_dir in $PATH
15249do
15250  IFS=$as_save_IFS
15251  test -z "$as_dir" && as_dir=.
15252    for ac_exec_ext in '' $ac_executable_extensions; do
15253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15254    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
15255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15256    break 2
15257  fi
15258done
15259  done
15260IFS=$as_save_IFS
15261
15262fi
15263fi
15264ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
15265if test -n "$ac_ct_DUMPBIN"; then
15266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
15267$as_echo "$ac_ct_DUMPBIN" >&6; }
15268else
15269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15270$as_echo "no" >&6; }
15271fi
15272
15273
15274  test -n "$ac_ct_DUMPBIN" && break
15275done
15276
15277  if test "x$ac_ct_DUMPBIN" = x; then
15278    DUMPBIN=":"
15279  else
15280    case $cross_compiling:$ac_tool_warned in
15281yes:)
15282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15284ac_tool_warned=yes ;;
15285esac
15286    DUMPBIN=$ac_ct_DUMPBIN
15287  fi
15288fi
15289
15290    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
15291    *COFF*)
15292      DUMPBIN="$DUMPBIN -symbols -headers"
15293      ;;
15294    *)
15295      DUMPBIN=:
15296      ;;
15297    esac
15298  fi
15299
15300  if test : != "$DUMPBIN"; then
15301    NM=$DUMPBIN
15302  fi
15303fi
15304test -z "$NM" && NM=nm
15305
15306
15307
15308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
15309$as_echo_n "checking the name lister ($NM) interface... " >&6; }
15310if ${lt_cv_nm_interface+:} false; then :
15311  $as_echo_n "(cached) " >&6
15312else
15313  lt_cv_nm_interface="BSD nm"
15314  echo "int some_variable = 0;" > conftest.$ac_ext
15315  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
15316  (eval "$ac_compile" 2>conftest.err)
15317  cat conftest.err >&5
15318  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
15319  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
15320  cat conftest.err >&5
15321  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
15322  cat conftest.out >&5
15323  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
15324    lt_cv_nm_interface="MS dumpbin"
15325  fi
15326  rm -f conftest*
15327fi
15328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
15329$as_echo "$lt_cv_nm_interface" >&6; }
15330
15331
15332
15333    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __NetBSD__" >&5
15334$as_echo_n "checking __NetBSD__... " >&6; }
15335    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15336/* end confdefs.h.  */
15337#ifndef __NetBSD__
15338      error: this isnt __NetBSD__
15339      #endif
15340
15341int
15342main ()
15343{
15344
15345  ;
15346  return 0;
15347}
15348_ACEOF
15349if ac_fn_c_try_compile "$LINENO"; then :
15350  pmix_found_netbsd=yes
15351else
15352  pmix_found_netbsd=no
15353fi
15354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_netbsd" >&5
15356$as_echo "$pmix_found_netbsd" >&6; }
15357
15358
15359    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __FreeBSD__" >&5
15360$as_echo_n "checking __FreeBSD__... " >&6; }
15361    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15362/* end confdefs.h.  */
15363#ifndef __FreeBSD__
15364      error: this isnt __FreeBSD__
15365      #endif
15366
15367int
15368main ()
15369{
15370
15371  ;
15372  return 0;
15373}
15374_ACEOF
15375if ac_fn_c_try_compile "$LINENO"; then :
15376  pmix_found_freebsd=yes
15377else
15378  pmix_found_freebsd=no
15379fi
15380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15381    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_freebsd" >&5
15382$as_echo "$pmix_found_freebsd" >&6; }
15383
15384
15385    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __OpenBSD__" >&5
15386$as_echo_n "checking __OpenBSD__... " >&6; }
15387    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388/* end confdefs.h.  */
15389#ifndef __OpenBSD__
15390      error: this isnt __OpenBSD__
15391      #endif
15392
15393int
15394main ()
15395{
15396
15397  ;
15398  return 0;
15399}
15400_ACEOF
15401if ac_fn_c_try_compile "$LINENO"; then :
15402  pmix_found_openbsd=yes
15403else
15404  pmix_found_openbsd=no
15405fi
15406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_openbsd" >&5
15408$as_echo "$pmix_found_openbsd" >&6; }
15409
15410
15411    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __DragonFly__" >&5
15412$as_echo_n "checking __DragonFly__... " >&6; }
15413    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414/* end confdefs.h.  */
15415#ifndef __DragonFly__
15416      error: this isnt __DragonFly__
15417      #endif
15418
15419int
15420main ()
15421{
15422
15423  ;
15424  return 0;
15425}
15426_ACEOF
15427if ac_fn_c_try_compile "$LINENO"; then :
15428  pmix_found_dragonfly=yes
15429else
15430  pmix_found_dragonfly=no
15431fi
15432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_dragonfly" >&5
15434$as_echo "$pmix_found_dragonfly" >&6; }
15435
15436
15437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __386BSD__" >&5
15438$as_echo_n "checking __386BSD__... " >&6; }
15439    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440/* end confdefs.h.  */
15441#ifndef __386BSD__
15442      error: this isnt __386BSD__
15443      #endif
15444
15445int
15446main ()
15447{
15448
15449  ;
15450  return 0;
15451}
15452_ACEOF
15453if ac_fn_c_try_compile "$LINENO"; then :
15454  pmix_found_386bsd=yes
15455else
15456  pmix_found_386bsd=no
15457fi
15458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15459    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_386bsd" >&5
15460$as_echo "$pmix_found_386bsd" >&6; }
15461
15462
15463    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __bsdi__" >&5
15464$as_echo_n "checking __bsdi__... " >&6; }
15465    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466/* end confdefs.h.  */
15467#ifndef __bsdi__
15468      error: this isnt __bsdi__
15469      #endif
15470
15471int
15472main ()
15473{
15474
15475  ;
15476  return 0;
15477}
15478_ACEOF
15479if ac_fn_c_try_compile "$LINENO"; then :
15480  pmix_found_bsdi=yes
15481else
15482  pmix_found_bsdi=no
15483fi
15484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15485    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_bsdi" >&5
15486$as_echo "$pmix_found_bsdi" >&6; }
15487
15488
15489    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __APPLE__" >&5
15490$as_echo_n "checking __APPLE__... " >&6; }
15491    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15492/* end confdefs.h.  */
15493#ifndef __APPLE__
15494      error: this isnt __APPLE__
15495      #endif
15496
15497int
15498main ()
15499{
15500
15501  ;
15502  return 0;
15503}
15504_ACEOF
15505if ac_fn_c_try_compile "$LINENO"; then :
15506  pmix_found_apple=yes
15507else
15508  pmix_found_apple=no
15509fi
15510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_apple" >&5
15512$as_echo "$pmix_found_apple" >&6; }
15513
15514
15515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __linux__" >&5
15516$as_echo_n "checking __linux__... " >&6; }
15517    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518/* end confdefs.h.  */
15519#ifndef __linux__
15520      error: this isnt __linux__
15521      #endif
15522
15523int
15524main ()
15525{
15526
15527  ;
15528  return 0;
15529}
15530_ACEOF
15531if ac_fn_c_try_compile "$LINENO"; then :
15532  pmix_found_linux=yes
15533else
15534  pmix_found_linux=no
15535fi
15536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15537    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_linux" >&5
15538$as_echo "$pmix_found_linux" >&6; }
15539
15540
15541    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sun__" >&5
15542$as_echo_n "checking __sun__... " >&6; }
15543    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15544/* end confdefs.h.  */
15545#ifndef __sun__
15546      error: this isnt __sun__
15547      #endif
15548
15549int
15550main ()
15551{
15552
15553  ;
15554  return 0;
15555}
15556_ACEOF
15557if ac_fn_c_try_compile "$LINENO"; then :
15558  pmix_found_sun=yes
15559else
15560  pmix_found_sun=no
15561fi
15562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15563    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_sun" >&5
15564$as_echo "$pmix_found_sun" >&6; }
15565
15566    if test "$pmix_found_sun" = "no"; then :
15567
15568    { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sun" >&5
15569$as_echo_n "checking __sun... " >&6; }
15570    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571/* end confdefs.h.  */
15572#ifndef __sun
15573      error: this isnt __sun
15574      #endif
15575
15576int
15577main ()
15578{
15579
15580  ;
15581  return 0;
15582}
15583_ACEOF
15584if ac_fn_c_try_compile "$LINENO"; then :
15585  pmix_found_sun=yes
15586else
15587  pmix_found_sun=no
15588fi
15589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15590    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_found_sun" >&5
15591$as_echo "$pmix_found_sun" >&6; }
15592
15593fi
15594
15595    if test "$pmix_found_sun" = "yes"; then :
15596  pmix_have_solaris=1
15597           CFLAGS="$CFLAGS -D_REENTRANT"
15598           CPPFLAGS="$CPPFLAGS -D_REENTRANT"
15599else
15600  pmix_have_solaris=0
15601fi
15602
15603cat >>confdefs.h <<_ACEOF
15604#define PMIX_HAVE_SOLARIS $pmix_have_solaris
15605_ACEOF
15606
15607
15608    if test "$pmix_found_apple" = "yes"; then :
15609  pmix_have_apple=1
15610else
15611  pmix_have_apple=0
15612fi
15613
15614cat >>confdefs.h <<_ACEOF
15615#define PMIX_HAVE_APPLE $pmix_have_apple
15616_ACEOF
15617
15618
15619    # check for sockaddr_in (a good sign we have TCP)
15620    for ac_header in netdb.h netinet/in.h netinet/tcp.h
15621do :
15622  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15623ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15624if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15625  cat >>confdefs.h <<_ACEOF
15626#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15627_ACEOF
15628
15629fi
15630
15631done
15632
15633    ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "$ac_includes_default
15634#ifdef HAVE_NETINET_IN_H
15635#include <netinet/in.h>
15636#endif
15637"
15638if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
15639
15640cat >>confdefs.h <<_ACEOF
15641#define HAVE_STRUCT_SOCKADDR_IN 1
15642_ACEOF
15643
15644pmix_found_sockaddr=yes
15645else
15646  pmix_found_sockaddr=no
15647fi
15648
15649
15650
15651
15652
15653
15654
15655    # AM_PROG_CC_C_O AC_REQUIREs AC_PROG_CC, so we have to be a little
15656    # careful about ordering here, and AC_REQUIRE these things so that
15657    # they get stamped out in the right order.
15658
15659
15660
15661
15662
15663    # If no prefix was defined, set a good value
15664
15665
15666    # Get pmix's absolute top builddir (which may not be the same as
15667    # the real $top_builddir)
15668    PMIX_startdir=`pwd`
15669    if test x"" != "x" && test ! -d ""; then
15670        mkdir -p ""
15671    fi
15672    if test x"" != "x"; then
15673        cd ""
15674    fi
15675    PMIX_top_builddir=`pwd`
15676
15677
15678    # Get pmix's absolute top srcdir (which may not be the same as the
15679    # real $top_srcdir.  First, go back to the startdir incase the
15680    # $srcdir is relative.
15681
15682    cd "$PMIX_startdir"
15683    cd "$srcdir"/
15684    PMIX_top_srcdir="`pwd`"
15685
15686
15687    # Go back to where we started
15688    cd "$PMIX_startdir"
15689
15690    { $as_echo "$as_me:${as_lineno-$LINENO}: pmix builddir: $PMIX_top_builddir" >&5
15691$as_echo "$as_me: pmix builddir: $PMIX_top_builddir" >&6;}
15692    { $as_echo "$as_me:${as_lineno-$LINENO}: pmix srcdir: $PMIX_top_srcdir" >&5
15693$as_echo "$as_me: pmix srcdir: $PMIX_top_srcdir" >&6;}
15694    if test "$PMIX_top_builddir" != "$PMIX_top_srcdir"; then
15695        { $as_echo "$as_me:${as_lineno-$LINENO}: Detected VPATH build" >&5
15696$as_echo "$as_me: Detected VPATH build" >&6;}
15697    fi
15698
15699    # Get the version of pmix that we are installing
15700    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmix version" >&5
15701$as_echo_n "checking for pmix version... " >&6; }
15702    PMIX_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION`"
15703    if test "$?" != "0"; then
15704        as_fn_error $? "Cannot continue" "$LINENO" 5
15705    fi
15706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMIX_VERSION" >&5
15707$as_echo "$PMIX_VERSION" >&6; }
15708
15709
15710cat >>confdefs.h <<_ACEOF
15711#define PMIX_VERSION "$PMIX_VERSION"
15712_ACEOF
15713
15714
15715    PMIX_RELEASE_DATE="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --release-date`"
15716
15717
15718    # Save the breakdown the version information
15719    PMIX_MAJOR_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --major`"
15720    if test "$?" != "0"; then
15721        as_fn_error $? "Cannot continue" "$LINENO" 5
15722    fi
15723
15724
15725cat >>confdefs.h <<_ACEOF
15726#define PMIX_MAJOR_VERSION $PMIX_MAJOR_VERSION
15727_ACEOF
15728
15729
15730    PMIX_MINOR_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --minor`"
15731    if test "$?" != "0"; then
15732        as_fn_error $? "Cannot continue" "$LINENO" 5
15733    fi
15734
15735
15736cat >>confdefs.h <<_ACEOF
15737#define PMIX_MINOR_VERSION $PMIX_MINOR_VERSION
15738_ACEOF
15739
15740
15741    PMIX_RELEASE_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --release`"
15742    if test "$?" != "0"; then
15743        as_fn_error $? "Cannot continue" "$LINENO" 5
15744    fi
15745
15746
15747cat >>confdefs.h <<_ACEOF
15748#define PMIX_RELEASE_VERSION $PMIX_RELEASE_VERSION
15749_ACEOF
15750
15751
15752    pmixmajor=${PMIX_MAJOR_VERSION}L
15753    pmixminor=${PMIX_MINOR_VERSION}L
15754    pmixrelease=${PMIX_RELEASE_VERSION}L
15755    pmixnumeric=$(printf 0x%4.4x%2.2x%2.2x $PMIX_MAJOR_VERSION $PMIX_MINOR_VERSION $PMIX_RELEASE_VERSION)
15756
15757
15758
15759
15760    ac_config_files="$ac_config_files include/pmix_version.h"
15761
15762
15763    PMIX_GREEK_VERSION="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --greek`"
15764    if test "$?" != "0"; then
15765        as_fn_error $? "Cannot continue" "$LINENO" 5
15766    fi
15767
15768
15769    PMIX_REPO_REV="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --repo-rev`"
15770    if test "$?" != "0"; then
15771        as_fn_error $? "Cannot continue" "$LINENO" 5
15772    fi
15773
15774
15775    PMIX_RELEASE_DATE="`$PMIX_top_srcdir/config/pmix_get_version.sh $PMIX_top_srcdir/VERSION --release-date`"
15776    if test "$?" != "0"; then
15777        as_fn_error $? "Cannot continue" "$LINENO" 5
15778    fi
15779
15780
15781    # Debug mode?
15782    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want pmix maintainer support" >&5
15783$as_echo_n "checking if want pmix maintainer support... " >&6; }
15784    pmix_debug=
15785    if test "$pmix_debug" = "" && test "$enable_debug" = "yes"; then :
15786  pmix_debug=1
15787           pmix_debug_msg="enabled"
15788fi
15789    if test "$pmix_debug" = ""; then :
15790  pmix_debug=0
15791           pmix_debug_msg="disabled"
15792fi
15793    # Grr; we use #ifndef for PMIX_DEBUG!  :-(
15794
15795    if test "$pmix_debug" = "1"; then :
15796  $as_echo "#define PMIX_ENABLE_DEBUG 1" >>confdefs.h
15797
15798fi
15799    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_debug_msg" >&5
15800$as_echo "$pmix_debug_msg" >&6; }
15801
15802    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmix directory prefix" >&5
15803$as_echo_n "checking for pmix directory prefix... " >&6; }
15804    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
15805$as_echo "(none)" >&6; }
15806
15807    # Note that private/config.h *MUST* be listed first so that it
15808    # becomes the "main" config header file.  Any AC-CONFIG-HEADERS
15809    # after that (pmix/config.h) will only have selective #defines
15810    # replaced, not the entire file.
15811    ac_config_headers="$ac_config_headers src/include/pmix_config.h"
15812
15813
15814    # Rename symbols?
15815
15816# Check whether --with-pmix-symbol-rename was given.
15817if test "${with_pmix_symbol_rename+set}" = set; then :
15818  withval=$with_pmix_symbol_rename;
15819fi
15820
15821    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol rename" >&5
15822$as_echo_n "checking for symbol rename... " >&6; }
15823    if test ! -z "$with_pmix_symbol_rename" && test "$with_pmix_symbol_rename" != "yes"; then :
15824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pmix_symbol_rename" >&5
15825$as_echo "$with_pmix_symbol_rename" >&6; }
15826           pmix_symbol_rename="$with_pmix_symbol_rename"
15827           PMIX_RENAME=$with_pmix_symbol_rename
15828else
15829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15830$as_echo "no" >&6; }
15831           pmix_symbol_rename=""
15832           PMIX_RENAME=
15833fi
15834
15835cat >>confdefs.h <<_ACEOF
15836#define PMIX_SYMBOL_RENAME $pmix_symbol_rename
15837_ACEOF
15838
15839
15840    ac_config_files="$ac_config_files include/pmix_rename.h"
15841
15842
15843    # Add any extra lib?
15844
15845# Check whether --with-pmix-extra-lib was given.
15846if test "${with_pmix_extra_lib+set}" = set; then :
15847  withval=$with_pmix_extra_lib;
15848fi
15849
15850    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra lib" >&5
15851$as_echo_n "checking for extra lib... " >&6; }
15852    if test ! -z "$with_pmix_extra_lib"; then :
15853  if test "$with_pmix_extra_lib" = "yes" || test "$with_pmix_extra_lib" = "no"; then :
15854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR" >&5
15855$as_echo "ERROR" >&6; }
15856                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid value for --with-extra-pmix-lib:" >&5
15857$as_echo "$as_me: WARNING: Invalid value for --with-extra-pmix-lib:" >&2;}
15858                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:     $with_pmix_extra_lib" >&5
15859$as_echo "$as_me: WARNING:     $with_pmix_extra_lib" >&2;}
15860                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Must be path name of the library to add" >&5
15861$as_echo "$as_me: WARNING: Must be path name of the library to add" >&2;}
15862                  as_fn_error $? "Cannot continue" "$LINENO" 5
15863else
15864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pmix_extra_lib" >&5
15865$as_echo "$with_pmix_extra_lib" >&6; }
15866                  PMIX_EXTRA_LIB=$with_pmix_extra_lib
15867fi
15868else
15869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15870$as_echo "no" >&6; }
15871           PMIX_EXTRA_LIB=
15872fi
15873
15874
15875    # Add any extra libtool lib?
15876
15877# Check whether --with-pmix-extra-ltlib was given.
15878if test "${with_pmix_extra_ltlib+set}" = set; then :
15879  withval=$with_pmix_extra_ltlib;
15880fi
15881
15882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ltlib" >&5
15883$as_echo_n "checking for extra ltlib... " >&6; }
15884    if test ! -z "$with_pmix_extra_ltlib"; then :
15885  if test "$with_pmix_extra_ltlib" = "yes" || test "$with_pmix_extra_ltlib" = "no"; then :
15886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ERROR" >&5
15887$as_echo "ERROR" >&6; }
15888                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid value for --with-pmix-extra-ltlib:" >&5
15889$as_echo "$as_me: WARNING: Invalid value for --with-pmix-extra-ltlib:" >&2;}
15890                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:     $with_pmix_extra_ltlib" >&5
15891$as_echo "$as_me: WARNING:     $with_pmix_extra_ltlib" >&2;}
15892                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Must be path name of the library to add" >&5
15893$as_echo "$as_me: WARNING: Must be path name of the library to add" >&2;}
15894                  as_fn_error $? "Cannot continue" "$LINENO" 5
15895else
15896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pmix_extra_ltlib" >&5
15897$as_echo "$with_pmix_extra_ltlib" >&6; }
15898                  PMIX_EXTRA_LTLIB=$with_pmix_extra_ltlib
15899fi
15900else
15901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15902$as_echo "no" >&6; }
15903           PMIX_EXTRA_LTLIB=
15904fi
15905
15906
15907    #
15908    # Package/brand string
15909    #
15910    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if want package/brand string" >&5
15911$as_echo_n "checking if want package/brand string... " >&6; }
15912
15913# Check whether --with-pmix-package-string was given.
15914if test "${with_pmix_package_string+set}" = set; then :
15915  withval=$with_pmix_package_string;
15916fi
15917
15918    if test "$with_pmix_package_string" = "" || test "$with_pmix_package_string" = "no"; then
15919        with_package_string="PMIx $PMIX_CONFIGURE_USER@$PMIX_CONFIGURE_HOST Distribution"
15920    fi
15921
15922cat >>confdefs.h <<_ACEOF
15923#define PMIX_PACKAGE_STRING "$with_package_string"
15924_ACEOF
15925
15926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_package_string" >&5
15927$as_echo "$with_package_string" >&6; }
15928
15929
15930    # GCC specifics.
15931    if test "x$GCC" = "xyes"; then
15932        PMIX_GCC_CFLAGS="-Wall -Wmissing-prototypes -Wundef"
15933        PMIX_GCC_CFLAGS="$PMIX_GCC_CFLAGS -Wpointer-arith -Wcast-align"
15934    fi
15935
15936    ############################################################################
15937    # Check for compilers and preprocessors
15938    ############################################################################
15939    pmix_show_title "Compiler and preprocessor tests"
15940
15941
15942    # AM_PROG_CC_C_O AC_REQUIREs AC_PROG_CC, so we have to be a little
15943    # careful about ordering here, and AC_REQUIRE these things so that
15944    # they get stamped out in the right order.
15945
15946
15947
15948
15949
15950
15951
15952    # Is the private index set?  If not, set it.
15953    if test "x$pmix_scope_index" = "x"; then
15954        pmix_scope_index=1
15955    fi
15956
15957    # First, check to see if any of these variables are already set.
15958    # This is a simple sanity check to ensure we're not already
15959    # overwriting pre-existing variables (that have a non-empty
15960    # value).  It's not a perfect check, but at least it's something.
15961    for pmix_var in pmix_prog_cc_c11_helper__Thread_local_available pmix_prog_cc_c11_helper_atomic_var_available pmix_prog_cc_c11_helper__Atomic_available pmix_prog_cc_c11_helper__static_assert_available pmix_prog_cc_c11_helper__Generic_available pmix_prog_cc__thread_available pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available; do
15962        pmix_str="pmix_str=\"\$$pmix_var\""
15963        eval $pmix_str
15964
15965        if test "x$pmix_str" != "x"; then
15966            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
15967$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
15968            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
15969$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
15970            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
15971$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
15972            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
15973$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
15974            as_fn_error $? "Cannot continue" "$LINENO" 5
15975        fi
15976    done
15977
15978    # Ok, we passed the simple sanity check.  Save all these names so
15979    # that we can unset them at the end of the scope.
15980    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_prog_cc_c11_helper__Thread_local_available pmix_prog_cc_c11_helper_atomic_var_available pmix_prog_cc_c11_helper__Atomic_available pmix_prog_cc_c11_helper__static_assert_available pmix_prog_cc_c11_helper__Generic_available pmix_prog_cc__thread_available pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available\""
15981    eval $pmix_str
15982    unset pmix_str
15983
15984    env | grep pmix_scope
15985    pmix_scope_index=`expr $pmix_scope_index + 1`
15986
15987
15988
15989
15990
15991    # Is the private index set?  If not, set it.
15992    if test "x$pmix_scope_index" = "x"; then
15993        pmix_scope_index=1
15994    fi
15995
15996    # First, check to see if any of these variables are already set.
15997    # This is a simple sanity check to ensure we're not already
15998    # overwriting pre-existing variables (that have a non-empty
15999    # value).  It's not a perfect check, but at least it's something.
16000    for pmix_var in pmix_prog_cc_c11_flags; do
16001        pmix_str="pmix_str=\"\$$pmix_var\""
16002        eval $pmix_str
16003
16004        if test "x$pmix_str" != "x"; then
16005            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
16006$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
16007            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
16008$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
16009            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
16010$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
16011            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16012$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16013            as_fn_error $? "Cannot continue" "$LINENO" 5
16014        fi
16015    done
16016
16017    # Ok, we passed the simple sanity check.  Save all these names so
16018    # that we can unset them at the end of the scope.
16019    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_prog_cc_c11_flags\""
16020    eval $pmix_str
16021    unset pmix_str
16022
16023    env | grep pmix_scope
16024    pmix_scope_index=`expr $pmix_scope_index + 1`
16025
16026    if test -z "$pmix_cv_c11_supported" ; then
16027        pmix_cv_c11_supported=no
16028        pmix_cv_c11_flag_required=yes
16029
16030        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC requires a flag for C11" >&5
16031$as_echo_n "checking if $CC requires a flag for C11... " >&6; }
16032
16033        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034/* end confdefs.h.  */
16035
16036#if __STDC_VERSION__ < 201112L
16037#error "Without any CLI flags, this compiler does not support C11"
16038#endif
16039
16040int
16041main ()
16042{
16043
16044  ;
16045  return 0;
16046}
16047_ACEOF
16048if ac_fn_c_try_compile "$LINENO"; then :
16049  pmix_cv_c11_flag_required=no
16050fi
16051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16052
16053        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c11_flag_required" >&5
16054$as_echo "$pmix_cv_c11_flag_required" >&6; }
16055
16056        if test "x$pmix_cv_c11_flag_required" = "xno" ; then
16057            { $as_echo "$as_me:${as_lineno-$LINENO}: verifying $CC supports C11 without a flag" >&5
16058$as_echo "$as_me: verifying $CC supports C11 without a flag" >&6;}
16059
16060
16061
16062    # Is the private index set?  If not, set it.
16063    if test "x$pmix_scope_index" = "x"; then
16064        pmix_scope_index=1
16065    fi
16066
16067    # First, check to see if any of these variables are already set.
16068    # This is a simple sanity check to ensure we're not already
16069    # overwriting pre-existing variables (that have a non-empty
16070    # value).  It's not a perfect check, but at least it's something.
16071    for pmix_var in pmix_prog_cc_c11_helper_CFLAGS_save; do
16072        pmix_str="pmix_str=\"\$$pmix_var\""
16073        eval $pmix_str
16074
16075        if test "x$pmix_str" != "x"; then
16076            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
16077$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
16078            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
16079$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
16080            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
16081$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
16082            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16083$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16084            as_fn_error $? "Cannot continue" "$LINENO" 5
16085        fi
16086    done
16087
16088    # Ok, we passed the simple sanity check.  Save all these names so
16089    # that we can unset them at the end of the scope.
16090    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_prog_cc_c11_helper_CFLAGS_save\""
16091    eval $pmix_str
16092    unset pmix_str
16093
16094    env | grep pmix_scope
16095    pmix_scope_index=`expr $pmix_scope_index + 1`
16096
16097
16098    pmix_prog_cc_c11_helper_CFLAGS_save=$CFLAGS
16099    CFLAGS="$CFLAGS "
16100
16101
16102
16103
16104    # Is the private index set?  If not, set it.
16105    if test "x$pmix_scope_index" = "x"; then
16106        pmix_scope_index=1
16107    fi
16108
16109    # First, check to see if any of these variables are already set.
16110    # This is a simple sanity check to ensure we're not already
16111    # overwriting pre-existing variables (that have a non-empty
16112    # value).  It's not a perfect check, but at least it's something.
16113    for pmix_var in pmix_cc_helper_result; do
16114        pmix_str="pmix_str=\"\$$pmix_var\""
16115        eval $pmix_str
16116
16117        if test "x$pmix_str" != "x"; then
16118            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
16119$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
16120            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
16121$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
16122            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
16123$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
16124            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16125$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16126            as_fn_error $? "Cannot continue" "$LINENO" 5
16127        fi
16128    done
16129
16130    # Ok, we passed the simple sanity check.  Save all these names so
16131    # that we can unset them at the end of the scope.
16132    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
16133    eval $pmix_str
16134    unset pmix_str
16135
16136    env | grep pmix_scope
16137    pmix_scope_index=`expr $pmix_scope_index + 1`
16138
16139    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports C11 _Thread_local" >&5
16140$as_echo_n "checking if $CC  supports C11 _Thread_local... " >&6; }
16141
16142    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143/* end confdefs.h.  */
16144
16145int
16146main ()
16147{
16148static _Thread_local int  foo = 1;++foo;
16149  ;
16150  return 0;
16151}
16152_ACEOF
16153if ac_fn_c_try_link "$LINENO"; then :
16154  pmix_prog_cc_c11_helper__Thread_local_available=1
16155                    pmix_cc_helper_result=yes
16156else
16157  pmix_prog_cc_c11_helper__Thread_local_available=0
16158                    pmix_cc_helper_result=no
16159fi
16160rm -f core conftest.err conftest.$ac_objext \
16161    conftest$ac_exeext conftest.$ac_ext
16162
16163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
16164$as_echo "$pmix_cc_helper_result" >&6; }
16165
16166    # Unwind the index
16167    pmix_scope_index=`expr $pmix_scope_index - 1`
16168    pmix_scope_test=`expr $pmix_scope_index \> 0`
16169    if test "$pmix_scope_test" = "0"; then
16170        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
16171$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
16172        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16173$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16174        as_fn_error $? "Cannot continue" "$LINENO" 5
16175    fi
16176
16177    # Get the variable names from that index
16178    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
16179    eval $pmix_str
16180
16181    # Iterate over all the variables and unset them all
16182    for pmix_var in $pmix_str; do
16183        unset $pmix_var
16184    done
16185
16186
16187
16188
16189
16190
16191    # Is the private index set?  If not, set it.
16192    if test "x$pmix_scope_index" = "x"; then
16193        pmix_scope_index=1
16194    fi
16195
16196    # First, check to see if any of these variables are already set.
16197    # This is a simple sanity check to ensure we're not already
16198    # overwriting pre-existing variables (that have a non-empty
16199    # value).  It's not a perfect check, but at least it's something.
16200    for pmix_var in pmix_cc_helper_result; do
16201        pmix_str="pmix_str=\"\$$pmix_var\""
16202        eval $pmix_str
16203
16204        if test "x$pmix_str" != "x"; then
16205            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
16206$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
16207            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
16208$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
16209            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
16210$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
16211            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16212$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16213            as_fn_error $? "Cannot continue" "$LINENO" 5
16214        fi
16215    done
16216
16217    # Ok, we passed the simple sanity check.  Save all these names so
16218    # that we can unset them at the end of the scope.
16219    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
16220    eval $pmix_str
16221    unset pmix_str
16222
16223    env | grep pmix_scope
16224    pmix_scope_index=`expr $pmix_scope_index + 1`
16225
16226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports C11 atomic variables" >&5
16227$as_echo_n "checking if $CC  supports C11 atomic variables... " >&6; }
16228
16229    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230/* end confdefs.h.  */
16231#include <stdatomic.h>
16232int
16233main ()
16234{
16235static atomic_long foo = 1;++foo;
16236  ;
16237  return 0;
16238}
16239_ACEOF
16240if ac_fn_c_try_link "$LINENO"; then :
16241  pmix_prog_cc_c11_helper_atomic_var_available=1
16242                    pmix_cc_helper_result=yes
16243else
16244  pmix_prog_cc_c11_helper_atomic_var_available=0
16245                    pmix_cc_helper_result=no
16246fi
16247rm -f core conftest.err conftest.$ac_objext \
16248    conftest$ac_exeext conftest.$ac_ext
16249
16250    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
16251$as_echo "$pmix_cc_helper_result" >&6; }
16252
16253    # Unwind the index
16254    pmix_scope_index=`expr $pmix_scope_index - 1`
16255    pmix_scope_test=`expr $pmix_scope_index \> 0`
16256    if test "$pmix_scope_test" = "0"; then
16257        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
16258$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
16259        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16260$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16261        as_fn_error $? "Cannot continue" "$LINENO" 5
16262    fi
16263
16264    # Get the variable names from that index
16265    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
16266    eval $pmix_str
16267
16268    # Iterate over all the variables and unset them all
16269    for pmix_var in $pmix_str; do
16270        unset $pmix_var
16271    done
16272
16273
16274
16275
16276
16277
16278    # Is the private index set?  If not, set it.
16279    if test "x$pmix_scope_index" = "x"; then
16280        pmix_scope_index=1
16281    fi
16282
16283    # First, check to see if any of these variables are already set.
16284    # This is a simple sanity check to ensure we're not already
16285    # overwriting pre-existing variables (that have a non-empty
16286    # value).  It's not a perfect check, but at least it's something.
16287    for pmix_var in pmix_cc_helper_result; do
16288        pmix_str="pmix_str=\"\$$pmix_var\""
16289        eval $pmix_str
16290
16291        if test "x$pmix_str" != "x"; then
16292            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
16293$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
16294            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
16295$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
16296            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
16297$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
16298            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16299$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16300            as_fn_error $? "Cannot continue" "$LINENO" 5
16301        fi
16302    done
16303
16304    # Ok, we passed the simple sanity check.  Save all these names so
16305    # that we can unset them at the end of the scope.
16306    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
16307    eval $pmix_str
16308    unset pmix_str
16309
16310    env | grep pmix_scope
16311    pmix_scope_index=`expr $pmix_scope_index + 1`
16312
16313    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports C11 _Atomic keyword" >&5
16314$as_echo_n "checking if $CC  supports C11 _Atomic keyword... " >&6; }
16315
16316    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317/* end confdefs.h.  */
16318#include <stdatomic.h>
16319int
16320main ()
16321{
16322static _Atomic long foo = 1;++foo;
16323  ;
16324  return 0;
16325}
16326_ACEOF
16327if ac_fn_c_try_link "$LINENO"; then :
16328  pmix_prog_cc_c11_helper__Atomic_available=1
16329                    pmix_cc_helper_result=yes
16330else
16331  pmix_prog_cc_c11_helper__Atomic_available=0
16332                    pmix_cc_helper_result=no
16333fi
16334rm -f core conftest.err conftest.$ac_objext \
16335    conftest$ac_exeext conftest.$ac_ext
16336
16337    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
16338$as_echo "$pmix_cc_helper_result" >&6; }
16339
16340    # Unwind the index
16341    pmix_scope_index=`expr $pmix_scope_index - 1`
16342    pmix_scope_test=`expr $pmix_scope_index \> 0`
16343    if test "$pmix_scope_test" = "0"; then
16344        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
16345$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
16346        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16347$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16348        as_fn_error $? "Cannot continue" "$LINENO" 5
16349    fi
16350
16351    # Get the variable names from that index
16352    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
16353    eval $pmix_str
16354
16355    # Iterate over all the variables and unset them all
16356    for pmix_var in $pmix_str; do
16357        unset $pmix_var
16358    done
16359
16360
16361
16362
16363
16364
16365    # Is the private index set?  If not, set it.
16366    if test "x$pmix_scope_index" = "x"; then
16367        pmix_scope_index=1
16368    fi
16369
16370    # First, check to see if any of these variables are already set.
16371    # This is a simple sanity check to ensure we're not already
16372    # overwriting pre-existing variables (that have a non-empty
16373    # value).  It's not a perfect check, but at least it's something.
16374    for pmix_var in pmix_cc_helper_result; do
16375        pmix_str="pmix_str=\"\$$pmix_var\""
16376        eval $pmix_str
16377
16378        if test "x$pmix_str" != "x"; then
16379            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
16380$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
16381            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
16382$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
16383            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
16384$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
16385            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16386$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16387            as_fn_error $? "Cannot continue" "$LINENO" 5
16388        fi
16389    done
16390
16391    # Ok, we passed the simple sanity check.  Save all these names so
16392    # that we can unset them at the end of the scope.
16393    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
16394    eval $pmix_str
16395    unset pmix_str
16396
16397    env | grep pmix_scope
16398    pmix_scope_index=`expr $pmix_scope_index + 1`
16399
16400    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports C11 _Generic keyword" >&5
16401$as_echo_n "checking if $CC  supports C11 _Generic keyword... " >&6; }
16402
16403    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404/* end confdefs.h.  */
16405#define FOO(x) (_Generic (x, int: 1))
16406int
16407main ()
16408{
16409static int x, y; y = FOO(x);
16410  ;
16411  return 0;
16412}
16413_ACEOF
16414if ac_fn_c_try_link "$LINENO"; then :
16415  pmix_prog_cc_c11_helper__Generic_available=1
16416                    pmix_cc_helper_result=yes
16417else
16418  pmix_prog_cc_c11_helper__Generic_available=0
16419                    pmix_cc_helper_result=no
16420fi
16421rm -f core conftest.err conftest.$ac_objext \
16422    conftest$ac_exeext conftest.$ac_ext
16423
16424    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
16425$as_echo "$pmix_cc_helper_result" >&6; }
16426
16427    # Unwind the index
16428    pmix_scope_index=`expr $pmix_scope_index - 1`
16429    pmix_scope_test=`expr $pmix_scope_index \> 0`
16430    if test "$pmix_scope_test" = "0"; then
16431        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
16432$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
16433        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16434$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16435        as_fn_error $? "Cannot continue" "$LINENO" 5
16436    fi
16437
16438    # Get the variable names from that index
16439    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
16440    eval $pmix_str
16441
16442    # Iterate over all the variables and unset them all
16443    for pmix_var in $pmix_str; do
16444        unset $pmix_var
16445    done
16446
16447
16448
16449
16450
16451
16452    # Is the private index set?  If not, set it.
16453    if test "x$pmix_scope_index" = "x"; then
16454        pmix_scope_index=1
16455    fi
16456
16457    # First, check to see if any of these variables are already set.
16458    # This is a simple sanity check to ensure we're not already
16459    # overwriting pre-existing variables (that have a non-empty
16460    # value).  It's not a perfect check, but at least it's something.
16461    for pmix_var in pmix_cc_helper_result; do
16462        pmix_str="pmix_str=\"\$$pmix_var\""
16463        eval $pmix_str
16464
16465        if test "x$pmix_str" != "x"; then
16466            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
16467$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
16468            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
16469$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
16470            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
16471$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
16472            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16473$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16474            as_fn_error $? "Cannot continue" "$LINENO" 5
16475        fi
16476    done
16477
16478    # Ok, we passed the simple sanity check.  Save all these names so
16479    # that we can unset them at the end of the scope.
16480    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
16481    eval $pmix_str
16482    unset pmix_str
16483
16484    env | grep pmix_scope
16485    pmix_scope_index=`expr $pmix_scope_index + 1`
16486
16487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports C11 _Static_assert" >&5
16488$as_echo_n "checking if $CC  supports C11 _Static_assert... " >&6; }
16489
16490    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491/* end confdefs.h.  */
16492#include <stdint.h>
16493int
16494main ()
16495{
16496_Static_assert(sizeof(int64_t) == 8, "WTH");
16497  ;
16498  return 0;
16499}
16500_ACEOF
16501if ac_fn_c_try_link "$LINENO"; then :
16502  pmix_prog_cc_c11_helper__static_assert_available=1
16503                    pmix_cc_helper_result=yes
16504else
16505  pmix_prog_cc_c11_helper__static_assert_available=0
16506                    pmix_cc_helper_result=no
16507fi
16508rm -f core conftest.err conftest.$ac_objext \
16509    conftest$ac_exeext conftest.$ac_ext
16510
16511    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
16512$as_echo "$pmix_cc_helper_result" >&6; }
16513
16514    # Unwind the index
16515    pmix_scope_index=`expr $pmix_scope_index - 1`
16516    pmix_scope_test=`expr $pmix_scope_index \> 0`
16517    if test "$pmix_scope_test" = "0"; then
16518        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
16519$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
16520        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16521$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16522        as_fn_error $? "Cannot continue" "$LINENO" 5
16523    fi
16524
16525    # Get the variable names from that index
16526    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
16527    eval $pmix_str
16528
16529    # Iterate over all the variables and unset them all
16530    for pmix_var in $pmix_str; do
16531        unset $pmix_var
16532    done
16533
16534
16535
16536
16537
16538
16539    # Is the private index set?  If not, set it.
16540    if test "x$pmix_scope_index" = "x"; then
16541        pmix_scope_index=1
16542    fi
16543
16544    # First, check to see if any of these variables are already set.
16545    # This is a simple sanity check to ensure we're not already
16546    # overwriting pre-existing variables (that have a non-empty
16547    # value).  It's not a perfect check, but at least it's something.
16548    for pmix_var in pmix_cc_helper_result; do
16549        pmix_str="pmix_str=\"\$$pmix_var\""
16550        eval $pmix_str
16551
16552        if test "x$pmix_str" != "x"; then
16553            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
16554$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
16555            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
16556$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
16557            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
16558$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
16559            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16560$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16561            as_fn_error $? "Cannot continue" "$LINENO" 5
16562        fi
16563    done
16564
16565    # Ok, we passed the simple sanity check.  Save all these names so
16566    # that we can unset them at the end of the scope.
16567    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
16568    eval $pmix_str
16569    unset pmix_str
16570
16571    env | grep pmix_scope
16572    pmix_scope_index=`expr $pmix_scope_index + 1`
16573
16574    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports C11 atomic_fetch_xor_explicit" >&5
16575$as_echo_n "checking if $CC  supports C11 atomic_fetch_xor_explicit... " >&6; }
16576
16577    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578/* end confdefs.h.  */
16579#include <stdatomic.h>
16580#include <stdint.h>
16581int
16582main ()
16583{
16584_Atomic uint32_t a; uint32_t b; atomic_fetch_xor_explicit(&a, b, memory_order_relaxed);
16585  ;
16586  return 0;
16587}
16588_ACEOF
16589if ac_fn_c_try_link "$LINENO"; then :
16590  pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=1
16591                    pmix_cc_helper_result=yes
16592else
16593  pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=0
16594                    pmix_cc_helper_result=no
16595fi
16596rm -f core conftest.err conftest.$ac_objext \
16597    conftest$ac_exeext conftest.$ac_ext
16598
16599    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
16600$as_echo "$pmix_cc_helper_result" >&6; }
16601
16602    # Unwind the index
16603    pmix_scope_index=`expr $pmix_scope_index - 1`
16604    pmix_scope_test=`expr $pmix_scope_index \> 0`
16605    if test "$pmix_scope_test" = "0"; then
16606        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
16607$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
16608        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16609$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16610        as_fn_error $? "Cannot continue" "$LINENO" 5
16611    fi
16612
16613    # Get the variable names from that index
16614    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
16615    eval $pmix_str
16616
16617    # Iterate over all the variables and unset them all
16618    for pmix_var in $pmix_str; do
16619        unset $pmix_var
16620    done
16621
16622
16623
16624
16625    if test $pmix_prog_cc_c11_helper__Thread_local_available -eq 1 && test $pmix_prog_cc_c11_helper_atomic_var_available -eq 1 && test $pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available -eq 1; then :
16626
16627else
16628  pmix_cv_c11_flag_required=yes
16629fi
16630
16631    CFLAGS=$pmix_prog_cc_c11_helper_CFLAGS_save
16632
16633
16634    # Unwind the index
16635    pmix_scope_index=`expr $pmix_scope_index - 1`
16636    pmix_scope_test=`expr $pmix_scope_index \> 0`
16637    if test "$pmix_scope_test" = "0"; then
16638        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
16639$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
16640        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16641$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16642        as_fn_error $? "Cannot continue" "$LINENO" 5
16643    fi
16644
16645    # Get the variable names from that index
16646    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
16647    eval $pmix_str
16648
16649    # Iterate over all the variables and unset them all
16650    for pmix_var in $pmix_str; do
16651        unset $pmix_var
16652    done
16653
16654
16655        fi
16656
16657        if test "x$pmix_cv_c11_flag_required" = "xyes" ; then
16658            pmix_prog_cc_c11_flags="-std=gnu11 -std=c11 -c11"
16659
16660            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C11 with a flag" >&5
16661$as_echo "$as_me: checking if $CC supports C11 with a flag" >&6;}
16662            pmix_cv_c11_flag=
16663            for flag in $(echo $pmix_prog_cc_c11_flags | tr ' ' '\n') ; do
16664
16665
16666
16667    # Is the private index set?  If not, set it.
16668    if test "x$pmix_scope_index" = "x"; then
16669        pmix_scope_index=1
16670    fi
16671
16672    # First, check to see if any of these variables are already set.
16673    # This is a simple sanity check to ensure we're not already
16674    # overwriting pre-existing variables (that have a non-empty
16675    # value).  It's not a perfect check, but at least it's something.
16676    for pmix_var in pmix_prog_cc_c11_helper_CFLAGS_save; do
16677        pmix_str="pmix_str=\"\$$pmix_var\""
16678        eval $pmix_str
16679
16680        if test "x$pmix_str" != "x"; then
16681            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
16682$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
16683            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
16684$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
16685            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
16686$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
16687            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16688$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16689            as_fn_error $? "Cannot continue" "$LINENO" 5
16690        fi
16691    done
16692
16693    # Ok, we passed the simple sanity check.  Save all these names so
16694    # that we can unset them at the end of the scope.
16695    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_prog_cc_c11_helper_CFLAGS_save\""
16696    eval $pmix_str
16697    unset pmix_str
16698
16699    env | grep pmix_scope
16700    pmix_scope_index=`expr $pmix_scope_index + 1`
16701
16702
16703    pmix_prog_cc_c11_helper_CFLAGS_save=$CFLAGS
16704    CFLAGS="$CFLAGS $flag"
16705
16706
16707
16708
16709    # Is the private index set?  If not, set it.
16710    if test "x$pmix_scope_index" = "x"; then
16711        pmix_scope_index=1
16712    fi
16713
16714    # First, check to see if any of these variables are already set.
16715    # This is a simple sanity check to ensure we're not already
16716    # overwriting pre-existing variables (that have a non-empty
16717    # value).  It's not a perfect check, but at least it's something.
16718    for pmix_var in pmix_cc_helper_result; do
16719        pmix_str="pmix_str=\"\$$pmix_var\""
16720        eval $pmix_str
16721
16722        if test "x$pmix_str" != "x"; then
16723            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
16724$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
16725            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
16726$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
16727            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
16728$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
16729            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16730$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16731            as_fn_error $? "Cannot continue" "$LINENO" 5
16732        fi
16733    done
16734
16735    # Ok, we passed the simple sanity check.  Save all these names so
16736    # that we can unset them at the end of the scope.
16737    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
16738    eval $pmix_str
16739    unset pmix_str
16740
16741    env | grep pmix_scope
16742    pmix_scope_index=`expr $pmix_scope_index + 1`
16743
16744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 _Thread_local" >&5
16745$as_echo_n "checking if $CC $flag supports C11 _Thread_local... " >&6; }
16746
16747    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748/* end confdefs.h.  */
16749
16750int
16751main ()
16752{
16753static _Thread_local int  foo = 1;++foo;
16754  ;
16755  return 0;
16756}
16757_ACEOF
16758if ac_fn_c_try_link "$LINENO"; then :
16759  pmix_prog_cc_c11_helper__Thread_local_available=1
16760                    pmix_cc_helper_result=yes
16761else
16762  pmix_prog_cc_c11_helper__Thread_local_available=0
16763                    pmix_cc_helper_result=no
16764fi
16765rm -f core conftest.err conftest.$ac_objext \
16766    conftest$ac_exeext conftest.$ac_ext
16767
16768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
16769$as_echo "$pmix_cc_helper_result" >&6; }
16770
16771    # Unwind the index
16772    pmix_scope_index=`expr $pmix_scope_index - 1`
16773    pmix_scope_test=`expr $pmix_scope_index \> 0`
16774    if test "$pmix_scope_test" = "0"; then
16775        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
16776$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
16777        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16778$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16779        as_fn_error $? "Cannot continue" "$LINENO" 5
16780    fi
16781
16782    # Get the variable names from that index
16783    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
16784    eval $pmix_str
16785
16786    # Iterate over all the variables and unset them all
16787    for pmix_var in $pmix_str; do
16788        unset $pmix_var
16789    done
16790
16791
16792
16793
16794
16795
16796    # Is the private index set?  If not, set it.
16797    if test "x$pmix_scope_index" = "x"; then
16798        pmix_scope_index=1
16799    fi
16800
16801    # First, check to see if any of these variables are already set.
16802    # This is a simple sanity check to ensure we're not already
16803    # overwriting pre-existing variables (that have a non-empty
16804    # value).  It's not a perfect check, but at least it's something.
16805    for pmix_var in pmix_cc_helper_result; do
16806        pmix_str="pmix_str=\"\$$pmix_var\""
16807        eval $pmix_str
16808
16809        if test "x$pmix_str" != "x"; then
16810            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
16811$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
16812            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
16813$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
16814            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
16815$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
16816            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16817$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16818            as_fn_error $? "Cannot continue" "$LINENO" 5
16819        fi
16820    done
16821
16822    # Ok, we passed the simple sanity check.  Save all these names so
16823    # that we can unset them at the end of the scope.
16824    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
16825    eval $pmix_str
16826    unset pmix_str
16827
16828    env | grep pmix_scope
16829    pmix_scope_index=`expr $pmix_scope_index + 1`
16830
16831    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 atomic variables" >&5
16832$as_echo_n "checking if $CC $flag supports C11 atomic variables... " >&6; }
16833
16834    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835/* end confdefs.h.  */
16836#include <stdatomic.h>
16837int
16838main ()
16839{
16840static atomic_long foo = 1;++foo;
16841  ;
16842  return 0;
16843}
16844_ACEOF
16845if ac_fn_c_try_link "$LINENO"; then :
16846  pmix_prog_cc_c11_helper_atomic_var_available=1
16847                    pmix_cc_helper_result=yes
16848else
16849  pmix_prog_cc_c11_helper_atomic_var_available=0
16850                    pmix_cc_helper_result=no
16851fi
16852rm -f core conftest.err conftest.$ac_objext \
16853    conftest$ac_exeext conftest.$ac_ext
16854
16855    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
16856$as_echo "$pmix_cc_helper_result" >&6; }
16857
16858    # Unwind the index
16859    pmix_scope_index=`expr $pmix_scope_index - 1`
16860    pmix_scope_test=`expr $pmix_scope_index \> 0`
16861    if test "$pmix_scope_test" = "0"; then
16862        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
16863$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
16864        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16865$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16866        as_fn_error $? "Cannot continue" "$LINENO" 5
16867    fi
16868
16869    # Get the variable names from that index
16870    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
16871    eval $pmix_str
16872
16873    # Iterate over all the variables and unset them all
16874    for pmix_var in $pmix_str; do
16875        unset $pmix_var
16876    done
16877
16878
16879
16880
16881
16882
16883    # Is the private index set?  If not, set it.
16884    if test "x$pmix_scope_index" = "x"; then
16885        pmix_scope_index=1
16886    fi
16887
16888    # First, check to see if any of these variables are already set.
16889    # This is a simple sanity check to ensure we're not already
16890    # overwriting pre-existing variables (that have a non-empty
16891    # value).  It's not a perfect check, but at least it's something.
16892    for pmix_var in pmix_cc_helper_result; do
16893        pmix_str="pmix_str=\"\$$pmix_var\""
16894        eval $pmix_str
16895
16896        if test "x$pmix_str" != "x"; then
16897            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
16898$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
16899            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
16900$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
16901            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
16902$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
16903            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16904$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16905            as_fn_error $? "Cannot continue" "$LINENO" 5
16906        fi
16907    done
16908
16909    # Ok, we passed the simple sanity check.  Save all these names so
16910    # that we can unset them at the end of the scope.
16911    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
16912    eval $pmix_str
16913    unset pmix_str
16914
16915    env | grep pmix_scope
16916    pmix_scope_index=`expr $pmix_scope_index + 1`
16917
16918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 _Atomic keyword" >&5
16919$as_echo_n "checking if $CC $flag supports C11 _Atomic keyword... " >&6; }
16920
16921    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16922/* end confdefs.h.  */
16923#include <stdatomic.h>
16924int
16925main ()
16926{
16927static _Atomic long foo = 1;++foo;
16928  ;
16929  return 0;
16930}
16931_ACEOF
16932if ac_fn_c_try_link "$LINENO"; then :
16933  pmix_prog_cc_c11_helper__Atomic_available=1
16934                    pmix_cc_helper_result=yes
16935else
16936  pmix_prog_cc_c11_helper__Atomic_available=0
16937                    pmix_cc_helper_result=no
16938fi
16939rm -f core conftest.err conftest.$ac_objext \
16940    conftest$ac_exeext conftest.$ac_ext
16941
16942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
16943$as_echo "$pmix_cc_helper_result" >&6; }
16944
16945    # Unwind the index
16946    pmix_scope_index=`expr $pmix_scope_index - 1`
16947    pmix_scope_test=`expr $pmix_scope_index \> 0`
16948    if test "$pmix_scope_test" = "0"; then
16949        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
16950$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
16951        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16952$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16953        as_fn_error $? "Cannot continue" "$LINENO" 5
16954    fi
16955
16956    # Get the variable names from that index
16957    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
16958    eval $pmix_str
16959
16960    # Iterate over all the variables and unset them all
16961    for pmix_var in $pmix_str; do
16962        unset $pmix_var
16963    done
16964
16965
16966
16967
16968
16969
16970    # Is the private index set?  If not, set it.
16971    if test "x$pmix_scope_index" = "x"; then
16972        pmix_scope_index=1
16973    fi
16974
16975    # First, check to see if any of these variables are already set.
16976    # This is a simple sanity check to ensure we're not already
16977    # overwriting pre-existing variables (that have a non-empty
16978    # value).  It's not a perfect check, but at least it's something.
16979    for pmix_var in pmix_cc_helper_result; do
16980        pmix_str="pmix_str=\"\$$pmix_var\""
16981        eval $pmix_str
16982
16983        if test "x$pmix_str" != "x"; then
16984            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
16985$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
16986            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
16987$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
16988            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
16989$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
16990            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
16991$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
16992            as_fn_error $? "Cannot continue" "$LINENO" 5
16993        fi
16994    done
16995
16996    # Ok, we passed the simple sanity check.  Save all these names so
16997    # that we can unset them at the end of the scope.
16998    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
16999    eval $pmix_str
17000    unset pmix_str
17001
17002    env | grep pmix_scope
17003    pmix_scope_index=`expr $pmix_scope_index + 1`
17004
17005    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 _Generic keyword" >&5
17006$as_echo_n "checking if $CC $flag supports C11 _Generic keyword... " >&6; }
17007
17008    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009/* end confdefs.h.  */
17010#define FOO(x) (_Generic (x, int: 1))
17011int
17012main ()
17013{
17014static int x, y; y = FOO(x);
17015  ;
17016  return 0;
17017}
17018_ACEOF
17019if ac_fn_c_try_link "$LINENO"; then :
17020  pmix_prog_cc_c11_helper__Generic_available=1
17021                    pmix_cc_helper_result=yes
17022else
17023  pmix_prog_cc_c11_helper__Generic_available=0
17024                    pmix_cc_helper_result=no
17025fi
17026rm -f core conftest.err conftest.$ac_objext \
17027    conftest$ac_exeext conftest.$ac_ext
17028
17029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
17030$as_echo "$pmix_cc_helper_result" >&6; }
17031
17032    # Unwind the index
17033    pmix_scope_index=`expr $pmix_scope_index - 1`
17034    pmix_scope_test=`expr $pmix_scope_index \> 0`
17035    if test "$pmix_scope_test" = "0"; then
17036        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
17037$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
17038        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17039$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17040        as_fn_error $? "Cannot continue" "$LINENO" 5
17041    fi
17042
17043    # Get the variable names from that index
17044    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
17045    eval $pmix_str
17046
17047    # Iterate over all the variables and unset them all
17048    for pmix_var in $pmix_str; do
17049        unset $pmix_var
17050    done
17051
17052
17053
17054
17055
17056
17057    # Is the private index set?  If not, set it.
17058    if test "x$pmix_scope_index" = "x"; then
17059        pmix_scope_index=1
17060    fi
17061
17062    # First, check to see if any of these variables are already set.
17063    # This is a simple sanity check to ensure we're not already
17064    # overwriting pre-existing variables (that have a non-empty
17065    # value).  It's not a perfect check, but at least it's something.
17066    for pmix_var in pmix_cc_helper_result; do
17067        pmix_str="pmix_str=\"\$$pmix_var\""
17068        eval $pmix_str
17069
17070        if test "x$pmix_str" != "x"; then
17071            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
17072$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
17073            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
17074$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
17075            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
17076$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
17077            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17078$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17079            as_fn_error $? "Cannot continue" "$LINENO" 5
17080        fi
17081    done
17082
17083    # Ok, we passed the simple sanity check.  Save all these names so
17084    # that we can unset them at the end of the scope.
17085    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
17086    eval $pmix_str
17087    unset pmix_str
17088
17089    env | grep pmix_scope
17090    pmix_scope_index=`expr $pmix_scope_index + 1`
17091
17092    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 _Static_assert" >&5
17093$as_echo_n "checking if $CC $flag supports C11 _Static_assert... " >&6; }
17094
17095    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096/* end confdefs.h.  */
17097#include <stdint.h>
17098int
17099main ()
17100{
17101_Static_assert(sizeof(int64_t) == 8, "WTH");
17102  ;
17103  return 0;
17104}
17105_ACEOF
17106if ac_fn_c_try_link "$LINENO"; then :
17107  pmix_prog_cc_c11_helper__static_assert_available=1
17108                    pmix_cc_helper_result=yes
17109else
17110  pmix_prog_cc_c11_helper__static_assert_available=0
17111                    pmix_cc_helper_result=no
17112fi
17113rm -f core conftest.err conftest.$ac_objext \
17114    conftest$ac_exeext conftest.$ac_ext
17115
17116    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
17117$as_echo "$pmix_cc_helper_result" >&6; }
17118
17119    # Unwind the index
17120    pmix_scope_index=`expr $pmix_scope_index - 1`
17121    pmix_scope_test=`expr $pmix_scope_index \> 0`
17122    if test "$pmix_scope_test" = "0"; then
17123        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
17124$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
17125        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17126$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17127        as_fn_error $? "Cannot continue" "$LINENO" 5
17128    fi
17129
17130    # Get the variable names from that index
17131    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
17132    eval $pmix_str
17133
17134    # Iterate over all the variables and unset them all
17135    for pmix_var in $pmix_str; do
17136        unset $pmix_var
17137    done
17138
17139
17140
17141
17142
17143
17144    # Is the private index set?  If not, set it.
17145    if test "x$pmix_scope_index" = "x"; then
17146        pmix_scope_index=1
17147    fi
17148
17149    # First, check to see if any of these variables are already set.
17150    # This is a simple sanity check to ensure we're not already
17151    # overwriting pre-existing variables (that have a non-empty
17152    # value).  It's not a perfect check, but at least it's something.
17153    for pmix_var in pmix_cc_helper_result; do
17154        pmix_str="pmix_str=\"\$$pmix_var\""
17155        eval $pmix_str
17156
17157        if test "x$pmix_str" != "x"; then
17158            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
17159$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
17160            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
17161$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
17162            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
17163$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
17164            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17165$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17166            as_fn_error $? "Cannot continue" "$LINENO" 5
17167        fi
17168    done
17169
17170    # Ok, we passed the simple sanity check.  Save all these names so
17171    # that we can unset them at the end of the scope.
17172    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
17173    eval $pmix_str
17174    unset pmix_str
17175
17176    env | grep pmix_scope
17177    pmix_scope_index=`expr $pmix_scope_index + 1`
17178
17179    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC $flag supports C11 atomic_fetch_xor_explicit" >&5
17180$as_echo_n "checking if $CC $flag supports C11 atomic_fetch_xor_explicit... " >&6; }
17181
17182    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17183/* end confdefs.h.  */
17184#include <stdatomic.h>
17185#include <stdint.h>
17186int
17187main ()
17188{
17189_Atomic uint32_t a; uint32_t b; atomic_fetch_xor_explicit(&a, b, memory_order_relaxed);
17190  ;
17191  return 0;
17192}
17193_ACEOF
17194if ac_fn_c_try_link "$LINENO"; then :
17195  pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=1
17196                    pmix_cc_helper_result=yes
17197else
17198  pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=0
17199                    pmix_cc_helper_result=no
17200fi
17201rm -f core conftest.err conftest.$ac_objext \
17202    conftest$ac_exeext conftest.$ac_ext
17203
17204    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
17205$as_echo "$pmix_cc_helper_result" >&6; }
17206
17207    # Unwind the index
17208    pmix_scope_index=`expr $pmix_scope_index - 1`
17209    pmix_scope_test=`expr $pmix_scope_index \> 0`
17210    if test "$pmix_scope_test" = "0"; then
17211        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
17212$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
17213        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17214$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17215        as_fn_error $? "Cannot continue" "$LINENO" 5
17216    fi
17217
17218    # Get the variable names from that index
17219    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
17220    eval $pmix_str
17221
17222    # Iterate over all the variables and unset them all
17223    for pmix_var in $pmix_str; do
17224        unset $pmix_var
17225    done
17226
17227
17228
17229
17230    if test $pmix_prog_cc_c11_helper__Thread_local_available -eq 1 && test $pmix_prog_cc_c11_helper_atomic_var_available -eq 1 && test $pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available -eq 1; then :
17231  pmix_cv_c11_flag=$flag
17232fi
17233
17234    CFLAGS=$pmix_prog_cc_c11_helper_CFLAGS_save
17235
17236
17237    # Unwind the index
17238    pmix_scope_index=`expr $pmix_scope_index - 1`
17239    pmix_scope_test=`expr $pmix_scope_index \> 0`
17240    if test "$pmix_scope_test" = "0"; then
17241        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
17242$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
17243        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17244$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17245        as_fn_error $? "Cannot continue" "$LINENO" 5
17246    fi
17247
17248    # Get the variable names from that index
17249    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
17250    eval $pmix_str
17251
17252    # Iterate over all the variables and unset them all
17253    for pmix_var in $pmix_str; do
17254        unset $pmix_var
17255    done
17256
17257
17258                if test "x$pmix_cv_c11_flag" != "x" ; then
17259                    CFLAGS="$CFLAGS $pmix_cv_c11_flag"
17260                    { $as_echo "$as_me:${as_lineno-$LINENO}: using $flag to enable C11 support" >&5
17261$as_echo "$as_me: using $flag to enable C11 support" >&6;}
17262                    pmix_cv_c11_supported=yes
17263                    break
17264                fi
17265            done
17266        else
17267            { $as_echo "$as_me:${as_lineno-$LINENO}: no flag required for C11 support" >&5
17268$as_echo "$as_me: no flag required for C11 support" >&6;}
17269            pmix_cv_c11_supported=yes
17270        fi
17271    fi
17272
17273
17274    # Unwind the index
17275    pmix_scope_index=`expr $pmix_scope_index - 1`
17276    pmix_scope_test=`expr $pmix_scope_index \> 0`
17277    if test "$pmix_scope_test" = "0"; then
17278        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
17279$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
17280        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17281$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17282        as_fn_error $? "Cannot continue" "$LINENO" 5
17283    fi
17284
17285    # Get the variable names from that index
17286    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
17287    eval $pmix_str
17288
17289    # Iterate over all the variables and unset them all
17290    for pmix_var in $pmix_str; do
17291        unset $pmix_var
17292    done
17293
17294
17295
17296    if test $pmix_cv_c11_supported = no ; then
17297        # It is not currently an error if C11 support is not available. Uncomment the
17298        # following lines and update the warning when we require a C11 compiler.
17299        # AC_MSG_WARNING([Open MPI requires a C11 (or newer) compiler])
17300        # AC_MSG_ERROR([Aborting.])
17301        # From Open MPI 1.7 on we require a C99 compiant compiler
17302           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
17303$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
17304if ${ac_cv_prog_cc_c99+:} false; then :
17305  $as_echo_n "(cached) " >&6
17306else
17307  ac_cv_prog_cc_c99=no
17308ac_save_CC=$CC
17309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17310/* end confdefs.h.  */
17311#include <stdarg.h>
17312#include <stdbool.h>
17313#include <stdlib.h>
17314#include <wchar.h>
17315#include <stdio.h>
17316
17317// Check varargs macros.  These examples are taken from C99 6.10.3.5.
17318#define debug(...) fprintf (stderr, __VA_ARGS__)
17319#define showlist(...) puts (#__VA_ARGS__)
17320#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
17321static void
17322test_varargs_macros (void)
17323{
17324  int x = 1234;
17325  int y = 5678;
17326  debug ("Flag");
17327  debug ("X = %d\n", x);
17328  showlist (The first, second, and third items.);
17329  report (x>y, "x is %d but y is %d", x, y);
17330}
17331
17332// Check long long types.
17333#define BIG64 18446744073709551615ull
17334#define BIG32 4294967295ul
17335#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
17336#if !BIG_OK
17337  your preprocessor is broken;
17338#endif
17339#if BIG_OK
17340#else
17341  your preprocessor is broken;
17342#endif
17343static long long int bignum = -9223372036854775807LL;
17344static unsigned long long int ubignum = BIG64;
17345
17346struct incomplete_array
17347{
17348  int datasize;
17349  double data[];
17350};
17351
17352struct named_init {
17353  int number;
17354  const wchar_t *name;
17355  double average;
17356};
17357
17358typedef const char *ccp;
17359
17360static inline int
17361test_restrict (ccp restrict text)
17362{
17363  // See if C++-style comments work.
17364  // Iterate through items via the restricted pointer.
17365  // Also check for declarations in for loops.
17366  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
17367    continue;
17368  return 0;
17369}
17370
17371// Check varargs and va_copy.
17372static void
17373test_varargs (const char *format, ...)
17374{
17375  va_list args;
17376  va_start (args, format);
17377  va_list args_copy;
17378  va_copy (args_copy, args);
17379
17380  const char *str;
17381  int number;
17382  float fnumber;
17383
17384  while (*format)
17385    {
17386      switch (*format++)
17387	{
17388	case 's': // string
17389	  str = va_arg (args_copy, const char *);
17390	  break;
17391	case 'd': // int
17392	  number = va_arg (args_copy, int);
17393	  break;
17394	case 'f': // float
17395	  fnumber = va_arg (args_copy, double);
17396	  break;
17397	default:
17398	  break;
17399	}
17400    }
17401  va_end (args_copy);
17402  va_end (args);
17403}
17404
17405int
17406main ()
17407{
17408
17409  // Check bool.
17410  _Bool success = false;
17411
17412  // Check restrict.
17413  if (test_restrict ("String literal") == 0)
17414    success = true;
17415  char *restrict newvar = "Another string";
17416
17417  // Check varargs.
17418  test_varargs ("s, d' f .", "string", 65, 34.234);
17419  test_varargs_macros ();
17420
17421  // Check flexible array members.
17422  struct incomplete_array *ia =
17423    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
17424  ia->datasize = 10;
17425  for (int i = 0; i < ia->datasize; ++i)
17426    ia->data[i] = i * 1.234;
17427
17428  // Check named initializers.
17429  struct named_init ni = {
17430    .number = 34,
17431    .name = L"Test wide string",
17432    .average = 543.34343,
17433  };
17434
17435  ni.number = 58;
17436
17437  int dynamic_array[ni.number];
17438  dynamic_array[ni.number - 1] = 543;
17439
17440  // work around unused variable warnings
17441  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
17442	  || dynamic_array[ni.number - 1] != 543);
17443
17444  ;
17445  return 0;
17446}
17447_ACEOF
17448for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
17449do
17450  CC="$ac_save_CC $ac_arg"
17451  if ac_fn_c_try_compile "$LINENO"; then :
17452  ac_cv_prog_cc_c99=$ac_arg
17453fi
17454rm -f core conftest.err conftest.$ac_objext
17455  test "x$ac_cv_prog_cc_c99" != "xno" && break
17456done
17457rm -f conftest.$ac_ext
17458CC=$ac_save_CC
17459
17460fi
17461# AC_CACHE_VAL
17462case "x$ac_cv_prog_cc_c99" in
17463  x)
17464    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17465$as_echo "none needed" >&6; } ;;
17466  xno)
17467    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17468$as_echo "unsupported" >&6; } ;;
17469  *)
17470    CC="$CC $ac_cv_prog_cc_c99"
17471    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
17472$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
17473esac
17474if test "x$ac_cv_prog_cc_c99" != xno; then :
17475
17476fi
17477
17478
17479        # The result of AC_PROG_CC_C99 is stored in ac_cv_prog_cc_c99
17480        if test "x$ac_cv_prog_cc_c99" = xno ; then
17481            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI requires a C99 (or newer) compiler. C11 is recommended." >&5
17482$as_echo "$as_me: WARNING: Open MPI requires a C99 (or newer) compiler. C11 is recommended." >&2;}
17483            as_fn_error $? "Aborting." "$LINENO" 5
17484        fi
17485
17486        # Get the correct result for C11 support flags now that the compiler flags have
17487        # changed
17488
17489
17490
17491    # Is the private index set?  If not, set it.
17492    if test "x$pmix_scope_index" = "x"; then
17493        pmix_scope_index=1
17494    fi
17495
17496    # First, check to see if any of these variables are already set.
17497    # This is a simple sanity check to ensure we're not already
17498    # overwriting pre-existing variables (that have a non-empty
17499    # value).  It's not a perfect check, but at least it's something.
17500    for pmix_var in pmix_prog_cc_c11_helper_CFLAGS_save; do
17501        pmix_str="pmix_str=\"\$$pmix_var\""
17502        eval $pmix_str
17503
17504        if test "x$pmix_str" != "x"; then
17505            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
17506$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
17507            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
17508$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
17509            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
17510$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
17511            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17512$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17513            as_fn_error $? "Cannot continue" "$LINENO" 5
17514        fi
17515    done
17516
17517    # Ok, we passed the simple sanity check.  Save all these names so
17518    # that we can unset them at the end of the scope.
17519    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_prog_cc_c11_helper_CFLAGS_save\""
17520    eval $pmix_str
17521    unset pmix_str
17522
17523    env | grep pmix_scope
17524    pmix_scope_index=`expr $pmix_scope_index + 1`
17525
17526
17527    pmix_prog_cc_c11_helper_CFLAGS_save=$CFLAGS
17528    CFLAGS="$CFLAGS "
17529
17530
17531
17532
17533    # Is the private index set?  If not, set it.
17534    if test "x$pmix_scope_index" = "x"; then
17535        pmix_scope_index=1
17536    fi
17537
17538    # First, check to see if any of these variables are already set.
17539    # This is a simple sanity check to ensure we're not already
17540    # overwriting pre-existing variables (that have a non-empty
17541    # value).  It's not a perfect check, but at least it's something.
17542    for pmix_var in pmix_cc_helper_result; do
17543        pmix_str="pmix_str=\"\$$pmix_var\""
17544        eval $pmix_str
17545
17546        if test "x$pmix_str" != "x"; then
17547            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
17548$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
17549            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
17550$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
17551            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
17552$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
17553            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17554$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17555            as_fn_error $? "Cannot continue" "$LINENO" 5
17556        fi
17557    done
17558
17559    # Ok, we passed the simple sanity check.  Save all these names so
17560    # that we can unset them at the end of the scope.
17561    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
17562    eval $pmix_str
17563    unset pmix_str
17564
17565    env | grep pmix_scope
17566    pmix_scope_index=`expr $pmix_scope_index + 1`
17567
17568    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports C11 _Thread_local" >&5
17569$as_echo_n "checking if $CC  supports C11 _Thread_local... " >&6; }
17570
17571    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17572/* end confdefs.h.  */
17573
17574int
17575main ()
17576{
17577static _Thread_local int  foo = 1;++foo;
17578  ;
17579  return 0;
17580}
17581_ACEOF
17582if ac_fn_c_try_link "$LINENO"; then :
17583  pmix_prog_cc_c11_helper__Thread_local_available=1
17584                    pmix_cc_helper_result=yes
17585else
17586  pmix_prog_cc_c11_helper__Thread_local_available=0
17587                    pmix_cc_helper_result=no
17588fi
17589rm -f core conftest.err conftest.$ac_objext \
17590    conftest$ac_exeext conftest.$ac_ext
17591
17592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
17593$as_echo "$pmix_cc_helper_result" >&6; }
17594
17595    # Unwind the index
17596    pmix_scope_index=`expr $pmix_scope_index - 1`
17597    pmix_scope_test=`expr $pmix_scope_index \> 0`
17598    if test "$pmix_scope_test" = "0"; then
17599        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
17600$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
17601        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17602$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17603        as_fn_error $? "Cannot continue" "$LINENO" 5
17604    fi
17605
17606    # Get the variable names from that index
17607    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
17608    eval $pmix_str
17609
17610    # Iterate over all the variables and unset them all
17611    for pmix_var in $pmix_str; do
17612        unset $pmix_var
17613    done
17614
17615
17616
17617
17618
17619
17620    # Is the private index set?  If not, set it.
17621    if test "x$pmix_scope_index" = "x"; then
17622        pmix_scope_index=1
17623    fi
17624
17625    # First, check to see if any of these variables are already set.
17626    # This is a simple sanity check to ensure we're not already
17627    # overwriting pre-existing variables (that have a non-empty
17628    # value).  It's not a perfect check, but at least it's something.
17629    for pmix_var in pmix_cc_helper_result; do
17630        pmix_str="pmix_str=\"\$$pmix_var\""
17631        eval $pmix_str
17632
17633        if test "x$pmix_str" != "x"; then
17634            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
17635$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
17636            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
17637$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
17638            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
17639$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
17640            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17641$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17642            as_fn_error $? "Cannot continue" "$LINENO" 5
17643        fi
17644    done
17645
17646    # Ok, we passed the simple sanity check.  Save all these names so
17647    # that we can unset them at the end of the scope.
17648    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
17649    eval $pmix_str
17650    unset pmix_str
17651
17652    env | grep pmix_scope
17653    pmix_scope_index=`expr $pmix_scope_index + 1`
17654
17655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports C11 atomic variables" >&5
17656$as_echo_n "checking if $CC  supports C11 atomic variables... " >&6; }
17657
17658    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17659/* end confdefs.h.  */
17660#include <stdatomic.h>
17661int
17662main ()
17663{
17664static atomic_long foo = 1;++foo;
17665  ;
17666  return 0;
17667}
17668_ACEOF
17669if ac_fn_c_try_link "$LINENO"; then :
17670  pmix_prog_cc_c11_helper_atomic_var_available=1
17671                    pmix_cc_helper_result=yes
17672else
17673  pmix_prog_cc_c11_helper_atomic_var_available=0
17674                    pmix_cc_helper_result=no
17675fi
17676rm -f core conftest.err conftest.$ac_objext \
17677    conftest$ac_exeext conftest.$ac_ext
17678
17679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
17680$as_echo "$pmix_cc_helper_result" >&6; }
17681
17682    # Unwind the index
17683    pmix_scope_index=`expr $pmix_scope_index - 1`
17684    pmix_scope_test=`expr $pmix_scope_index \> 0`
17685    if test "$pmix_scope_test" = "0"; then
17686        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
17687$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
17688        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17689$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17690        as_fn_error $? "Cannot continue" "$LINENO" 5
17691    fi
17692
17693    # Get the variable names from that index
17694    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
17695    eval $pmix_str
17696
17697    # Iterate over all the variables and unset them all
17698    for pmix_var in $pmix_str; do
17699        unset $pmix_var
17700    done
17701
17702
17703
17704
17705
17706
17707    # Is the private index set?  If not, set it.
17708    if test "x$pmix_scope_index" = "x"; then
17709        pmix_scope_index=1
17710    fi
17711
17712    # First, check to see if any of these variables are already set.
17713    # This is a simple sanity check to ensure we're not already
17714    # overwriting pre-existing variables (that have a non-empty
17715    # value).  It's not a perfect check, but at least it's something.
17716    for pmix_var in pmix_cc_helper_result; do
17717        pmix_str="pmix_str=\"\$$pmix_var\""
17718        eval $pmix_str
17719
17720        if test "x$pmix_str" != "x"; then
17721            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
17722$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
17723            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
17724$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
17725            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
17726$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
17727            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17728$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17729            as_fn_error $? "Cannot continue" "$LINENO" 5
17730        fi
17731    done
17732
17733    # Ok, we passed the simple sanity check.  Save all these names so
17734    # that we can unset them at the end of the scope.
17735    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
17736    eval $pmix_str
17737    unset pmix_str
17738
17739    env | grep pmix_scope
17740    pmix_scope_index=`expr $pmix_scope_index + 1`
17741
17742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports C11 _Atomic keyword" >&5
17743$as_echo_n "checking if $CC  supports C11 _Atomic keyword... " >&6; }
17744
17745    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17746/* end confdefs.h.  */
17747#include <stdatomic.h>
17748int
17749main ()
17750{
17751static _Atomic long foo = 1;++foo;
17752  ;
17753  return 0;
17754}
17755_ACEOF
17756if ac_fn_c_try_link "$LINENO"; then :
17757  pmix_prog_cc_c11_helper__Atomic_available=1
17758                    pmix_cc_helper_result=yes
17759else
17760  pmix_prog_cc_c11_helper__Atomic_available=0
17761                    pmix_cc_helper_result=no
17762fi
17763rm -f core conftest.err conftest.$ac_objext \
17764    conftest$ac_exeext conftest.$ac_ext
17765
17766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
17767$as_echo "$pmix_cc_helper_result" >&6; }
17768
17769    # Unwind the index
17770    pmix_scope_index=`expr $pmix_scope_index - 1`
17771    pmix_scope_test=`expr $pmix_scope_index \> 0`
17772    if test "$pmix_scope_test" = "0"; then
17773        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
17774$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
17775        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17776$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17777        as_fn_error $? "Cannot continue" "$LINENO" 5
17778    fi
17779
17780    # Get the variable names from that index
17781    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
17782    eval $pmix_str
17783
17784    # Iterate over all the variables and unset them all
17785    for pmix_var in $pmix_str; do
17786        unset $pmix_var
17787    done
17788
17789
17790
17791
17792
17793
17794    # Is the private index set?  If not, set it.
17795    if test "x$pmix_scope_index" = "x"; then
17796        pmix_scope_index=1
17797    fi
17798
17799    # First, check to see if any of these variables are already set.
17800    # This is a simple sanity check to ensure we're not already
17801    # overwriting pre-existing variables (that have a non-empty
17802    # value).  It's not a perfect check, but at least it's something.
17803    for pmix_var in pmix_cc_helper_result; do
17804        pmix_str="pmix_str=\"\$$pmix_var\""
17805        eval $pmix_str
17806
17807        if test "x$pmix_str" != "x"; then
17808            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
17809$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
17810            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
17811$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
17812            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
17813$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
17814            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17815$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17816            as_fn_error $? "Cannot continue" "$LINENO" 5
17817        fi
17818    done
17819
17820    # Ok, we passed the simple sanity check.  Save all these names so
17821    # that we can unset them at the end of the scope.
17822    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
17823    eval $pmix_str
17824    unset pmix_str
17825
17826    env | grep pmix_scope
17827    pmix_scope_index=`expr $pmix_scope_index + 1`
17828
17829    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports C11 _Generic keyword" >&5
17830$as_echo_n "checking if $CC  supports C11 _Generic keyword... " >&6; }
17831
17832    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17833/* end confdefs.h.  */
17834#define FOO(x) (_Generic (x, int: 1))
17835int
17836main ()
17837{
17838static int x, y; y = FOO(x);
17839  ;
17840  return 0;
17841}
17842_ACEOF
17843if ac_fn_c_try_link "$LINENO"; then :
17844  pmix_prog_cc_c11_helper__Generic_available=1
17845                    pmix_cc_helper_result=yes
17846else
17847  pmix_prog_cc_c11_helper__Generic_available=0
17848                    pmix_cc_helper_result=no
17849fi
17850rm -f core conftest.err conftest.$ac_objext \
17851    conftest$ac_exeext conftest.$ac_ext
17852
17853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
17854$as_echo "$pmix_cc_helper_result" >&6; }
17855
17856    # Unwind the index
17857    pmix_scope_index=`expr $pmix_scope_index - 1`
17858    pmix_scope_test=`expr $pmix_scope_index \> 0`
17859    if test "$pmix_scope_test" = "0"; then
17860        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
17861$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
17862        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17863$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17864        as_fn_error $? "Cannot continue" "$LINENO" 5
17865    fi
17866
17867    # Get the variable names from that index
17868    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
17869    eval $pmix_str
17870
17871    # Iterate over all the variables and unset them all
17872    for pmix_var in $pmix_str; do
17873        unset $pmix_var
17874    done
17875
17876
17877
17878
17879
17880
17881    # Is the private index set?  If not, set it.
17882    if test "x$pmix_scope_index" = "x"; then
17883        pmix_scope_index=1
17884    fi
17885
17886    # First, check to see if any of these variables are already set.
17887    # This is a simple sanity check to ensure we're not already
17888    # overwriting pre-existing variables (that have a non-empty
17889    # value).  It's not a perfect check, but at least it's something.
17890    for pmix_var in pmix_cc_helper_result; do
17891        pmix_str="pmix_str=\"\$$pmix_var\""
17892        eval $pmix_str
17893
17894        if test "x$pmix_str" != "x"; then
17895            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
17896$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
17897            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
17898$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
17899            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
17900$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
17901            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17902$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17903            as_fn_error $? "Cannot continue" "$LINENO" 5
17904        fi
17905    done
17906
17907    # Ok, we passed the simple sanity check.  Save all these names so
17908    # that we can unset them at the end of the scope.
17909    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
17910    eval $pmix_str
17911    unset pmix_str
17912
17913    env | grep pmix_scope
17914    pmix_scope_index=`expr $pmix_scope_index + 1`
17915
17916    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports C11 _Static_assert" >&5
17917$as_echo_n "checking if $CC  supports C11 _Static_assert... " >&6; }
17918
17919    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17920/* end confdefs.h.  */
17921#include <stdint.h>
17922int
17923main ()
17924{
17925_Static_assert(sizeof(int64_t) == 8, "WTH");
17926  ;
17927  return 0;
17928}
17929_ACEOF
17930if ac_fn_c_try_link "$LINENO"; then :
17931  pmix_prog_cc_c11_helper__static_assert_available=1
17932                    pmix_cc_helper_result=yes
17933else
17934  pmix_prog_cc_c11_helper__static_assert_available=0
17935                    pmix_cc_helper_result=no
17936fi
17937rm -f core conftest.err conftest.$ac_objext \
17938    conftest$ac_exeext conftest.$ac_ext
17939
17940    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
17941$as_echo "$pmix_cc_helper_result" >&6; }
17942
17943    # Unwind the index
17944    pmix_scope_index=`expr $pmix_scope_index - 1`
17945    pmix_scope_test=`expr $pmix_scope_index \> 0`
17946    if test "$pmix_scope_test" = "0"; then
17947        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
17948$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
17949        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17950$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17951        as_fn_error $? "Cannot continue" "$LINENO" 5
17952    fi
17953
17954    # Get the variable names from that index
17955    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
17956    eval $pmix_str
17957
17958    # Iterate over all the variables and unset them all
17959    for pmix_var in $pmix_str; do
17960        unset $pmix_var
17961    done
17962
17963
17964
17965
17966
17967
17968    # Is the private index set?  If not, set it.
17969    if test "x$pmix_scope_index" = "x"; then
17970        pmix_scope_index=1
17971    fi
17972
17973    # First, check to see if any of these variables are already set.
17974    # This is a simple sanity check to ensure we're not already
17975    # overwriting pre-existing variables (that have a non-empty
17976    # value).  It's not a perfect check, but at least it's something.
17977    for pmix_var in pmix_cc_helper_result; do
17978        pmix_str="pmix_str=\"\$$pmix_var\""
17979        eval $pmix_str
17980
17981        if test "x$pmix_str" != "x"; then
17982            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
17983$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
17984            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
17985$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
17986            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
17987$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
17988            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
17989$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
17990            as_fn_error $? "Cannot continue" "$LINENO" 5
17991        fi
17992    done
17993
17994    # Ok, we passed the simple sanity check.  Save all these names so
17995    # that we can unset them at the end of the scope.
17996    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
17997    eval $pmix_str
17998    unset pmix_str
17999
18000    env | grep pmix_scope
18001    pmix_scope_index=`expr $pmix_scope_index + 1`
18002
18003    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports C11 atomic_fetch_xor_explicit" >&5
18004$as_echo_n "checking if $CC  supports C11 atomic_fetch_xor_explicit... " >&6; }
18005
18006    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18007/* end confdefs.h.  */
18008#include <stdatomic.h>
18009#include <stdint.h>
18010int
18011main ()
18012{
18013_Atomic uint32_t a; uint32_t b; atomic_fetch_xor_explicit(&a, b, memory_order_relaxed);
18014  ;
18015  return 0;
18016}
18017_ACEOF
18018if ac_fn_c_try_link "$LINENO"; then :
18019  pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=1
18020                    pmix_cc_helper_result=yes
18021else
18022  pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available=0
18023                    pmix_cc_helper_result=no
18024fi
18025rm -f core conftest.err conftest.$ac_objext \
18026    conftest$ac_exeext conftest.$ac_ext
18027
18028    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
18029$as_echo "$pmix_cc_helper_result" >&6; }
18030
18031    # Unwind the index
18032    pmix_scope_index=`expr $pmix_scope_index - 1`
18033    pmix_scope_test=`expr $pmix_scope_index \> 0`
18034    if test "$pmix_scope_test" = "0"; then
18035        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
18036$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
18037        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
18038$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
18039        as_fn_error $? "Cannot continue" "$LINENO" 5
18040    fi
18041
18042    # Get the variable names from that index
18043    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
18044    eval $pmix_str
18045
18046    # Iterate over all the variables and unset them all
18047    for pmix_var in $pmix_str; do
18048        unset $pmix_var
18049    done
18050
18051
18052
18053
18054    if test $pmix_prog_cc_c11_helper__Thread_local_available -eq 1 && test $pmix_prog_cc_c11_helper_atomic_var_available -eq 1 && test $pmix_prog_cc_c11_helper_atomic_fetch_xor_explicit_available -eq 1; then :
18055
18056fi
18057
18058    CFLAGS=$pmix_prog_cc_c11_helper_CFLAGS_save
18059
18060
18061    # Unwind the index
18062    pmix_scope_index=`expr $pmix_scope_index - 1`
18063    pmix_scope_test=`expr $pmix_scope_index \> 0`
18064    if test "$pmix_scope_test" = "0"; then
18065        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
18066$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
18067        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
18068$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
18069        as_fn_error $? "Cannot continue" "$LINENO" 5
18070    fi
18071
18072    # Get the variable names from that index
18073    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
18074    eval $pmix_str
18075
18076    # Iterate over all the variables and unset them all
18077    for pmix_var in $pmix_str; do
18078        unset $pmix_var
18079    done
18080
18081
18082    fi
18083
18084    # Check if compiler support __thread
18085
18086
18087
18088    # Is the private index set?  If not, set it.
18089    if test "x$pmix_scope_index" = "x"; then
18090        pmix_scope_index=1
18091    fi
18092
18093    # First, check to see if any of these variables are already set.
18094    # This is a simple sanity check to ensure we're not already
18095    # overwriting pre-existing variables (that have a non-empty
18096    # value).  It's not a perfect check, but at least it's something.
18097    for pmix_var in pmix_cc_helper_result; do
18098        pmix_str="pmix_str=\"\$$pmix_var\""
18099        eval $pmix_str
18100
18101        if test "x$pmix_str" != "x"; then
18102            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
18103$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
18104            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
18105$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
18106            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
18107$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
18108            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
18109$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
18110            as_fn_error $? "Cannot continue" "$LINENO" 5
18111        fi
18112    done
18113
18114    # Ok, we passed the simple sanity check.  Save all these names so
18115    # that we can unset them at the end of the scope.
18116    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
18117    eval $pmix_str
18118    unset pmix_str
18119
18120    env | grep pmix_scope
18121    pmix_scope_index=`expr $pmix_scope_index + 1`
18122
18123    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports __thread" >&5
18124$as_echo_n "checking if $CC  supports __thread... " >&6; }
18125
18126    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18127/* end confdefs.h.  */
18128
18129int
18130main ()
18131{
18132static __thread int  foo = 1;++foo;
18133  ;
18134  return 0;
18135}
18136_ACEOF
18137if ac_fn_c_try_link "$LINENO"; then :
18138  pmix_prog_cc__thread_available=1
18139                    pmix_cc_helper_result=yes
18140else
18141  pmix_prog_cc__thread_available=0
18142                    pmix_cc_helper_result=no
18143fi
18144rm -f core conftest.err conftest.$ac_objext \
18145    conftest$ac_exeext conftest.$ac_ext
18146
18147    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
18148$as_echo "$pmix_cc_helper_result" >&6; }
18149
18150    # Unwind the index
18151    pmix_scope_index=`expr $pmix_scope_index - 1`
18152    pmix_scope_test=`expr $pmix_scope_index \> 0`
18153    if test "$pmix_scope_test" = "0"; then
18154        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
18155$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
18156        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
18157$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
18158        as_fn_error $? "Cannot continue" "$LINENO" 5
18159    fi
18160
18161    # Get the variable names from that index
18162    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
18163    eval $pmix_str
18164
18165    # Iterate over all the variables and unset them all
18166    for pmix_var in $pmix_str; do
18167        unset $pmix_var
18168    done
18169
18170
18171
18172
18173
18174
18175
18176    # Is the private index set?  If not, set it.
18177    if test "x$pmix_scope_index" = "x"; then
18178        pmix_scope_index=1
18179    fi
18180
18181    # First, check to see if any of these variables are already set.
18182    # This is a simple sanity check to ensure we're not already
18183    # overwriting pre-existing variables (that have a non-empty
18184    # value).  It's not a perfect check, but at least it's something.
18185    for pmix_var in pmix_cc_helper_result; do
18186        pmix_str="pmix_str=\"\$$pmix_var\""
18187        eval $pmix_str
18188
18189        if test "x$pmix_str" != "x"; then
18190            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
18191$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
18192            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
18193$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
18194            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
18195$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
18196            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
18197$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
18198            as_fn_error $? "Cannot continue" "$LINENO" 5
18199        fi
18200    done
18201
18202    # Ok, we passed the simple sanity check.  Save all these names so
18203    # that we can unset them at the end of the scope.
18204    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_cc_helper_result\""
18205    eval $pmix_str
18206    unset pmix_str
18207
18208    env | grep pmix_scope
18209    pmix_scope_index=`expr $pmix_scope_index + 1`
18210
18211    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC  supports C11 _Thread_local" >&5
18212$as_echo_n "checking if $CC  supports C11 _Thread_local... " >&6; }
18213
18214    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215/* end confdefs.h.  */
18216
18217int
18218main ()
18219{
18220static _Thread_local int  foo = 1;++foo;
18221  ;
18222  return 0;
18223}
18224_ACEOF
18225if ac_fn_c_try_link "$LINENO"; then :
18226  pmix_prog_cc_c11_helper__Thread_local_available=1
18227                    pmix_cc_helper_result=yes
18228else
18229  pmix_prog_cc_c11_helper__Thread_local_available=0
18230                    pmix_cc_helper_result=no
18231fi
18232rm -f core conftest.err conftest.$ac_objext \
18233    conftest$ac_exeext conftest.$ac_ext
18234
18235    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cc_helper_result" >&5
18236$as_echo "$pmix_cc_helper_result" >&6; }
18237
18238    # Unwind the index
18239    pmix_scope_index=`expr $pmix_scope_index - 1`
18240    pmix_scope_test=`expr $pmix_scope_index \> 0`
18241    if test "$pmix_scope_test" = "0"; then
18242        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
18243$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
18244        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
18245$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
18246        as_fn_error $? "Cannot continue" "$LINENO" 5
18247    fi
18248
18249    # Get the variable names from that index
18250    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
18251    eval $pmix_str
18252
18253    # Iterate over all the variables and unset them all
18254    for pmix_var in $pmix_str; do
18255        unset $pmix_var
18256    done
18257
18258
18259
18260
18261cat >>confdefs.h <<_ACEOF
18262#define PMIX_C_HAVE__THREAD_LOCAL $pmix_prog_cc_c11_helper__Thread_local_available
18263_ACEOF
18264
18265
18266
18267cat >>confdefs.h <<_ACEOF
18268#define PMIX_C_HAVE_ATOMIC_CONV_VAR $pmix_prog_cc_c11_helper_atomic_var_available
18269_ACEOF
18270
18271
18272
18273cat >>confdefs.h <<_ACEOF
18274#define PMIX_C_HAVE__ATOMIC $pmix_prog_cc_c11_helper__Atomic_available
18275_ACEOF
18276
18277
18278
18279cat >>confdefs.h <<_ACEOF
18280#define PMIX_C_HAVE__GENERIC $pmix_prog_cc_c11_helper__Generic_available
18281_ACEOF
18282
18283
18284
18285cat >>confdefs.h <<_ACEOF
18286#define PMIX_C_HAVE__STATIC_ASSERT $pmix_prog_cc_c11_helper__static_assert_available
18287_ACEOF
18288
18289
18290
18291cat >>confdefs.h <<_ACEOF
18292#define PMIX_C_HAVE___THREAD $pmix_prog_cc__thread_available
18293_ACEOF
18294
18295
18296
18297
18298
18299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C compiler vendor" >&5
18300$as_echo_n "checking for the C compiler vendor... " >&6; }
18301if ${pmix_cv_c_compiler_vendor+:} false; then :
18302  $as_echo_n "(cached) " >&6
18303else
18304  ac_ext=c
18305ac_cpp='$CPP $CPPFLAGS'
18306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18308ac_compiler_gnu=$ac_cv_c_compiler_gnu
18309
18310
18311    pmix_check_compiler_vendor_result="unknown"
18312
18313    # GNU is probably the most common, so check that one as soon as
18314    # possible.  Intel pretends to be GNU, so need to check Intel
18315    # before checking for GNU.
18316
18317    # Intel
18318    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18319
18320    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18321/* end confdefs.h.  */
18322
18323#if !( defined(__INTEL_COMPILER) || defined(__ICC) )
18324#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met"
18325choke me
18326#endif
18327_ACEOF
18328if ac_fn_c_try_compile "$LINENO"; then :
18329  pmix_check_compiler_vendor_result="intel"
18330fi
18331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18332fi
18333
18334    # Fujitsu
18335    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18336
18337    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18338/* end confdefs.h.  */
18339
18340#if !( defined(__FUJITSU) )
18341#error "condition defined(__FUJITSU) not met"
18342choke me
18343#endif
18344_ACEOF
18345if ac_fn_c_try_compile "$LINENO"; then :
18346  pmix_check_compiler_vendor_result="fujitsu"
18347fi
18348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18349fi
18350
18351    # GNU
18352    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18353
18354    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18355/* end confdefs.h.  */
18356
18357#ifndef __GNUC__
18358#error "symbol __GNUC__ not defined"
18359choke me
18360#endif
18361_ACEOF
18362if ac_fn_c_try_compile "$LINENO"; then :
18363  pmix_check_compiler_vendor_result="gnu"
18364
18365               # We do not support gccfss as a compiler so die if
18366               # someone tries to use said compiler.  gccfss (gcc
18367               # for SPARC Systems) is a compiler that is no longer
18368               # supported by Oracle and it has some major flaws
18369               # that prevents it from actually compiling PMIX code.
18370               # So if we detect it we automatically bail.
18371
18372               if ($CC --version | grep gccfss) >/dev/null 2>&1; then
18373                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: gccfss" >&5
18374$as_echo "gccfss" >&6; }
18375                   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected gccfss being used to compile PMIx." >&5
18376$as_echo "$as_me: WARNING: Detected gccfss being used to compile PMIx." >&2;}
18377                   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Because of several issues PMIx does not support" >&5
18378$as_echo "$as_me: WARNING: Because of several issues PMIx does not support" >&2;}
18379                   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the gccfss compiler.  Please use a different compiler." >&5
18380$as_echo "$as_me: WARNING: the gccfss compiler.  Please use a different compiler." >&2;}
18381                   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you didn't think you used gccfss you may want to" >&5
18382$as_echo "$as_me: WARNING: If you didn't think you used gccfss you may want to" >&2;}
18383                   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: check to see if the compiler you think you used is" >&5
18384$as_echo "$as_me: WARNING: check to see if the compiler you think you used is" >&2;}
18385                   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: actually a link to gccfss." >&5
18386$as_echo "$as_me: WARNING: actually a link to gccfss." >&2;}
18387                   as_fn_error $? "Cannot continue" "$LINENO" 5
18388               fi
18389fi
18390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18391fi
18392
18393    # Borland Turbo C
18394    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18395
18396    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397/* end confdefs.h.  */
18398
18399#ifndef __TURBOC__
18400#error "symbol __TURBOC__ not defined"
18401choke me
18402#endif
18403_ACEOF
18404if ac_fn_c_try_compile "$LINENO"; then :
18405  pmix_check_compiler_vendor_result="borland"
18406fi
18407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18408fi
18409
18410    # Borland C++
18411    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18412
18413    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414/* end confdefs.h.  */
18415
18416#ifndef __BORLANDC__
18417#error "symbol __BORLANDC__ not defined"
18418choke me
18419#endif
18420_ACEOF
18421if ac_fn_c_try_compile "$LINENO"; then :
18422  pmix_check_compiler_vendor_result="borland"
18423fi
18424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18425fi
18426
18427    # Comeau C++
18428    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18429
18430    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431/* end confdefs.h.  */
18432
18433#ifndef __COMO__
18434#error "symbol __COMO__ not defined"
18435choke me
18436#endif
18437_ACEOF
18438if ac_fn_c_try_compile "$LINENO"; then :
18439  pmix_check_compiler_vendor_result="comeau"
18440fi
18441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18442fi
18443
18444    # Compaq C/C++
18445    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18446
18447    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448/* end confdefs.h.  */
18449
18450#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) )
18451#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met"
18452choke me
18453#endif
18454_ACEOF
18455if ac_fn_c_try_compile "$LINENO"; then :
18456  pmix_check_compiler_vendor_result="compaq"
18457else
18458
18459    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18460/* end confdefs.h.  */
18461
18462#if !( defined(__osf__) && defined(__LANGUAGE_C__) )
18463#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met"
18464choke me
18465#endif
18466_ACEOF
18467if ac_fn_c_try_compile "$LINENO"; then :
18468  pmix_check_compiler_vendor_result="compaq"
18469else
18470
18471    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472/* end confdefs.h.  */
18473
18474#ifndef __DECCXX
18475#error "symbol __DECCXX not defined"
18476choke me
18477#endif
18478_ACEOF
18479if ac_fn_c_try_compile "$LINENO"; then :
18480  pmix_check_compiler_vendor_result="compaq"
18481fi
18482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18483fi
18484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18485fi
18486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18487fi
18488
18489    # Cray C/C++
18490    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18491
18492    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18493/* end confdefs.h.  */
18494
18495#ifndef _CRAYC
18496#error "symbol _CRAYC not defined"
18497choke me
18498#endif
18499_ACEOF
18500if ac_fn_c_try_compile "$LINENO"; then :
18501  pmix_check_compiler_vendor_result="cray"
18502fi
18503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504fi
18505
18506    # Diab C/C++
18507    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18508
18509    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510/* end confdefs.h.  */
18511
18512#ifndef __DCC__
18513#error "symbol __DCC__ not defined"
18514choke me
18515#endif
18516_ACEOF
18517if ac_fn_c_try_compile "$LINENO"; then :
18518  pmix_check_compiler_vendor_result="diab"
18519fi
18520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18521fi
18522
18523    # Digital Mars
18524    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18525
18526    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18527/* end confdefs.h.  */
18528
18529#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) )
18530#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met"
18531choke me
18532#endif
18533_ACEOF
18534if ac_fn_c_try_compile "$LINENO"; then :
18535  pmix_check_compiler_vendor_result="digital mars"
18536fi
18537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18538fi
18539
18540    # HP ANSI C / aC++
18541    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18542
18543    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18544/* end confdefs.h.  */
18545
18546#if !( defined(__HP_cc) || defined(__HP_aCC) )
18547#error "condition defined(__HP_cc) || defined(__HP_aCC) not met"
18548choke me
18549#endif
18550_ACEOF
18551if ac_fn_c_try_compile "$LINENO"; then :
18552  pmix_check_compiler_vendor_result="hp"
18553fi
18554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18555fi
18556
18557    # IBM XL C/C++
18558    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18559
18560    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18561/* end confdefs.h.  */
18562
18563#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) )
18564#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met"
18565choke me
18566#endif
18567_ACEOF
18568if ac_fn_c_try_compile "$LINENO"; then :
18569  pmix_check_compiler_vendor_result="ibm"
18570else
18571
18572    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18573/* end confdefs.h.  */
18574
18575#if !( defined(_AIX) && !defined(__GNUC__) )
18576#error "condition defined(_AIX) && !defined(__GNUC__) not met"
18577choke me
18578#endif
18579_ACEOF
18580if ac_fn_c_try_compile "$LINENO"; then :
18581  pmix_check_compiler_vendor_result="ibm"
18582fi
18583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18584fi
18585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18586fi
18587
18588    # KAI C++ (rest in peace)
18589    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18590
18591    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18592/* end confdefs.h.  */
18593
18594#ifndef __KCC
18595#error "symbol __KCC not defined"
18596choke me
18597#endif
18598_ACEOF
18599if ac_fn_c_try_compile "$LINENO"; then :
18600  pmix_check_compiler_vendor_result="kai"
18601fi
18602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18603fi
18604
18605    # LCC
18606    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18607
18608    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609/* end confdefs.h.  */
18610
18611#ifndef __LCC__
18612#error "symbol __LCC__ not defined"
18613choke me
18614#endif
18615_ACEOF
18616if ac_fn_c_try_compile "$LINENO"; then :
18617  pmix_check_compiler_vendor_result="lcc"
18618fi
18619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620fi
18621
18622    # MetaWare High C/C++
18623    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18624
18625    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18626/* end confdefs.h.  */
18627
18628#ifndef __HIGHC__
18629#error "symbol __HIGHC__ not defined"
18630choke me
18631#endif
18632_ACEOF
18633if ac_fn_c_try_compile "$LINENO"; then :
18634  pmix_check_compiler_vendor_result="metaware high"
18635fi
18636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18637fi
18638
18639    # Metrowerks Codewarrior
18640    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18641
18642    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643/* end confdefs.h.  */
18644
18645#ifndef __MWERKS__
18646#error "symbol __MWERKS__ not defined"
18647choke me
18648#endif
18649_ACEOF
18650if ac_fn_c_try_compile "$LINENO"; then :
18651  pmix_check_compiler_vendor_result="metrowerks"
18652fi
18653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18654fi
18655
18656    # MIPSpro (SGI)
18657    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18658
18659    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660/* end confdefs.h.  */
18661
18662#if !( defined(sgi) || defined(__sgi) )
18663#error "condition defined(sgi) || defined(__sgi) not met"
18664choke me
18665#endif
18666_ACEOF
18667if ac_fn_c_try_compile "$LINENO"; then :
18668  pmix_check_compiler_vendor_result="sgi"
18669fi
18670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18671fi
18672
18673    # MPW C++
18674    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18675
18676    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677/* end confdefs.h.  */
18678
18679#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) )
18680#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met"
18681choke me
18682#endif
18683_ACEOF
18684if ac_fn_c_try_compile "$LINENO"; then :
18685  pmix_check_compiler_vendor_result="mpw"
18686fi
18687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18688fi
18689
18690    # Norcroft C
18691    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18692
18693    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18694/* end confdefs.h.  */
18695
18696#ifndef __CC_NORCROFT
18697#error "symbol __CC_NORCROFT not defined"
18698choke me
18699#endif
18700_ACEOF
18701if ac_fn_c_try_compile "$LINENO"; then :
18702  pmix_check_compiler_vendor_result="norcroft"
18703fi
18704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18705fi
18706
18707    # Pelles C
18708    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18709
18710    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18711/* end confdefs.h.  */
18712
18713#ifndef __POCC__
18714#error "symbol __POCC__ not defined"
18715choke me
18716#endif
18717_ACEOF
18718if ac_fn_c_try_compile "$LINENO"; then :
18719  pmix_check_compiler_vendor_result="pelles"
18720fi
18721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18722fi
18723
18724    # Portland Group
18725    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18726
18727    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728/* end confdefs.h.  */
18729
18730#ifndef __PGI
18731#error "symbol __PGI not defined"
18732choke me
18733#endif
18734_ACEOF
18735if ac_fn_c_try_compile "$LINENO"; then :
18736  pmix_check_compiler_vendor_result="portland group"
18737fi
18738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18739fi
18740
18741    # SAS/C
18742    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18743
18744    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18745/* end confdefs.h.  */
18746
18747#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) )
18748#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met"
18749choke me
18750#endif
18751_ACEOF
18752if ac_fn_c_try_compile "$LINENO"; then :
18753  pmix_check_compiler_vendor_result="sas"
18754fi
18755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756fi
18757
18758    # Sun Workshop C/C++
18759    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18760
18761    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762/* end confdefs.h.  */
18763
18764#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) )
18765#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met"
18766choke me
18767#endif
18768_ACEOF
18769if ac_fn_c_try_compile "$LINENO"; then :
18770  pmix_check_compiler_vendor_result="sun"
18771fi
18772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18773fi
18774
18775    # TenDRA C/C++
18776    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18777
18778    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779/* end confdefs.h.  */
18780
18781#ifndef __TenDRA__
18782#error "symbol __TenDRA__ not defined"
18783choke me
18784#endif
18785_ACEOF
18786if ac_fn_c_try_compile "$LINENO"; then :
18787  pmix_check_compiler_vendor_result="tendra"
18788fi
18789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18790fi
18791
18792    # Tiny C
18793    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18794
18795    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796/* end confdefs.h.  */
18797
18798#ifndef __TINYC__
18799#error "symbol __TINYC__ not defined"
18800choke me
18801#endif
18802_ACEOF
18803if ac_fn_c_try_compile "$LINENO"; then :
18804  pmix_check_compiler_vendor_result="tiny"
18805fi
18806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18807fi
18808
18809    # USL C
18810    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18811
18812    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18813/* end confdefs.h.  */
18814
18815#ifndef __USLC__
18816#error "symbol __USLC__ not defined"
18817choke me
18818#endif
18819_ACEOF
18820if ac_fn_c_try_compile "$LINENO"; then :
18821  pmix_check_compiler_vendor_result="usl"
18822fi
18823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18824fi
18825
18826    # Watcom C++
18827    if test "$pmix_check_compiler_vendor_result" = "unknown"; then :
18828
18829    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18830/* end confdefs.h.  */
18831
18832#ifndef __WATCOMC__
18833#error "symbol __WATCOMC__ not defined"
18834choke me
18835#endif
18836_ACEOF
18837if ac_fn_c_try_compile "$LINENO"; then :
18838  pmix_check_compiler_vendor_result="watcom"
18839fi
18840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18841fi
18842
18843    pmix_cv_c_compiler_vendor="$pmix_check_compiler_vendor_result"
18844    unset pmix_check_compiler_vendor_result
18845
18846         ac_ext=c
18847ac_cpp='$CPP $CPPFLAGS'
18848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18850ac_compiler_gnu=$ac_cv_c_compiler_gnu
18851
18852fi
18853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_compiler_vendor" >&5
18854$as_echo "$pmix_cv_c_compiler_vendor" >&6; }
18855
18856    pmix_c_vendor="$pmix_cv_c_compiler_vendor"
18857
18858
18859    # Check for standard headers, needed here because needed before
18860    # the types checks.
18861    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18862$as_echo_n "checking for ANSI C header files... " >&6; }
18863if ${ac_cv_header_stdc+:} false; then :
18864  $as_echo_n "(cached) " >&6
18865else
18866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18867/* end confdefs.h.  */
18868#include <stdlib.h>
18869#include <stdarg.h>
18870#include <string.h>
18871#include <float.h>
18872
18873int
18874main ()
18875{
18876
18877  ;
18878  return 0;
18879}
18880_ACEOF
18881if ac_fn_c_try_compile "$LINENO"; then :
18882  ac_cv_header_stdc=yes
18883else
18884  ac_cv_header_stdc=no
18885fi
18886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18887
18888if test $ac_cv_header_stdc = yes; then
18889  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891/* end confdefs.h.  */
18892#include <string.h>
18893
18894_ACEOF
18895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18896  $EGREP "memchr" >/dev/null 2>&1; then :
18897
18898else
18899  ac_cv_header_stdc=no
18900fi
18901rm -f conftest*
18902
18903fi
18904
18905if test $ac_cv_header_stdc = yes; then
18906  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18908/* end confdefs.h.  */
18909#include <stdlib.h>
18910
18911_ACEOF
18912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18913  $EGREP "free" >/dev/null 2>&1; then :
18914
18915else
18916  ac_cv_header_stdc=no
18917fi
18918rm -f conftest*
18919
18920fi
18921
18922if test $ac_cv_header_stdc = yes; then
18923  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18924  if test "$cross_compiling" = yes; then :
18925  :
18926else
18927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928/* end confdefs.h.  */
18929#include <ctype.h>
18930#include <stdlib.h>
18931#if ((' ' & 0x0FF) == 0x020)
18932# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18933# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18934#else
18935# define ISLOWER(c) \
18936		   (('a' <= (c) && (c) <= 'i') \
18937		     || ('j' <= (c) && (c) <= 'r') \
18938		     || ('s' <= (c) && (c) <= 'z'))
18939# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18940#endif
18941
18942#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18943int
18944main ()
18945{
18946  int i;
18947  for (i = 0; i < 256; i++)
18948    if (XOR (islower (i), ISLOWER (i))
18949	|| toupper (i) != TOUPPER (i))
18950      return 2;
18951  return 0;
18952}
18953_ACEOF
18954if ac_fn_c_try_run "$LINENO"; then :
18955
18956else
18957  ac_cv_header_stdc=no
18958fi
18959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18960  conftest.$ac_objext conftest.beam conftest.$ac_ext
18961fi
18962
18963fi
18964fi
18965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18966$as_echo "$ac_cv_header_stdc" >&6; }
18967if test $ac_cv_header_stdc = yes; then
18968
18969$as_echo "#define STDC_HEADERS 1" >>confdefs.h
18970
18971fi
18972
18973
18974    # GNU C and autotools are inconsistent about whether this is
18975    # defined so let's make it true everywhere for now...  However, IBM
18976    # XL compilers on PPC Linux behave really badly when compiled with
18977    # _GNU_SOURCE defined, so don't define it in that situation.
18978    #
18979    # Don't use AC_GNU_SOURCE because it requires that no compiler
18980    # tests are done before setting it, and we need to at least do
18981    # enough tests to figure out if we're using XL or not.
18982    if test "$pmix_cv_c_compiler_vendor" != "ibm"; then :
18983
18984           $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
18985
18986fi
18987
18988    # Do we want code coverage
18989    if test "$WANT_COVERAGE" = "1"; then
18990        if test "$pmix_c_vendor" = "gnu" ; then
18991            # For compilers > gcc-4.x, use --coverage for
18992            # compiling and linking to circumvent trouble with
18993            # libgcov.
18994            CFLAGS_orig="$CFLAGS"
18995            LDFLAGS_orig="$LDFLAGS"
18996
18997            CFLAGS="$CFLAGS_orig --coverage"
18998            LDFLAGS="$LDFLAGS_orig --coverage"
18999            PMIX_COVERAGE_FLAGS=
19000
19001            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports --coverage" >&5
19002$as_echo_n "checking if $CC supports --coverage... " >&6; }
19003if ${pmix_cv_cc_coverage+:} false; then :
19004  $as_echo_n "(cached) " >&6
19005else
19006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19007/* end confdefs.h.  */
19008
19009int
19010main ()
19011{
19012
19013  ;
19014  return 0;
19015}
19016_ACEOF
19017if ac_fn_c_try_compile "$LINENO"; then :
19018  pmix_cv_cc_coverage="yes"
19019else
19020  pmix_cv_cc_coverage="no"
19021fi
19022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023fi
19024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_coverage" >&5
19025$as_echo "$pmix_cv_cc_coverage" >&6; }
19026
19027            if test "$pmix_cv_cc_coverage" = "yes" ; then
19028                PMIX_COVERAGE_FLAGS="--coverage"
19029                CLEANFILES="*.gcno ${CLEANFILES}"
19030                CONFIG_CLEAN_FILES="*.gcda *.gcov ${CONFIG_CLEAN_FILES}"
19031            else
19032                PMIX_COVERAGE_FLAGS="-ftest-coverage -fprofile-arcs"
19033                CLEANFILES="*.bb *.bbg ${CLEANFILES}"
19034                CONFIG_CLEAN_FILES="*.da *.*.gcov ${CONFIG_CLEAN_FILES}"
19035            fi
19036            CFLAGS="$CFLAGS_orig $PMIX_COVERAGE_FLAGS"
19037            LDFLAGS="$LDFLAGS_orig $PMIX_COVERAGE_FLAGS"
19038
19039
19040    # 1 is the variable name to be uniq-ized
19041    pmix_name=CFLAGS
19042
19043    # Go through each item in the variable and only keep the unique ones
19044
19045    pmix_count=0
19046    for val in ${CFLAGS}; do
19047        pmix_done=0
19048        pmix_i=1
19049        pmix_found=0
19050
19051        # Loop over every token we've seen so far
19052
19053        pmix_done="`expr $pmix_i \> $pmix_count`"
19054        while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do
19055
19056            # Have we seen this token already?  Prefix the comparison
19057            # with "x" so that "-Lfoo" values won't be cause an error.
19058
19059	    pmix_eval="expr x$val = x\$pmix_array_$pmix_i"
19060	    pmix_found=`eval $pmix_eval`
19061
19062            # Check the ending condition
19063
19064	    pmix_done="`expr $pmix_i \>= $pmix_count`"
19065
19066            # Increment the counter
19067
19068	    pmix_i="`expr $pmix_i + 1`"
19069        done
19070
19071        # Check for special cases where we do want to allow repeated
19072        # arguments (per
19073        # http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
19074        # and
19075        # https://github.com/open-mpi/ompi/issues/324).
19076
19077        case $val in
19078        -Xclang|-Xg)
19079                pmix_found=0
19080                pmix_i=`expr $pmix_count + 1`
19081                ;;
19082        -framework)
19083                pmix_found=0
19084                pmix_i=`expr $pmix_count + 1`
19085                ;;
19086        --param)
19087                pmix_found=0
19088                pmix_i=`expr $pmix_count + 1`
19089                ;;
19090        esac
19091
19092        # If we didn't find the token, add it to the "array"
19093
19094        if test "$pmix_found" = "0"; then
19095	    pmix_eval="pmix_array_$pmix_i=$val"
19096	    eval $pmix_eval
19097	    pmix_count="`expr $pmix_count + 1`"
19098        else
19099	    pmix_i="`expr $pmix_i - 1`"
19100        fi
19101    done
19102
19103    # Take all the items in the "array" and assemble them back into a
19104    # single variable
19105
19106    pmix_i=1
19107    pmix_done="`expr $pmix_i \> $pmix_count`"
19108    pmix_newval=
19109    while test "$pmix_done" = "0"; do
19110        pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\""
19111        eval $pmix_eval
19112
19113        pmix_eval="unset pmix_array_$pmix_i"
19114        eval $pmix_eval
19115
19116        pmix_done="`expr $pmix_i \>= $pmix_count`"
19117        pmix_i="`expr $pmix_i + 1`"
19118    done
19119
19120    # Done; do the assignment
19121
19122    pmix_newval="`echo $pmix_newval`"
19123    pmix_eval="$pmix_name=\"$pmix_newval\""
19124    eval $pmix_eval
19125
19126    # Clean up
19127
19128    unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count
19129
19130
19131    # 1 is the variable name to be uniq-ized
19132    pmix_name=LDFLAGS
19133
19134    # Go through each item in the variable and only keep the unique ones
19135
19136    pmix_count=0
19137    for val in ${LDFLAGS}; do
19138        pmix_done=0
19139        pmix_i=1
19140        pmix_found=0
19141
19142        # Loop over every token we've seen so far
19143
19144        pmix_done="`expr $pmix_i \> $pmix_count`"
19145        while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do
19146
19147            # Have we seen this token already?  Prefix the comparison
19148            # with "x" so that "-Lfoo" values won't be cause an error.
19149
19150	    pmix_eval="expr x$val = x\$pmix_array_$pmix_i"
19151	    pmix_found=`eval $pmix_eval`
19152
19153            # Check the ending condition
19154
19155	    pmix_done="`expr $pmix_i \>= $pmix_count`"
19156
19157            # Increment the counter
19158
19159	    pmix_i="`expr $pmix_i + 1`"
19160        done
19161
19162        # Check for special cases where we do want to allow repeated
19163        # arguments (per
19164        # http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
19165        # and
19166        # https://github.com/open-mpi/ompi/issues/324).
19167
19168        case $val in
19169        -Xclang|-Xg)
19170                pmix_found=0
19171                pmix_i=`expr $pmix_count + 1`
19172                ;;
19173        -framework)
19174                pmix_found=0
19175                pmix_i=`expr $pmix_count + 1`
19176                ;;
19177        --param)
19178                pmix_found=0
19179                pmix_i=`expr $pmix_count + 1`
19180                ;;
19181        esac
19182
19183        # If we didn't find the token, add it to the "array"
19184
19185        if test "$pmix_found" = "0"; then
19186	    pmix_eval="pmix_array_$pmix_i=$val"
19187	    eval $pmix_eval
19188	    pmix_count="`expr $pmix_count + 1`"
19189        else
19190	    pmix_i="`expr $pmix_i - 1`"
19191        fi
19192    done
19193
19194    # Take all the items in the "array" and assemble them back into a
19195    # single variable
19196
19197    pmix_i=1
19198    pmix_done="`expr $pmix_i \> $pmix_count`"
19199    pmix_newval=
19200    while test "$pmix_done" = "0"; do
19201        pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\""
19202        eval $pmix_eval
19203
19204        pmix_eval="unset pmix_array_$pmix_i"
19205        eval $pmix_eval
19206
19207        pmix_done="`expr $pmix_i \>= $pmix_count`"
19208        pmix_i="`expr $pmix_i + 1`"
19209    done
19210
19211    # Done; do the assignment
19212
19213    pmix_newval="`echo $pmix_newval`"
19214    pmix_eval="$pmix_name=\"$pmix_newval\""
19215    eval $pmix_eval
19216
19217    # Clean up
19218
19219    unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count
19220
19221            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $PMIX_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5
19222$as_echo "$as_me: WARNING: $PMIX_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;}
19223
19224            WANT_DEBUG=1
19225        else
19226            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Code coverage functionality is currently available only with GCC" >&5
19227$as_echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC" >&2;}
19228            as_fn_error $? "Configure: Cannot continue" "$LINENO" 5
19229       fi
19230    fi
19231
19232    # Do we want debugging?
19233    if test "$WANT_DEBUG" = "1" && test "$enable_debug_symbols" != "no" ; then
19234        CFLAGS="$CFLAGS -g"
19235
19236
19237    # 1 is the variable name to be uniq-ized
19238    pmix_name=CFLAGS
19239
19240    # Go through each item in the variable and only keep the unique ones
19241
19242    pmix_count=0
19243    for val in ${CFLAGS}; do
19244        pmix_done=0
19245        pmix_i=1
19246        pmix_found=0
19247
19248        # Loop over every token we've seen so far
19249
19250        pmix_done="`expr $pmix_i \> $pmix_count`"
19251        while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do
19252
19253            # Have we seen this token already?  Prefix the comparison
19254            # with "x" so that "-Lfoo" values won't be cause an error.
19255
19256	    pmix_eval="expr x$val = x\$pmix_array_$pmix_i"
19257	    pmix_found=`eval $pmix_eval`
19258
19259            # Check the ending condition
19260
19261	    pmix_done="`expr $pmix_i \>= $pmix_count`"
19262
19263            # Increment the counter
19264
19265	    pmix_i="`expr $pmix_i + 1`"
19266        done
19267
19268        # Check for special cases where we do want to allow repeated
19269        # arguments (per
19270        # http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
19271        # and
19272        # https://github.com/open-mpi/ompi/issues/324).
19273
19274        case $val in
19275        -Xclang|-Xg)
19276                pmix_found=0
19277                pmix_i=`expr $pmix_count + 1`
19278                ;;
19279        -framework)
19280                pmix_found=0
19281                pmix_i=`expr $pmix_count + 1`
19282                ;;
19283        --param)
19284                pmix_found=0
19285                pmix_i=`expr $pmix_count + 1`
19286                ;;
19287        esac
19288
19289        # If we didn't find the token, add it to the "array"
19290
19291        if test "$pmix_found" = "0"; then
19292	    pmix_eval="pmix_array_$pmix_i=$val"
19293	    eval $pmix_eval
19294	    pmix_count="`expr $pmix_count + 1`"
19295        else
19296	    pmix_i="`expr $pmix_i - 1`"
19297        fi
19298    done
19299
19300    # Take all the items in the "array" and assemble them back into a
19301    # single variable
19302
19303    pmix_i=1
19304    pmix_done="`expr $pmix_i \> $pmix_count`"
19305    pmix_newval=
19306    while test "$pmix_done" = "0"; do
19307        pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\""
19308        eval $pmix_eval
19309
19310        pmix_eval="unset pmix_array_$pmix_i"
19311        eval $pmix_eval
19312
19313        pmix_done="`expr $pmix_i \>= $pmix_count`"
19314        pmix_i="`expr $pmix_i + 1`"
19315    done
19316
19317    # Done; do the assignment
19318
19319    pmix_newval="`echo $pmix_newval`"
19320    pmix_eval="$pmix_name=\"$pmix_newval\""
19321    eval $pmix_eval
19322
19323    # Clean up
19324
19325    unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count
19326
19327        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -g has been added to CFLAGS (--enable-debug)" >&5
19328$as_echo "$as_me: WARNING: -g has been added to CFLAGS (--enable-debug)" >&2;}
19329    fi
19330
19331    # These flags are generally gcc-specific; even the
19332    # gcc-impersonating compilers won't accept them.
19333    PMIX_CFLAGS_BEFORE_PICKY="$CFLAGS"
19334
19335    if test $WANT_PICKY_COMPILER -eq 1; then
19336        CFLAGS_orig=$CFLAGS
19337        add=
19338
19339        # These flags are likely GCC-specific (or, more specifically,
19340        # we don't have general tests for each one, and we know they
19341        # work with all versions of GCC that we have used throughout
19342        # the years, so we'll keep them limited just to GCC).
19343        if test "$pmix_c_vendor" = "gnu" ; then
19344            add="$add -Wall -Wundef -Wno-long-long -Wsign-compare"
19345            add="$add -Wmissing-prototypes -Wstrict-prototypes"
19346            add="$add -Wcomment -pedantic"
19347        fi
19348
19349        # see if -Wno-long-double works...
19350        # Starting with GCC-4.4, the compiler complains about not
19351        # knowing -Wno-long-double, only if -Wstrict-prototypes is set, too.
19352        #
19353        # Actually, this is not real fix, as GCC will pass on any -Wno- flag,
19354        # have fun with the warning: -Wno-britney
19355        CFLAGS="$CFLAGS_orig $add -Wno-long-double -Wstrict-prototypes"
19356
19357        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-long-double" >&5
19358$as_echo_n "checking if $CC supports -Wno-long-double... " >&6; }
19359if ${pmix_cv_cc_wno_long_double+:} false; then :
19360  $as_echo_n "(cached) " >&6
19361else
19362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19363/* end confdefs.h.  */
19364
19365int
19366main ()
19367{
19368
19369  ;
19370  return 0;
19371}
19372_ACEOF
19373if ac_fn_c_try_compile "$LINENO"; then :
19374
19375                                                                    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376/* end confdefs.h.  */
19377
19378int
19379main ()
19380{
19381long double test;
19382  ;
19383  return 0;
19384}
19385_ACEOF
19386if ac_fn_c_try_compile "$LINENO"; then :
19387
19388                      pmix_cv_cc_wno_long_double="yes"
19389                      if test -s conftest.err ; then
19390                                                    for i in unknown invalid ignor unrecognized ; do
19391                              $GREP -iq $i conftest.err
19392                              if test "$?" = "0" ; then
19393                                  pmix_cv_cc_wno_long_double="no"
19394                                  break;
19395                              fi
19396                          done
19397                      fi
19398
19399else
19400  pmix_cv_cc_wno_long_double="no"
19401fi
19402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19403else
19404  pmix_cv_cc_wno_long_double="no"
19405fi
19406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19407
19408fi
19409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_wno_long_double" >&5
19410$as_echo "$pmix_cv_cc_wno_long_double" >&6; }
19411
19412        if test "$pmix_cv_cc_wno_long_double" = "yes" ; then
19413            add="$add -Wno-long-double"
19414        fi
19415
19416        # Per above, we know that this flag works with GCC / haven't
19417        # really tested it elsewhere.
19418        if test "$pmix_c_vendor" = "gnu" ; then
19419            add="$add -Werror-implicit-function-declaration "
19420        fi
19421
19422        CFLAGS="$CFLAGS_orig $add"
19423
19424    # 1 is the variable name to be uniq-ized
19425    pmix_name=CFLAGS
19426
19427    # Go through each item in the variable and only keep the unique ones
19428
19429    pmix_count=0
19430    for val in ${CFLAGS}; do
19431        pmix_done=0
19432        pmix_i=1
19433        pmix_found=0
19434
19435        # Loop over every token we've seen so far
19436
19437        pmix_done="`expr $pmix_i \> $pmix_count`"
19438        while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do
19439
19440            # Have we seen this token already?  Prefix the comparison
19441            # with "x" so that "-Lfoo" values won't be cause an error.
19442
19443	    pmix_eval="expr x$val = x\$pmix_array_$pmix_i"
19444	    pmix_found=`eval $pmix_eval`
19445
19446            # Check the ending condition
19447
19448	    pmix_done="`expr $pmix_i \>= $pmix_count`"
19449
19450            # Increment the counter
19451
19452	    pmix_i="`expr $pmix_i + 1`"
19453        done
19454
19455        # Check for special cases where we do want to allow repeated
19456        # arguments (per
19457        # http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
19458        # and
19459        # https://github.com/open-mpi/ompi/issues/324).
19460
19461        case $val in
19462        -Xclang|-Xg)
19463                pmix_found=0
19464                pmix_i=`expr $pmix_count + 1`
19465                ;;
19466        -framework)
19467                pmix_found=0
19468                pmix_i=`expr $pmix_count + 1`
19469                ;;
19470        --param)
19471                pmix_found=0
19472                pmix_i=`expr $pmix_count + 1`
19473                ;;
19474        esac
19475
19476        # If we didn't find the token, add it to the "array"
19477
19478        if test "$pmix_found" = "0"; then
19479	    pmix_eval="pmix_array_$pmix_i=$val"
19480	    eval $pmix_eval
19481	    pmix_count="`expr $pmix_count + 1`"
19482        else
19483	    pmix_i="`expr $pmix_i - 1`"
19484        fi
19485    done
19486
19487    # Take all the items in the "array" and assemble them back into a
19488    # single variable
19489
19490    pmix_i=1
19491    pmix_done="`expr $pmix_i \> $pmix_count`"
19492    pmix_newval=
19493    while test "$pmix_done" = "0"; do
19494        pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\""
19495        eval $pmix_eval
19496
19497        pmix_eval="unset pmix_array_$pmix_i"
19498        eval $pmix_eval
19499
19500        pmix_done="`expr $pmix_i \>= $pmix_count`"
19501        pmix_i="`expr $pmix_i + 1`"
19502    done
19503
19504    # Done; do the assignment
19505
19506    pmix_newval="`echo $pmix_newval`"
19507    pmix_eval="$pmix_name=\"$pmix_newval\""
19508    eval $pmix_eval
19509
19510    # Clean up
19511
19512    unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count
19513
19514        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CFLAGS (--enable-picky)" >&5
19515$as_echo "$as_me: WARNING: $add has been added to CFLAGS (--enable-picky)" >&2;}
19516        unset add
19517    fi
19518
19519    # See if this version of gcc allows -finline-functions and/or
19520    # -fno-strict-aliasing.  Even check the gcc-impersonating compilers.
19521    if test "$GCC" = "yes"; then
19522        CFLAGS_orig="$CFLAGS"
19523
19524        # Note: Some versions of clang (at least >= 3.5 -- perhaps
19525        # older versions, too?) will *warn* about -finline-functions,
19526        # but still allow it.  This is very annoying, so check for
19527        # that warning, too.  The clang warning looks like this:
19528        # clang: warning: optimization flag '-finline-functions' is not supported
19529        # clang: warning: argument unused during compilation: '-finline-functions'
19530        CFLAGS="$CFLAGS_orig -finline-functions"
19531        add=
19532        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -finline-functions" >&5
19533$as_echo_n "checking if $CC supports -finline-functions... " >&6; }
19534if ${pmix_cv_cc_finline_functions+:} false; then :
19535  $as_echo_n "(cached) " >&6
19536else
19537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19538/* end confdefs.h.  */
19539
19540int
19541main ()
19542{
19543
19544  ;
19545  return 0;
19546}
19547_ACEOF
19548if ac_fn_c_try_compile "$LINENO"; then :
19549  pmix_cv_cc_finline_functions="yes"
19550                                    if test -s conftest.err ; then
19551                                        for i in unused 'not supported' ; do
19552                                            if $GREP -iq "$i" conftest.err; then
19553                                                pmix_cv_cc_finline_functions="no"
19554                                                break;
19555                                            fi
19556                                        done
19557                                    fi
19558
19559else
19560  pmix_cv_cc_finline_functions="no"
19561fi
19562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563fi
19564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_finline_functions" >&5
19565$as_echo "$pmix_cv_cc_finline_functions" >&6; }
19566        if test "$pmix_cv_cc_finline_functions" = "yes" ; then
19567            add=" -finline-functions"
19568        fi
19569        CFLAGS="$CFLAGS_orig$add"
19570
19571        CFLAGS_orig="$CFLAGS"
19572        CFLAGS="$CFLAGS_orig -fno-strict-aliasing"
19573        add=
19574        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fno-strict-aliasing" >&5
19575$as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
19576if ${pmix_cv_cc_fno_strict_aliasing+:} false; then :
19577  $as_echo_n "(cached) " >&6
19578else
19579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19580/* end confdefs.h.  */
19581
19582int
19583main ()
19584{
19585
19586  ;
19587  return 0;
19588}
19589_ACEOF
19590if ac_fn_c_try_compile "$LINENO"; then :
19591  pmix_cv_cc_fno_strict_aliasing="yes"
19592else
19593  pmix_cv_cc_fno_strict_aliasing="no"
19594fi
19595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19596fi
19597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_fno_strict_aliasing" >&5
19598$as_echo "$pmix_cv_cc_fno_strict_aliasing" >&6; }
19599        if test "$pmix_cv_cc_fno_strict_aliasing" = "yes" ; then
19600            add=" -fno-strict-aliasing"
19601        fi
19602        CFLAGS="$CFLAGS_orig$add"
19603
19604
19605    # 1 is the variable name to be uniq-ized
19606    pmix_name=CFLAGS
19607
19608    # Go through each item in the variable and only keep the unique ones
19609
19610    pmix_count=0
19611    for val in ${CFLAGS}; do
19612        pmix_done=0
19613        pmix_i=1
19614        pmix_found=0
19615
19616        # Loop over every token we've seen so far
19617
19618        pmix_done="`expr $pmix_i \> $pmix_count`"
19619        while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do
19620
19621            # Have we seen this token already?  Prefix the comparison
19622            # with "x" so that "-Lfoo" values won't be cause an error.
19623
19624	    pmix_eval="expr x$val = x\$pmix_array_$pmix_i"
19625	    pmix_found=`eval $pmix_eval`
19626
19627            # Check the ending condition
19628
19629	    pmix_done="`expr $pmix_i \>= $pmix_count`"
19630
19631            # Increment the counter
19632
19633	    pmix_i="`expr $pmix_i + 1`"
19634        done
19635
19636        # Check for special cases where we do want to allow repeated
19637        # arguments (per
19638        # http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
19639        # and
19640        # https://github.com/open-mpi/ompi/issues/324).
19641
19642        case $val in
19643        -Xclang|-Xg)
19644                pmix_found=0
19645                pmix_i=`expr $pmix_count + 1`
19646                ;;
19647        -framework)
19648                pmix_found=0
19649                pmix_i=`expr $pmix_count + 1`
19650                ;;
19651        --param)
19652                pmix_found=0
19653                pmix_i=`expr $pmix_count + 1`
19654                ;;
19655        esac
19656
19657        # If we didn't find the token, add it to the "array"
19658
19659        if test "$pmix_found" = "0"; then
19660	    pmix_eval="pmix_array_$pmix_i=$val"
19661	    eval $pmix_eval
19662	    pmix_count="`expr $pmix_count + 1`"
19663        else
19664	    pmix_i="`expr $pmix_i - 1`"
19665        fi
19666    done
19667
19668    # Take all the items in the "array" and assemble them back into a
19669    # single variable
19670
19671    pmix_i=1
19672    pmix_done="`expr $pmix_i \> $pmix_count`"
19673    pmix_newval=
19674    while test "$pmix_done" = "0"; do
19675        pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\""
19676        eval $pmix_eval
19677
19678        pmix_eval="unset pmix_array_$pmix_i"
19679        eval $pmix_eval
19680
19681        pmix_done="`expr $pmix_i \>= $pmix_count`"
19682        pmix_i="`expr $pmix_i + 1`"
19683    done
19684
19685    # Done; do the assignment
19686
19687    pmix_newval="`echo $pmix_newval`"
19688    pmix_eval="$pmix_name=\"$pmix_newval\""
19689    eval $pmix_eval
19690
19691    # Clean up
19692
19693    unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count
19694
19695        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CFLAGS" >&5
19696$as_echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;}
19697        unset add
19698    fi
19699
19700    # Try to enable restrict keyword
19701    RESTRICT_CFLAGS=
19702    case "$pmix_c_vendor" in
19703        intel)
19704            RESTRICT_CFLAGS="-restrict"
19705        ;;
19706        sgi)
19707            RESTRICT_CFLAGS="-LANG:restrict=ON"
19708        ;;
19709    esac
19710    if test ! -z "$RESTRICT_CFLAGS" ; then
19711        CFLAGS_orig="$CFLAGS"
19712        CFLAGS="$CFLAGS_orig $RESTRICT_CFLAGS"
19713        add=
19714        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $RESTRICT_CFLAGS" >&5
19715$as_echo_n "checking if $CC supports $RESTRICT_CFLAGS... " >&6; }
19716if ${pmix_cv_cc_restrict_cflags+:} false; then :
19717  $as_echo_n "(cached) " >&6
19718else
19719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720/* end confdefs.h.  */
19721
19722int
19723main ()
19724{
19725
19726  ;
19727  return 0;
19728}
19729_ACEOF
19730if ac_fn_c_try_compile "$LINENO"; then :
19731  pmix_cv_cc_restrict_cflags="yes"
19732else
19733  pmix_cv_cc_restrict_cflags="no"
19734fi
19735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19736fi
19737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_restrict_cflags" >&5
19738$as_echo "$pmix_cv_cc_restrict_cflags" >&6; }
19739        if test "$pmix_cv_cc_restrict_cflags" = "yes" ; then
19740            add=" $RESTRICT_CFLAGS"
19741        fi
19742
19743        CFLAGS="${CFLAGS_orig}${add}"
19744
19745    # 1 is the variable name to be uniq-ized
19746    pmix_name=CFLAGS
19747
19748    # Go through each item in the variable and only keep the unique ones
19749
19750    pmix_count=0
19751    for val in ${CFLAGS}; do
19752        pmix_done=0
19753        pmix_i=1
19754        pmix_found=0
19755
19756        # Loop over every token we've seen so far
19757
19758        pmix_done="`expr $pmix_i \> $pmix_count`"
19759        while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do
19760
19761            # Have we seen this token already?  Prefix the comparison
19762            # with "x" so that "-Lfoo" values won't be cause an error.
19763
19764	    pmix_eval="expr x$val = x\$pmix_array_$pmix_i"
19765	    pmix_found=`eval $pmix_eval`
19766
19767            # Check the ending condition
19768
19769	    pmix_done="`expr $pmix_i \>= $pmix_count`"
19770
19771            # Increment the counter
19772
19773	    pmix_i="`expr $pmix_i + 1`"
19774        done
19775
19776        # Check for special cases where we do want to allow repeated
19777        # arguments (per
19778        # http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
19779        # and
19780        # https://github.com/open-mpi/ompi/issues/324).
19781
19782        case $val in
19783        -Xclang|-Xg)
19784                pmix_found=0
19785                pmix_i=`expr $pmix_count + 1`
19786                ;;
19787        -framework)
19788                pmix_found=0
19789                pmix_i=`expr $pmix_count + 1`
19790                ;;
19791        --param)
19792                pmix_found=0
19793                pmix_i=`expr $pmix_count + 1`
19794                ;;
19795        esac
19796
19797        # If we didn't find the token, add it to the "array"
19798
19799        if test "$pmix_found" = "0"; then
19800	    pmix_eval="pmix_array_$pmix_i=$val"
19801	    eval $pmix_eval
19802	    pmix_count="`expr $pmix_count + 1`"
19803        else
19804	    pmix_i="`expr $pmix_i - 1`"
19805        fi
19806    done
19807
19808    # Take all the items in the "array" and assemble them back into a
19809    # single variable
19810
19811    pmix_i=1
19812    pmix_done="`expr $pmix_i \> $pmix_count`"
19813    pmix_newval=
19814    while test "$pmix_done" = "0"; do
19815        pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\""
19816        eval $pmix_eval
19817
19818        pmix_eval="unset pmix_array_$pmix_i"
19819        eval $pmix_eval
19820
19821        pmix_done="`expr $pmix_i \>= $pmix_count`"
19822        pmix_i="`expr $pmix_i + 1`"
19823    done
19824
19825    # Done; do the assignment
19826
19827    pmix_newval="`echo $pmix_newval`"
19828    pmix_eval="$pmix_name=\"$pmix_newval\""
19829    eval $pmix_eval
19830
19831    # Clean up
19832
19833    unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count
19834
19835        if test "$add" != "" ; then
19836            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $add has been added to CFLAGS" >&5
19837$as_echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;}
19838        fi
19839        unset add
19840    fi
19841
19842    # see if the C compiler supports __builtin_expect
19843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __builtin_expect" >&5
19844$as_echo_n "checking if $CC supports __builtin_expect... " >&6; }
19845if ${pmix_cv_cc_supports___builtin_expect+:} false; then :
19846  $as_echo_n "(cached) " >&6
19847else
19848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19849/* end confdefs.h.  */
19850
19851int
19852main ()
19853{
19854void *ptr = (void*) 0;
19855           if (__builtin_expect (ptr != (void*) 0, 1)) return 0;
19856  ;
19857  return 0;
19858}
19859_ACEOF
19860if ac_fn_c_try_link "$LINENO"; then :
19861  pmix_cv_cc_supports___builtin_expect="yes"
19862else
19863  pmix_cv_cc_supports___builtin_expect="no"
19864fi
19865rm -f core conftest.err conftest.$ac_objext \
19866    conftest$ac_exeext conftest.$ac_ext
19867fi
19868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_supports___builtin_expect" >&5
19869$as_echo "$pmix_cv_cc_supports___builtin_expect" >&6; }
19870    if test "$pmix_cv_cc_supports___builtin_expect" = "yes" ; then
19871        have_cc_builtin_expect=1
19872    else
19873        have_cc_builtin_expect=0
19874    fi
19875
19876cat >>confdefs.h <<_ACEOF
19877#define PMIX_C_HAVE_BUILTIN_EXPECT $have_cc_builtin_expect
19878_ACEOF
19879
19880
19881    # see if the C compiler supports __builtin_prefetch
19882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __builtin_prefetch" >&5
19883$as_echo_n "checking if $CC supports __builtin_prefetch... " >&6; }
19884if ${pmix_cv_cc_supports___builtin_prefetch+:} false; then :
19885  $as_echo_n "(cached) " >&6
19886else
19887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19888/* end confdefs.h.  */
19889
19890int
19891main ()
19892{
19893int ptr;
19894           __builtin_prefetch(&ptr,0,0);
19895  ;
19896  return 0;
19897}
19898_ACEOF
19899if ac_fn_c_try_link "$LINENO"; then :
19900  pmix_cv_cc_supports___builtin_prefetch="yes"
19901else
19902  pmix_cv_cc_supports___builtin_prefetch="no"
19903fi
19904rm -f core conftest.err conftest.$ac_objext \
19905    conftest$ac_exeext conftest.$ac_ext
19906fi
19907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_supports___builtin_prefetch" >&5
19908$as_echo "$pmix_cv_cc_supports___builtin_prefetch" >&6; }
19909    if test "$pmix_cv_cc_supports___builtin_prefetch" = "yes" ; then
19910        have_cc_builtin_prefetch=1
19911    else
19912        have_cc_builtin_prefetch=0
19913    fi
19914
19915cat >>confdefs.h <<_ACEOF
19916#define PMIX_C_HAVE_BUILTIN_PREFETCH $have_cc_builtin_prefetch
19917_ACEOF
19918
19919
19920    # see if the C compiler supports __builtin_clz
19921    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports __builtin_clz" >&5
19922$as_echo_n "checking if $CC supports __builtin_clz... " >&6; }
19923if ${pmix_cv_cc_supports___builtin_clz+:} false; then :
19924  $as_echo_n "(cached) " >&6
19925else
19926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19927/* end confdefs.h.  */
19928
19929int
19930main ()
19931{
19932int value = 0xffff; /* we know we have 16 bits set */
19933             if ((8*sizeof(int)-16) != __builtin_clz(value)) return 0;
19934  ;
19935  return 0;
19936}
19937_ACEOF
19938if ac_fn_c_try_link "$LINENO"; then :
19939  pmix_cv_cc_supports___builtin_clz="yes"
19940else
19941  pmix_cv_cc_supports___builtin_clz="no"
19942fi
19943rm -f core conftest.err conftest.$ac_objext \
19944    conftest$ac_exeext conftest.$ac_ext
19945fi
19946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_cc_supports___builtin_clz" >&5
19947$as_echo "$pmix_cv_cc_supports___builtin_clz" >&6; }
19948    if test "$pmix_cv_cc_supports___builtin_clz" = "yes" ; then
19949        have_cc_builtin_clz=1
19950    else
19951        have_cc_builtin_clz=0
19952    fi
19953
19954cat >>confdefs.h <<_ACEOF
19955#define PMIX_C_HAVE_BUILTIN_CLZ $have_cc_builtin_clz
19956_ACEOF
19957
19958
19959    # Preload the optflags for the case where the user didn't specify
19960    # any.  If we're using GNU compilers, use -O3 (since it GNU
19961    # doesn't require all compilation units to be compiled with the
19962    # same level of optimization -- selecting a high level of
19963    # optimization is not prohibitive).  If we're using anything else,
19964    # be conservative and just use -O.
19965    #
19966    # Note: gcc-impersonating compilers accept -O3
19967    if test "$WANT_DEBUG" = "1"; then
19968        OPTFLAGS=
19969    else
19970        if test "$GCC" = yes; then
19971            OPTFLAGS="-O3"
19972        else
19973            OPTFLAGS="-O"
19974        fi
19975    fi
19976
19977
19978
19979# Modularize this setup so that sub-configure.in scripts can use this
19980# same setup code.
19981
19982##################################
19983# Optimization flags
19984##################################
19985
19986# If the user did not specify optimization flags, add some (the value
19987# from $OPTFLAGS)
19988
19989co_arg=""$PMIX_CFLAGS_BEFORE_PICKY""
19990co_found=0
19991for co_word in $co_arg; do
19992    # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs
19993    # for an explanation of [ and ] -- they m4 expand to [ and ]
19994    case $co_word in
19995    -g)              co_found=1 ;;
19996    -g[1-3])   co_found=1 ;;
19997    +K[0-5])   co_found=1 ;;
19998    -O)              co_found=1 ;;
19999    -O[0-9])   co_found=1 ;;
20000    -xO)             co_found=1 ;;
20001    -xO[0-9])  co_found=1 ;;
20002    -fast)           co_found=1 ;;
20003
20004    # The below Sun Studio flags require or
20005    # trigger -xO optimization
20006    -xvector*)     co_found=1 ;;
20007    -xdepend=yes)  co_found=1 ;;
20008
20009    esac
20010done
20011
20012if test "$co_found" = "0"; then
20013    co_result="$OPTFLAGS $co_arg"
20014else
20015    co_result="$co_arg"
20016fi
20017
20018# Clean up
20019
20020unset co_found co_word co_arg
20021
20022    PMIX_CFLAGS_BEFORE_PICKY="$co_result"
20023
20024    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimization flags" >&5
20025$as_echo_n "checking for C optimization flags... " >&6; }
20026
20027
20028# Modularize this setup so that sub-configure.in scripts can use this
20029# same setup code.
20030
20031##################################
20032# Optimization flags
20033##################################
20034
20035# If the user did not specify optimization flags, add some (the value
20036# from $OPTFLAGS)
20037
20038co_arg=""$CFLAGS""
20039co_found=0
20040for co_word in $co_arg; do
20041    # See http://www.gnu.org/software/autoconf/manual/html_node/Quadrigraphs.html#Quadrigraphs
20042    # for an explanation of [ and ] -- they m4 expand to [ and ]
20043    case $co_word in
20044    -g)              co_found=1 ;;
20045    -g[1-3])   co_found=1 ;;
20046    +K[0-5])   co_found=1 ;;
20047    -O)              co_found=1 ;;
20048    -O[0-9])   co_found=1 ;;
20049    -xO)             co_found=1 ;;
20050    -xO[0-9])  co_found=1 ;;
20051    -fast)           co_found=1 ;;
20052
20053    # The below Sun Studio flags require or
20054    # trigger -xO optimization
20055    -xvector*)     co_found=1 ;;
20056    -xdepend=yes)  co_found=1 ;;
20057
20058    esac
20059done
20060
20061if test "$co_found" = "0"; then
20062    co_result="$OPTFLAGS $co_arg"
20063else
20064    co_result="$co_arg"
20065fi
20066
20067# Clean up
20068
20069unset co_found co_word co_arg
20070
20071    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $co_result" >&5
20072$as_echo "$co_result" >&6; }
20073    CFLAGS="$co_result"
20074
20075    # Unwind the index
20076    pmix_scope_index=`expr $pmix_scope_index - 1`
20077    pmix_scope_test=`expr $pmix_scope_index \> 0`
20078    if test "$pmix_scope_test" = "0"; then
20079        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
20080$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
20081        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
20082$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
20083        as_fn_error $? "Cannot continue" "$LINENO" 5
20084    fi
20085
20086    # Get the variable names from that index
20087    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
20088    eval $pmix_str
20089
20090    # Iterate over all the variables and unset them all
20091    for pmix_var in $pmix_str; do
20092        unset $pmix_var
20093    done
20094
20095
20096
20097    #
20098    # Check for some types
20099    #
20100
20101    ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
20102if test "x$ac_cv_type_int8_t" = xyes; then :
20103
20104cat >>confdefs.h <<_ACEOF
20105#define HAVE_INT8_T 1
20106_ACEOF
20107
20108
20109fi
20110
20111    ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
20112if test "x$ac_cv_type_uint8_t" = xyes; then :
20113
20114cat >>confdefs.h <<_ACEOF
20115#define HAVE_UINT8_T 1
20116_ACEOF
20117
20118
20119fi
20120
20121    ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
20122if test "x$ac_cv_type_int16_t" = xyes; then :
20123
20124cat >>confdefs.h <<_ACEOF
20125#define HAVE_INT16_T 1
20126_ACEOF
20127
20128
20129fi
20130
20131    ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
20132if test "x$ac_cv_type_uint16_t" = xyes; then :
20133
20134cat >>confdefs.h <<_ACEOF
20135#define HAVE_UINT16_T 1
20136_ACEOF
20137
20138
20139fi
20140
20141    ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
20142if test "x$ac_cv_type_int32_t" = xyes; then :
20143
20144cat >>confdefs.h <<_ACEOF
20145#define HAVE_INT32_T 1
20146_ACEOF
20147
20148
20149fi
20150
20151    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
20152if test "x$ac_cv_type_uint32_t" = xyes; then :
20153
20154cat >>confdefs.h <<_ACEOF
20155#define HAVE_UINT32_T 1
20156_ACEOF
20157
20158
20159fi
20160
20161    ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
20162if test "x$ac_cv_type_int64_t" = xyes; then :
20163
20164cat >>confdefs.h <<_ACEOF
20165#define HAVE_INT64_T 1
20166_ACEOF
20167
20168
20169fi
20170
20171    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
20172if test "x$ac_cv_type_uint64_t" = xyes; then :
20173
20174cat >>confdefs.h <<_ACEOF
20175#define HAVE_UINT64_T 1
20176_ACEOF
20177
20178
20179fi
20180
20181    ac_fn_c_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default"
20182if test "x$ac_cv_type___int128" = xyes; then :
20183
20184cat >>confdefs.h <<_ACEOF
20185#define HAVE___INT128 1
20186_ACEOF
20187
20188
20189fi
20190
20191    ac_fn_c_check_type "$LINENO" "uint128_t" "ac_cv_type_uint128_t" "$ac_includes_default"
20192if test "x$ac_cv_type_uint128_t" = xyes; then :
20193
20194cat >>confdefs.h <<_ACEOF
20195#define HAVE_UINT128_T 1
20196_ACEOF
20197
20198
20199fi
20200
20201    ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
20202if test "x$ac_cv_type_long_long" = xyes; then :
20203
20204cat >>confdefs.h <<_ACEOF
20205#define HAVE_LONG_LONG 1
20206_ACEOF
20207
20208
20209fi
20210
20211
20212    ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
20213if test "x$ac_cv_type_intptr_t" = xyes; then :
20214
20215cat >>confdefs.h <<_ACEOF
20216#define HAVE_INTPTR_T 1
20217_ACEOF
20218
20219
20220fi
20221
20222    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
20223if test "x$ac_cv_type_uintptr_t" = xyes; then :
20224
20225cat >>confdefs.h <<_ACEOF
20226#define HAVE_UINTPTR_T 1
20227_ACEOF
20228
20229
20230fi
20231
20232    ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20233if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20234
20235cat >>confdefs.h <<_ACEOF
20236#define HAVE_PTRDIFF_T 1
20237_ACEOF
20238
20239
20240fi
20241
20242
20243    #
20244    # Check for type sizes
20245    #
20246
20247    # The cast to long int works around a bug in the HP C Compiler
20248# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20249# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20250# This bug is HP SR number 8606223364.
20251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
20252$as_echo_n "checking size of _Bool... " >&6; }
20253if ${ac_cv_sizeof__Bool+:} false; then :
20254  $as_echo_n "(cached) " >&6
20255else
20256  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then :
20257
20258else
20259  if test "$ac_cv_type__Bool" = yes; then
20260     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20262as_fn_error 77 "cannot compute sizeof (_Bool)
20263See \`config.log' for more details" "$LINENO" 5; }
20264   else
20265     ac_cv_sizeof__Bool=0
20266   fi
20267fi
20268
20269fi
20270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
20271$as_echo "$ac_cv_sizeof__Bool" >&6; }
20272
20273
20274
20275cat >>confdefs.h <<_ACEOF
20276#define SIZEOF__BOOL $ac_cv_sizeof__Bool
20277_ACEOF
20278
20279
20280    # The cast to long int works around a bug in the HP C Compiler
20281# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20282# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20283# This bug is HP SR number 8606223364.
20284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
20285$as_echo_n "checking size of char... " >&6; }
20286if ${ac_cv_sizeof_char+:} false; then :
20287  $as_echo_n "(cached) " >&6
20288else
20289  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
20290
20291else
20292  if test "$ac_cv_type_char" = yes; then
20293     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20295as_fn_error 77 "cannot compute sizeof (char)
20296See \`config.log' for more details" "$LINENO" 5; }
20297   else
20298     ac_cv_sizeof_char=0
20299   fi
20300fi
20301
20302fi
20303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
20304$as_echo "$ac_cv_sizeof_char" >&6; }
20305
20306
20307
20308cat >>confdefs.h <<_ACEOF
20309#define SIZEOF_CHAR $ac_cv_sizeof_char
20310_ACEOF
20311
20312
20313    # The cast to long int works around a bug in the HP C Compiler
20314# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20315# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20316# This bug is HP SR number 8606223364.
20317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
20318$as_echo_n "checking size of short... " >&6; }
20319if ${ac_cv_sizeof_short+:} false; then :
20320  $as_echo_n "(cached) " >&6
20321else
20322  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
20323
20324else
20325  if test "$ac_cv_type_short" = yes; then
20326     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20328as_fn_error 77 "cannot compute sizeof (short)
20329See \`config.log' for more details" "$LINENO" 5; }
20330   else
20331     ac_cv_sizeof_short=0
20332   fi
20333fi
20334
20335fi
20336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
20337$as_echo "$ac_cv_sizeof_short" >&6; }
20338
20339
20340
20341cat >>confdefs.h <<_ACEOF
20342#define SIZEOF_SHORT $ac_cv_sizeof_short
20343_ACEOF
20344
20345
20346    # The cast to long int works around a bug in the HP C Compiler
20347# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20348# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20349# This bug is HP SR number 8606223364.
20350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20351$as_echo_n "checking size of int... " >&6; }
20352if ${ac_cv_sizeof_int+:} false; then :
20353  $as_echo_n "(cached) " >&6
20354else
20355  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
20356
20357else
20358  if test "$ac_cv_type_int" = yes; then
20359     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20361as_fn_error 77 "cannot compute sizeof (int)
20362See \`config.log' for more details" "$LINENO" 5; }
20363   else
20364     ac_cv_sizeof_int=0
20365   fi
20366fi
20367
20368fi
20369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20370$as_echo "$ac_cv_sizeof_int" >&6; }
20371
20372
20373
20374cat >>confdefs.h <<_ACEOF
20375#define SIZEOF_INT $ac_cv_sizeof_int
20376_ACEOF
20377
20378
20379    # The cast to long int works around a bug in the HP C Compiler
20380# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20381# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20382# This bug is HP SR number 8606223364.
20383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
20384$as_echo_n "checking size of long... " >&6; }
20385if ${ac_cv_sizeof_long+:} false; then :
20386  $as_echo_n "(cached) " >&6
20387else
20388  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
20389
20390else
20391  if test "$ac_cv_type_long" = yes; then
20392     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20394as_fn_error 77 "cannot compute sizeof (long)
20395See \`config.log' for more details" "$LINENO" 5; }
20396   else
20397     ac_cv_sizeof_long=0
20398   fi
20399fi
20400
20401fi
20402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
20403$as_echo "$ac_cv_sizeof_long" >&6; }
20404
20405
20406
20407cat >>confdefs.h <<_ACEOF
20408#define SIZEOF_LONG $ac_cv_sizeof_long
20409_ACEOF
20410
20411
20412    if test "$ac_cv_type_long_long" = yes; then
20413        # The cast to long int works around a bug in the HP C Compiler
20414# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20415# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20416# This bug is HP SR number 8606223364.
20417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
20418$as_echo_n "checking size of long long... " >&6; }
20419if ${ac_cv_sizeof_long_long+:} false; then :
20420  $as_echo_n "(cached) " >&6
20421else
20422  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
20423
20424else
20425  if test "$ac_cv_type_long_long" = yes; then
20426     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20428as_fn_error 77 "cannot compute sizeof (long long)
20429See \`config.log' for more details" "$LINENO" 5; }
20430   else
20431     ac_cv_sizeof_long_long=0
20432   fi
20433fi
20434
20435fi
20436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
20437$as_echo "$ac_cv_sizeof_long_long" >&6; }
20438
20439
20440
20441cat >>confdefs.h <<_ACEOF
20442#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20443_ACEOF
20444
20445
20446    fi
20447    # The cast to long int works around a bug in the HP C Compiler
20448# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20449# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20450# This bug is HP SR number 8606223364.
20451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
20452$as_echo_n "checking size of float... " >&6; }
20453if ${ac_cv_sizeof_float+:} false; then :
20454  $as_echo_n "(cached) " >&6
20455else
20456  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
20457
20458else
20459  if test "$ac_cv_type_float" = yes; then
20460     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20462as_fn_error 77 "cannot compute sizeof (float)
20463See \`config.log' for more details" "$LINENO" 5; }
20464   else
20465     ac_cv_sizeof_float=0
20466   fi
20467fi
20468
20469fi
20470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
20471$as_echo "$ac_cv_sizeof_float" >&6; }
20472
20473
20474
20475cat >>confdefs.h <<_ACEOF
20476#define SIZEOF_FLOAT $ac_cv_sizeof_float
20477_ACEOF
20478
20479
20480    # The cast to long int works around a bug in the HP C Compiler
20481# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20482# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20483# This bug is HP SR number 8606223364.
20484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
20485$as_echo_n "checking size of double... " >&6; }
20486if ${ac_cv_sizeof_double+:} false; then :
20487  $as_echo_n "(cached) " >&6
20488else
20489  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
20490
20491else
20492  if test "$ac_cv_type_double" = yes; then
20493     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20495as_fn_error 77 "cannot compute sizeof (double)
20496See \`config.log' for more details" "$LINENO" 5; }
20497   else
20498     ac_cv_sizeof_double=0
20499   fi
20500fi
20501
20502fi
20503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
20504$as_echo "$ac_cv_sizeof_double" >&6; }
20505
20506
20507
20508cat >>confdefs.h <<_ACEOF
20509#define SIZEOF_DOUBLE $ac_cv_sizeof_double
20510_ACEOF
20511
20512
20513
20514    # The cast to long int works around a bug in the HP C Compiler
20515# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20516# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20517# This bug is HP SR number 8606223364.
20518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
20519$as_echo_n "checking size of void *... " >&6; }
20520if ${ac_cv_sizeof_void_p+:} false; then :
20521  $as_echo_n "(cached) " >&6
20522else
20523  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
20524
20525else
20526  if test "$ac_cv_type_void_p" = yes; then
20527     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20529as_fn_error 77 "cannot compute sizeof (void *)
20530See \`config.log' for more details" "$LINENO" 5; }
20531   else
20532     ac_cv_sizeof_void_p=0
20533   fi
20534fi
20535
20536fi
20537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
20538$as_echo "$ac_cv_sizeof_void_p" >&6; }
20539
20540
20541
20542cat >>confdefs.h <<_ACEOF
20543#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20544_ACEOF
20545
20546
20547    # The cast to long int works around a bug in the HP C Compiler
20548# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20549# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20550# This bug is HP SR number 8606223364.
20551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
20552$as_echo_n "checking size of size_t... " >&6; }
20553if ${ac_cv_sizeof_size_t+:} false; then :
20554  $as_echo_n "(cached) " >&6
20555else
20556  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
20557
20558else
20559  if test "$ac_cv_type_size_t" = yes; then
20560     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20562as_fn_error 77 "cannot compute sizeof (size_t)
20563See \`config.log' for more details" "$LINENO" 5; }
20564   else
20565     ac_cv_sizeof_size_t=0
20566   fi
20567fi
20568
20569fi
20570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
20571$as_echo "$ac_cv_sizeof_size_t" >&6; }
20572
20573
20574
20575cat >>confdefs.h <<_ACEOF
20576#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20577_ACEOF
20578
20579
20580    if test "$ac_cv_type_ssize_t" = yes ; then
20581        # The cast to long int works around a bug in the HP C Compiler
20582# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20583# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20584# This bug is HP SR number 8606223364.
20585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
20586$as_echo_n "checking size of ssize_t... " >&6; }
20587if ${ac_cv_sizeof_ssize_t+:} false; then :
20588  $as_echo_n "(cached) " >&6
20589else
20590  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
20591
20592else
20593  if test "$ac_cv_type_ssize_t" = yes; then
20594     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20596as_fn_error 77 "cannot compute sizeof (ssize_t)
20597See \`config.log' for more details" "$LINENO" 5; }
20598   else
20599     ac_cv_sizeof_ssize_t=0
20600   fi
20601fi
20602
20603fi
20604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
20605$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
20606
20607
20608
20609cat >>confdefs.h <<_ACEOF
20610#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
20611_ACEOF
20612
20613
20614    fi
20615    if test "$ac_cv_type_ptrdiff_t" = yes; then
20616        # The cast to long int works around a bug in the HP C Compiler
20617# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20618# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20619# This bug is HP SR number 8606223364.
20620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
20621$as_echo_n "checking size of ptrdiff_t... " >&6; }
20622if ${ac_cv_sizeof_ptrdiff_t+:} false; then :
20623  $as_echo_n "(cached) " >&6
20624else
20625  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t"        "$ac_includes_default"; then :
20626
20627else
20628  if test "$ac_cv_type_ptrdiff_t" = yes; then
20629     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20631as_fn_error 77 "cannot compute sizeof (ptrdiff_t)
20632See \`config.log' for more details" "$LINENO" 5; }
20633   else
20634     ac_cv_sizeof_ptrdiff_t=0
20635   fi
20636fi
20637
20638fi
20639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
20640$as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
20641
20642
20643
20644cat >>confdefs.h <<_ACEOF
20645#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
20646_ACEOF
20647
20648
20649    fi
20650    # The cast to long int works around a bug in the HP C Compiler
20651# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20652# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20653# This bug is HP SR number 8606223364.
20654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
20655$as_echo_n "checking size of wchar_t... " >&6; }
20656if ${ac_cv_sizeof_wchar_t+:} false; then :
20657  $as_echo_n "(cached) " >&6
20658else
20659  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t"        "$ac_includes_default"; then :
20660
20661else
20662  if test "$ac_cv_type_wchar_t" = yes; then
20663     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20665as_fn_error 77 "cannot compute sizeof (wchar_t)
20666See \`config.log' for more details" "$LINENO" 5; }
20667   else
20668     ac_cv_sizeof_wchar_t=0
20669   fi
20670fi
20671
20672fi
20673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
20674$as_echo "$ac_cv_sizeof_wchar_t" >&6; }
20675
20676
20677
20678cat >>confdefs.h <<_ACEOF
20679#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
20680_ACEOF
20681
20682
20683
20684    # The cast to long int works around a bug in the HP C Compiler
20685# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20686# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20687# This bug is HP SR number 8606223364.
20688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
20689$as_echo_n "checking size of pid_t... " >&6; }
20690if ${ac_cv_sizeof_pid_t+:} false; then :
20691  $as_echo_n "(cached) " >&6
20692else
20693  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t"        "$ac_includes_default"; then :
20694
20695else
20696  if test "$ac_cv_type_pid_t" = yes; then
20697     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20699as_fn_error 77 "cannot compute sizeof (pid_t)
20700See \`config.log' for more details" "$LINENO" 5; }
20701   else
20702     ac_cv_sizeof_pid_t=0
20703   fi
20704fi
20705
20706fi
20707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
20708$as_echo "$ac_cv_sizeof_pid_t" >&6; }
20709
20710
20711
20712cat >>confdefs.h <<_ACEOF
20713#define SIZEOF_PID_T $ac_cv_sizeof_pid_t
20714_ACEOF
20715
20716
20717
20718    #
20719    # Check for type alignments
20720    #
20721
20722
20723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of bool" >&5
20724$as_echo_n "checking alignment of bool... " >&6; }
20725if ${pmix_cv_c_align_bool+:} false; then :
20726  $as_echo_n "(cached) " >&6
20727else
20728  if test "$cross_compiling" = yes; then :
20729   # cross compile - do a non-executable test.  Trick
20730                                 # taken from the Autoconf 2.59c.  Switch to using
20731                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
20732                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_bool"        "$ac_includes_default
20733#include <stdbool.h>
20734
20735#ifndef offsetof
20736# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
20737#endif
20738typedef struct { char x; bool y; } pmix__type_alignof_;
20739"; then :
20740
20741else
20742  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
20743$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
20744                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
20745$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
20746                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
20747fi
20748
20749
20750else
20751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20752/* end confdefs.h.  */
20753$ac_includes_default
20754                                                    #include <stdbool.h>
20755int
20756main ()
20757{
20758
20759    struct foo { char c; bool x; };
20760    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
20761    int diff;
20762    FILE *f=fopen("conftestval", "w");
20763    if (!f) exit(1);
20764    diff = ((char *)&p->x) - ((char *)&p->c);
20765    free(p);
20766    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
20767    fclose(f);
20768
20769  ;
20770  return 0;
20771}
20772_ACEOF
20773if ac_fn_c_try_run "$LINENO"; then :
20774  pmix_cv_c_align_bool=`cat conftestval`
20775else
20776  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
20777$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
20778                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
20779$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
20780                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
20781fi
20782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20783  conftest.$ac_objext conftest.beam conftest.$ac_ext
20784fi
20785
20786fi
20787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_bool" >&5
20788$as_echo "$pmix_cv_c_align_bool" >&6; }
20789
20790
20791cat >>confdefs.h <<_ACEOF
20792#define PMIX_ALIGNMENT_BOOL $pmix_cv_c_align_bool
20793_ACEOF
20794
20795eval "PMIX_ALIGNMENT_BOOL=$pmix_cv_c_align_bool"
20796
20797rm -rf conftest*
20798
20799    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int8_t" >&5
20800$as_echo_n "checking alignment of int8_t... " >&6; }
20801if ${pmix_cv_c_align_int8_t+:} false; then :
20802  $as_echo_n "(cached) " >&6
20803else
20804  if test "$cross_compiling" = yes; then :
20805   # cross compile - do a non-executable test.  Trick
20806                                 # taken from the Autoconf 2.59c.  Switch to using
20807                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
20808                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_int8_t"        "$ac_includes_default
20809#include <stdbool.h>
20810
20811#ifndef offsetof
20812# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
20813#endif
20814typedef struct { char x; int8_t y; } pmix__type_alignof_;
20815"; then :
20816
20817else
20818  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
20819$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
20820                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
20821$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
20822                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
20823fi
20824
20825
20826else
20827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20828/* end confdefs.h.  */
20829$ac_includes_default
20830                                                    #include <stdbool.h>
20831int
20832main ()
20833{
20834
20835    struct foo { char c; int8_t x; };
20836    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
20837    int diff;
20838    FILE *f=fopen("conftestval", "w");
20839    if (!f) exit(1);
20840    diff = ((char *)&p->x) - ((char *)&p->c);
20841    free(p);
20842    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
20843    fclose(f);
20844
20845  ;
20846  return 0;
20847}
20848_ACEOF
20849if ac_fn_c_try_run "$LINENO"; then :
20850  pmix_cv_c_align_int8_t=`cat conftestval`
20851else
20852  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
20853$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
20854                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
20855$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
20856                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
20857fi
20858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20859  conftest.$ac_objext conftest.beam conftest.$ac_ext
20860fi
20861
20862fi
20863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_int8_t" >&5
20864$as_echo "$pmix_cv_c_align_int8_t" >&6; }
20865
20866
20867cat >>confdefs.h <<_ACEOF
20868#define PMIX_ALIGNMENT_INT8 $pmix_cv_c_align_int8_t
20869_ACEOF
20870
20871eval "PMIX_ALIGNMENT_INT8=$pmix_cv_c_align_int8_t"
20872
20873rm -rf conftest*
20874
20875    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int16_t" >&5
20876$as_echo_n "checking alignment of int16_t... " >&6; }
20877if ${pmix_cv_c_align_int16_t+:} false; then :
20878  $as_echo_n "(cached) " >&6
20879else
20880  if test "$cross_compiling" = yes; then :
20881   # cross compile - do a non-executable test.  Trick
20882                                 # taken from the Autoconf 2.59c.  Switch to using
20883                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
20884                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_int16_t"        "$ac_includes_default
20885#include <stdbool.h>
20886
20887#ifndef offsetof
20888# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
20889#endif
20890typedef struct { char x; int16_t y; } pmix__type_alignof_;
20891"; then :
20892
20893else
20894  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
20895$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
20896                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
20897$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
20898                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
20899fi
20900
20901
20902else
20903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20904/* end confdefs.h.  */
20905$ac_includes_default
20906                                                    #include <stdbool.h>
20907int
20908main ()
20909{
20910
20911    struct foo { char c; int16_t x; };
20912    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
20913    int diff;
20914    FILE *f=fopen("conftestval", "w");
20915    if (!f) exit(1);
20916    diff = ((char *)&p->x) - ((char *)&p->c);
20917    free(p);
20918    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
20919    fclose(f);
20920
20921  ;
20922  return 0;
20923}
20924_ACEOF
20925if ac_fn_c_try_run "$LINENO"; then :
20926  pmix_cv_c_align_int16_t=`cat conftestval`
20927else
20928  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
20929$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
20930                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
20931$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
20932                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
20933fi
20934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20935  conftest.$ac_objext conftest.beam conftest.$ac_ext
20936fi
20937
20938fi
20939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_int16_t" >&5
20940$as_echo "$pmix_cv_c_align_int16_t" >&6; }
20941
20942
20943cat >>confdefs.h <<_ACEOF
20944#define PMIX_ALIGNMENT_INT16 $pmix_cv_c_align_int16_t
20945_ACEOF
20946
20947eval "PMIX_ALIGNMENT_INT16=$pmix_cv_c_align_int16_t"
20948
20949rm -rf conftest*
20950
20951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int32_t" >&5
20952$as_echo_n "checking alignment of int32_t... " >&6; }
20953if ${pmix_cv_c_align_int32_t+:} false; then :
20954  $as_echo_n "(cached) " >&6
20955else
20956  if test "$cross_compiling" = yes; then :
20957   # cross compile - do a non-executable test.  Trick
20958                                 # taken from the Autoconf 2.59c.  Switch to using
20959                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
20960                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_int32_t"        "$ac_includes_default
20961#include <stdbool.h>
20962
20963#ifndef offsetof
20964# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
20965#endif
20966typedef struct { char x; int32_t y; } pmix__type_alignof_;
20967"; then :
20968
20969else
20970  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
20971$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
20972                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
20973$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
20974                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
20975fi
20976
20977
20978else
20979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20980/* end confdefs.h.  */
20981$ac_includes_default
20982                                                    #include <stdbool.h>
20983int
20984main ()
20985{
20986
20987    struct foo { char c; int32_t x; };
20988    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
20989    int diff;
20990    FILE *f=fopen("conftestval", "w");
20991    if (!f) exit(1);
20992    diff = ((char *)&p->x) - ((char *)&p->c);
20993    free(p);
20994    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
20995    fclose(f);
20996
20997  ;
20998  return 0;
20999}
21000_ACEOF
21001if ac_fn_c_try_run "$LINENO"; then :
21002  pmix_cv_c_align_int32_t=`cat conftestval`
21003else
21004  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21005$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21006                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21007$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21008                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
21009fi
21010rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21011  conftest.$ac_objext conftest.beam conftest.$ac_ext
21012fi
21013
21014fi
21015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_int32_t" >&5
21016$as_echo "$pmix_cv_c_align_int32_t" >&6; }
21017
21018
21019cat >>confdefs.h <<_ACEOF
21020#define PMIX_ALIGNMENT_INT32 $pmix_cv_c_align_int32_t
21021_ACEOF
21022
21023eval "PMIX_ALIGNMENT_INT32=$pmix_cv_c_align_int32_t"
21024
21025rm -rf conftest*
21026
21027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int64_t" >&5
21028$as_echo_n "checking alignment of int64_t... " >&6; }
21029if ${pmix_cv_c_align_int64_t+:} false; then :
21030  $as_echo_n "(cached) " >&6
21031else
21032  if test "$cross_compiling" = yes; then :
21033   # cross compile - do a non-executable test.  Trick
21034                                 # taken from the Autoconf 2.59c.  Switch to using
21035                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
21036                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_int64_t"        "$ac_includes_default
21037#include <stdbool.h>
21038
21039#ifndef offsetof
21040# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21041#endif
21042typedef struct { char x; int64_t y; } pmix__type_alignof_;
21043"; then :
21044
21045else
21046  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21047$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21048                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21049$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21050                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
21051fi
21052
21053
21054else
21055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21056/* end confdefs.h.  */
21057$ac_includes_default
21058                                                    #include <stdbool.h>
21059int
21060main ()
21061{
21062
21063    struct foo { char c; int64_t x; };
21064    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
21065    int diff;
21066    FILE *f=fopen("conftestval", "w");
21067    if (!f) exit(1);
21068    diff = ((char *)&p->x) - ((char *)&p->c);
21069    free(p);
21070    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
21071    fclose(f);
21072
21073  ;
21074  return 0;
21075}
21076_ACEOF
21077if ac_fn_c_try_run "$LINENO"; then :
21078  pmix_cv_c_align_int64_t=`cat conftestval`
21079else
21080  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21081$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21082                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21083$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21084                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
21085fi
21086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21087  conftest.$ac_objext conftest.beam conftest.$ac_ext
21088fi
21089
21090fi
21091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_int64_t" >&5
21092$as_echo "$pmix_cv_c_align_int64_t" >&6; }
21093
21094
21095cat >>confdefs.h <<_ACEOF
21096#define PMIX_ALIGNMENT_INT64 $pmix_cv_c_align_int64_t
21097_ACEOF
21098
21099eval "PMIX_ALIGNMENT_INT64=$pmix_cv_c_align_int64_t"
21100
21101rm -rf conftest*
21102
21103    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of char" >&5
21104$as_echo_n "checking alignment of char... " >&6; }
21105if ${pmix_cv_c_align_char+:} false; then :
21106  $as_echo_n "(cached) " >&6
21107else
21108  if test "$cross_compiling" = yes; then :
21109   # cross compile - do a non-executable test.  Trick
21110                                 # taken from the Autoconf 2.59c.  Switch to using
21111                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
21112                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_char"        "$ac_includes_default
21113#include <stdbool.h>
21114
21115#ifndef offsetof
21116# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21117#endif
21118typedef struct { char x; char y; } pmix__type_alignof_;
21119"; then :
21120
21121else
21122  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21123$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21124                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21125$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21126                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
21127fi
21128
21129
21130else
21131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21132/* end confdefs.h.  */
21133$ac_includes_default
21134                                                    #include <stdbool.h>
21135int
21136main ()
21137{
21138
21139    struct foo { char c; char x; };
21140    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
21141    int diff;
21142    FILE *f=fopen("conftestval", "w");
21143    if (!f) exit(1);
21144    diff = ((char *)&p->x) - ((char *)&p->c);
21145    free(p);
21146    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
21147    fclose(f);
21148
21149  ;
21150  return 0;
21151}
21152_ACEOF
21153if ac_fn_c_try_run "$LINENO"; then :
21154  pmix_cv_c_align_char=`cat conftestval`
21155else
21156  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21157$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21158                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21159$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21160                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
21161fi
21162rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21163  conftest.$ac_objext conftest.beam conftest.$ac_ext
21164fi
21165
21166fi
21167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_char" >&5
21168$as_echo "$pmix_cv_c_align_char" >&6; }
21169
21170
21171cat >>confdefs.h <<_ACEOF
21172#define PMIX_ALIGNMENT_CHAR $pmix_cv_c_align_char
21173_ACEOF
21174
21175eval "PMIX_ALIGNMENT_CHAR=$pmix_cv_c_align_char"
21176
21177rm -rf conftest*
21178
21179    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of short" >&5
21180$as_echo_n "checking alignment of short... " >&6; }
21181if ${pmix_cv_c_align_short+:} false; then :
21182  $as_echo_n "(cached) " >&6
21183else
21184  if test "$cross_compiling" = yes; then :
21185   # cross compile - do a non-executable test.  Trick
21186                                 # taken from the Autoconf 2.59c.  Switch to using
21187                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
21188                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_short"        "$ac_includes_default
21189#include <stdbool.h>
21190
21191#ifndef offsetof
21192# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21193#endif
21194typedef struct { char x; short y; } pmix__type_alignof_;
21195"; then :
21196
21197else
21198  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21199$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21200                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21201$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21202                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
21203fi
21204
21205
21206else
21207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21208/* end confdefs.h.  */
21209$ac_includes_default
21210                                                    #include <stdbool.h>
21211int
21212main ()
21213{
21214
21215    struct foo { char c; short x; };
21216    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
21217    int diff;
21218    FILE *f=fopen("conftestval", "w");
21219    if (!f) exit(1);
21220    diff = ((char *)&p->x) - ((char *)&p->c);
21221    free(p);
21222    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
21223    fclose(f);
21224
21225  ;
21226  return 0;
21227}
21228_ACEOF
21229if ac_fn_c_try_run "$LINENO"; then :
21230  pmix_cv_c_align_short=`cat conftestval`
21231else
21232  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21233$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21234                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21235$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21236                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
21237fi
21238rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21239  conftest.$ac_objext conftest.beam conftest.$ac_ext
21240fi
21241
21242fi
21243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_short" >&5
21244$as_echo "$pmix_cv_c_align_short" >&6; }
21245
21246
21247cat >>confdefs.h <<_ACEOF
21248#define PMIX_ALIGNMENT_SHORT $pmix_cv_c_align_short
21249_ACEOF
21250
21251eval "PMIX_ALIGNMENT_SHORT=$pmix_cv_c_align_short"
21252
21253rm -rf conftest*
21254
21255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of wchar_t" >&5
21256$as_echo_n "checking alignment of wchar_t... " >&6; }
21257if ${pmix_cv_c_align_wchar_t+:} false; then :
21258  $as_echo_n "(cached) " >&6
21259else
21260  if test "$cross_compiling" = yes; then :
21261   # cross compile - do a non-executable test.  Trick
21262                                 # taken from the Autoconf 2.59c.  Switch to using
21263                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
21264                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_wchar_t"        "$ac_includes_default
21265#include <stdbool.h>
21266
21267#ifndef offsetof
21268# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21269#endif
21270typedef struct { char x; wchar_t y; } pmix__type_alignof_;
21271"; then :
21272
21273else
21274  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21275$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21276                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21277$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21278                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
21279fi
21280
21281
21282else
21283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21284/* end confdefs.h.  */
21285$ac_includes_default
21286                                                    #include <stdbool.h>
21287int
21288main ()
21289{
21290
21291    struct foo { char c; wchar_t x; };
21292    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
21293    int diff;
21294    FILE *f=fopen("conftestval", "w");
21295    if (!f) exit(1);
21296    diff = ((char *)&p->x) - ((char *)&p->c);
21297    free(p);
21298    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
21299    fclose(f);
21300
21301  ;
21302  return 0;
21303}
21304_ACEOF
21305if ac_fn_c_try_run "$LINENO"; then :
21306  pmix_cv_c_align_wchar_t=`cat conftestval`
21307else
21308  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21309$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21310                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21311$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21312                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
21313fi
21314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21315  conftest.$ac_objext conftest.beam conftest.$ac_ext
21316fi
21317
21318fi
21319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_wchar_t" >&5
21320$as_echo "$pmix_cv_c_align_wchar_t" >&6; }
21321
21322
21323cat >>confdefs.h <<_ACEOF
21324#define PMIX_ALIGNMENT_WCHAR $pmix_cv_c_align_wchar_t
21325_ACEOF
21326
21327eval "PMIX_ALIGNMENT_WCHAR=$pmix_cv_c_align_wchar_t"
21328
21329rm -rf conftest*
21330
21331    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of int" >&5
21332$as_echo_n "checking alignment of int... " >&6; }
21333if ${pmix_cv_c_align_int+:} false; then :
21334  $as_echo_n "(cached) " >&6
21335else
21336  if test "$cross_compiling" = yes; then :
21337   # cross compile - do a non-executable test.  Trick
21338                                 # taken from the Autoconf 2.59c.  Switch to using
21339                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
21340                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_int"        "$ac_includes_default
21341#include <stdbool.h>
21342
21343#ifndef offsetof
21344# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21345#endif
21346typedef struct { char x; int y; } pmix__type_alignof_;
21347"; then :
21348
21349else
21350  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21351$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21352                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21353$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21354                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
21355fi
21356
21357
21358else
21359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21360/* end confdefs.h.  */
21361$ac_includes_default
21362                                                    #include <stdbool.h>
21363int
21364main ()
21365{
21366
21367    struct foo { char c; int x; };
21368    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
21369    int diff;
21370    FILE *f=fopen("conftestval", "w");
21371    if (!f) exit(1);
21372    diff = ((char *)&p->x) - ((char *)&p->c);
21373    free(p);
21374    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
21375    fclose(f);
21376
21377  ;
21378  return 0;
21379}
21380_ACEOF
21381if ac_fn_c_try_run "$LINENO"; then :
21382  pmix_cv_c_align_int=`cat conftestval`
21383else
21384  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21385$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21386                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21387$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21388                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
21389fi
21390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21391  conftest.$ac_objext conftest.beam conftest.$ac_ext
21392fi
21393
21394fi
21395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_int" >&5
21396$as_echo "$pmix_cv_c_align_int" >&6; }
21397
21398
21399cat >>confdefs.h <<_ACEOF
21400#define PMIX_ALIGNMENT_INT $pmix_cv_c_align_int
21401_ACEOF
21402
21403eval "PMIX_ALIGNMENT_INT=$pmix_cv_c_align_int"
21404
21405rm -rf conftest*
21406
21407    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
21408$as_echo_n "checking alignment of long... " >&6; }
21409if ${pmix_cv_c_align_long+:} false; then :
21410  $as_echo_n "(cached) " >&6
21411else
21412  if test "$cross_compiling" = yes; then :
21413   # cross compile - do a non-executable test.  Trick
21414                                 # taken from the Autoconf 2.59c.  Switch to using
21415                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
21416                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_long"        "$ac_includes_default
21417#include <stdbool.h>
21418
21419#ifndef offsetof
21420# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21421#endif
21422typedef struct { char x; long y; } pmix__type_alignof_;
21423"; then :
21424
21425else
21426  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21427$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21428                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21429$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21430                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
21431fi
21432
21433
21434else
21435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436/* end confdefs.h.  */
21437$ac_includes_default
21438                                                    #include <stdbool.h>
21439int
21440main ()
21441{
21442
21443    struct foo { char c; long x; };
21444    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
21445    int diff;
21446    FILE *f=fopen("conftestval", "w");
21447    if (!f) exit(1);
21448    diff = ((char *)&p->x) - ((char *)&p->c);
21449    free(p);
21450    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
21451    fclose(f);
21452
21453  ;
21454  return 0;
21455}
21456_ACEOF
21457if ac_fn_c_try_run "$LINENO"; then :
21458  pmix_cv_c_align_long=`cat conftestval`
21459else
21460  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21461$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21462                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21463$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21464                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
21465fi
21466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21467  conftest.$ac_objext conftest.beam conftest.$ac_ext
21468fi
21469
21470fi
21471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_long" >&5
21472$as_echo "$pmix_cv_c_align_long" >&6; }
21473
21474
21475cat >>confdefs.h <<_ACEOF
21476#define PMIX_ALIGNMENT_LONG $pmix_cv_c_align_long
21477_ACEOF
21478
21479eval "PMIX_ALIGNMENT_LONG=$pmix_cv_c_align_long"
21480
21481rm -rf conftest*
21482    if test "$ac_cv_type_long_long" = yes; then
21483
21484    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long long" >&5
21485$as_echo_n "checking alignment of long long... " >&6; }
21486if ${pmix_cv_c_align_long_long+:} false; then :
21487  $as_echo_n "(cached) " >&6
21488else
21489  if test "$cross_compiling" = yes; then :
21490   # cross compile - do a non-executable test.  Trick
21491                                 # taken from the Autoconf 2.59c.  Switch to using
21492                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
21493                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_long_long"        "$ac_includes_default
21494#include <stdbool.h>
21495
21496#ifndef offsetof
21497# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21498#endif
21499typedef struct { char x; long long y; } pmix__type_alignof_;
21500"; then :
21501
21502else
21503  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21504$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21505                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21506$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21507                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
21508fi
21509
21510
21511else
21512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21513/* end confdefs.h.  */
21514$ac_includes_default
21515                                                    #include <stdbool.h>
21516int
21517main ()
21518{
21519
21520    struct foo { char c; long long x; };
21521    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
21522    int diff;
21523    FILE *f=fopen("conftestval", "w");
21524    if (!f) exit(1);
21525    diff = ((char *)&p->x) - ((char *)&p->c);
21526    free(p);
21527    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
21528    fclose(f);
21529
21530  ;
21531  return 0;
21532}
21533_ACEOF
21534if ac_fn_c_try_run "$LINENO"; then :
21535  pmix_cv_c_align_long_long=`cat conftestval`
21536else
21537  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21538$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21539                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21540$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21541                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
21542fi
21543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21544  conftest.$ac_objext conftest.beam conftest.$ac_ext
21545fi
21546
21547fi
21548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_long_long" >&5
21549$as_echo "$pmix_cv_c_align_long_long" >&6; }
21550
21551
21552cat >>confdefs.h <<_ACEOF
21553#define PMIX_ALIGNMENT_LONG_LONG $pmix_cv_c_align_long_long
21554_ACEOF
21555
21556eval "PMIX_ALIGNMENT_LONG_LONG=$pmix_cv_c_align_long_long"
21557
21558rm -rf conftest*
21559    fi
21560
21561    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of float" >&5
21562$as_echo_n "checking alignment of float... " >&6; }
21563if ${pmix_cv_c_align_float+:} false; then :
21564  $as_echo_n "(cached) " >&6
21565else
21566  if test "$cross_compiling" = yes; then :
21567   # cross compile - do a non-executable test.  Trick
21568                                 # taken from the Autoconf 2.59c.  Switch to using
21569                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
21570                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_float"        "$ac_includes_default
21571#include <stdbool.h>
21572
21573#ifndef offsetof
21574# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21575#endif
21576typedef struct { char x; float y; } pmix__type_alignof_;
21577"; then :
21578
21579else
21580  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21581$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21582                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21583$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21584                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
21585fi
21586
21587
21588else
21589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21590/* end confdefs.h.  */
21591$ac_includes_default
21592                                                    #include <stdbool.h>
21593int
21594main ()
21595{
21596
21597    struct foo { char c; float x; };
21598    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
21599    int diff;
21600    FILE *f=fopen("conftestval", "w");
21601    if (!f) exit(1);
21602    diff = ((char *)&p->x) - ((char *)&p->c);
21603    free(p);
21604    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
21605    fclose(f);
21606
21607  ;
21608  return 0;
21609}
21610_ACEOF
21611if ac_fn_c_try_run "$LINENO"; then :
21612  pmix_cv_c_align_float=`cat conftestval`
21613else
21614  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21615$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21616                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21617$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21618                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
21619fi
21620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21621  conftest.$ac_objext conftest.beam conftest.$ac_ext
21622fi
21623
21624fi
21625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_float" >&5
21626$as_echo "$pmix_cv_c_align_float" >&6; }
21627
21628
21629cat >>confdefs.h <<_ACEOF
21630#define PMIX_ALIGNMENT_FLOAT $pmix_cv_c_align_float
21631_ACEOF
21632
21633eval "PMIX_ALIGNMENT_FLOAT=$pmix_cv_c_align_float"
21634
21635rm -rf conftest*
21636
21637    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
21638$as_echo_n "checking alignment of double... " >&6; }
21639if ${pmix_cv_c_align_double+:} false; then :
21640  $as_echo_n "(cached) " >&6
21641else
21642  if test "$cross_compiling" = yes; then :
21643   # cross compile - do a non-executable test.  Trick
21644                                 # taken from the Autoconf 2.59c.  Switch to using
21645                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
21646                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_double"        "$ac_includes_default
21647#include <stdbool.h>
21648
21649#ifndef offsetof
21650# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21651#endif
21652typedef struct { char x; double y; } pmix__type_alignof_;
21653"; then :
21654
21655else
21656  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21657$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21658                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21659$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21660                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
21661fi
21662
21663
21664else
21665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21666/* end confdefs.h.  */
21667$ac_includes_default
21668                                                    #include <stdbool.h>
21669int
21670main ()
21671{
21672
21673    struct foo { char c; double x; };
21674    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
21675    int diff;
21676    FILE *f=fopen("conftestval", "w");
21677    if (!f) exit(1);
21678    diff = ((char *)&p->x) - ((char *)&p->c);
21679    free(p);
21680    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
21681    fclose(f);
21682
21683  ;
21684  return 0;
21685}
21686_ACEOF
21687if ac_fn_c_try_run "$LINENO"; then :
21688  pmix_cv_c_align_double=`cat conftestval`
21689else
21690  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21691$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21692                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21693$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21694                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
21695fi
21696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21697  conftest.$ac_objext conftest.beam conftest.$ac_ext
21698fi
21699
21700fi
21701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_double" >&5
21702$as_echo "$pmix_cv_c_align_double" >&6; }
21703
21704
21705cat >>confdefs.h <<_ACEOF
21706#define PMIX_ALIGNMENT_DOUBLE $pmix_cv_c_align_double
21707_ACEOF
21708
21709eval "PMIX_ALIGNMENT_DOUBLE=$pmix_cv_c_align_double"
21710
21711rm -rf conftest*
21712    if test "$ac_cv_type_long_double" = yes; then
21713
21714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of long double" >&5
21715$as_echo_n "checking alignment of long double... " >&6; }
21716if ${pmix_cv_c_align_long_double+:} false; then :
21717  $as_echo_n "(cached) " >&6
21718else
21719  if test "$cross_compiling" = yes; then :
21720   # cross compile - do a non-executable test.  Trick
21721                                 # taken from the Autoconf 2.59c.  Switch to using
21722                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
21723                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_long_double"        "$ac_includes_default
21724#include <stdbool.h>
21725
21726#ifndef offsetof
21727# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21728#endif
21729typedef struct { char x; long double y; } pmix__type_alignof_;
21730"; then :
21731
21732else
21733  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21734$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21735                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21736$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21737                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
21738fi
21739
21740
21741else
21742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21743/* end confdefs.h.  */
21744$ac_includes_default
21745                                                    #include <stdbool.h>
21746int
21747main ()
21748{
21749
21750    struct foo { char c; long double x; };
21751    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
21752    int diff;
21753    FILE *f=fopen("conftestval", "w");
21754    if (!f) exit(1);
21755    diff = ((char *)&p->x) - ((char *)&p->c);
21756    free(p);
21757    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
21758    fclose(f);
21759
21760  ;
21761  return 0;
21762}
21763_ACEOF
21764if ac_fn_c_try_run "$LINENO"; then :
21765  pmix_cv_c_align_long_double=`cat conftestval`
21766else
21767  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21768$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21769                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21770$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21771                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
21772fi
21773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21774  conftest.$ac_objext conftest.beam conftest.$ac_ext
21775fi
21776
21777fi
21778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_long_double" >&5
21779$as_echo "$pmix_cv_c_align_long_double" >&6; }
21780
21781
21782cat >>confdefs.h <<_ACEOF
21783#define PMIX_ALIGNMENT_LONG_DOUBLE $pmix_cv_c_align_long_double
21784_ACEOF
21785
21786eval "PMIX_ALIGNMENT_LONG_DOUBLE=$pmix_cv_c_align_long_double"
21787
21788rm -rf conftest*
21789    fi
21790
21791    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
21792$as_echo_n "checking alignment of void *... " >&6; }
21793if ${pmix_cv_c_align_void_p+:} false; then :
21794  $as_echo_n "(cached) " >&6
21795else
21796  if test "$cross_compiling" = yes; then :
21797   # cross compile - do a non-executable test.  Trick
21798                                 # taken from the Autoconf 2.59c.  Switch to using
21799                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
21800                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_void_p"        "$ac_includes_default
21801#include <stdbool.h>
21802
21803#ifndef offsetof
21804# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21805#endif
21806typedef struct { char x; void * y; } pmix__type_alignof_;
21807"; then :
21808
21809else
21810  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21811$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21812                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21813$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21814                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
21815fi
21816
21817
21818else
21819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21820/* end confdefs.h.  */
21821$ac_includes_default
21822                                                    #include <stdbool.h>
21823int
21824main ()
21825{
21826
21827    struct foo { char c; void * x; };
21828    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
21829    int diff;
21830    FILE *f=fopen("conftestval", "w");
21831    if (!f) exit(1);
21832    diff = ((char *)&p->x) - ((char *)&p->c);
21833    free(p);
21834    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
21835    fclose(f);
21836
21837  ;
21838  return 0;
21839}
21840_ACEOF
21841if ac_fn_c_try_run "$LINENO"; then :
21842  pmix_cv_c_align_void_p=`cat conftestval`
21843else
21844  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21845$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21846                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21847$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21848                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
21849fi
21850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21851  conftest.$ac_objext conftest.beam conftest.$ac_ext
21852fi
21853
21854fi
21855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_void_p" >&5
21856$as_echo "$pmix_cv_c_align_void_p" >&6; }
21857
21858
21859cat >>confdefs.h <<_ACEOF
21860#define PMIX_ALIGNMENT_VOID_P $pmix_cv_c_align_void_p
21861_ACEOF
21862
21863eval "PMIX_ALIGNMENT_VOID_P=$pmix_cv_c_align_void_p"
21864
21865rm -rf conftest*
21866
21867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5
21868$as_echo_n "checking alignment of size_t... " >&6; }
21869if ${pmix_cv_c_align_size_t+:} false; then :
21870  $as_echo_n "(cached) " >&6
21871else
21872  if test "$cross_compiling" = yes; then :
21873   # cross compile - do a non-executable test.  Trick
21874                                 # taken from the Autoconf 2.59c.  Switch to using
21875                                 # AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
21876                                 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (pmix__type_alignof_, y)" "pmix_cv_c_align_size_t"        "$ac_includes_default
21877#include <stdbool.h>
21878
21879#ifndef offsetof
21880# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21881#endif
21882typedef struct { char x; size_t y; } pmix__type_alignof_;
21883"; then :
21884
21885else
21886  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21887$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21888                                                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21889$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21890                                                  as_fn_error $? "*** Cannot continue." "$LINENO" 5
21891fi
21892
21893
21894else
21895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896/* end confdefs.h.  */
21897$ac_includes_default
21898                                                    #include <stdbool.h>
21899int
21900main ()
21901{
21902
21903    struct foo { char c; size_t x; };
21904    struct foo *p = (struct foo *) malloc(sizeof(struct foo));
21905    int diff;
21906    FILE *f=fopen("conftestval", "w");
21907    if (!f) exit(1);
21908    diff = ((char *)&p->x) - ((char *)&p->c);
21909    free(p);
21910    fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
21911    fclose(f);
21912
21913  ;
21914  return 0;
21915}
21916_ACEOF
21917if ac_fn_c_try_run "$LINENO"; then :
21918  pmix_cv_c_align_size_t=`cat conftestval`
21919else
21920  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
21921$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
21922                                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** See config.log for details." >&5
21923$as_echo "$as_me: WARNING: *** See config.log for details." >&2;}
21924                                as_fn_error $? "*** Cannot continue." "$LINENO" 5
21925fi
21926rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21927  conftest.$ac_objext conftest.beam conftest.$ac_ext
21928fi
21929
21930fi
21931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_c_align_size_t" >&5
21932$as_echo "$pmix_cv_c_align_size_t" >&6; }
21933
21934
21935cat >>confdefs.h <<_ACEOF
21936#define PMIX_ALIGNMENT_SIZE_T $pmix_cv_c_align_size_t
21937_ACEOF
21938
21939eval "PMIX_ALIGNMENT_SIZE_T=$pmix_cv_c_align_size_t"
21940
21941rm -rf conftest*
21942
21943
21944    #
21945    # Does the C compiler native support "bool"? (i.e., without
21946    # <stdbool.h> or any other help)
21947    #
21948
21949
21950
21951    # Is the private index set?  If not, set it.
21952    if test "x$pmix_scope_index" = "x"; then
21953        pmix_scope_index=1
21954    fi
21955
21956    # First, check to see if any of these variables are already set.
21957    # This is a simple sanity check to ensure we're not already
21958    # overwriting pre-existing variables (that have a non-empty
21959    # value).  It's not a perfect check, but at least it's something.
21960    for pmix_var in MSG; do
21961        pmix_str="pmix_str=\"\$$pmix_var\""
21962        eval $pmix_str
21963
21964        if test "x$pmix_str" != "x"; then
21965            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
21966$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
21967            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
21968$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
21969            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
21970$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
21971            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
21972$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
21973            as_fn_error $? "Cannot continue" "$LINENO" 5
21974        fi
21975    done
21976
21977    # Ok, we passed the simple sanity check.  Save all these names so
21978    # that we can unset them at the end of the scope.
21979    pmix_str="pmix_scope_$pmix_scope_index=\"MSG\""
21980    eval $pmix_str
21981    unset pmix_str
21982
21983    env | grep pmix_scope
21984    pmix_scope_index=`expr $pmix_scope_index + 1`
21985
21986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C bool type" >&5
21987$as_echo_n "checking for C bool type... " >&6; }
21988    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989/* end confdefs.h.  */
21990
21991                                          $ac_includes_default
21992int
21993main ()
21994{
21995bool bar, foo = true; bar = foo;
21996  ;
21997  return 0;
21998}
21999_ACEOF
22000if ac_fn_c_try_compile "$LINENO"; then :
22001  PMIX_NEED_C_BOOL=0 MSG=yes
22002else
22003  PMIX_NEED_C_BOOL=1 MSG=no
22004fi
22005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006
22007cat >>confdefs.h <<_ACEOF
22008#define PMIX_NEED_C_BOOL $PMIX_NEED_C_BOOL
22009_ACEOF
22010
22011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG" >&5
22012$as_echo "$MSG" >&6; }
22013    # The cast to long int works around a bug in the HP C Compiler
22014# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22015# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22016# This bug is HP SR number 8606223364.
22017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
22018$as_echo_n "checking size of _Bool... " >&6; }
22019if ${ac_cv_sizeof__Bool+:} false; then :
22020  $as_echo_n "(cached) " >&6
22021else
22022  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool"        "$ac_includes_default"; then :
22023
22024else
22025  if test "$ac_cv_type__Bool" = yes; then
22026     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22027$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22028as_fn_error 77 "cannot compute sizeof (_Bool)
22029See \`config.log' for more details" "$LINENO" 5; }
22030   else
22031     ac_cv_sizeof__Bool=0
22032   fi
22033fi
22034
22035fi
22036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
22037$as_echo "$ac_cv_sizeof__Bool" >&6; }
22038
22039
22040
22041cat >>confdefs.h <<_ACEOF
22042#define SIZEOF__BOOL $ac_cv_sizeof__Bool
22043_ACEOF
22044
22045
22046
22047    # Unwind the index
22048    pmix_scope_index=`expr $pmix_scope_index - 1`
22049    pmix_scope_test=`expr $pmix_scope_index \> 0`
22050    if test "$pmix_scope_test" = "0"; then
22051        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
22052$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
22053        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
22054$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
22055        as_fn_error $? "Cannot continue" "$LINENO" 5
22056    fi
22057
22058    # Get the variable names from that index
22059    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
22060    eval $pmix_str
22061
22062    # Iterate over all the variables and unset them all
22063    for pmix_var in $pmix_str; do
22064        unset $pmix_var
22065    done
22066
22067
22068    #
22069    # Check for other compiler characteristics
22070    #
22071
22072
22073
22074    # Is the private index set?  If not, set it.
22075    if test "x$pmix_scope_index" = "x"; then
22076        pmix_scope_index=1
22077    fi
22078
22079    # First, check to see if any of these variables are already set.
22080    # This is a simple sanity check to ensure we're not already
22081    # overwriting pre-existing variables (that have a non-empty
22082    # value).  It's not a perfect check, but at least it's something.
22083    for pmix_var in PMIX_CFLAGS_save; do
22084        pmix_str="pmix_str=\"\$$pmix_var\""
22085        eval $pmix_str
22086
22087        if test "x$pmix_str" != "x"; then
22088            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
22089$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
22090            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
22091$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
22092            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
22093$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
22094            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
22095$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
22096            as_fn_error $? "Cannot continue" "$LINENO" 5
22097        fi
22098    done
22099
22100    # Ok, we passed the simple sanity check.  Save all these names so
22101    # that we can unset them at the end of the scope.
22102    pmix_str="pmix_scope_$pmix_scope_index=\"PMIX_CFLAGS_save\""
22103    eval $pmix_str
22104    unset pmix_str
22105
22106    env | grep pmix_scope
22107    pmix_scope_index=`expr $pmix_scope_index + 1`
22108
22109    if test "$GCC" = "yes"; then
22110
22111        # gcc 2.96 will emit oodles of warnings if you use "inline" with
22112        # -pedantic (which we do in developer builds).  However,
22113        # "__inline__" is ok.  So we have to force gcc to select the
22114        # right one.  If you use -pedantic, the AC_C_INLINE test will fail
22115        # (because it names a function foo() -- without the (void)).  So
22116        # we turn off all the picky flags, turn on -ansi mode (which is
22117        # implied by -pedantic), and set warnings to be errors.  Hence,
22118        # this does the following (for 2.96):
22119        #
22120        # - causes the check for "inline" to emit a warning, which then
22121        # fails
22122        # - checks for __inline__, which then emits no error, and works
22123        #
22124        # This also works nicely for gcc 3.x because "inline" will work on
22125        # the first check, and all is fine.  :-)
22126
22127        PMIX_CFLAGS_save=$CFLAGS
22128        CFLAGS="$PMIX_CFLAGS_BEFORE_PICKY -Werror -ansi"
22129    fi
22130    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22131$as_echo_n "checking for inline... " >&6; }
22132if ${ac_cv_c_inline+:} false; then :
22133  $as_echo_n "(cached) " >&6
22134else
22135  ac_cv_c_inline=no
22136for ac_kw in inline __inline__ __inline; do
22137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22138/* end confdefs.h.  */
22139#ifndef __cplusplus
22140typedef int foo_t;
22141static $ac_kw foo_t static_foo () {return 0; }
22142$ac_kw foo_t foo () {return 0; }
22143#endif
22144
22145_ACEOF
22146if ac_fn_c_try_compile "$LINENO"; then :
22147  ac_cv_c_inline=$ac_kw
22148fi
22149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22150  test "$ac_cv_c_inline" != no && break
22151done
22152
22153fi
22154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22155$as_echo "$ac_cv_c_inline" >&6; }
22156
22157case $ac_cv_c_inline in
22158  inline | yes) ;;
22159  *)
22160    case $ac_cv_c_inline in
22161      no) ac_val=;;
22162      *) ac_val=$ac_cv_c_inline;;
22163    esac
22164    cat >>confdefs.h <<_ACEOF
22165#ifndef __cplusplus
22166#define inline $ac_val
22167#endif
22168_ACEOF
22169    ;;
22170esac
22171
22172    if test "$GCC" = "yes"; then
22173        CFLAGS=$PMIX_CFLAGS_save
22174    fi
22175
22176    # Unwind the index
22177    pmix_scope_index=`expr $pmix_scope_index - 1`
22178    pmix_scope_test=`expr $pmix_scope_index \> 0`
22179    if test "$pmix_scope_test" = "0"; then
22180        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
22181$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
22182        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
22183$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
22184        as_fn_error $? "Cannot continue" "$LINENO" 5
22185    fi
22186
22187    # Get the variable names from that index
22188    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
22189    eval $pmix_str
22190
22191    # Iterate over all the variables and unset them all
22192    for pmix_var in $pmix_str; do
22193        unset $pmix_var
22194    done
22195
22196
22197    if test "x$CC" = "xicc"; then
22198
22199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether icc-8.1 for EM64T works with variable arguments" >&5
22200$as_echo_n "checking whether icc-8.1 for EM64T works with variable arguments... " >&6; }
22201if test "$cross_compiling" = yes; then :
22202  pmix_ac_icc_varargs=1
22203else
22204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22205/* end confdefs.h.  */
22206
22207#include <stdarg.h>
22208#include <stdio.h>
22209#include <stdlib.h>
22210
22211void func (int c, char * f, ...)
22212{
22213  va_list arglist;
22214  va_start (arglist, f);
22215  /* vprintf (f, arglist); */
22216  va_end (arglist);
22217}
22218
22219int main ()
22220{
22221  FILE *f;
22222  func (4711, "Help %d [%s]\n", 10, "ten");
22223  f=fopen ("conftestval", "w");
22224  if (!f) exit (1);
22225  fclose(f);
22226  return 0;
22227}
22228
22229
22230_ACEOF
22231if ac_fn_c_try_run "$LINENO"; then :
22232  pmix_ac_icc_varargs=`test -f conftestval`
22233else
22234  pmix_ac_icc_varargs=1
22235fi
22236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22237  conftest.$ac_objext conftest.beam conftest.$ac_ext
22238fi
22239
22240
22241if test "$pmix_ac_icc_varargs" = "1"; then
22242    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Problem running configure test!" >&5
22243$as_echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
22244    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&5
22245$as_echo "$as_me: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&2;}
22246    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&5
22247$as_echo "$as_me: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&2;}
22248    as_fn_error $? "*** Cannot continue." "$LINENO" 5
22249fi
22250
22251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22252$as_echo "yes" >&6; }
22253
22254rm -rf conftest*
22255    fi
22256
22257
22258    ##################################
22259    # Only after setting up
22260    # C do we check compiler attributes.
22261    ##################################
22262
22263    pmix_show_subtitle "Compiler characteristics"
22264
22265
22266  ac_ext=c
22267ac_cpp='$CPP $CPPFLAGS'
22268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22270ac_compiler_gnu=$ac_cv_c_compiler_gnu
22271
22272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
22273$as_echo_n "checking for __attribute__... " >&6; }
22274
22275  if ${pmix_cv___attribute__+:} false; then :
22276  $as_echo_n "(cached) " >&6
22277else
22278
22279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22280/* end confdefs.h.  */
22281#include <stdlib.h>
22282       /* Check for the longest available __attribute__ (since gcc-2.3) */
22283       struct foo {
22284           char a;
22285           int x[2] __attribute__ ((__packed__));
22286        };
22287
22288int
22289main ()
22290{
22291
22292  ;
22293  return 0;
22294}
22295_ACEOF
22296if ac_fn_c_try_compile "$LINENO"; then :
22297  pmix_cv___attribute__=1
22298else
22299  pmix_cv___attribute__=0
22300fi
22301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302
22303    if test "$pmix_cv___attribute__" = "1" ; then
22304        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22305/* end confdefs.h.  */
22306#include <stdlib.h>
22307           /* Check for the longest available __attribute__ (since gcc-2.3) */
22308           struct foo {
22309               char a;
22310               int x[2] __attribute__ ((__packed__));
22311            };
22312
22313int
22314main ()
22315{
22316
22317  ;
22318  return 0;
22319}
22320_ACEOF
22321if ac_fn_c_try_compile "$LINENO"; then :
22322  pmix_cv___attribute__=1
22323else
22324  pmix_cv___attribute__=0
22325fi
22326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22327    fi
22328
22329fi
22330
22331
22332cat >>confdefs.h <<_ACEOF
22333#define PMIX_HAVE_ATTRIBUTE $pmix_cv___attribute__
22334_ACEOF
22335
22336
22337#
22338# Now that we know the compiler support __attribute__ let's check which kind of
22339# attributed are supported.
22340#
22341  if test "$pmix_cv___attribute__" = "0" ; then
22342    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22343$as_echo "no" >&6; }
22344    pmix_cv___attribute__aligned=0
22345    pmix_cv___attribute__always_inline=0
22346    pmix_cv___attribute__cold=0
22347    pmix_cv___attribute__const=0
22348    pmix_cv___attribute__deprecated=0
22349    pmix_cv___attribute__deprecated_argument=0
22350    pmix_cv___attribute__format=0
22351    pmix_cv___attribute__format_funcptr=0
22352    pmix_cv___attribute__hot=0
22353    pmix_cv___attribute__malloc=0
22354    pmix_cv___attribute__may_alias=0
22355    pmix_cv___attribute__no_instrument_function=0
22356    pmix_cv___attribute__nonnull=0
22357    pmix_cv___attribute__noreturn=0
22358    pmix_cv___attribute__noreturn_funcptr=0
22359    pmix_cv___attribute__packed=0
22360    pmix_cv___attribute__pure=0
22361    pmix_cv___attribute__sentinel=0
22362    pmix_cv___attribute__unused=0
22363    pmix_cv___attribute__visibility=0
22364    pmix_cv___attribute__warn_unused_result=0
22365    pmix_cv___attribute__destructor=0
22366    pmix_cv___attribute__optnone=0
22367    pmix_cv___attribute__extension=0
22368  else
22369    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22370$as_echo "yes" >&6; }
22371
22372
22373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(aligned)" >&5
22374$as_echo_n "checking for __attribute__(aligned)... " >&6; }
22375    if ${pmix_cv___attribute__aligned+:} false; then :
22376  $as_echo_n "(cached) " >&6
22377else
22378
22379        #
22380        # Try to compile using the C compiler
22381        #
22382        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22383/* end confdefs.h.  */
22384struct foo { char text[4]; }  __attribute__ ((__aligned__(8)));
22385int
22386main ()
22387{
22388
22389  ;
22390  return 0;
22391}
22392_ACEOF
22393if ac_fn_c_try_compile "$LINENO"; then :
22394
22395                        #
22396                        # In case we did succeed: Fine, but was this due to the
22397                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22398                        # and if found, reset the pmix_cv__attribute__var=0
22399                        #
22400                        pmix_cv___attribute__aligned=1
22401
22402
22403    if test -s conftest.err ; then
22404        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
22405        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
22406        for i in invalid ignore skip undefined ; do
22407            $GREP -iq $i conftest.err
22408            if test "$?" = "0" ; then
22409                pmix_cv___attribute__aligned=0
22410                break;
22411            fi
22412        done
22413    fi
22414
22415
22416else
22417  pmix_cv___attribute__aligned=0
22418fi
22419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22420
22421fi
22422
22423
22424    if test "$pmix_cv___attribute__aligned" = "1" ; then
22425        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22426$as_echo "yes" >&6; }
22427    else
22428        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22429$as_echo "no" >&6; }
22430    fi
22431
22432
22433    #
22434    # Ignored by PGI-6.2.5; -- recognized by output-parser
22435    #
22436
22437    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(always_inline)" >&5
22438$as_echo_n "checking for __attribute__(always_inline)... " >&6; }
22439    if ${pmix_cv___attribute__always_inline+:} false; then :
22440  $as_echo_n "(cached) " >&6
22441else
22442
22443        #
22444        # Try to compile using the C compiler
22445        #
22446        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22447/* end confdefs.h.  */
22448int foo (int arg) __attribute__ ((__always_inline__));
22449int
22450main ()
22451{
22452
22453  ;
22454  return 0;
22455}
22456_ACEOF
22457if ac_fn_c_try_compile "$LINENO"; then :
22458
22459                        #
22460                        # In case we did succeed: Fine, but was this due to the
22461                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22462                        # and if found, reset the pmix_cv__attribute__var=0
22463                        #
22464                        pmix_cv___attribute__always_inline=1
22465
22466
22467    if test -s conftest.err ; then
22468        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
22469        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
22470        for i in invalid ignore skip undefined ; do
22471            $GREP -iq $i conftest.err
22472            if test "$?" = "0" ; then
22473                pmix_cv___attribute__always_inline=0
22474                break;
22475            fi
22476        done
22477    fi
22478
22479
22480else
22481  pmix_cv___attribute__always_inline=0
22482fi
22483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22484
22485fi
22486
22487
22488    if test "$pmix_cv___attribute__always_inline" = "1" ; then
22489        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22490$as_echo "yes" >&6; }
22491    else
22492        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22493$as_echo "no" >&6; }
22494    fi
22495
22496
22497
22498    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(cold)" >&5
22499$as_echo_n "checking for __attribute__(cold)... " >&6; }
22500    if ${pmix_cv___attribute__cold+:} false; then :
22501  $as_echo_n "(cached) " >&6
22502else
22503
22504        #
22505        # Try to compile using the C compiler
22506        #
22507        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22508/* end confdefs.h.  */
22509
22510         int foo(int arg1, int arg2) __attribute__ ((__cold__));
22511         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
22512
22513int
22514main ()
22515{
22516
22517  ;
22518  return 0;
22519}
22520_ACEOF
22521if ac_fn_c_try_compile "$LINENO"; then :
22522
22523                        #
22524                        # In case we did succeed: Fine, but was this due to the
22525                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22526                        # and if found, reset the pmix_cv__attribute__var=0
22527                        #
22528                        pmix_cv___attribute__cold=1
22529
22530
22531    if test -s conftest.err ; then
22532        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
22533        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
22534        for i in invalid ignore skip undefined ; do
22535            $GREP -iq $i conftest.err
22536            if test "$?" = "0" ; then
22537                pmix_cv___attribute__cold=0
22538                break;
22539            fi
22540        done
22541    fi
22542
22543
22544else
22545  pmix_cv___attribute__cold=0
22546fi
22547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548
22549fi
22550
22551
22552    if test "$pmix_cv___attribute__cold" = "1" ; then
22553        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22554$as_echo "yes" >&6; }
22555    else
22556        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22557$as_echo "no" >&6; }
22558    fi
22559
22560
22561
22562    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(const)" >&5
22563$as_echo_n "checking for __attribute__(const)... " >&6; }
22564    if ${pmix_cv___attribute__const+:} false; then :
22565  $as_echo_n "(cached) " >&6
22566else
22567
22568        #
22569        # Try to compile using the C compiler
22570        #
22571        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22572/* end confdefs.h.  */
22573
22574         int foo(int arg1, int arg2) __attribute__ ((__const__));
22575         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
22576
22577int
22578main ()
22579{
22580
22581  ;
22582  return 0;
22583}
22584_ACEOF
22585if ac_fn_c_try_compile "$LINENO"; then :
22586
22587                        #
22588                        # In case we did succeed: Fine, but was this due to the
22589                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22590                        # and if found, reset the pmix_cv__attribute__var=0
22591                        #
22592                        pmix_cv___attribute__const=1
22593
22594
22595    if test -s conftest.err ; then
22596        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
22597        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
22598        for i in invalid ignore skip undefined ; do
22599            $GREP -iq $i conftest.err
22600            if test "$?" = "0" ; then
22601                pmix_cv___attribute__const=0
22602                break;
22603            fi
22604        done
22605    fi
22606
22607
22608else
22609  pmix_cv___attribute__const=0
22610fi
22611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612
22613fi
22614
22615
22616    if test "$pmix_cv___attribute__const" = "1" ; then
22617        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22618$as_echo "yes" >&6; }
22619    else
22620        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22621$as_echo "no" >&6; }
22622    fi
22623
22624
22625
22626    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(deprecated)" >&5
22627$as_echo_n "checking for __attribute__(deprecated)... " >&6; }
22628    if ${pmix_cv___attribute__deprecated+:} false; then :
22629  $as_echo_n "(cached) " >&6
22630else
22631
22632        #
22633        # Try to compile using the C compiler
22634        #
22635        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22636/* end confdefs.h.  */
22637
22638         int foo(int arg1, int arg2) __attribute__ ((__deprecated__));
22639         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
22640
22641int
22642main ()
22643{
22644
22645  ;
22646  return 0;
22647}
22648_ACEOF
22649if ac_fn_c_try_compile "$LINENO"; then :
22650
22651                        #
22652                        # In case we did succeed: Fine, but was this due to the
22653                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22654                        # and if found, reset the pmix_cv__attribute__var=0
22655                        #
22656                        pmix_cv___attribute__deprecated=1
22657
22658
22659    if test -s conftest.err ; then
22660        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
22661        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
22662        for i in invalid ignore skip undefined ; do
22663            $GREP -iq $i conftest.err
22664            if test "$?" = "0" ; then
22665                pmix_cv___attribute__deprecated=0
22666                break;
22667            fi
22668        done
22669    fi
22670
22671
22672else
22673  pmix_cv___attribute__deprecated=0
22674fi
22675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22676
22677fi
22678
22679
22680    if test "$pmix_cv___attribute__deprecated" = "1" ; then
22681        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22682$as_echo "yes" >&6; }
22683    else
22684        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22685$as_echo "no" >&6; }
22686    fi
22687
22688
22689
22690    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(deprecated_argument)" >&5
22691$as_echo_n "checking for __attribute__(deprecated_argument)... " >&6; }
22692    if ${pmix_cv___attribute__deprecated_argument+:} false; then :
22693  $as_echo_n "(cached) " >&6
22694else
22695
22696        #
22697        # Try to compile using the C compiler
22698        #
22699        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22700/* end confdefs.h.  */
22701
22702         int foo(int arg1, int arg2) __attribute__ ((__deprecated__("compiler allows argument")));
22703         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
22704
22705int
22706main ()
22707{
22708
22709  ;
22710  return 0;
22711}
22712_ACEOF
22713if ac_fn_c_try_compile "$LINENO"; then :
22714
22715                        #
22716                        # In case we did succeed: Fine, but was this due to the
22717                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22718                        # and if found, reset the pmix_cv__attribute__var=0
22719                        #
22720                        pmix_cv___attribute__deprecated_argument=1
22721
22722
22723    if test -s conftest.err ; then
22724        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
22725        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
22726        for i in invalid ignore skip undefined ; do
22727            $GREP -iq $i conftest.err
22728            if test "$?" = "0" ; then
22729                pmix_cv___attribute__deprecated_argument=0
22730                break;
22731            fi
22732        done
22733    fi
22734
22735
22736else
22737  pmix_cv___attribute__deprecated_argument=0
22738fi
22739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740
22741fi
22742
22743
22744    if test "$pmix_cv___attribute__deprecated_argument" = "1" ; then
22745        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22746$as_echo "yes" >&6; }
22747    else
22748        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22749$as_echo "no" >&6; }
22750    fi
22751
22752
22753    ATTRIBUTE_CFLAGS=
22754    case "$pmix_c_vendor" in
22755        gnu)
22756            ATTRIBUTE_CFLAGS="-Wall"
22757            ;;
22758        intel)
22759            # we want specifically the warning on format string conversion
22760            ATTRIBUTE_CFLAGS="-we181"
22761            ;;
22762    esac
22763
22764    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(format)" >&5
22765$as_echo_n "checking for __attribute__(format)... " >&6; }
22766    if ${pmix_cv___attribute__format+:} false; then :
22767  $as_echo_n "(cached) " >&6
22768else
22769
22770        #
22771        # Try to compile using the C compiler
22772        #
22773        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22774/* end confdefs.h.  */
22775
22776         int this_printf (void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
22777
22778int
22779main ()
22780{
22781
22782  ;
22783  return 0;
22784}
22785_ACEOF
22786if ac_fn_c_try_compile "$LINENO"; then :
22787
22788                        #
22789                        # In case we did succeed: Fine, but was this due to the
22790                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22791                        # and if found, reset the pmix_cv__attribute__var=0
22792                        #
22793                        pmix_cv___attribute__format=1
22794
22795
22796    if test -s conftest.err ; then
22797        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
22798        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
22799        for i in invalid ignore skip undefined ; do
22800            $GREP -iq $i conftest.err
22801            if test "$?" = "0" ; then
22802                pmix_cv___attribute__format=0
22803                break;
22804            fi
22805        done
22806    fi
22807
22808
22809else
22810  pmix_cv___attribute__format=0
22811fi
22812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22813
22814fi
22815
22816
22817    if test "$pmix_cv___attribute__format" = "1" ; then
22818        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22819$as_echo "yes" >&6; }
22820    else
22821        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22822$as_echo "no" >&6; }
22823    fi
22824
22825
22826    ATTRIBUTE_CFLAGS=
22827    case "$pmix_c_vendor" in
22828        gnu)
22829            ATTRIBUTE_CFLAGS="-Wall"
22830            ;;
22831        intel)
22832            # we want specifically the warning on format string conversion
22833            ATTRIBUTE_CFLAGS="-we181"
22834            ;;
22835    esac
22836
22837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(format_funcptr)" >&5
22838$as_echo_n "checking for __attribute__(format_funcptr)... " >&6; }
22839    if ${pmix_cv___attribute__format_funcptr+:} false; then :
22840  $as_echo_n "(cached) " >&6
22841else
22842
22843        #
22844        # Try to compile using the C compiler
22845        #
22846        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22847/* end confdefs.h.  */
22848
22849         int (*this_printf)(void *my_object, const char *my_format, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
22850
22851int
22852main ()
22853{
22854
22855  ;
22856  return 0;
22857}
22858_ACEOF
22859if ac_fn_c_try_compile "$LINENO"; then :
22860
22861                        #
22862                        # In case we did succeed: Fine, but was this due to the
22863                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22864                        # and if found, reset the pmix_cv__attribute__var=0
22865                        #
22866                        pmix_cv___attribute__format_funcptr=1
22867
22868
22869    if test -s conftest.err ; then
22870        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
22871        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
22872        for i in invalid ignore skip undefined ; do
22873            $GREP -iq $i conftest.err
22874            if test "$?" = "0" ; then
22875                pmix_cv___attribute__format_funcptr=0
22876                break;
22877            fi
22878        done
22879    fi
22880
22881
22882else
22883  pmix_cv___attribute__format_funcptr=0
22884fi
22885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886
22887fi
22888
22889
22890    if test "$pmix_cv___attribute__format_funcptr" = "1" ; then
22891        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22892$as_echo "yes" >&6; }
22893    else
22894        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22895$as_echo "no" >&6; }
22896    fi
22897
22898
22899
22900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(hot)" >&5
22901$as_echo_n "checking for __attribute__(hot)... " >&6; }
22902    if ${pmix_cv___attribute__hot+:} false; then :
22903  $as_echo_n "(cached) " >&6
22904else
22905
22906        #
22907        # Try to compile using the C compiler
22908        #
22909        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22910/* end confdefs.h.  */
22911
22912         int foo(int arg1, int arg2) __attribute__ ((__hot__));
22913         int foo(int arg1, int arg2) { return arg1 * arg2 + arg1; }
22914
22915int
22916main ()
22917{
22918
22919  ;
22920  return 0;
22921}
22922_ACEOF
22923if ac_fn_c_try_compile "$LINENO"; then :
22924
22925                        #
22926                        # In case we did succeed: Fine, but was this due to the
22927                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22928                        # and if found, reset the pmix_cv__attribute__var=0
22929                        #
22930                        pmix_cv___attribute__hot=1
22931
22932
22933    if test -s conftest.err ; then
22934        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
22935        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
22936        for i in invalid ignore skip undefined ; do
22937            $GREP -iq $i conftest.err
22938            if test "$?" = "0" ; then
22939                pmix_cv___attribute__hot=0
22940                break;
22941            fi
22942        done
22943    fi
22944
22945
22946else
22947  pmix_cv___attribute__hot=0
22948fi
22949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22950
22951fi
22952
22953
22954    if test "$pmix_cv___attribute__hot" = "1" ; then
22955        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22956$as_echo "yes" >&6; }
22957    else
22958        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22959$as_echo "no" >&6; }
22960    fi
22961
22962
22963
22964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(malloc)" >&5
22965$as_echo_n "checking for __attribute__(malloc)... " >&6; }
22966    if ${pmix_cv___attribute__malloc+:} false; then :
22967  $as_echo_n "(cached) " >&6
22968else
22969
22970        #
22971        # Try to compile using the C compiler
22972        #
22973        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22974/* end confdefs.h.  */
22975
22976#ifdef HAVE_STDLIB_H
22977#  include <stdlib.h>
22978#endif
22979         int * foo(int arg1) __attribute__ ((__malloc__));
22980         int * foo(int arg1) { return (int*) malloc(arg1); }
22981
22982int
22983main ()
22984{
22985
22986  ;
22987  return 0;
22988}
22989_ACEOF
22990if ac_fn_c_try_compile "$LINENO"; then :
22991
22992                        #
22993                        # In case we did succeed: Fine, but was this due to the
22994                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
22995                        # and if found, reset the pmix_cv__attribute__var=0
22996                        #
22997                        pmix_cv___attribute__malloc=1
22998
22999
23000    if test -s conftest.err ; then
23001        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23002        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23003        for i in invalid ignore skip undefined ; do
23004            $GREP -iq $i conftest.err
23005            if test "$?" = "0" ; then
23006                pmix_cv___attribute__malloc=0
23007                break;
23008            fi
23009        done
23010    fi
23011
23012
23013else
23014  pmix_cv___attribute__malloc=0
23015fi
23016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23017
23018fi
23019
23020
23021    if test "$pmix_cv___attribute__malloc" = "1" ; then
23022        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23023$as_echo "yes" >&6; }
23024    else
23025        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23026$as_echo "no" >&6; }
23027    fi
23028
23029
23030
23031    #
23032    # Attribute may_alias: No suitable cross-check available, that works for non-supporting compilers
23033    # Ignored by intel-9.1.045 -- turn off with -wd1292
23034    # Ignored by PGI-6.2.5; ignore not detected due to missing cross-check
23035    #
23036
23037    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(may_alias)" >&5
23038$as_echo_n "checking for __attribute__(may_alias)... " >&6; }
23039    if ${pmix_cv___attribute__may_alias+:} false; then :
23040  $as_echo_n "(cached) " >&6
23041else
23042
23043        #
23044        # Try to compile using the C compiler
23045        #
23046        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23047/* end confdefs.h.  */
23048int * p_value __attribute__ ((__may_alias__));
23049int
23050main ()
23051{
23052
23053  ;
23054  return 0;
23055}
23056_ACEOF
23057if ac_fn_c_try_compile "$LINENO"; then :
23058
23059                        #
23060                        # In case we did succeed: Fine, but was this due to the
23061                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23062                        # and if found, reset the pmix_cv__attribute__var=0
23063                        #
23064                        pmix_cv___attribute__may_alias=1
23065
23066
23067    if test -s conftest.err ; then
23068        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23069        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23070        for i in invalid ignore skip undefined ; do
23071            $GREP -iq $i conftest.err
23072            if test "$?" = "0" ; then
23073                pmix_cv___attribute__may_alias=0
23074                break;
23075            fi
23076        done
23077    fi
23078
23079
23080else
23081  pmix_cv___attribute__may_alias=0
23082fi
23083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23084
23085fi
23086
23087
23088    if test "$pmix_cv___attribute__may_alias" = "1" ; then
23089        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23090$as_echo "yes" >&6; }
23091    else
23092        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23093$as_echo "no" >&6; }
23094    fi
23095
23096
23097
23098
23099    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(no_instrument_function)" >&5
23100$as_echo_n "checking for __attribute__(no_instrument_function)... " >&6; }
23101    if ${pmix_cv___attribute__no_instrument_function+:} false; then :
23102  $as_echo_n "(cached) " >&6
23103else
23104
23105        #
23106        # Try to compile using the C compiler
23107        #
23108        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23109/* end confdefs.h.  */
23110int * foo(int arg1) __attribute__ ((__no_instrument_function__));
23111int
23112main ()
23113{
23114
23115  ;
23116  return 0;
23117}
23118_ACEOF
23119if ac_fn_c_try_compile "$LINENO"; then :
23120
23121                        #
23122                        # In case we did succeed: Fine, but was this due to the
23123                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23124                        # and if found, reset the pmix_cv__attribute__var=0
23125                        #
23126                        pmix_cv___attribute__no_instrument_function=1
23127
23128
23129    if test -s conftest.err ; then
23130        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23131        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23132        for i in invalid ignore skip undefined ; do
23133            $GREP -iq $i conftest.err
23134            if test "$?" = "0" ; then
23135                pmix_cv___attribute__no_instrument_function=0
23136                break;
23137            fi
23138        done
23139    fi
23140
23141
23142else
23143  pmix_cv___attribute__no_instrument_function=0
23144fi
23145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146
23147fi
23148
23149
23150    if test "$pmix_cv___attribute__no_instrument_function" = "1" ; then
23151        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23152$as_echo "yes" >&6; }
23153    else
23154        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23155$as_echo "no" >&6; }
23156    fi
23157
23158
23159
23160    #
23161    # Attribute nonnull:
23162    # Ignored by intel-compiler 9.1.045 -- recognized by cross-check
23163    # Ignored by PGI-6.2.5 (pgCC) -- recognized by cross-check
23164    #
23165    ATTRIBUTE_CFLAGS=
23166    case "$pmix_c_vendor" in
23167        gnu)
23168            ATTRIBUTE_CFLAGS="-Wall"
23169            ;;
23170        intel)
23171            # we do not want to get ignored attributes warnings, but rather real warnings
23172            ATTRIBUTE_CFLAGS="-wd1292"
23173            ;;
23174    esac
23175
23176    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(nonnull)" >&5
23177$as_echo_n "checking for __attribute__(nonnull)... " >&6; }
23178    if ${pmix_cv___attribute__nonnull+:} false; then :
23179  $as_echo_n "(cached) " >&6
23180else
23181
23182        #
23183        # Try to compile using the C compiler
23184        #
23185        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23186/* end confdefs.h.  */
23187
23188         int square(int *arg) __attribute__ ((__nonnull__));
23189         int square(int *arg) { return *arg; }
23190
23191int
23192main ()
23193{
23194
23195  ;
23196  return 0;
23197}
23198_ACEOF
23199if ac_fn_c_try_compile "$LINENO"; then :
23200
23201                        #
23202                        # In case we did succeed: Fine, but was this due to the
23203                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23204                        # and if found, reset the pmix_cv__attribute__var=0
23205                        #
23206                        pmix_cv___attribute__nonnull=1
23207
23208
23209    if test -s conftest.err ; then
23210        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23211        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23212        for i in invalid ignore skip undefined ; do
23213            $GREP -iq $i conftest.err
23214            if test "$?" = "0" ; then
23215                pmix_cv___attribute__nonnull=0
23216                break;
23217            fi
23218        done
23219    fi
23220
23221
23222else
23223  pmix_cv___attribute__nonnull=0
23224fi
23225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23226
23227fi
23228
23229
23230    if test "$pmix_cv___attribute__nonnull" = "1" ; then
23231        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23232$as_echo "yes" >&6; }
23233    else
23234        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23235$as_echo "no" >&6; }
23236    fi
23237
23238
23239
23240
23241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noreturn)" >&5
23242$as_echo_n "checking for __attribute__(noreturn)... " >&6; }
23243    if ${pmix_cv___attribute__noreturn+:} false; then :
23244  $as_echo_n "(cached) " >&6
23245else
23246
23247        #
23248        # Try to compile using the C compiler
23249        #
23250        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23251/* end confdefs.h.  */
23252
23253#ifdef HAVE_UNISTD_H
23254#  include <unistd.h>
23255#endif
23256#ifdef HAVE_STDLIB_H
23257#  include <stdlib.h>
23258#endif
23259         void fatal(int arg1) __attribute__ ((__noreturn__));
23260         void fatal(int arg1) { exit(arg1); }
23261
23262int
23263main ()
23264{
23265
23266  ;
23267  return 0;
23268}
23269_ACEOF
23270if ac_fn_c_try_compile "$LINENO"; then :
23271
23272                        #
23273                        # In case we did succeed: Fine, but was this due to the
23274                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23275                        # and if found, reset the pmix_cv__attribute__var=0
23276                        #
23277                        pmix_cv___attribute__noreturn=1
23278
23279
23280    if test -s conftest.err ; then
23281        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23282        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23283        for i in invalid ignore skip undefined ; do
23284            $GREP -iq $i conftest.err
23285            if test "$?" = "0" ; then
23286                pmix_cv___attribute__noreturn=0
23287                break;
23288            fi
23289        done
23290    fi
23291
23292
23293else
23294  pmix_cv___attribute__noreturn=0
23295fi
23296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297
23298fi
23299
23300
23301    if test "$pmix_cv___attribute__noreturn" = "1" ; then
23302        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23303$as_echo "yes" >&6; }
23304    else
23305        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23306$as_echo "no" >&6; }
23307    fi
23308
23309
23310
23311
23312    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(noreturn_funcptr)" >&5
23313$as_echo_n "checking for __attribute__(noreturn_funcptr)... " >&6; }
23314    if ${pmix_cv___attribute__noreturn_funcptr+:} false; then :
23315  $as_echo_n "(cached) " >&6
23316else
23317
23318        #
23319        # Try to compile using the C compiler
23320        #
23321        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23322/* end confdefs.h.  */
23323
23324#ifdef HAVE_UNISTD_H
23325#  include <unistd.h>
23326#endif
23327#ifdef HAVE_STDLIB_H
23328#  include <stdlib.h>
23329#endif
23330         extern void (*fatal_exit)(int arg1) __attribute__ ((__noreturn__));
23331         void fatal(int arg1) { fatal_exit (arg1); }
23332
23333int
23334main ()
23335{
23336
23337  ;
23338  return 0;
23339}
23340_ACEOF
23341if ac_fn_c_try_compile "$LINENO"; then :
23342
23343                        #
23344                        # In case we did succeed: Fine, but was this due to the
23345                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23346                        # and if found, reset the pmix_cv__attribute__var=0
23347                        #
23348                        pmix_cv___attribute__noreturn_funcptr=1
23349
23350
23351    if test -s conftest.err ; then
23352        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23353        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23354        for i in invalid ignore skip undefined ; do
23355            $GREP -iq $i conftest.err
23356            if test "$?" = "0" ; then
23357                pmix_cv___attribute__noreturn_funcptr=0
23358                break;
23359            fi
23360        done
23361    fi
23362
23363
23364else
23365  pmix_cv___attribute__noreturn_funcptr=0
23366fi
23367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23368
23369fi
23370
23371
23372    if test "$pmix_cv___attribute__noreturn_funcptr" = "1" ; then
23373        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23374$as_echo "yes" >&6; }
23375    else
23376        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23377$as_echo "no" >&6; }
23378    fi
23379
23380
23381
23382
23383    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(packed)" >&5
23384$as_echo_n "checking for __attribute__(packed)... " >&6; }
23385    if ${pmix_cv___attribute__packed+:} false; then :
23386  $as_echo_n "(cached) " >&6
23387else
23388
23389        #
23390        # Try to compile using the C compiler
23391        #
23392        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23393/* end confdefs.h.  */
23394
23395         struct foo {
23396             char a;
23397             int x[2] __attribute__ ((__packed__));
23398         };
23399
23400int
23401main ()
23402{
23403
23404  ;
23405  return 0;
23406}
23407_ACEOF
23408if ac_fn_c_try_compile "$LINENO"; then :
23409
23410                        #
23411                        # In case we did succeed: Fine, but was this due to the
23412                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23413                        # and if found, reset the pmix_cv__attribute__var=0
23414                        #
23415                        pmix_cv___attribute__packed=1
23416
23417
23418    if test -s conftest.err ; then
23419        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23420        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23421        for i in invalid ignore skip undefined ; do
23422            $GREP -iq $i conftest.err
23423            if test "$?" = "0" ; then
23424                pmix_cv___attribute__packed=0
23425                break;
23426            fi
23427        done
23428    fi
23429
23430
23431else
23432  pmix_cv___attribute__packed=0
23433fi
23434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23435
23436fi
23437
23438
23439    if test "$pmix_cv___attribute__packed" = "1" ; then
23440        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23441$as_echo "yes" >&6; }
23442    else
23443        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23444$as_echo "no" >&6; }
23445    fi
23446
23447
23448
23449    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(pure)" >&5
23450$as_echo_n "checking for __attribute__(pure)... " >&6; }
23451    if ${pmix_cv___attribute__pure+:} false; then :
23452  $as_echo_n "(cached) " >&6
23453else
23454
23455        #
23456        # Try to compile using the C compiler
23457        #
23458        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23459/* end confdefs.h.  */
23460
23461         int square(int arg) __attribute__ ((__pure__));
23462         int square(int arg) { return arg * arg; }
23463
23464int
23465main ()
23466{
23467
23468  ;
23469  return 0;
23470}
23471_ACEOF
23472if ac_fn_c_try_compile "$LINENO"; then :
23473
23474                        #
23475                        # In case we did succeed: Fine, but was this due to the
23476                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23477                        # and if found, reset the pmix_cv__attribute__var=0
23478                        #
23479                        pmix_cv___attribute__pure=1
23480
23481
23482    if test -s conftest.err ; then
23483        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23484        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23485        for i in invalid ignore skip undefined ; do
23486            $GREP -iq $i conftest.err
23487            if test "$?" = "0" ; then
23488                pmix_cv___attribute__pure=0
23489                break;
23490            fi
23491        done
23492    fi
23493
23494
23495else
23496  pmix_cv___attribute__pure=0
23497fi
23498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23499
23500fi
23501
23502
23503    if test "$pmix_cv___attribute__pure" = "1" ; then
23504        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23505$as_echo "yes" >&6; }
23506    else
23507        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23508$as_echo "no" >&6; }
23509    fi
23510
23511
23512    #
23513    # Attribute sentinel:
23514    # Ignored by the intel-9.1.045 -- recognized by cross-check
23515    #                intel-10.0beta works fine
23516    # Ignored by PGI-6.2.5 (pgCC) -- recognized by output-parser and cross-check
23517    # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
23518    #
23519    ATTRIBUTE_CFLAGS=
23520    case "$pmix_c_vendor" in
23521        gnu)
23522            ATTRIBUTE_CFLAGS="-Wall"
23523            ;;
23524        intel)
23525            # we do not want to get ignored attributes warnings
23526            ATTRIBUTE_CFLAGS="-wd1292"
23527            ;;
23528    esac
23529
23530    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(sentinel)" >&5
23531$as_echo_n "checking for __attribute__(sentinel)... " >&6; }
23532    if ${pmix_cv___attribute__sentinel+:} false; then :
23533  $as_echo_n "(cached) " >&6
23534else
23535
23536        #
23537        # Try to compile using the C compiler
23538        #
23539        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23540/* end confdefs.h.  */
23541
23542         int my_execlp(const char * file, const char *arg, ...) __attribute__ ((__sentinel__));
23543
23544int
23545main ()
23546{
23547
23548  ;
23549  return 0;
23550}
23551_ACEOF
23552if ac_fn_c_try_compile "$LINENO"; then :
23553
23554                        #
23555                        # In case we did succeed: Fine, but was this due to the
23556                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23557                        # and if found, reset the pmix_cv__attribute__var=0
23558                        #
23559                        pmix_cv___attribute__sentinel=1
23560
23561
23562    if test -s conftest.err ; then
23563        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23564        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23565        for i in invalid ignore skip undefined ; do
23566            $GREP -iq $i conftest.err
23567            if test "$?" = "0" ; then
23568                pmix_cv___attribute__sentinel=0
23569                break;
23570            fi
23571        done
23572    fi
23573
23574
23575else
23576  pmix_cv___attribute__sentinel=0
23577fi
23578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23579
23580fi
23581
23582
23583    if test "$pmix_cv___attribute__sentinel" = "1" ; then
23584        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23585$as_echo "yes" >&6; }
23586    else
23587        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23588$as_echo "no" >&6; }
23589    fi
23590
23591
23592
23593    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(unused)" >&5
23594$as_echo_n "checking for __attribute__(unused)... " >&6; }
23595    if ${pmix_cv___attribute__unused+:} false; then :
23596  $as_echo_n "(cached) " >&6
23597else
23598
23599        #
23600        # Try to compile using the C compiler
23601        #
23602        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23603/* end confdefs.h.  */
23604
23605         int square(int arg1 __attribute__ ((__unused__)), int arg2);
23606         int square(int arg1, int arg2) { return arg2; }
23607
23608int
23609main ()
23610{
23611
23612  ;
23613  return 0;
23614}
23615_ACEOF
23616if ac_fn_c_try_compile "$LINENO"; then :
23617
23618                        #
23619                        # In case we did succeed: Fine, but was this due to the
23620                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23621                        # and if found, reset the pmix_cv__attribute__var=0
23622                        #
23623                        pmix_cv___attribute__unused=1
23624
23625
23626    if test -s conftest.err ; then
23627        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23628        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23629        for i in invalid ignore skip undefined ; do
23630            $GREP -iq $i conftest.err
23631            if test "$?" = "0" ; then
23632                pmix_cv___attribute__unused=0
23633                break;
23634            fi
23635        done
23636    fi
23637
23638
23639else
23640  pmix_cv___attribute__unused=0
23641fi
23642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23643
23644fi
23645
23646
23647    if test "$pmix_cv___attribute__unused" = "1" ; then
23648        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23649$as_echo "yes" >&6; }
23650    else
23651        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23652$as_echo "no" >&6; }
23653    fi
23654
23655
23656
23657    #
23658    # Ignored by PGI-6.2.5 (pgCC) -- recognized by the output-parser
23659    #
23660
23661    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(visibility)" >&5
23662$as_echo_n "checking for __attribute__(visibility)... " >&6; }
23663    if ${pmix_cv___attribute__visibility+:} false; then :
23664  $as_echo_n "(cached) " >&6
23665else
23666
23667        #
23668        # Try to compile using the C compiler
23669        #
23670        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23671/* end confdefs.h.  */
23672
23673         int square(int arg1) __attribute__ ((__visibility__("hidden")));
23674
23675int
23676main ()
23677{
23678
23679  ;
23680  return 0;
23681}
23682_ACEOF
23683if ac_fn_c_try_compile "$LINENO"; then :
23684
23685                        #
23686                        # In case we did succeed: Fine, but was this due to the
23687                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23688                        # and if found, reset the pmix_cv__attribute__var=0
23689                        #
23690                        pmix_cv___attribute__visibility=1
23691
23692
23693    if test -s conftest.err ; then
23694        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23695        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23696        for i in invalid ignore skip undefined ; do
23697            $GREP -iq $i conftest.err
23698            if test "$?" = "0" ; then
23699                pmix_cv___attribute__visibility=0
23700                break;
23701            fi
23702        done
23703    fi
23704
23705
23706else
23707  pmix_cv___attribute__visibility=0
23708fi
23709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23710
23711fi
23712
23713
23714    if test "$pmix_cv___attribute__visibility" = "1" ; then
23715        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23716$as_echo "yes" >&6; }
23717    else
23718        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23719$as_echo "no" >&6; }
23720    fi
23721
23722
23723
23724    #
23725    # Attribute warn_unused_result:
23726    # Ignored by the intel-compiler 9.1.045 -- recognized by cross-check
23727    # Ignored by pathcc-2.2.1 -- recognized by cross-check (through grep ignore)
23728    #
23729    ATTRIBUTE_CFLAGS=
23730    case "$pmix_c_vendor" in
23731        gnu)
23732            ATTRIBUTE_CFLAGS="-Wall"
23733            ;;
23734        intel)
23735            # we do not want to get ignored attributes warnings
23736            ATTRIBUTE_CFLAGS="-wd1292"
23737            ;;
23738    esac
23739
23740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(warn_unused_result)" >&5
23741$as_echo_n "checking for __attribute__(warn_unused_result)... " >&6; }
23742    if ${pmix_cv___attribute__warn_unused_result+:} false; then :
23743  $as_echo_n "(cached) " >&6
23744else
23745
23746        #
23747        # Try to compile using the C compiler
23748        #
23749        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23750/* end confdefs.h.  */
23751
23752         int foo(int arg) __attribute__ ((__warn_unused_result__));
23753         int foo(int arg) { return arg + 3; }
23754
23755int
23756main ()
23757{
23758
23759  ;
23760  return 0;
23761}
23762_ACEOF
23763if ac_fn_c_try_compile "$LINENO"; then :
23764
23765                        #
23766                        # In case we did succeed: Fine, but was this due to the
23767                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23768                        # and if found, reset the pmix_cv__attribute__var=0
23769                        #
23770                        pmix_cv___attribute__warn_unused_result=1
23771
23772
23773    if test -s conftest.err ; then
23774        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23775        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23776        for i in invalid ignore skip undefined ; do
23777            $GREP -iq $i conftest.err
23778            if test "$?" = "0" ; then
23779                pmix_cv___attribute__warn_unused_result=0
23780                break;
23781            fi
23782        done
23783    fi
23784
23785
23786else
23787  pmix_cv___attribute__warn_unused_result=0
23788fi
23789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23790
23791fi
23792
23793
23794    if test "$pmix_cv___attribute__warn_unused_result" = "1" ; then
23795        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23796$as_echo "yes" >&6; }
23797    else
23798        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23799$as_echo "no" >&6; }
23800    fi
23801
23802
23803
23804
23805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(destructor)" >&5
23806$as_echo_n "checking for __attribute__(destructor)... " >&6; }
23807    if ${pmix_cv___attribute__destructor+:} false; then :
23808  $as_echo_n "(cached) " >&6
23809else
23810
23811        #
23812        # Try to compile using the C compiler
23813        #
23814        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23815/* end confdefs.h.  */
23816
23817        void foo(void) __attribute__ ((__destructor__));
23818        void foo(void) { return ; }
23819
23820int
23821main ()
23822{
23823
23824  ;
23825  return 0;
23826}
23827_ACEOF
23828if ac_fn_c_try_compile "$LINENO"; then :
23829
23830                        #
23831                        # In case we did succeed: Fine, but was this due to the
23832                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23833                        # and if found, reset the pmix_cv__attribute__var=0
23834                        #
23835                        pmix_cv___attribute__destructor=1
23836
23837
23838    if test -s conftest.err ; then
23839        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23840        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23841        for i in invalid ignore skip undefined ; do
23842            $GREP -iq $i conftest.err
23843            if test "$?" = "0" ; then
23844                pmix_cv___attribute__destructor=0
23845                break;
23846            fi
23847        done
23848    fi
23849
23850
23851else
23852  pmix_cv___attribute__destructor=0
23853fi
23854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23855
23856fi
23857
23858
23859    if test "$pmix_cv___attribute__destructor" = "1" ; then
23860        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23861$as_echo "yes" >&6; }
23862    else
23863        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23864$as_echo "no" >&6; }
23865    fi
23866
23867
23868
23869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(optnone)" >&5
23870$as_echo_n "checking for __attribute__(optnone)... " >&6; }
23871    if ${pmix_cv___attribute__optnone+:} false; then :
23872  $as_echo_n "(cached) " >&6
23873else
23874
23875        #
23876        # Try to compile using the C compiler
23877        #
23878        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23879/* end confdefs.h.  */
23880
23881        void __attribute__ ((__optnone__)) foo(void);
23882        void foo(void) { return ; }
23883
23884int
23885main ()
23886{
23887
23888  ;
23889  return 0;
23890}
23891_ACEOF
23892if ac_fn_c_try_compile "$LINENO"; then :
23893
23894                        #
23895                        # In case we did succeed: Fine, but was this due to the
23896                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23897                        # and if found, reset the pmix_cv__attribute__var=0
23898                        #
23899                        pmix_cv___attribute__optnone=1
23900
23901
23902    if test -s conftest.err ; then
23903        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23904        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23905        for i in invalid ignore skip undefined ; do
23906            $GREP -iq $i conftest.err
23907            if test "$?" = "0" ; then
23908                pmix_cv___attribute__optnone=0
23909                break;
23910            fi
23911        done
23912    fi
23913
23914
23915else
23916  pmix_cv___attribute__optnone=0
23917fi
23918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23919
23920fi
23921
23922
23923    if test "$pmix_cv___attribute__optnone" = "1" ; then
23924        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23925$as_echo "yes" >&6; }
23926    else
23927        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23928$as_echo "no" >&6; }
23929    fi
23930
23931
23932
23933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__(extension)" >&5
23934$as_echo_n "checking for __attribute__(extension)... " >&6; }
23935    if ${pmix_cv___attribute__extension+:} false; then :
23936  $as_echo_n "(cached) " >&6
23937else
23938
23939        #
23940        # Try to compile using the C compiler
23941        #
23942        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943/* end confdefs.h.  */
23944
23945        int i = __extension__ 3;
23946
23947int
23948main ()
23949{
23950
23951  ;
23952  return 0;
23953}
23954_ACEOF
23955if ac_fn_c_try_compile "$LINENO"; then :
23956
23957                        #
23958                        # In case we did succeed: Fine, but was this due to the
23959                        # attribute being ignored/skipped? Grep for IgNoRe/skip in conftest.err
23960                        # and if found, reset the pmix_cv__attribute__var=0
23961                        #
23962                        pmix_cv___attribute__extension=1
23963
23964
23965    if test -s conftest.err ; then
23966        # icc uses 'invalid attribute' and 'attribute "__XXX__"  ignored'
23967        # Sun 12.1 emits 'warning: attribute parameter "__printf__" is undefined'
23968        for i in invalid ignore skip undefined ; do
23969            $GREP -iq $i conftest.err
23970            if test "$?" = "0" ; then
23971                pmix_cv___attribute__extension=0
23972                break;
23973            fi
23974        done
23975    fi
23976
23977
23978else
23979  pmix_cv___attribute__extension=0
23980fi
23981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23982
23983fi
23984
23985
23986    if test "$pmix_cv___attribute__extension" = "1" ; then
23987        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23988$as_echo "yes" >&6; }
23989    else
23990        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23991$as_echo "no" >&6; }
23992    fi
23993
23994  fi
23995
23996  # Now that all the values are set, define them
23997
23998
23999cat >>confdefs.h <<_ACEOF
24000#define PMIX_HAVE_ATTRIBUTE_ALIGNED $pmix_cv___attribute__aligned
24001_ACEOF
24002
24003
24004cat >>confdefs.h <<_ACEOF
24005#define PMIX_HAVE_ATTRIBUTE_ALWAYS_INLINE $pmix_cv___attribute__always_inline
24006_ACEOF
24007
24008
24009cat >>confdefs.h <<_ACEOF
24010#define PMIX_HAVE_ATTRIBUTE_COLD $pmix_cv___attribute__cold
24011_ACEOF
24012
24013
24014cat >>confdefs.h <<_ACEOF
24015#define PMIX_HAVE_ATTRIBUTE_CONST $pmix_cv___attribute__const
24016_ACEOF
24017
24018
24019cat >>confdefs.h <<_ACEOF
24020#define PMIX_HAVE_ATTRIBUTE_DEPRECATED $pmix_cv___attribute__deprecated
24021_ACEOF
24022
24023
24024cat >>confdefs.h <<_ACEOF
24025#define PMIX_HAVE_ATTRIBUTE_DEPRECATED_ARGUMENT $pmix_cv___attribute__deprecated_argument
24026_ACEOF
24027
24028
24029cat >>confdefs.h <<_ACEOF
24030#define PMIX_HAVE_ATTRIBUTE_FORMAT $pmix_cv___attribute__format
24031_ACEOF
24032
24033
24034cat >>confdefs.h <<_ACEOF
24035#define PMIX_HAVE_ATTRIBUTE_FORMAT_FUNCPTR $pmix_cv___attribute__format_funcptr
24036_ACEOF
24037
24038
24039cat >>confdefs.h <<_ACEOF
24040#define PMIX_HAVE_ATTRIBUTE_HOT $pmix_cv___attribute__hot
24041_ACEOF
24042
24043
24044cat >>confdefs.h <<_ACEOF
24045#define PMIX_HAVE_ATTRIBUTE_MALLOC $pmix_cv___attribute__malloc
24046_ACEOF
24047
24048
24049cat >>confdefs.h <<_ACEOF
24050#define PMIX_HAVE_ATTRIBUTE_MAY_ALIAS $pmix_cv___attribute__may_alias
24051_ACEOF
24052
24053
24054cat >>confdefs.h <<_ACEOF
24055#define PMIX_HAVE_ATTRIBUTE_NO_INSTRUMENT_FUNCTION $pmix_cv___attribute__no_instrument_function
24056_ACEOF
24057
24058
24059cat >>confdefs.h <<_ACEOF
24060#define PMIX_HAVE_ATTRIBUTE_NONNULL $pmix_cv___attribute__nonnull
24061_ACEOF
24062
24063
24064cat >>confdefs.h <<_ACEOF
24065#define PMIX_HAVE_ATTRIBUTE_NORETURN $pmix_cv___attribute__noreturn
24066_ACEOF
24067
24068
24069cat >>confdefs.h <<_ACEOF
24070#define PMIX_HAVE_ATTRIBUTE_NORETURN_FUNCPTR $pmix_cv___attribute__noreturn_funcptr
24071_ACEOF
24072
24073
24074cat >>confdefs.h <<_ACEOF
24075#define PMIX_HAVE_ATTRIBUTE_PACKED $pmix_cv___attribute__packed
24076_ACEOF
24077
24078
24079cat >>confdefs.h <<_ACEOF
24080#define PMIX_HAVE_ATTRIBUTE_PURE $pmix_cv___attribute__pure
24081_ACEOF
24082
24083
24084cat >>confdefs.h <<_ACEOF
24085#define PMIX_HAVE_ATTRIBUTE_SENTINEL $pmix_cv___attribute__sentinel
24086_ACEOF
24087
24088
24089cat >>confdefs.h <<_ACEOF
24090#define PMIX_HAVE_ATTRIBUTE_UNUSED $pmix_cv___attribute__unused
24091_ACEOF
24092
24093
24094cat >>confdefs.h <<_ACEOF
24095#define PMIX_HAVE_ATTRIBUTE_VISIBILITY $pmix_cv___attribute__visibility
24096_ACEOF
24097
24098
24099cat >>confdefs.h <<_ACEOF
24100#define PMIX_HAVE_ATTRIBUTE_WARN_UNUSED_RESULT $pmix_cv___attribute__warn_unused_result
24101_ACEOF
24102
24103
24104cat >>confdefs.h <<_ACEOF
24105#define PMIX_HAVE_ATTRIBUTE_WEAK_ALIAS $pmix_cv___attribute__weak_alias
24106_ACEOF
24107
24108
24109cat >>confdefs.h <<_ACEOF
24110#define PMIX_HAVE_ATTRIBUTE_DESTRUCTOR $pmix_cv___attribute__destructor
24111_ACEOF
24112
24113
24114cat >>confdefs.h <<_ACEOF
24115#define PMIX_HAVE_ATTRIBUTE_OPTNONE $pmix_cv___attribute__optnone
24116_ACEOF
24117
24118
24119cat >>confdefs.h <<_ACEOF
24120#define PMIX_HAVE_ATTRIBUTE_EXTENSION $pmix_cv___attribute__extension
24121_ACEOF
24122
24123
24124
24125
24126    lower=familyid
24127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $lower" >&5
24128$as_echo_n "checking for compiler $lower... " >&6; }
24129if ${pmix_cv_compiler_FAMILYID+:} false; then :
24130  $as_echo_n "(cached) " >&6
24131else
24132
24133            CPPFLAGS_orig=$CPPFLAGS
24134            CPPFLAGS="-I${top_srcdir}/src/include $CPPFLAGS"
24135            if test "$cross_compiling" = yes; then :
24136
24137                eval pmix_cv_compiler_FAMILYID=0
24138
24139else
24140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24141/* end confdefs.h.  */
24142
24143#include <stdio.h>
24144#include <stdlib.h>
24145#include "pmix_portable_platform.h"
24146
24147int main (int argc, char * argv[])
24148{
24149    FILE * f;
24150    f=fopen("conftestval", "w");
24151    if (!f) exit(1);
24152    fprintf (f, "%d", PLATFORM_COMPILER_FAMILYID);
24153    fclose(f);
24154    return 0;
24155}
24156
24157_ACEOF
24158if ac_fn_c_try_run "$LINENO"; then :
24159
24160                eval pmix_cv_compiler_FAMILYID=`cat conftestval`;
24161
24162else
24163
24164                eval pmix_cv_compiler_FAMILYID=0
24165
24166fi
24167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24168  conftest.$ac_objext conftest.beam conftest.$ac_ext
24169fi
24170
24171            CPPFLAGS=$CPPFLAGS_orig
24172
24173fi
24174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_compiler_FAMILYID" >&5
24175$as_echo "$pmix_cv_compiler_FAMILYID" >&6; }
24176
24177cat >>confdefs.h <<_ACEOF
24178#define PMIX_BUILD_PLATFORM_COMPILER_FAMILYID $pmix_cv_compiler_FAMILYID
24179_ACEOF
24180
24181
24182
24183    lower=familyname
24184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $lower" >&5
24185$as_echo_n "checking for compiler $lower... " >&6; }
24186if ${pmix_cv_compiler_FAMILYNAME+:} false; then :
24187  $as_echo_n "(cached) " >&6
24188else
24189
24190            CPPFLAGS_orig=$CPPFLAGS
24191            CPPFLAGS="-I${top_srcdir}/src/include $CPPFLAGS"
24192            if test "$cross_compiling" = yes; then :
24193
24194                eval pmix_cv_compiler_FAMILYNAME=UNKNOWN
24195
24196else
24197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24198/* end confdefs.h.  */
24199
24200#include <stdio.h>
24201#include <stdlib.h>
24202#include "pmix_portable_platform.h"
24203
24204int main (int argc, char * argv[])
24205{
24206    FILE * f;
24207    f=fopen("conftestval", "w");
24208    if (!f) exit(1);
24209    fprintf (f, "%s", _STRINGIFY(PLATFORM_COMPILER_FAMILYNAME));
24210    fclose(f);
24211    return 0;
24212}
24213
24214_ACEOF
24215if ac_fn_c_try_run "$LINENO"; then :
24216
24217                eval pmix_cv_compiler_FAMILYNAME=`cat conftestval`;
24218
24219else
24220
24221                eval pmix_cv_compiler_FAMILYNAME=UNKNOWN
24222
24223fi
24224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24225  conftest.$ac_objext conftest.beam conftest.$ac_ext
24226fi
24227
24228            CPPFLAGS=$CPPFLAGS_orig
24229
24230fi
24231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_compiler_FAMILYNAME" >&5
24232$as_echo "$pmix_cv_compiler_FAMILYNAME" >&6; }
24233
24234cat >>confdefs.h <<_ACEOF
24235#define PMIX_BUILD_PLATFORM_COMPILER_FAMILYNAME $pmix_cv_compiler_FAMILYNAME
24236_ACEOF
24237
24238
24239
24240    lower=version
24241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $lower" >&5
24242$as_echo_n "checking for compiler $lower... " >&6; }
24243if ${pmix_cv_compiler_VERSION+:} false; then :
24244  $as_echo_n "(cached) " >&6
24245else
24246
24247            CPPFLAGS_orig=$CPPFLAGS
24248            CPPFLAGS="-I${top_srcdir}/src/include $CPPFLAGS"
24249            if test "$cross_compiling" = yes; then :
24250
24251                eval pmix_cv_compiler_VERSION=0
24252
24253else
24254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24255/* end confdefs.h.  */
24256
24257#include <stdio.h>
24258#include <stdlib.h>
24259#include "pmix_portable_platform.h"
24260
24261int main (int argc, char * argv[])
24262{
24263    FILE * f;
24264    f=fopen("conftestval", "w");
24265    if (!f) exit(1);
24266    fprintf (f, "%d", PLATFORM_COMPILER_VERSION);
24267    fclose(f);
24268    return 0;
24269}
24270
24271_ACEOF
24272if ac_fn_c_try_run "$LINENO"; then :
24273
24274                eval pmix_cv_compiler_VERSION=`cat conftestval`;
24275
24276else
24277
24278                eval pmix_cv_compiler_VERSION=0
24279
24280fi
24281rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24282  conftest.$ac_objext conftest.beam conftest.$ac_ext
24283fi
24284
24285            CPPFLAGS=$CPPFLAGS_orig
24286
24287fi
24288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_compiler_VERSION" >&5
24289$as_echo "$pmix_cv_compiler_VERSION" >&6; }
24290
24291cat >>confdefs.h <<_ACEOF
24292#define PMIX_BUILD_PLATFORM_COMPILER_VERSION $pmix_cv_compiler_VERSION
24293_ACEOF
24294
24295
24296
24297    lower=version_str
24298    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $lower" >&5
24299$as_echo_n "checking for compiler $lower... " >&6; }
24300if ${pmix_cv_compiler_VERSION_STR+:} false; then :
24301  $as_echo_n "(cached) " >&6
24302else
24303
24304            CPPFLAGS_orig=$CPPFLAGS
24305            CPPFLAGS="-I${top_srcdir}/src/include $CPPFLAGS"
24306            if test "$cross_compiling" = yes; then :
24307
24308                eval pmix_cv_compiler_VERSION_STR=UNKNOWN
24309
24310else
24311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24312/* end confdefs.h.  */
24313
24314#include <stdio.h>
24315#include <stdlib.h>
24316#include "pmix_portable_platform.h"
24317
24318int main (int argc, char * argv[])
24319{
24320    FILE * f;
24321    f=fopen("conftestval", "w");
24322    if (!f) exit(1);
24323    fprintf (f, "%s", PLATFORM_COMPILER_VERSION_STR);
24324    fclose(f);
24325    return 0;
24326}
24327
24328_ACEOF
24329if ac_fn_c_try_run "$LINENO"; then :
24330
24331                eval pmix_cv_compiler_VERSION_STR=`cat conftestval`;
24332
24333else
24334
24335                eval pmix_cv_compiler_VERSION_STR=UNKNOWN
24336
24337fi
24338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24339  conftest.$ac_objext conftest.beam conftest.$ac_ext
24340fi
24341
24342            CPPFLAGS=$CPPFLAGS_orig
24343
24344fi
24345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_compiler_VERSION_STR" >&5
24346$as_echo "$pmix_cv_compiler_VERSION_STR" >&6; }
24347
24348cat >>confdefs.h <<_ACEOF
24349#define PMIX_BUILD_PLATFORM_COMPILER_VERSION_STR $pmix_cv_compiler_VERSION_STR
24350_ACEOF
24351
24352
24353
24354
24355    ##################################
24356    # Assembler Configuration
24357    ##################################
24358
24359    pmix_show_subtitle "Assembler"
24360
24361    # By default we simply use the C compiler to build assembly code.
24362
24363test "${CCAS+set}" = set || CCAS=$CC
24364test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
24365
24366
24367
24368depcc="$CCAS"   am_compiler_list=
24369
24370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
24371$as_echo_n "checking dependency style of $depcc... " >&6; }
24372if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
24373  $as_echo_n "(cached) " >&6
24374else
24375  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
24376  # We make a subdir and do the tests there.  Otherwise we can end up
24377  # making bogus files that we don't know about and never remove.  For
24378  # instance it was reported that on HP-UX the gcc test will end up
24379  # making a dummy file named 'D' -- because '-MD' means "put the output
24380  # in D".
24381  rm -rf conftest.dir
24382  mkdir conftest.dir
24383  # Copy depcomp to subdir because otherwise we won't find it if we're
24384  # using a relative directory.
24385  cp "$am_depcomp" conftest.dir
24386  cd conftest.dir
24387  # We will build objects and dependencies in a subdirectory because
24388  # it helps to detect inapplicable dependency modes.  For instance
24389  # both Tru64's cc and ICC support -MD to output dependencies as a
24390  # side effect of compilation, but ICC will put the dependencies in
24391  # the current directory while Tru64 will put them in the object
24392  # directory.
24393  mkdir sub
24394
24395  am_cv_CCAS_dependencies_compiler_type=none
24396  if test "$am_compiler_list" = ""; then
24397     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
24398  fi
24399  am__universal=false
24400
24401
24402  for depmode in $am_compiler_list; do
24403    # Setup a source with many dependencies, because some compilers
24404    # like to wrap large dependency lists on column 80 (with \), and
24405    # we should not choose a depcomp mode which is confused by this.
24406    #
24407    # We need to recreate these files for each test, as the compiler may
24408    # overwrite some of them when testing with obscure command lines.
24409    # This happens at least with the AIX C compiler.
24410    : > sub/conftest.c
24411    for i in 1 2 3 4 5 6; do
24412      echo '#include "conftst'$i'.h"' >> sub/conftest.c
24413      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
24414      # Solaris 10 /bin/sh.
24415      echo '/* dummy */' > sub/conftst$i.h
24416    done
24417    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
24418
24419    # We check with '-c' and '-o' for the sake of the "dashmstdout"
24420    # mode.  It turns out that the SunPro C++ compiler does not properly
24421    # handle '-M -o', and we need to detect this.  Also, some Intel
24422    # versions had trouble with output in subdirs.
24423    am__obj=sub/conftest.${OBJEXT-o}
24424    am__minus_obj="-o $am__obj"
24425    case $depmode in
24426    gcc)
24427      # This depmode causes a compiler race in universal mode.
24428      test "$am__universal" = false || continue
24429      ;;
24430    nosideeffect)
24431      # After this tag, mechanisms are not by side-effect, so they'll
24432      # only be used when explicitly requested.
24433      if test "x$enable_dependency_tracking" = xyes; then
24434	continue
24435      else
24436	break
24437      fi
24438      ;;
24439    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
24440      # This compiler won't grok '-c -o', but also, the minuso test has
24441      # not run yet.  These depmodes are late enough in the game, and
24442      # so weak that their functioning should not be impacted.
24443      am__obj=conftest.${OBJEXT-o}
24444      am__minus_obj=
24445      ;;
24446    none) break ;;
24447    esac
24448    if depmode=$depmode \
24449       source=sub/conftest.c object=$am__obj \
24450       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
24451       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
24452         >/dev/null 2>conftest.err &&
24453       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
24454       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
24455       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
24456       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
24457      # icc doesn't choke on unknown options, it will just issue warnings
24458      # or remarks (even with -Werror).  So we grep stderr for any message
24459      # that says an option was ignored or not supported.
24460      # When given -MP, icc 7.0 and 7.1 complain thusly:
24461      #   icc: Command line warning: ignoring option '-M'; no argument required
24462      # The diagnosis changed in icc 8.0:
24463      #   icc: Command line remark: option '-MP' not supported
24464      if (grep 'ignoring option' conftest.err ||
24465          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
24466        am_cv_CCAS_dependencies_compiler_type=$depmode
24467        break
24468      fi
24469    fi
24470  done
24471
24472  cd ..
24473  rm -rf conftest.dir
24474else
24475  am_cv_CCAS_dependencies_compiler_type=none
24476fi
24477
24478fi
24479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
24480$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
24481CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
24482
24483 if
24484  test "x$enable_dependency_tracking" != xno \
24485  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
24486  am__fastdepCCAS_TRUE=
24487  am__fastdepCCAS_FALSE='#'
24488else
24489  am__fastdepCCAS_TRUE='#'
24490  am__fastdepCCAS_FALSE=
24491fi
24492
24493
24494    # Extract the first word of "perl", so it can be a program name with args.
24495set dummy perl; ac_word=$2
24496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24497$as_echo_n "checking for $ac_word... " >&6; }
24498if ${ac_cv_path_PERL+:} false; then :
24499  $as_echo_n "(cached) " >&6
24500else
24501  case $PERL in
24502  [\\/]* | ?:[\\/]*)
24503  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
24504  ;;
24505  *)
24506  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24507for as_dir in $PATH
24508do
24509  IFS=$as_save_IFS
24510  test -z "$as_dir" && as_dir=.
24511    for ac_exec_ext in '' $ac_executable_extensions; do
24512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24513    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
24514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24515    break 2
24516  fi
24517done
24518  done
24519IFS=$as_save_IFS
24520
24521  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
24522  ;;
24523esac
24524fi
24525PERL=$ac_cv_path_PERL
24526if test -n "$PERL"; then
24527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24528$as_echo "$PERL" >&6; }
24529else
24530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24531$as_echo "no" >&6; }
24532fi
24533
24534
24535
24536
24537
24538
24539    # Check whether --enable-c11-atomics was given.
24540if test "${enable_c11_atomics+set}" = set; then :
24541  enableval=$enable_c11_atomics;
24542fi
24543
24544
24545    # Check whether --enable-builtin-atomics was given.
24546if test "${enable_builtin_atomics+set}" = set; then :
24547  enableval=$enable_builtin_atomics;
24548fi
24549
24550
24551
24552
24553
24554    # Is the private index set?  If not, set it.
24555    if test "x$pmix_scope_index" = "x"; then
24556        pmix_scope_index=1
24557    fi
24558
24559    # First, check to see if any of these variables are already set.
24560    # This is a simple sanity check to ensure we're not already
24561    # overwriting pre-existing variables (that have a non-empty
24562    # value).  It's not a perfect check, but at least it's something.
24563    for pmix_var in atomic_compare_exchange_result atomic_compare_exchange_CFLAGS_save atomic_compare_exchange_LIBS_save; do
24564        pmix_str="pmix_str=\"\$$pmix_var\""
24565        eval $pmix_str
24566
24567        if test "x$pmix_str" != "x"; then
24568            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
24569$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
24570            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
24571$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
24572            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
24573$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
24574            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
24575$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
24576            as_fn_error $? "Cannot continue" "$LINENO" 5
24577        fi
24578    done
24579
24580    # Ok, we passed the simple sanity check.  Save all these names so
24581    # that we can unset them at the end of the scope.
24582    pmix_str="pmix_scope_$pmix_scope_index=\"atomic_compare_exchange_result atomic_compare_exchange_CFLAGS_save atomic_compare_exchange_LIBS_save\""
24583    eval $pmix_str
24584    unset pmix_str
24585
24586    env | grep pmix_scope
24587    pmix_scope_index=`expr $pmix_scope_index + 1`
24588
24589
24590  atomic_compare_exchange_CFLAGS_save=$CFLAGS
24591  atomic_compare_exchange_LIBS_save=$LIBS
24592
24593  # Do we have C11 atomics on 128-bit integers?
24594  # Use a special macro because we need to check with a few different
24595  # CFLAGS/LIBS.
24596
24597
24598
24599    # Is the private index set?  If not, set it.
24600    if test "x$pmix_scope_index" = "x"; then
24601        pmix_scope_index=1
24602    fi
24603
24604    # First, check to see if any of these variables are already set.
24605    # This is a simple sanity check to ensure we're not already
24606    # overwriting pre-existing variables (that have a non-empty
24607    # value).  It's not a perfect check, but at least it's something.
24608    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
24609        pmix_str="pmix_str=\"\$$pmix_var\""
24610        eval $pmix_str
24611
24612        if test "x$pmix_str" != "x"; then
24613            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
24614$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
24615            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
24616$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
24617            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
24618$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
24619            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
24620$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
24621            as_fn_error $? "Cannot continue" "$LINENO" 5
24622        fi
24623    done
24624
24625    # Ok, we passed the simple sanity check.  Save all these names so
24626    # that we can unset them at the end of the scope.
24627    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
24628    eval $pmix_str
24629    unset pmix_str
24630
24631    env | grep pmix_scope
24632    pmix_scope_index=`expr $pmix_scope_index + 1`
24633
24634
24635    pmix_asm_check_func_CFLAGS_save=$CFLAGS
24636    pmix_asm_check_func_LIBS_save=$LIBS
24637
24638        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_compare_exchange_strong_16" >&5
24639$as_echo_n "checking for atomic_compare_exchange_strong_16... " >&6; }
24640    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24641/* end confdefs.h.  */
24642
24643#include <stdint.h>
24644#include <stdbool.h>
24645#include <stdlib.h>
24646#include <stdatomic.h>
24647
24648typedef union {
24649    uint64_t fake[2];
24650    _Atomic __int128 real;
24651} pmix128;
24652
24653static void test1(void)
24654{
24655    // As of Aug 2018, we could not figure out a way to assign 128-bit
24656    // constants -- the compilers would not accept it.  So use a fake
24657    // union to assign 2 uin64_t's to make a single __int128.
24658    pmix128 ptr      = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
24659    pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
24660    pmix128 desired  = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
24661    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
24662                                             desired.real, true,
24663					     atomic_relaxed, atomic_relaxed);
24664    if ( !(r == false && ptr.real == expected.real)) {
24665        exit(1);
24666    }
24667}
24668
24669static void test2(void)
24670{
24671    pmix128 ptr =      { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
24672    pmix128 expected = ptr;
24673    pmix128 desired =  { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
24674    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
24675                                             desired.real, true,
24676					     atomic_relaxed, atomic_relaxed);
24677    if (!(r == true && ptr.real == desired.real)) {
24678        exit(2);
24679    }
24680}
24681
24682int main(int argc, char** argv)
24683{
24684    test1();
24685    test2();
24686    return 0;
24687}
24688
24689_ACEOF
24690if ac_fn_c_try_link "$LINENO"; then :
24691  pmix_asm_check_func_happy=1
24692         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24693$as_echo "yes" >&6; }
24694else
24695  pmix_asm_check_func_happy=0
24696         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24697$as_echo "no" >&6; }
24698fi
24699rm -f core conftest.err conftest.$ac_objext \
24700    conftest$ac_exeext conftest.$ac_ext
24701
24702        if test $pmix_asm_check_func_happy -eq 0; then :
24703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_compare_exchange_strong_16 with -mcx16" >&5
24704$as_echo_n "checking for atomic_compare_exchange_strong_16 with -mcx16... " >&6; }
24705         CFLAGS="$CFLAGS -mcx16"
24706         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24707/* end confdefs.h.  */
24708
24709#include <stdint.h>
24710#include <stdbool.h>
24711#include <stdlib.h>
24712#include <stdatomic.h>
24713
24714typedef union {
24715    uint64_t fake[2];
24716    _Atomic __int128 real;
24717} pmix128;
24718
24719static void test1(void)
24720{
24721    // As of Aug 2018, we could not figure out a way to assign 128-bit
24722    // constants -- the compilers would not accept it.  So use a fake
24723    // union to assign 2 uin64_t's to make a single __int128.
24724    pmix128 ptr      = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
24725    pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
24726    pmix128 desired  = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
24727    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
24728                                             desired.real, true,
24729					     atomic_relaxed, atomic_relaxed);
24730    if ( !(r == false && ptr.real == expected.real)) {
24731        exit(1);
24732    }
24733}
24734
24735static void test2(void)
24736{
24737    pmix128 ptr =      { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
24738    pmix128 expected = ptr;
24739    pmix128 desired =  { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
24740    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
24741                                             desired.real, true,
24742					     atomic_relaxed, atomic_relaxed);
24743    if (!(r == true && ptr.real == desired.real)) {
24744        exit(2);
24745    }
24746}
24747
24748int main(int argc, char** argv)
24749{
24750    test1();
24751    test2();
24752    return 0;
24753}
24754
24755_ACEOF
24756if ac_fn_c_try_link "$LINENO"; then :
24757  pmix_asm_check_func_happy=1
24758              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24759$as_echo "yes" >&6; }
24760else
24761  pmix_asm_check_func_happy=0
24762              CFLAGS=$pmix_asm_check_func_CFLAGS_save
24763              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24764$as_echo "no" >&6; }
24765fi
24766rm -f core conftest.err conftest.$ac_objext \
24767    conftest$ac_exeext conftest.$ac_ext
24768
24769fi
24770
24771        if test $pmix_asm_check_func_happy -eq 0; then :
24772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_compare_exchange_strong_16 with -latomic" >&5
24773$as_echo_n "checking for atomic_compare_exchange_strong_16 with -latomic... " >&6; }
24774         LIBS="$LIBS -latomic"
24775         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24776/* end confdefs.h.  */
24777
24778#include <stdint.h>
24779#include <stdbool.h>
24780#include <stdlib.h>
24781#include <stdatomic.h>
24782
24783typedef union {
24784    uint64_t fake[2];
24785    _Atomic __int128 real;
24786} pmix128;
24787
24788static void test1(void)
24789{
24790    // As of Aug 2018, we could not figure out a way to assign 128-bit
24791    // constants -- the compilers would not accept it.  So use a fake
24792    // union to assign 2 uin64_t's to make a single __int128.
24793    pmix128 ptr      = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
24794    pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
24795    pmix128 desired  = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
24796    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
24797                                             desired.real, true,
24798					     atomic_relaxed, atomic_relaxed);
24799    if ( !(r == false && ptr.real == expected.real)) {
24800        exit(1);
24801    }
24802}
24803
24804static void test2(void)
24805{
24806    pmix128 ptr =      { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
24807    pmix128 expected = ptr;
24808    pmix128 desired =  { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
24809    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
24810                                             desired.real, true,
24811					     atomic_relaxed, atomic_relaxed);
24812    if (!(r == true && ptr.real == desired.real)) {
24813        exit(2);
24814    }
24815}
24816
24817int main(int argc, char** argv)
24818{
24819    test1();
24820    test2();
24821    return 0;
24822}
24823
24824_ACEOF
24825if ac_fn_c_try_link "$LINENO"; then :
24826  pmix_asm_check_func_happy=1
24827              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24828$as_echo "yes" >&6; }
24829else
24830  pmix_asm_check_func_happy=0
24831              LIBS=$pmix_asm_check_func_LIBS_save
24832              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24833$as_echo "no" >&6; }
24834fi
24835rm -f core conftest.err conftest.$ac_objext \
24836    conftest$ac_exeext conftest.$ac_ext
24837
24838fi
24839
24840                if test $pmix_asm_check_func_happy -eq 1; then :
24841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if atomic_compare_exchange_strong_16() gives correct results" >&5
24842$as_echo_n "checking if atomic_compare_exchange_strong_16() gives correct results... " >&6; }
24843         if test "$cross_compiling" = yes; then :
24844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
24845$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
24846else
24847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24848/* end confdefs.h.  */
24849
24850#include <stdint.h>
24851#include <stdbool.h>
24852#include <stdlib.h>
24853#include <stdatomic.h>
24854
24855typedef union {
24856    uint64_t fake[2];
24857    _Atomic __int128 real;
24858} pmix128;
24859
24860static void test1(void)
24861{
24862    // As of Aug 2018, we could not figure out a way to assign 128-bit
24863    // constants -- the compilers would not accept it.  So use a fake
24864    // union to assign 2 uin64_t's to make a single __int128.
24865    pmix128 ptr      = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
24866    pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
24867    pmix128 desired  = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
24868    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
24869                                             desired.real, true,
24870					     atomic_relaxed, atomic_relaxed);
24871    if ( !(r == false && ptr.real == expected.real)) {
24872        exit(1);
24873    }
24874}
24875
24876static void test2(void)
24877{
24878    pmix128 ptr =      { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
24879    pmix128 expected = ptr;
24880    pmix128 desired =  { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
24881    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
24882                                             desired.real, true,
24883					     atomic_relaxed, atomic_relaxed);
24884    if (!(r == true && ptr.real == desired.real)) {
24885        exit(2);
24886    }
24887}
24888
24889int main(int argc, char** argv)
24890{
24891    test1();
24892    test2();
24893    return 0;
24894}
24895
24896_ACEOF
24897if ac_fn_c_try_run "$LINENO"; then :
24898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24899$as_echo "yes" >&6; }
24900else
24901  pmix_asm_check_func_happy=0
24902               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24903$as_echo "no" >&6; }
24904fi
24905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24906  conftest.$ac_objext conftest.beam conftest.$ac_ext
24907fi
24908
24909
24910fi
24911
24912        if test $pmix_asm_check_func_happy -eq 0; then :
24913  CFLAGS=$pmix_asm_check_func_CFLAGS_save
24914         LIBS=$pmix_asm_check_func_LIBS_save
24915fi
24916
24917        if test $pmix_asm_check_func_happy -eq 1; then :
24918  atomic_compare_exchange_result=1
24919else
24920  atomic_compare_exchange_result=0
24921fi
24922
24923
24924    # Unwind the index
24925    pmix_scope_index=`expr $pmix_scope_index - 1`
24926    pmix_scope_test=`expr $pmix_scope_index \> 0`
24927    if test "$pmix_scope_test" = "0"; then
24928        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
24929$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
24930        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
24931$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
24932        as_fn_error $? "Cannot continue" "$LINENO" 5
24933    fi
24934
24935    # Get the variable names from that index
24936    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
24937    eval $pmix_str
24938
24939    # Iterate over all the variables and unset them all
24940    for pmix_var in $pmix_str; do
24941        unset $pmix_var
24942    done
24943
24944
24945
24946  # If we have it and it works, check to make sure it is always lock
24947  # free.
24948  if test $atomic_compare_exchange_result -eq 1; then :
24949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C11 __int128 atomic compare-and-swap is always lock-free" >&5
24950$as_echo_n "checking if C11 __int128 atomic compare-and-swap is always lock-free... " >&6; }
24951         if test "$cross_compiling" = yes; then :
24952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
24953$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
24954else
24955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24956/* end confdefs.h.  */
24957#include <stdatomic.h>
24958int
24959main ()
24960{
24961_Atomic __int128_t x; if (!atomic_is_lock_free(&x)) { return 1; }
24962  ;
24963  return 0;
24964}
24965_ACEOF
24966if ac_fn_c_try_run "$LINENO"; then :
24967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24968$as_echo "yes" >&6; }
24969else
24970  atomic_compare_exchange_result=0
24971               # If this test fails, need to reset CFLAGS/LIBS (the
24972               # above tests atomically set CFLAGS/LIBS or not; this
24973               # test is running after the fact, so we have to undo
24974               # the side-effects of setting CFLAGS/LIBS if the above
24975               # tests passed).
24976               CFLAGS=$atomic_compare_exchange_CFLAGS_save
24977               LIBS=$atomic_compare_exchange_LIBS_save
24978               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24979$as_echo "no" >&6; }
24980fi
24981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24982  conftest.$ac_objext conftest.beam conftest.$ac_ext
24983fi
24984
24985
24986fi
24987
24988
24989cat >>confdefs.h <<_ACEOF
24990#define PMIX_HAVE_C11_CSWAP_INT128 $atomic_compare_exchange_result
24991_ACEOF
24992
24993
24994      if test $atomic_compare_exchange_result -eq 0; then :
24995
24996
24997
24998    # Is the private index set?  If not, set it.
24999    if test "x$pmix_scope_index" = "x"; then
25000        pmix_scope_index=1
25001    fi
25002
25003    # First, check to see if any of these variables are already set.
25004    # This is a simple sanity check to ensure we're not already
25005    # overwriting pre-existing variables (that have a non-empty
25006    # value).  It's not a perfect check, but at least it's something.
25007    for pmix_var in sync_bool_compare_and_swap_128_result; do
25008        pmix_str="pmix_str=\"\$$pmix_var\""
25009        eval $pmix_str
25010
25011        if test "x$pmix_str" != "x"; then
25012            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
25013$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
25014            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
25015$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
25016            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
25017$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
25018            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
25019$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
25020            as_fn_error $? "Cannot continue" "$LINENO" 5
25021        fi
25022    done
25023
25024    # Ok, we passed the simple sanity check.  Save all these names so
25025    # that we can unset them at the end of the scope.
25026    pmix_str="pmix_scope_$pmix_scope_index=\"sync_bool_compare_and_swap_128_result\""
25027    eval $pmix_str
25028    unset pmix_str
25029
25030    env | grep pmix_scope
25031    pmix_scope_index=`expr $pmix_scope_index + 1`
25032
25033
25034  # Do we have __sync_bool_compare_and_swap?
25035  # Use a special macro because we need to check with a few different
25036  # CFLAGS/LIBS.
25037
25038
25039
25040    # Is the private index set?  If not, set it.
25041    if test "x$pmix_scope_index" = "x"; then
25042        pmix_scope_index=1
25043    fi
25044
25045    # First, check to see if any of these variables are already set.
25046    # This is a simple sanity check to ensure we're not already
25047    # overwriting pre-existing variables (that have a non-empty
25048    # value).  It's not a perfect check, but at least it's something.
25049    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
25050        pmix_str="pmix_str=\"\$$pmix_var\""
25051        eval $pmix_str
25052
25053        if test "x$pmix_str" != "x"; then
25054            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
25055$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
25056            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
25057$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
25058            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
25059$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
25060            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
25061$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
25062            as_fn_error $? "Cannot continue" "$LINENO" 5
25063        fi
25064    done
25065
25066    # Ok, we passed the simple sanity check.  Save all these names so
25067    # that we can unset them at the end of the scope.
25068    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
25069    eval $pmix_str
25070    unset pmix_str
25071
25072    env | grep pmix_scope
25073    pmix_scope_index=`expr $pmix_scope_index + 1`
25074
25075
25076    pmix_asm_check_func_CFLAGS_save=$CFLAGS
25077    pmix_asm_check_func_LIBS_save=$LIBS
25078
25079        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5
25080$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; }
25081    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25082/* end confdefs.h.  */
25083
25084#include <stdint.h>
25085#include <stdbool.h>
25086#include <stdlib.h>
25087
25088typedef union {
25089    uint64_t fake[2];
25090    __int128 real;
25091} pmix128;
25092
25093static void test1(void)
25094{
25095    // As of Aug 2018, we could not figure out a way to assign 128-bit
25096    // constants -- the compilers would not accept it.  So use a fake
25097    // union to assign 2 uin64_t's to make a single __int128.
25098    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25099    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
25100    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25101    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
25102    if (!(r == false && ptr.real != newval.real)) {
25103        exit(1);
25104    }
25105}
25106
25107static void test2(void)
25108{
25109    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25110    pmix128 oldval = ptr;
25111    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25112    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
25113    if (!(r == true && ptr.real == newval.real)) {
25114        exit(2);
25115    }
25116}
25117
25118int main(int argc, char** argv)
25119{
25120    test1();
25121    test2();
25122    return 0;
25123}
25124
25125_ACEOF
25126if ac_fn_c_try_link "$LINENO"; then :
25127  pmix_asm_check_func_happy=1
25128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25129$as_echo "yes" >&6; }
25130else
25131  pmix_asm_check_func_happy=0
25132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25133$as_echo "no" >&6; }
25134fi
25135rm -f core conftest.err conftest.$ac_objext \
25136    conftest$ac_exeext conftest.$ac_ext
25137
25138        if test $pmix_asm_check_func_happy -eq 0; then :
25139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5
25140$as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; }
25141         CFLAGS="$CFLAGS -mcx16"
25142         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25143/* end confdefs.h.  */
25144
25145#include <stdint.h>
25146#include <stdbool.h>
25147#include <stdlib.h>
25148
25149typedef union {
25150    uint64_t fake[2];
25151    __int128 real;
25152} pmix128;
25153
25154static void test1(void)
25155{
25156    // As of Aug 2018, we could not figure out a way to assign 128-bit
25157    // constants -- the compilers would not accept it.  So use a fake
25158    // union to assign 2 uin64_t's to make a single __int128.
25159    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25160    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
25161    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25162    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
25163    if (!(r == false && ptr.real != newval.real)) {
25164        exit(1);
25165    }
25166}
25167
25168static void test2(void)
25169{
25170    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25171    pmix128 oldval = ptr;
25172    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25173    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
25174    if (!(r == true && ptr.real == newval.real)) {
25175        exit(2);
25176    }
25177}
25178
25179int main(int argc, char** argv)
25180{
25181    test1();
25182    test2();
25183    return 0;
25184}
25185
25186_ACEOF
25187if ac_fn_c_try_link "$LINENO"; then :
25188  pmix_asm_check_func_happy=1
25189              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25190$as_echo "yes" >&6; }
25191else
25192  pmix_asm_check_func_happy=0
25193              CFLAGS=$pmix_asm_check_func_CFLAGS_save
25194              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25195$as_echo "no" >&6; }
25196fi
25197rm -f core conftest.err conftest.$ac_objext \
25198    conftest$ac_exeext conftest.$ac_ext
25199
25200fi
25201
25202        if test $pmix_asm_check_func_happy -eq 0; then :
25203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5
25204$as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; }
25205         LIBS="$LIBS -latomic"
25206         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25207/* end confdefs.h.  */
25208
25209#include <stdint.h>
25210#include <stdbool.h>
25211#include <stdlib.h>
25212
25213typedef union {
25214    uint64_t fake[2];
25215    __int128 real;
25216} pmix128;
25217
25218static void test1(void)
25219{
25220    // As of Aug 2018, we could not figure out a way to assign 128-bit
25221    // constants -- the compilers would not accept it.  So use a fake
25222    // union to assign 2 uin64_t's to make a single __int128.
25223    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25224    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
25225    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25226    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
25227    if (!(r == false && ptr.real != newval.real)) {
25228        exit(1);
25229    }
25230}
25231
25232static void test2(void)
25233{
25234    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25235    pmix128 oldval = ptr;
25236    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25237    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
25238    if (!(r == true && ptr.real == newval.real)) {
25239        exit(2);
25240    }
25241}
25242
25243int main(int argc, char** argv)
25244{
25245    test1();
25246    test2();
25247    return 0;
25248}
25249
25250_ACEOF
25251if ac_fn_c_try_link "$LINENO"; then :
25252  pmix_asm_check_func_happy=1
25253              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25254$as_echo "yes" >&6; }
25255else
25256  pmix_asm_check_func_happy=0
25257              LIBS=$pmix_asm_check_func_LIBS_save
25258              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25259$as_echo "no" >&6; }
25260fi
25261rm -f core conftest.err conftest.$ac_objext \
25262    conftest$ac_exeext conftest.$ac_ext
25263
25264fi
25265
25266                if test $pmix_asm_check_func_happy -eq 1; then :
25267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5
25268$as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; }
25269         if test "$cross_compiling" = yes; then :
25270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
25271$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
25272else
25273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25274/* end confdefs.h.  */
25275
25276#include <stdint.h>
25277#include <stdbool.h>
25278#include <stdlib.h>
25279
25280typedef union {
25281    uint64_t fake[2];
25282    __int128 real;
25283} pmix128;
25284
25285static void test1(void)
25286{
25287    // As of Aug 2018, we could not figure out a way to assign 128-bit
25288    // constants -- the compilers would not accept it.  So use a fake
25289    // union to assign 2 uin64_t's to make a single __int128.
25290    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25291    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
25292    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25293    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
25294    if (!(r == false && ptr.real != newval.real)) {
25295        exit(1);
25296    }
25297}
25298
25299static void test2(void)
25300{
25301    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25302    pmix128 oldval = ptr;
25303    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25304    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
25305    if (!(r == true && ptr.real == newval.real)) {
25306        exit(2);
25307    }
25308}
25309
25310int main(int argc, char** argv)
25311{
25312    test1();
25313    test2();
25314    return 0;
25315}
25316
25317_ACEOF
25318if ac_fn_c_try_run "$LINENO"; then :
25319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25320$as_echo "yes" >&6; }
25321else
25322  pmix_asm_check_func_happy=0
25323               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25324$as_echo "no" >&6; }
25325fi
25326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25327  conftest.$ac_objext conftest.beam conftest.$ac_ext
25328fi
25329
25330
25331fi
25332
25333        if test $pmix_asm_check_func_happy -eq 0; then :
25334  CFLAGS=$pmix_asm_check_func_CFLAGS_save
25335         LIBS=$pmix_asm_check_func_LIBS_save
25336fi
25337
25338        if test $pmix_asm_check_func_happy -eq 1; then :
25339  sync_bool_compare_and_swap_128_result=1
25340else
25341  sync_bool_compare_and_swap_128_result=0
25342fi
25343
25344
25345    # Unwind the index
25346    pmix_scope_index=`expr $pmix_scope_index - 1`
25347    pmix_scope_test=`expr $pmix_scope_index \> 0`
25348    if test "$pmix_scope_test" = "0"; then
25349        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
25350$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
25351        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
25352$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
25353        as_fn_error $? "Cannot continue" "$LINENO" 5
25354    fi
25355
25356    # Get the variable names from that index
25357    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
25358    eval $pmix_str
25359
25360    # Iterate over all the variables and unset them all
25361    for pmix_var in $pmix_str; do
25362        unset $pmix_var
25363    done
25364
25365
25366
25367
25368cat >>confdefs.h <<_ACEOF
25369#define PMIX_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result
25370_ACEOF
25371
25372
25373
25374    # Unwind the index
25375    pmix_scope_index=`expr $pmix_scope_index - 1`
25376    pmix_scope_test=`expr $pmix_scope_index \> 0`
25377    if test "$pmix_scope_test" = "0"; then
25378        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
25379$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
25380        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
25381$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
25382        as_fn_error $? "Cannot continue" "$LINENO" 5
25383    fi
25384
25385    # Get the variable names from that index
25386    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
25387    eval $pmix_str
25388
25389    # Iterate over all the variables and unset them all
25390    for pmix_var in $pmix_str; do
25391        unset $pmix_var
25392    done
25393
25394
25395fi
25396
25397
25398    # Unwind the index
25399    pmix_scope_index=`expr $pmix_scope_index - 1`
25400    pmix_scope_test=`expr $pmix_scope_index \> 0`
25401    if test "$pmix_scope_test" = "0"; then
25402        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
25403$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
25404        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
25405$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
25406        as_fn_error $? "Cannot continue" "$LINENO" 5
25407    fi
25408
25409    # Get the variable names from that index
25410    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
25411    eval $pmix_str
25412
25413    # Iterate over all the variables and unset them all
25414    for pmix_var in $pmix_str; do
25415        unset $pmix_var
25416    done
25417
25418
25419
25420    if test "x$enable_c11_atomics" != "xno" && test "$pmix_cv_c11_supported" = "yes" ; then
25421        pmix_cv_asm_builtin="BUILTIN_C11"
25422
25423
25424
25425    # Is the private index set?  If not, set it.
25426    if test "x$pmix_scope_index" = "x"; then
25427        pmix_scope_index=1
25428    fi
25429
25430    # First, check to see if any of these variables are already set.
25431    # This is a simple sanity check to ensure we're not already
25432    # overwriting pre-existing variables (that have a non-empty
25433    # value).  It's not a perfect check, but at least it's something.
25434    for pmix_var in atomic_compare_exchange_result atomic_compare_exchange_CFLAGS_save atomic_compare_exchange_LIBS_save; do
25435        pmix_str="pmix_str=\"\$$pmix_var\""
25436        eval $pmix_str
25437
25438        if test "x$pmix_str" != "x"; then
25439            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
25440$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
25441            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
25442$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
25443            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
25444$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
25445            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
25446$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
25447            as_fn_error $? "Cannot continue" "$LINENO" 5
25448        fi
25449    done
25450
25451    # Ok, we passed the simple sanity check.  Save all these names so
25452    # that we can unset them at the end of the scope.
25453    pmix_str="pmix_scope_$pmix_scope_index=\"atomic_compare_exchange_result atomic_compare_exchange_CFLAGS_save atomic_compare_exchange_LIBS_save\""
25454    eval $pmix_str
25455    unset pmix_str
25456
25457    env | grep pmix_scope
25458    pmix_scope_index=`expr $pmix_scope_index + 1`
25459
25460
25461  atomic_compare_exchange_CFLAGS_save=$CFLAGS
25462  atomic_compare_exchange_LIBS_save=$LIBS
25463
25464  # Do we have C11 atomics on 128-bit integers?
25465  # Use a special macro because we need to check with a few different
25466  # CFLAGS/LIBS.
25467
25468
25469
25470    # Is the private index set?  If not, set it.
25471    if test "x$pmix_scope_index" = "x"; then
25472        pmix_scope_index=1
25473    fi
25474
25475    # First, check to see if any of these variables are already set.
25476    # This is a simple sanity check to ensure we're not already
25477    # overwriting pre-existing variables (that have a non-empty
25478    # value).  It's not a perfect check, but at least it's something.
25479    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
25480        pmix_str="pmix_str=\"\$$pmix_var\""
25481        eval $pmix_str
25482
25483        if test "x$pmix_str" != "x"; then
25484            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
25485$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
25486            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
25487$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
25488            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
25489$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
25490            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
25491$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
25492            as_fn_error $? "Cannot continue" "$LINENO" 5
25493        fi
25494    done
25495
25496    # Ok, we passed the simple sanity check.  Save all these names so
25497    # that we can unset them at the end of the scope.
25498    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
25499    eval $pmix_str
25500    unset pmix_str
25501
25502    env | grep pmix_scope
25503    pmix_scope_index=`expr $pmix_scope_index + 1`
25504
25505
25506    pmix_asm_check_func_CFLAGS_save=$CFLAGS
25507    pmix_asm_check_func_LIBS_save=$LIBS
25508
25509        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_compare_exchange_strong_16" >&5
25510$as_echo_n "checking for atomic_compare_exchange_strong_16... " >&6; }
25511    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25512/* end confdefs.h.  */
25513
25514#include <stdint.h>
25515#include <stdbool.h>
25516#include <stdlib.h>
25517#include <stdatomic.h>
25518
25519typedef union {
25520    uint64_t fake[2];
25521    _Atomic __int128 real;
25522} pmix128;
25523
25524static void test1(void)
25525{
25526    // As of Aug 2018, we could not figure out a way to assign 128-bit
25527    // constants -- the compilers would not accept it.  So use a fake
25528    // union to assign 2 uin64_t's to make a single __int128.
25529    pmix128 ptr      = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25530    pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
25531    pmix128 desired  = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25532    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
25533                                             desired.real, true,
25534					     atomic_relaxed, atomic_relaxed);
25535    if ( !(r == false && ptr.real == expected.real)) {
25536        exit(1);
25537    }
25538}
25539
25540static void test2(void)
25541{
25542    pmix128 ptr =      { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25543    pmix128 expected = ptr;
25544    pmix128 desired =  { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25545    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
25546                                             desired.real, true,
25547					     atomic_relaxed, atomic_relaxed);
25548    if (!(r == true && ptr.real == desired.real)) {
25549        exit(2);
25550    }
25551}
25552
25553int main(int argc, char** argv)
25554{
25555    test1();
25556    test2();
25557    return 0;
25558}
25559
25560_ACEOF
25561if ac_fn_c_try_link "$LINENO"; then :
25562  pmix_asm_check_func_happy=1
25563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25564$as_echo "yes" >&6; }
25565else
25566  pmix_asm_check_func_happy=0
25567         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25568$as_echo "no" >&6; }
25569fi
25570rm -f core conftest.err conftest.$ac_objext \
25571    conftest$ac_exeext conftest.$ac_ext
25572
25573        if test $pmix_asm_check_func_happy -eq 0; then :
25574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_compare_exchange_strong_16 with -mcx16" >&5
25575$as_echo_n "checking for atomic_compare_exchange_strong_16 with -mcx16... " >&6; }
25576         CFLAGS="$CFLAGS -mcx16"
25577         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25578/* end confdefs.h.  */
25579
25580#include <stdint.h>
25581#include <stdbool.h>
25582#include <stdlib.h>
25583#include <stdatomic.h>
25584
25585typedef union {
25586    uint64_t fake[2];
25587    _Atomic __int128 real;
25588} pmix128;
25589
25590static void test1(void)
25591{
25592    // As of Aug 2018, we could not figure out a way to assign 128-bit
25593    // constants -- the compilers would not accept it.  So use a fake
25594    // union to assign 2 uin64_t's to make a single __int128.
25595    pmix128 ptr      = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25596    pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
25597    pmix128 desired  = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25598    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
25599                                             desired.real, true,
25600					     atomic_relaxed, atomic_relaxed);
25601    if ( !(r == false && ptr.real == expected.real)) {
25602        exit(1);
25603    }
25604}
25605
25606static void test2(void)
25607{
25608    pmix128 ptr =      { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25609    pmix128 expected = ptr;
25610    pmix128 desired =  { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25611    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
25612                                             desired.real, true,
25613					     atomic_relaxed, atomic_relaxed);
25614    if (!(r == true && ptr.real == desired.real)) {
25615        exit(2);
25616    }
25617}
25618
25619int main(int argc, char** argv)
25620{
25621    test1();
25622    test2();
25623    return 0;
25624}
25625
25626_ACEOF
25627if ac_fn_c_try_link "$LINENO"; then :
25628  pmix_asm_check_func_happy=1
25629              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25630$as_echo "yes" >&6; }
25631else
25632  pmix_asm_check_func_happy=0
25633              CFLAGS=$pmix_asm_check_func_CFLAGS_save
25634              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25635$as_echo "no" >&6; }
25636fi
25637rm -f core conftest.err conftest.$ac_objext \
25638    conftest$ac_exeext conftest.$ac_ext
25639
25640fi
25641
25642        if test $pmix_asm_check_func_happy -eq 0; then :
25643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic_compare_exchange_strong_16 with -latomic" >&5
25644$as_echo_n "checking for atomic_compare_exchange_strong_16 with -latomic... " >&6; }
25645         LIBS="$LIBS -latomic"
25646         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25647/* end confdefs.h.  */
25648
25649#include <stdint.h>
25650#include <stdbool.h>
25651#include <stdlib.h>
25652#include <stdatomic.h>
25653
25654typedef union {
25655    uint64_t fake[2];
25656    _Atomic __int128 real;
25657} pmix128;
25658
25659static void test1(void)
25660{
25661    // As of Aug 2018, we could not figure out a way to assign 128-bit
25662    // constants -- the compilers would not accept it.  So use a fake
25663    // union to assign 2 uin64_t's to make a single __int128.
25664    pmix128 ptr      = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25665    pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
25666    pmix128 desired  = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25667    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
25668                                             desired.real, true,
25669					     atomic_relaxed, atomic_relaxed);
25670    if ( !(r == false && ptr.real == expected.real)) {
25671        exit(1);
25672    }
25673}
25674
25675static void test2(void)
25676{
25677    pmix128 ptr =      { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25678    pmix128 expected = ptr;
25679    pmix128 desired =  { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25680    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
25681                                             desired.real, true,
25682					     atomic_relaxed, atomic_relaxed);
25683    if (!(r == true && ptr.real == desired.real)) {
25684        exit(2);
25685    }
25686}
25687
25688int main(int argc, char** argv)
25689{
25690    test1();
25691    test2();
25692    return 0;
25693}
25694
25695_ACEOF
25696if ac_fn_c_try_link "$LINENO"; then :
25697  pmix_asm_check_func_happy=1
25698              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25699$as_echo "yes" >&6; }
25700else
25701  pmix_asm_check_func_happy=0
25702              LIBS=$pmix_asm_check_func_LIBS_save
25703              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25704$as_echo "no" >&6; }
25705fi
25706rm -f core conftest.err conftest.$ac_objext \
25707    conftest$ac_exeext conftest.$ac_ext
25708
25709fi
25710
25711                if test $pmix_asm_check_func_happy -eq 1; then :
25712  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if atomic_compare_exchange_strong_16() gives correct results" >&5
25713$as_echo_n "checking if atomic_compare_exchange_strong_16() gives correct results... " >&6; }
25714         if test "$cross_compiling" = yes; then :
25715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
25716$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
25717else
25718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25719/* end confdefs.h.  */
25720
25721#include <stdint.h>
25722#include <stdbool.h>
25723#include <stdlib.h>
25724#include <stdatomic.h>
25725
25726typedef union {
25727    uint64_t fake[2];
25728    _Atomic __int128 real;
25729} pmix128;
25730
25731static void test1(void)
25732{
25733    // As of Aug 2018, we could not figure out a way to assign 128-bit
25734    // constants -- the compilers would not accept it.  So use a fake
25735    // union to assign 2 uin64_t's to make a single __int128.
25736    pmix128 ptr      = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25737    pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
25738    pmix128 desired  = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25739    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
25740                                             desired.real, true,
25741					     atomic_relaxed, atomic_relaxed);
25742    if ( !(r == false && ptr.real == expected.real)) {
25743        exit(1);
25744    }
25745}
25746
25747static void test2(void)
25748{
25749    pmix128 ptr =      { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25750    pmix128 expected = ptr;
25751    pmix128 desired =  { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25752    bool r = atomic_compare_exchange_strong (&ptr.real, &expected.real,
25753                                             desired.real, true,
25754					     atomic_relaxed, atomic_relaxed);
25755    if (!(r == true && ptr.real == desired.real)) {
25756        exit(2);
25757    }
25758}
25759
25760int main(int argc, char** argv)
25761{
25762    test1();
25763    test2();
25764    return 0;
25765}
25766
25767_ACEOF
25768if ac_fn_c_try_run "$LINENO"; then :
25769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25770$as_echo "yes" >&6; }
25771else
25772  pmix_asm_check_func_happy=0
25773               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25774$as_echo "no" >&6; }
25775fi
25776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25777  conftest.$ac_objext conftest.beam conftest.$ac_ext
25778fi
25779
25780
25781fi
25782
25783        if test $pmix_asm_check_func_happy -eq 0; then :
25784  CFLAGS=$pmix_asm_check_func_CFLAGS_save
25785         LIBS=$pmix_asm_check_func_LIBS_save
25786fi
25787
25788        if test $pmix_asm_check_func_happy -eq 1; then :
25789  atomic_compare_exchange_result=1
25790else
25791  atomic_compare_exchange_result=0
25792fi
25793
25794
25795    # Unwind the index
25796    pmix_scope_index=`expr $pmix_scope_index - 1`
25797    pmix_scope_test=`expr $pmix_scope_index \> 0`
25798    if test "$pmix_scope_test" = "0"; then
25799        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
25800$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
25801        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
25802$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
25803        as_fn_error $? "Cannot continue" "$LINENO" 5
25804    fi
25805
25806    # Get the variable names from that index
25807    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
25808    eval $pmix_str
25809
25810    # Iterate over all the variables and unset them all
25811    for pmix_var in $pmix_str; do
25812        unset $pmix_var
25813    done
25814
25815
25816
25817  # If we have it and it works, check to make sure it is always lock
25818  # free.
25819  if test $atomic_compare_exchange_result -eq 1; then :
25820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C11 __int128 atomic compare-and-swap is always lock-free" >&5
25821$as_echo_n "checking if C11 __int128 atomic compare-and-swap is always lock-free... " >&6; }
25822         if test "$cross_compiling" = yes; then :
25823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
25824$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
25825else
25826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25827/* end confdefs.h.  */
25828#include <stdatomic.h>
25829int
25830main ()
25831{
25832_Atomic __int128_t x; if (!atomic_is_lock_free(&x)) { return 1; }
25833  ;
25834  return 0;
25835}
25836_ACEOF
25837if ac_fn_c_try_run "$LINENO"; then :
25838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25839$as_echo "yes" >&6; }
25840else
25841  atomic_compare_exchange_result=0
25842               # If this test fails, need to reset CFLAGS/LIBS (the
25843               # above tests atomically set CFLAGS/LIBS or not; this
25844               # test is running after the fact, so we have to undo
25845               # the side-effects of setting CFLAGS/LIBS if the above
25846               # tests passed).
25847               CFLAGS=$atomic_compare_exchange_CFLAGS_save
25848               LIBS=$atomic_compare_exchange_LIBS_save
25849               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25850$as_echo "no" >&6; }
25851fi
25852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25853  conftest.$ac_objext conftest.beam conftest.$ac_ext
25854fi
25855
25856
25857fi
25858
25859
25860cat >>confdefs.h <<_ACEOF
25861#define PMIX_HAVE_C11_CSWAP_INT128 $atomic_compare_exchange_result
25862_ACEOF
25863
25864
25865      if test $atomic_compare_exchange_result -eq 0; then :
25866
25867
25868
25869    # Is the private index set?  If not, set it.
25870    if test "x$pmix_scope_index" = "x"; then
25871        pmix_scope_index=1
25872    fi
25873
25874    # First, check to see if any of these variables are already set.
25875    # This is a simple sanity check to ensure we're not already
25876    # overwriting pre-existing variables (that have a non-empty
25877    # value).  It's not a perfect check, but at least it's something.
25878    for pmix_var in sync_bool_compare_and_swap_128_result; do
25879        pmix_str="pmix_str=\"\$$pmix_var\""
25880        eval $pmix_str
25881
25882        if test "x$pmix_str" != "x"; then
25883            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
25884$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
25885            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
25886$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
25887            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
25888$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
25889            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
25890$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
25891            as_fn_error $? "Cannot continue" "$LINENO" 5
25892        fi
25893    done
25894
25895    # Ok, we passed the simple sanity check.  Save all these names so
25896    # that we can unset them at the end of the scope.
25897    pmix_str="pmix_scope_$pmix_scope_index=\"sync_bool_compare_and_swap_128_result\""
25898    eval $pmix_str
25899    unset pmix_str
25900
25901    env | grep pmix_scope
25902    pmix_scope_index=`expr $pmix_scope_index + 1`
25903
25904
25905  # Do we have __sync_bool_compare_and_swap?
25906  # Use a special macro because we need to check with a few different
25907  # CFLAGS/LIBS.
25908
25909
25910
25911    # Is the private index set?  If not, set it.
25912    if test "x$pmix_scope_index" = "x"; then
25913        pmix_scope_index=1
25914    fi
25915
25916    # First, check to see if any of these variables are already set.
25917    # This is a simple sanity check to ensure we're not already
25918    # overwriting pre-existing variables (that have a non-empty
25919    # value).  It's not a perfect check, but at least it's something.
25920    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
25921        pmix_str="pmix_str=\"\$$pmix_var\""
25922        eval $pmix_str
25923
25924        if test "x$pmix_str" != "x"; then
25925            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
25926$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
25927            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
25928$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
25929            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
25930$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
25931            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
25932$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
25933            as_fn_error $? "Cannot continue" "$LINENO" 5
25934        fi
25935    done
25936
25937    # Ok, we passed the simple sanity check.  Save all these names so
25938    # that we can unset them at the end of the scope.
25939    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
25940    eval $pmix_str
25941    unset pmix_str
25942
25943    env | grep pmix_scope
25944    pmix_scope_index=`expr $pmix_scope_index + 1`
25945
25946
25947    pmix_asm_check_func_CFLAGS_save=$CFLAGS
25948    pmix_asm_check_func_LIBS_save=$LIBS
25949
25950        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5
25951$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; }
25952    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25953/* end confdefs.h.  */
25954
25955#include <stdint.h>
25956#include <stdbool.h>
25957#include <stdlib.h>
25958
25959typedef union {
25960    uint64_t fake[2];
25961    __int128 real;
25962} pmix128;
25963
25964static void test1(void)
25965{
25966    // As of Aug 2018, we could not figure out a way to assign 128-bit
25967    // constants -- the compilers would not accept it.  So use a fake
25968    // union to assign 2 uin64_t's to make a single __int128.
25969    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25970    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
25971    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25972    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
25973    if (!(r == false && ptr.real != newval.real)) {
25974        exit(1);
25975    }
25976}
25977
25978static void test2(void)
25979{
25980    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
25981    pmix128 oldval = ptr;
25982    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
25983    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
25984    if (!(r == true && ptr.real == newval.real)) {
25985        exit(2);
25986    }
25987}
25988
25989int main(int argc, char** argv)
25990{
25991    test1();
25992    test2();
25993    return 0;
25994}
25995
25996_ACEOF
25997if ac_fn_c_try_link "$LINENO"; then :
25998  pmix_asm_check_func_happy=1
25999         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26000$as_echo "yes" >&6; }
26001else
26002  pmix_asm_check_func_happy=0
26003         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26004$as_echo "no" >&6; }
26005fi
26006rm -f core conftest.err conftest.$ac_objext \
26007    conftest$ac_exeext conftest.$ac_ext
26008
26009        if test $pmix_asm_check_func_happy -eq 0; then :
26010  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5
26011$as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; }
26012         CFLAGS="$CFLAGS -mcx16"
26013         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26014/* end confdefs.h.  */
26015
26016#include <stdint.h>
26017#include <stdbool.h>
26018#include <stdlib.h>
26019
26020typedef union {
26021    uint64_t fake[2];
26022    __int128 real;
26023} pmix128;
26024
26025static void test1(void)
26026{
26027    // As of Aug 2018, we could not figure out a way to assign 128-bit
26028    // constants -- the compilers would not accept it.  So use a fake
26029    // union to assign 2 uin64_t's to make a single __int128.
26030    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26031    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
26032    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26033    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
26034    if (!(r == false && ptr.real != newval.real)) {
26035        exit(1);
26036    }
26037}
26038
26039static void test2(void)
26040{
26041    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26042    pmix128 oldval = ptr;
26043    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26044    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
26045    if (!(r == true && ptr.real == newval.real)) {
26046        exit(2);
26047    }
26048}
26049
26050int main(int argc, char** argv)
26051{
26052    test1();
26053    test2();
26054    return 0;
26055}
26056
26057_ACEOF
26058if ac_fn_c_try_link "$LINENO"; then :
26059  pmix_asm_check_func_happy=1
26060              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26061$as_echo "yes" >&6; }
26062else
26063  pmix_asm_check_func_happy=0
26064              CFLAGS=$pmix_asm_check_func_CFLAGS_save
26065              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26066$as_echo "no" >&6; }
26067fi
26068rm -f core conftest.err conftest.$ac_objext \
26069    conftest$ac_exeext conftest.$ac_ext
26070
26071fi
26072
26073        if test $pmix_asm_check_func_happy -eq 0; then :
26074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5
26075$as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; }
26076         LIBS="$LIBS -latomic"
26077         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26078/* end confdefs.h.  */
26079
26080#include <stdint.h>
26081#include <stdbool.h>
26082#include <stdlib.h>
26083
26084typedef union {
26085    uint64_t fake[2];
26086    __int128 real;
26087} pmix128;
26088
26089static void test1(void)
26090{
26091    // As of Aug 2018, we could not figure out a way to assign 128-bit
26092    // constants -- the compilers would not accept it.  So use a fake
26093    // union to assign 2 uin64_t's to make a single __int128.
26094    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26095    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
26096    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26097    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
26098    if (!(r == false && ptr.real != newval.real)) {
26099        exit(1);
26100    }
26101}
26102
26103static void test2(void)
26104{
26105    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26106    pmix128 oldval = ptr;
26107    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26108    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
26109    if (!(r == true && ptr.real == newval.real)) {
26110        exit(2);
26111    }
26112}
26113
26114int main(int argc, char** argv)
26115{
26116    test1();
26117    test2();
26118    return 0;
26119}
26120
26121_ACEOF
26122if ac_fn_c_try_link "$LINENO"; then :
26123  pmix_asm_check_func_happy=1
26124              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26125$as_echo "yes" >&6; }
26126else
26127  pmix_asm_check_func_happy=0
26128              LIBS=$pmix_asm_check_func_LIBS_save
26129              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26130$as_echo "no" >&6; }
26131fi
26132rm -f core conftest.err conftest.$ac_objext \
26133    conftest$ac_exeext conftest.$ac_ext
26134
26135fi
26136
26137                if test $pmix_asm_check_func_happy -eq 1; then :
26138  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5
26139$as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; }
26140         if test "$cross_compiling" = yes; then :
26141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
26142$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
26143else
26144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26145/* end confdefs.h.  */
26146
26147#include <stdint.h>
26148#include <stdbool.h>
26149#include <stdlib.h>
26150
26151typedef union {
26152    uint64_t fake[2];
26153    __int128 real;
26154} pmix128;
26155
26156static void test1(void)
26157{
26158    // As of Aug 2018, we could not figure out a way to assign 128-bit
26159    // constants -- the compilers would not accept it.  So use a fake
26160    // union to assign 2 uin64_t's to make a single __int128.
26161    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26162    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
26163    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26164    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
26165    if (!(r == false && ptr.real != newval.real)) {
26166        exit(1);
26167    }
26168}
26169
26170static void test2(void)
26171{
26172    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26173    pmix128 oldval = ptr;
26174    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26175    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
26176    if (!(r == true && ptr.real == newval.real)) {
26177        exit(2);
26178    }
26179}
26180
26181int main(int argc, char** argv)
26182{
26183    test1();
26184    test2();
26185    return 0;
26186}
26187
26188_ACEOF
26189if ac_fn_c_try_run "$LINENO"; then :
26190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26191$as_echo "yes" >&6; }
26192else
26193  pmix_asm_check_func_happy=0
26194               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26195$as_echo "no" >&6; }
26196fi
26197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26198  conftest.$ac_objext conftest.beam conftest.$ac_ext
26199fi
26200
26201
26202fi
26203
26204        if test $pmix_asm_check_func_happy -eq 0; then :
26205  CFLAGS=$pmix_asm_check_func_CFLAGS_save
26206         LIBS=$pmix_asm_check_func_LIBS_save
26207fi
26208
26209        if test $pmix_asm_check_func_happy -eq 1; then :
26210  sync_bool_compare_and_swap_128_result=1
26211else
26212  sync_bool_compare_and_swap_128_result=0
26213fi
26214
26215
26216    # Unwind the index
26217    pmix_scope_index=`expr $pmix_scope_index - 1`
26218    pmix_scope_test=`expr $pmix_scope_index \> 0`
26219    if test "$pmix_scope_test" = "0"; then
26220        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
26221$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
26222        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
26223$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
26224        as_fn_error $? "Cannot continue" "$LINENO" 5
26225    fi
26226
26227    # Get the variable names from that index
26228    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
26229    eval $pmix_str
26230
26231    # Iterate over all the variables and unset them all
26232    for pmix_var in $pmix_str; do
26233        unset $pmix_var
26234    done
26235
26236
26237
26238
26239cat >>confdefs.h <<_ACEOF
26240#define PMIX_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result
26241_ACEOF
26242
26243
26244
26245    # Unwind the index
26246    pmix_scope_index=`expr $pmix_scope_index - 1`
26247    pmix_scope_test=`expr $pmix_scope_index \> 0`
26248    if test "$pmix_scope_test" = "0"; then
26249        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
26250$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
26251        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
26252$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
26253        as_fn_error $? "Cannot continue" "$LINENO" 5
26254    fi
26255
26256    # Get the variable names from that index
26257    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
26258    eval $pmix_str
26259
26260    # Iterate over all the variables and unset them all
26261    for pmix_var in $pmix_str; do
26262        unset $pmix_var
26263    done
26264
26265
26266fi
26267
26268
26269    # Unwind the index
26270    pmix_scope_index=`expr $pmix_scope_index - 1`
26271    pmix_scope_test=`expr $pmix_scope_index \> 0`
26272    if test "$pmix_scope_test" = "0"; then
26273        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
26274$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
26275        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
26276$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
26277        as_fn_error $? "Cannot continue" "$LINENO" 5
26278    fi
26279
26280    # Get the variable names from that index
26281    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
26282    eval $pmix_str
26283
26284    # Iterate over all the variables and unset them all
26285    for pmix_var in $pmix_str; do
26286        unset $pmix_var
26287    done
26288
26289
26290    elif test "x$enable_c11_atomics" = "xyes"; then
26291        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C11 atomics were requested but are not supported" >&5
26292$as_echo "$as_me: WARNING: C11 atomics were requested but are not supported" >&2;}
26293        as_fn_error $? "Cannot continue" "$LINENO" 5
26294    else
26295        pmix_cv_asm_builtin="BUILTIN_NO"
26296        if test "$pmix_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" = "yes"; then :
26297
26298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic builtin atomics" >&5
26299$as_echo_n "checking for __atomic builtin atomics... " >&6; }
26300
26301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26302/* end confdefs.h.  */
26303
26304#include <stdint.h>
26305uint32_t tmp, old = 0;
26306uint64_t tmp64, old64 = 0;
26307int
26308main ()
26309{
26310
26311__atomic_thread_fence(__ATOMIC_SEQ_CST);
26312__atomic_compare_exchange_n(&tmp, &old, 1, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED);
26313__atomic_add_fetch(&tmp, 1, __ATOMIC_RELAXED);
26314__atomic_compare_exchange_n(&tmp64, &old64, 1, 0, __ATOMIC_RELAXED, __ATOMIC_RELAXED);
26315__atomic_add_fetch(&tmp64, 1, __ATOMIC_RELAXED);
26316  ;
26317  return 0;
26318}
26319_ACEOF
26320if ac_fn_c_try_link "$LINENO"; then :
26321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26322$as_echo "yes" >&6; }
26323     pmix_cv_asm_builtin="BUILTIN_GCC"
26324else
26325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26326$as_echo "no" >&6; }
26327
26328fi
26329rm -f core conftest.err conftest.$ac_objext \
26330    conftest$ac_exeext conftest.$ac_ext
26331
26332  # Check for 128-bit support
26333
26334
26335
26336    # Is the private index set?  If not, set it.
26337    if test "x$pmix_scope_index" = "x"; then
26338        pmix_scope_index=1
26339    fi
26340
26341    # First, check to see if any of these variables are already set.
26342    # This is a simple sanity check to ensure we're not already
26343    # overwriting pre-existing variables (that have a non-empty
26344    # value).  It's not a perfect check, but at least it's something.
26345    for pmix_var in atomic_compare_exchange_n_128_result atomic_compare_exchange_n_128_CFLAGS_save atomic_compare_exchange_n_128_LIBS_save; do
26346        pmix_str="pmix_str=\"\$$pmix_var\""
26347        eval $pmix_str
26348
26349        if test "x$pmix_str" != "x"; then
26350            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
26351$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
26352            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
26353$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
26354            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
26355$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
26356            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
26357$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
26358            as_fn_error $? "Cannot continue" "$LINENO" 5
26359        fi
26360    done
26361
26362    # Ok, we passed the simple sanity check.  Save all these names so
26363    # that we can unset them at the end of the scope.
26364    pmix_str="pmix_scope_$pmix_scope_index=\"atomic_compare_exchange_n_128_result atomic_compare_exchange_n_128_CFLAGS_save atomic_compare_exchange_n_128_LIBS_save\""
26365    eval $pmix_str
26366    unset pmix_str
26367
26368    env | grep pmix_scope
26369    pmix_scope_index=`expr $pmix_scope_index + 1`
26370
26371
26372  atomic_compare_exchange_n_128_CFLAGS_save=$CFLAGS
26373  atomic_compare_exchange_n_128_LIBS_save=$LIBS
26374
26375  # Do we have __sync_bool_compare_and_swap?
26376  # Use a special macro because we need to check with a few different
26377  # CFLAGS/LIBS.
26378
26379
26380
26381    # Is the private index set?  If not, set it.
26382    if test "x$pmix_scope_index" = "x"; then
26383        pmix_scope_index=1
26384    fi
26385
26386    # First, check to see if any of these variables are already set.
26387    # This is a simple sanity check to ensure we're not already
26388    # overwriting pre-existing variables (that have a non-empty
26389    # value).  It's not a perfect check, but at least it's something.
26390    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
26391        pmix_str="pmix_str=\"\$$pmix_var\""
26392        eval $pmix_str
26393
26394        if test "x$pmix_str" != "x"; then
26395            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
26396$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
26397            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
26398$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
26399            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
26400$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
26401            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
26402$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
26403            as_fn_error $? "Cannot continue" "$LINENO" 5
26404        fi
26405    done
26406
26407    # Ok, we passed the simple sanity check.  Save all these names so
26408    # that we can unset them at the end of the scope.
26409    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
26410    eval $pmix_str
26411    unset pmix_str
26412
26413    env | grep pmix_scope
26414    pmix_scope_index=`expr $pmix_scope_index + 1`
26415
26416
26417    pmix_asm_check_func_CFLAGS_save=$CFLAGS
26418    pmix_asm_check_func_LIBS_save=$LIBS
26419
26420        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange_n" >&5
26421$as_echo_n "checking for __atomic_compare_exchange_n... " >&6; }
26422    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26423/* end confdefs.h.  */
26424
26425#include <stdint.h>
26426#include <stdbool.h>
26427#include <stdlib.h>
26428
26429typedef union {
26430    uint64_t fake[2];
26431    __int128 real;
26432} pmix128;
26433
26434static void test1(void)
26435{
26436    // As of Aug 2018, we could not figure out a way to assign 128-bit
26437    // constants -- the compilers would not accept it.  So use a fake
26438    // union to assign 2 uin64_t's to make a single __int128.
26439    pmix128 ptr      = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26440    pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
26441    pmix128 desired  = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26442    bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real,
26443                                         desired.real, true,
26444                                         __ATOMIC_RELAXED, __ATOMIC_RELAXED);
26445    if ( !(r == false && ptr.real == expected.real)) {
26446        exit(1);
26447    }
26448}
26449
26450static void test2(void)
26451{
26452    pmix128 ptr =      { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26453    pmix128 expected = ptr;
26454    pmix128 desired =  { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26455    bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real,
26456                                         desired.real, true,
26457                                         __ATOMIC_RELAXED, __ATOMIC_RELAXED);
26458    if (!(r == true && ptr.real == desired.real)) {
26459        exit(2);
26460    }
26461}
26462
26463int main(int argc, char** argv)
26464{
26465    test1();
26466    test2();
26467    return 0;
26468}
26469
26470_ACEOF
26471if ac_fn_c_try_link "$LINENO"; then :
26472  pmix_asm_check_func_happy=1
26473         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26474$as_echo "yes" >&6; }
26475else
26476  pmix_asm_check_func_happy=0
26477         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26478$as_echo "no" >&6; }
26479fi
26480rm -f core conftest.err conftest.$ac_objext \
26481    conftest$ac_exeext conftest.$ac_ext
26482
26483        if test $pmix_asm_check_func_happy -eq 0; then :
26484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange_n with -mcx16" >&5
26485$as_echo_n "checking for __atomic_compare_exchange_n with -mcx16... " >&6; }
26486         CFLAGS="$CFLAGS -mcx16"
26487         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26488/* end confdefs.h.  */
26489
26490#include <stdint.h>
26491#include <stdbool.h>
26492#include <stdlib.h>
26493
26494typedef union {
26495    uint64_t fake[2];
26496    __int128 real;
26497} pmix128;
26498
26499static void test1(void)
26500{
26501    // As of Aug 2018, we could not figure out a way to assign 128-bit
26502    // constants -- the compilers would not accept it.  So use a fake
26503    // union to assign 2 uin64_t's to make a single __int128.
26504    pmix128 ptr      = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26505    pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
26506    pmix128 desired  = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26507    bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real,
26508                                         desired.real, true,
26509                                         __ATOMIC_RELAXED, __ATOMIC_RELAXED);
26510    if ( !(r == false && ptr.real == expected.real)) {
26511        exit(1);
26512    }
26513}
26514
26515static void test2(void)
26516{
26517    pmix128 ptr =      { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26518    pmix128 expected = ptr;
26519    pmix128 desired =  { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26520    bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real,
26521                                         desired.real, true,
26522                                         __ATOMIC_RELAXED, __ATOMIC_RELAXED);
26523    if (!(r == true && ptr.real == desired.real)) {
26524        exit(2);
26525    }
26526}
26527
26528int main(int argc, char** argv)
26529{
26530    test1();
26531    test2();
26532    return 0;
26533}
26534
26535_ACEOF
26536if ac_fn_c_try_link "$LINENO"; then :
26537  pmix_asm_check_func_happy=1
26538              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26539$as_echo "yes" >&6; }
26540else
26541  pmix_asm_check_func_happy=0
26542              CFLAGS=$pmix_asm_check_func_CFLAGS_save
26543              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26544$as_echo "no" >&6; }
26545fi
26546rm -f core conftest.err conftest.$ac_objext \
26547    conftest$ac_exeext conftest.$ac_ext
26548
26549fi
26550
26551        if test $pmix_asm_check_func_happy -eq 0; then :
26552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange_n with -latomic" >&5
26553$as_echo_n "checking for __atomic_compare_exchange_n with -latomic... " >&6; }
26554         LIBS="$LIBS -latomic"
26555         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26556/* end confdefs.h.  */
26557
26558#include <stdint.h>
26559#include <stdbool.h>
26560#include <stdlib.h>
26561
26562typedef union {
26563    uint64_t fake[2];
26564    __int128 real;
26565} pmix128;
26566
26567static void test1(void)
26568{
26569    // As of Aug 2018, we could not figure out a way to assign 128-bit
26570    // constants -- the compilers would not accept it.  So use a fake
26571    // union to assign 2 uin64_t's to make a single __int128.
26572    pmix128 ptr      = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26573    pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
26574    pmix128 desired  = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26575    bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real,
26576                                         desired.real, true,
26577                                         __ATOMIC_RELAXED, __ATOMIC_RELAXED);
26578    if ( !(r == false && ptr.real == expected.real)) {
26579        exit(1);
26580    }
26581}
26582
26583static void test2(void)
26584{
26585    pmix128 ptr =      { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26586    pmix128 expected = ptr;
26587    pmix128 desired =  { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26588    bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real,
26589                                         desired.real, true,
26590                                         __ATOMIC_RELAXED, __ATOMIC_RELAXED);
26591    if (!(r == true && ptr.real == desired.real)) {
26592        exit(2);
26593    }
26594}
26595
26596int main(int argc, char** argv)
26597{
26598    test1();
26599    test2();
26600    return 0;
26601}
26602
26603_ACEOF
26604if ac_fn_c_try_link "$LINENO"; then :
26605  pmix_asm_check_func_happy=1
26606              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26607$as_echo "yes" >&6; }
26608else
26609  pmix_asm_check_func_happy=0
26610              LIBS=$pmix_asm_check_func_LIBS_save
26611              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26612$as_echo "no" >&6; }
26613fi
26614rm -f core conftest.err conftest.$ac_objext \
26615    conftest$ac_exeext conftest.$ac_ext
26616
26617fi
26618
26619                if test $pmix_asm_check_func_happy -eq 1; then :
26620  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __atomic_compare_exchange_n() gives correct results" >&5
26621$as_echo_n "checking if __atomic_compare_exchange_n() gives correct results... " >&6; }
26622         if test "$cross_compiling" = yes; then :
26623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
26624$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
26625else
26626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26627/* end confdefs.h.  */
26628
26629#include <stdint.h>
26630#include <stdbool.h>
26631#include <stdlib.h>
26632
26633typedef union {
26634    uint64_t fake[2];
26635    __int128 real;
26636} pmix128;
26637
26638static void test1(void)
26639{
26640    // As of Aug 2018, we could not figure out a way to assign 128-bit
26641    // constants -- the compilers would not accept it.  So use a fake
26642    // union to assign 2 uin64_t's to make a single __int128.
26643    pmix128 ptr      = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26644    pmix128 expected = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
26645    pmix128 desired  = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26646    bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real,
26647                                         desired.real, true,
26648                                         __ATOMIC_RELAXED, __ATOMIC_RELAXED);
26649    if ( !(r == false && ptr.real == expected.real)) {
26650        exit(1);
26651    }
26652}
26653
26654static void test2(void)
26655{
26656    pmix128 ptr =      { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26657    pmix128 expected = ptr;
26658    pmix128 desired =  { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26659    bool r = __atomic_compare_exchange_n(&ptr.real, &expected.real,
26660                                         desired.real, true,
26661                                         __ATOMIC_RELAXED, __ATOMIC_RELAXED);
26662    if (!(r == true && ptr.real == desired.real)) {
26663        exit(2);
26664    }
26665}
26666
26667int main(int argc, char** argv)
26668{
26669    test1();
26670    test2();
26671    return 0;
26672}
26673
26674_ACEOF
26675if ac_fn_c_try_run "$LINENO"; then :
26676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26677$as_echo "yes" >&6; }
26678else
26679  pmix_asm_check_func_happy=0
26680               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26681$as_echo "no" >&6; }
26682fi
26683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26684  conftest.$ac_objext conftest.beam conftest.$ac_ext
26685fi
26686
26687
26688fi
26689
26690        if test $pmix_asm_check_func_happy -eq 0; then :
26691  CFLAGS=$pmix_asm_check_func_CFLAGS_save
26692         LIBS=$pmix_asm_check_func_LIBS_save
26693fi
26694
26695        if test $pmix_asm_check_func_happy -eq 1; then :
26696  atomic_compare_exchange_n_128_result=1
26697else
26698  atomic_compare_exchange_n_128_result=0
26699fi
26700
26701
26702    # Unwind the index
26703    pmix_scope_index=`expr $pmix_scope_index - 1`
26704    pmix_scope_test=`expr $pmix_scope_index \> 0`
26705    if test "$pmix_scope_test" = "0"; then
26706        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
26707$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
26708        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
26709$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
26710        as_fn_error $? "Cannot continue" "$LINENO" 5
26711    fi
26712
26713    # Get the variable names from that index
26714    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
26715    eval $pmix_str
26716
26717    # Iterate over all the variables and unset them all
26718    for pmix_var in $pmix_str; do
26719        unset $pmix_var
26720    done
26721
26722
26723
26724  # If we have it and it works, check to make sure it is always lock
26725  # free.
26726  if test $atomic_compare_exchange_n_128_result -eq 1; then :
26727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __int128 atomic compare-and-swap is always lock-free" >&5
26728$as_echo_n "checking if __int128 atomic compare-and-swap is always lock-free... " >&6; }
26729         if test "$cross_compiling" = yes; then :
26730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
26731$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
26732else
26733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26734/* end confdefs.h.  */
26735
26736int
26737main ()
26738{
26739if (!__atomic_always_lock_free(16, 0)) { return 1; }
26740  ;
26741  return 0;
26742}
26743_ACEOF
26744if ac_fn_c_try_run "$LINENO"; then :
26745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26746$as_echo "yes" >&6; }
26747else
26748  atomic_compare_exchange_n_128_result=0
26749               # If this test fails, need to reset CFLAGS/LIBS (the
26750               # above tests atomically set CFLAGS/LIBS or not; this
26751               # test is running after the fact, so we have to undo
26752               # the side-effects of setting CFLAGS/LIBS if the above
26753               # tests passed).
26754               CFLAGS=$atomic_compare_exchange_n_128_CFLAGS_save
26755               LIBS=$atomic_compare_exchange_n_128_LIBS_save
26756               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26757$as_echo "no" >&6; }
26758fi
26759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26760  conftest.$ac_objext conftest.beam conftest.$ac_ext
26761fi
26762
26763
26764fi
26765
26766
26767cat >>confdefs.h <<_ACEOF
26768#define PMIX_HAVE_GCC_BUILTIN_CSWAP_INT128 $atomic_compare_exchange_n_128_result
26769_ACEOF
26770
26771
26772      if test $atomic_compare_exchange_n_128_result -eq 0; then :
26773
26774
26775
26776    # Is the private index set?  If not, set it.
26777    if test "x$pmix_scope_index" = "x"; then
26778        pmix_scope_index=1
26779    fi
26780
26781    # First, check to see if any of these variables are already set.
26782    # This is a simple sanity check to ensure we're not already
26783    # overwriting pre-existing variables (that have a non-empty
26784    # value).  It's not a perfect check, but at least it's something.
26785    for pmix_var in sync_bool_compare_and_swap_128_result; do
26786        pmix_str="pmix_str=\"\$$pmix_var\""
26787        eval $pmix_str
26788
26789        if test "x$pmix_str" != "x"; then
26790            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
26791$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
26792            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
26793$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
26794            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
26795$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
26796            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
26797$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
26798            as_fn_error $? "Cannot continue" "$LINENO" 5
26799        fi
26800    done
26801
26802    # Ok, we passed the simple sanity check.  Save all these names so
26803    # that we can unset them at the end of the scope.
26804    pmix_str="pmix_scope_$pmix_scope_index=\"sync_bool_compare_and_swap_128_result\""
26805    eval $pmix_str
26806    unset pmix_str
26807
26808    env | grep pmix_scope
26809    pmix_scope_index=`expr $pmix_scope_index + 1`
26810
26811
26812  # Do we have __sync_bool_compare_and_swap?
26813  # Use a special macro because we need to check with a few different
26814  # CFLAGS/LIBS.
26815
26816
26817
26818    # Is the private index set?  If not, set it.
26819    if test "x$pmix_scope_index" = "x"; then
26820        pmix_scope_index=1
26821    fi
26822
26823    # First, check to see if any of these variables are already set.
26824    # This is a simple sanity check to ensure we're not already
26825    # overwriting pre-existing variables (that have a non-empty
26826    # value).  It's not a perfect check, but at least it's something.
26827    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
26828        pmix_str="pmix_str=\"\$$pmix_var\""
26829        eval $pmix_str
26830
26831        if test "x$pmix_str" != "x"; then
26832            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
26833$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
26834            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
26835$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
26836            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
26837$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
26838            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
26839$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
26840            as_fn_error $? "Cannot continue" "$LINENO" 5
26841        fi
26842    done
26843
26844    # Ok, we passed the simple sanity check.  Save all these names so
26845    # that we can unset them at the end of the scope.
26846    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
26847    eval $pmix_str
26848    unset pmix_str
26849
26850    env | grep pmix_scope
26851    pmix_scope_index=`expr $pmix_scope_index + 1`
26852
26853
26854    pmix_asm_check_func_CFLAGS_save=$CFLAGS
26855    pmix_asm_check_func_LIBS_save=$LIBS
26856
26857        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5
26858$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; }
26859    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26860/* end confdefs.h.  */
26861
26862#include <stdint.h>
26863#include <stdbool.h>
26864#include <stdlib.h>
26865
26866typedef union {
26867    uint64_t fake[2];
26868    __int128 real;
26869} pmix128;
26870
26871static void test1(void)
26872{
26873    // As of Aug 2018, we could not figure out a way to assign 128-bit
26874    // constants -- the compilers would not accept it.  So use a fake
26875    // union to assign 2 uin64_t's to make a single __int128.
26876    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26877    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
26878    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26879    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
26880    if (!(r == false && ptr.real != newval.real)) {
26881        exit(1);
26882    }
26883}
26884
26885static void test2(void)
26886{
26887    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26888    pmix128 oldval = ptr;
26889    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26890    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
26891    if (!(r == true && ptr.real == newval.real)) {
26892        exit(2);
26893    }
26894}
26895
26896int main(int argc, char** argv)
26897{
26898    test1();
26899    test2();
26900    return 0;
26901}
26902
26903_ACEOF
26904if ac_fn_c_try_link "$LINENO"; then :
26905  pmix_asm_check_func_happy=1
26906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26907$as_echo "yes" >&6; }
26908else
26909  pmix_asm_check_func_happy=0
26910         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26911$as_echo "no" >&6; }
26912fi
26913rm -f core conftest.err conftest.$ac_objext \
26914    conftest$ac_exeext conftest.$ac_ext
26915
26916        if test $pmix_asm_check_func_happy -eq 0; then :
26917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5
26918$as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; }
26919         CFLAGS="$CFLAGS -mcx16"
26920         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26921/* end confdefs.h.  */
26922
26923#include <stdint.h>
26924#include <stdbool.h>
26925#include <stdlib.h>
26926
26927typedef union {
26928    uint64_t fake[2];
26929    __int128 real;
26930} pmix128;
26931
26932static void test1(void)
26933{
26934    // As of Aug 2018, we could not figure out a way to assign 128-bit
26935    // constants -- the compilers would not accept it.  So use a fake
26936    // union to assign 2 uin64_t's to make a single __int128.
26937    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26938    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
26939    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26940    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
26941    if (!(r == false && ptr.real != newval.real)) {
26942        exit(1);
26943    }
26944}
26945
26946static void test2(void)
26947{
26948    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
26949    pmix128 oldval = ptr;
26950    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
26951    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
26952    if (!(r == true && ptr.real == newval.real)) {
26953        exit(2);
26954    }
26955}
26956
26957int main(int argc, char** argv)
26958{
26959    test1();
26960    test2();
26961    return 0;
26962}
26963
26964_ACEOF
26965if ac_fn_c_try_link "$LINENO"; then :
26966  pmix_asm_check_func_happy=1
26967              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26968$as_echo "yes" >&6; }
26969else
26970  pmix_asm_check_func_happy=0
26971              CFLAGS=$pmix_asm_check_func_CFLAGS_save
26972              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26973$as_echo "no" >&6; }
26974fi
26975rm -f core conftest.err conftest.$ac_objext \
26976    conftest$ac_exeext conftest.$ac_ext
26977
26978fi
26979
26980        if test $pmix_asm_check_func_happy -eq 0; then :
26981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5
26982$as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; }
26983         LIBS="$LIBS -latomic"
26984         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26985/* end confdefs.h.  */
26986
26987#include <stdint.h>
26988#include <stdbool.h>
26989#include <stdlib.h>
26990
26991typedef union {
26992    uint64_t fake[2];
26993    __int128 real;
26994} pmix128;
26995
26996static void test1(void)
26997{
26998    // As of Aug 2018, we could not figure out a way to assign 128-bit
26999    // constants -- the compilers would not accept it.  So use a fake
27000    // union to assign 2 uin64_t's to make a single __int128.
27001    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
27002    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
27003    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
27004    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
27005    if (!(r == false && ptr.real != newval.real)) {
27006        exit(1);
27007    }
27008}
27009
27010static void test2(void)
27011{
27012    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
27013    pmix128 oldval = ptr;
27014    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
27015    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
27016    if (!(r == true && ptr.real == newval.real)) {
27017        exit(2);
27018    }
27019}
27020
27021int main(int argc, char** argv)
27022{
27023    test1();
27024    test2();
27025    return 0;
27026}
27027
27028_ACEOF
27029if ac_fn_c_try_link "$LINENO"; then :
27030  pmix_asm_check_func_happy=1
27031              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27032$as_echo "yes" >&6; }
27033else
27034  pmix_asm_check_func_happy=0
27035              LIBS=$pmix_asm_check_func_LIBS_save
27036              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27037$as_echo "no" >&6; }
27038fi
27039rm -f core conftest.err conftest.$ac_objext \
27040    conftest$ac_exeext conftest.$ac_ext
27041
27042fi
27043
27044                if test $pmix_asm_check_func_happy -eq 1; then :
27045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5
27046$as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; }
27047         if test "$cross_compiling" = yes; then :
27048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
27049$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
27050else
27051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27052/* end confdefs.h.  */
27053
27054#include <stdint.h>
27055#include <stdbool.h>
27056#include <stdlib.h>
27057
27058typedef union {
27059    uint64_t fake[2];
27060    __int128 real;
27061} pmix128;
27062
27063static void test1(void)
27064{
27065    // As of Aug 2018, we could not figure out a way to assign 128-bit
27066    // constants -- the compilers would not accept it.  So use a fake
27067    // union to assign 2 uin64_t's to make a single __int128.
27068    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
27069    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
27070    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
27071    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
27072    if (!(r == false && ptr.real != newval.real)) {
27073        exit(1);
27074    }
27075}
27076
27077static void test2(void)
27078{
27079    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
27080    pmix128 oldval = ptr;
27081    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
27082    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
27083    if (!(r == true && ptr.real == newval.real)) {
27084        exit(2);
27085    }
27086}
27087
27088int main(int argc, char** argv)
27089{
27090    test1();
27091    test2();
27092    return 0;
27093}
27094
27095_ACEOF
27096if ac_fn_c_try_run "$LINENO"; then :
27097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27098$as_echo "yes" >&6; }
27099else
27100  pmix_asm_check_func_happy=0
27101               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27102$as_echo "no" >&6; }
27103fi
27104rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27105  conftest.$ac_objext conftest.beam conftest.$ac_ext
27106fi
27107
27108
27109fi
27110
27111        if test $pmix_asm_check_func_happy -eq 0; then :
27112  CFLAGS=$pmix_asm_check_func_CFLAGS_save
27113         LIBS=$pmix_asm_check_func_LIBS_save
27114fi
27115
27116        if test $pmix_asm_check_func_happy -eq 1; then :
27117  sync_bool_compare_and_swap_128_result=1
27118else
27119  sync_bool_compare_and_swap_128_result=0
27120fi
27121
27122
27123    # Unwind the index
27124    pmix_scope_index=`expr $pmix_scope_index - 1`
27125    pmix_scope_test=`expr $pmix_scope_index \> 0`
27126    if test "$pmix_scope_test" = "0"; then
27127        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
27128$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
27129        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
27130$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
27131        as_fn_error $? "Cannot continue" "$LINENO" 5
27132    fi
27133
27134    # Get the variable names from that index
27135    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
27136    eval $pmix_str
27137
27138    # Iterate over all the variables and unset them all
27139    for pmix_var in $pmix_str; do
27140        unset $pmix_var
27141    done
27142
27143
27144
27145
27146cat >>confdefs.h <<_ACEOF
27147#define PMIX_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result
27148_ACEOF
27149
27150
27151
27152    # Unwind the index
27153    pmix_scope_index=`expr $pmix_scope_index - 1`
27154    pmix_scope_test=`expr $pmix_scope_index \> 0`
27155    if test "$pmix_scope_test" = "0"; then
27156        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
27157$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
27158        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
27159$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
27160        as_fn_error $? "Cannot continue" "$LINENO" 5
27161    fi
27162
27163    # Get the variable names from that index
27164    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
27165    eval $pmix_str
27166
27167    # Iterate over all the variables and unset them all
27168    for pmix_var in $pmix_str; do
27169        unset $pmix_var
27170    done
27171
27172
27173fi
27174
27175
27176    # Unwind the index
27177    pmix_scope_index=`expr $pmix_scope_index - 1`
27178    pmix_scope_test=`expr $pmix_scope_index \> 0`
27179    if test "$pmix_scope_test" = "0"; then
27180        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
27181$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
27182        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
27183$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
27184        as_fn_error $? "Cannot continue" "$LINENO" 5
27185    fi
27186
27187    # Get the variable names from that index
27188    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
27189    eval $pmix_str
27190
27191    # Iterate over all the variables and unset them all
27192    for pmix_var in $pmix_str; do
27193        unset $pmix_var
27194    done
27195
27196
27197
27198fi
27199        if test "$pmix_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" = "yes"; then :
27200
27201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5
27202$as_echo_n "checking for __sync builtin atomics... " >&6; }
27203
27204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27205/* end confdefs.h.  */
27206long tmp;
27207int
27208main ()
27209{
27210__sync_synchronize();
27211__sync_bool_compare_and_swap(&tmp, 0, 1);
27212__sync_add_and_fetch(&tmp, 1);
27213  ;
27214  return 0;
27215}
27216_ACEOF
27217if ac_fn_c_try_link "$LINENO"; then :
27218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27219$as_echo "yes" >&6; }
27220     pmix_cv_asm_builtin="BUILTIN_SYNC"
27221else
27222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27223$as_echo "no" >&6; }
27224
27225fi
27226rm -f core conftest.err conftest.$ac_objext \
27227    conftest$ac_exeext conftest.$ac_ext
27228
27229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5
27230$as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; }
27231
27232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27233/* end confdefs.h.  */
27234
27235#include <stdint.h>
27236uint64_t tmp;
27237int
27238main ()
27239{
27240
27241__sync_bool_compare_and_swap(&tmp, 0, 1);
27242__sync_add_and_fetch(&tmp, 1);
27243  ;
27244  return 0;
27245}
27246_ACEOF
27247if ac_fn_c_try_link "$LINENO"; then :
27248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27249$as_echo "yes" >&6; }
27250     pmix_asm_sync_have_64bit=1
27251else
27252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27253$as_echo "no" >&6; }
27254     pmix_asm_sync_have_64bit=0
27255fi
27256rm -f core conftest.err conftest.$ac_objext \
27257    conftest$ac_exeext conftest.$ac_ext
27258
27259
27260cat >>confdefs.h <<_ACEOF
27261#define PMIX_ASM_SYNC_HAVE_64BIT $pmix_asm_sync_have_64bit
27262_ACEOF
27263
27264
27265  # Check for 128-bit support
27266
27267
27268
27269    # Is the private index set?  If not, set it.
27270    if test "x$pmix_scope_index" = "x"; then
27271        pmix_scope_index=1
27272    fi
27273
27274    # First, check to see if any of these variables are already set.
27275    # This is a simple sanity check to ensure we're not already
27276    # overwriting pre-existing variables (that have a non-empty
27277    # value).  It's not a perfect check, but at least it's something.
27278    for pmix_var in sync_bool_compare_and_swap_128_result; do
27279        pmix_str="pmix_str=\"\$$pmix_var\""
27280        eval $pmix_str
27281
27282        if test "x$pmix_str" != "x"; then
27283            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
27284$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
27285            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
27286$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
27287            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
27288$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
27289            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
27290$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
27291            as_fn_error $? "Cannot continue" "$LINENO" 5
27292        fi
27293    done
27294
27295    # Ok, we passed the simple sanity check.  Save all these names so
27296    # that we can unset them at the end of the scope.
27297    pmix_str="pmix_scope_$pmix_scope_index=\"sync_bool_compare_and_swap_128_result\""
27298    eval $pmix_str
27299    unset pmix_str
27300
27301    env | grep pmix_scope
27302    pmix_scope_index=`expr $pmix_scope_index + 1`
27303
27304
27305  # Do we have __sync_bool_compare_and_swap?
27306  # Use a special macro because we need to check with a few different
27307  # CFLAGS/LIBS.
27308
27309
27310
27311    # Is the private index set?  If not, set it.
27312    if test "x$pmix_scope_index" = "x"; then
27313        pmix_scope_index=1
27314    fi
27315
27316    # First, check to see if any of these variables are already set.
27317    # This is a simple sanity check to ensure we're not already
27318    # overwriting pre-existing variables (that have a non-empty
27319    # value).  It's not a perfect check, but at least it's something.
27320    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
27321        pmix_str="pmix_str=\"\$$pmix_var\""
27322        eval $pmix_str
27323
27324        if test "x$pmix_str" != "x"; then
27325            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
27326$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
27327            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
27328$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
27329            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
27330$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
27331            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
27332$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
27333            as_fn_error $? "Cannot continue" "$LINENO" 5
27334        fi
27335    done
27336
27337    # Ok, we passed the simple sanity check.  Save all these names so
27338    # that we can unset them at the end of the scope.
27339    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
27340    eval $pmix_str
27341    unset pmix_str
27342
27343    env | grep pmix_scope
27344    pmix_scope_index=`expr $pmix_scope_index + 1`
27345
27346
27347    pmix_asm_check_func_CFLAGS_save=$CFLAGS
27348    pmix_asm_check_func_LIBS_save=$LIBS
27349
27350        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5
27351$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; }
27352    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27353/* end confdefs.h.  */
27354
27355#include <stdint.h>
27356#include <stdbool.h>
27357#include <stdlib.h>
27358
27359typedef union {
27360    uint64_t fake[2];
27361    __int128 real;
27362} pmix128;
27363
27364static void test1(void)
27365{
27366    // As of Aug 2018, we could not figure out a way to assign 128-bit
27367    // constants -- the compilers would not accept it.  So use a fake
27368    // union to assign 2 uin64_t's to make a single __int128.
27369    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
27370    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
27371    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
27372    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
27373    if (!(r == false && ptr.real != newval.real)) {
27374        exit(1);
27375    }
27376}
27377
27378static void test2(void)
27379{
27380    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
27381    pmix128 oldval = ptr;
27382    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
27383    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
27384    if (!(r == true && ptr.real == newval.real)) {
27385        exit(2);
27386    }
27387}
27388
27389int main(int argc, char** argv)
27390{
27391    test1();
27392    test2();
27393    return 0;
27394}
27395
27396_ACEOF
27397if ac_fn_c_try_link "$LINENO"; then :
27398  pmix_asm_check_func_happy=1
27399         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27400$as_echo "yes" >&6; }
27401else
27402  pmix_asm_check_func_happy=0
27403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27404$as_echo "no" >&6; }
27405fi
27406rm -f core conftest.err conftest.$ac_objext \
27407    conftest$ac_exeext conftest.$ac_ext
27408
27409        if test $pmix_asm_check_func_happy -eq 0; then :
27410  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5
27411$as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; }
27412         CFLAGS="$CFLAGS -mcx16"
27413         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27414/* end confdefs.h.  */
27415
27416#include <stdint.h>
27417#include <stdbool.h>
27418#include <stdlib.h>
27419
27420typedef union {
27421    uint64_t fake[2];
27422    __int128 real;
27423} pmix128;
27424
27425static void test1(void)
27426{
27427    // As of Aug 2018, we could not figure out a way to assign 128-bit
27428    // constants -- the compilers would not accept it.  So use a fake
27429    // union to assign 2 uin64_t's to make a single __int128.
27430    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
27431    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
27432    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
27433    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
27434    if (!(r == false && ptr.real != newval.real)) {
27435        exit(1);
27436    }
27437}
27438
27439static void test2(void)
27440{
27441    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
27442    pmix128 oldval = ptr;
27443    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
27444    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
27445    if (!(r == true && ptr.real == newval.real)) {
27446        exit(2);
27447    }
27448}
27449
27450int main(int argc, char** argv)
27451{
27452    test1();
27453    test2();
27454    return 0;
27455}
27456
27457_ACEOF
27458if ac_fn_c_try_link "$LINENO"; then :
27459  pmix_asm_check_func_happy=1
27460              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27461$as_echo "yes" >&6; }
27462else
27463  pmix_asm_check_func_happy=0
27464              CFLAGS=$pmix_asm_check_func_CFLAGS_save
27465              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27466$as_echo "no" >&6; }
27467fi
27468rm -f core conftest.err conftest.$ac_objext \
27469    conftest$ac_exeext conftest.$ac_ext
27470
27471fi
27472
27473        if test $pmix_asm_check_func_happy -eq 0; then :
27474  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5
27475$as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; }
27476         LIBS="$LIBS -latomic"
27477         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27478/* end confdefs.h.  */
27479
27480#include <stdint.h>
27481#include <stdbool.h>
27482#include <stdlib.h>
27483
27484typedef union {
27485    uint64_t fake[2];
27486    __int128 real;
27487} pmix128;
27488
27489static void test1(void)
27490{
27491    // As of Aug 2018, we could not figure out a way to assign 128-bit
27492    // constants -- the compilers would not accept it.  So use a fake
27493    // union to assign 2 uin64_t's to make a single __int128.
27494    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
27495    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
27496    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
27497    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
27498    if (!(r == false && ptr.real != newval.real)) {
27499        exit(1);
27500    }
27501}
27502
27503static void test2(void)
27504{
27505    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
27506    pmix128 oldval = ptr;
27507    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
27508    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
27509    if (!(r == true && ptr.real == newval.real)) {
27510        exit(2);
27511    }
27512}
27513
27514int main(int argc, char** argv)
27515{
27516    test1();
27517    test2();
27518    return 0;
27519}
27520
27521_ACEOF
27522if ac_fn_c_try_link "$LINENO"; then :
27523  pmix_asm_check_func_happy=1
27524              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27525$as_echo "yes" >&6; }
27526else
27527  pmix_asm_check_func_happy=0
27528              LIBS=$pmix_asm_check_func_LIBS_save
27529              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27530$as_echo "no" >&6; }
27531fi
27532rm -f core conftest.err conftest.$ac_objext \
27533    conftest$ac_exeext conftest.$ac_ext
27534
27535fi
27536
27537                if test $pmix_asm_check_func_happy -eq 1; then :
27538  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5
27539$as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; }
27540         if test "$cross_compiling" = yes; then :
27541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
27542$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
27543else
27544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27545/* end confdefs.h.  */
27546
27547#include <stdint.h>
27548#include <stdbool.h>
27549#include <stdlib.h>
27550
27551typedef union {
27552    uint64_t fake[2];
27553    __int128 real;
27554} pmix128;
27555
27556static void test1(void)
27557{
27558    // As of Aug 2018, we could not figure out a way to assign 128-bit
27559    // constants -- the compilers would not accept it.  So use a fake
27560    // union to assign 2 uin64_t's to make a single __int128.
27561    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
27562    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
27563    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
27564    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
27565    if (!(r == false && ptr.real != newval.real)) {
27566        exit(1);
27567    }
27568}
27569
27570static void test2(void)
27571{
27572    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
27573    pmix128 oldval = ptr;
27574    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
27575    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
27576    if (!(r == true && ptr.real == newval.real)) {
27577        exit(2);
27578    }
27579}
27580
27581int main(int argc, char** argv)
27582{
27583    test1();
27584    test2();
27585    return 0;
27586}
27587
27588_ACEOF
27589if ac_fn_c_try_run "$LINENO"; then :
27590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27591$as_echo "yes" >&6; }
27592else
27593  pmix_asm_check_func_happy=0
27594               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27595$as_echo "no" >&6; }
27596fi
27597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27598  conftest.$ac_objext conftest.beam conftest.$ac_ext
27599fi
27600
27601
27602fi
27603
27604        if test $pmix_asm_check_func_happy -eq 0; then :
27605  CFLAGS=$pmix_asm_check_func_CFLAGS_save
27606         LIBS=$pmix_asm_check_func_LIBS_save
27607fi
27608
27609        if test $pmix_asm_check_func_happy -eq 1; then :
27610  sync_bool_compare_and_swap_128_result=1
27611else
27612  sync_bool_compare_and_swap_128_result=0
27613fi
27614
27615
27616    # Unwind the index
27617    pmix_scope_index=`expr $pmix_scope_index - 1`
27618    pmix_scope_test=`expr $pmix_scope_index \> 0`
27619    if test "$pmix_scope_test" = "0"; then
27620        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
27621$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
27622        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
27623$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
27624        as_fn_error $? "Cannot continue" "$LINENO" 5
27625    fi
27626
27627    # Get the variable names from that index
27628    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
27629    eval $pmix_str
27630
27631    # Iterate over all the variables and unset them all
27632    for pmix_var in $pmix_str; do
27633        unset $pmix_var
27634    done
27635
27636
27637
27638
27639cat >>confdefs.h <<_ACEOF
27640#define PMIX_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result
27641_ACEOF
27642
27643
27644
27645    # Unwind the index
27646    pmix_scope_index=`expr $pmix_scope_index - 1`
27647    pmix_scope_test=`expr $pmix_scope_index \> 0`
27648    if test "$pmix_scope_test" = "0"; then
27649        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
27650$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
27651        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
27652$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
27653        as_fn_error $? "Cannot continue" "$LINENO" 5
27654    fi
27655
27656    # Get the variable names from that index
27657    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
27658    eval $pmix_str
27659
27660    # Iterate over all the variables and unset them all
27661    for pmix_var in $pmix_str; do
27662        unset $pmix_var
27663    done
27664
27665
27666
27667fi
27668        if test "$pmix_cv_asm_builtin" = "BUILTIN_NO" && test "$enable_builtin_atomics" = "yes"; then :
27669  as_fn_error $? "__sync builtin atomics requested but not found." "$LINENO" 5
27670fi
27671    fi
27672
27673
27674    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .proc/endp is needed" >&5
27675$as_echo_n "checking if .proc/endp is needed... " >&6; }
27676if ${pmix_cv_asm_need_proc+:} false; then :
27677  $as_echo_n "(cached) " >&6
27678else
27679  pmix_cv_asm_need_proc="no"
27680                    cat >conftest.s <<EOF
27681
27682     .proc mysym
27683mysym:
27684     .endp mysym
27685EOF
27686if test "$CC" = "$CCAS" ; then
27687    pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
27688else
27689    pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
27690fi
27691if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5
27692  (eval $pmix_assemble) 2>&5
27693  ac_status=$?
27694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27695  test $ac_status = 0; }; then
27696  # save the warnings
27697  cat conftest.out >&5
27698  pmix_cv_asm_need_proc="yes"
27699else
27700  # save compiler output and failed program
27701  cat conftest.out >&5
27702  echo "configure: failed program was:" >&5
27703  cat conftest.s >&5
27704  :
27705fi
27706rm -rf conftest*
27707unset pmix_assemble
27708
27709                    rm -f conftest.out
27710fi
27711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_need_proc" >&5
27712$as_echo "$pmix_cv_asm_need_proc" >&6; }
27713
27714    if test "$pmix_cv_asm_need_proc" = "yes" ; then
27715       pmix_cv_asm_proc=".proc"
27716       pmix_cv_asm_endproc=".endp"
27717    else
27718       pmix_cv_asm_proc="#"
27719       pmix_cv_asm_endproc="#"
27720    fi
27721
27722
27723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking directive for setting text section" >&5
27724$as_echo_n "checking directive for setting text section... " >&6; }
27725    pmix_cv_asm_text=""
27726    if test "$pmix_cv_c_compiler_vendor" = "microsoft" ; then
27727        # text section will be brought in with the rest of
27728        # header for MS - leave blank for now
27729        pmix_cv_asm_text=""
27730    else
27731        case $host in
27732            *-aix*)
27733                pmix_cv_asm_text=".csect .text[PR]"
27734            ;;
27735            *)
27736                pmix_cv_asm_text=".text"
27737            ;;
27738        esac
27739    fi
27740    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_text" >&5
27741$as_echo "$pmix_cv_asm_text" >&6; }
27742
27743cat >>confdefs.h <<_ACEOF
27744#define PMIX_ASM_TEXT "$pmix_cv_asm_text"
27745_ACEOF
27746
27747    PMIX_ASM_TEXT="$pmix_cv_asm_text"
27748
27749
27750
27751    { $as_echo "$as_me:${as_lineno-$LINENO}: checking directive for exporting symbols" >&5
27752$as_echo_n "checking directive for exporting symbols... " >&6; }
27753    pmix_cv_asm_global=""
27754    if test "$pmix_cv_c_compiler_vendor" = "microsoft" ; then
27755        pmix_cv_asm_global="PUBLIC"
27756    else
27757        case $host in
27758            *)
27759                pmix_cv_asm_global=".globl"
27760            ;;
27761        esac
27762    fi
27763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_global" >&5
27764$as_echo "$pmix_cv_asm_global" >&6; }
27765
27766cat >>confdefs.h <<_ACEOF
27767#define PMIX_ASM_GLOBAL "$pmix_cv_asm_global"
27768_ACEOF
27769
27770    PMIX_ASM_GLOBAL="$pmix_cv_asm_global"
27771
27772
27773
27774
27775
27776    # Extract the first word of "objdump", so it can be a program name with args.
27777set dummy objdump; ac_word=$2
27778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27779$as_echo_n "checking for $ac_word... " >&6; }
27780if ${ac_cv_prog_OBJDUMP+:} false; then :
27781  $as_echo_n "(cached) " >&6
27782else
27783  if test -n "$OBJDUMP"; then
27784  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
27785else
27786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27787for as_dir in $PATH
27788do
27789  IFS=$as_save_IFS
27790  test -z "$as_dir" && as_dir=.
27791    for ac_exec_ext in '' $ac_executable_extensions; do
27792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27793    ac_cv_prog_OBJDUMP="objdump"
27794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27795    break 2
27796  fi
27797done
27798  done
27799IFS=$as_save_IFS
27800
27801fi
27802fi
27803OBJDUMP=$ac_cv_prog_OBJDUMP
27804if test -n "$OBJDUMP"; then
27805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
27806$as_echo "$OBJDUMP" >&6; }
27807else
27808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27809$as_echo "no" >&6; }
27810fi
27811
27812
27813    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .note.GNU-stack is needed" >&5
27814$as_echo_n "checking if .note.GNU-stack is needed... " >&6; }
27815if ${pmix_cv_asm_gnu_stack_result+:} false; then :
27816  $as_echo_n "(cached) " >&6
27817else
27818  if test "$OBJDUMP" != ""; then :
27819   # first, see if a simple C program has it set
27820             cat >conftest.c <<EOF
27821int testfunc() {return 0; }
27822EOF
27823
27824# 1 is the command
27825# 2 is actions to do if success
27826# 3 is actions to do if fail
27827echo "configure:27821: $CC $CFLAGS -c conftest.c -o conftest.$OBJEXT" >&5
27828$CC $CFLAGS -c conftest.c -o conftest.$OBJEXT 1>&5 2>&1
27829pmix_status=$?
27830
27831# 1 is the message
27832# 2 is whether to put a prefix or not
27833if test -n "1"; then
27834    echo "configure:27828: \$? = $pmix_status" >&5
27835else
27836    echo \$? = $pmix_status >&5
27837fi
27838if test "$pmix_status" = "0"; then
27839    unset pmix_status
27840    $OBJDUMP -x conftest.$OBJEXT | $GREP '\.note\.GNU-stack' > /dev/null && pmix_cv_asm_gnu_stack_result=yes
27841else
27842    unset pmix_status
27843
27844# 1 is the message
27845# 2 is whether to put a prefix or not
27846if test -n "1"; then
27847    echo "configure:27841: the failed program was:" >&5
27848else
27849    echo the failed program was: >&5
27850fi
27851
27852# 1 is the filename
27853if test -n "conftest.c" && test -f "conftest.c"; then
27854    cat conftest.c >&5
27855fi
27856                  pmix_cv_asm_gnu_stack_result=no
27857fi
27858             if test "$pmix_cv_asm_gnu_stack_result" != "yes" ; then
27859                 pmix_cv_asm_gnu_stack_result="no"
27860             fi
27861             rm -rf conftest.*
27862else
27863  pmix_cv_asm_gnu_stack_result="no"
27864fi
27865fi
27866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_gnu_stack_result" >&5
27867$as_echo "$pmix_cv_asm_gnu_stack_result" >&6; }
27868    if test "$pmix_cv_asm_gnu_stack_result" = "yes" ; then
27869        pmix_cv_asm_gnu_stack=1
27870    else
27871        pmix_cv_asm_gnu_stack=0
27872    fi
27873
27874
27875    { $as_echo "$as_me:${as_lineno-$LINENO}: checking suffix for labels" >&5
27876$as_echo_n "checking suffix for labels... " >&6; }
27877    pmix_cv_asm_label_suffix=""
27878    case $host in
27879        *)
27880                pmix_cv_asm_label_suffix=":"
27881        ;;
27882    esac
27883    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_label_suffix" >&5
27884$as_echo "$pmix_cv_asm_label_suffix" >&6; }
27885
27886cat >>confdefs.h <<_ACEOF
27887#define PMIX_ASM_LABEL_SUFFIX "$pmix_cv_asm_label_suffix"
27888_ACEOF
27889
27890    PMIX_ASM_LABEL_SUFFIX="$pmix_cv_asm_label_suffix"
27891
27892
27893
27894    { $as_echo "$as_me:${as_lineno-$LINENO}: checking prefix for global symbol labels" >&5
27895$as_echo_n "checking prefix for global symbol labels... " >&6; }
27896if ${pmix_cv_asm_gsym+:} false; then :
27897  $as_echo_n "(cached) " >&6
27898else
27899
27900    pmix_cv_asm_gsym="none"
27901
27902    for sym in "_" "" "." ; do
27903        asm_result=0
27904        echo "configure: trying $sym" >&5
27905cat > conftest_c.c <<EOF
27906#ifdef __cplusplus
27907extern "C" {
27908#endif
27909void gsym_test_func(void);
27910#ifdef __cplusplus
27911}
27912#endif
27913int
27914main()
27915{
27916    gsym_test_func();
27917    return 0;
27918}
27919EOF
27920        cat >conftest.s <<EOF
27921
27922$pmix_cv_asm_text
27923$pmix_cv_asm_proc ${sym}gsym_test_func
27924$pmix_cv_asm_global ${sym}gsym_test_func
27925${sym}gsym_test_func${pmix_cv_asm_label_suffix}
27926$pmix_cv_asm_endproc ${sym}gsym_test_func
27927
27928EOF
27929if test "$CC" = "$CCAS" ; then
27930    pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
27931else
27932    pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
27933fi
27934if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5
27935  (eval $pmix_assemble) 2>&5
27936  ac_status=$?
27937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27938  test $ac_status = 0; }; then
27939  # save the warnings
27940  cat conftest.out >&5
27941  pmix_compile="$CC $CFLAGS -I. conftest_c.c -c > conftest.cmpl 2>&1"
27942             if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_compile\""; } >&5
27943  (eval $pmix_compile) 2>&5
27944  ac_status=$?
27945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27946  test $ac_status = 0; } ; then
27947                # save the warnings
27948                 cat conftest.cmpl >&5
27949                 pmix_link="$CC $CFLAGS conftest_c.$OBJEXT conftest.$OBJEXT -o conftest  $LDFLAGS $LIBS > conftest.link 2>&1"
27950                 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_link\""; } >&5
27951  (eval $pmix_link) 2>&5
27952  ac_status=$?
27953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27954  test $ac_status = 0; } ; then
27955                     # save the warnings
27956                     cat conftest.link >&5
27957                     asm_result=1
27958                 else
27959                     cat conftest.link >&5
27960                     echo "configure: failed C program was: " >&5
27961                     cat conftest_c.c >&5
27962                     echo "configure: failed ASM program was: " >&5
27963                     cat conftest.s >&5
27964                     asm_result=0
27965                 fi
27966             else
27967                # save output and failed program
27968                 cat conftest.cmpl >&5
27969                 echo "configure: failed C program was: " >&5
27970                 cat conftest.c >&5
27971                 asm_result=0
27972             fi
27973else
27974  # save compiler output and failed program
27975  cat conftest.out >&5
27976  echo "configure: failed program was:" >&5
27977  cat conftest.s >&5
27978  asm_result=0
27979fi
27980rm -rf conftest*
27981unset pmix_assemble
27982
27983        if test "$asm_result" = "1" ; then
27984            pmix_cv_asm_gsym="$sym"
27985            break
27986        fi
27987    done
27988    rm -rf conftest.*
27989
27990fi
27991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_gsym" >&5
27992$as_echo "$pmix_cv_asm_gsym" >&6; }
27993
27994    if test "$pmix_cv_asm_gsym" = "none" ; then
27995       as_fn_error $? "Could not determine global symbol label prefix" "$LINENO" 5
27996    fi
27997
27998
27999cat >>confdefs.h <<_ACEOF
28000#define PMIX_ASM_GSYM "$pmix_cv_asm_gsym"
28001_ACEOF
28002
28003    PMIX_ASM_GSYM="$pmix_cv_asm_gsym"
28004
28005
28006
28007
28008
28009
28010    { $as_echo "$as_me:${as_lineno-$LINENO}: checking prefix for lsym labels" >&5
28011$as_echo_n "checking prefix for lsym labels... " >&6; }
28012if ${pmix_cv_asm_lsym+:} false; then :
28013  $as_echo_n "(cached) " >&6
28014else
28015
28016
28017
28018    pmix_cv_asm_lsym="L"
28019
28020    for sym in L .L $ L$ ; do
28021        asm_result=0
28022        echo "configure: trying $sym" >&5
28023        cat >conftest.s <<EOF
28024foobar$pmix_cv_asm_label_suffix
28025${sym}mytestlabel$pmix_cv_asm_label_suffix
28026EOF
28027if test "$CC" = "$CCAS" ; then
28028    pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
28029else
28030    pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
28031fi
28032if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5
28033  (eval $pmix_assemble) 2>&5
28034  ac_status=$?
28035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28036  test $ac_status = 0; }; then
28037  # save the warnings
28038  cat conftest.out >&5
28039  # ok, we succeeded at assembling.  see if we can nm,
28040             # throwing the results in a file
28041            if $NM conftest.$OBJEXT > conftest.out 2>&5 ; then
28042                if test "`$GREP mytestlabel conftest.out`" = "" ; then
28043                    # there was no symbol...  looks promising to me
28044                    pmix_cv_asm_lsym="$sym"
28045                    asm_result=1
28046                elif test "`$GREP ' [Nt] .*mytestlabel' conftest.out`" = "" ; then
28047                    # see if we have a non-global-ish symbol
28048                    # but we should see if we can do better.
28049                    pmix_cv_asm_lsym="$sym"
28050                fi
28051            else
28052                # not so much on the NM goodness :/
28053                echo "$NM failed.  Output from NM was:" >&5
28054                cat conftest.out >&5
28055                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $NM could not read object file" >&5
28056$as_echo "$as_me: WARNING: $NM could not read object file" >&2;}
28057            fi
28058
28059else
28060  # save compiler output and failed program
28061  cat conftest.out >&5
28062  echo "configure: failed program was:" >&5
28063  cat conftest.s >&5
28064  :
28065fi
28066rm -rf conftest*
28067unset pmix_assemble
28068
28069        if test "$asm_result" = "1" ; then
28070            break
28071        fi
28072    done
28073    rm -f conftest.out
28074    unset asm_result sym
28075
28076fi
28077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_lsym" >&5
28078$as_echo "$pmix_cv_asm_lsym" >&6; }
28079
28080cat >>confdefs.h <<_ACEOF
28081#define PMIX_ASM_LSYM "$pmix_cv_asm_lsym"
28082_ACEOF
28083
28084    PMIX_ASM_LSYM="$pmix_cv_asm_lsym"
28085
28086
28087
28088        { $as_echo "$as_me:${as_lineno-$LINENO}: checking prefix for function in .type" >&5
28089$as_echo_n "checking prefix for function in .type... " >&6; }
28090if ${pmix_cv_asm_type+:} false; then :
28091  $as_echo_n "(cached) " >&6
28092else
28093
28094    pmix_cv_asm_type=""
28095
28096    case "${host}" in
28097    *-sun-solaris*)
28098        # GCC on solaris seems to accept just about anything, not
28099        # that what it defines actually works...  So just hardwire
28100        # to the right answer
28101        pmix_cv_asm_type="#"
28102    ;;
28103    *)
28104        for type  in @ \# % ; do
28105            asm_result=0
28106            echo "configure: trying $type" >&5
28107            cat >conftest.s <<EOF
28108     .type mysym, ${type}function
28109mysym:
28110EOF
28111if test "$CC" = "$CCAS" ; then
28112    pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
28113else
28114    pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
28115fi
28116if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5
28117  (eval $pmix_assemble) 2>&5
28118  ac_status=$?
28119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28120  test $ac_status = 0; }; then
28121  # save the warnings
28122  cat conftest.out >&5
28123  pmix_cv_asm_type="${type}"
28124                    asm_result=1
28125else
28126  # save compiler output and failed program
28127  cat conftest.out >&5
28128  echo "configure: failed program was:" >&5
28129  cat conftest.s >&5
28130  :
28131fi
28132rm -rf conftest*
28133unset pmix_assemble
28134
28135            if test "$asm_result" = "1" ; then
28136                break
28137            fi
28138        done
28139    ;;
28140    esac
28141    rm -f conftest.out
28142
28143    unset asm_result type
28144
28145fi
28146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_type" >&5
28147$as_echo "$pmix_cv_asm_type" >&6; }
28148
28149
28150cat >>confdefs.h <<_ACEOF
28151#define PMIX_ASM_TYPE "$pmix_cv_asm_type"
28152_ACEOF
28153
28154    PMIX_ASM_TYPE="$pmix_cv_asm_type"
28155
28156
28157
28158    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .size is needed" >&5
28159$as_echo_n "checking if .size is needed... " >&6; }
28160if ${pmix_cv_asm_need_size+:} false; then :
28161  $as_echo_n "(cached) " >&6
28162else
28163  pmix_cv_asm_need_size="no"
28164                    cat >conftest.s <<EOF
28165     .size mysym, 1
28166EOF
28167if test "$CC" = "$CCAS" ; then
28168    pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
28169else
28170    pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
28171fi
28172if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5
28173  (eval $pmix_assemble) 2>&5
28174  ac_status=$?
28175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28176  test $ac_status = 0; }; then
28177  # save the warnings
28178  cat conftest.out >&5
28179  pmix_cv_asm_need_size="yes"
28180else
28181  # save compiler output and failed program
28182  cat conftest.out >&5
28183  echo "configure: failed program was:" >&5
28184  cat conftest.s >&5
28185  :
28186fi
28187rm -rf conftest*
28188unset pmix_assemble
28189
28190                    rm -f conftest.out
28191fi
28192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_need_size" >&5
28193$as_echo "$pmix_cv_asm_need_size" >&6; }
28194
28195    if test "$pmix_cv_asm_need_size" = "yes" ; then
28196       pmix_asm_size=1
28197    else
28198       pmix_asm_size=0
28199    fi
28200
28201
28202cat >>confdefs.h <<_ACEOF
28203#define PMIX_ASM_SIZE "$pmix_asm_size"
28204_ACEOF
28205
28206    PMIX_ASM_SIZE="$pmix_asm_size"
28207
28208    unset asm_result
28209
28210
28211
28212
28213
28214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align directive takes logarithmic value" >&5
28215$as_echo_n "checking if .align directive takes logarithmic value... " >&6; }
28216if ${pmix_cv_asm_align_log+:} false; then :
28217  $as_echo_n "(cached) " >&6
28218else
28219   cat >conftest.s <<EOF
28220        $pmix_cv_asm_text
28221        .align 4
28222        $pmix_cv_asm_global foo
28223        .byte 1
28224        .align 4
28225foo$pmix_cv_asm_label_suffix
28226        .byte 2
28227EOF
28228if test "$CC" = "$CCAS" ; then
28229    pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
28230else
28231    pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
28232fi
28233if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5
28234  (eval $pmix_assemble) 2>&5
28235  ac_status=$?
28236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28237  test $ac_status = 0; }; then
28238  # save the warnings
28239  cat conftest.out >&5
28240  pmix_asm_addr=`$NM conftest.$OBJEXT | $GREP foo | sed -e 's/.*\([0-9a-fA-F][0-9a-fA-F]\).*foo.*/\1/'`
28241else
28242  # save compiler output and failed program
28243  cat conftest.out >&5
28244  echo "configure: failed program was:" >&5
28245  cat conftest.s >&5
28246  pmix_asm_addr=""
28247fi
28248rm -rf conftest*
28249unset pmix_assemble
28250
28251    # test for both 16 and 10 (decimal and hex notations)
28252    echo "configure: .align test address offset is $pmix_asm_addr" >&5
28253    if test "$pmix_asm_addr" = "16" || test "$pmix_asm_addr" = "10" ; then
28254       pmix_cv_asm_align_log="yes"
28255    else
28256        pmix_cv_asm_align_log="no"
28257    fi
28258fi
28259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_align_log" >&5
28260$as_echo "$pmix_cv_asm_align_log" >&6; }
28261
28262    if test "$pmix_cv_asm_align_log" = "yes" || test "$pmix_cv_asm_align_log" = "1" ; then
28263        pmix_asm_align_log_result=1
28264    else
28265        pmix_asm_align_log_result=0
28266    fi
28267
28268
28269cat >>confdefs.h <<_ACEOF
28270#define PMIX_ASM_ALIGN_LOG $asm_align_log_result
28271_ACEOF
28272
28273
28274    unset omp_asm_addr asm_result
28275
28276
28277        # find our architecture for purposes of assembly stuff
28278        pmix_cv_asm_arch="UNSUPPORTED"
28279        PMIX_GCC_INLINE_ASSIGN=""
28280        PMIX_ASM_SUPPORT_64BIT=0
28281        case "${host}" in
28282        x86_64-*x32)
28283            pmix_cv_asm_arch="X86_64"
28284            PMIX_ASM_SUPPORT_64BIT=1
28285            PMIX_GCC_INLINE_ASSIGN='"xaddl %1,%0" : "=m"(ret), "+r"(negone) : "m"(ret)'
28286            ;;
28287        i?86-*|x86_64*|amd64*)
28288            if test "$ac_cv_sizeof_long" = "4" ; then
28289                pmix_cv_asm_arch="IA32"
28290            else
28291                pmix_cv_asm_arch="X86_64"
28292            fi
28293            PMIX_ASM_SUPPORT_64BIT=1
28294            PMIX_GCC_INLINE_ASSIGN='"xaddl %1,%0" : "=m"(ret), "+r"(negone) : "m"(ret)'
28295
28296
28297
28298    # Is the private index set?  If not, set it.
28299    if test "x$pmix_scope_index" = "x"; then
28300        pmix_scope_index=1
28301    fi
28302
28303    # First, check to see if any of these variables are already set.
28304    # This is a simple sanity check to ensure we're not already
28305    # overwriting pre-existing variables (that have a non-empty
28306    # value).  It's not a perfect check, but at least it's something.
28307    for pmix_var in cmpxchg16b_result; do
28308        pmix_str="pmix_str=\"\$$pmix_var\""
28309        eval $pmix_str
28310
28311        if test "x$pmix_str" != "x"; then
28312            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
28313$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
28314            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
28315$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
28316            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
28317$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
28318            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
28319$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
28320            as_fn_error $? "Cannot continue" "$LINENO" 5
28321        fi
28322    done
28323
28324    # Ok, we passed the simple sanity check.  Save all these names so
28325    # that we can unset them at the end of the scope.
28326    pmix_str="pmix_scope_$pmix_scope_index=\"cmpxchg16b_result\""
28327    eval $pmix_str
28328    unset pmix_str
28329
28330    env | grep pmix_scope
28331    pmix_scope_index=`expr $pmix_scope_index + 1`
28332
28333
28334
28335
28336
28337    # Is the private index set?  If not, set it.
28338    if test "x$pmix_scope_index" = "x"; then
28339        pmix_scope_index=1
28340    fi
28341
28342    # First, check to see if any of these variables are already set.
28343    # This is a simple sanity check to ensure we're not already
28344    # overwriting pre-existing variables (that have a non-empty
28345    # value).  It's not a perfect check, but at least it's something.
28346    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
28347        pmix_str="pmix_str=\"\$$pmix_var\""
28348        eval $pmix_str
28349
28350        if test "x$pmix_str" != "x"; then
28351            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
28352$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
28353            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
28354$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
28355            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
28356$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
28357            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
28358$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
28359            as_fn_error $? "Cannot continue" "$LINENO" 5
28360        fi
28361    done
28362
28363    # Ok, we passed the simple sanity check.  Save all these names so
28364    # that we can unset them at the end of the scope.
28365    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
28366    eval $pmix_str
28367    unset pmix_str
28368
28369    env | grep pmix_scope
28370    pmix_scope_index=`expr $pmix_scope_index + 1`
28371
28372
28373    pmix_asm_check_func_CFLAGS_save=$CFLAGS
28374    pmix_asm_check_func_LIBS_save=$LIBS
28375
28376        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmpxchg16b" >&5
28377$as_echo_n "checking for cmpxchg16b... " >&6; }
28378    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28379/* end confdefs.h.  */
28380unsigned char tmp[16];
28381int
28382main ()
28383{
28384__asm__ __volatile__ ("lock cmpxchg16b (%%rsi)" : : "S" (tmp) : "memory", "cc");
28385  ;
28386  return 0;
28387}
28388_ACEOF
28389if ac_fn_c_try_link "$LINENO"; then :
28390  pmix_asm_check_func_happy=1
28391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28392$as_echo "yes" >&6; }
28393else
28394  pmix_asm_check_func_happy=0
28395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28396$as_echo "no" >&6; }
28397fi
28398rm -f core conftest.err conftest.$ac_objext \
28399    conftest$ac_exeext conftest.$ac_ext
28400
28401        if test $pmix_asm_check_func_happy -eq 0; then :
28402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmpxchg16b with -mcx16" >&5
28403$as_echo_n "checking for cmpxchg16b with -mcx16... " >&6; }
28404         CFLAGS="$CFLAGS -mcx16"
28405         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28406/* end confdefs.h.  */
28407unsigned char tmp[16];
28408int
28409main ()
28410{
28411__asm__ __volatile__ ("lock cmpxchg16b (%%rsi)" : : "S" (tmp) : "memory", "cc");
28412  ;
28413  return 0;
28414}
28415_ACEOF
28416if ac_fn_c_try_link "$LINENO"; then :
28417  pmix_asm_check_func_happy=1
28418              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28419$as_echo "yes" >&6; }
28420else
28421  pmix_asm_check_func_happy=0
28422              CFLAGS=$pmix_asm_check_func_CFLAGS_save
28423              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28424$as_echo "no" >&6; }
28425fi
28426rm -f core conftest.err conftest.$ac_objext \
28427    conftest$ac_exeext conftest.$ac_ext
28428
28429fi
28430
28431        if test $pmix_asm_check_func_happy -eq 0; then :
28432  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmpxchg16b with -latomic" >&5
28433$as_echo_n "checking for cmpxchg16b with -latomic... " >&6; }
28434         LIBS="$LIBS -latomic"
28435         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28436/* end confdefs.h.  */
28437unsigned char tmp[16];
28438int
28439main ()
28440{
28441__asm__ __volatile__ ("lock cmpxchg16b (%%rsi)" : : "S" (tmp) : "memory", "cc");
28442  ;
28443  return 0;
28444}
28445_ACEOF
28446if ac_fn_c_try_link "$LINENO"; then :
28447  pmix_asm_check_func_happy=1
28448              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28449$as_echo "yes" >&6; }
28450else
28451  pmix_asm_check_func_happy=0
28452              LIBS=$pmix_asm_check_func_LIBS_save
28453              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28454$as_echo "no" >&6; }
28455fi
28456rm -f core conftest.err conftest.$ac_objext \
28457    conftest$ac_exeext conftest.$ac_ext
28458
28459fi
28460
28461                if test $pmix_asm_check_func_happy -eq 1; then :
28462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cmpxchg16b() gives correct results" >&5
28463$as_echo_n "checking if cmpxchg16b() gives correct results... " >&6; }
28464         if test "$cross_compiling" = yes; then :
28465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
28466$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
28467else
28468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28469/* end confdefs.h.  */
28470unsigned char tmp[16];
28471int
28472main ()
28473{
28474__asm__ __volatile__ ("lock cmpxchg16b (%%rsi)" : : "S" (tmp) : "memory", "cc");
28475  ;
28476  return 0;
28477}
28478_ACEOF
28479if ac_fn_c_try_run "$LINENO"; then :
28480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28481$as_echo "yes" >&6; }
28482else
28483  pmix_asm_check_func_happy=0
28484               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28485$as_echo "no" >&6; }
28486fi
28487rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28488  conftest.$ac_objext conftest.beam conftest.$ac_ext
28489fi
28490
28491
28492fi
28493
28494        if test $pmix_asm_check_func_happy -eq 0; then :
28495  CFLAGS=$pmix_asm_check_func_CFLAGS_save
28496         LIBS=$pmix_asm_check_func_LIBS_save
28497fi
28498
28499        if test $pmix_asm_check_func_happy -eq 1; then :
28500  cmpxchg16b_result=1
28501else
28502  cmpxchg16b_result=0
28503fi
28504
28505
28506    # Unwind the index
28507    pmix_scope_index=`expr $pmix_scope_index - 1`
28508    pmix_scope_test=`expr $pmix_scope_index \> 0`
28509    if test "$pmix_scope_test" = "0"; then
28510        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
28511$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
28512        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
28513$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
28514        as_fn_error $? "Cannot continue" "$LINENO" 5
28515    fi
28516
28517    # Get the variable names from that index
28518    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
28519    eval $pmix_str
28520
28521    # Iterate over all the variables and unset them all
28522    for pmix_var in $pmix_str; do
28523        unset $pmix_var
28524    done
28525
28526
28527    # If we have it, make sure it works.
28528    if test $cmpxchg16b_result -eq 1; then :
28529  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cmpxchg16b_result works" >&5
28530$as_echo_n "checking if cmpxchg16b_result works... " >&6; }
28531           if test "$cross_compiling" = yes; then :
28532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
28533$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
28534else
28535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28536/* end confdefs.h.  */
28537
28538#include <stdint.h>
28539#include <assert.h>
28540
28541union pmix_counted_pointer_t {
28542    struct {
28543        uint64_t counter;
28544        uint64_t item;
28545    } data;
28546#if defined(HAVE___INT128) && HAVE___INT128
28547    __int128 value;
28548#elif defined(HAVE_INT128_T) && HAVE_INT128_T
28549    int128_t value;
28550#endif
28551};
28552typedef union pmix_counted_pointer_t pmix_counted_pointer_t;
28553
28554int main(int argc, char* argv) {
28555    volatile pmix_counted_pointer_t a;
28556    pmix_counted_pointer_t b;
28557
28558    a.data.counter = 0;
28559    a.data.item = 0x1234567890ABCDEF;
28560
28561    b.data.counter = a.data.counter;
28562    b.data.item = a.data.item;
28563
28564    /* bozo checks */
28565    assert(16 == sizeof(pmix_counted_pointer_t));
28566    assert(a.data.counter == b.data.counter);
28567    assert(a.data.item == b.data.item);
28568    /*
28569     * the following test fails on buggy compilers
28570     * so far, with icc -o conftest conftest.c
28571     *  - intel icc 14.0.0.080 (aka 2013sp1)
28572     *  - intel icc 14.0.1.106 (aka 2013sp1u1)
28573     * older and more recents compilers work fine
28574     * buggy compilers work also fine but only with -O0
28575     */
28576#if (defined(HAVE___INT128) && HAVE___INT128) || (defined(HAVE_INT128_T) && HAVE_INT128_T)
28577    return (a.value != b.value);
28578#else
28579    return 0;
28580#endif
28581}
28582
28583_ACEOF
28584if ac_fn_c_try_run "$LINENO"; then :
28585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28586$as_echo "yes" >&6; }
28587else
28588  cmpxchg16b_result=0
28589                          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28590$as_echo "no" >&6; }
28591fi
28592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28593  conftest.$ac_objext conftest.beam conftest.$ac_ext
28594fi
28595
28596
28597fi
28598
28599
28600cat >>confdefs.h <<_ACEOF
28601#define PMIX_HAVE_CMPXCHG16B $cmpxchg16b_result
28602_ACEOF
28603
28604
28605    # Unwind the index
28606    pmix_scope_index=`expr $pmix_scope_index - 1`
28607    pmix_scope_test=`expr $pmix_scope_index \> 0`
28608    if test "$pmix_scope_test" = "0"; then
28609        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
28610$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
28611        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
28612$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
28613        as_fn_error $? "Cannot continue" "$LINENO" 5
28614    fi
28615
28616    # Get the variable names from that index
28617    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
28618    eval $pmix_str
28619
28620    # Iterate over all the variables and unset them all
28621    for pmix_var in $pmix_str; do
28622        unset $pmix_var
28623    done
28624
28625
28626            ;;
28627
28628        ia64-*)
28629            pmix_cv_asm_arch="IA64"
28630
28631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5
28632$as_echo_n "checking for __sync builtin atomics... " >&6; }
28633
28634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28635/* end confdefs.h.  */
28636long tmp;
28637int
28638main ()
28639{
28640__sync_synchronize();
28641__sync_bool_compare_and_swap(&tmp, 0, 1);
28642__sync_add_and_fetch(&tmp, 1);
28643  ;
28644  return 0;
28645}
28646_ACEOF
28647if ac_fn_c_try_link "$LINENO"; then :
28648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28649$as_echo "yes" >&6; }
28650     pmix_cv_asm_builtin="BUILTIN_SYNC"
28651else
28652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28653$as_echo "no" >&6; }
28654     as_fn_error $? "No atomic primitives available for $host" "$LINENO" 5
28655fi
28656rm -f core conftest.err conftest.$ac_objext \
28657    conftest$ac_exeext conftest.$ac_ext
28658
28659  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5
28660$as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; }
28661
28662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28663/* end confdefs.h.  */
28664
28665#include <stdint.h>
28666uint64_t tmp;
28667int
28668main ()
28669{
28670
28671__sync_bool_compare_and_swap(&tmp, 0, 1);
28672__sync_add_and_fetch(&tmp, 1);
28673  ;
28674  return 0;
28675}
28676_ACEOF
28677if ac_fn_c_try_link "$LINENO"; then :
28678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28679$as_echo "yes" >&6; }
28680     pmix_asm_sync_have_64bit=1
28681else
28682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28683$as_echo "no" >&6; }
28684     pmix_asm_sync_have_64bit=0
28685fi
28686rm -f core conftest.err conftest.$ac_objext \
28687    conftest$ac_exeext conftest.$ac_ext
28688
28689
28690cat >>confdefs.h <<_ACEOF
28691#define PMIX_ASM_SYNC_HAVE_64BIT $pmix_asm_sync_have_64bit
28692_ACEOF
28693
28694
28695  # Check for 128-bit support
28696
28697
28698
28699    # Is the private index set?  If not, set it.
28700    if test "x$pmix_scope_index" = "x"; then
28701        pmix_scope_index=1
28702    fi
28703
28704    # First, check to see if any of these variables are already set.
28705    # This is a simple sanity check to ensure we're not already
28706    # overwriting pre-existing variables (that have a non-empty
28707    # value).  It's not a perfect check, but at least it's something.
28708    for pmix_var in sync_bool_compare_and_swap_128_result; do
28709        pmix_str="pmix_str=\"\$$pmix_var\""
28710        eval $pmix_str
28711
28712        if test "x$pmix_str" != "x"; then
28713            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
28714$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
28715            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
28716$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
28717            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
28718$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
28719            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
28720$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
28721            as_fn_error $? "Cannot continue" "$LINENO" 5
28722        fi
28723    done
28724
28725    # Ok, we passed the simple sanity check.  Save all these names so
28726    # that we can unset them at the end of the scope.
28727    pmix_str="pmix_scope_$pmix_scope_index=\"sync_bool_compare_and_swap_128_result\""
28728    eval $pmix_str
28729    unset pmix_str
28730
28731    env | grep pmix_scope
28732    pmix_scope_index=`expr $pmix_scope_index + 1`
28733
28734
28735  # Do we have __sync_bool_compare_and_swap?
28736  # Use a special macro because we need to check with a few different
28737  # CFLAGS/LIBS.
28738
28739
28740
28741    # Is the private index set?  If not, set it.
28742    if test "x$pmix_scope_index" = "x"; then
28743        pmix_scope_index=1
28744    fi
28745
28746    # First, check to see if any of these variables are already set.
28747    # This is a simple sanity check to ensure we're not already
28748    # overwriting pre-existing variables (that have a non-empty
28749    # value).  It's not a perfect check, but at least it's something.
28750    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
28751        pmix_str="pmix_str=\"\$$pmix_var\""
28752        eval $pmix_str
28753
28754        if test "x$pmix_str" != "x"; then
28755            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
28756$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
28757            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
28758$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
28759            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
28760$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
28761            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
28762$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
28763            as_fn_error $? "Cannot continue" "$LINENO" 5
28764        fi
28765    done
28766
28767    # Ok, we passed the simple sanity check.  Save all these names so
28768    # that we can unset them at the end of the scope.
28769    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
28770    eval $pmix_str
28771    unset pmix_str
28772
28773    env | grep pmix_scope
28774    pmix_scope_index=`expr $pmix_scope_index + 1`
28775
28776
28777    pmix_asm_check_func_CFLAGS_save=$CFLAGS
28778    pmix_asm_check_func_LIBS_save=$LIBS
28779
28780        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5
28781$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; }
28782    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28783/* end confdefs.h.  */
28784
28785#include <stdint.h>
28786#include <stdbool.h>
28787#include <stdlib.h>
28788
28789typedef union {
28790    uint64_t fake[2];
28791    __int128 real;
28792} pmix128;
28793
28794static void test1(void)
28795{
28796    // As of Aug 2018, we could not figure out a way to assign 128-bit
28797    // constants -- the compilers would not accept it.  So use a fake
28798    // union to assign 2 uin64_t's to make a single __int128.
28799    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
28800    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
28801    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
28802    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
28803    if (!(r == false && ptr.real != newval.real)) {
28804        exit(1);
28805    }
28806}
28807
28808static void test2(void)
28809{
28810    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
28811    pmix128 oldval = ptr;
28812    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
28813    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
28814    if (!(r == true && ptr.real == newval.real)) {
28815        exit(2);
28816    }
28817}
28818
28819int main(int argc, char** argv)
28820{
28821    test1();
28822    test2();
28823    return 0;
28824}
28825
28826_ACEOF
28827if ac_fn_c_try_link "$LINENO"; then :
28828  pmix_asm_check_func_happy=1
28829         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28830$as_echo "yes" >&6; }
28831else
28832  pmix_asm_check_func_happy=0
28833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28834$as_echo "no" >&6; }
28835fi
28836rm -f core conftest.err conftest.$ac_objext \
28837    conftest$ac_exeext conftest.$ac_ext
28838
28839        if test $pmix_asm_check_func_happy -eq 0; then :
28840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5
28841$as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; }
28842         CFLAGS="$CFLAGS -mcx16"
28843         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28844/* end confdefs.h.  */
28845
28846#include <stdint.h>
28847#include <stdbool.h>
28848#include <stdlib.h>
28849
28850typedef union {
28851    uint64_t fake[2];
28852    __int128 real;
28853} pmix128;
28854
28855static void test1(void)
28856{
28857    // As of Aug 2018, we could not figure out a way to assign 128-bit
28858    // constants -- the compilers would not accept it.  So use a fake
28859    // union to assign 2 uin64_t's to make a single __int128.
28860    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
28861    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
28862    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
28863    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
28864    if (!(r == false && ptr.real != newval.real)) {
28865        exit(1);
28866    }
28867}
28868
28869static void test2(void)
28870{
28871    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
28872    pmix128 oldval = ptr;
28873    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
28874    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
28875    if (!(r == true && ptr.real == newval.real)) {
28876        exit(2);
28877    }
28878}
28879
28880int main(int argc, char** argv)
28881{
28882    test1();
28883    test2();
28884    return 0;
28885}
28886
28887_ACEOF
28888if ac_fn_c_try_link "$LINENO"; then :
28889  pmix_asm_check_func_happy=1
28890              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28891$as_echo "yes" >&6; }
28892else
28893  pmix_asm_check_func_happy=0
28894              CFLAGS=$pmix_asm_check_func_CFLAGS_save
28895              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28896$as_echo "no" >&6; }
28897fi
28898rm -f core conftest.err conftest.$ac_objext \
28899    conftest$ac_exeext conftest.$ac_ext
28900
28901fi
28902
28903        if test $pmix_asm_check_func_happy -eq 0; then :
28904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5
28905$as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; }
28906         LIBS="$LIBS -latomic"
28907         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28908/* end confdefs.h.  */
28909
28910#include <stdint.h>
28911#include <stdbool.h>
28912#include <stdlib.h>
28913
28914typedef union {
28915    uint64_t fake[2];
28916    __int128 real;
28917} pmix128;
28918
28919static void test1(void)
28920{
28921    // As of Aug 2018, we could not figure out a way to assign 128-bit
28922    // constants -- the compilers would not accept it.  So use a fake
28923    // union to assign 2 uin64_t's to make a single __int128.
28924    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
28925    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
28926    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
28927    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
28928    if (!(r == false && ptr.real != newval.real)) {
28929        exit(1);
28930    }
28931}
28932
28933static void test2(void)
28934{
28935    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
28936    pmix128 oldval = ptr;
28937    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
28938    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
28939    if (!(r == true && ptr.real == newval.real)) {
28940        exit(2);
28941    }
28942}
28943
28944int main(int argc, char** argv)
28945{
28946    test1();
28947    test2();
28948    return 0;
28949}
28950
28951_ACEOF
28952if ac_fn_c_try_link "$LINENO"; then :
28953  pmix_asm_check_func_happy=1
28954              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28955$as_echo "yes" >&6; }
28956else
28957  pmix_asm_check_func_happy=0
28958              LIBS=$pmix_asm_check_func_LIBS_save
28959              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28960$as_echo "no" >&6; }
28961fi
28962rm -f core conftest.err conftest.$ac_objext \
28963    conftest$ac_exeext conftest.$ac_ext
28964
28965fi
28966
28967                if test $pmix_asm_check_func_happy -eq 1; then :
28968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5
28969$as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; }
28970         if test "$cross_compiling" = yes; then :
28971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
28972$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
28973else
28974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28975/* end confdefs.h.  */
28976
28977#include <stdint.h>
28978#include <stdbool.h>
28979#include <stdlib.h>
28980
28981typedef union {
28982    uint64_t fake[2];
28983    __int128 real;
28984} pmix128;
28985
28986static void test1(void)
28987{
28988    // As of Aug 2018, we could not figure out a way to assign 128-bit
28989    // constants -- the compilers would not accept it.  So use a fake
28990    // union to assign 2 uin64_t's to make a single __int128.
28991    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
28992    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
28993    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
28994    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
28995    if (!(r == false && ptr.real != newval.real)) {
28996        exit(1);
28997    }
28998}
28999
29000static void test2(void)
29001{
29002    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29003    pmix128 oldval = ptr;
29004    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29005    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29006    if (!(r == true && ptr.real == newval.real)) {
29007        exit(2);
29008    }
29009}
29010
29011int main(int argc, char** argv)
29012{
29013    test1();
29014    test2();
29015    return 0;
29016}
29017
29018_ACEOF
29019if ac_fn_c_try_run "$LINENO"; then :
29020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29021$as_echo "yes" >&6; }
29022else
29023  pmix_asm_check_func_happy=0
29024               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29025$as_echo "no" >&6; }
29026fi
29027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29028  conftest.$ac_objext conftest.beam conftest.$ac_ext
29029fi
29030
29031
29032fi
29033
29034        if test $pmix_asm_check_func_happy -eq 0; then :
29035  CFLAGS=$pmix_asm_check_func_CFLAGS_save
29036         LIBS=$pmix_asm_check_func_LIBS_save
29037fi
29038
29039        if test $pmix_asm_check_func_happy -eq 1; then :
29040  sync_bool_compare_and_swap_128_result=1
29041else
29042  sync_bool_compare_and_swap_128_result=0
29043fi
29044
29045
29046    # Unwind the index
29047    pmix_scope_index=`expr $pmix_scope_index - 1`
29048    pmix_scope_test=`expr $pmix_scope_index \> 0`
29049    if test "$pmix_scope_test" = "0"; then
29050        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
29051$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
29052        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
29053$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
29054        as_fn_error $? "Cannot continue" "$LINENO" 5
29055    fi
29056
29057    # Get the variable names from that index
29058    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
29059    eval $pmix_str
29060
29061    # Iterate over all the variables and unset them all
29062    for pmix_var in $pmix_str; do
29063        unset $pmix_var
29064    done
29065
29066
29067
29068
29069cat >>confdefs.h <<_ACEOF
29070#define PMIX_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result
29071_ACEOF
29072
29073
29074
29075    # Unwind the index
29076    pmix_scope_index=`expr $pmix_scope_index - 1`
29077    pmix_scope_test=`expr $pmix_scope_index \> 0`
29078    if test "$pmix_scope_test" = "0"; then
29079        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
29080$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
29081        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
29082$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
29083        as_fn_error $? "Cannot continue" "$LINENO" 5
29084    fi
29085
29086    # Get the variable names from that index
29087    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
29088    eval $pmix_str
29089
29090    # Iterate over all the variables and unset them all
29091    for pmix_var in $pmix_str; do
29092        unset $pmix_var
29093    done
29094
29095
29096
29097            ;;
29098        aarch64*)
29099            pmix_cv_asm_arch="ARM64"
29100            PMIX_ASM_SUPPORT_64BIT=1
29101            PMIX_ASM_ARM_VERSION=8
29102
29103cat >>confdefs.h <<_ACEOF
29104#define PMIX_ASM_ARM_VERSION $PMIX_ASM_ARM_VERSION
29105_ACEOF
29106
29107            PMIX_GCC_INLINE_ASSIGN='"mov %0, #0" : "=&r"(ret)'
29108            ;;
29109
29110        armv7*|arm-*-linux-gnueabihf)
29111            pmix_cv_asm_arch="ARM"
29112            PMIX_ASM_SUPPORT_64BIT=1
29113            PMIX_ASM_ARM_VERSION=7
29114
29115cat >>confdefs.h <<_ACEOF
29116#define PMIX_ASM_ARM_VERSION $PMIX_ASM_ARM_VERSION
29117_ACEOF
29118
29119            PMIX_GCC_INLINE_ASSIGN='"mov %0, #0" : "=&r"(ret)'
29120            ;;
29121
29122        armv6*)
29123            pmix_cv_asm_arch="ARM"
29124            PMIX_ASM_SUPPORT_64BIT=0
29125            PMIX_ASM_ARM_VERSION=6
29126            CCASFLAGS="$CCASFLAGS -march=armv7-a"
29127
29128cat >>confdefs.h <<_ACEOF
29129#define PMIX_ASM_ARM_VERSION $PMIX_ASM_ARM_VERSION
29130_ACEOF
29131
29132            PMIX_GCC_INLINE_ASSIGN='"mov %0, #0" : "=&r"(ret)'
29133            ;;
29134
29135        armv5*linux*|armv4*linux*|arm-*-linux-gnueabi)
29136            # uses Linux kernel helpers for some atomic operations
29137            pmix_cv_asm_arch="ARM"
29138
29139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5
29140$as_echo_n "checking for __sync builtin atomics... " >&6; }
29141
29142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29143/* end confdefs.h.  */
29144long tmp;
29145int
29146main ()
29147{
29148__sync_synchronize();
29149__sync_bool_compare_and_swap(&tmp, 0, 1);
29150__sync_add_and_fetch(&tmp, 1);
29151  ;
29152  return 0;
29153}
29154_ACEOF
29155if ac_fn_c_try_link "$LINENO"; then :
29156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29157$as_echo "yes" >&6; }
29158     pmix_cv_asm_builtin="BUILTIN_SYNC"
29159else
29160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29161$as_echo "no" >&6; }
29162     as_fn_error $? "No atomic primitives available for $host" "$LINENO" 5
29163fi
29164rm -f core conftest.err conftest.$ac_objext \
29165    conftest$ac_exeext conftest.$ac_ext
29166
29167  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5
29168$as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; }
29169
29170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29171/* end confdefs.h.  */
29172
29173#include <stdint.h>
29174uint64_t tmp;
29175int
29176main ()
29177{
29178
29179__sync_bool_compare_and_swap(&tmp, 0, 1);
29180__sync_add_and_fetch(&tmp, 1);
29181  ;
29182  return 0;
29183}
29184_ACEOF
29185if ac_fn_c_try_link "$LINENO"; then :
29186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29187$as_echo "yes" >&6; }
29188     pmix_asm_sync_have_64bit=1
29189else
29190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29191$as_echo "no" >&6; }
29192     pmix_asm_sync_have_64bit=0
29193fi
29194rm -f core conftest.err conftest.$ac_objext \
29195    conftest$ac_exeext conftest.$ac_ext
29196
29197
29198cat >>confdefs.h <<_ACEOF
29199#define PMIX_ASM_SYNC_HAVE_64BIT $pmix_asm_sync_have_64bit
29200_ACEOF
29201
29202
29203  # Check for 128-bit support
29204
29205
29206
29207    # Is the private index set?  If not, set it.
29208    if test "x$pmix_scope_index" = "x"; then
29209        pmix_scope_index=1
29210    fi
29211
29212    # First, check to see if any of these variables are already set.
29213    # This is a simple sanity check to ensure we're not already
29214    # overwriting pre-existing variables (that have a non-empty
29215    # value).  It's not a perfect check, but at least it's something.
29216    for pmix_var in sync_bool_compare_and_swap_128_result; do
29217        pmix_str="pmix_str=\"\$$pmix_var\""
29218        eval $pmix_str
29219
29220        if test "x$pmix_str" != "x"; then
29221            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
29222$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
29223            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
29224$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
29225            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
29226$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
29227            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
29228$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
29229            as_fn_error $? "Cannot continue" "$LINENO" 5
29230        fi
29231    done
29232
29233    # Ok, we passed the simple sanity check.  Save all these names so
29234    # that we can unset them at the end of the scope.
29235    pmix_str="pmix_scope_$pmix_scope_index=\"sync_bool_compare_and_swap_128_result\""
29236    eval $pmix_str
29237    unset pmix_str
29238
29239    env | grep pmix_scope
29240    pmix_scope_index=`expr $pmix_scope_index + 1`
29241
29242
29243  # Do we have __sync_bool_compare_and_swap?
29244  # Use a special macro because we need to check with a few different
29245  # CFLAGS/LIBS.
29246
29247
29248
29249    # Is the private index set?  If not, set it.
29250    if test "x$pmix_scope_index" = "x"; then
29251        pmix_scope_index=1
29252    fi
29253
29254    # First, check to see if any of these variables are already set.
29255    # This is a simple sanity check to ensure we're not already
29256    # overwriting pre-existing variables (that have a non-empty
29257    # value).  It's not a perfect check, but at least it's something.
29258    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
29259        pmix_str="pmix_str=\"\$$pmix_var\""
29260        eval $pmix_str
29261
29262        if test "x$pmix_str" != "x"; then
29263            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
29264$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
29265            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
29266$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
29267            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
29268$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
29269            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
29270$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
29271            as_fn_error $? "Cannot continue" "$LINENO" 5
29272        fi
29273    done
29274
29275    # Ok, we passed the simple sanity check.  Save all these names so
29276    # that we can unset them at the end of the scope.
29277    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
29278    eval $pmix_str
29279    unset pmix_str
29280
29281    env | grep pmix_scope
29282    pmix_scope_index=`expr $pmix_scope_index + 1`
29283
29284
29285    pmix_asm_check_func_CFLAGS_save=$CFLAGS
29286    pmix_asm_check_func_LIBS_save=$LIBS
29287
29288        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5
29289$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; }
29290    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29291/* end confdefs.h.  */
29292
29293#include <stdint.h>
29294#include <stdbool.h>
29295#include <stdlib.h>
29296
29297typedef union {
29298    uint64_t fake[2];
29299    __int128 real;
29300} pmix128;
29301
29302static void test1(void)
29303{
29304    // As of Aug 2018, we could not figure out a way to assign 128-bit
29305    // constants -- the compilers would not accept it.  So use a fake
29306    // union to assign 2 uin64_t's to make a single __int128.
29307    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29308    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
29309    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29310    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29311    if (!(r == false && ptr.real != newval.real)) {
29312        exit(1);
29313    }
29314}
29315
29316static void test2(void)
29317{
29318    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29319    pmix128 oldval = ptr;
29320    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29321    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29322    if (!(r == true && ptr.real == newval.real)) {
29323        exit(2);
29324    }
29325}
29326
29327int main(int argc, char** argv)
29328{
29329    test1();
29330    test2();
29331    return 0;
29332}
29333
29334_ACEOF
29335if ac_fn_c_try_link "$LINENO"; then :
29336  pmix_asm_check_func_happy=1
29337         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29338$as_echo "yes" >&6; }
29339else
29340  pmix_asm_check_func_happy=0
29341         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29342$as_echo "no" >&6; }
29343fi
29344rm -f core conftest.err conftest.$ac_objext \
29345    conftest$ac_exeext conftest.$ac_ext
29346
29347        if test $pmix_asm_check_func_happy -eq 0; then :
29348  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5
29349$as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; }
29350         CFLAGS="$CFLAGS -mcx16"
29351         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29352/* end confdefs.h.  */
29353
29354#include <stdint.h>
29355#include <stdbool.h>
29356#include <stdlib.h>
29357
29358typedef union {
29359    uint64_t fake[2];
29360    __int128 real;
29361} pmix128;
29362
29363static void test1(void)
29364{
29365    // As of Aug 2018, we could not figure out a way to assign 128-bit
29366    // constants -- the compilers would not accept it.  So use a fake
29367    // union to assign 2 uin64_t's to make a single __int128.
29368    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29369    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
29370    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29371    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29372    if (!(r == false && ptr.real != newval.real)) {
29373        exit(1);
29374    }
29375}
29376
29377static void test2(void)
29378{
29379    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29380    pmix128 oldval = ptr;
29381    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29382    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29383    if (!(r == true && ptr.real == newval.real)) {
29384        exit(2);
29385    }
29386}
29387
29388int main(int argc, char** argv)
29389{
29390    test1();
29391    test2();
29392    return 0;
29393}
29394
29395_ACEOF
29396if ac_fn_c_try_link "$LINENO"; then :
29397  pmix_asm_check_func_happy=1
29398              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29399$as_echo "yes" >&6; }
29400else
29401  pmix_asm_check_func_happy=0
29402              CFLAGS=$pmix_asm_check_func_CFLAGS_save
29403              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29404$as_echo "no" >&6; }
29405fi
29406rm -f core conftest.err conftest.$ac_objext \
29407    conftest$ac_exeext conftest.$ac_ext
29408
29409fi
29410
29411        if test $pmix_asm_check_func_happy -eq 0; then :
29412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5
29413$as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; }
29414         LIBS="$LIBS -latomic"
29415         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29416/* end confdefs.h.  */
29417
29418#include <stdint.h>
29419#include <stdbool.h>
29420#include <stdlib.h>
29421
29422typedef union {
29423    uint64_t fake[2];
29424    __int128 real;
29425} pmix128;
29426
29427static void test1(void)
29428{
29429    // As of Aug 2018, we could not figure out a way to assign 128-bit
29430    // constants -- the compilers would not accept it.  So use a fake
29431    // union to assign 2 uin64_t's to make a single __int128.
29432    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29433    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
29434    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29435    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29436    if (!(r == false && ptr.real != newval.real)) {
29437        exit(1);
29438    }
29439}
29440
29441static void test2(void)
29442{
29443    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29444    pmix128 oldval = ptr;
29445    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29446    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29447    if (!(r == true && ptr.real == newval.real)) {
29448        exit(2);
29449    }
29450}
29451
29452int main(int argc, char** argv)
29453{
29454    test1();
29455    test2();
29456    return 0;
29457}
29458
29459_ACEOF
29460if ac_fn_c_try_link "$LINENO"; then :
29461  pmix_asm_check_func_happy=1
29462              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29463$as_echo "yes" >&6; }
29464else
29465  pmix_asm_check_func_happy=0
29466              LIBS=$pmix_asm_check_func_LIBS_save
29467              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29468$as_echo "no" >&6; }
29469fi
29470rm -f core conftest.err conftest.$ac_objext \
29471    conftest$ac_exeext conftest.$ac_ext
29472
29473fi
29474
29475                if test $pmix_asm_check_func_happy -eq 1; then :
29476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5
29477$as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; }
29478         if test "$cross_compiling" = yes; then :
29479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
29480$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
29481else
29482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29483/* end confdefs.h.  */
29484
29485#include <stdint.h>
29486#include <stdbool.h>
29487#include <stdlib.h>
29488
29489typedef union {
29490    uint64_t fake[2];
29491    __int128 real;
29492} pmix128;
29493
29494static void test1(void)
29495{
29496    // As of Aug 2018, we could not figure out a way to assign 128-bit
29497    // constants -- the compilers would not accept it.  So use a fake
29498    // union to assign 2 uin64_t's to make a single __int128.
29499    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29500    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
29501    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29502    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29503    if (!(r == false && ptr.real != newval.real)) {
29504        exit(1);
29505    }
29506}
29507
29508static void test2(void)
29509{
29510    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29511    pmix128 oldval = ptr;
29512    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29513    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29514    if (!(r == true && ptr.real == newval.real)) {
29515        exit(2);
29516    }
29517}
29518
29519int main(int argc, char** argv)
29520{
29521    test1();
29522    test2();
29523    return 0;
29524}
29525
29526_ACEOF
29527if ac_fn_c_try_run "$LINENO"; then :
29528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29529$as_echo "yes" >&6; }
29530else
29531  pmix_asm_check_func_happy=0
29532               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29533$as_echo "no" >&6; }
29534fi
29535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29536  conftest.$ac_objext conftest.beam conftest.$ac_ext
29537fi
29538
29539
29540fi
29541
29542        if test $pmix_asm_check_func_happy -eq 0; then :
29543  CFLAGS=$pmix_asm_check_func_CFLAGS_save
29544         LIBS=$pmix_asm_check_func_LIBS_save
29545fi
29546
29547        if test $pmix_asm_check_func_happy -eq 1; then :
29548  sync_bool_compare_and_swap_128_result=1
29549else
29550  sync_bool_compare_and_swap_128_result=0
29551fi
29552
29553
29554    # Unwind the index
29555    pmix_scope_index=`expr $pmix_scope_index - 1`
29556    pmix_scope_test=`expr $pmix_scope_index \> 0`
29557    if test "$pmix_scope_test" = "0"; then
29558        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
29559$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
29560        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
29561$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
29562        as_fn_error $? "Cannot continue" "$LINENO" 5
29563    fi
29564
29565    # Get the variable names from that index
29566    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
29567    eval $pmix_str
29568
29569    # Iterate over all the variables and unset them all
29570    for pmix_var in $pmix_str; do
29571        unset $pmix_var
29572    done
29573
29574
29575
29576
29577cat >>confdefs.h <<_ACEOF
29578#define PMIX_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result
29579_ACEOF
29580
29581
29582
29583    # Unwind the index
29584    pmix_scope_index=`expr $pmix_scope_index - 1`
29585    pmix_scope_test=`expr $pmix_scope_index \> 0`
29586    if test "$pmix_scope_test" = "0"; then
29587        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
29588$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
29589        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
29590$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
29591        as_fn_error $? "Cannot continue" "$LINENO" 5
29592    fi
29593
29594    # Get the variable names from that index
29595    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
29596    eval $pmix_str
29597
29598    # Iterate over all the variables and unset them all
29599    for pmix_var in $pmix_str; do
29600        unset $pmix_var
29601    done
29602
29603
29604
29605            ;;
29606
29607        mips-*|mips64*)
29608            # Should really find some way to make sure that we are on
29609            # a MIPS III machine (r4000 and later)
29610            pmix_cv_asm_arch="MIPS"
29611
29612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5
29613$as_echo_n "checking for __sync builtin atomics... " >&6; }
29614
29615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29616/* end confdefs.h.  */
29617long tmp;
29618int
29619main ()
29620{
29621__sync_synchronize();
29622__sync_bool_compare_and_swap(&tmp, 0, 1);
29623__sync_add_and_fetch(&tmp, 1);
29624  ;
29625  return 0;
29626}
29627_ACEOF
29628if ac_fn_c_try_link "$LINENO"; then :
29629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29630$as_echo "yes" >&6; }
29631     pmix_cv_asm_builtin="BUILTIN_SYNC"
29632else
29633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29634$as_echo "no" >&6; }
29635     as_fn_error $? "No atomic primitives available for $host" "$LINENO" 5
29636fi
29637rm -f core conftest.err conftest.$ac_objext \
29638    conftest$ac_exeext conftest.$ac_ext
29639
29640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5
29641$as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; }
29642
29643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29644/* end confdefs.h.  */
29645
29646#include <stdint.h>
29647uint64_t tmp;
29648int
29649main ()
29650{
29651
29652__sync_bool_compare_and_swap(&tmp, 0, 1);
29653__sync_add_and_fetch(&tmp, 1);
29654  ;
29655  return 0;
29656}
29657_ACEOF
29658if ac_fn_c_try_link "$LINENO"; then :
29659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29660$as_echo "yes" >&6; }
29661     pmix_asm_sync_have_64bit=1
29662else
29663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29664$as_echo "no" >&6; }
29665     pmix_asm_sync_have_64bit=0
29666fi
29667rm -f core conftest.err conftest.$ac_objext \
29668    conftest$ac_exeext conftest.$ac_ext
29669
29670
29671cat >>confdefs.h <<_ACEOF
29672#define PMIX_ASM_SYNC_HAVE_64BIT $pmix_asm_sync_have_64bit
29673_ACEOF
29674
29675
29676  # Check for 128-bit support
29677
29678
29679
29680    # Is the private index set?  If not, set it.
29681    if test "x$pmix_scope_index" = "x"; then
29682        pmix_scope_index=1
29683    fi
29684
29685    # First, check to see if any of these variables are already set.
29686    # This is a simple sanity check to ensure we're not already
29687    # overwriting pre-existing variables (that have a non-empty
29688    # value).  It's not a perfect check, but at least it's something.
29689    for pmix_var in sync_bool_compare_and_swap_128_result; do
29690        pmix_str="pmix_str=\"\$$pmix_var\""
29691        eval $pmix_str
29692
29693        if test "x$pmix_str" != "x"; then
29694            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
29695$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
29696            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
29697$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
29698            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
29699$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
29700            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
29701$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
29702            as_fn_error $? "Cannot continue" "$LINENO" 5
29703        fi
29704    done
29705
29706    # Ok, we passed the simple sanity check.  Save all these names so
29707    # that we can unset them at the end of the scope.
29708    pmix_str="pmix_scope_$pmix_scope_index=\"sync_bool_compare_and_swap_128_result\""
29709    eval $pmix_str
29710    unset pmix_str
29711
29712    env | grep pmix_scope
29713    pmix_scope_index=`expr $pmix_scope_index + 1`
29714
29715
29716  # Do we have __sync_bool_compare_and_swap?
29717  # Use a special macro because we need to check with a few different
29718  # CFLAGS/LIBS.
29719
29720
29721
29722    # Is the private index set?  If not, set it.
29723    if test "x$pmix_scope_index" = "x"; then
29724        pmix_scope_index=1
29725    fi
29726
29727    # First, check to see if any of these variables are already set.
29728    # This is a simple sanity check to ensure we're not already
29729    # overwriting pre-existing variables (that have a non-empty
29730    # value).  It's not a perfect check, but at least it's something.
29731    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
29732        pmix_str="pmix_str=\"\$$pmix_var\""
29733        eval $pmix_str
29734
29735        if test "x$pmix_str" != "x"; then
29736            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
29737$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
29738            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
29739$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
29740            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
29741$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
29742            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
29743$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
29744            as_fn_error $? "Cannot continue" "$LINENO" 5
29745        fi
29746    done
29747
29748    # Ok, we passed the simple sanity check.  Save all these names so
29749    # that we can unset them at the end of the scope.
29750    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
29751    eval $pmix_str
29752    unset pmix_str
29753
29754    env | grep pmix_scope
29755    pmix_scope_index=`expr $pmix_scope_index + 1`
29756
29757
29758    pmix_asm_check_func_CFLAGS_save=$CFLAGS
29759    pmix_asm_check_func_LIBS_save=$LIBS
29760
29761        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5
29762$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; }
29763    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29764/* end confdefs.h.  */
29765
29766#include <stdint.h>
29767#include <stdbool.h>
29768#include <stdlib.h>
29769
29770typedef union {
29771    uint64_t fake[2];
29772    __int128 real;
29773} pmix128;
29774
29775static void test1(void)
29776{
29777    // As of Aug 2018, we could not figure out a way to assign 128-bit
29778    // constants -- the compilers would not accept it.  So use a fake
29779    // union to assign 2 uin64_t's to make a single __int128.
29780    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29781    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
29782    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29783    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29784    if (!(r == false && ptr.real != newval.real)) {
29785        exit(1);
29786    }
29787}
29788
29789static void test2(void)
29790{
29791    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29792    pmix128 oldval = ptr;
29793    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29794    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29795    if (!(r == true && ptr.real == newval.real)) {
29796        exit(2);
29797    }
29798}
29799
29800int main(int argc, char** argv)
29801{
29802    test1();
29803    test2();
29804    return 0;
29805}
29806
29807_ACEOF
29808if ac_fn_c_try_link "$LINENO"; then :
29809  pmix_asm_check_func_happy=1
29810         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29811$as_echo "yes" >&6; }
29812else
29813  pmix_asm_check_func_happy=0
29814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29815$as_echo "no" >&6; }
29816fi
29817rm -f core conftest.err conftest.$ac_objext \
29818    conftest$ac_exeext conftest.$ac_ext
29819
29820        if test $pmix_asm_check_func_happy -eq 0; then :
29821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5
29822$as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; }
29823         CFLAGS="$CFLAGS -mcx16"
29824         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29825/* end confdefs.h.  */
29826
29827#include <stdint.h>
29828#include <stdbool.h>
29829#include <stdlib.h>
29830
29831typedef union {
29832    uint64_t fake[2];
29833    __int128 real;
29834} pmix128;
29835
29836static void test1(void)
29837{
29838    // As of Aug 2018, we could not figure out a way to assign 128-bit
29839    // constants -- the compilers would not accept it.  So use a fake
29840    // union to assign 2 uin64_t's to make a single __int128.
29841    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29842    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
29843    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29844    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29845    if (!(r == false && ptr.real != newval.real)) {
29846        exit(1);
29847    }
29848}
29849
29850static void test2(void)
29851{
29852    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29853    pmix128 oldval = ptr;
29854    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29855    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29856    if (!(r == true && ptr.real == newval.real)) {
29857        exit(2);
29858    }
29859}
29860
29861int main(int argc, char** argv)
29862{
29863    test1();
29864    test2();
29865    return 0;
29866}
29867
29868_ACEOF
29869if ac_fn_c_try_link "$LINENO"; then :
29870  pmix_asm_check_func_happy=1
29871              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29872$as_echo "yes" >&6; }
29873else
29874  pmix_asm_check_func_happy=0
29875              CFLAGS=$pmix_asm_check_func_CFLAGS_save
29876              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29877$as_echo "no" >&6; }
29878fi
29879rm -f core conftest.err conftest.$ac_objext \
29880    conftest$ac_exeext conftest.$ac_ext
29881
29882fi
29883
29884        if test $pmix_asm_check_func_happy -eq 0; then :
29885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5
29886$as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; }
29887         LIBS="$LIBS -latomic"
29888         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29889/* end confdefs.h.  */
29890
29891#include <stdint.h>
29892#include <stdbool.h>
29893#include <stdlib.h>
29894
29895typedef union {
29896    uint64_t fake[2];
29897    __int128 real;
29898} pmix128;
29899
29900static void test1(void)
29901{
29902    // As of Aug 2018, we could not figure out a way to assign 128-bit
29903    // constants -- the compilers would not accept it.  So use a fake
29904    // union to assign 2 uin64_t's to make a single __int128.
29905    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29906    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
29907    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29908    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29909    if (!(r == false && ptr.real != newval.real)) {
29910        exit(1);
29911    }
29912}
29913
29914static void test2(void)
29915{
29916    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29917    pmix128 oldval = ptr;
29918    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29919    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29920    if (!(r == true && ptr.real == newval.real)) {
29921        exit(2);
29922    }
29923}
29924
29925int main(int argc, char** argv)
29926{
29927    test1();
29928    test2();
29929    return 0;
29930}
29931
29932_ACEOF
29933if ac_fn_c_try_link "$LINENO"; then :
29934  pmix_asm_check_func_happy=1
29935              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29936$as_echo "yes" >&6; }
29937else
29938  pmix_asm_check_func_happy=0
29939              LIBS=$pmix_asm_check_func_LIBS_save
29940              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29941$as_echo "no" >&6; }
29942fi
29943rm -f core conftest.err conftest.$ac_objext \
29944    conftest$ac_exeext conftest.$ac_ext
29945
29946fi
29947
29948                if test $pmix_asm_check_func_happy -eq 1; then :
29949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5
29950$as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; }
29951         if test "$cross_compiling" = yes; then :
29952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
29953$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
29954else
29955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29956/* end confdefs.h.  */
29957
29958#include <stdint.h>
29959#include <stdbool.h>
29960#include <stdlib.h>
29961
29962typedef union {
29963    uint64_t fake[2];
29964    __int128 real;
29965} pmix128;
29966
29967static void test1(void)
29968{
29969    // As of Aug 2018, we could not figure out a way to assign 128-bit
29970    // constants -- the compilers would not accept it.  So use a fake
29971    // union to assign 2 uin64_t's to make a single __int128.
29972    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29973    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
29974    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29975    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29976    if (!(r == false && ptr.real != newval.real)) {
29977        exit(1);
29978    }
29979}
29980
29981static void test2(void)
29982{
29983    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
29984    pmix128 oldval = ptr;
29985    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
29986    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
29987    if (!(r == true && ptr.real == newval.real)) {
29988        exit(2);
29989    }
29990}
29991
29992int main(int argc, char** argv)
29993{
29994    test1();
29995    test2();
29996    return 0;
29997}
29998
29999_ACEOF
30000if ac_fn_c_try_run "$LINENO"; then :
30001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30002$as_echo "yes" >&6; }
30003else
30004  pmix_asm_check_func_happy=0
30005               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30006$as_echo "no" >&6; }
30007fi
30008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30009  conftest.$ac_objext conftest.beam conftest.$ac_ext
30010fi
30011
30012
30013fi
30014
30015        if test $pmix_asm_check_func_happy -eq 0; then :
30016  CFLAGS=$pmix_asm_check_func_CFLAGS_save
30017         LIBS=$pmix_asm_check_func_LIBS_save
30018fi
30019
30020        if test $pmix_asm_check_func_happy -eq 1; then :
30021  sync_bool_compare_and_swap_128_result=1
30022else
30023  sync_bool_compare_and_swap_128_result=0
30024fi
30025
30026
30027    # Unwind the index
30028    pmix_scope_index=`expr $pmix_scope_index - 1`
30029    pmix_scope_test=`expr $pmix_scope_index \> 0`
30030    if test "$pmix_scope_test" = "0"; then
30031        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
30032$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
30033        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
30034$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
30035        as_fn_error $? "Cannot continue" "$LINENO" 5
30036    fi
30037
30038    # Get the variable names from that index
30039    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
30040    eval $pmix_str
30041
30042    # Iterate over all the variables and unset them all
30043    for pmix_var in $pmix_str; do
30044        unset $pmix_var
30045    done
30046
30047
30048
30049
30050cat >>confdefs.h <<_ACEOF
30051#define PMIX_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result
30052_ACEOF
30053
30054
30055
30056    # Unwind the index
30057    pmix_scope_index=`expr $pmix_scope_index - 1`
30058    pmix_scope_test=`expr $pmix_scope_index \> 0`
30059    if test "$pmix_scope_test" = "0"; then
30060        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
30061$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
30062        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
30063$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
30064        as_fn_error $? "Cannot continue" "$LINENO" 5
30065    fi
30066
30067    # Get the variable names from that index
30068    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
30069    eval $pmix_str
30070
30071    # Iterate over all the variables and unset them all
30072    for pmix_var in $pmix_str; do
30073        unset $pmix_var
30074    done
30075
30076
30077
30078            ;;
30079
30080        powerpc-*|powerpc64-*|powerpcle-*|powerpc64le-*|rs6000-*|ppc-*)
30081
30082    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PowerPC registers have r prefix" >&5
30083$as_echo_n "checking if PowerPC registers have r prefix... " >&6; }
30084    cat >conftest.s <<EOF
30085$pmix_cv_asm_text
30086        addi 1,1,0
30087EOF
30088if test "$CC" = "$CCAS" ; then
30089    pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
30090else
30091    pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
30092fi
30093if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5
30094  (eval $pmix_assemble) 2>&5
30095  ac_status=$?
30096  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30097  test $ac_status = 0; }; then
30098  # save the warnings
30099  cat conftest.out >&5
30100  pmix_cv_asm_powerpc_r_reg=0
30101else
30102  # save compiler output and failed program
30103  cat conftest.out >&5
30104  echo "configure: failed program was:" >&5
30105  cat conftest.s >&5
30106  cat >conftest.s <<EOF
30107$pmix_cv_asm_text
30108        addi r1,r1,0
30109EOF
30110if test "$CC" = "$CCAS" ; then
30111    pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
30112else
30113    pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
30114fi
30115if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5
30116  (eval $pmix_assemble) 2>&5
30117  ac_status=$?
30118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30119  test $ac_status = 0; }; then
30120  # save the warnings
30121  cat conftest.out >&5
30122  pmix_cv_asm_powerpc_r_reg=1
30123else
30124  # save compiler output and failed program
30125  cat conftest.out >&5
30126  echo "configure: failed program was:" >&5
30127  cat conftest.s >&5
30128  as_fn_error $? "Can not determine how to use PPC registers" "$LINENO" 5
30129fi
30130rm -rf conftest*
30131unset pmix_assemble
30132
30133fi
30134rm -rf conftest*
30135unset pmix_assemble
30136
30137    if test "$pmix_cv_asm_powerpc_r_reg" = "1" ; then
30138        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30139$as_echo "yes" >&6; }
30140    else
30141        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30142$as_echo "no" >&6; }
30143    fi
30144
30145
30146cat >>confdefs.h <<_ACEOF
30147#define PMIX_POWERPC_R_REGISTERS $pmix_cv_asm_powerpc_r_reg
30148_ACEOF
30149
30150
30151            if test "$ac_cv_sizeof_long" = "4" ; then
30152                pmix_cv_asm_arch="POWERPC32"
30153
30154                # Note that on some platforms (Apple G5), even if we are
30155                # compiling in 32 bit mode (and therefore should assume
30156                # sizeof(long) == 4), we can use the 64 bit test and set
30157                # operations.
30158
30159    if test "$ac_cv_sizeof_long" != "4" ; then
30160        # this function should only be called in the 32 bit case
30161        as_fn_error $? "CHECK_POWERPC_64BIT called on 64 bit platform.  Internal error." "$LINENO" 5
30162    fi
30163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit PowerPC assembly support" >&5
30164$as_echo_n "checking for 64-bit PowerPC assembly support... " >&6; }
30165        case $host in
30166            *-darwin*)
30167                ppc64_result=0
30168                if test "$pmix_cv_asm_powerpc_r_reg" = "1" ; then
30169                   ldarx_asm="        ldarx r1,r1,r1";
30170                else
30171                   ldarx_asm="        ldarx 1,1,1";
30172                fi
30173                cat >conftest.s <<EOF
30174$pmix_cv_asm_text
30175        $ldarx_asm
30176EOF
30177if test "$CC" = "$CCAS" ; then
30178    pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
30179else
30180    pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
30181fi
30182if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5
30183  (eval $pmix_assemble) 2>&5
30184  ac_status=$?
30185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30186  test $ac_status = 0; }; then
30187  # save the warnings
30188  cat conftest.out >&5
30189  ppc64_result=1
30190else
30191  # save compiler output and failed program
30192  cat conftest.out >&5
30193  echo "configure: failed program was:" >&5
30194  cat conftest.s >&5
30195  ppc64_result=0
30196fi
30197rm -rf conftest*
30198unset pmix_assemble
30199
30200            ;;
30201            *)
30202                ppc64_result=0
30203            ;;
30204        esac
30205
30206    if test "$ppc64_result" = "1" ; then
30207        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30208$as_echo "yes" >&6; }
30209        PMIX_ASM_SUPPORT_64BIT=1
30210    else
30211        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30212$as_echo "no" >&6; }
30213        :
30214    fi
30215
30216    unset ppc64_result ldarx_asm
30217
30218            elif test "$ac_cv_sizeof_long" = "8" ; then
30219                PMIX_ASM_SUPPORT_64BIT=1
30220                pmix_cv_asm_arch="POWERPC64"
30221            else
30222                as_fn_error $? "Could not determine PowerPC word size: $ac_cv_sizeof_long" "$LINENO" 5
30223            fi
30224            PMIX_GCC_INLINE_ASSIGN='"1: li %0,0" : "=&r"(ret)'
30225            ;;
30226        # There is no current difference between s390 and s390x
30227        # But use two different defines in case some come later
30228        # as s390 is 31bits while s390x is 64bits
30229        s390-*)
30230            pmix_cv_asm_arch="S390"
30231
30232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5
30233$as_echo_n "checking for __sync builtin atomics... " >&6; }
30234
30235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30236/* end confdefs.h.  */
30237long tmp;
30238int
30239main ()
30240{
30241__sync_synchronize();
30242__sync_bool_compare_and_swap(&tmp, 0, 1);
30243__sync_add_and_fetch(&tmp, 1);
30244  ;
30245  return 0;
30246}
30247_ACEOF
30248if ac_fn_c_try_link "$LINENO"; then :
30249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30250$as_echo "yes" >&6; }
30251     pmix_cv_asm_builtin="BUILTIN_SYNC"
30252else
30253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30254$as_echo "no" >&6; }
30255     as_fn_error $? "No atomic primitives available for $host" "$LINENO" 5
30256fi
30257rm -f core conftest.err conftest.$ac_objext \
30258    conftest$ac_exeext conftest.$ac_ext
30259
30260  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5
30261$as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; }
30262
30263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30264/* end confdefs.h.  */
30265
30266#include <stdint.h>
30267uint64_t tmp;
30268int
30269main ()
30270{
30271
30272__sync_bool_compare_and_swap(&tmp, 0, 1);
30273__sync_add_and_fetch(&tmp, 1);
30274  ;
30275  return 0;
30276}
30277_ACEOF
30278if ac_fn_c_try_link "$LINENO"; then :
30279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30280$as_echo "yes" >&6; }
30281     pmix_asm_sync_have_64bit=1
30282else
30283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30284$as_echo "no" >&6; }
30285     pmix_asm_sync_have_64bit=0
30286fi
30287rm -f core conftest.err conftest.$ac_objext \
30288    conftest$ac_exeext conftest.$ac_ext
30289
30290
30291cat >>confdefs.h <<_ACEOF
30292#define PMIX_ASM_SYNC_HAVE_64BIT $pmix_asm_sync_have_64bit
30293_ACEOF
30294
30295
30296  # Check for 128-bit support
30297
30298
30299
30300    # Is the private index set?  If not, set it.
30301    if test "x$pmix_scope_index" = "x"; then
30302        pmix_scope_index=1
30303    fi
30304
30305    # First, check to see if any of these variables are already set.
30306    # This is a simple sanity check to ensure we're not already
30307    # overwriting pre-existing variables (that have a non-empty
30308    # value).  It's not a perfect check, but at least it's something.
30309    for pmix_var in sync_bool_compare_and_swap_128_result; do
30310        pmix_str="pmix_str=\"\$$pmix_var\""
30311        eval $pmix_str
30312
30313        if test "x$pmix_str" != "x"; then
30314            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
30315$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
30316            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
30317$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
30318            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
30319$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
30320            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
30321$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
30322            as_fn_error $? "Cannot continue" "$LINENO" 5
30323        fi
30324    done
30325
30326    # Ok, we passed the simple sanity check.  Save all these names so
30327    # that we can unset them at the end of the scope.
30328    pmix_str="pmix_scope_$pmix_scope_index=\"sync_bool_compare_and_swap_128_result\""
30329    eval $pmix_str
30330    unset pmix_str
30331
30332    env | grep pmix_scope
30333    pmix_scope_index=`expr $pmix_scope_index + 1`
30334
30335
30336  # Do we have __sync_bool_compare_and_swap?
30337  # Use a special macro because we need to check with a few different
30338  # CFLAGS/LIBS.
30339
30340
30341
30342    # Is the private index set?  If not, set it.
30343    if test "x$pmix_scope_index" = "x"; then
30344        pmix_scope_index=1
30345    fi
30346
30347    # First, check to see if any of these variables are already set.
30348    # This is a simple sanity check to ensure we're not already
30349    # overwriting pre-existing variables (that have a non-empty
30350    # value).  It's not a perfect check, but at least it's something.
30351    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
30352        pmix_str="pmix_str=\"\$$pmix_var\""
30353        eval $pmix_str
30354
30355        if test "x$pmix_str" != "x"; then
30356            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
30357$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
30358            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
30359$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
30360            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
30361$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
30362            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
30363$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
30364            as_fn_error $? "Cannot continue" "$LINENO" 5
30365        fi
30366    done
30367
30368    # Ok, we passed the simple sanity check.  Save all these names so
30369    # that we can unset them at the end of the scope.
30370    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
30371    eval $pmix_str
30372    unset pmix_str
30373
30374    env | grep pmix_scope
30375    pmix_scope_index=`expr $pmix_scope_index + 1`
30376
30377
30378    pmix_asm_check_func_CFLAGS_save=$CFLAGS
30379    pmix_asm_check_func_LIBS_save=$LIBS
30380
30381        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5
30382$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; }
30383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30384/* end confdefs.h.  */
30385
30386#include <stdint.h>
30387#include <stdbool.h>
30388#include <stdlib.h>
30389
30390typedef union {
30391    uint64_t fake[2];
30392    __int128 real;
30393} pmix128;
30394
30395static void test1(void)
30396{
30397    // As of Aug 2018, we could not figure out a way to assign 128-bit
30398    // constants -- the compilers would not accept it.  So use a fake
30399    // union to assign 2 uin64_t's to make a single __int128.
30400    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
30401    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
30402    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
30403    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
30404    if (!(r == false && ptr.real != newval.real)) {
30405        exit(1);
30406    }
30407}
30408
30409static void test2(void)
30410{
30411    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
30412    pmix128 oldval = ptr;
30413    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
30414    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
30415    if (!(r == true && ptr.real == newval.real)) {
30416        exit(2);
30417    }
30418}
30419
30420int main(int argc, char** argv)
30421{
30422    test1();
30423    test2();
30424    return 0;
30425}
30426
30427_ACEOF
30428if ac_fn_c_try_link "$LINENO"; then :
30429  pmix_asm_check_func_happy=1
30430         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30431$as_echo "yes" >&6; }
30432else
30433  pmix_asm_check_func_happy=0
30434         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30435$as_echo "no" >&6; }
30436fi
30437rm -f core conftest.err conftest.$ac_objext \
30438    conftest$ac_exeext conftest.$ac_ext
30439
30440        if test $pmix_asm_check_func_happy -eq 0; then :
30441  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5
30442$as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; }
30443         CFLAGS="$CFLAGS -mcx16"
30444         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30445/* end confdefs.h.  */
30446
30447#include <stdint.h>
30448#include <stdbool.h>
30449#include <stdlib.h>
30450
30451typedef union {
30452    uint64_t fake[2];
30453    __int128 real;
30454} pmix128;
30455
30456static void test1(void)
30457{
30458    // As of Aug 2018, we could not figure out a way to assign 128-bit
30459    // constants -- the compilers would not accept it.  So use a fake
30460    // union to assign 2 uin64_t's to make a single __int128.
30461    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
30462    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
30463    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
30464    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
30465    if (!(r == false && ptr.real != newval.real)) {
30466        exit(1);
30467    }
30468}
30469
30470static void test2(void)
30471{
30472    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
30473    pmix128 oldval = ptr;
30474    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
30475    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
30476    if (!(r == true && ptr.real == newval.real)) {
30477        exit(2);
30478    }
30479}
30480
30481int main(int argc, char** argv)
30482{
30483    test1();
30484    test2();
30485    return 0;
30486}
30487
30488_ACEOF
30489if ac_fn_c_try_link "$LINENO"; then :
30490  pmix_asm_check_func_happy=1
30491              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30492$as_echo "yes" >&6; }
30493else
30494  pmix_asm_check_func_happy=0
30495              CFLAGS=$pmix_asm_check_func_CFLAGS_save
30496              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30497$as_echo "no" >&6; }
30498fi
30499rm -f core conftest.err conftest.$ac_objext \
30500    conftest$ac_exeext conftest.$ac_ext
30501
30502fi
30503
30504        if test $pmix_asm_check_func_happy -eq 0; then :
30505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5
30506$as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; }
30507         LIBS="$LIBS -latomic"
30508         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30509/* end confdefs.h.  */
30510
30511#include <stdint.h>
30512#include <stdbool.h>
30513#include <stdlib.h>
30514
30515typedef union {
30516    uint64_t fake[2];
30517    __int128 real;
30518} pmix128;
30519
30520static void test1(void)
30521{
30522    // As of Aug 2018, we could not figure out a way to assign 128-bit
30523    // constants -- the compilers would not accept it.  So use a fake
30524    // union to assign 2 uin64_t's to make a single __int128.
30525    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
30526    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
30527    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
30528    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
30529    if (!(r == false && ptr.real != newval.real)) {
30530        exit(1);
30531    }
30532}
30533
30534static void test2(void)
30535{
30536    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
30537    pmix128 oldval = ptr;
30538    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
30539    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
30540    if (!(r == true && ptr.real == newval.real)) {
30541        exit(2);
30542    }
30543}
30544
30545int main(int argc, char** argv)
30546{
30547    test1();
30548    test2();
30549    return 0;
30550}
30551
30552_ACEOF
30553if ac_fn_c_try_link "$LINENO"; then :
30554  pmix_asm_check_func_happy=1
30555              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30556$as_echo "yes" >&6; }
30557else
30558  pmix_asm_check_func_happy=0
30559              LIBS=$pmix_asm_check_func_LIBS_save
30560              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30561$as_echo "no" >&6; }
30562fi
30563rm -f core conftest.err conftest.$ac_objext \
30564    conftest$ac_exeext conftest.$ac_ext
30565
30566fi
30567
30568                if test $pmix_asm_check_func_happy -eq 1; then :
30569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5
30570$as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; }
30571         if test "$cross_compiling" = yes; then :
30572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
30573$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
30574else
30575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30576/* end confdefs.h.  */
30577
30578#include <stdint.h>
30579#include <stdbool.h>
30580#include <stdlib.h>
30581
30582typedef union {
30583    uint64_t fake[2];
30584    __int128 real;
30585} pmix128;
30586
30587static void test1(void)
30588{
30589    // As of Aug 2018, we could not figure out a way to assign 128-bit
30590    // constants -- the compilers would not accept it.  So use a fake
30591    // union to assign 2 uin64_t's to make a single __int128.
30592    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
30593    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
30594    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
30595    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
30596    if (!(r == false && ptr.real != newval.real)) {
30597        exit(1);
30598    }
30599}
30600
30601static void test2(void)
30602{
30603    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
30604    pmix128 oldval = ptr;
30605    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
30606    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
30607    if (!(r == true && ptr.real == newval.real)) {
30608        exit(2);
30609    }
30610}
30611
30612int main(int argc, char** argv)
30613{
30614    test1();
30615    test2();
30616    return 0;
30617}
30618
30619_ACEOF
30620if ac_fn_c_try_run "$LINENO"; then :
30621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30622$as_echo "yes" >&6; }
30623else
30624  pmix_asm_check_func_happy=0
30625               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30626$as_echo "no" >&6; }
30627fi
30628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30629  conftest.$ac_objext conftest.beam conftest.$ac_ext
30630fi
30631
30632
30633fi
30634
30635        if test $pmix_asm_check_func_happy -eq 0; then :
30636  CFLAGS=$pmix_asm_check_func_CFLAGS_save
30637         LIBS=$pmix_asm_check_func_LIBS_save
30638fi
30639
30640        if test $pmix_asm_check_func_happy -eq 1; then :
30641  sync_bool_compare_and_swap_128_result=1
30642else
30643  sync_bool_compare_and_swap_128_result=0
30644fi
30645
30646
30647    # Unwind the index
30648    pmix_scope_index=`expr $pmix_scope_index - 1`
30649    pmix_scope_test=`expr $pmix_scope_index \> 0`
30650    if test "$pmix_scope_test" = "0"; then
30651        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
30652$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
30653        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
30654$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
30655        as_fn_error $? "Cannot continue" "$LINENO" 5
30656    fi
30657
30658    # Get the variable names from that index
30659    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
30660    eval $pmix_str
30661
30662    # Iterate over all the variables and unset them all
30663    for pmix_var in $pmix_str; do
30664        unset $pmix_var
30665    done
30666
30667
30668
30669
30670cat >>confdefs.h <<_ACEOF
30671#define PMIX_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result
30672_ACEOF
30673
30674
30675
30676    # Unwind the index
30677    pmix_scope_index=`expr $pmix_scope_index - 1`
30678    pmix_scope_test=`expr $pmix_scope_index \> 0`
30679    if test "$pmix_scope_test" = "0"; then
30680        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
30681$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
30682        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
30683$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
30684        as_fn_error $? "Cannot continue" "$LINENO" 5
30685    fi
30686
30687    # Get the variable names from that index
30688    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
30689    eval $pmix_str
30690
30691    # Iterate over all the variables and unset them all
30692    for pmix_var in $pmix_str; do
30693        unset $pmix_var
30694    done
30695
30696
30697
30698            ;;
30699        s390x-*)
30700            pmix_cv_asm_arch="S390X"
30701
30702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5
30703$as_echo_n "checking for __sync builtin atomics... " >&6; }
30704
30705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30706/* end confdefs.h.  */
30707long tmp;
30708int
30709main ()
30710{
30711__sync_synchronize();
30712__sync_bool_compare_and_swap(&tmp, 0, 1);
30713__sync_add_and_fetch(&tmp, 1);
30714  ;
30715  return 0;
30716}
30717_ACEOF
30718if ac_fn_c_try_link "$LINENO"; then :
30719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30720$as_echo "yes" >&6; }
30721     pmix_cv_asm_builtin="BUILTIN_SYNC"
30722else
30723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30724$as_echo "no" >&6; }
30725     as_fn_error $? "No atomic primitives available for $host" "$LINENO" 5
30726fi
30727rm -f core conftest.err conftest.$ac_objext \
30728    conftest$ac_exeext conftest.$ac_ext
30729
30730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5
30731$as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; }
30732
30733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30734/* end confdefs.h.  */
30735
30736#include <stdint.h>
30737uint64_t tmp;
30738int
30739main ()
30740{
30741
30742__sync_bool_compare_and_swap(&tmp, 0, 1);
30743__sync_add_and_fetch(&tmp, 1);
30744  ;
30745  return 0;
30746}
30747_ACEOF
30748if ac_fn_c_try_link "$LINENO"; then :
30749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30750$as_echo "yes" >&6; }
30751     pmix_asm_sync_have_64bit=1
30752else
30753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30754$as_echo "no" >&6; }
30755     pmix_asm_sync_have_64bit=0
30756fi
30757rm -f core conftest.err conftest.$ac_objext \
30758    conftest$ac_exeext conftest.$ac_ext
30759
30760
30761cat >>confdefs.h <<_ACEOF
30762#define PMIX_ASM_SYNC_HAVE_64BIT $pmix_asm_sync_have_64bit
30763_ACEOF
30764
30765
30766  # Check for 128-bit support
30767
30768
30769
30770    # Is the private index set?  If not, set it.
30771    if test "x$pmix_scope_index" = "x"; then
30772        pmix_scope_index=1
30773    fi
30774
30775    # First, check to see if any of these variables are already set.
30776    # This is a simple sanity check to ensure we're not already
30777    # overwriting pre-existing variables (that have a non-empty
30778    # value).  It's not a perfect check, but at least it's something.
30779    for pmix_var in sync_bool_compare_and_swap_128_result; do
30780        pmix_str="pmix_str=\"\$$pmix_var\""
30781        eval $pmix_str
30782
30783        if test "x$pmix_str" != "x"; then
30784            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
30785$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
30786            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
30787$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
30788            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
30789$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
30790            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
30791$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
30792            as_fn_error $? "Cannot continue" "$LINENO" 5
30793        fi
30794    done
30795
30796    # Ok, we passed the simple sanity check.  Save all these names so
30797    # that we can unset them at the end of the scope.
30798    pmix_str="pmix_scope_$pmix_scope_index=\"sync_bool_compare_and_swap_128_result\""
30799    eval $pmix_str
30800    unset pmix_str
30801
30802    env | grep pmix_scope
30803    pmix_scope_index=`expr $pmix_scope_index + 1`
30804
30805
30806  # Do we have __sync_bool_compare_and_swap?
30807  # Use a special macro because we need to check with a few different
30808  # CFLAGS/LIBS.
30809
30810
30811
30812    # Is the private index set?  If not, set it.
30813    if test "x$pmix_scope_index" = "x"; then
30814        pmix_scope_index=1
30815    fi
30816
30817    # First, check to see if any of these variables are already set.
30818    # This is a simple sanity check to ensure we're not already
30819    # overwriting pre-existing variables (that have a non-empty
30820    # value).  It's not a perfect check, but at least it's something.
30821    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
30822        pmix_str="pmix_str=\"\$$pmix_var\""
30823        eval $pmix_str
30824
30825        if test "x$pmix_str" != "x"; then
30826            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
30827$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
30828            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
30829$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
30830            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
30831$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
30832            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
30833$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
30834            as_fn_error $? "Cannot continue" "$LINENO" 5
30835        fi
30836    done
30837
30838    # Ok, we passed the simple sanity check.  Save all these names so
30839    # that we can unset them at the end of the scope.
30840    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
30841    eval $pmix_str
30842    unset pmix_str
30843
30844    env | grep pmix_scope
30845    pmix_scope_index=`expr $pmix_scope_index + 1`
30846
30847
30848    pmix_asm_check_func_CFLAGS_save=$CFLAGS
30849    pmix_asm_check_func_LIBS_save=$LIBS
30850
30851        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5
30852$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; }
30853    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30854/* end confdefs.h.  */
30855
30856#include <stdint.h>
30857#include <stdbool.h>
30858#include <stdlib.h>
30859
30860typedef union {
30861    uint64_t fake[2];
30862    __int128 real;
30863} pmix128;
30864
30865static void test1(void)
30866{
30867    // As of Aug 2018, we could not figure out a way to assign 128-bit
30868    // constants -- the compilers would not accept it.  So use a fake
30869    // union to assign 2 uin64_t's to make a single __int128.
30870    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
30871    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
30872    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
30873    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
30874    if (!(r == false && ptr.real != newval.real)) {
30875        exit(1);
30876    }
30877}
30878
30879static void test2(void)
30880{
30881    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
30882    pmix128 oldval = ptr;
30883    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
30884    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
30885    if (!(r == true && ptr.real == newval.real)) {
30886        exit(2);
30887    }
30888}
30889
30890int main(int argc, char** argv)
30891{
30892    test1();
30893    test2();
30894    return 0;
30895}
30896
30897_ACEOF
30898if ac_fn_c_try_link "$LINENO"; then :
30899  pmix_asm_check_func_happy=1
30900         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30901$as_echo "yes" >&6; }
30902else
30903  pmix_asm_check_func_happy=0
30904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30905$as_echo "no" >&6; }
30906fi
30907rm -f core conftest.err conftest.$ac_objext \
30908    conftest$ac_exeext conftest.$ac_ext
30909
30910        if test $pmix_asm_check_func_happy -eq 0; then :
30911  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5
30912$as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; }
30913         CFLAGS="$CFLAGS -mcx16"
30914         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30915/* end confdefs.h.  */
30916
30917#include <stdint.h>
30918#include <stdbool.h>
30919#include <stdlib.h>
30920
30921typedef union {
30922    uint64_t fake[2];
30923    __int128 real;
30924} pmix128;
30925
30926static void test1(void)
30927{
30928    // As of Aug 2018, we could not figure out a way to assign 128-bit
30929    // constants -- the compilers would not accept it.  So use a fake
30930    // union to assign 2 uin64_t's to make a single __int128.
30931    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
30932    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
30933    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
30934    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
30935    if (!(r == false && ptr.real != newval.real)) {
30936        exit(1);
30937    }
30938}
30939
30940static void test2(void)
30941{
30942    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
30943    pmix128 oldval = ptr;
30944    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
30945    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
30946    if (!(r == true && ptr.real == newval.real)) {
30947        exit(2);
30948    }
30949}
30950
30951int main(int argc, char** argv)
30952{
30953    test1();
30954    test2();
30955    return 0;
30956}
30957
30958_ACEOF
30959if ac_fn_c_try_link "$LINENO"; then :
30960  pmix_asm_check_func_happy=1
30961              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30962$as_echo "yes" >&6; }
30963else
30964  pmix_asm_check_func_happy=0
30965              CFLAGS=$pmix_asm_check_func_CFLAGS_save
30966              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30967$as_echo "no" >&6; }
30968fi
30969rm -f core conftest.err conftest.$ac_objext \
30970    conftest$ac_exeext conftest.$ac_ext
30971
30972fi
30973
30974        if test $pmix_asm_check_func_happy -eq 0; then :
30975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5
30976$as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; }
30977         LIBS="$LIBS -latomic"
30978         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30979/* end confdefs.h.  */
30980
30981#include <stdint.h>
30982#include <stdbool.h>
30983#include <stdlib.h>
30984
30985typedef union {
30986    uint64_t fake[2];
30987    __int128 real;
30988} pmix128;
30989
30990static void test1(void)
30991{
30992    // As of Aug 2018, we could not figure out a way to assign 128-bit
30993    // constants -- the compilers would not accept it.  So use a fake
30994    // union to assign 2 uin64_t's to make a single __int128.
30995    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
30996    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
30997    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
30998    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
30999    if (!(r == false && ptr.real != newval.real)) {
31000        exit(1);
31001    }
31002}
31003
31004static void test2(void)
31005{
31006    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
31007    pmix128 oldval = ptr;
31008    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
31009    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
31010    if (!(r == true && ptr.real == newval.real)) {
31011        exit(2);
31012    }
31013}
31014
31015int main(int argc, char** argv)
31016{
31017    test1();
31018    test2();
31019    return 0;
31020}
31021
31022_ACEOF
31023if ac_fn_c_try_link "$LINENO"; then :
31024  pmix_asm_check_func_happy=1
31025              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31026$as_echo "yes" >&6; }
31027else
31028  pmix_asm_check_func_happy=0
31029              LIBS=$pmix_asm_check_func_LIBS_save
31030              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31031$as_echo "no" >&6; }
31032fi
31033rm -f core conftest.err conftest.$ac_objext \
31034    conftest$ac_exeext conftest.$ac_ext
31035
31036fi
31037
31038                if test $pmix_asm_check_func_happy -eq 1; then :
31039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5
31040$as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; }
31041         if test "$cross_compiling" = yes; then :
31042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
31043$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
31044else
31045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31046/* end confdefs.h.  */
31047
31048#include <stdint.h>
31049#include <stdbool.h>
31050#include <stdlib.h>
31051
31052typedef union {
31053    uint64_t fake[2];
31054    __int128 real;
31055} pmix128;
31056
31057static void test1(void)
31058{
31059    // As of Aug 2018, we could not figure out a way to assign 128-bit
31060    // constants -- the compilers would not accept it.  So use a fake
31061    // union to assign 2 uin64_t's to make a single __int128.
31062    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
31063    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
31064    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
31065    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
31066    if (!(r == false && ptr.real != newval.real)) {
31067        exit(1);
31068    }
31069}
31070
31071static void test2(void)
31072{
31073    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
31074    pmix128 oldval = ptr;
31075    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
31076    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
31077    if (!(r == true && ptr.real == newval.real)) {
31078        exit(2);
31079    }
31080}
31081
31082int main(int argc, char** argv)
31083{
31084    test1();
31085    test2();
31086    return 0;
31087}
31088
31089_ACEOF
31090if ac_fn_c_try_run "$LINENO"; then :
31091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31092$as_echo "yes" >&6; }
31093else
31094  pmix_asm_check_func_happy=0
31095               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31096$as_echo "no" >&6; }
31097fi
31098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31099  conftest.$ac_objext conftest.beam conftest.$ac_ext
31100fi
31101
31102
31103fi
31104
31105        if test $pmix_asm_check_func_happy -eq 0; then :
31106  CFLAGS=$pmix_asm_check_func_CFLAGS_save
31107         LIBS=$pmix_asm_check_func_LIBS_save
31108fi
31109
31110        if test $pmix_asm_check_func_happy -eq 1; then :
31111  sync_bool_compare_and_swap_128_result=1
31112else
31113  sync_bool_compare_and_swap_128_result=0
31114fi
31115
31116
31117    # Unwind the index
31118    pmix_scope_index=`expr $pmix_scope_index - 1`
31119    pmix_scope_test=`expr $pmix_scope_index \> 0`
31120    if test "$pmix_scope_test" = "0"; then
31121        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
31122$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
31123        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
31124$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
31125        as_fn_error $? "Cannot continue" "$LINENO" 5
31126    fi
31127
31128    # Get the variable names from that index
31129    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
31130    eval $pmix_str
31131
31132    # Iterate over all the variables and unset them all
31133    for pmix_var in $pmix_str; do
31134        unset $pmix_var
31135    done
31136
31137
31138
31139
31140cat >>confdefs.h <<_ACEOF
31141#define PMIX_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result
31142_ACEOF
31143
31144
31145
31146    # Unwind the index
31147    pmix_scope_index=`expr $pmix_scope_index - 1`
31148    pmix_scope_test=`expr $pmix_scope_index \> 0`
31149    if test "$pmix_scope_test" = "0"; then
31150        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
31151$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
31152        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
31153$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
31154        as_fn_error $? "Cannot continue" "$LINENO" 5
31155    fi
31156
31157    # Get the variable names from that index
31158    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
31159    eval $pmix_str
31160
31161    # Iterate over all the variables and unset them all
31162    for pmix_var in $pmix_str; do
31163        unset $pmix_var
31164    done
31165
31166
31167
31168            ;;
31169        sparc*-*)
31170            # SPARC v9 (and above) are the only ones with 64bit support
31171            # if compiling 32 bit, see if we are v9 (aka v8plus) or
31172            # earlier (casa is v8+/v9).
31173            if test "$ac_cv_sizeof_long" = "4" ; then
31174                have_v8plus=0
31175
31176    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if have Sparc v8+/v9 support" >&5
31177$as_echo_n "checking if have Sparc v8+/v9 support... " >&6; }
31178    sparc_result=0
31179    cat >conftest.s <<EOF
31180$pmix_cv_asm_text
31181        casa [%o0] 0x80, %o1, %o2
31182EOF
31183if test "$CC" = "$CCAS" ; then
31184    pmix_assemble="$CCAS $CCASFLAGS -c conftest.s >conftest.out 2>&1"
31185else
31186    pmix_assemble="$CCAS $CCASFLAGS -o conftest.o conftest.s >conftest.out 2>&1"
31187fi
31188if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$pmix_assemble\""; } >&5
31189  (eval $pmix_assemble) 2>&5
31190  ac_status=$?
31191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31192  test $ac_status = 0; }; then
31193  # save the warnings
31194  cat conftest.out >&5
31195  sparc_result=1
31196else
31197  # save compiler output and failed program
31198  cat conftest.out >&5
31199  echo "configure: failed program was:" >&5
31200  cat conftest.s >&5
31201  sparc_result=0
31202fi
31203rm -rf conftest*
31204unset pmix_assemble
31205
31206    if test "$sparc_result" = "1" ; then
31207        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31208$as_echo "yes" >&6; }
31209        have_v8plus=1
31210    else
31211        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31212$as_echo "no" >&6; }
31213        :
31214    fi
31215
31216    unset sparc_result
31217
31218                if test "$have_v8plus" = "0" ; then
31219                    PMIX_ASM_SUPPORT_64BIT=0
31220                    pmix_cv_asm_arch="SPARC"
31221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&5
31222$as_echo "$as_me: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&2;}
31223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must specify the target architecture v8plus to compile" >&5
31224$as_echo "$as_me: WARNING: You must specify the target architecture v8plus to compile" >&2;}
31225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Open MPI in 32 bit mode on Sparc processors (see the README)." >&5
31226$as_echo "$as_me: WARNING: Open MPI in 32 bit mode on Sparc processors (see the README)." >&2;}
31227as_fn_error $? "Can not continue." "$LINENO" 5
31228                else
31229                    PMIX_ASM_SUPPORT_64BIT=1
31230                    pmix_cv_asm_arch="SPARCV9_32"
31231                fi
31232
31233            elif test "$ac_cv_sizeof_long" = "8" ; then
31234                PMIX_ASM_SUPPORT_64BIT=1
31235                pmix_cv_asm_arch="SPARCV9_64"
31236            else
31237                as_fn_error $? "Could not determine Sparc word size: $ac_cv_sizeof_long" "$LINENO" 5
31238            fi
31239            PMIX_GCC_INLINE_ASSIGN='"mov 0,%0" : "=&r"(ret)'
31240            ;;
31241
31242        *)
31243
31244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync builtin atomics" >&5
31245$as_echo_n "checking for __sync builtin atomics... " >&6; }
31246
31247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31248/* end confdefs.h.  */
31249long tmp;
31250int
31251main ()
31252{
31253__sync_synchronize();
31254__sync_bool_compare_and_swap(&tmp, 0, 1);
31255__sync_add_and_fetch(&tmp, 1);
31256  ;
31257  return 0;
31258}
31259_ACEOF
31260if ac_fn_c_try_link "$LINENO"; then :
31261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31262$as_echo "yes" >&6; }
31263     pmix_cv_asm_builtin="BUILTIN_SYNC"
31264else
31265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31266$as_echo "no" >&6; }
31267     as_fn_error $? "No atomic primitives available for $host" "$LINENO" 5
31268fi
31269rm -f core conftest.err conftest.$ac_objext \
31270    conftest$ac_exeext conftest.$ac_ext
31271
31272  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit __sync builtin atomics" >&5
31273$as_echo_n "checking for 64-bit __sync builtin atomics... " >&6; }
31274
31275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31276/* end confdefs.h.  */
31277
31278#include <stdint.h>
31279uint64_t tmp;
31280int
31281main ()
31282{
31283
31284__sync_bool_compare_and_swap(&tmp, 0, 1);
31285__sync_add_and_fetch(&tmp, 1);
31286  ;
31287  return 0;
31288}
31289_ACEOF
31290if ac_fn_c_try_link "$LINENO"; then :
31291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31292$as_echo "yes" >&6; }
31293     pmix_asm_sync_have_64bit=1
31294else
31295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31296$as_echo "no" >&6; }
31297     pmix_asm_sync_have_64bit=0
31298fi
31299rm -f core conftest.err conftest.$ac_objext \
31300    conftest$ac_exeext conftest.$ac_ext
31301
31302
31303cat >>confdefs.h <<_ACEOF
31304#define PMIX_ASM_SYNC_HAVE_64BIT $pmix_asm_sync_have_64bit
31305_ACEOF
31306
31307
31308  # Check for 128-bit support
31309
31310
31311
31312    # Is the private index set?  If not, set it.
31313    if test "x$pmix_scope_index" = "x"; then
31314        pmix_scope_index=1
31315    fi
31316
31317    # First, check to see if any of these variables are already set.
31318    # This is a simple sanity check to ensure we're not already
31319    # overwriting pre-existing variables (that have a non-empty
31320    # value).  It's not a perfect check, but at least it's something.
31321    for pmix_var in sync_bool_compare_and_swap_128_result; do
31322        pmix_str="pmix_str=\"\$$pmix_var\""
31323        eval $pmix_str
31324
31325        if test "x$pmix_str" != "x"; then
31326            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
31327$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
31328            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
31329$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
31330            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
31331$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
31332            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
31333$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
31334            as_fn_error $? "Cannot continue" "$LINENO" 5
31335        fi
31336    done
31337
31338    # Ok, we passed the simple sanity check.  Save all these names so
31339    # that we can unset them at the end of the scope.
31340    pmix_str="pmix_scope_$pmix_scope_index=\"sync_bool_compare_and_swap_128_result\""
31341    eval $pmix_str
31342    unset pmix_str
31343
31344    env | grep pmix_scope
31345    pmix_scope_index=`expr $pmix_scope_index + 1`
31346
31347
31348  # Do we have __sync_bool_compare_and_swap?
31349  # Use a special macro because we need to check with a few different
31350  # CFLAGS/LIBS.
31351
31352
31353
31354    # Is the private index set?  If not, set it.
31355    if test "x$pmix_scope_index" = "x"; then
31356        pmix_scope_index=1
31357    fi
31358
31359    # First, check to see if any of these variables are already set.
31360    # This is a simple sanity check to ensure we're not already
31361    # overwriting pre-existing variables (that have a non-empty
31362    # value).  It's not a perfect check, but at least it's something.
31363    for pmix_var in pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save; do
31364        pmix_str="pmix_str=\"\$$pmix_var\""
31365        eval $pmix_str
31366
31367        if test "x$pmix_str" != "x"; then
31368            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
31369$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
31370            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
31371$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
31372            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
31373$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
31374            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
31375$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
31376            as_fn_error $? "Cannot continue" "$LINENO" 5
31377        fi
31378    done
31379
31380    # Ok, we passed the simple sanity check.  Save all these names so
31381    # that we can unset them at the end of the scope.
31382    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_asm_check_func_happy pmix_asm_check_func_CFLAGS_save pmix_asm_check_func_LIBS_save\""
31383    eval $pmix_str
31384    unset pmix_str
31385
31386    env | grep pmix_scope
31387    pmix_scope_index=`expr $pmix_scope_index + 1`
31388
31389
31390    pmix_asm_check_func_CFLAGS_save=$CFLAGS
31391    pmix_asm_check_func_LIBS_save=$LIBS
31392
31393        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5
31394$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; }
31395    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31396/* end confdefs.h.  */
31397
31398#include <stdint.h>
31399#include <stdbool.h>
31400#include <stdlib.h>
31401
31402typedef union {
31403    uint64_t fake[2];
31404    __int128 real;
31405} pmix128;
31406
31407static void test1(void)
31408{
31409    // As of Aug 2018, we could not figure out a way to assign 128-bit
31410    // constants -- the compilers would not accept it.  So use a fake
31411    // union to assign 2 uin64_t's to make a single __int128.
31412    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
31413    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
31414    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
31415    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
31416    if (!(r == false && ptr.real != newval.real)) {
31417        exit(1);
31418    }
31419}
31420
31421static void test2(void)
31422{
31423    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
31424    pmix128 oldval = ptr;
31425    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
31426    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
31427    if (!(r == true && ptr.real == newval.real)) {
31428        exit(2);
31429    }
31430}
31431
31432int main(int argc, char** argv)
31433{
31434    test1();
31435    test2();
31436    return 0;
31437}
31438
31439_ACEOF
31440if ac_fn_c_try_link "$LINENO"; then :
31441  pmix_asm_check_func_happy=1
31442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31443$as_echo "yes" >&6; }
31444else
31445  pmix_asm_check_func_happy=0
31446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31447$as_echo "no" >&6; }
31448fi
31449rm -f core conftest.err conftest.$ac_objext \
31450    conftest$ac_exeext conftest.$ac_ext
31451
31452        if test $pmix_asm_check_func_happy -eq 0; then :
31453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -mcx16" >&5
31454$as_echo_n "checking for __sync_bool_compare_and_swap with -mcx16... " >&6; }
31455         CFLAGS="$CFLAGS -mcx16"
31456         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31457/* end confdefs.h.  */
31458
31459#include <stdint.h>
31460#include <stdbool.h>
31461#include <stdlib.h>
31462
31463typedef union {
31464    uint64_t fake[2];
31465    __int128 real;
31466} pmix128;
31467
31468static void test1(void)
31469{
31470    // As of Aug 2018, we could not figure out a way to assign 128-bit
31471    // constants -- the compilers would not accept it.  So use a fake
31472    // union to assign 2 uin64_t's to make a single __int128.
31473    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
31474    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
31475    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
31476    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
31477    if (!(r == false && ptr.real != newval.real)) {
31478        exit(1);
31479    }
31480}
31481
31482static void test2(void)
31483{
31484    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
31485    pmix128 oldval = ptr;
31486    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
31487    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
31488    if (!(r == true && ptr.real == newval.real)) {
31489        exit(2);
31490    }
31491}
31492
31493int main(int argc, char** argv)
31494{
31495    test1();
31496    test2();
31497    return 0;
31498}
31499
31500_ACEOF
31501if ac_fn_c_try_link "$LINENO"; then :
31502  pmix_asm_check_func_happy=1
31503              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31504$as_echo "yes" >&6; }
31505else
31506  pmix_asm_check_func_happy=0
31507              CFLAGS=$pmix_asm_check_func_CFLAGS_save
31508              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31509$as_echo "no" >&6; }
31510fi
31511rm -f core conftest.err conftest.$ac_objext \
31512    conftest$ac_exeext conftest.$ac_ext
31513
31514fi
31515
31516        if test $pmix_asm_check_func_happy -eq 0; then :
31517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap with -latomic" >&5
31518$as_echo_n "checking for __sync_bool_compare_and_swap with -latomic... " >&6; }
31519         LIBS="$LIBS -latomic"
31520         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31521/* end confdefs.h.  */
31522
31523#include <stdint.h>
31524#include <stdbool.h>
31525#include <stdlib.h>
31526
31527typedef union {
31528    uint64_t fake[2];
31529    __int128 real;
31530} pmix128;
31531
31532static void test1(void)
31533{
31534    // As of Aug 2018, we could not figure out a way to assign 128-bit
31535    // constants -- the compilers would not accept it.  So use a fake
31536    // union to assign 2 uin64_t's to make a single __int128.
31537    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
31538    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
31539    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
31540    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
31541    if (!(r == false && ptr.real != newval.real)) {
31542        exit(1);
31543    }
31544}
31545
31546static void test2(void)
31547{
31548    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
31549    pmix128 oldval = ptr;
31550    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
31551    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
31552    if (!(r == true && ptr.real == newval.real)) {
31553        exit(2);
31554    }
31555}
31556
31557int main(int argc, char** argv)
31558{
31559    test1();
31560    test2();
31561    return 0;
31562}
31563
31564_ACEOF
31565if ac_fn_c_try_link "$LINENO"; then :
31566  pmix_asm_check_func_happy=1
31567              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31568$as_echo "yes" >&6; }
31569else
31570  pmix_asm_check_func_happy=0
31571              LIBS=$pmix_asm_check_func_LIBS_save
31572              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31573$as_echo "no" >&6; }
31574fi
31575rm -f core conftest.err conftest.$ac_objext \
31576    conftest$ac_exeext conftest.$ac_ext
31577
31578fi
31579
31580                if test $pmix_asm_check_func_happy -eq 1; then :
31581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __sync_bool_compare_and_swap() gives correct results" >&5
31582$as_echo_n "checking if __sync_bool_compare_and_swap() gives correct results... " >&6; }
31583         if test "$cross_compiling" = yes; then :
31584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test -- assume yes (cross compiling)" >&5
31585$as_echo "cannot test -- assume yes (cross compiling)" >&6; }
31586else
31587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31588/* end confdefs.h.  */
31589
31590#include <stdint.h>
31591#include <stdbool.h>
31592#include <stdlib.h>
31593
31594typedef union {
31595    uint64_t fake[2];
31596    __int128 real;
31597} pmix128;
31598
31599static void test1(void)
31600{
31601    // As of Aug 2018, we could not figure out a way to assign 128-bit
31602    // constants -- the compilers would not accept it.  So use a fake
31603    // union to assign 2 uin64_t's to make a single __int128.
31604    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
31605    pmix128 oldval = { .fake = { 0x11EEDDCCBBAA0099, 0x88776655443322FF }};
31606    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
31607    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
31608    if (!(r == false && ptr.real != newval.real)) {
31609        exit(1);
31610    }
31611}
31612
31613static void test2(void)
31614{
31615    pmix128 ptr    = { .fake = { 0xFFEEDDCCBBAA0099, 0x8877665544332211 }};
31616    pmix128 oldval = ptr;
31617    pmix128 newval = { .fake = { 0x1122DDCCBBAA0099, 0x887766554433EEFF }};
31618    bool r = __sync_bool_compare_and_swap(&ptr.real, oldval.real, newval.real);
31619    if (!(r == true && ptr.real == newval.real)) {
31620        exit(2);
31621    }
31622}
31623
31624int main(int argc, char** argv)
31625{
31626    test1();
31627    test2();
31628    return 0;
31629}
31630
31631_ACEOF
31632if ac_fn_c_try_run "$LINENO"; then :
31633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31634$as_echo "yes" >&6; }
31635else
31636  pmix_asm_check_func_happy=0
31637               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31638$as_echo "no" >&6; }
31639fi
31640rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31641  conftest.$ac_objext conftest.beam conftest.$ac_ext
31642fi
31643
31644
31645fi
31646
31647        if test $pmix_asm_check_func_happy -eq 0; then :
31648  CFLAGS=$pmix_asm_check_func_CFLAGS_save
31649         LIBS=$pmix_asm_check_func_LIBS_save
31650fi
31651
31652        if test $pmix_asm_check_func_happy -eq 1; then :
31653  sync_bool_compare_and_swap_128_result=1
31654else
31655  sync_bool_compare_and_swap_128_result=0
31656fi
31657
31658
31659    # Unwind the index
31660    pmix_scope_index=`expr $pmix_scope_index - 1`
31661    pmix_scope_test=`expr $pmix_scope_index \> 0`
31662    if test "$pmix_scope_test" = "0"; then
31663        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
31664$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
31665        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
31666$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
31667        as_fn_error $? "Cannot continue" "$LINENO" 5
31668    fi
31669
31670    # Get the variable names from that index
31671    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
31672    eval $pmix_str
31673
31674    # Iterate over all the variables and unset them all
31675    for pmix_var in $pmix_str; do
31676        unset $pmix_var
31677    done
31678
31679
31680
31681
31682cat >>confdefs.h <<_ACEOF
31683#define PMIX_HAVE_SYNC_BUILTIN_CSWAP_INT128 $sync_bool_compare_and_swap_128_result
31684_ACEOF
31685
31686
31687
31688    # Unwind the index
31689    pmix_scope_index=`expr $pmix_scope_index - 1`
31690    pmix_scope_test=`expr $pmix_scope_index \> 0`
31691    if test "$pmix_scope_test" = "0"; then
31692        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
31693$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
31694        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
31695$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
31696        as_fn_error $? "Cannot continue" "$LINENO" 5
31697    fi
31698
31699    # Get the variable names from that index
31700    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
31701    eval $pmix_str
31702
31703    # Iterate over all the variables and unset them all
31704    for pmix_var in $pmix_str; do
31705        unset $pmix_var
31706    done
31707
31708
31709
31710            ;;
31711        esac
31712
31713        if test "x$PMIX_ASM_SUPPORT_64BIT" = "x1" && test "$pmix_cv_asm_builtin" = "BUILTIN_SYNC" &&
31714                test "$pmix_asm_sync_have_64bit" = "0" ; then
31715            # __sync builtins exist but do not implement 64-bit support. Fall back on inline asm.
31716            pmix_cv_asm_builtin="BUILTIN_NO"
31717        fi
31718
31719      if test "$pmix_cv_asm_builtin" = "BUILTIN_SYNC" || test "$pmix_cv_asm_builtin" = "BUILTIN_GCC" ; then
31720
31721$as_echo "#define PMIX_C_GCC_INLINE_ASSEMBLY 1" >>confdefs.h
31722
31723      else
31724
31725cat >>confdefs.h <<_ACEOF
31726#define PMIX_ASM_SUPPORT_64BIT $PMIX_ASM_SUPPORT_64BIT
31727_ACEOF
31728
31729
31730
31731        #
31732        # figure out if we need any special function start / stop code
31733        #
31734        case $host_os in
31735        aix*)
31736            pmix_asm_arch_config="aix"
31737            ;;
31738        *)
31739            pmix_asm_arch_config="default"
31740            ;;
31741         esac
31742
31743         pmix_cv_asm_inline_supported="no"
31744         # now that we know our architecture, try to inline assemble
31745
31746    assembly="$PMIX_GCC_INLINE_ASSIGN"
31747    asm_result="unknown"
31748
31749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports GCC inline assembly" >&5
31750$as_echo_n "checking if $CC supports GCC inline assembly... " >&6; }
31751
31752    if test ! "$assembly" = "" ; then
31753        if test "$cross_compiling" = yes; then :
31754  asm_result="unknown"
31755else
31756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31757/* end confdefs.h.  */
31758$ac_includes_default
31759int
31760main ()
31761{
31762
31763int ret = 1;
31764int negone = -1;
31765__asm__ __volatile__ ($assembly);
31766return ret;
31767
31768  ;
31769  return 0;
31770}
31771_ACEOF
31772if ac_fn_c_try_run "$LINENO"; then :
31773  asm_result="yes"
31774else
31775  asm_result="no"
31776fi
31777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31778  conftest.$ac_objext conftest.beam conftest.$ac_ext
31779fi
31780
31781    else
31782        assembly="test skipped - assuming no"
31783    fi
31784
31785    # if we're cross compiling, just try to compile and figure good enough
31786    if test "$asm_result" = "unknown" ; then
31787        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31788/* end confdefs.h.  */
31789$ac_includes_default
31790int
31791main ()
31792{
31793
31794int ret = 1;
31795int negone = -1;
31796__asm__ __volatile__ ($assembly);
31797return ret;
31798
31799  ;
31800  return 0;
31801}
31802_ACEOF
31803if ac_fn_c_try_link "$LINENO"; then :
31804  asm_result="yes"
31805else
31806  asm_result="no"
31807fi
31808rm -f core conftest.err conftest.$ac_objext \
31809    conftest$ac_exeext conftest.$ac_ext
31810    fi
31811
31812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asm_result" >&5
31813$as_echo "$asm_result" >&6; }
31814
31815    if test "$asm_result" = "yes" ; then
31816        PMIX_C_GCC_INLINE_ASSEMBLY=1
31817        pmix_cv_asm_inline_supported="yes"
31818    else
31819        PMIX_C_GCC_INLINE_ASSEMBLY=0
31820    fi
31821
31822
31823cat >>confdefs.h <<_ACEOF
31824#define PMIX_C_GCC_INLINE_ASSEMBLY $PMIX_C_GCC_INLINE_ASSEMBLY
31825_ACEOF
31826
31827
31828    unset PMIX_C_GCC_INLINE_ASSEMBLY assembly asm_result
31829
31830
31831         # format:
31832         #   config_file-text-global-label_suffix-gsym-lsym-type-size-align_log-ppc_r_reg-64_bit-gnu_stack
31833         asm_format="${pmix_asm_arch_config}"
31834         asm_format="${asm_format}-${pmix_cv_asm_text}-${pmix_cv_asm_global}"
31835         asm_format="${asm_format}-${pmix_cv_asm_label_suffix}-${pmix_cv_asm_gsym}"
31836         asm_format="${asm_format}-${pmix_cv_asm_lsym}"
31837         asm_format="${asm_format}-${pmix_cv_asm_type}-${pmix_asm_size}"
31838         asm_format="${asm_format}-${pmix_asm_align_log_result}"
31839         if test "$pmix_cv_asm_arch" = "POWERPC32" || test "$pmix_cv_asm_arch" = "POWERPC64" ; then
31840             asm_format="${asm_format}-${pmix_cv_asm_powerpc_r_reg}"
31841         else
31842             asm_format="${asm_format}-1"
31843         fi
31844         asm_format="${asm_format}-${PMIX_ASM_SUPPORT_64BIT}"
31845         pmix_cv_asm_format="${asm_format}-${pmix_cv_asm_gnu_stack}"
31846         # For the Makefile, need to escape the $ as $$.  Don't display
31847         # this version, but make sure the Makefile gives the right thing
31848         # when regenerating the files because the base has been touched.
31849         PMIX_ASSEMBLY_FORMAT=`echo "$pmix_cv_asm_format" | sed -e 's/\\\$/\\\$\\\$/'`
31850
31851        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembly format" >&5
31852$as_echo_n "checking for assembly format... " >&6; }
31853        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_format" >&5
31854$as_echo "$pmix_cv_asm_format" >&6; }
31855
31856cat >>confdefs.h <<_ACEOF
31857#define PMIX_ASSEMBLY_FORMAT "$PMIX_ASSEMBLY_FORMAT"
31858_ACEOF
31859
31860
31861      fi # if pmix_cv_asm_builtin = BUILTIN_SYNC
31862
31863    result="PMIX_$pmix_cv_asm_arch"
31864    PMIX_ASSEMBLY_ARCH="$pmix_cv_asm_arch"
31865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembly architecture" >&5
31866$as_echo_n "checking for assembly architecture... " >&6; }
31867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_arch" >&5
31868$as_echo "$pmix_cv_asm_arch" >&6; }
31869
31870cat >>confdefs.h <<_ACEOF
31871#define PMIX_ASSEMBLY_ARCH $result
31872_ACEOF
31873
31874
31875
31876    # Check for RDTSCP support
31877    result=0
31878    if test "$pmix_cv_asm_arch" = "PMIX_X86_64" || test "$pmix_cv_asm_arch" = "PMIX_IA32"; then :
31879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RDTSCP assembly support" >&5
31880$as_echo_n "checking for RDTSCP assembly support... " >&6; }
31881           ac_ext=c
31882ac_cpp='$CPP $CPPFLAGS'
31883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31885ac_compiler_gnu=$ac_cv_c_compiler_gnu
31886
31887           if test "$cross_compiling" = yes; then :
31888  #cross compile not supported
31889            { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no (cross compiling)\"" >&5
31890$as_echo "\"no (cross compiling)\"" >&6; }
31891else
31892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31893/* end confdefs.h.  */
31894[
31895int main(int argc, char* argv[])
31896{
31897  unsigned int rax, rdx;
31898  __asm__ __volatile__ ("rdtscp\n": "=a" (rax), "=d" (rdx):: "%rax", "%rdx");
31899  return 0;
31900}
31901           ]
31902_ACEOF
31903if ac_fn_c_try_run "$LINENO"; then :
31904  result=1
31905            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31906$as_echo "yes" >&6; }
31907else
31908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31909$as_echo "no" >&6; }
31910fi
31911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31912  conftest.$ac_objext conftest.beam conftest.$ac_ext
31913fi
31914
31915           ac_ext=c
31916ac_cpp='$CPP $CPPFLAGS'
31917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31919ac_compiler_gnu=$ac_cv_c_compiler_gnu
31920
31921fi
31922
31923cat >>confdefs.h <<_ACEOF
31924#define PMIX_ASSEMBLY_SUPPORTS_RDTSCP $result
31925_ACEOF
31926
31927
31928    result="PMIX_$pmix_cv_asm_builtin"
31929    PMIX_ASSEMBLY_BUILTIN="$pmix_cv_asm_builtin"
31930    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin atomics" >&5
31931$as_echo_n "checking for builtin atomics... " >&6; }
31932    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_asm_builtin" >&5
31933$as_echo "$pmix_cv_asm_builtin" >&6; }
31934
31935cat >>confdefs.h <<_ACEOF
31936#define PMIX_ASSEMBLY_BUILTIN $result
31937_ACEOF
31938
31939
31940
31941
31942
31943
31944
31945if test "$pmix_cv_asm_arch" != "WINDOWS" && test "$pmix_cv_asm_builtin" != "BUILTIN_SYNC" && test "$pmix_cv_asm_builtin" != "BUILTIN_GCC" && test "$pmix_cv_asm_builtin" != "BUILTIN_OSX"  && test "$pmix_cv_asm_inline_arch" = "no" ; then
31946    as_fn_error $? "no atomic support available. exiting" "$LINENO" 5
31947else
31948    # On windows with VC++, atomics are done with compiler primitives
31949    pmix_cv_asm_file=""
31950fi
31951
31952
31953    unset result asm_format
31954
31955
31956
31957    ##################################
31958    # Header files
31959    ##################################
31960
31961    pmix_show_title "Header file tests"
31962
31963    for ac_header in arpa/inet.h \
31964                      fcntl.h ifaddrs.h inttypes.h libgen.h \
31965                      net/uio.h netinet/in.h \
31966                      stdint.h stddef.h \
31967                      stdlib.h string.h strings.h \
31968                      sys/ioctl.h sys/param.h \
31969                      sys/select.h sys/socket.h sys/sockio.h \
31970                      stdarg.h sys/stat.h sys/time.h \
31971                      sys/types.h sys/un.h sys/uio.h \
31972                      sys/wait.h syslog.h \
31973                      time.h unistd.h dirent.h \
31974                      crt_externs.h signal.h \
31975                      ioLib.h sockLib.h hostLib.h limits.h \
31976                      sys/statfs.h sys/statvfs.h \
31977                      netdb.h ucred.h zlib.h sys/auxv.h \
31978                      sys/sysctl.h
31979do :
31980  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31981ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
31982if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31983  cat >>confdefs.h <<_ACEOF
31984#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31985_ACEOF
31986
31987fi
31988
31989done
31990
31991
31992    for ac_header in sys/mount.h
31993do :
31994  ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default
31995                      #if HAVE_SYS_PARAM_H
31996                      #include <sys/param.h>
31997                      #endif
31998
31999"
32000if test "x$ac_cv_header_sys_mount_h" = xyes; then :
32001  cat >>confdefs.h <<_ACEOF
32002#define HAVE_SYS_MOUNT_H 1
32003_ACEOF
32004
32005fi
32006
32007done
32008
32009
32010    for ac_header in sys/sysctl.h
32011do :
32012  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default
32013                      #if HAVE_SYS_PARAM_H
32014                      #include <sys/param.h>
32015                      #endif
32016
32017"
32018if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
32019  cat >>confdefs.h <<_ACEOF
32020#define HAVE_SYS_SYSCTL_H 1
32021_ACEOF
32022
32023fi
32024
32025done
32026
32027
32028    # Needed to work around Darwin requiring sys/socket.h for
32029    # net/if.h
32030    for ac_header in net/if.h
32031do :
32032  ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
32033                      #if STDC_HEADERS
32034                      # include <stdlib.h>
32035                      # include <stddef.h>
32036                      #else
32037                      # if HAVE_STDLIB_H
32038                      #  include <stdlib.h>
32039                      # endif
32040                      #endif
32041                      #if HAVE_SYS_SOCKET_H
32042                      # include <sys/socket.h>
32043                      #endif
32044
32045"
32046if test "x$ac_cv_header_net_if_h" = xyes; then :
32047  cat >>confdefs.h <<_ACEOF
32048#define HAVE_NET_IF_H 1
32049_ACEOF
32050
32051fi
32052
32053done
32054
32055
32056    # Note that sometimes we have <stdbool.h>, but it doesn't work (e.g.,
32057    # have both Portland and GNU installed; using pgcc will find GNU's
32058    # <stdbool.h>, which all it does -- by standard -- is define "bool" to
32059    # "_Bool" [see
32060    # http://pmixw.opengroup.org/onlinepubs/009695399/basedefs/stdbool.h.html],
32061    # and Portland has no idea what to do with _Bool).
32062
32063    # So first figure out if we have <stdbool.h> (i.e., check the value of
32064    # the macro HAVE_STDBOOL_H from the result of AC_CHECK_HEADERS,
32065    # above).  If we do have it, then check to see if it actually works.
32066    # Define PMIX_USE_STDBOOL_H as approrpaite.
32067    for ac_header in stdbool.h
32068do :
32069  ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
32070if test "x$ac_cv_header_stdbool_h" = xyes; then :
32071  cat >>confdefs.h <<_ACEOF
32072#define HAVE_STDBOOL_H 1
32073_ACEOF
32074 have_stdbool_h=1
32075else
32076  have_stdbool_h=0
32077fi
32078
32079done
32080
32081    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <stdbool.h> works" >&5
32082$as_echo_n "checking if <stdbool.h> works... " >&6; }
32083    if test "$have_stdbool_h" = "1"; then
32084        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32085/* end confdefs.h.  */
32086$ac_includes_default
32087                                                   #if HAVE_STDBOOL_H
32088                                                   #include <stdbool.h>
32089                                                   #endif
32090
32091int
32092main ()
32093{
32094bool bar, foo = true; bar = foo;
32095  ;
32096  return 0;
32097}
32098_ACEOF
32099if ac_fn_c_try_compile "$LINENO"; then :
32100  PMIX_USE_STDBOOL_H=1 MSG=yes
32101else
32102  PMIX_USE_STDBOOL_H=0 MSG=no
32103fi
32104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32105    else
32106        PMIX_USE_STDBOOL_H=0
32107        MSG="no (don't have <stdbool.h>)"
32108    fi
32109
32110cat >>confdefs.h <<_ACEOF
32111#define PMIX_USE_STDBOOL_H $PMIX_USE_STDBOOL_H
32112_ACEOF
32113
32114    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG" >&5
32115$as_echo "$MSG" >&6; }
32116
32117    # checkpoint results
32118    cat >confcache <<\_ACEOF
32119# This file is a shell script that caches the results of configure
32120# tests run on this system so they can be shared between configure
32121# scripts and configure runs, see configure's option --config-cache.
32122# It is not useful on other systems.  If it contains results you don't
32123# want to keep, you may remove or edit it.
32124#
32125# config.status only pays attention to the cache file if you give it
32126# the --recheck option to rerun configure.
32127#
32128# `ac_cv_env_foo' variables (set or unset) will be overridden when
32129# loading this file, other *unset* `ac_cv_foo' will be assigned the
32130# following values.
32131
32132_ACEOF
32133
32134# The following way of writing the cache mishandles newlines in values,
32135# but we know of no workaround that is simple, portable, and efficient.
32136# So, we kill variables containing newlines.
32137# Ultrix sh set writes to stderr and can't be redirected directly,
32138# and sets the high bit in the cache file unless we assign to the vars.
32139(
32140  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32141    eval ac_val=\$$ac_var
32142    case $ac_val in #(
32143    *${as_nl}*)
32144      case $ac_var in #(
32145      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32146$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32147      esac
32148      case $ac_var in #(
32149      _ | IFS | as_nl) ;; #(
32150      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32151      *) { eval $ac_var=; unset $ac_var;} ;;
32152      esac ;;
32153    esac
32154  done
32155
32156  (set) 2>&1 |
32157    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32158    *${as_nl}ac_space=\ *)
32159      # `set' does not quote correctly, so add quotes: double-quote
32160      # substitution turns \\\\ into \\, and sed turns \\ into \.
32161      sed -n \
32162	"s/'/'\\\\''/g;
32163	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32164      ;; #(
32165    *)
32166      # `set' quotes correctly as required by POSIX, so do not add quotes.
32167      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32168      ;;
32169    esac |
32170    sort
32171) |
32172  sed '
32173     /^ac_cv_env_/b end
32174     t clear
32175     :clear
32176     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32177     t end
32178     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32179     :end' >>confcache
32180if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32181  if test -w "$cache_file"; then
32182    if test "x$cache_file" != "x/dev/null"; then
32183      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32184$as_echo "$as_me: updating cache $cache_file" >&6;}
32185      if test ! -f "$cache_file" || test -h "$cache_file"; then
32186	cat confcache >"$cache_file"
32187      else
32188        case $cache_file in #(
32189        */* | ?:*)
32190	  mv -f confcache "$cache_file"$$ &&
32191	  mv -f "$cache_file"$$ "$cache_file" ;; #(
32192        *)
32193	  mv -f confcache "$cache_file" ;;
32194	esac
32195      fi
32196    fi
32197  else
32198    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32199$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32200  fi
32201fi
32202rm -f confcache
32203
32204    ##################################
32205    # Types
32206    ##################################
32207
32208    pmix_show_title "Type tests"
32209
32210    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
32211                            #if HAVE_SYS_SOCKET_H
32212                            #include <sys/socket.h>
32213                            #endif
32214                            #if HAVE_SYS_UN_H
32215                            #include <sys/un.h>
32216                            #endif
32217                            #ifdef HAVE_NETINET_IN_H
32218                            #include <netinet/in.h>
32219                            #endif
32220
32221"
32222if test "x$ac_cv_type_socklen_t" = xyes; then :
32223
32224cat >>confdefs.h <<_ACEOF
32225#define HAVE_SOCKLEN_T 1
32226_ACEOF
32227
32228
32229fi
32230ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "$ac_includes_default
32231                            #if HAVE_SYS_SOCKET_H
32232                            #include <sys/socket.h>
32233                            #endif
32234                            #if HAVE_SYS_UN_H
32235                            #include <sys/un.h>
32236                            #endif
32237                            #ifdef HAVE_NETINET_IN_H
32238                            #include <netinet/in.h>
32239                            #endif
32240
32241"
32242if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
32243
32244cat >>confdefs.h <<_ACEOF
32245#define HAVE_STRUCT_SOCKADDR_IN 1
32246_ACEOF
32247
32248
32249fi
32250ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "$ac_includes_default
32251                            #if HAVE_SYS_SOCKET_H
32252                            #include <sys/socket.h>
32253                            #endif
32254                            #if HAVE_SYS_UN_H
32255                            #include <sys/un.h>
32256                            #endif
32257                            #ifdef HAVE_NETINET_IN_H
32258                            #include <netinet/in.h>
32259                            #endif
32260
32261"
32262if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
32263
32264cat >>confdefs.h <<_ACEOF
32265#define HAVE_STRUCT_SOCKADDR_UN 1
32266_ACEOF
32267
32268
32269fi
32270ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default
32271                            #if HAVE_SYS_SOCKET_H
32272                            #include <sys/socket.h>
32273                            #endif
32274                            #if HAVE_SYS_UN_H
32275                            #include <sys/un.h>
32276                            #endif
32277                            #ifdef HAVE_NETINET_IN_H
32278                            #include <netinet/in.h>
32279                            #endif
32280
32281"
32282if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
32283
32284cat >>confdefs.h <<_ACEOF
32285#define HAVE_STRUCT_SOCKADDR_IN6 1
32286_ACEOF
32287
32288
32289fi
32290ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "$ac_includes_default
32291                            #if HAVE_SYS_SOCKET_H
32292                            #include <sys/socket.h>
32293                            #endif
32294                            #if HAVE_SYS_UN_H
32295                            #include <sys/un.h>
32296                            #endif
32297                            #ifdef HAVE_NETINET_IN_H
32298                            #include <netinet/in.h>
32299                            #endif
32300
32301"
32302if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
32303
32304cat >>confdefs.h <<_ACEOF
32305#define HAVE_STRUCT_SOCKADDR_STORAGE 1
32306_ACEOF
32307
32308
32309fi
32310
32311
32312    ac_fn_c_check_decl "$LINENO" "AF_UNSPEC" "ac_cv_have_decl_AF_UNSPEC" "$ac_includes_default
32313                            #if HAVE_SYS_SOCKET_H
32314                            #include <sys/socket.h>
32315                            #endif
32316                            #ifdef HAVE_NETINET_IN_H
32317                            #include <netinet/in.h>
32318                            #endif
32319
32320"
32321if test "x$ac_cv_have_decl_AF_UNSPEC" = xyes; then :
32322  ac_have_decl=1
32323else
32324  ac_have_decl=0
32325fi
32326
32327cat >>confdefs.h <<_ACEOF
32328#define HAVE_DECL_AF_UNSPEC $ac_have_decl
32329_ACEOF
32330ac_fn_c_check_decl "$LINENO" "PF_UNSPEC" "ac_cv_have_decl_PF_UNSPEC" "$ac_includes_default
32331                            #if HAVE_SYS_SOCKET_H
32332                            #include <sys/socket.h>
32333                            #endif
32334                            #ifdef HAVE_NETINET_IN_H
32335                            #include <netinet/in.h>
32336                            #endif
32337
32338"
32339if test "x$ac_cv_have_decl_PF_UNSPEC" = xyes; then :
32340  ac_have_decl=1
32341else
32342  ac_have_decl=0
32343fi
32344
32345cat >>confdefs.h <<_ACEOF
32346#define HAVE_DECL_PF_UNSPEC $ac_have_decl
32347_ACEOF
32348ac_fn_c_check_decl "$LINENO" "AF_INET6" "ac_cv_have_decl_AF_INET6" "$ac_includes_default
32349                            #if HAVE_SYS_SOCKET_H
32350                            #include <sys/socket.h>
32351                            #endif
32352                            #ifdef HAVE_NETINET_IN_H
32353                            #include <netinet/in.h>
32354                            #endif
32355
32356"
32357if test "x$ac_cv_have_decl_AF_INET6" = xyes; then :
32358  ac_have_decl=1
32359else
32360  ac_have_decl=0
32361fi
32362
32363cat >>confdefs.h <<_ACEOF
32364#define HAVE_DECL_AF_INET6 $ac_have_decl
32365_ACEOF
32366ac_fn_c_check_decl "$LINENO" "PF_INET6" "ac_cv_have_decl_PF_INET6" "$ac_includes_default
32367                            #if HAVE_SYS_SOCKET_H
32368                            #include <sys/socket.h>
32369                            #endif
32370                            #ifdef HAVE_NETINET_IN_H
32371                            #include <netinet/in.h>
32372                            #endif
32373
32374"
32375if test "x$ac_cv_have_decl_PF_INET6" = xyes; then :
32376  ac_have_decl=1
32377else
32378  ac_have_decl=0
32379fi
32380
32381cat >>confdefs.h <<_ACEOF
32382#define HAVE_DECL_PF_INET6 $ac_have_decl
32383_ACEOF
32384
32385
32386    # SA_RESTART in signal.h
32387
32388
32389    # Is the private index set?  If not, set it.
32390    if test "x$pmix_scope_index" = "x"; then
32391        pmix_scope_index=1
32392    fi
32393
32394    # First, check to see if any of these variables are already set.
32395    # This is a simple sanity check to ensure we're not already
32396    # overwriting pre-existing variables (that have a non-empty
32397    # value).  It's not a perfect check, but at least it's something.
32398    for pmix_var in MSG2; do
32399        pmix_str="pmix_str=\"\$$pmix_var\""
32400        eval $pmix_str
32401
32402        if test "x$pmix_str" != "x"; then
32403            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
32404$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
32405            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
32406$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
32407            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
32408$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
32409            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
32410$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
32411            as_fn_error $? "Cannot continue" "$LINENO" 5
32412        fi
32413    done
32414
32415    # Ok, we passed the simple sanity check.  Save all these names so
32416    # that we can unset them at the end of the scope.
32417    pmix_str="pmix_scope_$pmix_scope_index=\"MSG2\""
32418    eval $pmix_str
32419    unset pmix_str
32420
32421    env | grep pmix_scope
32422    pmix_scope_index=`expr $pmix_scope_index + 1`
32423
32424    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SA_RESTART defined in signal.h" >&5
32425$as_echo_n "checking if SA_RESTART defined in signal.h... " >&6; }
32426                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32427/* end confdefs.h.  */
32428
32429                                            #include <signal.h>
32430                                            #ifdef SA_RESTART
32431                                            yes
32432                                            #endif
32433
32434_ACEOF
32435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32436  $EGREP "yes" >/dev/null 2>&1; then :
32437  MSG2=yes VALUE=1
32438else
32439  MSG2=no VALUE=0
32440fi
32441rm -f conftest*
32442
32443
32444cat >>confdefs.h <<_ACEOF
32445#define PMIX_HAVE_SA_RESTART $VALUE
32446_ACEOF
32447
32448    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSG2" >&5
32449$as_echo "$MSG2" >&6; }
32450
32451    # Unwind the index
32452    pmix_scope_index=`expr $pmix_scope_index - 1`
32453    pmix_scope_test=`expr $pmix_scope_index \> 0`
32454    if test "$pmix_scope_test" = "0"; then
32455        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
32456$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
32457        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
32458$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
32459        as_fn_error $? "Cannot continue" "$LINENO" 5
32460    fi
32461
32462    # Get the variable names from that index
32463    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
32464    eval $pmix_str
32465
32466    # Iterate over all the variables and unset them all
32467    for pmix_var in $pmix_str; do
32468        unset $pmix_var
32469    done
32470
32471
32472    ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
32473                         #include <sys/types.h>
32474                         #if HAVE_SYS_SOCKET_H
32475                         #include <sys/socket.h>
32476                         #endif
32477
32478"
32479if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
32480
32481cat >>confdefs.h <<_ACEOF
32482#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
32483_ACEOF
32484
32485
32486fi
32487
32488
32489    ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
32490                         #include <sys/types.h>
32491                         #include <dirent.h>
32492"
32493if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
32494
32495cat >>confdefs.h <<_ACEOF
32496#define HAVE_STRUCT_DIRENT_D_TYPE 1
32497_ACEOF
32498
32499
32500fi
32501
32502
32503    ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
32504"
32505if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
32506
32507cat >>confdefs.h <<_ACEOF
32508#define HAVE_SIGINFO_T_SI_FD 1
32509_ACEOF
32510
32511
32512fi
32513
32514    ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h>
32515"
32516if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then :
32517
32518cat >>confdefs.h <<_ACEOF
32519#define HAVE_SIGINFO_T_SI_BAND 1
32520_ACEOF
32521
32522
32523fi
32524
32525
32526    #
32527    # Checks for struct member names in struct statfs
32528    #
32529    ac_fn_c_check_member "$LINENO" "struct statfs" "f_type" "ac_cv_member_struct_statfs_f_type" "
32530                         $ac_includes_default
32531                         #ifdef HAVE_SYS_VFS_H
32532                         #include <sys/vfs.h>
32533                         #endif
32534                         #ifdef HAVE_SYS_STATFS_H
32535                         #include <sys/statfs.h>
32536                         #endif
32537
32538"
32539if test "x$ac_cv_member_struct_statfs_f_type" = xyes; then :
32540
32541cat >>confdefs.h <<_ACEOF
32542#define HAVE_STRUCT_STATFS_F_TYPE 1
32543_ACEOF
32544
32545
32546fi
32547
32548
32549    ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
32550                         $ac_includes_default
32551                         #ifdef HAVE_SYS_PARAM_H
32552                         #include <sys/param.h>
32553                         #endif
32554                         #ifdef HAVE_SYS_MOUNT_H
32555                         #include <sys/mount.h>
32556                         #endif
32557                         #ifdef HAVE_SYS_VFS_H
32558                         #include <sys/vfs.h>
32559                         #endif
32560                         #ifdef HAVE_SYS_STATFS_H
32561                         #include <sys/statfs.h>
32562                         #endif
32563
32564"
32565if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
32566
32567cat >>confdefs.h <<_ACEOF
32568#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
32569_ACEOF
32570
32571
32572fi
32573
32574
32575    #
32576    # Checks for struct member names in struct statvfs
32577    #
32578    ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "
32579                         $ac_includes_default
32580                         #ifdef HAVE_SYS_STATVFS_H
32581                         #include <sys/statvfs.h>
32582                         #endif
32583
32584"
32585if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
32586
32587cat >>confdefs.h <<_ACEOF
32588#define HAVE_STRUCT_STATVFS_F_BASETYPE 1
32589_ACEOF
32590
32591
32592fi
32593
32594
32595    ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "
32596                         $ac_includes_default
32597                         #ifdef HAVE_SYS_STATVFS_H
32598                         #include <sys/statvfs.h>
32599                         #endif
32600
32601"
32602if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
32603
32604cat >>confdefs.h <<_ACEOF
32605#define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
32606_ACEOF
32607
32608
32609fi
32610
32611
32612    ac_fn_c_check_member "$LINENO" "struct ucred" "uid" "ac_cv_member_struct_ucred_uid" "#include <sys/types.h>
32613                      #include <sys/socket.h>
32614"
32615if test "x$ac_cv_member_struct_ucred_uid" = xyes; then :
32616
32617cat >>confdefs.h <<_ACEOF
32618#define HAVE_STRUCT_UCRED_UID 1
32619_ACEOF
32620
32621
32622fi
32623ac_fn_c_check_member "$LINENO" "struct ucred" "cr_uid" "ac_cv_member_struct_ucred_cr_uid" "#include <sys/types.h>
32624                      #include <sys/socket.h>
32625"
32626if test "x$ac_cv_member_struct_ucred_cr_uid" = xyes; then :
32627
32628cat >>confdefs.h <<_ACEOF
32629#define HAVE_STRUCT_UCRED_CR_UID 1
32630_ACEOF
32631
32632
32633fi
32634ac_fn_c_check_member "$LINENO" "struct sockpeercred" "uid" "ac_cv_member_struct_sockpeercred_uid" "#include <sys/types.h>
32635                      #include <sys/socket.h>
32636"
32637if test "x$ac_cv_member_struct_sockpeercred_uid" = xyes; then :
32638
32639cat >>confdefs.h <<_ACEOF
32640#define HAVE_STRUCT_SOCKPEERCRED_UID 1
32641_ACEOF
32642
32643
32644fi
32645
32646
32647    #
32648    # Check for ptrdiff type.  Yes, there are platforms where
32649    # sizeof(void*) != sizeof(long) (64 bit Windows, apparently).
32650    #
32651    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer diff type" >&5
32652$as_echo_n "checking for pointer diff type... " >&6; }
32653    if test $ac_cv_type_ptrdiff_t = yes ; then
32654        pmix_ptrdiff_t="ptrdiff_t"
32655        pmix_ptrdiff_size=$ac_cv_sizeof_ptrdiff_t
32656    elif test $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long ; then
32657        pmix_ptrdiff_t="long"
32658        pmix_ptrdiff_size=$ac_cv_sizeof_long
32659    elif test $ac_cv_type_long_long = yes && test $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long_long ; then
32660        pmix_ptrdiff_t="long long"
32661        pmix_ptrdiff_size=$ac_cv_sizeof_long_long
32662        #else
32663        #    AC_MSG_ERROR([Could not find datatype to emulate ptrdiff_t.  Cannot continue])
32664    fi
32665
32666cat >>confdefs.h <<_ACEOF
32667#define PMIX_PTRDIFF_TYPE $pmix_ptrdiff_t
32668_ACEOF
32669
32670    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_ptrdiff_t (size: $pmix_ptrdiff_size)" >&5
32671$as_echo "$pmix_ptrdiff_t (size: $pmix_ptrdiff_size)" >&6; }
32672
32673    ##################################
32674    # Linker characteristics
32675    ##################################
32676
32677    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the linker for support for the -fini option" >&5
32678$as_echo_n "checking the linker for support for the -fini option... " >&6; }
32679
32680
32681    # Is the private index set?  If not, set it.
32682    if test "x$pmix_scope_index" = "x"; then
32683        pmix_scope_index=1
32684    fi
32685
32686    # First, check to see if any of these variables are already set.
32687    # This is a simple sanity check to ensure we're not already
32688    # overwriting pre-existing variables (that have a non-empty
32689    # value).  It's not a perfect check, but at least it's something.
32690    for pmix_var in LDFLAGS_save; do
32691        pmix_str="pmix_str=\"\$$pmix_var\""
32692        eval $pmix_str
32693
32694        if test "x$pmix_str" != "x"; then
32695            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
32696$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
32697            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
32698$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
32699            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
32700$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
32701            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
32702$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
32703            as_fn_error $? "Cannot continue" "$LINENO" 5
32704        fi
32705    done
32706
32707    # Ok, we passed the simple sanity check.  Save all these names so
32708    # that we can unset them at the end of the scope.
32709    pmix_str="pmix_scope_$pmix_scope_index=\"LDFLAGS_save\""
32710    eval $pmix_str
32711    unset pmix_str
32712
32713    env | grep pmix_scope
32714    pmix_scope_index=`expr $pmix_scope_index + 1`
32715
32716    LDFLAGS_save=$LDFLAGS
32717    LDFLAGS="$LDFLAGS_save -Wl,-fini -Wl,finalize"
32718    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32719/* end confdefs.h.  */
32720void finalize (void) {}
32721int
32722main ()
32723{
32724
32725  ;
32726  return 0;
32727}
32728_ACEOF
32729if ac_fn_c_try_link "$LINENO"; then :
32730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32731$as_echo "yes" >&6; }
32732            pmix_ld_have_fini=1
32733else
32734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32735$as_echo "no" >&6; }
32736            pmix_ld_have_fini=0
32737fi
32738rm -f core conftest.err conftest.$ac_objext \
32739    conftest$ac_exeext conftest.$ac_ext
32740    LDFLAGS=$LDFLAGS_save
32741
32742    # Unwind the index
32743    pmix_scope_index=`expr $pmix_scope_index - 1`
32744    pmix_scope_test=`expr $pmix_scope_index \> 0`
32745    if test "$pmix_scope_test" = "0"; then
32746        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
32747$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
32748        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
32749$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
32750        as_fn_error $? "Cannot continue" "$LINENO" 5
32751    fi
32752
32753    # Get the variable names from that index
32754    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
32755    eval $pmix_str
32756
32757    # Iterate over all the variables and unset them all
32758    for pmix_var in $pmix_str; do
32759        unset $pmix_var
32760    done
32761
32762
32763    pmix_destructor_use_fini=0
32764    pmix_no_destructor=0
32765    if test x$pmix_cv___attribute__destructor = x0 ; then
32766        if test x$pmix_ld_have_fini = x1 ; then
32767            pmix_destructor_use_fini=1
32768        else
32769            pmix_no_destructor=1;
32770        fi
32771    fi
32772
32773
32774cat >>confdefs.h <<_ACEOF
32775#define PMIX_NO_LIB_DESTRUCTOR $pmix_no_destructor
32776_ACEOF
32777
32778     if test x$pmix_destructor_use_fini = x1; then
32779  PMIX_DESTRUCTOR_USE_FINI_TRUE=
32780  PMIX_DESTRUCTOR_USE_FINI_FALSE='#'
32781else
32782  PMIX_DESTRUCTOR_USE_FINI_TRUE='#'
32783  PMIX_DESTRUCTOR_USE_FINI_FALSE=
32784fi
32785
32786
32787    ##################################
32788    # Libraries
32789    ##################################
32790
32791    pmix_show_title "Library and Function tests"
32792
32793    # Darwin doesn't need -lutil, as it's something other than this -lutil.
32794
32795
32796
32797
32798    # Is the private index set?  If not, set it.
32799    if test "x$pmix_scope_index" = "x"; then
32800        pmix_scope_index=1
32801    fi
32802
32803    # First, check to see if any of these variables are already set.
32804    # This is a simple sanity check to ensure we're not already
32805    # overwriting pre-existing variables (that have a non-empty
32806    # value).  It's not a perfect check, but at least it's something.
32807    for pmix_var in LIBS_save add; do
32808        pmix_str="pmix_str=\"\$$pmix_var\""
32809        eval $pmix_str
32810
32811        if test "x$pmix_str" != "x"; then
32812            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
32813$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
32814            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
32815$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
32816            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
32817$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
32818            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
32819$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
32820            as_fn_error $? "Cannot continue" "$LINENO" 5
32821        fi
32822    done
32823
32824    # Ok, we passed the simple sanity check.  Save all these names so
32825    # that we can unset them at the end of the scope.
32826    pmix_str="pmix_scope_$pmix_scope_index=\"LIBS_save add\""
32827    eval $pmix_str
32828    unset pmix_str
32829
32830    env | grep pmix_scope
32831    pmix_scope_index=`expr $pmix_scope_index + 1`
32832
32833    LIBS_save=$LIBS
32834
32835    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
32836$as_echo_n "checking for library containing openpty... " >&6; }
32837if ${ac_cv_search_openpty+:} false; then :
32838  $as_echo_n "(cached) " >&6
32839else
32840  ac_func_search_save_LIBS=$LIBS
32841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32842/* end confdefs.h.  */
32843
32844/* Override any GCC internal prototype to avoid an error.
32845   Use char because int might match the return type of a GCC
32846   builtin and then its argument prototype would still apply.  */
32847#ifdef __cplusplus
32848extern "C"
32849#endif
32850char openpty ();
32851int
32852main ()
32853{
32854return openpty ();
32855  ;
32856  return 0;
32857}
32858_ACEOF
32859for ac_lib in '' util; do
32860  if test -z "$ac_lib"; then
32861    ac_res="none required"
32862  else
32863    ac_res=-l$ac_lib
32864    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32865  fi
32866  if ac_fn_c_try_link "$LINENO"; then :
32867  ac_cv_search_openpty=$ac_res
32868fi
32869rm -f core conftest.err conftest.$ac_objext \
32870    conftest$ac_exeext
32871  if ${ac_cv_search_openpty+:} false; then :
32872  break
32873fi
32874done
32875if ${ac_cv_search_openpty+:} false; then :
32876
32877else
32878  ac_cv_search_openpty=no
32879fi
32880rm conftest.$ac_ext
32881LIBS=$ac_func_search_save_LIBS
32882fi
32883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
32884$as_echo "$ac_cv_search_openpty" >&6; }
32885ac_res=$ac_cv_search_openpty
32886if test "$ac_res" != no; then :
32887  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32888  pmix_have_openpty=1
32889
32890else
32891  pmix_have_openpty=0
32892
32893fi
32894
32895
32896
32897cat >>confdefs.h <<_ACEOF
32898#define PMIX_HAVE_OPENPTY $pmix_have_openpty
32899_ACEOF
32900
32901
32902
32903    # Unwind the index
32904    pmix_scope_index=`expr $pmix_scope_index - 1`
32905    pmix_scope_test=`expr $pmix_scope_index \> 0`
32906    if test "$pmix_scope_test" = "0"; then
32907        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
32908$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
32909        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
32910$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
32911        as_fn_error $? "Cannot continue" "$LINENO" 5
32912    fi
32913
32914    # Get the variable names from that index
32915    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
32916    eval $pmix_str
32917
32918    # Iterate over all the variables and unset them all
32919    for pmix_var in $pmix_str; do
32920        unset $pmix_var
32921    done
32922
32923
32924
32925
32926
32927
32928
32929    # Is the private index set?  If not, set it.
32930    if test "x$pmix_scope_index" = "x"; then
32931        pmix_scope_index=1
32932    fi
32933
32934    # First, check to see if any of these variables are already set.
32935    # This is a simple sanity check to ensure we're not already
32936    # overwriting pre-existing variables (that have a non-empty
32937    # value).  It's not a perfect check, but at least it's something.
32938    for pmix_var in LIBS_save add; do
32939        pmix_str="pmix_str=\"\$$pmix_var\""
32940        eval $pmix_str
32941
32942        if test "x$pmix_str" != "x"; then
32943            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
32944$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
32945            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
32946$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
32947            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
32948$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
32949            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
32950$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
32951            as_fn_error $? "Cannot continue" "$LINENO" 5
32952        fi
32953    done
32954
32955    # Ok, we passed the simple sanity check.  Save all these names so
32956    # that we can unset them at the end of the scope.
32957    pmix_str="pmix_scope_$pmix_scope_index=\"LIBS_save add\""
32958    eval $pmix_str
32959    unset pmix_str
32960
32961    env | grep pmix_scope
32962    pmix_scope_index=`expr $pmix_scope_index + 1`
32963
32964    LIBS_save=$LIBS
32965
32966    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
32967$as_echo_n "checking for library containing gethostbyname... " >&6; }
32968if ${ac_cv_search_gethostbyname+:} false; then :
32969  $as_echo_n "(cached) " >&6
32970else
32971  ac_func_search_save_LIBS=$LIBS
32972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32973/* end confdefs.h.  */
32974
32975/* Override any GCC internal prototype to avoid an error.
32976   Use char because int might match the return type of a GCC
32977   builtin and then its argument prototype would still apply.  */
32978#ifdef __cplusplus
32979extern "C"
32980#endif
32981char gethostbyname ();
32982int
32983main ()
32984{
32985return gethostbyname ();
32986  ;
32987  return 0;
32988}
32989_ACEOF
32990for ac_lib in '' nsl; do
32991  if test -z "$ac_lib"; then
32992    ac_res="none required"
32993  else
32994    ac_res=-l$ac_lib
32995    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32996  fi
32997  if ac_fn_c_try_link "$LINENO"; then :
32998  ac_cv_search_gethostbyname=$ac_res
32999fi
33000rm -f core conftest.err conftest.$ac_objext \
33001    conftest$ac_exeext
33002  if ${ac_cv_search_gethostbyname+:} false; then :
33003  break
33004fi
33005done
33006if ${ac_cv_search_gethostbyname+:} false; then :
33007
33008else
33009  ac_cv_search_gethostbyname=no
33010fi
33011rm conftest.$ac_ext
33012LIBS=$ac_func_search_save_LIBS
33013fi
33014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
33015$as_echo "$ac_cv_search_gethostbyname" >&6; }
33016ac_res=$ac_cv_search_gethostbyname
33017if test "$ac_res" != no; then :
33018  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33019  pmix_have_gethostbyname=1
33020
33021else
33022  pmix_have_gethostbyname=0
33023
33024fi
33025
33026
33027
33028cat >>confdefs.h <<_ACEOF
33029#define PMIX_HAVE_GETHOSTBYNAME $pmix_have_gethostbyname
33030_ACEOF
33031
33032
33033
33034    # Unwind the index
33035    pmix_scope_index=`expr $pmix_scope_index - 1`
33036    pmix_scope_test=`expr $pmix_scope_index \> 0`
33037    if test "$pmix_scope_test" = "0"; then
33038        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
33039$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
33040        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
33041$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
33042        as_fn_error $? "Cannot continue" "$LINENO" 5
33043    fi
33044
33045    # Get the variable names from that index
33046    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
33047    eval $pmix_str
33048
33049    # Iterate over all the variables and unset them all
33050    for pmix_var in $pmix_str; do
33051        unset $pmix_var
33052    done
33053
33054
33055
33056
33057
33058
33059
33060    # Is the private index set?  If not, set it.
33061    if test "x$pmix_scope_index" = "x"; then
33062        pmix_scope_index=1
33063    fi
33064
33065    # First, check to see if any of these variables are already set.
33066    # This is a simple sanity check to ensure we're not already
33067    # overwriting pre-existing variables (that have a non-empty
33068    # value).  It's not a perfect check, but at least it's something.
33069    for pmix_var in LIBS_save add; do
33070        pmix_str="pmix_str=\"\$$pmix_var\""
33071        eval $pmix_str
33072
33073        if test "x$pmix_str" != "x"; then
33074            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
33075$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
33076            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
33077$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
33078            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
33079$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
33080            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
33081$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
33082            as_fn_error $? "Cannot continue" "$LINENO" 5
33083        fi
33084    done
33085
33086    # Ok, we passed the simple sanity check.  Save all these names so
33087    # that we can unset them at the end of the scope.
33088    pmix_str="pmix_scope_$pmix_scope_index=\"LIBS_save add\""
33089    eval $pmix_str
33090    unset pmix_str
33091
33092    env | grep pmix_scope
33093    pmix_scope_index=`expr $pmix_scope_index + 1`
33094
33095    LIBS_save=$LIBS
33096
33097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
33098$as_echo_n "checking for library containing socket... " >&6; }
33099if ${ac_cv_search_socket+:} false; then :
33100  $as_echo_n "(cached) " >&6
33101else
33102  ac_func_search_save_LIBS=$LIBS
33103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33104/* end confdefs.h.  */
33105
33106/* Override any GCC internal prototype to avoid an error.
33107   Use char because int might match the return type of a GCC
33108   builtin and then its argument prototype would still apply.  */
33109#ifdef __cplusplus
33110extern "C"
33111#endif
33112char socket ();
33113int
33114main ()
33115{
33116return socket ();
33117  ;
33118  return 0;
33119}
33120_ACEOF
33121for ac_lib in '' socket; do
33122  if test -z "$ac_lib"; then
33123    ac_res="none required"
33124  else
33125    ac_res=-l$ac_lib
33126    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33127  fi
33128  if ac_fn_c_try_link "$LINENO"; then :
33129  ac_cv_search_socket=$ac_res
33130fi
33131rm -f core conftest.err conftest.$ac_objext \
33132    conftest$ac_exeext
33133  if ${ac_cv_search_socket+:} false; then :
33134  break
33135fi
33136done
33137if ${ac_cv_search_socket+:} false; then :
33138
33139else
33140  ac_cv_search_socket=no
33141fi
33142rm conftest.$ac_ext
33143LIBS=$ac_func_search_save_LIBS
33144fi
33145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
33146$as_echo "$ac_cv_search_socket" >&6; }
33147ac_res=$ac_cv_search_socket
33148if test "$ac_res" != no; then :
33149  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33150  pmix_have_socket=1
33151
33152else
33153  pmix_have_socket=0
33154
33155fi
33156
33157
33158
33159cat >>confdefs.h <<_ACEOF
33160#define PMIX_HAVE_SOCKET $pmix_have_socket
33161_ACEOF
33162
33163
33164
33165    # Unwind the index
33166    pmix_scope_index=`expr $pmix_scope_index - 1`
33167    pmix_scope_test=`expr $pmix_scope_index \> 0`
33168    if test "$pmix_scope_test" = "0"; then
33169        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
33170$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
33171        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
33172$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
33173        as_fn_error $? "Cannot continue" "$LINENO" 5
33174    fi
33175
33176    # Get the variable names from that index
33177    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
33178    eval $pmix_str
33179
33180    # Iterate over all the variables and unset them all
33181    for pmix_var in $pmix_str; do
33182        unset $pmix_var
33183    done
33184
33185
33186
33187    # IRIX and CentOS have dirname in -lgen, usually in libc
33188
33189
33190
33191
33192    # Is the private index set?  If not, set it.
33193    if test "x$pmix_scope_index" = "x"; then
33194        pmix_scope_index=1
33195    fi
33196
33197    # First, check to see if any of these variables are already set.
33198    # This is a simple sanity check to ensure we're not already
33199    # overwriting pre-existing variables (that have a non-empty
33200    # value).  It's not a perfect check, but at least it's something.
33201    for pmix_var in LIBS_save add; do
33202        pmix_str="pmix_str=\"\$$pmix_var\""
33203        eval $pmix_str
33204
33205        if test "x$pmix_str" != "x"; then
33206            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
33207$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
33208            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
33209$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
33210            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
33211$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
33212            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
33213$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
33214            as_fn_error $? "Cannot continue" "$LINENO" 5
33215        fi
33216    done
33217
33218    # Ok, we passed the simple sanity check.  Save all these names so
33219    # that we can unset them at the end of the scope.
33220    pmix_str="pmix_scope_$pmix_scope_index=\"LIBS_save add\""
33221    eval $pmix_str
33222    unset pmix_str
33223
33224    env | grep pmix_scope
33225    pmix_scope_index=`expr $pmix_scope_index + 1`
33226
33227    LIBS_save=$LIBS
33228
33229    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dirname" >&5
33230$as_echo_n "checking for library containing dirname... " >&6; }
33231if ${ac_cv_search_dirname+:} false; then :
33232  $as_echo_n "(cached) " >&6
33233else
33234  ac_func_search_save_LIBS=$LIBS
33235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33236/* end confdefs.h.  */
33237
33238/* Override any GCC internal prototype to avoid an error.
33239   Use char because int might match the return type of a GCC
33240   builtin and then its argument prototype would still apply.  */
33241#ifdef __cplusplus
33242extern "C"
33243#endif
33244char dirname ();
33245int
33246main ()
33247{
33248return dirname ();
33249  ;
33250  return 0;
33251}
33252_ACEOF
33253for ac_lib in '' gen; do
33254  if test -z "$ac_lib"; then
33255    ac_res="none required"
33256  else
33257    ac_res=-l$ac_lib
33258    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33259  fi
33260  if ac_fn_c_try_link "$LINENO"; then :
33261  ac_cv_search_dirname=$ac_res
33262fi
33263rm -f core conftest.err conftest.$ac_objext \
33264    conftest$ac_exeext
33265  if ${ac_cv_search_dirname+:} false; then :
33266  break
33267fi
33268done
33269if ${ac_cv_search_dirname+:} false; then :
33270
33271else
33272  ac_cv_search_dirname=no
33273fi
33274rm conftest.$ac_ext
33275LIBS=$ac_func_search_save_LIBS
33276fi
33277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dirname" >&5
33278$as_echo "$ac_cv_search_dirname" >&6; }
33279ac_res=$ac_cv_search_dirname
33280if test "$ac_res" != no; then :
33281  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33282  pmix_have_dirname=1
33283
33284else
33285  pmix_have_dirname=0
33286
33287fi
33288
33289
33290
33291cat >>confdefs.h <<_ACEOF
33292#define PMIX_HAVE_DIRNAME $pmix_have_dirname
33293_ACEOF
33294
33295
33296
33297    # Unwind the index
33298    pmix_scope_index=`expr $pmix_scope_index - 1`
33299    pmix_scope_test=`expr $pmix_scope_index \> 0`
33300    if test "$pmix_scope_test" = "0"; then
33301        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
33302$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
33303        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
33304$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
33305        as_fn_error $? "Cannot continue" "$LINENO" 5
33306    fi
33307
33308    # Get the variable names from that index
33309    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
33310    eval $pmix_str
33311
33312    # Iterate over all the variables and unset them all
33313    for pmix_var in $pmix_str; do
33314        unset $pmix_var
33315    done
33316
33317
33318
33319    # Darwin doesn't need -lm, as it's a symlink to libSystem.dylib
33320
33321
33322
33323
33324    # Is the private index set?  If not, set it.
33325    if test "x$pmix_scope_index" = "x"; then
33326        pmix_scope_index=1
33327    fi
33328
33329    # First, check to see if any of these variables are already set.
33330    # This is a simple sanity check to ensure we're not already
33331    # overwriting pre-existing variables (that have a non-empty
33332    # value).  It's not a perfect check, but at least it's something.
33333    for pmix_var in LIBS_save add; do
33334        pmix_str="pmix_str=\"\$$pmix_var\""
33335        eval $pmix_str
33336
33337        if test "x$pmix_str" != "x"; then
33338            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
33339$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
33340            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
33341$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
33342            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
33343$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
33344            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
33345$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
33346            as_fn_error $? "Cannot continue" "$LINENO" 5
33347        fi
33348    done
33349
33350    # Ok, we passed the simple sanity check.  Save all these names so
33351    # that we can unset them at the end of the scope.
33352    pmix_str="pmix_scope_$pmix_scope_index=\"LIBS_save add\""
33353    eval $pmix_str
33354    unset pmix_str
33355
33356    env | grep pmix_scope
33357    pmix_scope_index=`expr $pmix_scope_index + 1`
33358
33359    LIBS_save=$LIBS
33360
33361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
33362$as_echo_n "checking for library containing ceil... " >&6; }
33363if ${ac_cv_search_ceil+:} false; then :
33364  $as_echo_n "(cached) " >&6
33365else
33366  ac_func_search_save_LIBS=$LIBS
33367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33368/* end confdefs.h.  */
33369
33370/* Override any GCC internal prototype to avoid an error.
33371   Use char because int might match the return type of a GCC
33372   builtin and then its argument prototype would still apply.  */
33373#ifdef __cplusplus
33374extern "C"
33375#endif
33376char ceil ();
33377int
33378main ()
33379{
33380return ceil ();
33381  ;
33382  return 0;
33383}
33384_ACEOF
33385for ac_lib in '' m; do
33386  if test -z "$ac_lib"; then
33387    ac_res="none required"
33388  else
33389    ac_res=-l$ac_lib
33390    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33391  fi
33392  if ac_fn_c_try_link "$LINENO"; then :
33393  ac_cv_search_ceil=$ac_res
33394fi
33395rm -f core conftest.err conftest.$ac_objext \
33396    conftest$ac_exeext
33397  if ${ac_cv_search_ceil+:} false; then :
33398  break
33399fi
33400done
33401if ${ac_cv_search_ceil+:} false; then :
33402
33403else
33404  ac_cv_search_ceil=no
33405fi
33406rm conftest.$ac_ext
33407LIBS=$ac_func_search_save_LIBS
33408fi
33409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
33410$as_echo "$ac_cv_search_ceil" >&6; }
33411ac_res=$ac_cv_search_ceil
33412if test "$ac_res" != no; then :
33413  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33414  pmix_have_ceil=1
33415
33416else
33417  pmix_have_ceil=0
33418
33419fi
33420
33421
33422
33423cat >>confdefs.h <<_ACEOF
33424#define PMIX_HAVE_CEIL $pmix_have_ceil
33425_ACEOF
33426
33427
33428
33429    # Unwind the index
33430    pmix_scope_index=`expr $pmix_scope_index - 1`
33431    pmix_scope_test=`expr $pmix_scope_index \> 0`
33432    if test "$pmix_scope_test" = "0"; then
33433        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
33434$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
33435        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
33436$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
33437        as_fn_error $? "Cannot continue" "$LINENO" 5
33438    fi
33439
33440    # Get the variable names from that index
33441    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
33442    eval $pmix_str
33443
33444    # Iterate over all the variables and unset them all
33445    for pmix_var in $pmix_str; do
33446        unset $pmix_var
33447    done
33448
33449
33450
33451    # -lrt might be needed for clock_gettime
33452
33453
33454
33455
33456    # Is the private index set?  If not, set it.
33457    if test "x$pmix_scope_index" = "x"; then
33458        pmix_scope_index=1
33459    fi
33460
33461    # First, check to see if any of these variables are already set.
33462    # This is a simple sanity check to ensure we're not already
33463    # overwriting pre-existing variables (that have a non-empty
33464    # value).  It's not a perfect check, but at least it's something.
33465    for pmix_var in LIBS_save add; do
33466        pmix_str="pmix_str=\"\$$pmix_var\""
33467        eval $pmix_str
33468
33469        if test "x$pmix_str" != "x"; then
33470            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
33471$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
33472            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
33473$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
33474            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
33475$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
33476            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
33477$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
33478            as_fn_error $? "Cannot continue" "$LINENO" 5
33479        fi
33480    done
33481
33482    # Ok, we passed the simple sanity check.  Save all these names so
33483    # that we can unset them at the end of the scope.
33484    pmix_str="pmix_scope_$pmix_scope_index=\"LIBS_save add\""
33485    eval $pmix_str
33486    unset pmix_str
33487
33488    env | grep pmix_scope
33489    pmix_scope_index=`expr $pmix_scope_index + 1`
33490
33491    LIBS_save=$LIBS
33492
33493    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
33494$as_echo_n "checking for library containing clock_gettime... " >&6; }
33495if ${ac_cv_search_clock_gettime+:} false; then :
33496  $as_echo_n "(cached) " >&6
33497else
33498  ac_func_search_save_LIBS=$LIBS
33499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33500/* end confdefs.h.  */
33501
33502/* Override any GCC internal prototype to avoid an error.
33503   Use char because int might match the return type of a GCC
33504   builtin and then its argument prototype would still apply.  */
33505#ifdef __cplusplus
33506extern "C"
33507#endif
33508char clock_gettime ();
33509int
33510main ()
33511{
33512return clock_gettime ();
33513  ;
33514  return 0;
33515}
33516_ACEOF
33517for ac_lib in '' rt; do
33518  if test -z "$ac_lib"; then
33519    ac_res="none required"
33520  else
33521    ac_res=-l$ac_lib
33522    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33523  fi
33524  if ac_fn_c_try_link "$LINENO"; then :
33525  ac_cv_search_clock_gettime=$ac_res
33526fi
33527rm -f core conftest.err conftest.$ac_objext \
33528    conftest$ac_exeext
33529  if ${ac_cv_search_clock_gettime+:} false; then :
33530  break
33531fi
33532done
33533if ${ac_cv_search_clock_gettime+:} false; then :
33534
33535else
33536  ac_cv_search_clock_gettime=no
33537fi
33538rm conftest.$ac_ext
33539LIBS=$ac_func_search_save_LIBS
33540fi
33541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
33542$as_echo "$ac_cv_search_clock_gettime" >&6; }
33543ac_res=$ac_cv_search_clock_gettime
33544if test "$ac_res" != no; then :
33545  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
33546  pmix_have_clock_gettime=1
33547
33548else
33549  pmix_have_clock_gettime=0
33550
33551fi
33552
33553
33554
33555cat >>confdefs.h <<_ACEOF
33556#define PMIX_HAVE_CLOCK_GETTIME $pmix_have_clock_gettime
33557_ACEOF
33558
33559
33560
33561    # Unwind the index
33562    pmix_scope_index=`expr $pmix_scope_index - 1`
33563    pmix_scope_test=`expr $pmix_scope_index \> 0`
33564    if test "$pmix_scope_test" = "0"; then
33565        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
33566$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
33567        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
33568$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
33569        as_fn_error $? "Cannot continue" "$LINENO" 5
33570    fi
33571
33572    # Get the variable names from that index
33573    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
33574    eval $pmix_str
33575
33576    # Iterate over all the variables and unset them all
33577    for pmix_var in $pmix_str; do
33578        unset $pmix_var
33579    done
33580
33581
33582
33583    for ac_func in asprintf snprintf vasprintf vsnprintf strsignal socketpair strncpy_s usleep statfs statvfs getpeereid getpeerucred strnlen posix_fallocate tcgetpgrp setpgid ptsname openpty setenv
33584do :
33585  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33586ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33587if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33588  cat >>confdefs.h <<_ACEOF
33589#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33590_ACEOF
33591
33592fi
33593done
33594
33595
33596    # On some hosts, htonl is a define, so the AC_CHECK_FUNC will get
33597    # confused.  On others, it's in the standard library, but stubbed with
33598    # the magic glibc foo as not implemented.  and on other systems, it's
33599    # just not there.  This covers all cases.
33600    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl define" >&5
33601$as_echo_n "checking for htonl define... " >&6; }
33602if ${pmix_cv_htonl_define+:} false; then :
33603  $as_echo_n "(cached) " >&6
33604else
33605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33606/* end confdefs.h.  */
33607
33608                                                          #ifdef HAVE_SYS_TYPES_H
33609                                                          #include <sys/types.h>
33610                                                          #endif
33611                                                          #ifdef HAVE_NETINET_IN_H
33612                                                          #include <netinet/in.h>
33613                                                          #endif
33614                                                          #ifdef HAVE_ARPA_INET_H
33615                                                          #include <arpa/inet.h>
33616                                                          #endif
33617int
33618main ()
33619{
33620
33621                                                          #ifndef ntohl
33622                                                          #error "ntohl not defined"
33623                                                          #endif
33624
33625  ;
33626  return 0;
33627}
33628_ACEOF
33629if ac_fn_c_try_cpp "$LINENO"; then :
33630  pmix_cv_htonl_define=yes
33631else
33632  pmix_cv_htonl_define=no
33633fi
33634rm -f conftest.err conftest.i conftest.$ac_ext
33635fi
33636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_cv_htonl_define" >&5
33637$as_echo "$pmix_cv_htonl_define" >&6; }
33638    ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl"
33639if test "x$ac_cv_func_htonl" = xyes; then :
33640  pmix_have_htonl=yes
33641else
33642  pmix_have_htonl=no
33643fi
33644
33645    if test "$pmix_cv_htonl_define" = "yes" || test "$pmix_have_htonl" = "yes"; then :
33646
33647cat >>confdefs.h <<_ACEOF
33648#define HAVE_UNIX_BYTESWAP 1
33649_ACEOF
33650
33651fi
33652
33653    #
33654    # Make sure we can copy va_lists (need check declared, not linkable)
33655    #
33656
33657    ac_fn_c_check_decl "$LINENO" "va_copy" "ac_cv_have_decl_va_copy" "#include <stdarg.h>
33658"
33659if test "x$ac_cv_have_decl_va_copy" = xyes; then :
33660  PMIX_HAVE_VA_COPY=1
33661else
33662  PMIX_HAVE_VA_COPY=0
33663fi
33664
33665
33666cat >>confdefs.h <<_ACEOF
33667#define PMIX_HAVE_VA_COPY $PMIX_HAVE_VA_COPY
33668_ACEOF
33669
33670
33671    ac_fn_c_check_decl "$LINENO" "__va_copy" "ac_cv_have_decl___va_copy" "#include <stdarg.h>
33672"
33673if test "x$ac_cv_have_decl___va_copy" = xyes; then :
33674  PMIX_HAVE_UNDERSCORE_VA_COPY=1
33675else
33676  PMIX_HAVE_UNDERSCORE_VA_COPY=0
33677fi
33678
33679
33680cat >>confdefs.h <<_ACEOF
33681#define PMIX_HAVE_UNDERSCORE_VA_COPY $PMIX_HAVE_UNDERSCORE_VA_COPY
33682_ACEOF
33683
33684
33685    ac_fn_c_check_decl "$LINENO" "__func__" "ac_cv_have_decl___func__" "$ac_includes_default"
33686if test "x$ac_cv_have_decl___func__" = xyes; then :
33687  ac_have_decl=1
33688else
33689  ac_have_decl=0
33690fi
33691
33692cat >>confdefs.h <<_ACEOF
33693#define HAVE_DECL___FUNC__ $ac_have_decl
33694_ACEOF
33695
33696
33697    # checkpoint results
33698    cat >confcache <<\_ACEOF
33699# This file is a shell script that caches the results of configure
33700# tests run on this system so they can be shared between configure
33701# scripts and configure runs, see configure's option --config-cache.
33702# It is not useful on other systems.  If it contains results you don't
33703# want to keep, you may remove or edit it.
33704#
33705# config.status only pays attention to the cache file if you give it
33706# the --recheck option to rerun configure.
33707#
33708# `ac_cv_env_foo' variables (set or unset) will be overridden when
33709# loading this file, other *unset* `ac_cv_foo' will be assigned the
33710# following values.
33711
33712_ACEOF
33713
33714# The following way of writing the cache mishandles newlines in values,
33715# but we know of no workaround that is simple, portable, and efficient.
33716# So, we kill variables containing newlines.
33717# Ultrix sh set writes to stderr and can't be redirected directly,
33718# and sets the high bit in the cache file unless we assign to the vars.
33719(
33720  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33721    eval ac_val=\$$ac_var
33722    case $ac_val in #(
33723    *${as_nl}*)
33724      case $ac_var in #(
33725      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33726$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33727      esac
33728      case $ac_var in #(
33729      _ | IFS | as_nl) ;; #(
33730      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33731      *) { eval $ac_var=; unset $ac_var;} ;;
33732      esac ;;
33733    esac
33734  done
33735
33736  (set) 2>&1 |
33737    case $as_nl`(ac_space=' '; set) 2>&1` in #(
33738    *${as_nl}ac_space=\ *)
33739      # `set' does not quote correctly, so add quotes: double-quote
33740      # substitution turns \\\\ into \\, and sed turns \\ into \.
33741      sed -n \
33742	"s/'/'\\\\''/g;
33743	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33744      ;; #(
33745    *)
33746      # `set' quotes correctly as required by POSIX, so do not add quotes.
33747      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33748      ;;
33749    esac |
33750    sort
33751) |
33752  sed '
33753     /^ac_cv_env_/b end
33754     t clear
33755     :clear
33756     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33757     t end
33758     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33759     :end' >>confcache
33760if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33761  if test -w "$cache_file"; then
33762    if test "x$cache_file" != "x/dev/null"; then
33763      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33764$as_echo "$as_me: updating cache $cache_file" >&6;}
33765      if test ! -f "$cache_file" || test -h "$cache_file"; then
33766	cat confcache >"$cache_file"
33767      else
33768        case $cache_file in #(
33769        */* | ?:*)
33770	  mv -f confcache "$cache_file"$$ &&
33771	  mv -f "$cache_file"$$ "$cache_file" ;; #(
33772        *)
33773	  mv -f confcache "$cache_file" ;;
33774	esac
33775      fi
33776    fi
33777  else
33778    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33779$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33780  fi
33781fi
33782rm -f confcache
33783
33784    ##################################
33785    # System-specific tests
33786    ##################################
33787
33788    pmix_show_title "System-specific tests"
33789
33790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
33791$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
33792if ${ac_cv_c_bigendian+:} false; then :
33793  $as_echo_n "(cached) " >&6
33794else
33795  ac_cv_c_bigendian=unknown
33796    # See if we're dealing with a universal compiler.
33797    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33798/* end confdefs.h.  */
33799#ifndef __APPLE_CC__
33800	       not a universal capable compiler
33801	     #endif
33802	     typedef int dummy;
33803
33804_ACEOF
33805if ac_fn_c_try_compile "$LINENO"; then :
33806
33807	# Check for potential -arch flags.  It is not universal unless
33808	# there are at least two -arch flags with different values.
33809	ac_arch=
33810	ac_prev=
33811	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
33812	 if test -n "$ac_prev"; then
33813	   case $ac_word in
33814	     i?86 | x86_64 | ppc | ppc64)
33815	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
33816		 ac_arch=$ac_word
33817	       else
33818		 ac_cv_c_bigendian=universal
33819		 break
33820	       fi
33821	       ;;
33822	   esac
33823	   ac_prev=
33824	 elif test "x$ac_word" = "x-arch"; then
33825	   ac_prev=arch
33826	 fi
33827       done
33828fi
33829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33830    if test $ac_cv_c_bigendian = unknown; then
33831      # See if sys/param.h defines the BYTE_ORDER macro.
33832      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33833/* end confdefs.h.  */
33834#include <sys/types.h>
33835	     #include <sys/param.h>
33836
33837int
33838main ()
33839{
33840#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
33841		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
33842		     && LITTLE_ENDIAN)
33843	      bogus endian macros
33844	     #endif
33845
33846  ;
33847  return 0;
33848}
33849_ACEOF
33850if ac_fn_c_try_compile "$LINENO"; then :
33851  # It does; now see whether it defined to BIG_ENDIAN or not.
33852	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33853/* end confdefs.h.  */
33854#include <sys/types.h>
33855		#include <sys/param.h>
33856
33857int
33858main ()
33859{
33860#if BYTE_ORDER != BIG_ENDIAN
33861		 not big endian
33862		#endif
33863
33864  ;
33865  return 0;
33866}
33867_ACEOF
33868if ac_fn_c_try_compile "$LINENO"; then :
33869  ac_cv_c_bigendian=yes
33870else
33871  ac_cv_c_bigendian=no
33872fi
33873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33874fi
33875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33876    fi
33877    if test $ac_cv_c_bigendian = unknown; then
33878      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
33879      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33880/* end confdefs.h.  */
33881#include <limits.h>
33882
33883int
33884main ()
33885{
33886#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
33887	      bogus endian macros
33888	     #endif
33889
33890  ;
33891  return 0;
33892}
33893_ACEOF
33894if ac_fn_c_try_compile "$LINENO"; then :
33895  # It does; now see whether it defined to _BIG_ENDIAN or not.
33896	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33897/* end confdefs.h.  */
33898#include <limits.h>
33899
33900int
33901main ()
33902{
33903#ifndef _BIG_ENDIAN
33904		 not big endian
33905		#endif
33906
33907  ;
33908  return 0;
33909}
33910_ACEOF
33911if ac_fn_c_try_compile "$LINENO"; then :
33912  ac_cv_c_bigendian=yes
33913else
33914  ac_cv_c_bigendian=no
33915fi
33916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33917fi
33918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33919    fi
33920    if test $ac_cv_c_bigendian = unknown; then
33921      # Compile a test program.
33922      if test "$cross_compiling" = yes; then :
33923  # Try to guess by grepping values from an object file.
33924	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33925/* end confdefs.h.  */
33926short int ascii_mm[] =
33927		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33928		short int ascii_ii[] =
33929		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33930		int use_ascii (int i) {
33931		  return ascii_mm[i] + ascii_ii[i];
33932		}
33933		short int ebcdic_ii[] =
33934		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33935		short int ebcdic_mm[] =
33936		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33937		int use_ebcdic (int i) {
33938		  return ebcdic_mm[i] + ebcdic_ii[i];
33939		}
33940		extern int foo;
33941
33942int
33943main ()
33944{
33945return use_ascii (foo) == use_ebcdic (foo);
33946  ;
33947  return 0;
33948}
33949_ACEOF
33950if ac_fn_c_try_compile "$LINENO"; then :
33951  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
33952	      ac_cv_c_bigendian=yes
33953	    fi
33954	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33955	      if test "$ac_cv_c_bigendian" = unknown; then
33956		ac_cv_c_bigendian=no
33957	      else
33958		# finding both strings is unlikely to happen, but who knows?
33959		ac_cv_c_bigendian=unknown
33960	      fi
33961	    fi
33962fi
33963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33964else
33965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33966/* end confdefs.h.  */
33967$ac_includes_default
33968int
33969main ()
33970{
33971
33972	     /* Are we little or big endian?  From Harbison&Steele.  */
33973	     union
33974	     {
33975	       long int l;
33976	       char c[sizeof (long int)];
33977	     } u;
33978	     u.l = 1;
33979	     return u.c[sizeof (long int) - 1] == 1;
33980
33981  ;
33982  return 0;
33983}
33984_ACEOF
33985if ac_fn_c_try_run "$LINENO"; then :
33986  ac_cv_c_bigendian=no
33987else
33988  ac_cv_c_bigendian=yes
33989fi
33990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33991  conftest.$ac_objext conftest.beam conftest.$ac_ext
33992fi
33993
33994    fi
33995fi
33996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
33997$as_echo "$ac_cv_c_bigendian" >&6; }
33998 case $ac_cv_c_bigendian in #(
33999   yes)
34000     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
34001;; #(
34002   no)
34003      ;; #(
34004   universal)
34005
34006$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
34007
34008     ;; #(
34009   *)
34010     as_fn_error $? "unknown endianness
34011 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
34012 esac
34013
34014
34015
34016# Check whether --with-broken-qsort was given.
34017if test "${with_broken_qsort+set}" = set; then :
34018  withval=$with_broken_qsort;
34019fi
34020
34021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken qsort" >&5
34022$as_echo_n "checking for broken qsort... " >&6; }
34023
34024  if test "$with_broken_qsort" = "yes"; then
34025    result="yes"
34026    define_result=1
34027  else
34028    result="no"
34029    define_result=0
34030  fi
34031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
34032$as_echo "$result" >&6; }
34033
34034cat >>confdefs.h <<_ACEOF
34035#define PMIX_HAVE_BROKEN_QSORT $define_result
34036_ACEOF
34037
34038
34039
34040    #
34041    # Check out what thread support we have
34042    #
34043
34044#
34045# Arguments: none
34046#
34047# Dependencies: None
34048#
34049# Modifies:
34050#  none - see called tests
34051#
34052# configure threads
34053#
34054
34055#
34056# Check we have POSIX threads
34057#
34058
34059
34060
34061pmix_pthread_c_success=0
34062
34063orig_CFLAGS="$CFLAGS"
34064orig_CPPFLAGS="$CPPFLAGS"
34065orig_LDFLAGS="$LDFLAGS"
34066orig_LIBS="$LIBS"
34067
34068PTHREAD_CFLAGS=
34069PTHREAD_CPPFLAGS=
34070PTHREAD_LDFLAGS=
34071PTHREAD_LIBS=
34072
34073# Try with the basics, mam.
34074
34075# BEGIN: PMIX_INTL_POSIX_THREADS_PLAIN
34076#
34077# Check if can compile without any special flags
34078# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in
34079# case.  Some systems (OS X, for example) generally don't need
34080# the defines, but then will on one system header here or there
34081# why take chances?
34082#
34083
34084
34085#
34086# C compiler
34087#
34088if test "$pmix_pthread_c_success" = "0"; then
34089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler and POSIX threads work as is" >&5
34090$as_echo_n "checking if C compiler and POSIX threads work as is... " >&6; }
34091
34092  ac_ext=c
34093ac_cpp='$CPP $CPPFLAGS'
34094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34096ac_compiler_gnu=$ac_cv_c_compiler_gnu
34097
34098
34099# BEGIN: PMIX_INTL_PTHREAD_TRY_LINK
34100#
34101# Make sure that we can run a small application in C or C++, which
34102# ever is the current language.  Do make sure that C or C++ is the
34103# current language.
34104#
34105# As long as this is not being run....
34106# pthread_t may be anything from an int to a struct -- init with self-tid.
34107#
34108    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34109/* end confdefs.h.  */
34110
34111#include <pthread.h>
34112
34113int i = 3;
34114pthread_t me, newthread;
34115
34116void cleanup_routine(void *foo);
34117void *thread_main(void *foo);
34118
34119void cleanup_routine(void *foo) { i = 4; }
34120void *thread_main(void *foo) { i = 2; return (void*) &i; }
34121
34122int main(int argc, char* argv[])
34123{
34124    pthread_attr_t attr;
34125
34126    me = pthread_self();
34127    pthread_atfork(NULL, NULL, NULL);
34128    pthread_attr_init(&attr);
34129    pthread_cleanup_push(cleanup_routine, 0);
34130    pthread_create(&newthread, &attr, thread_main, 0);
34131    pthread_join(newthread, 0);
34132    pthread_cleanup_pop(0);
34133
34134    return 0;
34135}
34136_ACEOF
34137if ac_fn_c_try_link "$LINENO"; then :
34138  pmix_pthread_c_success=1
34139else
34140  pmix_pthread_c_success=0
34141fi
34142rm -f core conftest.err conftest.$ac_objext \
34143    conftest$ac_exeext conftest.$ac_ext
34144# END: PMIX_INTL_PTHREAD_TRY_LINK
34145
34146  ac_ext=c
34147ac_cpp='$CPP $CPPFLAGS'
34148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34150ac_compiler_gnu=$ac_cv_c_compiler_gnu
34151
34152  if test "$pmix_pthread_c_success" = "1"; then
34153    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34154$as_echo "yes" >&6; }
34155  else
34156    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34157$as_echo "no" >&6; }
34158  fi
34159fi
34160
34161
34162# End: PMIX_INTL_POSIX_THREADS_PLAIN
34163
34164
34165# Try the super-special compiler flags.
34166
34167# Begin: PMIX_INTL_POSIX_THREADS_SPECIAL_FLAGS
34168#
34169# If above didn't work, try some super-special compiler flags
34170# that get evaluated to the "right" things.
34171#
34172# -Kthread:
34173# -kthread:  FreeBSD kernel threads
34174# -pthread:  Modern GCC (most all platforms)
34175# -pthreads: GCC on solaris
34176# -mthreads:
34177# -mt:       Solaris native compilers / HP-UX aCC
34178#
34179# Put -mt before -mthreads because HP-UX aCC will properly compile
34180# with -mthreads (reading as -mt), but emit a warning about unknown
34181# flags hreads.  Stupid compilers.
34182
34183case "${host_cpu}-${host_os}" in
34184  *solaris*)
34185    pflags="-pthread -pthreads -mt"
34186  ;;
34187  *)
34188    pflags="-Kthread -kthread -pthread -pthreads -mt -mthreads"
34189  ;;
34190esac
34191
34192
34193#
34194# C compiler
34195#
34196if test "$pmix_pthread_c_success" = "0"; then
34197  for pf in $pflags; do
34198    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler and POSIX threads work with $pf" >&5
34199$as_echo_n "checking if C compiler and POSIX threads work with $pf... " >&6; }
34200    CFLAGS="$orig_CFLAGS $pf"
34201    ac_ext=c
34202ac_cpp='$CPP $CPPFLAGS'
34203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34205ac_compiler_gnu=$ac_cv_c_compiler_gnu
34206
34207
34208# BEGIN: PMIX_INTL_PTHREAD_TRY_LINK
34209#
34210# Make sure that we can run a small application in C or C++, which
34211# ever is the current language.  Do make sure that C or C++ is the
34212# current language.
34213#
34214# As long as this is not being run....
34215# pthread_t may be anything from an int to a struct -- init with self-tid.
34216#
34217    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34218/* end confdefs.h.  */
34219
34220#include <pthread.h>
34221
34222int i = 3;
34223pthread_t me, newthread;
34224
34225void cleanup_routine(void *foo);
34226void *thread_main(void *foo);
34227
34228void cleanup_routine(void *foo) { i = 4; }
34229void *thread_main(void *foo) { i = 2; return (void*) &i; }
34230
34231int main(int argc, char* argv[])
34232{
34233    pthread_attr_t attr;
34234
34235    me = pthread_self();
34236    pthread_atfork(NULL, NULL, NULL);
34237    pthread_attr_init(&attr);
34238    pthread_cleanup_push(cleanup_routine, 0);
34239    pthread_create(&newthread, &attr, thread_main, 0);
34240    pthread_join(newthread, 0);
34241    pthread_cleanup_pop(0);
34242
34243    return 0;
34244}
34245_ACEOF
34246if ac_fn_c_try_link "$LINENO"; then :
34247  pmix_pthread_c_success=1
34248else
34249  pmix_pthread_c_success=0
34250fi
34251rm -f core conftest.err conftest.$ac_objext \
34252    conftest$ac_exeext conftest.$ac_ext
34253# END: PMIX_INTL_PTHREAD_TRY_LINK
34254
34255    ac_ext=c
34256ac_cpp='$CPP $CPPFLAGS'
34257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34259ac_compiler_gnu=$ac_cv_c_compiler_gnu
34260
34261    if test "$pmix_pthread_c_success" = "1"; then
34262      PTHREAD_CFLAGS="$pf"
34263      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34264$as_echo "yes" >&6; }
34265      break
34266    else
34267      PTHREAD_CFLAGS=
34268      CFLAGS="$orig_CFLAGS"
34269      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34270$as_echo "no" >&6; }
34271    fi
34272  done
34273fi
34274
34275
34276# End: PMIX_INTL_POSIX_THREADS_SPECIAL_FLAGS
34277
34278
34279# Try the normal linking methods (that's no fun)
34280
34281# Begin: PMIX_INTL_POSIX_THREADS_LIBS
34282#
34283# if we can't find a super-special compiler flags, try some libraries.
34284# we throw -D_REENTRANT or -D_THREAD_SAFE in here, just in case.  Some
34285# systems (OS X, for example) generally don't need the defines, but
34286# then will on one system header here or there why take chances?
34287#
34288# libpthreads: AIX - must check before libpthread
34289# liblthread:  LinuxThreads on FreeBSD
34290# libpthread:  The usual place (like we can define usual!)
34291plibs="-lpthreads -llthread -lpthread"
34292
34293
34294#
34295# C compiler
34296#
34297if test "$pmix_pthread_c_success" = "0"; then
34298  for pl in $plibs; do
34299    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler and POSIX threads work with $pl" >&5
34300$as_echo_n "checking if C compiler and POSIX threads work with $pl... " >&6; }
34301    case "${host_cpu}-${host-_os}" in
34302      *-aix* | *-freebsd*)
34303        if test "`echo $CPPFLAGS | $GREP 'D_THREAD_SAFE'`" = ""; then
34304          PTHREAD_CPPFLAGS="-D_THREAD_SAFE"
34305          CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
34306        fi
34307      ;;
34308      *)
34309        if test "`echo $CPPFLAGS | $GREP 'D_REENTRANT'`" = ""; then
34310          PTHREAD_CPPFLAGS="-D_REENTRANT"
34311          CPPFLAGS="$CPPFLAGS $PTHREAD_CPPFLAGS"
34312        fi
34313      ;;
34314    esac
34315    LIBS="$orig_LIBS $pl"
34316    ac_ext=c
34317ac_cpp='$CPP $CPPFLAGS'
34318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34320ac_compiler_gnu=$ac_cv_c_compiler_gnu
34321
34322
34323# BEGIN: PMIX_INTL_PTHREAD_TRY_LINK
34324#
34325# Make sure that we can run a small application in C or C++, which
34326# ever is the current language.  Do make sure that C or C++ is the
34327# current language.
34328#
34329# As long as this is not being run....
34330# pthread_t may be anything from an int to a struct -- init with self-tid.
34331#
34332    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34333/* end confdefs.h.  */
34334
34335#include <pthread.h>
34336
34337int i = 3;
34338pthread_t me, newthread;
34339
34340void cleanup_routine(void *foo);
34341void *thread_main(void *foo);
34342
34343void cleanup_routine(void *foo) { i = 4; }
34344void *thread_main(void *foo) { i = 2; return (void*) &i; }
34345
34346int main(int argc, char* argv[])
34347{
34348    pthread_attr_t attr;
34349
34350    me = pthread_self();
34351    pthread_atfork(NULL, NULL, NULL);
34352    pthread_attr_init(&attr);
34353    pthread_cleanup_push(cleanup_routine, 0);
34354    pthread_create(&newthread, &attr, thread_main, 0);
34355    pthread_join(newthread, 0);
34356    pthread_cleanup_pop(0);
34357
34358    return 0;
34359}
34360_ACEOF
34361if ac_fn_c_try_link "$LINENO"; then :
34362  pmix_pthread_c_success=1
34363else
34364  pmix_pthread_c_success=0
34365fi
34366rm -f core conftest.err conftest.$ac_objext \
34367    conftest$ac_exeext conftest.$ac_ext
34368# END: PMIX_INTL_PTHREAD_TRY_LINK
34369
34370    ac_ext=c
34371ac_cpp='$CPP $CPPFLAGS'
34372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34374ac_compiler_gnu=$ac_cv_c_compiler_gnu
34375
34376    if test "$pmix_pthread_c_success" = "1"; then
34377      PTHREAD_LIBS="$pl"
34378      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34379$as_echo "yes" >&6; }
34380    else
34381      PTHREAD_CPPFLAGS=
34382      CPPFLAGS="$orig_CPPFLAGS"
34383      LIBS="$orig_LIBS"
34384      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34385$as_echo "no" >&6; }
34386    fi
34387  done
34388fi
34389
34390
34391# End: PMIX_INTL_POSIX_THREADS_LIBS
34392
34393
34394#
34395# check to see if we can set error checking mutexes
34396#
34397
34398# LinuxThreads
34399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK_NP" >&5
34400$as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
34401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34402/* end confdefs.h.  */
34403#include <pthread.h>
34404int
34405main ()
34406{
34407pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK_NP);
34408  ;
34409  return 0;
34410}
34411_ACEOF
34412if ac_fn_c_try_link "$LINENO"; then :
34413  result="yes" defval=1
34414else
34415  result="no" defval=0
34416fi
34417rm -f core conftest.err conftest.$ac_objext \
34418    conftest$ac_exeext conftest.$ac_ext
34419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
34420$as_echo "$result" >&6; }
34421
34422cat >>confdefs.h <<_ACEOF
34423#define PMIX_HAVE_PTHREAD_MUTEX_ERRORCHECK_NP $defval
34424_ACEOF
34425
34426
34427# Mac OS X
34428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ERRORCHECK" >&5
34429$as_echo_n "checking for PTHREAD_MUTEX_ERRORCHECK... " >&6; }
34430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34431/* end confdefs.h.  */
34432#include <pthread.h>
34433int
34434main ()
34435{
34436pthread_mutexattr_settype(NULL, PTHREAD_MUTEX_ERRORCHECK);
34437  ;
34438  return 0;
34439}
34440_ACEOF
34441if ac_fn_c_try_link "$LINENO"; then :
34442  result="yes" defval=1
34443else
34444  result="no" defval=0
34445fi
34446rm -f core conftest.err conftest.$ac_objext \
34447    conftest$ac_exeext conftest.$ac_ext
34448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
34449$as_echo "$result" >&6; }
34450
34451cat >>confdefs.h <<_ACEOF
34452#define PMIX_HAVE_PTHREAD_MUTEX_ERRORCHECK $defval
34453_ACEOF
34454
34455
34456CFLAGS="$orig_CFLAGS"
34457CPPFLAGS="$orig_CPPFLAGS"
34458LDFLAGS="$orig_LDFLAGS"
34459LIBS="$orig_LIBS"
34460
34461if test "$pmix_pthread_c_success" = "1"; then
34462  internal_useless=1
34463  HAVE_POSIX_THREADS=1
34464else
34465  internal_useless=1
34466  HAVE_POSIX_THREADS=0
34467fi
34468
34469unset pmix_pthread_c_success
34470unset internal_useless
34471
34472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX threads package" >&5
34473$as_echo_n "checking for working POSIX threads package... " >&6; }
34474if test "$HAVE_POSIX_THREADS" = "1" ; then
34475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34476$as_echo "yes" >&6; }
34477else
34478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34479$as_echo "no" >&6; }
34480fi
34481export HAVE_POSIX_THREADS
34482
34483#
34484# Ask what threading we want (allow posix right now)
34485#
34486
34487if test "$HAVE_POSIX_THREADS" = "0"; then
34488    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** POSIX threads are not\"" >&5
34489$as_echo "$as_me: WARNING: \"*** POSIX threads are not\"" >&2;}
34490    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"*** available on your system \"" >&5
34491$as_echo "$as_me: WARNING: \"*** available on your system \"" >&2;}
34492    as_fn_error $? "\"*** Can not continue\"" "$LINENO" 5
34493fi
34494
34495THREAD_CFLAGS="$PTHREAD_CFLAGS"
34496THREAD_CPPFLAGS="$PTHREAD_CPPFLAGS"
34497THREAD_LDFLAGS="$PTHREAD_LDFLAGS"
34498THREAD_LIBS="$PTHREAD_LIBS"
34499
34500
34501#
34502# Arguments: none
34503#
34504# Dependencies: None
34505#
34506# Sets:
34507#  PMIX_THREADS_HAVE_DIFFERENT_PIDS (variable)
34508#
34509# Test for Linux-like threads in the system.  PMIX does not support
34510# systems with different PIDs for threads in the same process, so error
34511# out if we detect that case.
34512#
34513
34514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if threads have different pids (pthreads on linux)" >&5
34515$as_echo_n "checking if threads have different pids (pthreads on linux)... " >&6; }
34516
34517
34518
34519    # Is the private index set?  If not, set it.
34520    if test "x$pmix_scope_index" = "x"; then
34521        pmix_scope_index=1
34522    fi
34523
34524    # First, check to see if any of these variables are already set.
34525    # This is a simple sanity check to ensure we're not already
34526    # overwriting pre-existing variables (that have a non-empty
34527    # value).  It's not a perfect check, but at least it's something.
34528    for pmix_var in tpids_CFLAGS_save tpids_CPPFLAGS_save tpids_LDFLAGS_save tpids_LIBS_save tpids_MSG; do
34529        pmix_str="pmix_str=\"\$$pmix_var\""
34530        eval $pmix_str
34531
34532        if test "x$pmix_str" != "x"; then
34533            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
34534$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
34535            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
34536$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
34537            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
34538$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
34539            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
34540$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
34541            as_fn_error $? "Cannot continue" "$LINENO" 5
34542        fi
34543    done
34544
34545    # Ok, we passed the simple sanity check.  Save all these names so
34546    # that we can unset them at the end of the scope.
34547    pmix_str="pmix_scope_$pmix_scope_index=\"tpids_CFLAGS_save tpids_CPPFLAGS_save tpids_LDFLAGS_save tpids_LIBS_save tpids_MSG\""
34548    eval $pmix_str
34549    unset pmix_str
34550
34551    env | grep pmix_scope
34552    pmix_scope_index=`expr $pmix_scope_index + 1`
34553
34554tpids_CFLAGS_save="$CFLAGS"
34555CFLAGS="$CFLAGS $THREAD_CFLAGS"
34556tpids_CPPFLAGS_save="$CPPFLAGS"
34557CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
34558tpids_LDFLAGS_save="$LDFLAGS"
34559LDFLAGS="$LDFLAGS $THREAD_LDFLAGS"
34560tpids_LIBS_save="$LIBS"
34561LIBS="$LIBS $THREAD_LIBS"
34562if test "$cross_compiling" = yes; then :
34563
34564 # If we're cross compiling, we can't do another AC_* function here beause
34565 # it we haven't displayed the result from the last one yet.  So defer
34566 # another test until below.
34567 PMIX_THREADS_HAVE_DIFFERENT_PIDS=
34568 MSG="cross compiling (need another test)"
34569else
34570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34571/* end confdefs.h.  */
34572#include <pthread.h>
34573#include <sys/types.h>
34574#include <unistd.h>
34575#include <stdlib.h>
34576
34577void *checkpid(void *arg);
34578int main() {
34579  pthread_t thr;
34580  int pid, *retval;
34581  pid = getpid();
34582  pthread_create(&thr, NULL, checkpid, &pid);
34583  pthread_join(thr, (void **) &retval);
34584  exit(*retval);
34585}
34586
34587static int ret;
34588void *checkpid(void *arg) {
34589   int ppid = *((int *) arg);
34590   if (ppid == getpid())
34591     ret = 0;
34592   else
34593     ret = 1;
34594   pthread_exit((void *) &ret);
34595}
34596_ACEOF
34597if ac_fn_c_try_run "$LINENO"; then :
34598  tpids_MSG=no PMIX_THREADS_HAVE_DIFFERENT_PIDS=0
34599else
34600  tpids_MSG=yes PMIX_THREADS_HAVE_DIFFERENT_PIDS=1
34601fi
34602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34603  conftest.$ac_objext conftest.beam conftest.$ac_ext
34604fi
34605
34606
34607CFLAGS="$tpids_CFLAGS_save"
34608CPPFLAGS="$tpids_CPPFLAGS_save"
34609LDFLAGS="$tpids_LDFLAGS_save"
34610LIBS="$tpids_LIBS_save"
34611
34612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tpids_MSG" >&5
34613$as_echo "$tpids_MSG" >&6; }
34614
34615if test "x$PMIX_THREADS_HAVE_DIFFERENT_PIDS" = "x"; then :
34616   # If we are cross-compiling, look for the symbol
34617       # __linuxthreads_create_event, which seems to only exist in the
34618       # Linux Threads-based pthreads implementation (i.e., the one
34619       # that has different PIDs for each thread).  We *could* switch
34620       # on $host here and only test *linux* hosts, but this test is
34621       # pretty unique, so why bother?  Note that AC_CHECK_FUNC works
34622       # properly in cross-compiling environments in recent-enough
34623       # versions of Autoconf (which is one of the reasons we mandate
34624       # recent versions in autogen!).
34625       ac_fn_c_check_func "$LINENO" "__linuxthreads_create_event" "ac_cv_func___linuxthreads_create_event"
34626if test "x$ac_cv_func___linuxthreads_create_event" = xyes; then :
34627  PMIX_THREADS_HAVE_DIFFERENT_PIDS=1
34628fi
34629
34630fi
34631
34632if test "$PMIX_THREADS_HAVE_DIFFERENT_PIDS" = "1"; then :
34633  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This version of PMIx only supports environments where" >&5
34634$as_echo "$as_me: WARNING: This version of PMIx only supports environments where" >&2;}
34635       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: threads have the same PID" >&5
34636$as_echo "$as_me: WARNING: threads have the same PID" >&2;}
34637       as_fn_error $? "Cannot continue" "$LINENO" 5
34638
34639fi
34640
34641#
34642# if pthreads is not available, then the system does not have an insane threads
34643# model
34644#
34645
34646    # Unwind the index
34647    pmix_scope_index=`expr $pmix_scope_index - 1`
34648    pmix_scope_test=`expr $pmix_scope_index \> 0`
34649    if test "$pmix_scope_test" = "0"; then
34650        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
34651$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
34652        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
34653$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
34654        as_fn_error $? "Cannot continue" "$LINENO" 5
34655    fi
34656
34657    # Get the variable names from that index
34658    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
34659    eval $pmix_str
34660
34661    # Iterate over all the variables and unset them all
34662    for pmix_var in $pmix_str; do
34663        unset $pmix_var
34664    done
34665
34666
34667
34668cat >>confdefs.h <<_ACEOF
34669#define PMIX_ENABLE_MULTI_THREADS 1
34670_ACEOF
34671
34672
34673
34674
34675    CFLAGS="$CFLAGS $THREAD_CFLAGS"
34676    CPPFLAGS="$CPPFLAGS $THREAD_CPPFLAGS"
34677    LDFLAGS="$LDFLAGS $THREAD_LDFLAGS"
34678    LIBS="$LIBS $THREAD_LIBS"
34679
34680    #
34681    # What is the local equivalent of "ln -s"
34682    #
34683
34684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
34685$as_echo_n "checking whether ln -s works... " >&6; }
34686LN_S=$as_ln_s
34687if test "$LN_S" = "ln -s"; then
34688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34689$as_echo "yes" >&6; }
34690else
34691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
34692$as_echo "no, using $LN_S" >&6; }
34693fi
34694
34695
34696    # Check for some common system programs that we need
34697    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
34698$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
34699if ${ac_cv_path_GREP+:} false; then :
34700  $as_echo_n "(cached) " >&6
34701else
34702  if test -z "$GREP"; then
34703  ac_path_GREP_found=false
34704  # Loop through the user's path and test for each of PROGNAME-LIST
34705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34706for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
34707do
34708  IFS=$as_save_IFS
34709  test -z "$as_dir" && as_dir=.
34710    for ac_prog in grep ggrep; do
34711    for ac_exec_ext in '' $ac_executable_extensions; do
34712      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
34713      as_fn_executable_p "$ac_path_GREP" || continue
34714# Check for GNU ac_path_GREP and select it if it is found.
34715  # Check for GNU $ac_path_GREP
34716case `"$ac_path_GREP" --version 2>&1` in
34717*GNU*)
34718  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
34719*)
34720  ac_count=0
34721  $as_echo_n 0123456789 >"conftest.in"
34722  while :
34723  do
34724    cat "conftest.in" "conftest.in" >"conftest.tmp"
34725    mv "conftest.tmp" "conftest.in"
34726    cp "conftest.in" "conftest.nl"
34727    $as_echo 'GREP' >> "conftest.nl"
34728    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
34729    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
34730    as_fn_arith $ac_count + 1 && ac_count=$as_val
34731    if test $ac_count -gt ${ac_path_GREP_max-0}; then
34732      # Best one so far, save it but keep looking for a better one
34733      ac_cv_path_GREP="$ac_path_GREP"
34734      ac_path_GREP_max=$ac_count
34735    fi
34736    # 10*(2^10) chars as input seems more than enough
34737    test $ac_count -gt 10 && break
34738  done
34739  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
34740esac
34741
34742      $ac_path_GREP_found && break 3
34743    done
34744  done
34745  done
34746IFS=$as_save_IFS
34747  if test -z "$ac_cv_path_GREP"; then
34748    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
34749  fi
34750else
34751  ac_cv_path_GREP=$GREP
34752fi
34753
34754fi
34755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
34756$as_echo "$ac_cv_path_GREP" >&6; }
34757 GREP="$ac_cv_path_GREP"
34758
34759
34760    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
34761$as_echo_n "checking for egrep... " >&6; }
34762if ${ac_cv_path_EGREP+:} false; then :
34763  $as_echo_n "(cached) " >&6
34764else
34765  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
34766   then ac_cv_path_EGREP="$GREP -E"
34767   else
34768     if test -z "$EGREP"; then
34769  ac_path_EGREP_found=false
34770  # Loop through the user's path and test for each of PROGNAME-LIST
34771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
34773do
34774  IFS=$as_save_IFS
34775  test -z "$as_dir" && as_dir=.
34776    for ac_prog in egrep; do
34777    for ac_exec_ext in '' $ac_executable_extensions; do
34778      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
34779      as_fn_executable_p "$ac_path_EGREP" || continue
34780# Check for GNU ac_path_EGREP and select it if it is found.
34781  # Check for GNU $ac_path_EGREP
34782case `"$ac_path_EGREP" --version 2>&1` in
34783*GNU*)
34784  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
34785*)
34786  ac_count=0
34787  $as_echo_n 0123456789 >"conftest.in"
34788  while :
34789  do
34790    cat "conftest.in" "conftest.in" >"conftest.tmp"
34791    mv "conftest.tmp" "conftest.in"
34792    cp "conftest.in" "conftest.nl"
34793    $as_echo 'EGREP' >> "conftest.nl"
34794    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
34795    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
34796    as_fn_arith $ac_count + 1 && ac_count=$as_val
34797    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
34798      # Best one so far, save it but keep looking for a better one
34799      ac_cv_path_EGREP="$ac_path_EGREP"
34800      ac_path_EGREP_max=$ac_count
34801    fi
34802    # 10*(2^10) chars as input seems more than enough
34803    test $ac_count -gt 10 && break
34804  done
34805  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
34806esac
34807
34808      $ac_path_EGREP_found && break 3
34809    done
34810  done
34811  done
34812IFS=$as_save_IFS
34813  if test -z "$ac_cv_path_EGREP"; then
34814    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
34815  fi
34816else
34817  ac_cv_path_EGREP=$EGREP
34818fi
34819
34820   fi
34821fi
34822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
34823$as_echo "$ac_cv_path_EGREP" >&6; }
34824 EGREP="$ac_cv_path_EGREP"
34825
34826
34827
34828    ##################################
34829    # Visibility
34830    ##################################
34831
34832    # Check the visibility declspec at the end to avoid problem with
34833    # the previous tests that are not necessarily prepared for
34834    # the visibility feature.
34835    pmix_show_title "Symbol visibility feature"
34836
34837
34838
34839
34840    # Check if the compiler has support for visibility, like some
34841    # versions of gcc, icc Sun Studio cc.
34842    # Check whether --enable-visibility was given.
34843if test "${enable_visibility+set}" = set; then :
34844  enableval=$enable_visibility;
34845fi
34846
34847
34848    WANT_VISIBILITY=0
34849    pmix_msg="whether to enable symbol visibility"
34850
34851    if test "$enable_visibility" = "no"; then
34852        { $as_echo "$as_me:${as_lineno-$LINENO}: checking $pmix_msg" >&5
34853$as_echo_n "checking $pmix_msg... " >&6; }
34854        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (disabled)" >&5
34855$as_echo "no (disabled)" >&6; }
34856    else
34857        CFLAGS_orig=$CFLAGS
34858
34859        pmix_add=
34860        case "$pmix_c_vendor" in
34861        sun)
34862            # Check using Sun Studio -xldscope=hidden flag
34863            pmix_add=-xldscope=hidden
34864            CFLAGS="$PMIX_CFLAGS_BEFORE_PICKY $pmix_add -errwarn=%all"
34865            ;;
34866
34867        *)
34868            # Check using -fvisibility=hidden
34869            pmix_add=-fvisibility=hidden
34870            CFLAGS="$PMIX_CFLAGS_BEFORE_PICKY $pmix_add -Werror"
34871            ;;
34872        esac
34873
34874        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports $pmix_add" >&5
34875$as_echo_n "checking if $CC supports $pmix_add... " >&6; }
34876        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34877/* end confdefs.h.  */
34878
34879            #include <stdio.h>
34880            __attribute__((visibility("default"))) int foo;
34881
34882int
34883main ()
34884{
34885fprintf(stderr, "Hello, world\n");
34886  ;
34887  return 0;
34888}
34889_ACEOF
34890if ac_fn_c_try_link "$LINENO"; then :
34891  if test -s conftest.err; then :
34892  $GREP -iq visibility conftest.err
34893                    # If we find "visibility" in the stderr, then
34894                    # assume it doesn't work
34895                    if test "$?" = "0"; then :
34896  pmix_add=
34897fi
34898fi
34899
34900else
34901  pmix_add=
34902fi
34903rm -f core conftest.err conftest.$ac_objext \
34904    conftest$ac_exeext conftest.$ac_ext
34905        if test "$pmix_add" = ""; then :
34906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34907$as_echo "no" >&6; }
34908else
34909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34910$as_echo "yes" >&6; }
34911fi
34912
34913        CFLAGS=$CFLAGS_orig
34914        PMIX_VISIBILITY_CFLAGS=$pmix_add
34915
34916        if test "$pmix_add" != "" ; then
34917            WANT_VISIBILITY=1
34918            CFLAGS="$CFLAGS $PMIX_VISIBILITY_CFLAGS"
34919            { $as_echo "$as_me:${as_lineno-$LINENO}: checking $pmix_msg" >&5
34920$as_echo_n "checking $pmix_msg... " >&6; }
34921            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (via $pmix_add)" >&5
34922$as_echo "yes (via $pmix_add)" >&6; }
34923        elif test "$enable_visibility" = "yes"; then
34924            as_fn_error $? "Symbol visibility support requested but compiler does not seem to support it.  Aborting" "$LINENO" 5
34925        else
34926            { $as_echo "$as_me:${as_lineno-$LINENO}: checking $pmix_msg" >&5
34927$as_echo_n "checking $pmix_msg... " >&6; }
34928            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (unsupported)" >&5
34929$as_echo "no (unsupported)" >&6; }
34930        fi
34931        unset pmix_add
34932    fi
34933
34934
34935cat >>confdefs.h <<_ACEOF
34936#define PMIX_HAVE_VISIBILITY $WANT_VISIBILITY
34937_ACEOF
34938
34939     if test "$WANT_VISIBILITY" = "1"; then
34940  WANT_HIDDEN_TRUE=
34941  WANT_HIDDEN_FALSE='#'
34942else
34943  WANT_HIDDEN_TRUE='#'
34944  WANT_HIDDEN_FALSE=
34945fi
34946
34947
34948
34949    ##################################
34950    # Libevent
34951    ##################################
34952    pmix_show_title "Libevent"
34953
34954
34955
34956# Check whether --with-libevent-header was given.
34957if test "${with_libevent_header+set}" = set; then :
34958  withval=$with_libevent_header;
34959fi
34960
34961
34962    if test "$pmix_mode" = "embedded"; then :
34963
34964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent" >&5
34965$as_echo_n "checking for libevent... " >&6; }
34966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: assumed available (embedded mode)" >&5
34967$as_echo "assumed available (embedded mode)" >&6; }
34968
34969    if test -z "$with_libevent_header" || test "$with_libevent_header" = "yes"; then :
34970  PMIX_EVENT_HEADER="<event.h>"
34971           PMIX_EVENT2_THREAD_HEADER="<event2/thread.h>"
34972else
34973  PMIX_EVENT_HEADER="$with_libevent_header"
34974           PMIX_EVENT2_THREAD_HEADER="$with_libevent_header"
34975fi
34976
34977    pmix_libevent_source=embedded
34978
34979else
34980
34981
34982
34983    # Is the private index set?  If not, set it.
34984    if test "x$pmix_scope_index" = "x"; then
34985        pmix_scope_index=1
34986    fi
34987
34988    # First, check to see if any of these variables are already set.
34989    # This is a simple sanity check to ensure we're not already
34990    # overwriting pre-existing variables (that have a non-empty
34991    # value).  It's not a perfect check, but at least it's something.
34992    for pmix_var in pmix_event_dir pmix_event_libdir pmix_event_defaults; do
34993        pmix_str="pmix_str=\"\$$pmix_var\""
34994        eval $pmix_str
34995
34996        if test "x$pmix_str" != "x"; then
34997            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
34998$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
34999            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
35000$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
35001            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
35002$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
35003            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
35004$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
35005            as_fn_error $? "Cannot continue" "$LINENO" 5
35006        fi
35007    done
35008
35009    # Ok, we passed the simple sanity check.  Save all these names so
35010    # that we can unset them at the end of the scope.
35011    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_event_dir pmix_event_libdir pmix_event_defaults\""
35012    eval $pmix_str
35013    unset pmix_str
35014
35015    env | grep pmix_scope
35016    pmix_scope_index=`expr $pmix_scope_index + 1`
35017
35018
35019
35020# Check whether --with-libevent was given.
35021if test "${with_libevent+set}" = set; then :
35022  withval=$with_libevent;
35023fi
35024
35025
35026    # Bozo check
35027    if test "$with_libevent" = "no"; then :
35028  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It is not possible to configure PMIx --without-libevent" >&5
35029$as_echo "$as_me: WARNING: It is not possible to configure PMIx --without-libevent" >&2;}
35030           as_fn_error $? "Cannot continue" "$LINENO" 5
35031fi
35032
35033
35034# Check whether --with-libevent-libdir was given.
35035if test "${with_libevent_libdir+set}" = set; then :
35036  withval=$with_libevent_libdir;
35037fi
35038
35039
35040    # get rid of the trailing slash(es)
35041    libevent_prefix=$(echo $with_libevent | sed -e 'sX/*$XXg')
35042    libeventdir_prefix=$(echo $with_libevent_libdir | sed -e 'sX/*$XXg')
35043
35044    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libevent in" >&5
35045$as_echo_n "checking for libevent in... " >&6; }
35046    if test ! -z "$libevent_prefix" && test "$libevent_prefix" != "yes"; then
35047        pmix_event_defaults=no
35048        pmix_event_dir=$libevent_prefix
35049        if test -d $libevent_prefix/lib; then
35050            pmix_event_libdir=$libevent_prefix/lib
35051        elif test -d $libevent_prefix/lib64; then
35052            pmix_event_libdir=$libevent_prefix/lib64
35053        elif test -d $libevent_prefix; then
35054            pmix_event_libdir=$libevent_prefix
35055        else
35056            { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find $libevent_prefix/lib, $libevent_prefix/lib64, or $libevent_prefix" >&5
35057$as_echo "Could not find $libevent_prefix/lib, $libevent_prefix/lib64, or $libevent_prefix" >&6; }
35058            as_fn_error $? "Can not continue" "$LINENO" 5
35059        fi
35060        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_event_dir and $pmix_event_libdir" >&5
35061$as_echo "$pmix_event_dir and $pmix_event_libdir" >&6; }
35062    else
35063        pmix_event_defaults=yes
35064        pmix_event_dir=/usr/include
35065        if test -d /usr/lib; then
35066            pmix_event_libdir=/usr/lib
35067        elif test -d /usr/lib64; then
35068            pmix_event_libdir=/usr/lib64
35069        else
35070            { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
35071$as_echo "not found" >&6; }
35072            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find /usr/lib or /usr/lib64 - you may" >&5
35073$as_echo "$as_me: WARNING: Could not find /usr/lib or /usr/lib64 - you may" >&2;}
35074            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: need to specify --with-libevent-libdir=<path>" >&5
35075$as_echo "$as_me: WARNING: need to specify --with-libevent-libdir=<path>" >&2;}
35076            as_fn_error $? "Can not continue" "$LINENO" 5
35077        fi
35078        { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5
35079$as_echo "(default search paths)" >&6; }
35080    fi
35081    if test ! -z "$libeventdir_prefix" && "$libeventdir_prefix" != "yes"; then :
35082  pmix_event_libdir="$libeventdir_prefix"
35083fi
35084
35085
35086    pmix_check_package_pmix_libevent_save_CPPFLAGS="$CPPFLAGS"
35087    pmix_check_package_pmix_libevent_save_LDFLAGS="$LDFLAGS"
35088    pmix_check_package_pmix_libevent_save_LIBS="$LIBS"
35089
35090    pmix_check_package_pmix_libevent_orig_CPPFLAGS="$pmix_libevent_CPPFLAGS"
35091    pmix_check_package_pmix_libevent_orig_LDFLAGS="$pmix_libevent_LDFLAGS"
35092    pmix_check_package_pmix_libevent_orig_LIBS="$pmix_libevent_LIBS"
35093
35094
35095    # This is stolen from autoconf to peek under the covers to get the
35096    # cache variable for the library check.  one should not copy this
35097    # code into other places unless you want much pain and suffering
35098
35099
35100    # so this sucks, but there's no way to get through the progression
35101    # of header includes without killing off the cache variable and trying
35102    # again...
35103    unset ac_cv_header_event_h
35104    pmix_check_package_header_happy="no"
35105
35106    # get rid of the trailing slash(es)
35107    hdir_prefix=$(echo $pmix_event_dir | sed -e 'sX/*$XXg')
35108
35109    if test "$hdir_prefix" = "" || \
35110           test "$hdir_prefix" = "/usr" || \
35111           test "$hdir_prefix" = "/usr/local"; then :
35112   # try as is...
35113            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
35114$as_echo "looking for header without includes" >&6; }
35115            for ac_header in event.h
35116do :
35117  ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
35118if test "x$ac_cv_header_event_h" = xyes; then :
35119  cat >>confdefs.h <<_ACEOF
35120#define HAVE_EVENT_H 1
35121_ACEOF
35122 pmix_check_package_header_happy="yes"
35123fi
35124
35125done
35126
35127            if test "$pmix_check_package_header_happy" = "no"; then :
35128  # no go on the as is - reset the cache and try again
35129                   unset ac_cv_header_event_h
35130fi
35131fi
35132
35133    if test "$pmix_check_package_header_happy" = "no"; then :
35134  if test "$hdir_prefix" != ""; then :
35135  pmix_libevent_CPPFLAGS="$pmix_libevent_CPPFLAGS -I$hdir_prefix"
35136                  CPPFLAGS="$CPPFLAGS -I$hdir_prefix"
35137                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix" >&5
35138$as_echo "looking for header in $hdir_prefix" >&6; }
35139                  for ac_header in event.h
35140do :
35141  ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
35142if test "x$ac_cv_header_event_h" = xyes; then :
35143  cat >>confdefs.h <<_ACEOF
35144#define HAVE_EVENT_H 1
35145_ACEOF
35146 pmix_check_package_header_happy="yes"
35147fi
35148
35149done
35150
35151                  if test "$pmix_check_package_header_happy" = "no"; then :
35152  unset ac_cv_header_event_h
35153                         pmix_libevent_CPPFLAGS="$pmix_libevent_CPPFLAGS -I$hdir_prefix/include"
35154                         CPPFLAGS="$CPPFLAGS -I$hdir_prefix/include"
35155                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix/include" >&5
35156$as_echo "looking for header in $hdir_prefix/include" >&6; }
35157                         for ac_header in event.h
35158do :
35159  ac_fn_c_check_header_mongrel "$LINENO" "event.h" "ac_cv_header_event_h" "$ac_includes_default"
35160if test "x$ac_cv_header_event_h" = xyes; then :
35161  cat >>confdefs.h <<_ACEOF
35162#define HAVE_EVENT_H 1
35163_ACEOF
35164 pmix_check_package_header_happy="yes"
35165fi
35166
35167done
35168
35169fi
35170fi
35171fi
35172
35173    if test "$pmix_check_package_header_happy" = "yes"; then :
35174
35175    # This is stolen from autoconf to peek under the covers to get the
35176    # cache variable for the library check.  one should not copy this
35177    # code into other places unless you want much pain and suffering
35178
35179    # see comment above
35180    unset ac_cv_lib_event_event_config_new
35181    pmix_check_package_lib_happy="no"
35182
35183    # get rid of the trailing slash(es)
35184    libdir_prefix=$(echo $pmix_event_libdir | sed -e 'sX/*$XXg')
35185
35186    if test "$libdir_prefix" != ""; then :
35187  # libdir was specified - search only there
35188           pmix_libevent_LDFLAGS="$pmix_libevent_LDFLAGS -L$libdir_prefix"
35189           LDFLAGS="$LDFLAGS -L$libdir_prefix"
35190           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_config_new" >&5
35191$as_echo_n "checking for library containing event_config_new... " >&6; }
35192if ${ac_cv_search_event_config_new+:} false; then :
35193  $as_echo_n "(cached) " >&6
35194else
35195  ac_func_search_save_LIBS=$LIBS
35196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35197/* end confdefs.h.  */
35198
35199/* Override any GCC internal prototype to avoid an error.
35200   Use char because int might match the return type of a GCC
35201   builtin and then its argument prototype would still apply.  */
35202#ifdef __cplusplus
35203extern "C"
35204#endif
35205char event_config_new ();
35206int
35207main ()
35208{
35209return event_config_new ();
35210  ;
35211  return 0;
35212}
35213_ACEOF
35214for ac_lib in '' event; do
35215  if test -z "$ac_lib"; then
35216    ac_res="none required"
35217  else
35218    ac_res=-l$ac_lib
35219    LIBS="-l$ac_lib -levent -levent_pthreads $ac_func_search_save_LIBS"
35220  fi
35221  if ac_fn_c_try_link "$LINENO"; then :
35222  ac_cv_search_event_config_new=$ac_res
35223fi
35224rm -f core conftest.err conftest.$ac_objext \
35225    conftest$ac_exeext
35226  if ${ac_cv_search_event_config_new+:} false; then :
35227  break
35228fi
35229done
35230if ${ac_cv_search_event_config_new+:} false; then :
35231
35232else
35233  ac_cv_search_event_config_new=no
35234fi
35235rm conftest.$ac_ext
35236LIBS=$ac_func_search_save_LIBS
35237fi
35238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5
35239$as_echo "$ac_cv_search_event_config_new" >&6; }
35240ac_res=$ac_cv_search_event_config_new
35241if test "$ac_res" != no; then :
35242  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
35243  pmix_check_package_lib_happy="yes"
35244else
35245  pmix_check_package_lib_happy="no"
35246fi
35247
35248           if test "$pmix_check_package_lib_happy" = "no"; then :
35249  LDFLAGS="$pmix_check_package_pmix_libevent_save_LDFLAGS"
35250                  pmix_libevent_LDFLAGS="$pmix_check_package_pmix_libevent_orig_LDFLAGS"
35251                  unset ac_cv_lib_event_event_config_new
35252fi
35253else
35254   # libdir was not specified - go through search path
35255            # get rid of the trailing slash(es)
35256            libdir_prefix=$(echo $pmix_event_dir | sed -e 'sX/*$XXg')
35257
35258            # first try standard locations as otherwise our
35259            # searches with libdir_prefix locations might come
35260            # back positive and unnecessarily add an LDFLAG
35261            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
35262$as_echo "looking for library without search path" >&6; }
35263            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_config_new" >&5
35264$as_echo_n "checking for library containing event_config_new... " >&6; }
35265if ${ac_cv_search_event_config_new+:} false; then :
35266  $as_echo_n "(cached) " >&6
35267else
35268  ac_func_search_save_LIBS=$LIBS
35269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35270/* end confdefs.h.  */
35271
35272/* Override any GCC internal prototype to avoid an error.
35273   Use char because int might match the return type of a GCC
35274   builtin and then its argument prototype would still apply.  */
35275#ifdef __cplusplus
35276extern "C"
35277#endif
35278char event_config_new ();
35279int
35280main ()
35281{
35282return event_config_new ();
35283  ;
35284  return 0;
35285}
35286_ACEOF
35287for ac_lib in '' event; do
35288  if test -z "$ac_lib"; then
35289    ac_res="none required"
35290  else
35291    ac_res=-l$ac_lib
35292    LIBS="-l$ac_lib -levent -levent_pthreads $ac_func_search_save_LIBS"
35293  fi
35294  if ac_fn_c_try_link "$LINENO"; then :
35295  ac_cv_search_event_config_new=$ac_res
35296fi
35297rm -f core conftest.err conftest.$ac_objext \
35298    conftest$ac_exeext
35299  if ${ac_cv_search_event_config_new+:} false; then :
35300  break
35301fi
35302done
35303if ${ac_cv_search_event_config_new+:} false; then :
35304
35305else
35306  ac_cv_search_event_config_new=no
35307fi
35308rm conftest.$ac_ext
35309LIBS=$ac_func_search_save_LIBS
35310fi
35311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5
35312$as_echo "$ac_cv_search_event_config_new" >&6; }
35313ac_res=$ac_cv_search_event_config_new
35314if test "$ac_res" != no; then :
35315  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
35316  pmix_check_package_lib_happy="yes"
35317else
35318  pmix_check_package_lib_happy="no"
35319fi
35320
35321            if test "$pmix_check_package_lib_happy" = "no"; then :
35322   # no go on the as is..  see what happens later...
35323                   LDFLAGS="$pmix_check_package_pmix_libevent_save_LDFLAGS"
35324                   pmix_libevent_LDFLAGS="$pmix_check_package_pmix_libevent_orig_LDFLAGS"
35325                   unset ac_cv_lib_event_event_config_new
35326fi
35327
35328           if test "$pmix_check_package_lib_happy" = "no"; then :
35329  # if we didn't find it, check the libdir_prefix/lib64 directory
35330               if test "$libdir_prefix" != "" && \
35331                       test "$libdir_prefix" != "/usr" && \
35332                       test "$libdir_prefix" != "/usr/local"; then :
35333  pmix_libevent_LDFLAGS="$pmix_libevent_LDFLAGS -L$libdir_prefix/lib64"
35334                     LDFLAGS="$LDFLAGS -L$libdir_prefix/lib64"
35335                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib64" >&5
35336$as_echo "looking for library in $libdir_prefix/lib64" >&6; }
35337                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_config_new" >&5
35338$as_echo_n "checking for library containing event_config_new... " >&6; }
35339if ${ac_cv_search_event_config_new+:} false; then :
35340  $as_echo_n "(cached) " >&6
35341else
35342  ac_func_search_save_LIBS=$LIBS
35343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35344/* end confdefs.h.  */
35345
35346/* Override any GCC internal prototype to avoid an error.
35347   Use char because int might match the return type of a GCC
35348   builtin and then its argument prototype would still apply.  */
35349#ifdef __cplusplus
35350extern "C"
35351#endif
35352char event_config_new ();
35353int
35354main ()
35355{
35356return event_config_new ();
35357  ;
35358  return 0;
35359}
35360_ACEOF
35361for ac_lib in '' event; do
35362  if test -z "$ac_lib"; then
35363    ac_res="none required"
35364  else
35365    ac_res=-l$ac_lib
35366    LIBS="-l$ac_lib -levent -levent_pthreads $ac_func_search_save_LIBS"
35367  fi
35368  if ac_fn_c_try_link "$LINENO"; then :
35369  ac_cv_search_event_config_new=$ac_res
35370fi
35371rm -f core conftest.err conftest.$ac_objext \
35372    conftest$ac_exeext
35373  if ${ac_cv_search_event_config_new+:} false; then :
35374  break
35375fi
35376done
35377if ${ac_cv_search_event_config_new+:} false; then :
35378
35379else
35380  ac_cv_search_event_config_new=no
35381fi
35382rm conftest.$ac_ext
35383LIBS=$ac_func_search_save_LIBS
35384fi
35385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5
35386$as_echo "$ac_cv_search_event_config_new" >&6; }
35387ac_res=$ac_cv_search_event_config_new
35388if test "$ac_res" != no; then :
35389  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
35390  pmix_check_package_lib_happy="yes"
35391else
35392  pmix_check_package_lib_happy="no"
35393fi
35394
35395                     if test "$pmix_check_package_lib_happy" = "no"; then :
35396   # no go on the as is..  see what happens later...
35397                          LDFLAGS="$pmix_check_package_pmix_libevent_save_LDFLAGS"
35398                          pmix_libevent_LDFLAGS="$pmix_check_package_pmix_libevent_orig_LDFLAGS"
35399                          unset ac_cv_lib_event_event_config_new
35400fi
35401fi
35402fi
35403
35404           if test "$pmix_check_package_lib_happy" = "no"; then :
35405  # if we still haven't found it, check the libdir_prefix/lib directory
35406               if test "$libdir_prefix" != "" && \
35407                       test "$libdir_prefix" != "/usr" && \
35408                       test "$libdir_prefix" != "/usr/local"; then :
35409  pmix_libevent_LDFLAGS="$pmix_libevent_LDFLAGS -L$libdir_prefix/lib"
35410                     LDFLAGS="$LDFLAGS -L$libdir_prefix/lib"
35411                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib" >&5
35412$as_echo "looking for library in $libdir_prefix/lib" >&6; }
35413                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing event_config_new" >&5
35414$as_echo_n "checking for library containing event_config_new... " >&6; }
35415if ${ac_cv_search_event_config_new+:} false; then :
35416  $as_echo_n "(cached) " >&6
35417else
35418  ac_func_search_save_LIBS=$LIBS
35419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35420/* end confdefs.h.  */
35421
35422/* Override any GCC internal prototype to avoid an error.
35423   Use char because int might match the return type of a GCC
35424   builtin and then its argument prototype would still apply.  */
35425#ifdef __cplusplus
35426extern "C"
35427#endif
35428char event_config_new ();
35429int
35430main ()
35431{
35432return event_config_new ();
35433  ;
35434  return 0;
35435}
35436_ACEOF
35437for ac_lib in '' event; do
35438  if test -z "$ac_lib"; then
35439    ac_res="none required"
35440  else
35441    ac_res=-l$ac_lib
35442    LIBS="-l$ac_lib -levent -levent_pthreads $ac_func_search_save_LIBS"
35443  fi
35444  if ac_fn_c_try_link "$LINENO"; then :
35445  ac_cv_search_event_config_new=$ac_res
35446fi
35447rm -f core conftest.err conftest.$ac_objext \
35448    conftest$ac_exeext
35449  if ${ac_cv_search_event_config_new+:} false; then :
35450  break
35451fi
35452done
35453if ${ac_cv_search_event_config_new+:} false; then :
35454
35455else
35456  ac_cv_search_event_config_new=no
35457fi
35458rm conftest.$ac_ext
35459LIBS=$ac_func_search_save_LIBS
35460fi
35461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_event_config_new" >&5
35462$as_echo "$ac_cv_search_event_config_new" >&6; }
35463ac_res=$ac_cv_search_event_config_new
35464if test "$ac_res" != no; then :
35465  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
35466  pmix_check_package_lib_happy="yes"
35467else
35468  pmix_check_package_lib_happy="no"
35469fi
35470
35471                     if test "$pmix_check_package_lib_happy" = "no"; then :
35472   # no go on the as is..  see what happens later...
35473                          LDFLAGS="$pmix_check_package_pmix_libevent_save_LDFLAGS"
35474                          pmix_libevent_LDFLAGS="$pmix_check_package_pmix_libevent_orig_LDFLAGS"
35475                          unset ac_cv_lib_event_event_config_new
35476fi
35477fi
35478fi
35479
35480fi
35481
35482
35483    if test "$pmix_check_package_lib_happy" = "yes"; then :
35484  pmix_libevent_LIBS="-levent -levent -levent_pthreads"
35485           pmix_check_package_happy="yes"
35486else
35487  pmix_check_package_happy="no"
35488fi
35489    if test "$pmix_check_package_lib_happy" = "yes"; then :
35490   # The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function]
35491           if test "$ac_cv_search_event_config_new" != "no" &&
35492                  test "$ac_cv_search_event_config_new" != "none required"; then :
35493  pmix_libevent_LIBS="$ac_cv_search_event_config_new -levent -levent_pthreads"
35494else
35495  pmix_libevent_LIBS="-levent -levent_pthreads"
35496fi
35497           pmix_check_package_happy="yes"
35498else
35499  pmix_check_package_happy="no"
35500fi
35501
35502
35503else
35504  pmix_check_package_happy="no"
35505fi
35506
35507    unset pmix_check_package_header_happy
35508
35509
35510
35511    if test "$pmix_check_package_happy" = "yes"; then :
35512
35513else
35514  pmix_libevent_CPPFLAGS="$pmix_check_package_pmix_libevent_orig_CPPFLAGS"
35515           pmix_libevent_LDFLAGS="$pmix_check_package_pmix_libevent_orig_LDFLAGS"
35516           pmix_libevent_LIBS="$pmix_check_package_pmix_libevent_orig_LIBS"
35517           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LIBEVENT SUPPORT NOT FOUND" >&5
35518$as_echo "$as_me: WARNING: LIBEVENT SUPPORT NOT FOUND" >&2;}
35519                        as_fn_error $? "CANNOT CONTINUE" "$LINENO" 5
35520fi
35521
35522    CPPFLAGS="$pmix_check_package_pmix_libevent_save_CPPFLAGS"
35523    LDFLAGS="$pmix_check_package_pmix_libevent_save_LDFLAGS"
35524    LIBS="$pmix_check_package_pmix_libevent_save_LIBS"
35525
35526
35527    if test "$pmix_event_defaults" = "no"; then :
35528
35529
35530
35531    # Is the private index set?  If not, set it.
35532    if test "x$pmix_scope_index" = "x"; then
35533        pmix_scope_index=1
35534    fi
35535
35536    # First, check to see if any of these variables are already set.
35537    # This is a simple sanity check to ensure we're not already
35538    # overwriting pre-existing variables (that have a non-empty
35539    # value).  It's not a perfect check, but at least it's something.
35540    for pmix_var in pmix_tmp pmix_append; do
35541        pmix_str="pmix_str=\"\$$pmix_var\""
35542        eval $pmix_str
35543
35544        if test "x$pmix_str" != "x"; then
35545            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
35546$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
35547            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
35548$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
35549            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
35550$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
35551            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
35552$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
35553            as_fn_error $? "Cannot continue" "$LINENO" 5
35554        fi
35555    done
35556
35557    # Ok, we passed the simple sanity check.  Save all these names so
35558    # that we can unset them at the end of the scope.
35559    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
35560    eval $pmix_str
35561    unset pmix_str
35562
35563    env | grep pmix_scope
35564    pmix_scope_index=`expr $pmix_scope_index + 1`
35565
35566
35567    for arg in $pmix_libevent_CPPFLAGS; do
35568        pmix_tmp=`echo $arg | cut -c1-2`
35569        pmix_append=1
35570        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
35571  for val in ${CPPFLAGS}; do
35572                   if test "x$val" = "x$arg"; then :
35573  pmix_append=0
35574fi
35575               done
35576fi
35577        if test "$pmix_append" = "1"; then :
35578  if test -z "$CPPFLAGS"; then :
35579  CPPFLAGS=$arg
35580else
35581  CPPFLAGS="$CPPFLAGS $arg"
35582fi
35583fi
35584    done
35585
35586
35587    # Unwind the index
35588    pmix_scope_index=`expr $pmix_scope_index - 1`
35589    pmix_scope_test=`expr $pmix_scope_index \> 0`
35590    if test "$pmix_scope_test" = "0"; then
35591        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
35592$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
35593        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
35594$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
35595        as_fn_error $? "Cannot continue" "$LINENO" 5
35596    fi
35597
35598    # Get the variable names from that index
35599    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
35600    eval $pmix_str
35601
35602    # Iterate over all the variables and unset them all
35603    for pmix_var in $pmix_str; do
35604        unset $pmix_var
35605    done
35606
35607
35608
35609
35610
35611    # Is the private index set?  If not, set it.
35612    if test "x$pmix_scope_index" = "x"; then
35613        pmix_scope_index=1
35614    fi
35615
35616    # First, check to see if any of these variables are already set.
35617    # This is a simple sanity check to ensure we're not already
35618    # overwriting pre-existing variables (that have a non-empty
35619    # value).  It's not a perfect check, but at least it's something.
35620    for pmix_var in pmix_tmp pmix_append; do
35621        pmix_str="pmix_str=\"\$$pmix_var\""
35622        eval $pmix_str
35623
35624        if test "x$pmix_str" != "x"; then
35625            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
35626$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
35627            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
35628$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
35629            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
35630$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
35631            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
35632$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
35633            as_fn_error $? "Cannot continue" "$LINENO" 5
35634        fi
35635    done
35636
35637    # Ok, we passed the simple sanity check.  Save all these names so
35638    # that we can unset them at the end of the scope.
35639    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
35640    eval $pmix_str
35641    unset pmix_str
35642
35643    env | grep pmix_scope
35644    pmix_scope_index=`expr $pmix_scope_index + 1`
35645
35646
35647    for arg in $pmix_libevent_LDFLAGS; do
35648        pmix_tmp=`echo $arg | cut -c1-2`
35649        pmix_append=1
35650        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
35651  for val in ${LDFLAGS}; do
35652                   if test "x$val" = "x$arg"; then :
35653  pmix_append=0
35654fi
35655               done
35656fi
35657        if test "$pmix_append" = "1"; then :
35658  if test -z "$LDFLAGS"; then :
35659  LDFLAGS=$arg
35660else
35661  LDFLAGS="$LDFLAGS $arg"
35662fi
35663fi
35664    done
35665
35666
35667    # Unwind the index
35668    pmix_scope_index=`expr $pmix_scope_index - 1`
35669    pmix_scope_test=`expr $pmix_scope_index \> 0`
35670    if test "$pmix_scope_test" = "0"; then
35671        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
35672$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
35673        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
35674$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
35675        as_fn_error $? "Cannot continue" "$LINENO" 5
35676    fi
35677
35678    # Get the variable names from that index
35679    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
35680    eval $pmix_str
35681
35682    # Iterate over all the variables and unset them all
35683    for pmix_var in $pmix_str; do
35684        unset $pmix_var
35685    done
35686
35687
35688fi
35689
35690
35691
35692    # Is the private index set?  If not, set it.
35693    if test "x$pmix_scope_index" = "x"; then
35694        pmix_scope_index=1
35695    fi
35696
35697    # First, check to see if any of these variables are already set.
35698    # This is a simple sanity check to ensure we're not already
35699    # overwriting pre-existing variables (that have a non-empty
35700    # value).  It's not a perfect check, but at least it's something.
35701    for pmix_var in pmix_tmp pmix_append; do
35702        pmix_str="pmix_str=\"\$$pmix_var\""
35703        eval $pmix_str
35704
35705        if test "x$pmix_str" != "x"; then
35706            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
35707$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
35708            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
35709$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
35710            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
35711$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
35712            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
35713$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
35714            as_fn_error $? "Cannot continue" "$LINENO" 5
35715        fi
35716    done
35717
35718    # Ok, we passed the simple sanity check.  Save all these names so
35719    # that we can unset them at the end of the scope.
35720    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
35721    eval $pmix_str
35722    unset pmix_str
35723
35724    env | grep pmix_scope
35725    pmix_scope_index=`expr $pmix_scope_index + 1`
35726
35727
35728    for arg in $pmix_libevent_LIBS; do
35729        pmix_tmp=`echo $arg | cut -c1-2`
35730        pmix_append=1
35731        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
35732  for val in ${LIBS}; do
35733                   if test "x$val" = "x$arg"; then :
35734  pmix_append=0
35735fi
35736               done
35737fi
35738        if test "$pmix_append" = "1"; then :
35739  if test -z "$LIBS"; then :
35740  LIBS=$arg
35741else
35742  LIBS="$LIBS $arg"
35743fi
35744fi
35745    done
35746
35747
35748    # Unwind the index
35749    pmix_scope_index=`expr $pmix_scope_index - 1`
35750    pmix_scope_test=`expr $pmix_scope_index \> 0`
35751    if test "$pmix_scope_test" = "0"; then
35752        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
35753$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
35754        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
35755$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
35756        as_fn_error $? "Cannot continue" "$LINENO" 5
35757    fi
35758
35759    # Get the variable names from that index
35760    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
35761    eval $pmix_str
35762
35763    # Iterate over all the variables and unset them all
35764    for pmix_var in $pmix_str; do
35765        unset $pmix_var
35766    done
35767
35768
35769
35770    # Ensure that this libevent has the symbol
35771    # "evthread_set_lock_callbacks", which will only exist if
35772    # libevent was configured with thread support.
35773    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for evthread_set_lock_callbacks in -levent" >&5
35774$as_echo_n "checking for evthread_set_lock_callbacks in -levent... " >&6; }
35775if ${ac_cv_lib_event_evthread_set_lock_callbacks+:} false; then :
35776  $as_echo_n "(cached) " >&6
35777else
35778  ac_check_lib_save_LIBS=$LIBS
35779LIBS="-levent  $LIBS"
35780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35781/* end confdefs.h.  */
35782
35783/* Override any GCC internal prototype to avoid an error.
35784   Use char because int might match the return type of a GCC
35785   builtin and then its argument prototype would still apply.  */
35786#ifdef __cplusplus
35787extern "C"
35788#endif
35789char evthread_set_lock_callbacks ();
35790int
35791main ()
35792{
35793return evthread_set_lock_callbacks ();
35794  ;
35795  return 0;
35796}
35797_ACEOF
35798if ac_fn_c_try_link "$LINENO"; then :
35799  ac_cv_lib_event_evthread_set_lock_callbacks=yes
35800else
35801  ac_cv_lib_event_evthread_set_lock_callbacks=no
35802fi
35803rm -f core conftest.err conftest.$ac_objext \
35804    conftest$ac_exeext conftest.$ac_ext
35805LIBS=$ac_check_lib_save_LIBS
35806fi
35807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_evthread_set_lock_callbacks" >&5
35808$as_echo "$ac_cv_lib_event_evthread_set_lock_callbacks" >&6; }
35809if test "x$ac_cv_lib_event_evthread_set_lock_callbacks" = xyes; then :
35810  cat >>confdefs.h <<_ACEOF
35811#define HAVE_LIBEVENT 1
35812_ACEOF
35813
35814  LIBS="-levent $LIBS"
35815
35816else
35817  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: External libevent does not have thread support" >&5
35818$as_echo "$as_me: WARNING: External libevent does not have thread support" >&2;}
35819                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIx requires libevent to be compiled with" >&5
35820$as_echo "$as_me: WARNING: PMIx requires libevent to be compiled with" >&2;}
35821                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread support enabled" >&5
35822$as_echo "$as_me: WARNING: thread support enabled" >&2;}
35823                  as_fn_error $? "Cannot continue" "$LINENO" 5
35824fi
35825
35826    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for evthread_use_pthreads in -levent_pthreads" >&5
35827$as_echo_n "checking for evthread_use_pthreads in -levent_pthreads... " >&6; }
35828if ${ac_cv_lib_event_pthreads_evthread_use_pthreads+:} false; then :
35829  $as_echo_n "(cached) " >&6
35830else
35831  ac_check_lib_save_LIBS=$LIBS
35832LIBS="-levent_pthreads  $LIBS"
35833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35834/* end confdefs.h.  */
35835
35836/* Override any GCC internal prototype to avoid an error.
35837   Use char because int might match the return type of a GCC
35838   builtin and then its argument prototype would still apply.  */
35839#ifdef __cplusplus
35840extern "C"
35841#endif
35842char evthread_use_pthreads ();
35843int
35844main ()
35845{
35846return evthread_use_pthreads ();
35847  ;
35848  return 0;
35849}
35850_ACEOF
35851if ac_fn_c_try_link "$LINENO"; then :
35852  ac_cv_lib_event_pthreads_evthread_use_pthreads=yes
35853else
35854  ac_cv_lib_event_pthreads_evthread_use_pthreads=no
35855fi
35856rm -f core conftest.err conftest.$ac_objext \
35857    conftest$ac_exeext conftest.$ac_ext
35858LIBS=$ac_check_lib_save_LIBS
35859fi
35860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_event_pthreads_evthread_use_pthreads" >&5
35861$as_echo "$ac_cv_lib_event_pthreads_evthread_use_pthreads" >&6; }
35862if test "x$ac_cv_lib_event_pthreads_evthread_use_pthreads" = xyes; then :
35863  cat >>confdefs.h <<_ACEOF
35864#define HAVE_LIBEVENT_PTHREADS 1
35865_ACEOF
35866
35867  LIBS="-levent_pthreads $LIBS"
35868
35869else
35870  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: External libevent does not have thread support" >&5
35871$as_echo "$as_me: WARNING: External libevent does not have thread support" >&2;}
35872                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIx requires libevent to be compiled with" >&5
35873$as_echo "$as_me: WARNING: PMIx requires libevent to be compiled with" >&2;}
35874                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread support enabled" >&5
35875$as_echo "$as_me: WARNING: thread support enabled" >&2;}
35876                  as_fn_error $? "Cannot continue" "$LINENO" 5
35877fi
35878
35879
35880    # Set output variables
35881    PMIX_EVENT_HEADER="<event.h>"
35882    PMIX_EVENT2_THREAD_HEADER="<event2/thread.h>"
35883    pmix_libevent_source=$pmix_event_dir
35884
35885
35886    # Unwind the index
35887    pmix_scope_index=`expr $pmix_scope_index - 1`
35888    pmix_scope_test=`expr $pmix_scope_index \> 0`
35889    if test "$pmix_scope_test" = "0"; then
35890        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
35891$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
35892        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
35893$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
35894        as_fn_error $? "Cannot continue" "$LINENO" 5
35895    fi
35896
35897    # Get the variable names from that index
35898    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
35899    eval $pmix_str
35900
35901    # Iterate over all the variables and unset them all
35902    for pmix_var in $pmix_str; do
35903        unset $pmix_var
35904    done
35905
35906
35907fi
35908
35909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking libevent header" >&5
35910$as_echo_n "checking libevent header... " >&6; }
35911
35912cat >>confdefs.h <<_ACEOF
35913#define PMIX_EVENT_HEADER $PMIX_EVENT_HEADER
35914_ACEOF
35915
35916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMIX_EVENT_HEADER" >&5
35917$as_echo "$PMIX_EVENT_HEADER" >&6; }
35918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking libevent2/thread header" >&5
35919$as_echo_n "checking libevent2/thread header... " >&6; }
35920
35921cat >>confdefs.h <<_ACEOF
35922#define PMIX_EVENT2_THREAD_HEADER $PMIX_EVENT2_THREAD_HEADER
35923_ACEOF
35924
35925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMIX_EVENT2_THREAD_HEADER" >&5
35926$as_echo "$PMIX_EVENT2_THREAD_HEADER" >&6; }
35927
35928
35929
35930
35931    # Is the private index set?  If not, set it.
35932    if test "x$pmix_scope_index" = "x"; then
35933        pmix_scope_index=1
35934    fi
35935
35936    # First, check to see if any of these variables are already set.
35937    # This is a simple sanity check to ensure we're not already
35938    # overwriting pre-existing variables (that have a non-empty
35939    # value).  It's not a perfect check, but at least it's something.
35940    for pmix_var in pmix_summary_section pmix_summary_line pmix_summary_section_current; do
35941        pmix_str="pmix_str=\"\$$pmix_var\""
35942        eval $pmix_str
35943
35944        if test "x$pmix_str" != "x"; then
35945            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
35946$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
35947            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
35948$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
35949            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
35950$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
35951            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
35952$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
35953            as_fn_error $? "Cannot continue" "$LINENO" 5
35954        fi
35955    done
35956
35957    # Ok, we passed the simple sanity check.  Save all these names so
35958    # that we can unset them at the end of the scope.
35959    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_summary_section pmix_summary_line pmix_summary_section_current\""
35960    eval $pmix_str
35961    unset pmix_str
35962
35963    env | grep pmix_scope
35964    pmix_scope_index=`expr $pmix_scope_index + 1`
35965
35966
35967            pmix_summary_section=$(echo External Packages | tr ' ' '_')
35968    pmix_summary_line="Libevent: yes ($pmix_libevent_source)"
35969    pmix_summary_section_current=$(eval echo \$pmix_summary_values_$pmix_summary_section)
35970
35971    if test -z "$pmix_summary_section_current" ; then
35972        if test -z "$pmix_summary_sections" ; then
35973            pmix_summary_sections=$pmix_summary_section
35974        else
35975            pmix_summary_sections="$pmix_summary_sections $pmix_summary_section"
35976        fi
35977        eval pmix_summary_values_$pmix_summary_section=\"$pmix_summary_line\"
35978    else
35979        eval pmix_summary_values_$pmix_summary_section=\"$pmix_summary_section_current,$pmix_summary_line\"
35980    fi
35981
35982
35983    # Unwind the index
35984    pmix_scope_index=`expr $pmix_scope_index - 1`
35985    pmix_scope_test=`expr $pmix_scope_index \> 0`
35986    if test "$pmix_scope_test" = "0"; then
35987        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
35988$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
35989        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
35990$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
35991        as_fn_error $? "Cannot continue" "$LINENO" 5
35992    fi
35993
35994    # Get the variable names from that index
35995    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
35996    eval $pmix_str
35997
35998    # Iterate over all the variables and unset them all
35999    for pmix_var in $pmix_str; do
36000        unset $pmix_var
36001    done
36002
36003
36004
36005
36006    ##################################
36007    # ZLIB COMPRESSION
36008    ##################################
36009    pmix_show_title "ZLIB"
36010
36011
36012
36013
36014    # Is the private index set?  If not, set it.
36015    if test "x$pmix_scope_index" = "x"; then
36016        pmix_scope_index=1
36017    fi
36018
36019    # First, check to see if any of these variables are already set.
36020    # This is a simple sanity check to ensure we're not already
36021    # overwriting pre-existing variables (that have a non-empty
36022    # value).  It's not a perfect check, but at least it's something.
36023    for pmix_var in pmix_zlib_dir pmix_zlib_libdir pmix_zlib_standard_lib_location pmix_zlib_standard_header_location; do
36024        pmix_str="pmix_str=\"\$$pmix_var\""
36025        eval $pmix_str
36026
36027        if test "x$pmix_str" != "x"; then
36028            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
36029$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
36030            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
36031$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
36032            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
36033$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
36034            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
36035$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
36036            as_fn_error $? "Cannot continue" "$LINENO" 5
36037        fi
36038    done
36039
36040    # Ok, we passed the simple sanity check.  Save all these names so
36041    # that we can unset them at the end of the scope.
36042    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_zlib_dir pmix_zlib_libdir pmix_zlib_standard_lib_location pmix_zlib_standard_header_location\""
36043    eval $pmix_str
36044    unset pmix_str
36045
36046    env | grep pmix_scope
36047    pmix_scope_index=`expr $pmix_scope_index + 1`
36048
36049
36050
36051# Check whether --with-zlib was given.
36052if test "${with_zlib+set}" = set; then :
36053  withval=$with_zlib;
36054fi
36055
36056
36057
36058# Check whether --with-zlib-libdir was given.
36059if test "${with_zlib_libdir+set}" = set; then :
36060  withval=$with_zlib_libdir;
36061fi
36062
36063
36064    pmix_zlib_support=0
36065
36066    if test "$with_zlib" != "no"; then
36067        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib in" >&5
36068$as_echo_n "checking for zlib in... " >&6; }
36069        if test ! -z "$with_zlib" && test "$with_zlib" != "yes"; then
36070            pmix_zlib_dir=$with_zlib
36071            pmix_zlib_standard_header_location=no
36072            pmix_zlib_standard_lib_location=no
36073            if test -z "$with_zlib_libdir" || test "$with_zlib_libdir" = "yes"; then :
36074  if test -d $with_zlib/lib; then
36075                       pmix_zlib_libdir=$with_zlib/lib
36076                   elif test -d $with_zlib/lib64; then
36077                       pmix_zlib_libdir=$with_zlib/lib64
36078                   else
36079                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find $with_zlib/lib or $with_zlib/lib64" >&5
36080$as_echo "Could not find $with_zlib/lib or $with_zlib/lib64" >&6; }
36081                       as_fn_error $? "Can not continue" "$LINENO" 5
36082                   fi
36083                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_zlib_dir and $pmix_zlib_libdir" >&5
36084$as_echo "$pmix_zlib_dir and $pmix_zlib_libdir" >&6; }
36085else
36086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_zlib_libdir" >&5
36087$as_echo "$with_zlib_libdir" >&6; }
36088fi
36089        else
36090            { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5
36091$as_echo "(default search paths)" >&6; }
36092            pmix_zlib_standard_header_location=yes
36093            pmix_zlib_standard_lib_location=yes
36094        fi
36095        if test ! -z "$with_zlib_libdir" && test "$with_zlib_libdir" != "yes"; then :
36096  pmix_zlib_libdir="$with_zlib_libdir"
36097               pmix_zlib_standard_lib_location=no
36098fi
36099
36100
36101    pmix_check_package_pmix_zlib_save_CPPFLAGS="$CPPFLAGS"
36102    pmix_check_package_pmix_zlib_save_LDFLAGS="$LDFLAGS"
36103    pmix_check_package_pmix_zlib_save_LIBS="$LIBS"
36104
36105    pmix_check_package_pmix_zlib_orig_CPPFLAGS="$pmix_zlib_CPPFLAGS"
36106    pmix_check_package_pmix_zlib_orig_LDFLAGS="$pmix_zlib_LDFLAGS"
36107    pmix_check_package_pmix_zlib_orig_LIBS="$pmix_zlib_LIBS"
36108
36109
36110    # This is stolen from autoconf to peek under the covers to get the
36111    # cache variable for the library check.  one should not copy this
36112    # code into other places unless you want much pain and suffering
36113
36114
36115    # so this sucks, but there's no way to get through the progression
36116    # of header includes without killing off the cache variable and trying
36117    # again...
36118    unset ac_cv_header_zlib_h
36119    pmix_check_package_header_happy="no"
36120
36121    # get rid of the trailing slash(es)
36122    hdir_prefix=$(echo $pmix_zlib_dir | sed -e 'sX/*$XXg')
36123
36124    if test "$hdir_prefix" = "" || \
36125           test "$hdir_prefix" = "/usr" || \
36126           test "$hdir_prefix" = "/usr/local"; then :
36127   # try as is...
36128            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
36129$as_echo "looking for header without includes" >&6; }
36130            for ac_header in zlib.h
36131do :
36132  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
36133if test "x$ac_cv_header_zlib_h" = xyes; then :
36134  cat >>confdefs.h <<_ACEOF
36135#define HAVE_ZLIB_H 1
36136_ACEOF
36137 pmix_check_package_header_happy="yes"
36138fi
36139
36140done
36141
36142            if test "$pmix_check_package_header_happy" = "no"; then :
36143  # no go on the as is - reset the cache and try again
36144                   unset ac_cv_header_zlib_h
36145fi
36146fi
36147
36148    if test "$pmix_check_package_header_happy" = "no"; then :
36149  if test "$hdir_prefix" != ""; then :
36150  pmix_zlib_CPPFLAGS="$pmix_zlib_CPPFLAGS -I$hdir_prefix"
36151                  CPPFLAGS="$CPPFLAGS -I$hdir_prefix"
36152                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix" >&5
36153$as_echo "looking for header in $hdir_prefix" >&6; }
36154                  for ac_header in zlib.h
36155do :
36156  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
36157if test "x$ac_cv_header_zlib_h" = xyes; then :
36158  cat >>confdefs.h <<_ACEOF
36159#define HAVE_ZLIB_H 1
36160_ACEOF
36161 pmix_check_package_header_happy="yes"
36162fi
36163
36164done
36165
36166                  if test "$pmix_check_package_header_happy" = "no"; then :
36167  unset ac_cv_header_zlib_h
36168                         pmix_zlib_CPPFLAGS="$pmix_zlib_CPPFLAGS -I$hdir_prefix/include"
36169                         CPPFLAGS="$CPPFLAGS -I$hdir_prefix/include"
36170                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix/include" >&5
36171$as_echo "looking for header in $hdir_prefix/include" >&6; }
36172                         for ac_header in zlib.h
36173do :
36174  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
36175if test "x$ac_cv_header_zlib_h" = xyes; then :
36176  cat >>confdefs.h <<_ACEOF
36177#define HAVE_ZLIB_H 1
36178_ACEOF
36179 pmix_check_package_header_happy="yes"
36180fi
36181
36182done
36183
36184fi
36185fi
36186fi
36187
36188    if test "$pmix_check_package_header_happy" = "yes"; then :
36189
36190    # This is stolen from autoconf to peek under the covers to get the
36191    # cache variable for the library check.  one should not copy this
36192    # code into other places unless you want much pain and suffering
36193
36194    # see comment above
36195    unset ac_cv_lib_z_deflate
36196    pmix_check_package_lib_happy="no"
36197
36198    # get rid of the trailing slash(es)
36199    libdir_prefix=$(echo $pmix_zlib_libdir | sed -e 'sX/*$XXg')
36200
36201    if test "$libdir_prefix" != ""; then :
36202  # libdir was specified - search only there
36203           pmix_zlib_LDFLAGS="$pmix_zlib_LDFLAGS -L$libdir_prefix"
36204           LDFLAGS="$LDFLAGS -L$libdir_prefix"
36205           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
36206$as_echo_n "checking for library containing deflate... " >&6; }
36207if ${ac_cv_search_deflate+:} false; then :
36208  $as_echo_n "(cached) " >&6
36209else
36210  ac_func_search_save_LIBS=$LIBS
36211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36212/* end confdefs.h.  */
36213
36214/* Override any GCC internal prototype to avoid an error.
36215   Use char because int might match the return type of a GCC
36216   builtin and then its argument prototype would still apply.  */
36217#ifdef __cplusplus
36218extern "C"
36219#endif
36220char deflate ();
36221int
36222main ()
36223{
36224return deflate ();
36225  ;
36226  return 0;
36227}
36228_ACEOF
36229for ac_lib in '' z; do
36230  if test -z "$ac_lib"; then
36231    ac_res="none required"
36232  else
36233    ac_res=-l$ac_lib
36234    LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS"
36235  fi
36236  if ac_fn_c_try_link "$LINENO"; then :
36237  ac_cv_search_deflate=$ac_res
36238fi
36239rm -f core conftest.err conftest.$ac_objext \
36240    conftest$ac_exeext
36241  if ${ac_cv_search_deflate+:} false; then :
36242  break
36243fi
36244done
36245if ${ac_cv_search_deflate+:} false; then :
36246
36247else
36248  ac_cv_search_deflate=no
36249fi
36250rm conftest.$ac_ext
36251LIBS=$ac_func_search_save_LIBS
36252fi
36253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
36254$as_echo "$ac_cv_search_deflate" >&6; }
36255ac_res=$ac_cv_search_deflate
36256if test "$ac_res" != no; then :
36257  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36258  pmix_check_package_lib_happy="yes"
36259else
36260  pmix_check_package_lib_happy="no"
36261fi
36262
36263           if test "$pmix_check_package_lib_happy" = "no"; then :
36264  LDFLAGS="$pmix_check_package_pmix_zlib_save_LDFLAGS"
36265                  pmix_zlib_LDFLAGS="$pmix_check_package_pmix_zlib_orig_LDFLAGS"
36266                  unset ac_cv_lib_z_deflate
36267fi
36268else
36269   # libdir was not specified - go through search path
36270            # get rid of the trailing slash(es)
36271            libdir_prefix=$(echo $pmix_zlib_dir | sed -e 'sX/*$XXg')
36272
36273            # first try standard locations as otherwise our
36274            # searches with libdir_prefix locations might come
36275            # back positive and unnecessarily add an LDFLAG
36276            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
36277$as_echo "looking for library without search path" >&6; }
36278            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
36279$as_echo_n "checking for library containing deflate... " >&6; }
36280if ${ac_cv_search_deflate+:} false; then :
36281  $as_echo_n "(cached) " >&6
36282else
36283  ac_func_search_save_LIBS=$LIBS
36284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36285/* end confdefs.h.  */
36286
36287/* Override any GCC internal prototype to avoid an error.
36288   Use char because int might match the return type of a GCC
36289   builtin and then its argument prototype would still apply.  */
36290#ifdef __cplusplus
36291extern "C"
36292#endif
36293char deflate ();
36294int
36295main ()
36296{
36297return deflate ();
36298  ;
36299  return 0;
36300}
36301_ACEOF
36302for ac_lib in '' z; do
36303  if test -z "$ac_lib"; then
36304    ac_res="none required"
36305  else
36306    ac_res=-l$ac_lib
36307    LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS"
36308  fi
36309  if ac_fn_c_try_link "$LINENO"; then :
36310  ac_cv_search_deflate=$ac_res
36311fi
36312rm -f core conftest.err conftest.$ac_objext \
36313    conftest$ac_exeext
36314  if ${ac_cv_search_deflate+:} false; then :
36315  break
36316fi
36317done
36318if ${ac_cv_search_deflate+:} false; then :
36319
36320else
36321  ac_cv_search_deflate=no
36322fi
36323rm conftest.$ac_ext
36324LIBS=$ac_func_search_save_LIBS
36325fi
36326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
36327$as_echo "$ac_cv_search_deflate" >&6; }
36328ac_res=$ac_cv_search_deflate
36329if test "$ac_res" != no; then :
36330  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36331  pmix_check_package_lib_happy="yes"
36332else
36333  pmix_check_package_lib_happy="no"
36334fi
36335
36336            if test "$pmix_check_package_lib_happy" = "no"; then :
36337   # no go on the as is..  see what happens later...
36338                   LDFLAGS="$pmix_check_package_pmix_zlib_save_LDFLAGS"
36339                   pmix_zlib_LDFLAGS="$pmix_check_package_pmix_zlib_orig_LDFLAGS"
36340                   unset ac_cv_lib_z_deflate
36341fi
36342
36343           if test "$pmix_check_package_lib_happy" = "no"; then :
36344  # if we didn't find it, check the libdir_prefix/lib64 directory
36345               if test "$libdir_prefix" != "" && \
36346                       test "$libdir_prefix" != "/usr" && \
36347                       test "$libdir_prefix" != "/usr/local"; then :
36348  pmix_zlib_LDFLAGS="$pmix_zlib_LDFLAGS -L$libdir_prefix/lib64"
36349                     LDFLAGS="$LDFLAGS -L$libdir_prefix/lib64"
36350                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib64" >&5
36351$as_echo "looking for library in $libdir_prefix/lib64" >&6; }
36352                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
36353$as_echo_n "checking for library containing deflate... " >&6; }
36354if ${ac_cv_search_deflate+:} false; then :
36355  $as_echo_n "(cached) " >&6
36356else
36357  ac_func_search_save_LIBS=$LIBS
36358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36359/* end confdefs.h.  */
36360
36361/* Override any GCC internal prototype to avoid an error.
36362   Use char because int might match the return type of a GCC
36363   builtin and then its argument prototype would still apply.  */
36364#ifdef __cplusplus
36365extern "C"
36366#endif
36367char deflate ();
36368int
36369main ()
36370{
36371return deflate ();
36372  ;
36373  return 0;
36374}
36375_ACEOF
36376for ac_lib in '' z; do
36377  if test -z "$ac_lib"; then
36378    ac_res="none required"
36379  else
36380    ac_res=-l$ac_lib
36381    LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS"
36382  fi
36383  if ac_fn_c_try_link "$LINENO"; then :
36384  ac_cv_search_deflate=$ac_res
36385fi
36386rm -f core conftest.err conftest.$ac_objext \
36387    conftest$ac_exeext
36388  if ${ac_cv_search_deflate+:} false; then :
36389  break
36390fi
36391done
36392if ${ac_cv_search_deflate+:} false; then :
36393
36394else
36395  ac_cv_search_deflate=no
36396fi
36397rm conftest.$ac_ext
36398LIBS=$ac_func_search_save_LIBS
36399fi
36400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
36401$as_echo "$ac_cv_search_deflate" >&6; }
36402ac_res=$ac_cv_search_deflate
36403if test "$ac_res" != no; then :
36404  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36405  pmix_check_package_lib_happy="yes"
36406else
36407  pmix_check_package_lib_happy="no"
36408fi
36409
36410                     if test "$pmix_check_package_lib_happy" = "no"; then :
36411   # no go on the as is..  see what happens later...
36412                          LDFLAGS="$pmix_check_package_pmix_zlib_save_LDFLAGS"
36413                          pmix_zlib_LDFLAGS="$pmix_check_package_pmix_zlib_orig_LDFLAGS"
36414                          unset ac_cv_lib_z_deflate
36415fi
36416fi
36417fi
36418
36419           if test "$pmix_check_package_lib_happy" = "no"; then :
36420  # if we still haven't found it, check the libdir_prefix/lib directory
36421               if test "$libdir_prefix" != "" && \
36422                       test "$libdir_prefix" != "/usr" && \
36423                       test "$libdir_prefix" != "/usr/local"; then :
36424  pmix_zlib_LDFLAGS="$pmix_zlib_LDFLAGS -L$libdir_prefix/lib"
36425                     LDFLAGS="$LDFLAGS -L$libdir_prefix/lib"
36426                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib" >&5
36427$as_echo "looking for library in $libdir_prefix/lib" >&6; }
36428                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
36429$as_echo_n "checking for library containing deflate... " >&6; }
36430if ${ac_cv_search_deflate+:} false; then :
36431  $as_echo_n "(cached) " >&6
36432else
36433  ac_func_search_save_LIBS=$LIBS
36434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36435/* end confdefs.h.  */
36436
36437/* Override any GCC internal prototype to avoid an error.
36438   Use char because int might match the return type of a GCC
36439   builtin and then its argument prototype would still apply.  */
36440#ifdef __cplusplus
36441extern "C"
36442#endif
36443char deflate ();
36444int
36445main ()
36446{
36447return deflate ();
36448  ;
36449  return 0;
36450}
36451_ACEOF
36452for ac_lib in '' z; do
36453  if test -z "$ac_lib"; then
36454    ac_res="none required"
36455  else
36456    ac_res=-l$ac_lib
36457    LIBS="-l$ac_lib -lz $ac_func_search_save_LIBS"
36458  fi
36459  if ac_fn_c_try_link "$LINENO"; then :
36460  ac_cv_search_deflate=$ac_res
36461fi
36462rm -f core conftest.err conftest.$ac_objext \
36463    conftest$ac_exeext
36464  if ${ac_cv_search_deflate+:} false; then :
36465  break
36466fi
36467done
36468if ${ac_cv_search_deflate+:} false; then :
36469
36470else
36471  ac_cv_search_deflate=no
36472fi
36473rm conftest.$ac_ext
36474LIBS=$ac_func_search_save_LIBS
36475fi
36476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
36477$as_echo "$ac_cv_search_deflate" >&6; }
36478ac_res=$ac_cv_search_deflate
36479if test "$ac_res" != no; then :
36480  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
36481  pmix_check_package_lib_happy="yes"
36482else
36483  pmix_check_package_lib_happy="no"
36484fi
36485
36486                     if test "$pmix_check_package_lib_happy" = "no"; then :
36487   # no go on the as is..  see what happens later...
36488                          LDFLAGS="$pmix_check_package_pmix_zlib_save_LDFLAGS"
36489                          pmix_zlib_LDFLAGS="$pmix_check_package_pmix_zlib_orig_LDFLAGS"
36490                          unset ac_cv_lib_z_deflate
36491fi
36492fi
36493fi
36494
36495fi
36496
36497
36498    if test "$pmix_check_package_lib_happy" = "yes"; then :
36499  pmix_zlib_LIBS="-lz -lz"
36500           pmix_check_package_happy="yes"
36501else
36502  pmix_check_package_happy="no"
36503fi
36504    if test "$pmix_check_package_lib_happy" = "yes"; then :
36505   # The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function]
36506           if test "$ac_cv_search_deflate" != "no" &&
36507                  test "$ac_cv_search_deflate" != "none required"; then :
36508  pmix_zlib_LIBS="$ac_cv_search_deflate -lz"
36509else
36510  pmix_zlib_LIBS="-lz"
36511fi
36512           pmix_check_package_happy="yes"
36513else
36514  pmix_check_package_happy="no"
36515fi
36516
36517
36518else
36519  pmix_check_package_happy="no"
36520fi
36521
36522    unset pmix_check_package_header_happy
36523
36524
36525
36526    if test "$pmix_check_package_happy" = "yes"; then :
36527  pmix_zlib_support=1
36528else
36529  pmix_zlib_CPPFLAGS="$pmix_check_package_pmix_zlib_orig_CPPFLAGS"
36530           pmix_zlib_LDFLAGS="$pmix_check_package_pmix_zlib_orig_LDFLAGS"
36531           pmix_zlib_LIBS="$pmix_check_package_pmix_zlib_orig_LIBS"
36532           pmix_zlib_support=0
36533fi
36534
36535    CPPFLAGS="$pmix_check_package_pmix_zlib_save_CPPFLAGS"
36536    LDFLAGS="$pmix_check_package_pmix_zlib_save_LDFLAGS"
36537    LIBS="$pmix_check_package_pmix_zlib_save_LIBS"
36538
36539        if test $pmix_zlib_support = "1"; then
36540            LIBS="$LIBS -lz"
36541            PMIX_EMBEDDED_LIBS="$PMIX_EMBEDDED_LIBS -lz"
36542            if test "$pmix_zlib_standard_header_location" != "yes"; then
36543                PMIX_EMBEDDED_CPPFLAGS="$PMIX_EMBEDDED_CPPFLAGS $pmix_zlib_CPPFLAGS"
36544                CPPFLAGS="$CPPFLAGS $pmix_zlib_CPPFLAGS"
36545            fi
36546            if test "$pmix_zlib_standard_lib_location" != "yes"; then
36547                PMIX_EMBEDDED_LDFLAGS="$PMIX_EMBEDDED_LDFLAGS $pmix_zlib_LDFLAGS"
36548                LDFLAGS="$LDFLAGS $pmix_zlib_LDFLAGS"
36549            fi
36550        fi
36551    fi
36552
36553    if test ! -z "$with_zlib" && test "$with_zlib" != "no" && test "$pmix_zlib_support" != "1"; then
36554        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ZLIB SUPPORT REQUESTED AND NOT FOUND" >&5
36555$as_echo "$as_me: WARNING: ZLIB SUPPORT REQUESTED AND NOT FOUND" >&2;}
36556        as_fn_error $? "CANNOT CONTINUE" "$LINENO" 5
36557    fi
36558
36559    { $as_echo "$as_me:${as_lineno-$LINENO}: checking will zlib support be built" >&5
36560$as_echo_n "checking will zlib support be built... " >&6; }
36561    if test "$pmix_zlib_support" != "1"; then
36562        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36563$as_echo "no" >&6; }
36564    else
36565        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36566$as_echo "yes" >&6; }
36567    fi
36568
36569
36570cat >>confdefs.h <<_ACEOF
36571#define PMIX_HAVE_ZLIB $pmix_zlib_support
36572_ACEOF
36573
36574
36575    # Unwind the index
36576    pmix_scope_index=`expr $pmix_scope_index - 1`
36577    pmix_scope_test=`expr $pmix_scope_index \> 0`
36578    if test "$pmix_scope_test" = "0"; then
36579        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
36580$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
36581        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
36582$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
36583        as_fn_error $? "Cannot continue" "$LINENO" 5
36584    fi
36585
36586    # Get the variable names from that index
36587    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
36588    eval $pmix_str
36589
36590    # Iterate over all the variables and unset them all
36591    for pmix_var in $pmix_str; do
36592        unset $pmix_var
36593    done
36594
36595
36596
36597    ##################################
36598    # MCA
36599    ##################################
36600
36601    pmix_show_title "Modular Component Architecture (MCA) setup"
36602
36603    #
36604    # Do we want to show component load error messages by default?
36605    #
36606
36607    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default value of mca_base_component_show_load_errors" >&5
36608$as_echo_n "checking for default value of mca_base_component_show_load_errors... " >&6; }
36609    # Check whether --enable-show-load-errors-by-default was given.
36610if test "${enable_show_load_errors_by_default+set}" = set; then :
36611  enableval=$enable_show_load_errors_by_default;
36612fi
36613
36614    if test "$enable_show_load_errors_by_default" = "no" ; then
36615        PMIX_SHOW_LOAD_ERRORS_DEFAULT=0
36616        { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled by default" >&5
36617$as_echo "disabled by default" >&6; }
36618    else
36619        PMIX_SHOW_LOAD_ERRORS_DEFAULT=1
36620        { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled by default" >&5
36621$as_echo "enabled by default" >&6; }
36622    fi
36623
36624cat >>confdefs.h <<_ACEOF
36625#define PMIX_SHOW_LOAD_ERRORS_DEFAULT $PMIX_SHOW_LOAD_ERRORS_DEFAULT
36626_ACEOF
36627
36628
36629    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for subdir args" >&5
36630$as_echo_n "checking for subdir args... " >&6; }
36631
36632
36633
36634    # Is the private index set?  If not, set it.
36635    if test "x$pmix_scope_index" = "x"; then
36636        pmix_scope_index=1
36637    fi
36638
36639    # First, check to see if any of these variables are already set.
36640    # This is a simple sanity check to ensure we're not already
36641    # overwriting pre-existing variables (that have a non-empty
36642    # value).  It's not a perfect check, but at least it's something.
36643    for pmix_var in subdirs_str subdirs_skip subdirs_args subdirs_arg; do
36644        pmix_str="pmix_str=\"\$$pmix_var\""
36645        eval $pmix_str
36646
36647        if test "x$pmix_str" != "x"; then
36648            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
36649$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
36650            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
36651$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
36652            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
36653$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
36654            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
36655$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
36656            as_fn_error $? "Cannot continue" "$LINENO" 5
36657        fi
36658    done
36659
36660    # Ok, we passed the simple sanity check.  Save all these names so
36661    # that we can unset them at the end of the scope.
36662    pmix_str="pmix_scope_$pmix_scope_index=\"subdirs_str subdirs_skip subdirs_args subdirs_arg\""
36663    eval $pmix_str
36664    unset pmix_str
36665
36666    env | grep pmix_scope
36667    pmix_scope_index=`expr $pmix_scope_index + 1`
36668
36669#
36670# Invoke configure in subdirectories.
36671#
36672# pmix_subdir_args is the name of the variable to assign the output to
36673#
36674
36675#
36676# Make a list of command line args --eliminate the --srcdir and
36677# --cache-file args, because we need to replace them with our own
36678# values when invoking the sub-configure script. Also eliminate
36679# the --with-platform as this will confuse any subdir with
36680# similar options
36681#
36682
36683subdirs_args=
36684subdirs_skip=no
36685
36686eval "set x $ac_configure_args"
36687shift
36688for subdirs_arg
36689do
36690    if test "$subdirs_skip" = "yes"; then
36691	subdirs_skip=no
36692    else
36693	case $subdirs_arg in
36694	-cache-file | --cache-file | -cache | --cache)
36695	    subdirs_skip=yes
36696	    ;;
36697	--config-cache | -C)
36698	    ;;
36699	-cache-file=* | --cache-file=*)
36700	    ;;
36701	-srcdir | --srcdir)
36702	    subdirs_skip=yes
36703	    ;;
36704	-srcdir=* | --srcdir=*)
36705	    ;;
36706	-with-platform=* | --with-platform=*)
36707	    ;;
36708	*)
36709	    case $subdir_arg in
36710	    *\'*) subdir_arg=`echo "$subdir_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36711	    esac
36712	    subdirs_args="$subdirs_args '$subdirs_arg'"
36713	    ;;
36714	esac
36715    fi
36716done
36717
36718#
36719# Assign the output
36720#
36721
36722subdirs_str=pmix_subdir_args=\"$subdirs_args\"
36723eval "$subdirs_str"
36724
36725#
36726# Clean up
36727#
36728
36729
36730    # Unwind the index
36731    pmix_scope_index=`expr $pmix_scope_index - 1`
36732    pmix_scope_test=`expr $pmix_scope_index \> 0`
36733    if test "$pmix_scope_test" = "0"; then
36734        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
36735$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
36736        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
36737$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
36738        as_fn_error $? "Cannot continue" "$LINENO" 5
36739    fi
36740
36741    # Get the variable names from that index
36742    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
36743    eval $pmix_str
36744
36745    # Iterate over all the variables and unset them all
36746    for pmix_var in $pmix_str; do
36747        unset $pmix_var
36748    done
36749
36750    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_subdir_args" >&5
36751$as_echo "$pmix_subdir_args" >&6; }
36752
36753
36754
36755
36756    # Find which components should be built as run-time loadable components
36757    # Acceptable combinations:
36758    #
36759    # [default -- no option given]
36760    # --enable-mca-dso
36761    # --enable-mca-dso=[.+,]*COMPONENT_TYPE[.+,]*
36762    # --enable-mca-dso=[.+,]*COMPONENT_TYPE-COMPONENT_NAME[.+,]*
36763    # --disable-mca-dso
36764    #
36765    # Check whether --enable-mca-no-build was given.
36766if test "${enable_mca_no_build+set}" = set; then :
36767  enableval=$enable_mca_no_build;
36768fi
36769
36770    # Check whether --enable-mca-dso was given.
36771if test "${enable_mca_dso+set}" = set; then :
36772  enableval=$enable_mca_dso;
36773fi
36774
36775    # Check whether --enable-mca-static was given.
36776if test "${enable_mca_static+set}" = set; then :
36777  enableval=$enable_mca_static;
36778fi
36779
36780    # Check whether --enable-mca-direct was given.
36781if test "${enable_mca_direct+set}" = set; then :
36782  enableval=$enable_mca_direct;
36783fi
36784
36785
36786    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be disabled" >&5
36787$as_echo_n "checking which components should be disabled... " >&6; }
36788    if test "$enable_mca_no_build" = "yes"; then
36789        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36790$as_echo "yes" >&6; }
36791        as_fn_error $? "*** The enable-mca-no-build flag requires an explicit list
36792*** of type-component pairs.  For example, --enable-mca-direct=pml-ob1" "$LINENO" 5
36793    else
36794        ifs_save="$IFS"
36795        IFS="${IFS}$PATH_SEPARATOR,"
36796        msg=
36797        for item in $enable_mca_no_build; do
36798            type="`echo $item | cut -s -f1 -d-`"
36799            comp="`echo $item | cut -s -f2- -d-`"
36800            if test -z $type ; then
36801                type=$item
36802            fi
36803            if test -z $comp ; then
36804                str="`echo DISABLE_${type}=1 | sed s/-/_/g`"
36805                eval $str
36806                msg="$item $msg"
36807            else
36808                str="`echo DISABLE_${type}_${comp}=1 | sed s/-/_/g`"
36809                eval $str
36810                msg="$item $msg"
36811            fi
36812        done
36813        IFS="$ifs_save"
36814    fi
36815    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
36816$as_echo "$msg" >&6; }
36817    unset msg
36818
36819    #
36820    # First, add all the mca-direct components / types into the mca-static
36821    # lists and create a list of component types that are direct compile,
36822    # in the form DIRECT_[type]=[component]
36823    #
36824    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be direct-linked into the library" >&5
36825$as_echo_n "checking which components should be direct-linked into the library... " >&6; }
36826    if test "$enable_mca_direct" = "yes" ; then
36827        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36828$as_echo "yes" >&6; }
36829        as_fn_error $? "*** The enable-mca-direct flag requires an explicit list of
36830*** type-component pairs.  For example, --enable-mca-direct=pml-ob1,coll-basic" "$LINENO" 5
36831    elif test ! -z "$enable_mca_direct" && test "$enable_mca_direct" != "" ; then
36832        #
36833        # we need to add this into the static list, unless the static list
36834        # is everything
36835        #
36836        if test "$enable_mca_static" = "no" ; then
36837            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Re-enabling static component support for direct call" >&5
36838$as_echo "$as_me: WARNING: *** Re-enabling static component support for direct call" >&2;}
36839            enable_mca_static="$enable_mca_direct"
36840        elif test -z "$enable_mca_static" ; then
36841            enable_mca_static="$enable_mca_direct"
36842        elif test "$enable_mca_static" != "yes" ; then
36843            enable_mca_static="$enable_mca_direct,$enable_mca_static"
36844        fi
36845
36846        ifs_save="$IFS"
36847        IFS="${IFS}$PATH_SEPARATOR,"
36848        msg=
36849        for item in $enable_mca_direct; do
36850            type="`echo $item | cut -f1 -d-`"
36851            comp="`echo $item | cut -f2- -d-`"
36852            if test -z $type || test -z $comp ; then
36853                as_fn_error $? "*** The enable-mca-direct flag requires a
36854*** list of type-component pairs.  Invalid input detected." "$LINENO" 5
36855            else
36856                str="`echo DIRECT_$type=$comp | sed s/-/_/g`"
36857                eval $str
36858                msg="$item $msg"
36859            fi
36860        done
36861        IFS="$ifs_save"
36862    fi
36863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
36864$as_echo "$msg" >&6; }
36865    unset msg
36866
36867    #
36868    # Second, set the DSO_all and STATIC_all variables.  conflict
36869    # resolution (prefer static) is done in the big loop below
36870    #
36871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be run-time loadable" >&5
36872$as_echo_n "checking which components should be run-time loadable... " >&6; }
36873    if test "$enable_static" != "no"; then
36874        DSO_all=0
36875        msg=none
36876    elif test -z "$enable_mca_dso" || test "$enable_mca_dso" = "yes"; then
36877        DSO_all=1
36878        msg=all
36879    elif test "$enable_mca_dso" = "no"; then
36880        DSO_all=0
36881        msg=none
36882    else
36883        DSO_all=0
36884        ifs_save="$IFS"
36885        IFS="${IFS}$PATH_SEPARATOR,"
36886        msg=
36887        for item in $enable_mca_dso; do
36888            str="`echo DSO_$item=1 | sed s/-/_/g`"
36889            eval $str
36890            msg="$item $msg"
36891        done
36892        IFS="$ifs_save"
36893    fi
36894    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
36895$as_echo "$msg" >&6; }
36896    unset msg
36897    if test "$enable_static" != "no"; then
36898        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&5
36899$as_echo "$as_me: WARNING: *** Shared libraries have been disabled (--disable-shared)" >&2;}
36900        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Building MCA components as DSOs automatically disabled" >&5
36901$as_echo "$as_me: WARNING: *** Building MCA components as DSOs automatically disabled" >&2;}
36902    fi
36903
36904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking which components should be static" >&5
36905$as_echo_n "checking which components should be static... " >&6; }
36906    if test "$enable_mca_static" = "yes"; then
36907        STATIC_all=1
36908        msg=all
36909    elif test -z "$enable_mca_static" || test "$enable_mca_static" = "no"; then
36910        STATIC_all=0
36911        msg=none
36912    else
36913        STATIC_all=0
36914        ifs_save="$IFS"
36915        IFS="${IFS}$PATH_SEPARATOR,"
36916        msg=
36917        for item in $enable_mca_static; do
36918            str="`echo STATIC_$item=1 | sed s/-/_/g`"
36919            eval $str
36920            msg="$item $msg"
36921        done
36922        IFS="$ifs_save"
36923    fi
36924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
36925$as_echo "$msg" >&6; }
36926    unset msg
36927
36928    # now configure the PMIx project.  Most
36929    # of the hard stuff is in here
36930    MCA_PROJECT_SUBDIRS=
36931
36932    # can't use a variable rename here because these need to be evaled
36933    # at auto* time.
36934
36935    pmix_show_subtitle "Configuring MCA"
36936
36937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frameworks" >&5
36938$as_echo_n "checking for frameworks... " >&6; }
36939    { $as_echo "$as_me:${as_lineno-$LINENO}: result: common, bfrops, gds, pdl, pif, pinstalldirs, pnet, preg, psec, psensor, pshmem, ptl" >&5
36940$as_echo "common, bfrops, gds, pdl, pif, pinstalldirs, pnet, preg, psec, psensor, pshmem, ptl" >&6; }
36941
36942    # iterate through the list of frameworks.  There is something
36943    # funky with m4 foreach if the list is defined, but empty.  It
36944    # will call the 3rd argument once with an empty value for the
36945    # first argument.  Protect against calling MCA_CONFIGURE_FRAMEWORK
36946    # with an empty second argument.  Grrr....
36947    # if there isn't a project list, abort
36948    #
36949    # Also setup two variables for Makefiles:
36950    #  MCA_project_FRAMEWORKS     - list of frameworks in that project
36951    #  MCA_project_FRAMEWORK_LIBS - list of libraries (or variables pointing
36952    #                               to more libraries) that must be included
36953    #                               in the project's main library
36954
36955
36956    MCA_pmix_FRAMEWORKS=
36957    MCA_pmix_FRAMEWORKS_SUBDIRS=
36958    MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS=
36959    MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS=
36960    MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS=
36961    MCA_pmix_FRAMEWORK_LIBS=
36962
36963                              MCA_pmix_FRAMEWORKS="common $MCA_pmix_FRAMEWORKS"
36964                                 MCA_pmix_FRAMEWORKS_SUBDIRS="mca/common $MCA_pmix_FRAMEWORKS_SUBDIRS"
36965                                 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="\$(MCA_pmix_common_ALL_SUBDIRS) $MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS"
36966                                 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="\$(MCA_pmix_common_DSO_SUBDIRS) $MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS"
36967                                 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="\$(MCA_pmix_common_STATIC_SUBDIRS) $MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS"
36968
36969                          MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_common_STATIC_LTLIBS)"
36970
36971    pmix_show_subsubtitle "Configuring MCA framework common"
36972
36973
36974
36975
36976    # setup for framework
36977    all_components=
36978    static_components=
36979    dso_components=
36980    static_ltlibs=
36981
36982    # Ensure that the directory where the #include file is to live
36983    # exists.  Need to do this for VPATH builds, because the directory
36984    # may not exist yet.  For the "common" type, it's not really a
36985    # component, so it doesn't have a base.
36986    outdir=src/mca/common
36987    as_dir=$outdir; as_fn_mkdir_p
36988
36989    # emit Makefile rule
36990    ac_config_files="$ac_config_files src/mca/common/Makefile"
36991
36992
36993    # remove any previously generated #include files
36994    outfile_real=$outdir/static-components.h
36995    outfile=$outfile_real.new
36996    rm -f $outfile $outfile.struct $outfile.extern
36997    touch $outfile.struct $outfile.extern
36998
36999    # print some nice messages about what we're about to do...
37000    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework common" >&5
37001$as_echo_n "checking for no configure components in framework common... " >&6; }
37002    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
37003$as_echo "" >&6; }
37004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework common" >&5
37005$as_echo_n "checking for m4 configure components in framework common... " >&6; }
37006    { $as_echo "$as_me:${as_lineno-$LINENO}: result: dstore" >&5
37007$as_echo "dstore" >&6; }
37008
37009    # If there are components in the no configure list, but we're
37010    # doing one of the "special" selection logics, abort with a
37011    # reasonable message.
37012
37013
37014
37015    # run the configure logic for the no-config components
37016
37017
37018    # configure components that use built-in configuration scripts
37019
37020
37021
37022    best_mca_component_priority=0
37023    components_looking_for_succeed=1
37024    components_last_result=0
37025
37026
37027    pmix_show_subsubsubtitle "MCA component common:dstore (m4 configuration macro)"
37028
37029    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed"
37030
37031
37032
37033    component_path="$srcdir/src/mca/common/dstore"
37034    want_component=0
37035
37036    # build if:
37037    # - the component type is direct and we are that component
37038    # - there is no pmix_ignore file
37039    # - there is an pmix_ignore, but there is an empty pmix_unignore
37040    # - there is an pmix_ignore, but username is in pmix_unignore
37041    if test -d $component_path ; then
37042        # decide if we want the component to be built or not.  This
37043        # is spread out because some of the logic is a little complex
37044        # and test's syntax isn't exactly the greatest.  We want to
37045        # build the component by default.
37046        want_component=1
37047        if test -f $component_path/.pmix_ignore ; then
37048            # If there is an pmix_ignore file, don't build
37049            # the component.  Note that this decision can be
37050            # overridden by the unignore logic below.
37051            want_component=0
37052        fi
37053        if test -f $component_path/.pmix_unignore ; then
37054            # if there is an empty pmix_unignore, that is
37055            # equivalent to having your userid in the unignore file.
37056            # If userid is in the file, unignore the ignore file.
37057            if test ! -s $component_path/.pmix_unignore ; then
37058                want_component=1
37059            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
37060                want_component=1
37061            fi
37062        fi
37063        # if this component type is direct and we are not it, we don't want
37064        # to be built.  Otherwise, we do want to be built.
37065        if test ! -z "$DIRECT_common" ; then
37066            if test "$DIRECT_common" = "dstore" ; then
37067                want_component=1
37068            else
37069                want_component=0
37070            fi
37071        fi
37072    fi
37073
37074    # if we were explicitly disabled, don't build :)
37075    if test "$DISABLE_common" = "1"; then :
37076  want_component=0
37077fi
37078    if test "$DISABLE_common_dstore" = "1"; then :
37079  want_component=0
37080fi
37081
37082    if test "$want_component" = "1"; then :
37083  should_build=$components_looking_for_succeed
37084else
37085  should_build=0
37086fi
37087
37088    # Allow the component to override the build mode if it really wants to.
37089    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
37090
37091    SHARED_FRAMEWORK="$DSO_common"
37092    SHARED_COMPONENT="$DSO_common_dstore"
37093
37094    STATIC_FRAMEWORK="$STATIC_common"
37095    STATIC_COMPONENT="$STATIC_common_dstore"
37096
37097    shared_mode_override=static
37098
37099    # Setup for either shared or static
37100    if test "$STATIC_FRAMEWORK" = "1" || \
37101       test "$STATIC_COMPONENT" = "1" || \
37102       test "$STATIC_all" = "1" ; then
37103        compile_mode="static"
37104    elif test "$shared_mode_override" = "dso" || \
37105         test "$SHARED_FRAMEWORK" = "1" || \
37106         test "$SHARED_COMPONENT" = "1" || \
37107         test "$DSO_all" = "1"; then
37108        compile_mode="dso"
37109    else
37110        compile_mode="static"
37111    fi
37112
37113    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:dstore compile mode" >&5
37114$as_echo_n "checking for MCA component common:dstore compile mode... " >&6; }
37115    if test "$DIRECT_common" = "dstore" ; then
37116        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
37117$as_echo "$compile_mode - direct" >&6; }
37118    else
37119        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
37120$as_echo "$compile_mode" >&6; }
37121    fi
37122
37123
37124    # try to configure the component
37125
37126    ac_config_files="$ac_config_files src/mca/common/dstore/Makefile"
37127
37128    should_build=$should_build
37129
37130    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build"
37131
37132    if test "$should_build" = "1"; then :
37133
37134
37135
37136    # See if it dropped an output file for us to pick up some
37137    # shell variables in.
37138    infile="$srcdir/src/mca/common/dstore/post_configure.sh"
37139
37140    # Add this subdir to the mast list of all MCA component subdirs
37141    all_components="$all_components dstore"
37142
37143    if test "$compile_mode" = "dso" ; then
37144        dso_components="$dso_components dstore"
37145    else
37146        if test "common" = "common"; then
37147            # Static libraries in "common" frameworks are installed, and
37148            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
37149            # set.
37150            static_ltlibs="mca/common/dstore/lib${PMIX_LIB_PREFIX}mca_common_dstore.la $static_ltlibs"
37151        else
37152            # Other frameworks do not have to obey the
37153            # $FRAMEWORK_LIB_PREFIX prefix.
37154            static_ltlibs="mca/common/dstore/libmca_common_dstore.la $static_ltlibs"
37155        fi
37156        echo "extern const pmix_mca_base_component_t mca_common_dstore_component;" >> $outfile.extern
37157        echo "  &mca_common_dstore_component, " >> $outfile.struct
37158        static_components="$static_components dstore"
37159    fi
37160
37161    # Output pretty results
37162    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:dstore can compile" >&5
37163$as_echo_n "checking if MCA component common:dstore can compile... " >&6; }
37164    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37165$as_echo "yes" >&6; }
37166
37167                        if test -f $infile; then
37168        # check for direct call header to include.  This will be
37169        # AC_SUBSTed later.
37170        if test "$DIRECT_common" = "dstore" ; then
37171            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
37172                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
37173                str="MCA_pmix_common_DIRECT_CALL_HEADER=$line"
37174                eval $str
37175            else
37176as_fn_error $? "*** common component dstore was supposed to be direct-called, but
37177*** does not appear to support direct calling.
37178*** Aborting" "$LINENO" 5
37179            fi
37180        fi
37181    else
37182        # were we supposed to have found something in the
37183        # post_configure.sh, but the file didn't exist?
37184        if test "$DIRECT_common" = "dstore" ; then
37185as_fn_error $? "*** common component dstore was supposed to be direct-called, but
37186*** does not appear to support direct calling.
37187*** Aborting" "$LINENO" 5
37188        fi
37189    fi
37190
37191    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
37192    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
37193    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
37194    # component didn't have it's own configure script (in which case,
37195    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
37196    # have to do this if the component is building dynamically,
37197    # because it will link against these (without a dependency from
37198    # libmpi.so to these flags)
37199    if test "$compile_mode" = "static"; then
37200        if test "$common_dstore_WRAPPER_EXTRA_LDFLAGS" = ""; then :
37201
37202
37203
37204    # Is the private index set?  If not, set it.
37205    if test "x$pmix_scope_index" = "x"; then
37206        pmix_scope_index=1
37207    fi
37208
37209    # First, check to see if any of these variables are already set.
37210    # This is a simple sanity check to ensure we're not already
37211    # overwriting pre-existing variables (that have a non-empty
37212    # value).  It's not a perfect check, but at least it's something.
37213    for pmix_var in pmix_tmp pmix_append; do
37214        pmix_str="pmix_str=\"\$$pmix_var\""
37215        eval $pmix_str
37216
37217        if test "x$pmix_str" != "x"; then
37218            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
37219$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
37220            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
37221$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
37222            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
37223$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
37224            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
37225$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
37226            as_fn_error $? "Cannot continue" "$LINENO" 5
37227        fi
37228    done
37229
37230    # Ok, we passed the simple sanity check.  Save all these names so
37231    # that we can unset them at the end of the scope.
37232    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
37233    eval $pmix_str
37234    unset pmix_str
37235
37236    env | grep pmix_scope
37237    pmix_scope_index=`expr $pmix_scope_index + 1`
37238
37239
37240    for arg in $common_dstore_LDFLAGS; do
37241        pmix_tmp=`echo $arg | cut -c1-2`
37242        pmix_append=1
37243        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
37244  for val in ${mca_wrapper_extra_ldflags}; do
37245                   if test "x$val" = "x$arg"; then :
37246  pmix_append=0
37247fi
37248               done
37249fi
37250        if test "$pmix_append" = "1"; then :
37251  if test -z "$mca_wrapper_extra_ldflags"; then :
37252  mca_wrapper_extra_ldflags=$arg
37253else
37254  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
37255fi
37256fi
37257    done
37258
37259
37260    # Unwind the index
37261    pmix_scope_index=`expr $pmix_scope_index - 1`
37262    pmix_scope_test=`expr $pmix_scope_index \> 0`
37263    if test "$pmix_scope_test" = "0"; then
37264        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
37265$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
37266        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
37267$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
37268        as_fn_error $? "Cannot continue" "$LINENO" 5
37269    fi
37270
37271    # Get the variable names from that index
37272    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
37273    eval $pmix_str
37274
37275    # Iterate over all the variables and unset them all
37276    for pmix_var in $pmix_str; do
37277        unset $pmix_var
37278    done
37279
37280
37281else
37282
37283
37284
37285    # Is the private index set?  If not, set it.
37286    if test "x$pmix_scope_index" = "x"; then
37287        pmix_scope_index=1
37288    fi
37289
37290    # First, check to see if any of these variables are already set.
37291    # This is a simple sanity check to ensure we're not already
37292    # overwriting pre-existing variables (that have a non-empty
37293    # value).  It's not a perfect check, but at least it's something.
37294    for pmix_var in pmix_tmp pmix_append; do
37295        pmix_str="pmix_str=\"\$$pmix_var\""
37296        eval $pmix_str
37297
37298        if test "x$pmix_str" != "x"; then
37299            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
37300$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
37301            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
37302$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
37303            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
37304$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
37305            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
37306$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
37307            as_fn_error $? "Cannot continue" "$LINENO" 5
37308        fi
37309    done
37310
37311    # Ok, we passed the simple sanity check.  Save all these names so
37312    # that we can unset them at the end of the scope.
37313    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
37314    eval $pmix_str
37315    unset pmix_str
37316
37317    env | grep pmix_scope
37318    pmix_scope_index=`expr $pmix_scope_index + 1`
37319
37320
37321    for arg in $common_dstore_WRAPPER_EXTRA_LDFLAGS; do
37322        pmix_tmp=`echo $arg | cut -c1-2`
37323        pmix_append=1
37324        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
37325  for val in ${mca_wrapper_extra_ldflags}; do
37326                   if test "x$val" = "x$arg"; then :
37327  pmix_append=0
37328fi
37329               done
37330fi
37331        if test "$pmix_append" = "1"; then :
37332  if test -z "$mca_wrapper_extra_ldflags"; then :
37333  mca_wrapper_extra_ldflags=$arg
37334else
37335  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
37336fi
37337fi
37338    done
37339
37340
37341    # Unwind the index
37342    pmix_scope_index=`expr $pmix_scope_index - 1`
37343    pmix_scope_test=`expr $pmix_scope_index \> 0`
37344    if test "$pmix_scope_test" = "0"; then
37345        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
37346$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
37347        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
37348$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
37349        as_fn_error $? "Cannot continue" "$LINENO" 5
37350    fi
37351
37352    # Get the variable names from that index
37353    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
37354    eval $pmix_str
37355
37356    # Iterate over all the variables and unset them all
37357    for pmix_var in $pmix_str; do
37358        unset $pmix_var
37359    done
37360
37361
37362fi
37363                        if test "$common_dstore_WRAPPER_EXTRA_LIBS" = ""; then :
37364
37365
37366
37367    # Is the private index set?  If not, set it.
37368    if test "x$pmix_scope_index" = "x"; then
37369        pmix_scope_index=1
37370    fi
37371
37372    # First, check to see if any of these variables are already set.
37373    # This is a simple sanity check to ensure we're not already
37374    # overwriting pre-existing variables (that have a non-empty
37375    # value).  It's not a perfect check, but at least it's something.
37376    for pmix_var in pmix_tmp pmix_append; do
37377        pmix_str="pmix_str=\"\$$pmix_var\""
37378        eval $pmix_str
37379
37380        if test "x$pmix_str" != "x"; then
37381            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
37382$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
37383            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
37384$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
37385            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
37386$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
37387            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
37388$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
37389            as_fn_error $? "Cannot continue" "$LINENO" 5
37390        fi
37391    done
37392
37393    # Ok, we passed the simple sanity check.  Save all these names so
37394    # that we can unset them at the end of the scope.
37395    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
37396    eval $pmix_str
37397    unset pmix_str
37398
37399    env | grep pmix_scope
37400    pmix_scope_index=`expr $pmix_scope_index + 1`
37401
37402
37403    for arg in $common_dstore_LIBS; do
37404        pmix_tmp=`echo $arg | cut -c1-2`
37405        pmix_append=1
37406        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
37407  for val in ${mca_wrapper_extra_libs}; do
37408                   if test "x$val" = "x$arg"; then :
37409  pmix_append=0
37410fi
37411               done
37412fi
37413        if test "$pmix_append" = "1"; then :
37414  if test -z "$mca_wrapper_extra_libs"; then :
37415  mca_wrapper_extra_libs=$arg
37416else
37417  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
37418fi
37419fi
37420    done
37421
37422
37423    # Unwind the index
37424    pmix_scope_index=`expr $pmix_scope_index - 1`
37425    pmix_scope_test=`expr $pmix_scope_index \> 0`
37426    if test "$pmix_scope_test" = "0"; then
37427        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
37428$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
37429        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
37430$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
37431        as_fn_error $? "Cannot continue" "$LINENO" 5
37432    fi
37433
37434    # Get the variable names from that index
37435    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
37436    eval $pmix_str
37437
37438    # Iterate over all the variables and unset them all
37439    for pmix_var in $pmix_str; do
37440        unset $pmix_var
37441    done
37442
37443
37444else
37445
37446
37447
37448    # Is the private index set?  If not, set it.
37449    if test "x$pmix_scope_index" = "x"; then
37450        pmix_scope_index=1
37451    fi
37452
37453    # First, check to see if any of these variables are already set.
37454    # This is a simple sanity check to ensure we're not already
37455    # overwriting pre-existing variables (that have a non-empty
37456    # value).  It's not a perfect check, but at least it's something.
37457    for pmix_var in pmix_tmp pmix_append; do
37458        pmix_str="pmix_str=\"\$$pmix_var\""
37459        eval $pmix_str
37460
37461        if test "x$pmix_str" != "x"; then
37462            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
37463$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
37464            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
37465$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
37466            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
37467$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
37468            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
37469$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
37470            as_fn_error $? "Cannot continue" "$LINENO" 5
37471        fi
37472    done
37473
37474    # Ok, we passed the simple sanity check.  Save all these names so
37475    # that we can unset them at the end of the scope.
37476    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
37477    eval $pmix_str
37478    unset pmix_str
37479
37480    env | grep pmix_scope
37481    pmix_scope_index=`expr $pmix_scope_index + 1`
37482
37483
37484    for arg in $common_dstore_WRAPPER_EXTRA_LIBS; do
37485        pmix_tmp=`echo $arg | cut -c1-2`
37486        pmix_append=1
37487        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
37488  for val in ${mca_wrapper_extra_libs}; do
37489                   if test "x$val" = "x$arg"; then :
37490  pmix_append=0
37491fi
37492               done
37493fi
37494        if test "$pmix_append" = "1"; then :
37495  if test -z "$mca_wrapper_extra_libs"; then :
37496  mca_wrapper_extra_libs=$arg
37497else
37498  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
37499fi
37500fi
37501    done
37502
37503
37504    # Unwind the index
37505    pmix_scope_index=`expr $pmix_scope_index - 1`
37506    pmix_scope_test=`expr $pmix_scope_index \> 0`
37507    if test "$pmix_scope_test" = "0"; then
37508        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
37509$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
37510        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
37511$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
37512        as_fn_error $? "Cannot continue" "$LINENO" 5
37513    fi
37514
37515    # Get the variable names from that index
37516    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
37517    eval $pmix_str
37518
37519    # Iterate over all the variables and unset them all
37520    for pmix_var in $pmix_str; do
37521        unset $pmix_var
37522    done
37523
37524
37525fi
37526
37527    fi
37528
37529    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
37530    # component can never be used in a STOP_AT_FIRST framework, we
37531    # don't have to implement the else clause in the literal check...
37532    if test "$common_dstore_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
37533  stop_at_first=0
37534            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
37535  if test "$with_devel_headers" = "yes"; then :
37536
37537
37538
37539    # Is the private index set?  If not, set it.
37540    if test "x$pmix_scope_index" = "x"; then
37541        pmix_scope_index=1
37542    fi
37543
37544    # First, check to see if any of these variables are already set.
37545    # This is a simple sanity check to ensure we're not already
37546    # overwriting pre-existing variables (that have a non-empty
37547    # value).  It's not a perfect check, but at least it's something.
37548    for pmix_var in pmix_tmp pmix_append; do
37549        pmix_str="pmix_str=\"\$$pmix_var\""
37550        eval $pmix_str
37551
37552        if test "x$pmix_str" != "x"; then
37553            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
37554$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
37555            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
37556$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
37557            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
37558$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
37559            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
37560$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
37561            as_fn_error $? "Cannot continue" "$LINENO" 5
37562        fi
37563    done
37564
37565    # Ok, we passed the simple sanity check.  Save all these names so
37566    # that we can unset them at the end of the scope.
37567    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
37568    eval $pmix_str
37569    unset pmix_str
37570
37571    env | grep pmix_scope
37572    pmix_scope_index=`expr $pmix_scope_index + 1`
37573
37574
37575    for arg in $common_dstore_WRAPPER_EXTRA_CPPFLAGS; do
37576        pmix_tmp=`echo $arg | cut -c1-2`
37577        pmix_append=1
37578        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
37579  for val in ${mca_wrapper_extra_cppflags}; do
37580                   if test "x$val" = "x$arg"; then :
37581  pmix_append=0
37582fi
37583               done
37584fi
37585        if test "$pmix_append" = "1"; then :
37586  if test -z "$mca_wrapper_extra_cppflags"; then :
37587  mca_wrapper_extra_cppflags=$arg
37588else
37589  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
37590fi
37591fi
37592    done
37593
37594
37595    # Unwind the index
37596    pmix_scope_index=`expr $pmix_scope_index - 1`
37597    pmix_scope_test=`expr $pmix_scope_index \> 0`
37598    if test "$pmix_scope_test" = "0"; then
37599        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
37600$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
37601        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
37602$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
37603        as_fn_error $? "Cannot continue" "$LINENO" 5
37604    fi
37605
37606    # Get the variable names from that index
37607    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
37608    eval $pmix_str
37609
37610    # Iterate over all the variables and unset them all
37611    for pmix_var in $pmix_str; do
37612        unset $pmix_var
37613    done
37614
37615
37616fi
37617else
37618  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring common_dstore_WRAPPER_EXTRA_CPPFLAGS ($common_dstore_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
37619$as_echo "$as_me: WARNING: ignoring common_dstore_WRAPPER_EXTRA_CPPFLAGS ($common_dstore_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
37620fi
37621fi
37622
37623else
37624
37625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:dstore can compile" >&5
37626$as_echo_n "checking if MCA component common:dstore can compile... " >&6; }
37627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37628$as_echo "no" >&6; }
37629
37630    # If this component was requested as the default for this
37631    # type, then abort.
37632    if test "$with_common" = "dstore" ; then
37633        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dstore\" failed to configure properly" >&5
37634$as_echo "$as_me: WARNING: MCA component \"dstore\" failed to configure properly" >&2;}
37635        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
37636$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
37637        as_fn_error $? "Cannot continue" "$LINENO" 5
37638    fi
37639
37640    if test ! -z "$DIRECT_common" ; then
37641        if test "$DIRECT_common" = "dstore" ; then
37642            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dstore\" failed to configure properly" >&5
37643$as_echo "$as_me: WARNING: MCA component \"dstore\" failed to configure properly" >&2;}
37644            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
37645$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
37646            as_fn_error $? "Cannot continue" "$LINENO" 5
37647        fi
37648    fi
37649
37650           # add component to all component list
37651           all_components="$all_components dstore"
37652fi
37653
37654
37655
37656    # set the AM_CONDITIONAL on how we should build
37657    if test "$compile_mode" = "dso"; then :
37658  BUILD_pmix_common_dstore_DSO=1
37659else
37660  BUILD_pmix_common_dstore_DSO=0
37661fi
37662     if test "$BUILD_pmix_common_dstore_DSO" = "1"; then
37663  MCA_BUILD_pmix_common_dstore_DSO_TRUE=
37664  MCA_BUILD_pmix_common_dstore_DSO_FALSE='#'
37665else
37666  MCA_BUILD_pmix_common_dstore_DSO_TRUE='#'
37667  MCA_BUILD_pmix_common_dstore_DSO_FALSE=
37668fi
37669
37670
37671    if test "$should_build" = "1"; then :
37672  components_last_result=1
37673else
37674  components_last_result=0
37675fi
37676
37677    unset compile_mode
37678
37679
37680
37681
37682
37683    # configure components that provide their own configure script.
37684    # It would be really hard to run these for "find first that
37685    # works", so we don't :)
37686
37687
37688
37689                  if test "1" != "0"; then :
37690
37691    for component_path in $srcdir/src/mca/common/* ; do
37692        component="`basename $component_path`"
37693        if test -d $component_path && test -x $component_path/configure ; then
37694            pmix_show_subsubsubtitle "MCA component common:$component (need to configure)"
37695
37696            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build="
37697
37698
37699
37700    component_path="$srcdir/src/mca/common/$component"
37701    want_component=0
37702
37703    # build if:
37704    # - the component type is direct and we are that component
37705    # - there is no pmix_ignore file
37706    # - there is an pmix_ignore, but there is an empty pmix_unignore
37707    # - there is an pmix_ignore, but username is in pmix_unignore
37708    if test -d $component_path ; then
37709        # decide if we want the component to be built or not.  This
37710        # is spread out because some of the logic is a little complex
37711        # and test's syntax isn't exactly the greatest.  We want to
37712        # build the component by default.
37713        want_component=1
37714        if test -f $component_path/.pmix_ignore ; then
37715            # If there is an pmix_ignore file, don't build
37716            # the component.  Note that this decision can be
37717            # overridden by the unignore logic below.
37718            want_component=0
37719        fi
37720        if test -f $component_path/.pmix_unignore ; then
37721            # if there is an empty pmix_unignore, that is
37722            # equivalent to having your userid in the unignore file.
37723            # If userid is in the file, unignore the ignore file.
37724            if test ! -s $component_path/.pmix_unignore ; then
37725                want_component=1
37726            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
37727                want_component=1
37728            fi
37729        fi
37730        # if this component type is direct and we are not it, we don't want
37731        # to be built.  Otherwise, we do want to be built.
37732        if test ! -z "$DIRECT_common" ; then
37733            if test "$DIRECT_common" = "$component" ; then
37734                want_component=1
37735            else
37736                want_component=0
37737            fi
37738        fi
37739    fi
37740
37741    # if we were explicitly disabled, don't build :)
37742    if test "$DISABLE_common" = "1"; then :
37743  want_component=0
37744fi
37745    str="DISABLED_COMPONENT_CHECK=\$DISABLE_common_$component"
37746         eval $str
37747         if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
37748             want_component=0
37749         fi
37750
37751    if test "$want_component" = "1"; then :
37752  should_build=1
37753else
37754  should_build=0
37755fi
37756
37757
37758    SHARED_FRAMEWORK="$DSO_common"
37759    str="SHARED_COMPONENT=\$DSO_common_$component"
37760         eval $str
37761
37762    STATIC_FRAMEWORK="$STATIC_common"
37763    str="STATIC_COMPONENT=\$STATIC_common_$component"
37764         eval $str
37765
37766    shared_mode_override=static
37767
37768    # Setup for either shared or static
37769    if test "$STATIC_FRAMEWORK" = "1" || \
37770       test "$STATIC_COMPONENT" = "1" || \
37771       test "$STATIC_all" = "1" ; then
37772        compile_mode="static"
37773    elif test "$shared_mode_override" = "dso" || \
37774         test "$SHARED_FRAMEWORK" = "1" || \
37775         test "$SHARED_COMPONENT" = "1" || \
37776         test "$DSO_all" = "1"; then
37777        compile_mode="dso"
37778    else
37779        compile_mode="static"
37780    fi
37781
37782    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component common:$component compile mode" >&5
37783$as_echo_n "checking for MCA component common:$component compile mode... " >&6; }
37784    if test "$DIRECT_common" = "$component" ; then
37785        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
37786$as_echo "$compile_mode - direct" >&6; }
37787    else
37788        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
37789$as_echo "$compile_mode" >&6; }
37790    fi
37791
37792            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build"
37793
37794            if test "$should_build" = "1" ; then
37795
37796
37797
37798    # Is the private index set?  If not, set it.
37799    if test "x$pmix_scope_index" = "x"; then
37800        pmix_scope_index=1
37801    fi
37802
37803    # First, check to see if any of these variables are already set.
37804    # This is a simple sanity check to ensure we're not already
37805    # overwriting pre-existing variables (that have a non-empty
37806    # value).  It's not a perfect check, but at least it's something.
37807    for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do
37808        pmix_str="pmix_str=\"\$$pmix_var\""
37809        eval $pmix_str
37810
37811        if test "x$pmix_str" != "x"; then
37812            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
37813$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
37814            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
37815$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
37816            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
37817$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
37818            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
37819$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
37820            as_fn_error $? "Cannot continue" "$LINENO" 5
37821        fi
37822    done
37823
37824    # Ok, we passed the simple sanity check.  Save all these names so
37825    # that we can unset them at the end of the scope.
37826    pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\""
37827    eval $pmix_str
37828    unset pmix_str
37829
37830    env | grep pmix_scope
37831    pmix_scope_index=`expr $pmix_scope_index + 1`
37832
37833
37834#
37835# Invoke configure in a specific subdirectory.
37836#
37837# src/mca/common/$component is the directory to invoke in
37838# $pmix_subdir_args is the list of arguments to pass
37839# should_build=1 is actions to execute upon success
37840# should_build=0 is actions to execute upon failure
37841#
37842subdir_dir="src/mca/common/$component"
37843subdir_args="$pmix_subdir_args"
37844subdir_success="should_build=1"
37845subdir_failure="should_build=0"
37846
37847#
37848# Sanity checks
37849#
37850
37851if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then
37852    { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5
37853$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;}
37854
37855    #
37856    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
37857    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
37858    # into it.
37859    #
37860
37861    case $srcdir in
37862    .)
37863	;;
37864    *)
37865	{ case $subdir_dir in
37866	[\\/]* | ?:[\\/]* ) total_dir=;;
37867	*)                      total_dir=.;;
37868	esac
37869	temp=$subdir_dir
37870	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
37871	    case $dir_part in
37872	    # Skip DOS drivespec
37873	    ?:) total_dir=$dir_part ;;
37874	    *)  total_dir=$total_dir/$dir_part
37875		test -d "$total_dir" ||
37876		mkdir "$total_dir" ||
37877		as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5
37878		;;
37879	    esac
37880	done; }
37881
37882	if test -d ./$subdir_dir; then :;
37883	else
37884	    as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
37885	fi
37886	;;
37887    esac
37888
37889    #
37890    # Move into the target directory
37891    #
37892
37893    subdir_parent=`pwd`
37894    cd $subdir_dir
37895
37896    #
37897    # Make a "../" for each directory in $subdir_dir.
37898    #
37899
37900    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
37901    #
37902    # Construct the --srcdir argument
37903    #
37904
37905    case $srcdir in
37906    .)
37907	# In place
37908	subdir_srcdir="$srcdir"
37909	;;
37910    [\\/]* | ?:[\\/]* )
37911	# Absolute path
37912	subdir_srcdir="$srcdir/$subdir_dir"
37913	;;
37914    *)
37915	# Relative path
37916	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
37917	;;
37918    esac
37919
37920    #
37921    # Construct the --cache-file argument
37922    #
37923
37924    # BWB - subdir caching is a pain since we change CFLAGS and all that.
37925    # Just disable it for now
37926    subdir_cache_file="/dev/null"
37927
37928    #
37929    # Invoke the configure script in the subdirectory
37930    #
37931
37932    sub_configure="$SHELL '$subdir_srcdir/configure'"
37933    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
37934$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
37935    eval "$sub_configure $subdir_args \
37936	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
37937    if test "$?" = "0"; then
37938	eval $subdir_success
37939	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
37940$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
37941    else
37942	eval $subdir_failure
37943	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
37944$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
37945    fi
37946
37947    #
37948    # Go back to the topdir
37949    #
37950
37951    cd $subdir_parent
37952fi
37953
37954#
37955# Clean up
37956#
37957
37958
37959    # Unwind the index
37960    pmix_scope_index=`expr $pmix_scope_index - 1`
37961    pmix_scope_test=`expr $pmix_scope_index \> 0`
37962    if test "$pmix_scope_test" = "0"; then
37963        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
37964$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
37965        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
37966$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
37967        as_fn_error $? "Cannot continue" "$LINENO" 5
37968    fi
37969
37970    # Get the variable names from that index
37971    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
37972    eval $pmix_str
37973
37974    # Iterate over all the variables and unset them all
37975    for pmix_var in $pmix_str; do
37976        unset $pmix_var
37977    done
37978
37979                pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build"
37980            fi
37981
37982            if test "$should_build" = "1" ; then
37983                # do some extra work to pass flags back from the
37984                # top-level configure, the way a configure.m4
37985                # component would.
37986                infile="$srcdir/src/mca/common/all_components/post_configure.sh"
37987                if test -f $infile; then
37988
37989                    # First check for the ABORT tag
37990                    line="`$GREP ABORT= $infile | cut -d= -f2-`"
37991                    if test -n "$line" && test "$line" != "no"; then
37992                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
37993$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
37994                        as_fn_error $? "cannot continue" "$LINENO" 5
37995                    fi
37996
37997                    line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
37998                            eval "line=$line"
37999                            if test -n "$line"; then
38000                                all_components_static_components_WRAPPER_EXTRA_LDFLAGS="$line"
38001                            fi
38002                        line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
38003                            eval "line=$line"
38004                            if test -n "$line"; then
38005                                all_components_static_components_WRAPPER_EXTRA_LIBS="$line"
38006                            fi
38007                                        fi
38008
38009
38010
38011
38012    # See if it dropped an output file for us to pick up some
38013    # shell variables in.
38014    infile="$srcdir/src/mca/common/$component/post_configure.sh"
38015
38016    # Add this subdir to the mast list of all MCA component subdirs
38017    all_components="$all_components $component"
38018
38019    if test "$compile_mode" = "dso" ; then
38020        dso_components="$dso_components $component"
38021    else
38022        if test "common" = "common"; then
38023            # Static libraries in "common" frameworks are installed, and
38024            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
38025            # set.
38026            static_ltlibs="mca/common/$component/lib${PMIX_LIB_PREFIX}mca_common_$component.la $static_ltlibs"
38027        else
38028            # Other frameworks do not have to obey the
38029            # $FRAMEWORK_LIB_PREFIX prefix.
38030            static_ltlibs="mca/common/$component/libmca_common_$component.la $static_ltlibs"
38031        fi
38032        echo "extern const pmix_mca_base_component_t mca_common_$component_component;" >> $outfile.extern
38033        echo "  &mca_common_$component_component, " >> $outfile.struct
38034        static_components="$static_components $component"
38035    fi
38036
38037    # Output pretty results
38038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:$component can compile" >&5
38039$as_echo_n "checking if MCA component common:$component can compile... " >&6; }
38040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38041$as_echo "yes" >&6; }
38042
38043                        if test -f $infile; then
38044        # check for direct call header to include.  This will be
38045        # AC_SUBSTed later.
38046        if test "$DIRECT_common" = "$component" ; then
38047            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
38048                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
38049                str="MCA_pmix_common_DIRECT_CALL_HEADER=$line"
38050                eval $str
38051            else
38052as_fn_error $? "*** common component $component was supposed to be direct-called, but
38053*** does not appear to support direct calling.
38054*** Aborting" "$LINENO" 5
38055            fi
38056        fi
38057    else
38058        # were we supposed to have found something in the
38059        # post_configure.sh, but the file didn't exist?
38060        if test "$DIRECT_common" = "$component" ; then
38061as_fn_error $? "*** common component $component was supposed to be direct-called, but
38062*** does not appear to support direct calling.
38063*** Aborting" "$LINENO" 5
38064        fi
38065    fi
38066
38067    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
38068    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
38069    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
38070    # component didn't have it's own configure script (in which case,
38071    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
38072    # have to do this if the component is building dynamically,
38073    # because it will link against these (without a dependency from
38074    # libmpi.so to these flags)
38075    if test "$compile_mode" = "static"; then
38076        str="line=\$common_$component_WRAPPER_EXTRA_LDFLAGS"
38077                      eval "$str"
38078
38079
38080
38081    # Is the private index set?  If not, set it.
38082    if test "x$pmix_scope_index" = "x"; then
38083        pmix_scope_index=1
38084    fi
38085
38086    # First, check to see if any of these variables are already set.
38087    # This is a simple sanity check to ensure we're not already
38088    # overwriting pre-existing variables (that have a non-empty
38089    # value).  It's not a perfect check, but at least it's something.
38090    for pmix_var in pmix_tmp pmix_append; do
38091        pmix_str="pmix_str=\"\$$pmix_var\""
38092        eval $pmix_str
38093
38094        if test "x$pmix_str" != "x"; then
38095            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
38096$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
38097            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
38098$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
38099            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
38100$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
38101            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38102$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38103            as_fn_error $? "Cannot continue" "$LINENO" 5
38104        fi
38105    done
38106
38107    # Ok, we passed the simple sanity check.  Save all these names so
38108    # that we can unset them at the end of the scope.
38109    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
38110    eval $pmix_str
38111    unset pmix_str
38112
38113    env | grep pmix_scope
38114    pmix_scope_index=`expr $pmix_scope_index + 1`
38115
38116
38117    for arg in $line; do
38118        pmix_tmp=`echo $arg | cut -c1-2`
38119        pmix_append=1
38120        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
38121  for val in ${mca_wrapper_extra_ldflags}; do
38122                   if test "x$val" = "x$arg"; then :
38123  pmix_append=0
38124fi
38125               done
38126fi
38127        if test "$pmix_append" = "1"; then :
38128  if test -z "$mca_wrapper_extra_ldflags"; then :
38129  mca_wrapper_extra_ldflags=$arg
38130else
38131  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
38132fi
38133fi
38134    done
38135
38136
38137    # Unwind the index
38138    pmix_scope_index=`expr $pmix_scope_index - 1`
38139    pmix_scope_test=`expr $pmix_scope_index \> 0`
38140    if test "$pmix_scope_test" = "0"; then
38141        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
38142$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
38143        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38144$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38145        as_fn_error $? "Cannot continue" "$LINENO" 5
38146    fi
38147
38148    # Get the variable names from that index
38149    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
38150    eval $pmix_str
38151
38152    # Iterate over all the variables and unset them all
38153    for pmix_var in $pmix_str; do
38154        unset $pmix_var
38155    done
38156
38157str="line=\$common_$component_WRAPPER_EXTRA_LIBS"
38158                      eval "$str"
38159
38160
38161
38162    # Is the private index set?  If not, set it.
38163    if test "x$pmix_scope_index" = "x"; then
38164        pmix_scope_index=1
38165    fi
38166
38167    # First, check to see if any of these variables are already set.
38168    # This is a simple sanity check to ensure we're not already
38169    # overwriting pre-existing variables (that have a non-empty
38170    # value).  It's not a perfect check, but at least it's something.
38171    for pmix_var in pmix_tmp pmix_append; do
38172        pmix_str="pmix_str=\"\$$pmix_var\""
38173        eval $pmix_str
38174
38175        if test "x$pmix_str" != "x"; then
38176            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
38177$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
38178            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
38179$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
38180            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
38181$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
38182            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38183$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38184            as_fn_error $? "Cannot continue" "$LINENO" 5
38185        fi
38186    done
38187
38188    # Ok, we passed the simple sanity check.  Save all these names so
38189    # that we can unset them at the end of the scope.
38190    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
38191    eval $pmix_str
38192    unset pmix_str
38193
38194    env | grep pmix_scope
38195    pmix_scope_index=`expr $pmix_scope_index + 1`
38196
38197
38198    for arg in $line; do
38199        pmix_tmp=`echo $arg | cut -c1-2`
38200        pmix_append=1
38201        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
38202  for val in ${mca_wrapper_extra_libs}; do
38203                   if test "x$val" = "x$arg"; then :
38204  pmix_append=0
38205fi
38206               done
38207fi
38208        if test "$pmix_append" = "1"; then :
38209  if test -z "$mca_wrapper_extra_libs"; then :
38210  mca_wrapper_extra_libs=$arg
38211else
38212  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
38213fi
38214fi
38215    done
38216
38217
38218    # Unwind the index
38219    pmix_scope_index=`expr $pmix_scope_index - 1`
38220    pmix_scope_test=`expr $pmix_scope_index \> 0`
38221    if test "$pmix_scope_test" = "0"; then
38222        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
38223$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
38224        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38225$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38226        as_fn_error $? "Cannot continue" "$LINENO" 5
38227    fi
38228
38229    # Get the variable names from that index
38230    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
38231    eval $pmix_str
38232
38233    # Iterate over all the variables and unset them all
38234    for pmix_var in $pmix_str; do
38235        unset $pmix_var
38236    done
38237
38238
38239    fi
38240
38241    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
38242    # component can never be used in a STOP_AT_FIRST framework, we
38243    # don't have to implement the else clause in the literal check...
38244
38245
38246            else
38247
38248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component common:$component can compile" >&5
38249$as_echo_n "checking if MCA component common:$component can compile... " >&6; }
38250    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38251$as_echo "no" >&6; }
38252
38253    # If this component was requested as the default for this
38254    # type, then abort.
38255    if test "$with_common" = "$component" ; then
38256        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
38257$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
38258        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
38259$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
38260        as_fn_error $? "Cannot continue" "$LINENO" 5
38261    fi
38262
38263    if test ! -z "$DIRECT_common" ; then
38264        if test "$DIRECT_common" = "$component" ; then
38265            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
38266$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
38267            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
38268$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
38269            as_fn_error $? "Cannot continue" "$LINENO" 5
38270        fi
38271    fi
38272
38273            fi
38274        fi
38275    done
38276
38277fi
38278
38279    MCA_pmix_common_ALL_COMPONENTS="$all_components"
38280    MCA_pmix_common_STATIC_COMPONENTS="$static_components"
38281    MCA_pmix_common_DSO_COMPONENTS="$dso_components"
38282    MCA_pmix_common_STATIC_LTLIBS="$static_ltlibs"
38283
38284
38285
38286
38287
38288
38289
38290    MCA_pmix_common_ALL_SUBDIRS=
38291    for item in $all_components ; do
38292       MCA_pmix_common_ALL_SUBDIRS="$MCA_pmix_common_ALL_SUBDIRS mca/common/$item"
38293    done
38294
38295
38296
38297    MCA_pmix_common_STATIC_SUBDIRS=
38298    for item in $static_components ; do
38299       MCA_pmix_common_STATIC_SUBDIRS="$MCA_pmix_common_STATIC_SUBDIRS mca/common/$item"
38300    done
38301
38302
38303
38304    MCA_pmix_common_DSO_SUBDIRS=
38305    for item in $dso_components ; do
38306       MCA_pmix_common_DSO_SUBDIRS="$MCA_pmix_common_DSO_SUBDIRS mca/common/$item"
38307    done
38308
38309
38310
38311    # Create the final .h file that will be included in the type's
38312    # top-level glue.  This lists all the static components.  We don't
38313    # need to do this for "common".
38314    if test "common" != "common"; then
38315        cat > $outfile <<EOF
38316/*
38317 * \$HEADER\$
38318 */
38319#if defined(c_plusplus) || defined(__cplusplus)
38320extern "C" {
38321#endif
38322
38323`cat $outfile.extern`
38324
38325const pmix_mca_base_component_t *mca_common_base_static_components[] = {
38326`cat $outfile.struct`
38327  NULL
38328};
38329
38330#if defined(c_plusplus) || defined(__cplusplus)
38331}
38332#endif
38333
38334EOF
38335        # Only replace the header file if a) it doesn't previously
38336        # exist, or b) the contents are different.  Do this to not
38337        # trigger recompilation of certain .c files just because the
38338        # timestamp changed on $outfile_real (similar to the way AC
38339        # handles AC_CONFIG_HEADER files).
38340        diff $outfile $outfile_real > /dev/null 2>&1
38341        if test "$?" != "0"; then
38342            mv $outfile $outfile_real
38343        else
38344            rm -f $outfile
38345        fi
38346    fi
38347    rm -f $outfile.struct $outfile.extern
38348
38349    unset all_components static_components dso_components outfile outfile_real
38350
38351                                 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS bfrops"
38352                                 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/bfrops"
38353                                 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_bfrops_ALL_SUBDIRS)"
38354                                 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_bfrops_DSO_SUBDIRS)"
38355                                 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_bfrops_STATIC_SUBDIRS)"
38356                                 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/bfrops/libmca_bfrops.la"
38357                          MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_bfrops_STATIC_LTLIBS)"
38358
38359    pmix_show_subsubtitle "Configuring MCA framework bfrops"
38360
38361
38362
38363
38364    # setup for framework
38365    all_components=
38366    static_components=
38367    dso_components=
38368    static_ltlibs=
38369
38370    # Ensure that the directory where the #include file is to live
38371    # exists.  Need to do this for VPATH builds, because the directory
38372    # may not exist yet.  For the "common" type, it's not really a
38373    # component, so it doesn't have a base.
38374    outdir=src/mca/bfrops/base
38375    as_dir=$outdir; as_fn_mkdir_p
38376
38377    # emit Makefile rule
38378    ac_config_files="$ac_config_files src/mca/bfrops/Makefile"
38379
38380
38381    # remove any previously generated #include files
38382    outfile_real=$outdir/static-components.h
38383    outfile=$outfile_real.new
38384    rm -f $outfile $outfile.struct $outfile.extern
38385    touch $outfile.struct $outfile.extern
38386
38387    # print some nice messages about what we're about to do...
38388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework bfrops" >&5
38389$as_echo_n "checking for no configure components in framework bfrops... " >&6; }
38390    { $as_echo "$as_me:${as_lineno-$LINENO}: result: v12, v20, v21" >&5
38391$as_echo "v12, v20, v21" >&6; }
38392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework bfrops" >&5
38393$as_echo_n "checking for m4 configure components in framework bfrops... " >&6; }
38394    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
38395$as_echo "" >&6; }
38396
38397    # If there are components in the no configure list, but we're
38398    # doing one of the "special" selection logics, abort with a
38399    # reasonable message.
38400
38401
38402
38403    # run the configure logic for the no-config components
38404
38405    pmix_show_subsubsubtitle "MCA component bfrops:v12 (no configuration)"
38406
38407    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1"
38408
38409
38410
38411    component_path="$srcdir/src/mca/bfrops/v12"
38412    want_component=0
38413
38414    # build if:
38415    # - the component type is direct and we are that component
38416    # - there is no pmix_ignore file
38417    # - there is an pmix_ignore, but there is an empty pmix_unignore
38418    # - there is an pmix_ignore, but username is in pmix_unignore
38419    if test -d $component_path ; then
38420        # decide if we want the component to be built or not.  This
38421        # is spread out because some of the logic is a little complex
38422        # and test's syntax isn't exactly the greatest.  We want to
38423        # build the component by default.
38424        want_component=1
38425        if test -f $component_path/.pmix_ignore ; then
38426            # If there is an pmix_ignore file, don't build
38427            # the component.  Note that this decision can be
38428            # overridden by the unignore logic below.
38429            want_component=0
38430        fi
38431        if test -f $component_path/.pmix_unignore ; then
38432            # if there is an empty pmix_unignore, that is
38433            # equivalent to having your userid in the unignore file.
38434            # If userid is in the file, unignore the ignore file.
38435            if test ! -s $component_path/.pmix_unignore ; then
38436                want_component=1
38437            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
38438                want_component=1
38439            fi
38440        fi
38441        # if this component type is direct and we are not it, we don't want
38442        # to be built.  Otherwise, we do want to be built.
38443        if test ! -z "$DIRECT_bfrops" ; then
38444            if test "$DIRECT_bfrops" = "v12" ; then
38445                want_component=1
38446            else
38447                want_component=0
38448            fi
38449        fi
38450    fi
38451
38452    # if we were explicitly disabled, don't build :)
38453    if test "$DISABLE_bfrops" = "1"; then :
38454  want_component=0
38455fi
38456    if test "$DISABLE_bfrops_v12" = "1"; then :
38457  want_component=0
38458fi
38459
38460    if test "$want_component" = "1"; then :
38461  should_build=1
38462else
38463  should_build=0
38464fi
38465
38466
38467    SHARED_FRAMEWORK="$DSO_bfrops"
38468    SHARED_COMPONENT="$DSO_bfrops_v12"
38469
38470    STATIC_FRAMEWORK="$STATIC_bfrops"
38471    STATIC_COMPONENT="$STATIC_bfrops_v12"
38472
38473    shared_mode_override=static
38474
38475    # Setup for either shared or static
38476    if test "$STATIC_FRAMEWORK" = "1" || \
38477       test "$STATIC_COMPONENT" = "1" || \
38478       test "$STATIC_all" = "1" ; then
38479        compile_mode="static"
38480    elif test "$shared_mode_override" = "dso" || \
38481         test "$SHARED_FRAMEWORK" = "1" || \
38482         test "$SHARED_COMPONENT" = "1" || \
38483         test "$DSO_all" = "1"; then
38484        compile_mode="dso"
38485    else
38486        compile_mode="static"
38487    fi
38488
38489    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component bfrops:v12 compile mode" >&5
38490$as_echo_n "checking for MCA component bfrops:v12 compile mode... " >&6; }
38491    if test "$DIRECT_bfrops" = "v12" ; then
38492        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
38493$as_echo "$compile_mode - direct" >&6; }
38494    else
38495        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
38496$as_echo "$compile_mode" >&6; }
38497    fi
38498
38499    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build"
38500
38501    if test "$should_build" = "1" ; then
38502
38503
38504
38505    # See if it dropped an output file for us to pick up some
38506    # shell variables in.
38507    infile="$srcdir/src/mca/bfrops/v12/post_configure.sh"
38508
38509    # Add this subdir to the mast list of all MCA component subdirs
38510    all_components="$all_components v12"
38511
38512    if test "$compile_mode" = "dso" ; then
38513        dso_components="$dso_components v12"
38514    else
38515        if test "bfrops" = "common"; then
38516            # Static libraries in "common" frameworks are installed, and
38517            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
38518            # set.
38519            static_ltlibs="mca/bfrops/v12/lib${PMIX_LIB_PREFIX}mca_bfrops_v12.la $static_ltlibs"
38520        else
38521            # Other frameworks do not have to obey the
38522            # $FRAMEWORK_LIB_PREFIX prefix.
38523            static_ltlibs="mca/bfrops/v12/libmca_bfrops_v12.la $static_ltlibs"
38524        fi
38525        echo "extern const pmix_mca_base_component_t mca_bfrops_v12_component;" >> $outfile.extern
38526        echo "  &mca_bfrops_v12_component, " >> $outfile.struct
38527        static_components="$static_components v12"
38528    fi
38529
38530    # Output pretty results
38531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v12 can compile" >&5
38532$as_echo_n "checking if MCA component bfrops:v12 can compile... " >&6; }
38533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38534$as_echo "yes" >&6; }
38535
38536                        if test -f $infile; then
38537        # check for direct call header to include.  This will be
38538        # AC_SUBSTed later.
38539        if test "$DIRECT_bfrops" = "v12" ; then
38540            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
38541                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
38542                str="MCA_pmix_bfrops_DIRECT_CALL_HEADER=$line"
38543                eval $str
38544            else
38545as_fn_error $? "*** bfrops component v12 was supposed to be direct-called, but
38546*** does not appear to support direct calling.
38547*** Aborting" "$LINENO" 5
38548            fi
38549        fi
38550    else
38551        # were we supposed to have found something in the
38552        # post_configure.sh, but the file didn't exist?
38553        if test "$DIRECT_bfrops" = "v12" ; then
38554as_fn_error $? "*** bfrops component v12 was supposed to be direct-called, but
38555*** does not appear to support direct calling.
38556*** Aborting" "$LINENO" 5
38557        fi
38558    fi
38559
38560    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
38561    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
38562    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
38563    # component didn't have it's own configure script (in which case,
38564    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
38565    # have to do this if the component is building dynamically,
38566    # because it will link against these (without a dependency from
38567    # libmpi.so to these flags)
38568    if test "$compile_mode" = "static"; then
38569        if test "$bfrops_v12_WRAPPER_EXTRA_LDFLAGS" = ""; then :
38570
38571
38572
38573    # Is the private index set?  If not, set it.
38574    if test "x$pmix_scope_index" = "x"; then
38575        pmix_scope_index=1
38576    fi
38577
38578    # First, check to see if any of these variables are already set.
38579    # This is a simple sanity check to ensure we're not already
38580    # overwriting pre-existing variables (that have a non-empty
38581    # value).  It's not a perfect check, but at least it's something.
38582    for pmix_var in pmix_tmp pmix_append; do
38583        pmix_str="pmix_str=\"\$$pmix_var\""
38584        eval $pmix_str
38585
38586        if test "x$pmix_str" != "x"; then
38587            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
38588$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
38589            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
38590$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
38591            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
38592$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
38593            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38594$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38595            as_fn_error $? "Cannot continue" "$LINENO" 5
38596        fi
38597    done
38598
38599    # Ok, we passed the simple sanity check.  Save all these names so
38600    # that we can unset them at the end of the scope.
38601    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
38602    eval $pmix_str
38603    unset pmix_str
38604
38605    env | grep pmix_scope
38606    pmix_scope_index=`expr $pmix_scope_index + 1`
38607
38608
38609    for arg in $bfrops_v12_LDFLAGS; do
38610        pmix_tmp=`echo $arg | cut -c1-2`
38611        pmix_append=1
38612        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
38613  for val in ${mca_wrapper_extra_ldflags}; do
38614                   if test "x$val" = "x$arg"; then :
38615  pmix_append=0
38616fi
38617               done
38618fi
38619        if test "$pmix_append" = "1"; then :
38620  if test -z "$mca_wrapper_extra_ldflags"; then :
38621  mca_wrapper_extra_ldflags=$arg
38622else
38623  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
38624fi
38625fi
38626    done
38627
38628
38629    # Unwind the index
38630    pmix_scope_index=`expr $pmix_scope_index - 1`
38631    pmix_scope_test=`expr $pmix_scope_index \> 0`
38632    if test "$pmix_scope_test" = "0"; then
38633        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
38634$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
38635        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38636$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38637        as_fn_error $? "Cannot continue" "$LINENO" 5
38638    fi
38639
38640    # Get the variable names from that index
38641    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
38642    eval $pmix_str
38643
38644    # Iterate over all the variables and unset them all
38645    for pmix_var in $pmix_str; do
38646        unset $pmix_var
38647    done
38648
38649
38650else
38651
38652
38653
38654    # Is the private index set?  If not, set it.
38655    if test "x$pmix_scope_index" = "x"; then
38656        pmix_scope_index=1
38657    fi
38658
38659    # First, check to see if any of these variables are already set.
38660    # This is a simple sanity check to ensure we're not already
38661    # overwriting pre-existing variables (that have a non-empty
38662    # value).  It's not a perfect check, but at least it's something.
38663    for pmix_var in pmix_tmp pmix_append; do
38664        pmix_str="pmix_str=\"\$$pmix_var\""
38665        eval $pmix_str
38666
38667        if test "x$pmix_str" != "x"; then
38668            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
38669$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
38670            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
38671$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
38672            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
38673$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
38674            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38675$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38676            as_fn_error $? "Cannot continue" "$LINENO" 5
38677        fi
38678    done
38679
38680    # Ok, we passed the simple sanity check.  Save all these names so
38681    # that we can unset them at the end of the scope.
38682    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
38683    eval $pmix_str
38684    unset pmix_str
38685
38686    env | grep pmix_scope
38687    pmix_scope_index=`expr $pmix_scope_index + 1`
38688
38689
38690    for arg in $bfrops_v12_WRAPPER_EXTRA_LDFLAGS; do
38691        pmix_tmp=`echo $arg | cut -c1-2`
38692        pmix_append=1
38693        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
38694  for val in ${mca_wrapper_extra_ldflags}; do
38695                   if test "x$val" = "x$arg"; then :
38696  pmix_append=0
38697fi
38698               done
38699fi
38700        if test "$pmix_append" = "1"; then :
38701  if test -z "$mca_wrapper_extra_ldflags"; then :
38702  mca_wrapper_extra_ldflags=$arg
38703else
38704  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
38705fi
38706fi
38707    done
38708
38709
38710    # Unwind the index
38711    pmix_scope_index=`expr $pmix_scope_index - 1`
38712    pmix_scope_test=`expr $pmix_scope_index \> 0`
38713    if test "$pmix_scope_test" = "0"; then
38714        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
38715$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
38716        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38717$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38718        as_fn_error $? "Cannot continue" "$LINENO" 5
38719    fi
38720
38721    # Get the variable names from that index
38722    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
38723    eval $pmix_str
38724
38725    # Iterate over all the variables and unset them all
38726    for pmix_var in $pmix_str; do
38727        unset $pmix_var
38728    done
38729
38730
38731fi
38732                        if test "$bfrops_v12_WRAPPER_EXTRA_LIBS" = ""; then :
38733
38734
38735
38736    # Is the private index set?  If not, set it.
38737    if test "x$pmix_scope_index" = "x"; then
38738        pmix_scope_index=1
38739    fi
38740
38741    # First, check to see if any of these variables are already set.
38742    # This is a simple sanity check to ensure we're not already
38743    # overwriting pre-existing variables (that have a non-empty
38744    # value).  It's not a perfect check, but at least it's something.
38745    for pmix_var in pmix_tmp pmix_append; do
38746        pmix_str="pmix_str=\"\$$pmix_var\""
38747        eval $pmix_str
38748
38749        if test "x$pmix_str" != "x"; then
38750            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
38751$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
38752            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
38753$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
38754            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
38755$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
38756            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38757$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38758            as_fn_error $? "Cannot continue" "$LINENO" 5
38759        fi
38760    done
38761
38762    # Ok, we passed the simple sanity check.  Save all these names so
38763    # that we can unset them at the end of the scope.
38764    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
38765    eval $pmix_str
38766    unset pmix_str
38767
38768    env | grep pmix_scope
38769    pmix_scope_index=`expr $pmix_scope_index + 1`
38770
38771
38772    for arg in $bfrops_v12_LIBS; do
38773        pmix_tmp=`echo $arg | cut -c1-2`
38774        pmix_append=1
38775        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
38776  for val in ${mca_wrapper_extra_libs}; do
38777                   if test "x$val" = "x$arg"; then :
38778  pmix_append=0
38779fi
38780               done
38781fi
38782        if test "$pmix_append" = "1"; then :
38783  if test -z "$mca_wrapper_extra_libs"; then :
38784  mca_wrapper_extra_libs=$arg
38785else
38786  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
38787fi
38788fi
38789    done
38790
38791
38792    # Unwind the index
38793    pmix_scope_index=`expr $pmix_scope_index - 1`
38794    pmix_scope_test=`expr $pmix_scope_index \> 0`
38795    if test "$pmix_scope_test" = "0"; then
38796        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
38797$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
38798        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38799$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38800        as_fn_error $? "Cannot continue" "$LINENO" 5
38801    fi
38802
38803    # Get the variable names from that index
38804    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
38805    eval $pmix_str
38806
38807    # Iterate over all the variables and unset them all
38808    for pmix_var in $pmix_str; do
38809        unset $pmix_var
38810    done
38811
38812
38813else
38814
38815
38816
38817    # Is the private index set?  If not, set it.
38818    if test "x$pmix_scope_index" = "x"; then
38819        pmix_scope_index=1
38820    fi
38821
38822    # First, check to see if any of these variables are already set.
38823    # This is a simple sanity check to ensure we're not already
38824    # overwriting pre-existing variables (that have a non-empty
38825    # value).  It's not a perfect check, but at least it's something.
38826    for pmix_var in pmix_tmp pmix_append; do
38827        pmix_str="pmix_str=\"\$$pmix_var\""
38828        eval $pmix_str
38829
38830        if test "x$pmix_str" != "x"; then
38831            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
38832$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
38833            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
38834$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
38835            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
38836$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
38837            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38838$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38839            as_fn_error $? "Cannot continue" "$LINENO" 5
38840        fi
38841    done
38842
38843    # Ok, we passed the simple sanity check.  Save all these names so
38844    # that we can unset them at the end of the scope.
38845    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
38846    eval $pmix_str
38847    unset pmix_str
38848
38849    env | grep pmix_scope
38850    pmix_scope_index=`expr $pmix_scope_index + 1`
38851
38852
38853    for arg in $bfrops_v12_WRAPPER_EXTRA_LIBS; do
38854        pmix_tmp=`echo $arg | cut -c1-2`
38855        pmix_append=1
38856        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
38857  for val in ${mca_wrapper_extra_libs}; do
38858                   if test "x$val" = "x$arg"; then :
38859  pmix_append=0
38860fi
38861               done
38862fi
38863        if test "$pmix_append" = "1"; then :
38864  if test -z "$mca_wrapper_extra_libs"; then :
38865  mca_wrapper_extra_libs=$arg
38866else
38867  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
38868fi
38869fi
38870    done
38871
38872
38873    # Unwind the index
38874    pmix_scope_index=`expr $pmix_scope_index - 1`
38875    pmix_scope_test=`expr $pmix_scope_index \> 0`
38876    if test "$pmix_scope_test" = "0"; then
38877        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
38878$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
38879        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38880$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38881        as_fn_error $? "Cannot continue" "$LINENO" 5
38882    fi
38883
38884    # Get the variable names from that index
38885    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
38886    eval $pmix_str
38887
38888    # Iterate over all the variables and unset them all
38889    for pmix_var in $pmix_str; do
38890        unset $pmix_var
38891    done
38892
38893
38894fi
38895
38896    fi
38897
38898    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
38899    # component can never be used in a STOP_AT_FIRST framework, we
38900    # don't have to implement the else clause in the literal check...
38901    if test "$bfrops_v12_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
38902  stop_at_first=0
38903            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
38904  if test "$with_devel_headers" = "yes"; then :
38905
38906
38907
38908    # Is the private index set?  If not, set it.
38909    if test "x$pmix_scope_index" = "x"; then
38910        pmix_scope_index=1
38911    fi
38912
38913    # First, check to see if any of these variables are already set.
38914    # This is a simple sanity check to ensure we're not already
38915    # overwriting pre-existing variables (that have a non-empty
38916    # value).  It's not a perfect check, but at least it's something.
38917    for pmix_var in pmix_tmp pmix_append; do
38918        pmix_str="pmix_str=\"\$$pmix_var\""
38919        eval $pmix_str
38920
38921        if test "x$pmix_str" != "x"; then
38922            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
38923$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
38924            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
38925$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
38926            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
38927$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
38928            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38929$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38930            as_fn_error $? "Cannot continue" "$LINENO" 5
38931        fi
38932    done
38933
38934    # Ok, we passed the simple sanity check.  Save all these names so
38935    # that we can unset them at the end of the scope.
38936    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
38937    eval $pmix_str
38938    unset pmix_str
38939
38940    env | grep pmix_scope
38941    pmix_scope_index=`expr $pmix_scope_index + 1`
38942
38943
38944    for arg in $bfrops_v12_WRAPPER_EXTRA_CPPFLAGS; do
38945        pmix_tmp=`echo $arg | cut -c1-2`
38946        pmix_append=1
38947        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
38948  for val in ${mca_wrapper_extra_cppflags}; do
38949                   if test "x$val" = "x$arg"; then :
38950  pmix_append=0
38951fi
38952               done
38953fi
38954        if test "$pmix_append" = "1"; then :
38955  if test -z "$mca_wrapper_extra_cppflags"; then :
38956  mca_wrapper_extra_cppflags=$arg
38957else
38958  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
38959fi
38960fi
38961    done
38962
38963
38964    # Unwind the index
38965    pmix_scope_index=`expr $pmix_scope_index - 1`
38966    pmix_scope_test=`expr $pmix_scope_index \> 0`
38967    if test "$pmix_scope_test" = "0"; then
38968        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
38969$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
38970        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
38971$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
38972        as_fn_error $? "Cannot continue" "$LINENO" 5
38973    fi
38974
38975    # Get the variable names from that index
38976    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
38977    eval $pmix_str
38978
38979    # Iterate over all the variables and unset them all
38980    for pmix_var in $pmix_str; do
38981        unset $pmix_var
38982    done
38983
38984
38985fi
38986else
38987  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring bfrops_v12_WRAPPER_EXTRA_CPPFLAGS ($bfrops_v12_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
38988$as_echo "$as_me: WARNING: ignoring bfrops_v12_WRAPPER_EXTRA_CPPFLAGS ($bfrops_v12_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
38989fi
38990fi
38991
38992    else
38993
38994    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v12 can compile" >&5
38995$as_echo_n "checking if MCA component bfrops:v12 can compile... " >&6; }
38996    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38997$as_echo "no" >&6; }
38998
38999    # If this component was requested as the default for this
39000    # type, then abort.
39001    if test "$with_bfrops" = "v12" ; then
39002        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v12\" failed to configure properly" >&5
39003$as_echo "$as_me: WARNING: MCA component \"v12\" failed to configure properly" >&2;}
39004        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
39005$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
39006        as_fn_error $? "Cannot continue" "$LINENO" 5
39007    fi
39008
39009    if test ! -z "$DIRECT_bfrops" ; then
39010        if test "$DIRECT_bfrops" = "v12" ; then
39011            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v12\" failed to configure properly" >&5
39012$as_echo "$as_me: WARNING: MCA component \"v12\" failed to configure properly" >&2;}
39013            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
39014$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
39015            as_fn_error $? "Cannot continue" "$LINENO" 5
39016        fi
39017    fi
39018
39019        # add component to all component list
39020        all_components="$all_components v12"
39021    fi
39022
39023    # set the AM_CONDITIONAL on how we should build
39024    if test "$compile_mode" = "dso" ; then
39025        BUILD_pmix_bfrops_v12_DSO=1
39026    else
39027        BUILD_pmix_bfrops_v12_DSO=0
39028    fi
39029     if test "$BUILD_pmix_bfrops_v12_DSO" = "1"; then
39030  MCA_BUILD_pmix_bfrops_v12_DSO_TRUE=
39031  MCA_BUILD_pmix_bfrops_v12_DSO_FALSE='#'
39032else
39033  MCA_BUILD_pmix_bfrops_v12_DSO_TRUE='#'
39034  MCA_BUILD_pmix_bfrops_v12_DSO_FALSE=
39035fi
39036
39037
39038    ac_config_files="$ac_config_files src/mca/bfrops/v12/Makefile"
39039
39040
39041    unset compile_mode
39042
39043    pmix_show_subsubsubtitle "MCA component bfrops:v20 (no configuration)"
39044
39045    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1"
39046
39047
39048
39049    component_path="$srcdir/src/mca/bfrops/v20"
39050    want_component=0
39051
39052    # build if:
39053    # - the component type is direct and we are that component
39054    # - there is no pmix_ignore file
39055    # - there is an pmix_ignore, but there is an empty pmix_unignore
39056    # - there is an pmix_ignore, but username is in pmix_unignore
39057    if test -d $component_path ; then
39058        # decide if we want the component to be built or not.  This
39059        # is spread out because some of the logic is a little complex
39060        # and test's syntax isn't exactly the greatest.  We want to
39061        # build the component by default.
39062        want_component=1
39063        if test -f $component_path/.pmix_ignore ; then
39064            # If there is an pmix_ignore file, don't build
39065            # the component.  Note that this decision can be
39066            # overridden by the unignore logic below.
39067            want_component=0
39068        fi
39069        if test -f $component_path/.pmix_unignore ; then
39070            # if there is an empty pmix_unignore, that is
39071            # equivalent to having your userid in the unignore file.
39072            # If userid is in the file, unignore the ignore file.
39073            if test ! -s $component_path/.pmix_unignore ; then
39074                want_component=1
39075            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
39076                want_component=1
39077            fi
39078        fi
39079        # if this component type is direct and we are not it, we don't want
39080        # to be built.  Otherwise, we do want to be built.
39081        if test ! -z "$DIRECT_bfrops" ; then
39082            if test "$DIRECT_bfrops" = "v20" ; then
39083                want_component=1
39084            else
39085                want_component=0
39086            fi
39087        fi
39088    fi
39089
39090    # if we were explicitly disabled, don't build :)
39091    if test "$DISABLE_bfrops" = "1"; then :
39092  want_component=0
39093fi
39094    if test "$DISABLE_bfrops_v20" = "1"; then :
39095  want_component=0
39096fi
39097
39098    if test "$want_component" = "1"; then :
39099  should_build=1
39100else
39101  should_build=0
39102fi
39103
39104
39105    SHARED_FRAMEWORK="$DSO_bfrops"
39106    SHARED_COMPONENT="$DSO_bfrops_v20"
39107
39108    STATIC_FRAMEWORK="$STATIC_bfrops"
39109    STATIC_COMPONENT="$STATIC_bfrops_v20"
39110
39111    shared_mode_override=static
39112
39113    # Setup for either shared or static
39114    if test "$STATIC_FRAMEWORK" = "1" || \
39115       test "$STATIC_COMPONENT" = "1" || \
39116       test "$STATIC_all" = "1" ; then
39117        compile_mode="static"
39118    elif test "$shared_mode_override" = "dso" || \
39119         test "$SHARED_FRAMEWORK" = "1" || \
39120         test "$SHARED_COMPONENT" = "1" || \
39121         test "$DSO_all" = "1"; then
39122        compile_mode="dso"
39123    else
39124        compile_mode="static"
39125    fi
39126
39127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component bfrops:v20 compile mode" >&5
39128$as_echo_n "checking for MCA component bfrops:v20 compile mode... " >&6; }
39129    if test "$DIRECT_bfrops" = "v20" ; then
39130        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
39131$as_echo "$compile_mode - direct" >&6; }
39132    else
39133        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
39134$as_echo "$compile_mode" >&6; }
39135    fi
39136
39137    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build"
39138
39139    if test "$should_build" = "1" ; then
39140
39141
39142
39143    # See if it dropped an output file for us to pick up some
39144    # shell variables in.
39145    infile="$srcdir/src/mca/bfrops/v20/post_configure.sh"
39146
39147    # Add this subdir to the mast list of all MCA component subdirs
39148    all_components="$all_components v20"
39149
39150    if test "$compile_mode" = "dso" ; then
39151        dso_components="$dso_components v20"
39152    else
39153        if test "bfrops" = "common"; then
39154            # Static libraries in "common" frameworks are installed, and
39155            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
39156            # set.
39157            static_ltlibs="mca/bfrops/v20/lib${PMIX_LIB_PREFIX}mca_bfrops_v20.la $static_ltlibs"
39158        else
39159            # Other frameworks do not have to obey the
39160            # $FRAMEWORK_LIB_PREFIX prefix.
39161            static_ltlibs="mca/bfrops/v20/libmca_bfrops_v20.la $static_ltlibs"
39162        fi
39163        echo "extern const pmix_mca_base_component_t mca_bfrops_v20_component;" >> $outfile.extern
39164        echo "  &mca_bfrops_v20_component, " >> $outfile.struct
39165        static_components="$static_components v20"
39166    fi
39167
39168    # Output pretty results
39169    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v20 can compile" >&5
39170$as_echo_n "checking if MCA component bfrops:v20 can compile... " >&6; }
39171    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39172$as_echo "yes" >&6; }
39173
39174                        if test -f $infile; then
39175        # check for direct call header to include.  This will be
39176        # AC_SUBSTed later.
39177        if test "$DIRECT_bfrops" = "v20" ; then
39178            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
39179                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
39180                str="MCA_pmix_bfrops_DIRECT_CALL_HEADER=$line"
39181                eval $str
39182            else
39183as_fn_error $? "*** bfrops component v20 was supposed to be direct-called, but
39184*** does not appear to support direct calling.
39185*** Aborting" "$LINENO" 5
39186            fi
39187        fi
39188    else
39189        # were we supposed to have found something in the
39190        # post_configure.sh, but the file didn't exist?
39191        if test "$DIRECT_bfrops" = "v20" ; then
39192as_fn_error $? "*** bfrops component v20 was supposed to be direct-called, but
39193*** does not appear to support direct calling.
39194*** Aborting" "$LINENO" 5
39195        fi
39196    fi
39197
39198    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
39199    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
39200    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
39201    # component didn't have it's own configure script (in which case,
39202    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
39203    # have to do this if the component is building dynamically,
39204    # because it will link against these (without a dependency from
39205    # libmpi.so to these flags)
39206    if test "$compile_mode" = "static"; then
39207        if test "$bfrops_v20_WRAPPER_EXTRA_LDFLAGS" = ""; then :
39208
39209
39210
39211    # Is the private index set?  If not, set it.
39212    if test "x$pmix_scope_index" = "x"; then
39213        pmix_scope_index=1
39214    fi
39215
39216    # First, check to see if any of these variables are already set.
39217    # This is a simple sanity check to ensure we're not already
39218    # overwriting pre-existing variables (that have a non-empty
39219    # value).  It's not a perfect check, but at least it's something.
39220    for pmix_var in pmix_tmp pmix_append; do
39221        pmix_str="pmix_str=\"\$$pmix_var\""
39222        eval $pmix_str
39223
39224        if test "x$pmix_str" != "x"; then
39225            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
39226$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
39227            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
39228$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
39229            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
39230$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
39231            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39232$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39233            as_fn_error $? "Cannot continue" "$LINENO" 5
39234        fi
39235    done
39236
39237    # Ok, we passed the simple sanity check.  Save all these names so
39238    # that we can unset them at the end of the scope.
39239    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
39240    eval $pmix_str
39241    unset pmix_str
39242
39243    env | grep pmix_scope
39244    pmix_scope_index=`expr $pmix_scope_index + 1`
39245
39246
39247    for arg in $bfrops_v20_LDFLAGS; do
39248        pmix_tmp=`echo $arg | cut -c1-2`
39249        pmix_append=1
39250        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
39251  for val in ${mca_wrapper_extra_ldflags}; do
39252                   if test "x$val" = "x$arg"; then :
39253  pmix_append=0
39254fi
39255               done
39256fi
39257        if test "$pmix_append" = "1"; then :
39258  if test -z "$mca_wrapper_extra_ldflags"; then :
39259  mca_wrapper_extra_ldflags=$arg
39260else
39261  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
39262fi
39263fi
39264    done
39265
39266
39267    # Unwind the index
39268    pmix_scope_index=`expr $pmix_scope_index - 1`
39269    pmix_scope_test=`expr $pmix_scope_index \> 0`
39270    if test "$pmix_scope_test" = "0"; then
39271        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
39272$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
39273        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39274$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39275        as_fn_error $? "Cannot continue" "$LINENO" 5
39276    fi
39277
39278    # Get the variable names from that index
39279    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
39280    eval $pmix_str
39281
39282    # Iterate over all the variables and unset them all
39283    for pmix_var in $pmix_str; do
39284        unset $pmix_var
39285    done
39286
39287
39288else
39289
39290
39291
39292    # Is the private index set?  If not, set it.
39293    if test "x$pmix_scope_index" = "x"; then
39294        pmix_scope_index=1
39295    fi
39296
39297    # First, check to see if any of these variables are already set.
39298    # This is a simple sanity check to ensure we're not already
39299    # overwriting pre-existing variables (that have a non-empty
39300    # value).  It's not a perfect check, but at least it's something.
39301    for pmix_var in pmix_tmp pmix_append; do
39302        pmix_str="pmix_str=\"\$$pmix_var\""
39303        eval $pmix_str
39304
39305        if test "x$pmix_str" != "x"; then
39306            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
39307$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
39308            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
39309$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
39310            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
39311$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
39312            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39313$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39314            as_fn_error $? "Cannot continue" "$LINENO" 5
39315        fi
39316    done
39317
39318    # Ok, we passed the simple sanity check.  Save all these names so
39319    # that we can unset them at the end of the scope.
39320    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
39321    eval $pmix_str
39322    unset pmix_str
39323
39324    env | grep pmix_scope
39325    pmix_scope_index=`expr $pmix_scope_index + 1`
39326
39327
39328    for arg in $bfrops_v20_WRAPPER_EXTRA_LDFLAGS; do
39329        pmix_tmp=`echo $arg | cut -c1-2`
39330        pmix_append=1
39331        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
39332  for val in ${mca_wrapper_extra_ldflags}; do
39333                   if test "x$val" = "x$arg"; then :
39334  pmix_append=0
39335fi
39336               done
39337fi
39338        if test "$pmix_append" = "1"; then :
39339  if test -z "$mca_wrapper_extra_ldflags"; then :
39340  mca_wrapper_extra_ldflags=$arg
39341else
39342  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
39343fi
39344fi
39345    done
39346
39347
39348    # Unwind the index
39349    pmix_scope_index=`expr $pmix_scope_index - 1`
39350    pmix_scope_test=`expr $pmix_scope_index \> 0`
39351    if test "$pmix_scope_test" = "0"; then
39352        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
39353$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
39354        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39355$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39356        as_fn_error $? "Cannot continue" "$LINENO" 5
39357    fi
39358
39359    # Get the variable names from that index
39360    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
39361    eval $pmix_str
39362
39363    # Iterate over all the variables and unset them all
39364    for pmix_var in $pmix_str; do
39365        unset $pmix_var
39366    done
39367
39368
39369fi
39370                        if test "$bfrops_v20_WRAPPER_EXTRA_LIBS" = ""; then :
39371
39372
39373
39374    # Is the private index set?  If not, set it.
39375    if test "x$pmix_scope_index" = "x"; then
39376        pmix_scope_index=1
39377    fi
39378
39379    # First, check to see if any of these variables are already set.
39380    # This is a simple sanity check to ensure we're not already
39381    # overwriting pre-existing variables (that have a non-empty
39382    # value).  It's not a perfect check, but at least it's something.
39383    for pmix_var in pmix_tmp pmix_append; do
39384        pmix_str="pmix_str=\"\$$pmix_var\""
39385        eval $pmix_str
39386
39387        if test "x$pmix_str" != "x"; then
39388            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
39389$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
39390            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
39391$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
39392            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
39393$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
39394            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39395$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39396            as_fn_error $? "Cannot continue" "$LINENO" 5
39397        fi
39398    done
39399
39400    # Ok, we passed the simple sanity check.  Save all these names so
39401    # that we can unset them at the end of the scope.
39402    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
39403    eval $pmix_str
39404    unset pmix_str
39405
39406    env | grep pmix_scope
39407    pmix_scope_index=`expr $pmix_scope_index + 1`
39408
39409
39410    for arg in $bfrops_v20_LIBS; do
39411        pmix_tmp=`echo $arg | cut -c1-2`
39412        pmix_append=1
39413        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
39414  for val in ${mca_wrapper_extra_libs}; do
39415                   if test "x$val" = "x$arg"; then :
39416  pmix_append=0
39417fi
39418               done
39419fi
39420        if test "$pmix_append" = "1"; then :
39421  if test -z "$mca_wrapper_extra_libs"; then :
39422  mca_wrapper_extra_libs=$arg
39423else
39424  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
39425fi
39426fi
39427    done
39428
39429
39430    # Unwind the index
39431    pmix_scope_index=`expr $pmix_scope_index - 1`
39432    pmix_scope_test=`expr $pmix_scope_index \> 0`
39433    if test "$pmix_scope_test" = "0"; then
39434        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
39435$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
39436        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39437$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39438        as_fn_error $? "Cannot continue" "$LINENO" 5
39439    fi
39440
39441    # Get the variable names from that index
39442    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
39443    eval $pmix_str
39444
39445    # Iterate over all the variables and unset them all
39446    for pmix_var in $pmix_str; do
39447        unset $pmix_var
39448    done
39449
39450
39451else
39452
39453
39454
39455    # Is the private index set?  If not, set it.
39456    if test "x$pmix_scope_index" = "x"; then
39457        pmix_scope_index=1
39458    fi
39459
39460    # First, check to see if any of these variables are already set.
39461    # This is a simple sanity check to ensure we're not already
39462    # overwriting pre-existing variables (that have a non-empty
39463    # value).  It's not a perfect check, but at least it's something.
39464    for pmix_var in pmix_tmp pmix_append; do
39465        pmix_str="pmix_str=\"\$$pmix_var\""
39466        eval $pmix_str
39467
39468        if test "x$pmix_str" != "x"; then
39469            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
39470$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
39471            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
39472$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
39473            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
39474$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
39475            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39476$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39477            as_fn_error $? "Cannot continue" "$LINENO" 5
39478        fi
39479    done
39480
39481    # Ok, we passed the simple sanity check.  Save all these names so
39482    # that we can unset them at the end of the scope.
39483    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
39484    eval $pmix_str
39485    unset pmix_str
39486
39487    env | grep pmix_scope
39488    pmix_scope_index=`expr $pmix_scope_index + 1`
39489
39490
39491    for arg in $bfrops_v20_WRAPPER_EXTRA_LIBS; do
39492        pmix_tmp=`echo $arg | cut -c1-2`
39493        pmix_append=1
39494        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
39495  for val in ${mca_wrapper_extra_libs}; do
39496                   if test "x$val" = "x$arg"; then :
39497  pmix_append=0
39498fi
39499               done
39500fi
39501        if test "$pmix_append" = "1"; then :
39502  if test -z "$mca_wrapper_extra_libs"; then :
39503  mca_wrapper_extra_libs=$arg
39504else
39505  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
39506fi
39507fi
39508    done
39509
39510
39511    # Unwind the index
39512    pmix_scope_index=`expr $pmix_scope_index - 1`
39513    pmix_scope_test=`expr $pmix_scope_index \> 0`
39514    if test "$pmix_scope_test" = "0"; then
39515        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
39516$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
39517        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39518$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39519        as_fn_error $? "Cannot continue" "$LINENO" 5
39520    fi
39521
39522    # Get the variable names from that index
39523    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
39524    eval $pmix_str
39525
39526    # Iterate over all the variables and unset them all
39527    for pmix_var in $pmix_str; do
39528        unset $pmix_var
39529    done
39530
39531
39532fi
39533
39534    fi
39535
39536    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
39537    # component can never be used in a STOP_AT_FIRST framework, we
39538    # don't have to implement the else clause in the literal check...
39539    if test "$bfrops_v20_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
39540  stop_at_first=0
39541            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
39542  if test "$with_devel_headers" = "yes"; then :
39543
39544
39545
39546    # Is the private index set?  If not, set it.
39547    if test "x$pmix_scope_index" = "x"; then
39548        pmix_scope_index=1
39549    fi
39550
39551    # First, check to see if any of these variables are already set.
39552    # This is a simple sanity check to ensure we're not already
39553    # overwriting pre-existing variables (that have a non-empty
39554    # value).  It's not a perfect check, but at least it's something.
39555    for pmix_var in pmix_tmp pmix_append; do
39556        pmix_str="pmix_str=\"\$$pmix_var\""
39557        eval $pmix_str
39558
39559        if test "x$pmix_str" != "x"; then
39560            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
39561$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
39562            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
39563$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
39564            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
39565$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
39566            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39567$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39568            as_fn_error $? "Cannot continue" "$LINENO" 5
39569        fi
39570    done
39571
39572    # Ok, we passed the simple sanity check.  Save all these names so
39573    # that we can unset them at the end of the scope.
39574    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
39575    eval $pmix_str
39576    unset pmix_str
39577
39578    env | grep pmix_scope
39579    pmix_scope_index=`expr $pmix_scope_index + 1`
39580
39581
39582    for arg in $bfrops_v20_WRAPPER_EXTRA_CPPFLAGS; do
39583        pmix_tmp=`echo $arg | cut -c1-2`
39584        pmix_append=1
39585        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
39586  for val in ${mca_wrapper_extra_cppflags}; do
39587                   if test "x$val" = "x$arg"; then :
39588  pmix_append=0
39589fi
39590               done
39591fi
39592        if test "$pmix_append" = "1"; then :
39593  if test -z "$mca_wrapper_extra_cppflags"; then :
39594  mca_wrapper_extra_cppflags=$arg
39595else
39596  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
39597fi
39598fi
39599    done
39600
39601
39602    # Unwind the index
39603    pmix_scope_index=`expr $pmix_scope_index - 1`
39604    pmix_scope_test=`expr $pmix_scope_index \> 0`
39605    if test "$pmix_scope_test" = "0"; then
39606        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
39607$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
39608        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39609$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39610        as_fn_error $? "Cannot continue" "$LINENO" 5
39611    fi
39612
39613    # Get the variable names from that index
39614    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
39615    eval $pmix_str
39616
39617    # Iterate over all the variables and unset them all
39618    for pmix_var in $pmix_str; do
39619        unset $pmix_var
39620    done
39621
39622
39623fi
39624else
39625  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring bfrops_v20_WRAPPER_EXTRA_CPPFLAGS ($bfrops_v20_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
39626$as_echo "$as_me: WARNING: ignoring bfrops_v20_WRAPPER_EXTRA_CPPFLAGS ($bfrops_v20_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
39627fi
39628fi
39629
39630    else
39631
39632    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v20 can compile" >&5
39633$as_echo_n "checking if MCA component bfrops:v20 can compile... " >&6; }
39634    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39635$as_echo "no" >&6; }
39636
39637    # If this component was requested as the default for this
39638    # type, then abort.
39639    if test "$with_bfrops" = "v20" ; then
39640        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v20\" failed to configure properly" >&5
39641$as_echo "$as_me: WARNING: MCA component \"v20\" failed to configure properly" >&2;}
39642        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
39643$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
39644        as_fn_error $? "Cannot continue" "$LINENO" 5
39645    fi
39646
39647    if test ! -z "$DIRECT_bfrops" ; then
39648        if test "$DIRECT_bfrops" = "v20" ; then
39649            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v20\" failed to configure properly" >&5
39650$as_echo "$as_me: WARNING: MCA component \"v20\" failed to configure properly" >&2;}
39651            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
39652$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
39653            as_fn_error $? "Cannot continue" "$LINENO" 5
39654        fi
39655    fi
39656
39657        # add component to all component list
39658        all_components="$all_components v20"
39659    fi
39660
39661    # set the AM_CONDITIONAL on how we should build
39662    if test "$compile_mode" = "dso" ; then
39663        BUILD_pmix_bfrops_v20_DSO=1
39664    else
39665        BUILD_pmix_bfrops_v20_DSO=0
39666    fi
39667     if test "$BUILD_pmix_bfrops_v20_DSO" = "1"; then
39668  MCA_BUILD_pmix_bfrops_v20_DSO_TRUE=
39669  MCA_BUILD_pmix_bfrops_v20_DSO_FALSE='#'
39670else
39671  MCA_BUILD_pmix_bfrops_v20_DSO_TRUE='#'
39672  MCA_BUILD_pmix_bfrops_v20_DSO_FALSE=
39673fi
39674
39675
39676    ac_config_files="$ac_config_files src/mca/bfrops/v20/Makefile"
39677
39678
39679    unset compile_mode
39680
39681    pmix_show_subsubsubtitle "MCA component bfrops:v21 (no configuration)"
39682
39683    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1"
39684
39685
39686
39687    component_path="$srcdir/src/mca/bfrops/v21"
39688    want_component=0
39689
39690    # build if:
39691    # - the component type is direct and we are that component
39692    # - there is no pmix_ignore file
39693    # - there is an pmix_ignore, but there is an empty pmix_unignore
39694    # - there is an pmix_ignore, but username is in pmix_unignore
39695    if test -d $component_path ; then
39696        # decide if we want the component to be built or not.  This
39697        # is spread out because some of the logic is a little complex
39698        # and test's syntax isn't exactly the greatest.  We want to
39699        # build the component by default.
39700        want_component=1
39701        if test -f $component_path/.pmix_ignore ; then
39702            # If there is an pmix_ignore file, don't build
39703            # the component.  Note that this decision can be
39704            # overridden by the unignore logic below.
39705            want_component=0
39706        fi
39707        if test -f $component_path/.pmix_unignore ; then
39708            # if there is an empty pmix_unignore, that is
39709            # equivalent to having your userid in the unignore file.
39710            # If userid is in the file, unignore the ignore file.
39711            if test ! -s $component_path/.pmix_unignore ; then
39712                want_component=1
39713            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
39714                want_component=1
39715            fi
39716        fi
39717        # if this component type is direct and we are not it, we don't want
39718        # to be built.  Otherwise, we do want to be built.
39719        if test ! -z "$DIRECT_bfrops" ; then
39720            if test "$DIRECT_bfrops" = "v21" ; then
39721                want_component=1
39722            else
39723                want_component=0
39724            fi
39725        fi
39726    fi
39727
39728    # if we were explicitly disabled, don't build :)
39729    if test "$DISABLE_bfrops" = "1"; then :
39730  want_component=0
39731fi
39732    if test "$DISABLE_bfrops_v21" = "1"; then :
39733  want_component=0
39734fi
39735
39736    if test "$want_component" = "1"; then :
39737  should_build=1
39738else
39739  should_build=0
39740fi
39741
39742
39743    SHARED_FRAMEWORK="$DSO_bfrops"
39744    SHARED_COMPONENT="$DSO_bfrops_v21"
39745
39746    STATIC_FRAMEWORK="$STATIC_bfrops"
39747    STATIC_COMPONENT="$STATIC_bfrops_v21"
39748
39749    shared_mode_override=static
39750
39751    # Setup for either shared or static
39752    if test "$STATIC_FRAMEWORK" = "1" || \
39753       test "$STATIC_COMPONENT" = "1" || \
39754       test "$STATIC_all" = "1" ; then
39755        compile_mode="static"
39756    elif test "$shared_mode_override" = "dso" || \
39757         test "$SHARED_FRAMEWORK" = "1" || \
39758         test "$SHARED_COMPONENT" = "1" || \
39759         test "$DSO_all" = "1"; then
39760        compile_mode="dso"
39761    else
39762        compile_mode="static"
39763    fi
39764
39765    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component bfrops:v21 compile mode" >&5
39766$as_echo_n "checking for MCA component bfrops:v21 compile mode... " >&6; }
39767    if test "$DIRECT_bfrops" = "v21" ; then
39768        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
39769$as_echo "$compile_mode - direct" >&6; }
39770    else
39771        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
39772$as_echo "$compile_mode" >&6; }
39773    fi
39774
39775    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build"
39776
39777    if test "$should_build" = "1" ; then
39778
39779
39780
39781    # See if it dropped an output file for us to pick up some
39782    # shell variables in.
39783    infile="$srcdir/src/mca/bfrops/v21/post_configure.sh"
39784
39785    # Add this subdir to the mast list of all MCA component subdirs
39786    all_components="$all_components v21"
39787
39788    if test "$compile_mode" = "dso" ; then
39789        dso_components="$dso_components v21"
39790    else
39791        if test "bfrops" = "common"; then
39792            # Static libraries in "common" frameworks are installed, and
39793            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
39794            # set.
39795            static_ltlibs="mca/bfrops/v21/lib${PMIX_LIB_PREFIX}mca_bfrops_v21.la $static_ltlibs"
39796        else
39797            # Other frameworks do not have to obey the
39798            # $FRAMEWORK_LIB_PREFIX prefix.
39799            static_ltlibs="mca/bfrops/v21/libmca_bfrops_v21.la $static_ltlibs"
39800        fi
39801        echo "extern const pmix_mca_base_component_t mca_bfrops_v21_component;" >> $outfile.extern
39802        echo "  &mca_bfrops_v21_component, " >> $outfile.struct
39803        static_components="$static_components v21"
39804    fi
39805
39806    # Output pretty results
39807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v21 can compile" >&5
39808$as_echo_n "checking if MCA component bfrops:v21 can compile... " >&6; }
39809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39810$as_echo "yes" >&6; }
39811
39812                        if test -f $infile; then
39813        # check for direct call header to include.  This will be
39814        # AC_SUBSTed later.
39815        if test "$DIRECT_bfrops" = "v21" ; then
39816            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
39817                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
39818                str="MCA_pmix_bfrops_DIRECT_CALL_HEADER=$line"
39819                eval $str
39820            else
39821as_fn_error $? "*** bfrops component v21 was supposed to be direct-called, but
39822*** does not appear to support direct calling.
39823*** Aborting" "$LINENO" 5
39824            fi
39825        fi
39826    else
39827        # were we supposed to have found something in the
39828        # post_configure.sh, but the file didn't exist?
39829        if test "$DIRECT_bfrops" = "v21" ; then
39830as_fn_error $? "*** bfrops component v21 was supposed to be direct-called, but
39831*** does not appear to support direct calling.
39832*** Aborting" "$LINENO" 5
39833        fi
39834    fi
39835
39836    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
39837    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
39838    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
39839    # component didn't have it's own configure script (in which case,
39840    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
39841    # have to do this if the component is building dynamically,
39842    # because it will link against these (without a dependency from
39843    # libmpi.so to these flags)
39844    if test "$compile_mode" = "static"; then
39845        if test "$bfrops_v21_WRAPPER_EXTRA_LDFLAGS" = ""; then :
39846
39847
39848
39849    # Is the private index set?  If not, set it.
39850    if test "x$pmix_scope_index" = "x"; then
39851        pmix_scope_index=1
39852    fi
39853
39854    # First, check to see if any of these variables are already set.
39855    # This is a simple sanity check to ensure we're not already
39856    # overwriting pre-existing variables (that have a non-empty
39857    # value).  It's not a perfect check, but at least it's something.
39858    for pmix_var in pmix_tmp pmix_append; do
39859        pmix_str="pmix_str=\"\$$pmix_var\""
39860        eval $pmix_str
39861
39862        if test "x$pmix_str" != "x"; then
39863            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
39864$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
39865            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
39866$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
39867            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
39868$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
39869            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39870$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39871            as_fn_error $? "Cannot continue" "$LINENO" 5
39872        fi
39873    done
39874
39875    # Ok, we passed the simple sanity check.  Save all these names so
39876    # that we can unset them at the end of the scope.
39877    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
39878    eval $pmix_str
39879    unset pmix_str
39880
39881    env | grep pmix_scope
39882    pmix_scope_index=`expr $pmix_scope_index + 1`
39883
39884
39885    for arg in $bfrops_v21_LDFLAGS; do
39886        pmix_tmp=`echo $arg | cut -c1-2`
39887        pmix_append=1
39888        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
39889  for val in ${mca_wrapper_extra_ldflags}; do
39890                   if test "x$val" = "x$arg"; then :
39891  pmix_append=0
39892fi
39893               done
39894fi
39895        if test "$pmix_append" = "1"; then :
39896  if test -z "$mca_wrapper_extra_ldflags"; then :
39897  mca_wrapper_extra_ldflags=$arg
39898else
39899  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
39900fi
39901fi
39902    done
39903
39904
39905    # Unwind the index
39906    pmix_scope_index=`expr $pmix_scope_index - 1`
39907    pmix_scope_test=`expr $pmix_scope_index \> 0`
39908    if test "$pmix_scope_test" = "0"; then
39909        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
39910$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
39911        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39912$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39913        as_fn_error $? "Cannot continue" "$LINENO" 5
39914    fi
39915
39916    # Get the variable names from that index
39917    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
39918    eval $pmix_str
39919
39920    # Iterate over all the variables and unset them all
39921    for pmix_var in $pmix_str; do
39922        unset $pmix_var
39923    done
39924
39925
39926else
39927
39928
39929
39930    # Is the private index set?  If not, set it.
39931    if test "x$pmix_scope_index" = "x"; then
39932        pmix_scope_index=1
39933    fi
39934
39935    # First, check to see if any of these variables are already set.
39936    # This is a simple sanity check to ensure we're not already
39937    # overwriting pre-existing variables (that have a non-empty
39938    # value).  It's not a perfect check, but at least it's something.
39939    for pmix_var in pmix_tmp pmix_append; do
39940        pmix_str="pmix_str=\"\$$pmix_var\""
39941        eval $pmix_str
39942
39943        if test "x$pmix_str" != "x"; then
39944            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
39945$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
39946            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
39947$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
39948            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
39949$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
39950            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39951$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39952            as_fn_error $? "Cannot continue" "$LINENO" 5
39953        fi
39954    done
39955
39956    # Ok, we passed the simple sanity check.  Save all these names so
39957    # that we can unset them at the end of the scope.
39958    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
39959    eval $pmix_str
39960    unset pmix_str
39961
39962    env | grep pmix_scope
39963    pmix_scope_index=`expr $pmix_scope_index + 1`
39964
39965
39966    for arg in $bfrops_v21_WRAPPER_EXTRA_LDFLAGS; do
39967        pmix_tmp=`echo $arg | cut -c1-2`
39968        pmix_append=1
39969        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
39970  for val in ${mca_wrapper_extra_ldflags}; do
39971                   if test "x$val" = "x$arg"; then :
39972  pmix_append=0
39973fi
39974               done
39975fi
39976        if test "$pmix_append" = "1"; then :
39977  if test -z "$mca_wrapper_extra_ldflags"; then :
39978  mca_wrapper_extra_ldflags=$arg
39979else
39980  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
39981fi
39982fi
39983    done
39984
39985
39986    # Unwind the index
39987    pmix_scope_index=`expr $pmix_scope_index - 1`
39988    pmix_scope_test=`expr $pmix_scope_index \> 0`
39989    if test "$pmix_scope_test" = "0"; then
39990        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
39991$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
39992        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
39993$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
39994        as_fn_error $? "Cannot continue" "$LINENO" 5
39995    fi
39996
39997    # Get the variable names from that index
39998    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
39999    eval $pmix_str
40000
40001    # Iterate over all the variables and unset them all
40002    for pmix_var in $pmix_str; do
40003        unset $pmix_var
40004    done
40005
40006
40007fi
40008                        if test "$bfrops_v21_WRAPPER_EXTRA_LIBS" = ""; then :
40009
40010
40011
40012    # Is the private index set?  If not, set it.
40013    if test "x$pmix_scope_index" = "x"; then
40014        pmix_scope_index=1
40015    fi
40016
40017    # First, check to see if any of these variables are already set.
40018    # This is a simple sanity check to ensure we're not already
40019    # overwriting pre-existing variables (that have a non-empty
40020    # value).  It's not a perfect check, but at least it's something.
40021    for pmix_var in pmix_tmp pmix_append; do
40022        pmix_str="pmix_str=\"\$$pmix_var\""
40023        eval $pmix_str
40024
40025        if test "x$pmix_str" != "x"; then
40026            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
40027$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
40028            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
40029$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
40030            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
40031$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
40032            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
40033$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
40034            as_fn_error $? "Cannot continue" "$LINENO" 5
40035        fi
40036    done
40037
40038    # Ok, we passed the simple sanity check.  Save all these names so
40039    # that we can unset them at the end of the scope.
40040    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
40041    eval $pmix_str
40042    unset pmix_str
40043
40044    env | grep pmix_scope
40045    pmix_scope_index=`expr $pmix_scope_index + 1`
40046
40047
40048    for arg in $bfrops_v21_LIBS; do
40049        pmix_tmp=`echo $arg | cut -c1-2`
40050        pmix_append=1
40051        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
40052  for val in ${mca_wrapper_extra_libs}; do
40053                   if test "x$val" = "x$arg"; then :
40054  pmix_append=0
40055fi
40056               done
40057fi
40058        if test "$pmix_append" = "1"; then :
40059  if test -z "$mca_wrapper_extra_libs"; then :
40060  mca_wrapper_extra_libs=$arg
40061else
40062  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
40063fi
40064fi
40065    done
40066
40067
40068    # Unwind the index
40069    pmix_scope_index=`expr $pmix_scope_index - 1`
40070    pmix_scope_test=`expr $pmix_scope_index \> 0`
40071    if test "$pmix_scope_test" = "0"; then
40072        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
40073$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
40074        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
40075$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
40076        as_fn_error $? "Cannot continue" "$LINENO" 5
40077    fi
40078
40079    # Get the variable names from that index
40080    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
40081    eval $pmix_str
40082
40083    # Iterate over all the variables and unset them all
40084    for pmix_var in $pmix_str; do
40085        unset $pmix_var
40086    done
40087
40088
40089else
40090
40091
40092
40093    # Is the private index set?  If not, set it.
40094    if test "x$pmix_scope_index" = "x"; then
40095        pmix_scope_index=1
40096    fi
40097
40098    # First, check to see if any of these variables are already set.
40099    # This is a simple sanity check to ensure we're not already
40100    # overwriting pre-existing variables (that have a non-empty
40101    # value).  It's not a perfect check, but at least it's something.
40102    for pmix_var in pmix_tmp pmix_append; do
40103        pmix_str="pmix_str=\"\$$pmix_var\""
40104        eval $pmix_str
40105
40106        if test "x$pmix_str" != "x"; then
40107            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
40108$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
40109            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
40110$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
40111            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
40112$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
40113            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
40114$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
40115            as_fn_error $? "Cannot continue" "$LINENO" 5
40116        fi
40117    done
40118
40119    # Ok, we passed the simple sanity check.  Save all these names so
40120    # that we can unset them at the end of the scope.
40121    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
40122    eval $pmix_str
40123    unset pmix_str
40124
40125    env | grep pmix_scope
40126    pmix_scope_index=`expr $pmix_scope_index + 1`
40127
40128
40129    for arg in $bfrops_v21_WRAPPER_EXTRA_LIBS; do
40130        pmix_tmp=`echo $arg | cut -c1-2`
40131        pmix_append=1
40132        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
40133  for val in ${mca_wrapper_extra_libs}; do
40134                   if test "x$val" = "x$arg"; then :
40135  pmix_append=0
40136fi
40137               done
40138fi
40139        if test "$pmix_append" = "1"; then :
40140  if test -z "$mca_wrapper_extra_libs"; then :
40141  mca_wrapper_extra_libs=$arg
40142else
40143  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
40144fi
40145fi
40146    done
40147
40148
40149    # Unwind the index
40150    pmix_scope_index=`expr $pmix_scope_index - 1`
40151    pmix_scope_test=`expr $pmix_scope_index \> 0`
40152    if test "$pmix_scope_test" = "0"; then
40153        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
40154$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
40155        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
40156$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
40157        as_fn_error $? "Cannot continue" "$LINENO" 5
40158    fi
40159
40160    # Get the variable names from that index
40161    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
40162    eval $pmix_str
40163
40164    # Iterate over all the variables and unset them all
40165    for pmix_var in $pmix_str; do
40166        unset $pmix_var
40167    done
40168
40169
40170fi
40171
40172    fi
40173
40174    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
40175    # component can never be used in a STOP_AT_FIRST framework, we
40176    # don't have to implement the else clause in the literal check...
40177    if test "$bfrops_v21_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
40178  stop_at_first=0
40179            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
40180  if test "$with_devel_headers" = "yes"; then :
40181
40182
40183
40184    # Is the private index set?  If not, set it.
40185    if test "x$pmix_scope_index" = "x"; then
40186        pmix_scope_index=1
40187    fi
40188
40189    # First, check to see if any of these variables are already set.
40190    # This is a simple sanity check to ensure we're not already
40191    # overwriting pre-existing variables (that have a non-empty
40192    # value).  It's not a perfect check, but at least it's something.
40193    for pmix_var in pmix_tmp pmix_append; do
40194        pmix_str="pmix_str=\"\$$pmix_var\""
40195        eval $pmix_str
40196
40197        if test "x$pmix_str" != "x"; then
40198            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
40199$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
40200            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
40201$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
40202            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
40203$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
40204            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
40205$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
40206            as_fn_error $? "Cannot continue" "$LINENO" 5
40207        fi
40208    done
40209
40210    # Ok, we passed the simple sanity check.  Save all these names so
40211    # that we can unset them at the end of the scope.
40212    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
40213    eval $pmix_str
40214    unset pmix_str
40215
40216    env | grep pmix_scope
40217    pmix_scope_index=`expr $pmix_scope_index + 1`
40218
40219
40220    for arg in $bfrops_v21_WRAPPER_EXTRA_CPPFLAGS; do
40221        pmix_tmp=`echo $arg | cut -c1-2`
40222        pmix_append=1
40223        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
40224  for val in ${mca_wrapper_extra_cppflags}; do
40225                   if test "x$val" = "x$arg"; then :
40226  pmix_append=0
40227fi
40228               done
40229fi
40230        if test "$pmix_append" = "1"; then :
40231  if test -z "$mca_wrapper_extra_cppflags"; then :
40232  mca_wrapper_extra_cppflags=$arg
40233else
40234  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
40235fi
40236fi
40237    done
40238
40239
40240    # Unwind the index
40241    pmix_scope_index=`expr $pmix_scope_index - 1`
40242    pmix_scope_test=`expr $pmix_scope_index \> 0`
40243    if test "$pmix_scope_test" = "0"; then
40244        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
40245$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
40246        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
40247$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
40248        as_fn_error $? "Cannot continue" "$LINENO" 5
40249    fi
40250
40251    # Get the variable names from that index
40252    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
40253    eval $pmix_str
40254
40255    # Iterate over all the variables and unset them all
40256    for pmix_var in $pmix_str; do
40257        unset $pmix_var
40258    done
40259
40260
40261fi
40262else
40263  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring bfrops_v21_WRAPPER_EXTRA_CPPFLAGS ($bfrops_v21_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
40264$as_echo "$as_me: WARNING: ignoring bfrops_v21_WRAPPER_EXTRA_CPPFLAGS ($bfrops_v21_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
40265fi
40266fi
40267
40268    else
40269
40270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:v21 can compile" >&5
40271$as_echo_n "checking if MCA component bfrops:v21 can compile... " >&6; }
40272    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40273$as_echo "no" >&6; }
40274
40275    # If this component was requested as the default for this
40276    # type, then abort.
40277    if test "$with_bfrops" = "v21" ; then
40278        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v21\" failed to configure properly" >&5
40279$as_echo "$as_me: WARNING: MCA component \"v21\" failed to configure properly" >&2;}
40280        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
40281$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
40282        as_fn_error $? "Cannot continue" "$LINENO" 5
40283    fi
40284
40285    if test ! -z "$DIRECT_bfrops" ; then
40286        if test "$DIRECT_bfrops" = "v21" ; then
40287            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"v21\" failed to configure properly" >&5
40288$as_echo "$as_me: WARNING: MCA component \"v21\" failed to configure properly" >&2;}
40289            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
40290$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
40291            as_fn_error $? "Cannot continue" "$LINENO" 5
40292        fi
40293    fi
40294
40295        # add component to all component list
40296        all_components="$all_components v21"
40297    fi
40298
40299    # set the AM_CONDITIONAL on how we should build
40300    if test "$compile_mode" = "dso" ; then
40301        BUILD_pmix_bfrops_v21_DSO=1
40302    else
40303        BUILD_pmix_bfrops_v21_DSO=0
40304    fi
40305     if test "$BUILD_pmix_bfrops_v21_DSO" = "1"; then
40306  MCA_BUILD_pmix_bfrops_v21_DSO_TRUE=
40307  MCA_BUILD_pmix_bfrops_v21_DSO_FALSE='#'
40308else
40309  MCA_BUILD_pmix_bfrops_v21_DSO_TRUE='#'
40310  MCA_BUILD_pmix_bfrops_v21_DSO_FALSE=
40311fi
40312
40313
40314    ac_config_files="$ac_config_files src/mca/bfrops/v21/Makefile"
40315
40316
40317    unset compile_mode
40318
40319
40320    # configure components that use built-in configuration scripts
40321
40322
40323
40324    best_mca_component_priority=0
40325    components_looking_for_succeed=1
40326    components_last_result=0
40327
40328
40329    # configure components that provide their own configure script.
40330    # It would be really hard to run these for "find first that
40331    # works", so we don't :)
40332
40333
40334
40335                  if test "1" != "0"; then :
40336
40337    for component_path in $srcdir/src/mca/bfrops/* ; do
40338        component="`basename $component_path`"
40339        if test -d $component_path && test -x $component_path/configure ; then
40340            pmix_show_subsubsubtitle "MCA component bfrops:$component (need to configure)"
40341
40342            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build="
40343
40344
40345
40346    component_path="$srcdir/src/mca/bfrops/$component"
40347    want_component=0
40348
40349    # build if:
40350    # - the component type is direct and we are that component
40351    # - there is no pmix_ignore file
40352    # - there is an pmix_ignore, but there is an empty pmix_unignore
40353    # - there is an pmix_ignore, but username is in pmix_unignore
40354    if test -d $component_path ; then
40355        # decide if we want the component to be built or not.  This
40356        # is spread out because some of the logic is a little complex
40357        # and test's syntax isn't exactly the greatest.  We want to
40358        # build the component by default.
40359        want_component=1
40360        if test -f $component_path/.pmix_ignore ; then
40361            # If there is an pmix_ignore file, don't build
40362            # the component.  Note that this decision can be
40363            # overridden by the unignore logic below.
40364            want_component=0
40365        fi
40366        if test -f $component_path/.pmix_unignore ; then
40367            # if there is an empty pmix_unignore, that is
40368            # equivalent to having your userid in the unignore file.
40369            # If userid is in the file, unignore the ignore file.
40370            if test ! -s $component_path/.pmix_unignore ; then
40371                want_component=1
40372            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
40373                want_component=1
40374            fi
40375        fi
40376        # if this component type is direct and we are not it, we don't want
40377        # to be built.  Otherwise, we do want to be built.
40378        if test ! -z "$DIRECT_bfrops" ; then
40379            if test "$DIRECT_bfrops" = "$component" ; then
40380                want_component=1
40381            else
40382                want_component=0
40383            fi
40384        fi
40385    fi
40386
40387    # if we were explicitly disabled, don't build :)
40388    if test "$DISABLE_bfrops" = "1"; then :
40389  want_component=0
40390fi
40391    str="DISABLED_COMPONENT_CHECK=\$DISABLE_bfrops_$component"
40392         eval $str
40393         if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
40394             want_component=0
40395         fi
40396
40397    if test "$want_component" = "1"; then :
40398  should_build=1
40399else
40400  should_build=0
40401fi
40402
40403
40404    SHARED_FRAMEWORK="$DSO_bfrops"
40405    str="SHARED_COMPONENT=\$DSO_bfrops_$component"
40406         eval $str
40407
40408    STATIC_FRAMEWORK="$STATIC_bfrops"
40409    str="STATIC_COMPONENT=\$STATIC_bfrops_$component"
40410         eval $str
40411
40412    shared_mode_override=static
40413
40414    # Setup for either shared or static
40415    if test "$STATIC_FRAMEWORK" = "1" || \
40416       test "$STATIC_COMPONENT" = "1" || \
40417       test "$STATIC_all" = "1" ; then
40418        compile_mode="static"
40419    elif test "$shared_mode_override" = "dso" || \
40420         test "$SHARED_FRAMEWORK" = "1" || \
40421         test "$SHARED_COMPONENT" = "1" || \
40422         test "$DSO_all" = "1"; then
40423        compile_mode="dso"
40424    else
40425        compile_mode="static"
40426    fi
40427
40428    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component bfrops:$component compile mode" >&5
40429$as_echo_n "checking for MCA component bfrops:$component compile mode... " >&6; }
40430    if test "$DIRECT_bfrops" = "$component" ; then
40431        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
40432$as_echo "$compile_mode - direct" >&6; }
40433    else
40434        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
40435$as_echo "$compile_mode" >&6; }
40436    fi
40437
40438            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build"
40439
40440            if test "$should_build" = "1" ; then
40441
40442
40443
40444    # Is the private index set?  If not, set it.
40445    if test "x$pmix_scope_index" = "x"; then
40446        pmix_scope_index=1
40447    fi
40448
40449    # First, check to see if any of these variables are already set.
40450    # This is a simple sanity check to ensure we're not already
40451    # overwriting pre-existing variables (that have a non-empty
40452    # value).  It's not a perfect check, but at least it's something.
40453    for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do
40454        pmix_str="pmix_str=\"\$$pmix_var\""
40455        eval $pmix_str
40456
40457        if test "x$pmix_str" != "x"; then
40458            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
40459$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
40460            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
40461$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
40462            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
40463$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
40464            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
40465$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
40466            as_fn_error $? "Cannot continue" "$LINENO" 5
40467        fi
40468    done
40469
40470    # Ok, we passed the simple sanity check.  Save all these names so
40471    # that we can unset them at the end of the scope.
40472    pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\""
40473    eval $pmix_str
40474    unset pmix_str
40475
40476    env | grep pmix_scope
40477    pmix_scope_index=`expr $pmix_scope_index + 1`
40478
40479
40480#
40481# Invoke configure in a specific subdirectory.
40482#
40483# src/mca/bfrops/$component is the directory to invoke in
40484# $pmix_subdir_args is the list of arguments to pass
40485# should_build=1 is actions to execute upon success
40486# should_build=0 is actions to execute upon failure
40487#
40488subdir_dir="src/mca/bfrops/$component"
40489subdir_args="$pmix_subdir_args"
40490subdir_success="should_build=1"
40491subdir_failure="should_build=0"
40492
40493#
40494# Sanity checks
40495#
40496
40497if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then
40498    { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5
40499$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;}
40500
40501    #
40502    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
40503    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
40504    # into it.
40505    #
40506
40507    case $srcdir in
40508    .)
40509	;;
40510    *)
40511	{ case $subdir_dir in
40512	[\\/]* | ?:[\\/]* ) total_dir=;;
40513	*)                      total_dir=.;;
40514	esac
40515	temp=$subdir_dir
40516	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
40517	    case $dir_part in
40518	    # Skip DOS drivespec
40519	    ?:) total_dir=$dir_part ;;
40520	    *)  total_dir=$total_dir/$dir_part
40521		test -d "$total_dir" ||
40522		mkdir "$total_dir" ||
40523		as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5
40524		;;
40525	    esac
40526	done; }
40527
40528	if test -d ./$subdir_dir; then :;
40529	else
40530	    as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
40531	fi
40532	;;
40533    esac
40534
40535    #
40536    # Move into the target directory
40537    #
40538
40539    subdir_parent=`pwd`
40540    cd $subdir_dir
40541
40542    #
40543    # Make a "../" for each directory in $subdir_dir.
40544    #
40545
40546    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
40547    #
40548    # Construct the --srcdir argument
40549    #
40550
40551    case $srcdir in
40552    .)
40553	# In place
40554	subdir_srcdir="$srcdir"
40555	;;
40556    [\\/]* | ?:[\\/]* )
40557	# Absolute path
40558	subdir_srcdir="$srcdir/$subdir_dir"
40559	;;
40560    *)
40561	# Relative path
40562	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
40563	;;
40564    esac
40565
40566    #
40567    # Construct the --cache-file argument
40568    #
40569
40570    # BWB - subdir caching is a pain since we change CFLAGS and all that.
40571    # Just disable it for now
40572    subdir_cache_file="/dev/null"
40573
40574    #
40575    # Invoke the configure script in the subdirectory
40576    #
40577
40578    sub_configure="$SHELL '$subdir_srcdir/configure'"
40579    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
40580$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
40581    eval "$sub_configure $subdir_args \
40582	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
40583    if test "$?" = "0"; then
40584	eval $subdir_success
40585	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
40586$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
40587    else
40588	eval $subdir_failure
40589	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
40590$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
40591    fi
40592
40593    #
40594    # Go back to the topdir
40595    #
40596
40597    cd $subdir_parent
40598fi
40599
40600#
40601# Clean up
40602#
40603
40604
40605    # Unwind the index
40606    pmix_scope_index=`expr $pmix_scope_index - 1`
40607    pmix_scope_test=`expr $pmix_scope_index \> 0`
40608    if test "$pmix_scope_test" = "0"; then
40609        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
40610$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
40611        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
40612$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
40613        as_fn_error $? "Cannot continue" "$LINENO" 5
40614    fi
40615
40616    # Get the variable names from that index
40617    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
40618    eval $pmix_str
40619
40620    # Iterate over all the variables and unset them all
40621    for pmix_var in $pmix_str; do
40622        unset $pmix_var
40623    done
40624
40625                pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build"
40626            fi
40627
40628            if test "$should_build" = "1" ; then
40629                # do some extra work to pass flags back from the
40630                # top-level configure, the way a configure.m4
40631                # component would.
40632                infile="$srcdir/src/mca/bfrops/all_components/post_configure.sh"
40633                if test -f $infile; then
40634
40635                    # First check for the ABORT tag
40636                    line="`$GREP ABORT= $infile | cut -d= -f2-`"
40637                    if test -n "$line" && test "$line" != "no"; then
40638                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
40639$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
40640                        as_fn_error $? "cannot continue" "$LINENO" 5
40641                    fi
40642
40643                    line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
40644                            eval "line=$line"
40645                            if test -n "$line"; then
40646                                all_components_static_components_WRAPPER_EXTRA_LDFLAGS="$line"
40647                            fi
40648                        line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
40649                            eval "line=$line"
40650                            if test -n "$line"; then
40651                                all_components_static_components_WRAPPER_EXTRA_LIBS="$line"
40652                            fi
40653                                        fi
40654
40655
40656
40657
40658    # See if it dropped an output file for us to pick up some
40659    # shell variables in.
40660    infile="$srcdir/src/mca/bfrops/$component/post_configure.sh"
40661
40662    # Add this subdir to the mast list of all MCA component subdirs
40663    all_components="$all_components $component"
40664
40665    if test "$compile_mode" = "dso" ; then
40666        dso_components="$dso_components $component"
40667    else
40668        if test "bfrops" = "common"; then
40669            # Static libraries in "common" frameworks are installed, and
40670            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
40671            # set.
40672            static_ltlibs="mca/bfrops/$component/lib${PMIX_LIB_PREFIX}mca_bfrops_$component.la $static_ltlibs"
40673        else
40674            # Other frameworks do not have to obey the
40675            # $FRAMEWORK_LIB_PREFIX prefix.
40676            static_ltlibs="mca/bfrops/$component/libmca_bfrops_$component.la $static_ltlibs"
40677        fi
40678        echo "extern const pmix_mca_base_component_t mca_bfrops_$component_component;" >> $outfile.extern
40679        echo "  &mca_bfrops_$component_component, " >> $outfile.struct
40680        static_components="$static_components $component"
40681    fi
40682
40683    # Output pretty results
40684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:$component can compile" >&5
40685$as_echo_n "checking if MCA component bfrops:$component can compile... " >&6; }
40686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40687$as_echo "yes" >&6; }
40688
40689                        if test -f $infile; then
40690        # check for direct call header to include.  This will be
40691        # AC_SUBSTed later.
40692        if test "$DIRECT_bfrops" = "$component" ; then
40693            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
40694                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
40695                str="MCA_pmix_bfrops_DIRECT_CALL_HEADER=$line"
40696                eval $str
40697            else
40698as_fn_error $? "*** bfrops component $component was supposed to be direct-called, but
40699*** does not appear to support direct calling.
40700*** Aborting" "$LINENO" 5
40701            fi
40702        fi
40703    else
40704        # were we supposed to have found something in the
40705        # post_configure.sh, but the file didn't exist?
40706        if test "$DIRECT_bfrops" = "$component" ; then
40707as_fn_error $? "*** bfrops component $component was supposed to be direct-called, but
40708*** does not appear to support direct calling.
40709*** Aborting" "$LINENO" 5
40710        fi
40711    fi
40712
40713    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
40714    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
40715    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
40716    # component didn't have it's own configure script (in which case,
40717    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
40718    # have to do this if the component is building dynamically,
40719    # because it will link against these (without a dependency from
40720    # libmpi.so to these flags)
40721    if test "$compile_mode" = "static"; then
40722        str="line=\$bfrops_$component_WRAPPER_EXTRA_LDFLAGS"
40723                      eval "$str"
40724
40725
40726
40727    # Is the private index set?  If not, set it.
40728    if test "x$pmix_scope_index" = "x"; then
40729        pmix_scope_index=1
40730    fi
40731
40732    # First, check to see if any of these variables are already set.
40733    # This is a simple sanity check to ensure we're not already
40734    # overwriting pre-existing variables (that have a non-empty
40735    # value).  It's not a perfect check, but at least it's something.
40736    for pmix_var in pmix_tmp pmix_append; do
40737        pmix_str="pmix_str=\"\$$pmix_var\""
40738        eval $pmix_str
40739
40740        if test "x$pmix_str" != "x"; then
40741            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
40742$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
40743            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
40744$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
40745            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
40746$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
40747            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
40748$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
40749            as_fn_error $? "Cannot continue" "$LINENO" 5
40750        fi
40751    done
40752
40753    # Ok, we passed the simple sanity check.  Save all these names so
40754    # that we can unset them at the end of the scope.
40755    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
40756    eval $pmix_str
40757    unset pmix_str
40758
40759    env | grep pmix_scope
40760    pmix_scope_index=`expr $pmix_scope_index + 1`
40761
40762
40763    for arg in $line; do
40764        pmix_tmp=`echo $arg | cut -c1-2`
40765        pmix_append=1
40766        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
40767  for val in ${mca_wrapper_extra_ldflags}; do
40768                   if test "x$val" = "x$arg"; then :
40769  pmix_append=0
40770fi
40771               done
40772fi
40773        if test "$pmix_append" = "1"; then :
40774  if test -z "$mca_wrapper_extra_ldflags"; then :
40775  mca_wrapper_extra_ldflags=$arg
40776else
40777  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
40778fi
40779fi
40780    done
40781
40782
40783    # Unwind the index
40784    pmix_scope_index=`expr $pmix_scope_index - 1`
40785    pmix_scope_test=`expr $pmix_scope_index \> 0`
40786    if test "$pmix_scope_test" = "0"; then
40787        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
40788$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
40789        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
40790$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
40791        as_fn_error $? "Cannot continue" "$LINENO" 5
40792    fi
40793
40794    # Get the variable names from that index
40795    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
40796    eval $pmix_str
40797
40798    # Iterate over all the variables and unset them all
40799    for pmix_var in $pmix_str; do
40800        unset $pmix_var
40801    done
40802
40803str="line=\$bfrops_$component_WRAPPER_EXTRA_LIBS"
40804                      eval "$str"
40805
40806
40807
40808    # Is the private index set?  If not, set it.
40809    if test "x$pmix_scope_index" = "x"; then
40810        pmix_scope_index=1
40811    fi
40812
40813    # First, check to see if any of these variables are already set.
40814    # This is a simple sanity check to ensure we're not already
40815    # overwriting pre-existing variables (that have a non-empty
40816    # value).  It's not a perfect check, but at least it's something.
40817    for pmix_var in pmix_tmp pmix_append; do
40818        pmix_str="pmix_str=\"\$$pmix_var\""
40819        eval $pmix_str
40820
40821        if test "x$pmix_str" != "x"; then
40822            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
40823$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
40824            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
40825$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
40826            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
40827$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
40828            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
40829$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
40830            as_fn_error $? "Cannot continue" "$LINENO" 5
40831        fi
40832    done
40833
40834    # Ok, we passed the simple sanity check.  Save all these names so
40835    # that we can unset them at the end of the scope.
40836    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
40837    eval $pmix_str
40838    unset pmix_str
40839
40840    env | grep pmix_scope
40841    pmix_scope_index=`expr $pmix_scope_index + 1`
40842
40843
40844    for arg in $line; do
40845        pmix_tmp=`echo $arg | cut -c1-2`
40846        pmix_append=1
40847        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
40848  for val in ${mca_wrapper_extra_libs}; do
40849                   if test "x$val" = "x$arg"; then :
40850  pmix_append=0
40851fi
40852               done
40853fi
40854        if test "$pmix_append" = "1"; then :
40855  if test -z "$mca_wrapper_extra_libs"; then :
40856  mca_wrapper_extra_libs=$arg
40857else
40858  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
40859fi
40860fi
40861    done
40862
40863
40864    # Unwind the index
40865    pmix_scope_index=`expr $pmix_scope_index - 1`
40866    pmix_scope_test=`expr $pmix_scope_index \> 0`
40867    if test "$pmix_scope_test" = "0"; then
40868        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
40869$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
40870        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
40871$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
40872        as_fn_error $? "Cannot continue" "$LINENO" 5
40873    fi
40874
40875    # Get the variable names from that index
40876    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
40877    eval $pmix_str
40878
40879    # Iterate over all the variables and unset them all
40880    for pmix_var in $pmix_str; do
40881        unset $pmix_var
40882    done
40883
40884
40885    fi
40886
40887    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
40888    # component can never be used in a STOP_AT_FIRST framework, we
40889    # don't have to implement the else clause in the literal check...
40890
40891
40892            else
40893
40894    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component bfrops:$component can compile" >&5
40895$as_echo_n "checking if MCA component bfrops:$component can compile... " >&6; }
40896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40897$as_echo "no" >&6; }
40898
40899    # If this component was requested as the default for this
40900    # type, then abort.
40901    if test "$with_bfrops" = "$component" ; then
40902        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
40903$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
40904        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
40905$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
40906        as_fn_error $? "Cannot continue" "$LINENO" 5
40907    fi
40908
40909    if test ! -z "$DIRECT_bfrops" ; then
40910        if test "$DIRECT_bfrops" = "$component" ; then
40911            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
40912$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
40913            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
40914$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
40915            as_fn_error $? "Cannot continue" "$LINENO" 5
40916        fi
40917    fi
40918
40919            fi
40920        fi
40921    done
40922
40923fi
40924
40925    MCA_pmix_bfrops_ALL_COMPONENTS="$all_components"
40926    MCA_pmix_bfrops_STATIC_COMPONENTS="$static_components"
40927    MCA_pmix_bfrops_DSO_COMPONENTS="$dso_components"
40928    MCA_pmix_bfrops_STATIC_LTLIBS="$static_ltlibs"
40929
40930
40931
40932
40933
40934
40935
40936    MCA_pmix_bfrops_ALL_SUBDIRS=
40937    for item in $all_components ; do
40938       MCA_pmix_bfrops_ALL_SUBDIRS="$MCA_pmix_bfrops_ALL_SUBDIRS mca/bfrops/$item"
40939    done
40940
40941
40942
40943    MCA_pmix_bfrops_STATIC_SUBDIRS=
40944    for item in $static_components ; do
40945       MCA_pmix_bfrops_STATIC_SUBDIRS="$MCA_pmix_bfrops_STATIC_SUBDIRS mca/bfrops/$item"
40946    done
40947
40948
40949
40950    MCA_pmix_bfrops_DSO_SUBDIRS=
40951    for item in $dso_components ; do
40952       MCA_pmix_bfrops_DSO_SUBDIRS="$MCA_pmix_bfrops_DSO_SUBDIRS mca/bfrops/$item"
40953    done
40954
40955
40956
40957    # Create the final .h file that will be included in the type's
40958    # top-level glue.  This lists all the static components.  We don't
40959    # need to do this for "common".
40960    if test "bfrops" != "common"; then
40961        cat > $outfile <<EOF
40962/*
40963 * \$HEADER\$
40964 */
40965#if defined(c_plusplus) || defined(__cplusplus)
40966extern "C" {
40967#endif
40968
40969`cat $outfile.extern`
40970
40971const pmix_mca_base_component_t *mca_bfrops_base_static_components[] = {
40972`cat $outfile.struct`
40973  NULL
40974};
40975
40976#if defined(c_plusplus) || defined(__cplusplus)
40977}
40978#endif
40979
40980EOF
40981        # Only replace the header file if a) it doesn't previously
40982        # exist, or b) the contents are different.  Do this to not
40983        # trigger recompilation of certain .c files just because the
40984        # timestamp changed on $outfile_real (similar to the way AC
40985        # handles AC_CONFIG_HEADER files).
40986        diff $outfile $outfile_real > /dev/null 2>&1
40987        if test "$?" != "0"; then
40988            mv $outfile $outfile_real
40989        else
40990            rm -f $outfile
40991        fi
40992    fi
40993    rm -f $outfile.struct $outfile.extern
40994
40995    unset all_components static_components dso_components outfile outfile_real
40996
40997                                 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS gds"
40998                                 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/gds"
40999                                 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_gds_ALL_SUBDIRS)"
41000                                 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_gds_DSO_SUBDIRS)"
41001                                 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_gds_STATIC_SUBDIRS)"
41002                                 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/gds/libmca_gds.la"
41003                          MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_gds_STATIC_LTLIBS)"
41004
41005    pmix_show_subsubtitle "Configuring MCA framework gds"
41006
41007
41008
41009
41010    # setup for framework
41011    all_components=
41012    static_components=
41013    dso_components=
41014    static_ltlibs=
41015
41016    # Ensure that the directory where the #include file is to live
41017    # exists.  Need to do this for VPATH builds, because the directory
41018    # may not exist yet.  For the "common" type, it's not really a
41019    # component, so it doesn't have a base.
41020    outdir=src/mca/gds/base
41021    as_dir=$outdir; as_fn_mkdir_p
41022
41023    # emit Makefile rule
41024    ac_config_files="$ac_config_files src/mca/gds/Makefile"
41025
41026
41027    # remove any previously generated #include files
41028    outfile_real=$outdir/static-components.h
41029    outfile=$outfile_real.new
41030    rm -f $outfile $outfile.struct $outfile.extern
41031    touch $outfile.struct $outfile.extern
41032
41033    # print some nice messages about what we're about to do...
41034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework gds" >&5
41035$as_echo_n "checking for no configure components in framework gds... " >&6; }
41036    { $as_echo "$as_me:${as_lineno-$LINENO}: result: hash" >&5
41037$as_echo "hash" >&6; }
41038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework gds" >&5
41039$as_echo_n "checking for m4 configure components in framework gds... " >&6; }
41040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ds12, ds21" >&5
41041$as_echo "ds12, ds21" >&6; }
41042
41043    # If there are components in the no configure list, but we're
41044    # doing one of the "special" selection logics, abort with a
41045    # reasonable message.
41046
41047
41048
41049    # run the configure logic for the no-config components
41050
41051    pmix_show_subsubsubtitle "MCA component gds:hash (no configuration)"
41052
41053    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1"
41054
41055
41056
41057    component_path="$srcdir/src/mca/gds/hash"
41058    want_component=0
41059
41060    # build if:
41061    # - the component type is direct and we are that component
41062    # - there is no pmix_ignore file
41063    # - there is an pmix_ignore, but there is an empty pmix_unignore
41064    # - there is an pmix_ignore, but username is in pmix_unignore
41065    if test -d $component_path ; then
41066        # decide if we want the component to be built or not.  This
41067        # is spread out because some of the logic is a little complex
41068        # and test's syntax isn't exactly the greatest.  We want to
41069        # build the component by default.
41070        want_component=1
41071        if test -f $component_path/.pmix_ignore ; then
41072            # If there is an pmix_ignore file, don't build
41073            # the component.  Note that this decision can be
41074            # overridden by the unignore logic below.
41075            want_component=0
41076        fi
41077        if test -f $component_path/.pmix_unignore ; then
41078            # if there is an empty pmix_unignore, that is
41079            # equivalent to having your userid in the unignore file.
41080            # If userid is in the file, unignore the ignore file.
41081            if test ! -s $component_path/.pmix_unignore ; then
41082                want_component=1
41083            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
41084                want_component=1
41085            fi
41086        fi
41087        # if this component type is direct and we are not it, we don't want
41088        # to be built.  Otherwise, we do want to be built.
41089        if test ! -z "$DIRECT_gds" ; then
41090            if test "$DIRECT_gds" = "hash" ; then
41091                want_component=1
41092            else
41093                want_component=0
41094            fi
41095        fi
41096    fi
41097
41098    # if we were explicitly disabled, don't build :)
41099    if test "$DISABLE_gds" = "1"; then :
41100  want_component=0
41101fi
41102    if test "$DISABLE_gds_hash" = "1"; then :
41103  want_component=0
41104fi
41105
41106    if test "$want_component" = "1"; then :
41107  should_build=1
41108else
41109  should_build=0
41110fi
41111
41112
41113    SHARED_FRAMEWORK="$DSO_gds"
41114    SHARED_COMPONENT="$DSO_gds_hash"
41115
41116    STATIC_FRAMEWORK="$STATIC_gds"
41117    STATIC_COMPONENT="$STATIC_gds_hash"
41118
41119    shared_mode_override=static
41120
41121    # Setup for either shared or static
41122    if test "$STATIC_FRAMEWORK" = "1" || \
41123       test "$STATIC_COMPONENT" = "1" || \
41124       test "$STATIC_all" = "1" ; then
41125        compile_mode="static"
41126    elif test "$shared_mode_override" = "dso" || \
41127         test "$SHARED_FRAMEWORK" = "1" || \
41128         test "$SHARED_COMPONENT" = "1" || \
41129         test "$DSO_all" = "1"; then
41130        compile_mode="dso"
41131    else
41132        compile_mode="static"
41133    fi
41134
41135    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component gds:hash compile mode" >&5
41136$as_echo_n "checking for MCA component gds:hash compile mode... " >&6; }
41137    if test "$DIRECT_gds" = "hash" ; then
41138        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
41139$as_echo "$compile_mode - direct" >&6; }
41140    else
41141        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
41142$as_echo "$compile_mode" >&6; }
41143    fi
41144
41145    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build"
41146
41147    if test "$should_build" = "1" ; then
41148
41149
41150
41151    # See if it dropped an output file for us to pick up some
41152    # shell variables in.
41153    infile="$srcdir/src/mca/gds/hash/post_configure.sh"
41154
41155    # Add this subdir to the mast list of all MCA component subdirs
41156    all_components="$all_components hash"
41157
41158    if test "$compile_mode" = "dso" ; then
41159        dso_components="$dso_components hash"
41160    else
41161        if test "gds" = "common"; then
41162            # Static libraries in "common" frameworks are installed, and
41163            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
41164            # set.
41165            static_ltlibs="mca/gds/hash/lib${PMIX_LIB_PREFIX}mca_gds_hash.la $static_ltlibs"
41166        else
41167            # Other frameworks do not have to obey the
41168            # $FRAMEWORK_LIB_PREFIX prefix.
41169            static_ltlibs="mca/gds/hash/libmca_gds_hash.la $static_ltlibs"
41170        fi
41171        echo "extern const pmix_mca_base_component_t mca_gds_hash_component;" >> $outfile.extern
41172        echo "  &mca_gds_hash_component, " >> $outfile.struct
41173        static_components="$static_components hash"
41174    fi
41175
41176    # Output pretty results
41177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:hash can compile" >&5
41178$as_echo_n "checking if MCA component gds:hash can compile... " >&6; }
41179    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41180$as_echo "yes" >&6; }
41181
41182                        if test -f $infile; then
41183        # check for direct call header to include.  This will be
41184        # AC_SUBSTed later.
41185        if test "$DIRECT_gds" = "hash" ; then
41186            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
41187                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
41188                str="MCA_pmix_gds_DIRECT_CALL_HEADER=$line"
41189                eval $str
41190            else
41191as_fn_error $? "*** gds component hash was supposed to be direct-called, but
41192*** does not appear to support direct calling.
41193*** Aborting" "$LINENO" 5
41194            fi
41195        fi
41196    else
41197        # were we supposed to have found something in the
41198        # post_configure.sh, but the file didn't exist?
41199        if test "$DIRECT_gds" = "hash" ; then
41200as_fn_error $? "*** gds component hash was supposed to be direct-called, but
41201*** does not appear to support direct calling.
41202*** Aborting" "$LINENO" 5
41203        fi
41204    fi
41205
41206    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
41207    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
41208    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
41209    # component didn't have it's own configure script (in which case,
41210    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
41211    # have to do this if the component is building dynamically,
41212    # because it will link against these (without a dependency from
41213    # libmpi.so to these flags)
41214    if test "$compile_mode" = "static"; then
41215        if test "$gds_hash_WRAPPER_EXTRA_LDFLAGS" = ""; then :
41216
41217
41218
41219    # Is the private index set?  If not, set it.
41220    if test "x$pmix_scope_index" = "x"; then
41221        pmix_scope_index=1
41222    fi
41223
41224    # First, check to see if any of these variables are already set.
41225    # This is a simple sanity check to ensure we're not already
41226    # overwriting pre-existing variables (that have a non-empty
41227    # value).  It's not a perfect check, but at least it's something.
41228    for pmix_var in pmix_tmp pmix_append; do
41229        pmix_str="pmix_str=\"\$$pmix_var\""
41230        eval $pmix_str
41231
41232        if test "x$pmix_str" != "x"; then
41233            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
41234$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
41235            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
41236$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
41237            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
41238$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
41239            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
41240$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
41241            as_fn_error $? "Cannot continue" "$LINENO" 5
41242        fi
41243    done
41244
41245    # Ok, we passed the simple sanity check.  Save all these names so
41246    # that we can unset them at the end of the scope.
41247    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
41248    eval $pmix_str
41249    unset pmix_str
41250
41251    env | grep pmix_scope
41252    pmix_scope_index=`expr $pmix_scope_index + 1`
41253
41254
41255    for arg in $gds_hash_LDFLAGS; do
41256        pmix_tmp=`echo $arg | cut -c1-2`
41257        pmix_append=1
41258        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
41259  for val in ${mca_wrapper_extra_ldflags}; do
41260                   if test "x$val" = "x$arg"; then :
41261  pmix_append=0
41262fi
41263               done
41264fi
41265        if test "$pmix_append" = "1"; then :
41266  if test -z "$mca_wrapper_extra_ldflags"; then :
41267  mca_wrapper_extra_ldflags=$arg
41268else
41269  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
41270fi
41271fi
41272    done
41273
41274
41275    # Unwind the index
41276    pmix_scope_index=`expr $pmix_scope_index - 1`
41277    pmix_scope_test=`expr $pmix_scope_index \> 0`
41278    if test "$pmix_scope_test" = "0"; then
41279        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
41280$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
41281        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
41282$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
41283        as_fn_error $? "Cannot continue" "$LINENO" 5
41284    fi
41285
41286    # Get the variable names from that index
41287    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
41288    eval $pmix_str
41289
41290    # Iterate over all the variables and unset them all
41291    for pmix_var in $pmix_str; do
41292        unset $pmix_var
41293    done
41294
41295
41296else
41297
41298
41299
41300    # Is the private index set?  If not, set it.
41301    if test "x$pmix_scope_index" = "x"; then
41302        pmix_scope_index=1
41303    fi
41304
41305    # First, check to see if any of these variables are already set.
41306    # This is a simple sanity check to ensure we're not already
41307    # overwriting pre-existing variables (that have a non-empty
41308    # value).  It's not a perfect check, but at least it's something.
41309    for pmix_var in pmix_tmp pmix_append; do
41310        pmix_str="pmix_str=\"\$$pmix_var\""
41311        eval $pmix_str
41312
41313        if test "x$pmix_str" != "x"; then
41314            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
41315$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
41316            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
41317$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
41318            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
41319$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
41320            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
41321$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
41322            as_fn_error $? "Cannot continue" "$LINENO" 5
41323        fi
41324    done
41325
41326    # Ok, we passed the simple sanity check.  Save all these names so
41327    # that we can unset them at the end of the scope.
41328    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
41329    eval $pmix_str
41330    unset pmix_str
41331
41332    env | grep pmix_scope
41333    pmix_scope_index=`expr $pmix_scope_index + 1`
41334
41335
41336    for arg in $gds_hash_WRAPPER_EXTRA_LDFLAGS; do
41337        pmix_tmp=`echo $arg | cut -c1-2`
41338        pmix_append=1
41339        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
41340  for val in ${mca_wrapper_extra_ldflags}; do
41341                   if test "x$val" = "x$arg"; then :
41342  pmix_append=0
41343fi
41344               done
41345fi
41346        if test "$pmix_append" = "1"; then :
41347  if test -z "$mca_wrapper_extra_ldflags"; then :
41348  mca_wrapper_extra_ldflags=$arg
41349else
41350  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
41351fi
41352fi
41353    done
41354
41355
41356    # Unwind the index
41357    pmix_scope_index=`expr $pmix_scope_index - 1`
41358    pmix_scope_test=`expr $pmix_scope_index \> 0`
41359    if test "$pmix_scope_test" = "0"; then
41360        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
41361$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
41362        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
41363$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
41364        as_fn_error $? "Cannot continue" "$LINENO" 5
41365    fi
41366
41367    # Get the variable names from that index
41368    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
41369    eval $pmix_str
41370
41371    # Iterate over all the variables and unset them all
41372    for pmix_var in $pmix_str; do
41373        unset $pmix_var
41374    done
41375
41376
41377fi
41378                        if test "$gds_hash_WRAPPER_EXTRA_LIBS" = ""; then :
41379
41380
41381
41382    # Is the private index set?  If not, set it.
41383    if test "x$pmix_scope_index" = "x"; then
41384        pmix_scope_index=1
41385    fi
41386
41387    # First, check to see if any of these variables are already set.
41388    # This is a simple sanity check to ensure we're not already
41389    # overwriting pre-existing variables (that have a non-empty
41390    # value).  It's not a perfect check, but at least it's something.
41391    for pmix_var in pmix_tmp pmix_append; do
41392        pmix_str="pmix_str=\"\$$pmix_var\""
41393        eval $pmix_str
41394
41395        if test "x$pmix_str" != "x"; then
41396            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
41397$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
41398            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
41399$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
41400            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
41401$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
41402            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
41403$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
41404            as_fn_error $? "Cannot continue" "$LINENO" 5
41405        fi
41406    done
41407
41408    # Ok, we passed the simple sanity check.  Save all these names so
41409    # that we can unset them at the end of the scope.
41410    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
41411    eval $pmix_str
41412    unset pmix_str
41413
41414    env | grep pmix_scope
41415    pmix_scope_index=`expr $pmix_scope_index + 1`
41416
41417
41418    for arg in $gds_hash_LIBS; do
41419        pmix_tmp=`echo $arg | cut -c1-2`
41420        pmix_append=1
41421        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
41422  for val in ${mca_wrapper_extra_libs}; do
41423                   if test "x$val" = "x$arg"; then :
41424  pmix_append=0
41425fi
41426               done
41427fi
41428        if test "$pmix_append" = "1"; then :
41429  if test -z "$mca_wrapper_extra_libs"; then :
41430  mca_wrapper_extra_libs=$arg
41431else
41432  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
41433fi
41434fi
41435    done
41436
41437
41438    # Unwind the index
41439    pmix_scope_index=`expr $pmix_scope_index - 1`
41440    pmix_scope_test=`expr $pmix_scope_index \> 0`
41441    if test "$pmix_scope_test" = "0"; then
41442        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
41443$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
41444        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
41445$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
41446        as_fn_error $? "Cannot continue" "$LINENO" 5
41447    fi
41448
41449    # Get the variable names from that index
41450    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
41451    eval $pmix_str
41452
41453    # Iterate over all the variables and unset them all
41454    for pmix_var in $pmix_str; do
41455        unset $pmix_var
41456    done
41457
41458
41459else
41460
41461
41462
41463    # Is the private index set?  If not, set it.
41464    if test "x$pmix_scope_index" = "x"; then
41465        pmix_scope_index=1
41466    fi
41467
41468    # First, check to see if any of these variables are already set.
41469    # This is a simple sanity check to ensure we're not already
41470    # overwriting pre-existing variables (that have a non-empty
41471    # value).  It's not a perfect check, but at least it's something.
41472    for pmix_var in pmix_tmp pmix_append; do
41473        pmix_str="pmix_str=\"\$$pmix_var\""
41474        eval $pmix_str
41475
41476        if test "x$pmix_str" != "x"; then
41477            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
41478$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
41479            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
41480$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
41481            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
41482$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
41483            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
41484$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
41485            as_fn_error $? "Cannot continue" "$LINENO" 5
41486        fi
41487    done
41488
41489    # Ok, we passed the simple sanity check.  Save all these names so
41490    # that we can unset them at the end of the scope.
41491    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
41492    eval $pmix_str
41493    unset pmix_str
41494
41495    env | grep pmix_scope
41496    pmix_scope_index=`expr $pmix_scope_index + 1`
41497
41498
41499    for arg in $gds_hash_WRAPPER_EXTRA_LIBS; do
41500        pmix_tmp=`echo $arg | cut -c1-2`
41501        pmix_append=1
41502        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
41503  for val in ${mca_wrapper_extra_libs}; do
41504                   if test "x$val" = "x$arg"; then :
41505  pmix_append=0
41506fi
41507               done
41508fi
41509        if test "$pmix_append" = "1"; then :
41510  if test -z "$mca_wrapper_extra_libs"; then :
41511  mca_wrapper_extra_libs=$arg
41512else
41513  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
41514fi
41515fi
41516    done
41517
41518
41519    # Unwind the index
41520    pmix_scope_index=`expr $pmix_scope_index - 1`
41521    pmix_scope_test=`expr $pmix_scope_index \> 0`
41522    if test "$pmix_scope_test" = "0"; then
41523        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
41524$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
41525        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
41526$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
41527        as_fn_error $? "Cannot continue" "$LINENO" 5
41528    fi
41529
41530    # Get the variable names from that index
41531    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
41532    eval $pmix_str
41533
41534    # Iterate over all the variables and unset them all
41535    for pmix_var in $pmix_str; do
41536        unset $pmix_var
41537    done
41538
41539
41540fi
41541
41542    fi
41543
41544    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
41545    # component can never be used in a STOP_AT_FIRST framework, we
41546    # don't have to implement the else clause in the literal check...
41547    if test "$gds_hash_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
41548  stop_at_first=0
41549            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
41550  if test "$with_devel_headers" = "yes"; then :
41551
41552
41553
41554    # Is the private index set?  If not, set it.
41555    if test "x$pmix_scope_index" = "x"; then
41556        pmix_scope_index=1
41557    fi
41558
41559    # First, check to see if any of these variables are already set.
41560    # This is a simple sanity check to ensure we're not already
41561    # overwriting pre-existing variables (that have a non-empty
41562    # value).  It's not a perfect check, but at least it's something.
41563    for pmix_var in pmix_tmp pmix_append; do
41564        pmix_str="pmix_str=\"\$$pmix_var\""
41565        eval $pmix_str
41566
41567        if test "x$pmix_str" != "x"; then
41568            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
41569$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
41570            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
41571$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
41572            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
41573$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
41574            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
41575$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
41576            as_fn_error $? "Cannot continue" "$LINENO" 5
41577        fi
41578    done
41579
41580    # Ok, we passed the simple sanity check.  Save all these names so
41581    # that we can unset them at the end of the scope.
41582    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
41583    eval $pmix_str
41584    unset pmix_str
41585
41586    env | grep pmix_scope
41587    pmix_scope_index=`expr $pmix_scope_index + 1`
41588
41589
41590    for arg in $gds_hash_WRAPPER_EXTRA_CPPFLAGS; do
41591        pmix_tmp=`echo $arg | cut -c1-2`
41592        pmix_append=1
41593        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
41594  for val in ${mca_wrapper_extra_cppflags}; do
41595                   if test "x$val" = "x$arg"; then :
41596  pmix_append=0
41597fi
41598               done
41599fi
41600        if test "$pmix_append" = "1"; then :
41601  if test -z "$mca_wrapper_extra_cppflags"; then :
41602  mca_wrapper_extra_cppflags=$arg
41603else
41604  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
41605fi
41606fi
41607    done
41608
41609
41610    # Unwind the index
41611    pmix_scope_index=`expr $pmix_scope_index - 1`
41612    pmix_scope_test=`expr $pmix_scope_index \> 0`
41613    if test "$pmix_scope_test" = "0"; then
41614        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
41615$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
41616        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
41617$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
41618        as_fn_error $? "Cannot continue" "$LINENO" 5
41619    fi
41620
41621    # Get the variable names from that index
41622    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
41623    eval $pmix_str
41624
41625    # Iterate over all the variables and unset them all
41626    for pmix_var in $pmix_str; do
41627        unset $pmix_var
41628    done
41629
41630
41631fi
41632else
41633  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring gds_hash_WRAPPER_EXTRA_CPPFLAGS ($gds_hash_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
41634$as_echo "$as_me: WARNING: ignoring gds_hash_WRAPPER_EXTRA_CPPFLAGS ($gds_hash_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
41635fi
41636fi
41637
41638    else
41639
41640    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:hash can compile" >&5
41641$as_echo_n "checking if MCA component gds:hash can compile... " >&6; }
41642    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41643$as_echo "no" >&6; }
41644
41645    # If this component was requested as the default for this
41646    # type, then abort.
41647    if test "$with_gds" = "hash" ; then
41648        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hash\" failed to configure properly" >&5
41649$as_echo "$as_me: WARNING: MCA component \"hash\" failed to configure properly" >&2;}
41650        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
41651$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
41652        as_fn_error $? "Cannot continue" "$LINENO" 5
41653    fi
41654
41655    if test ! -z "$DIRECT_gds" ; then
41656        if test "$DIRECT_gds" = "hash" ; then
41657            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"hash\" failed to configure properly" >&5
41658$as_echo "$as_me: WARNING: MCA component \"hash\" failed to configure properly" >&2;}
41659            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
41660$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
41661            as_fn_error $? "Cannot continue" "$LINENO" 5
41662        fi
41663    fi
41664
41665        # add component to all component list
41666        all_components="$all_components hash"
41667    fi
41668
41669    # set the AM_CONDITIONAL on how we should build
41670    if test "$compile_mode" = "dso" ; then
41671        BUILD_pmix_gds_hash_DSO=1
41672    else
41673        BUILD_pmix_gds_hash_DSO=0
41674    fi
41675     if test "$BUILD_pmix_gds_hash_DSO" = "1"; then
41676  MCA_BUILD_pmix_gds_hash_DSO_TRUE=
41677  MCA_BUILD_pmix_gds_hash_DSO_FALSE='#'
41678else
41679  MCA_BUILD_pmix_gds_hash_DSO_TRUE='#'
41680  MCA_BUILD_pmix_gds_hash_DSO_FALSE=
41681fi
41682
41683
41684    ac_config_files="$ac_config_files src/mca/gds/hash/Makefile"
41685
41686
41687    unset compile_mode
41688
41689
41690    # configure components that use built-in configuration scripts
41691
41692
41693
41694    best_mca_component_priority=0
41695    components_looking_for_succeed=1
41696    components_last_result=0
41697
41698
41699    pmix_show_subsubsubtitle "MCA component gds:ds12 (m4 configuration macro)"
41700
41701    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed"
41702
41703
41704
41705    component_path="$srcdir/src/mca/gds/ds12"
41706    want_component=0
41707
41708    # build if:
41709    # - the component type is direct and we are that component
41710    # - there is no pmix_ignore file
41711    # - there is an pmix_ignore, but there is an empty pmix_unignore
41712    # - there is an pmix_ignore, but username is in pmix_unignore
41713    if test -d $component_path ; then
41714        # decide if we want the component to be built or not.  This
41715        # is spread out because some of the logic is a little complex
41716        # and test's syntax isn't exactly the greatest.  We want to
41717        # build the component by default.
41718        want_component=1
41719        if test -f $component_path/.pmix_ignore ; then
41720            # If there is an pmix_ignore file, don't build
41721            # the component.  Note that this decision can be
41722            # overridden by the unignore logic below.
41723            want_component=0
41724        fi
41725        if test -f $component_path/.pmix_unignore ; then
41726            # if there is an empty pmix_unignore, that is
41727            # equivalent to having your userid in the unignore file.
41728            # If userid is in the file, unignore the ignore file.
41729            if test ! -s $component_path/.pmix_unignore ; then
41730                want_component=1
41731            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
41732                want_component=1
41733            fi
41734        fi
41735        # if this component type is direct and we are not it, we don't want
41736        # to be built.  Otherwise, we do want to be built.
41737        if test ! -z "$DIRECT_gds" ; then
41738            if test "$DIRECT_gds" = "ds12" ; then
41739                want_component=1
41740            else
41741                want_component=0
41742            fi
41743        fi
41744    fi
41745
41746    # if we were explicitly disabled, don't build :)
41747    if test "$DISABLE_gds" = "1"; then :
41748  want_component=0
41749fi
41750    if test "$DISABLE_gds_ds12" = "1"; then :
41751  want_component=0
41752fi
41753
41754    if test "$want_component" = "1"; then :
41755  should_build=$components_looking_for_succeed
41756else
41757  should_build=0
41758fi
41759
41760    # Allow the component to override the build mode if it really wants to.
41761    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
41762
41763    SHARED_FRAMEWORK="$DSO_gds"
41764    SHARED_COMPONENT="$DSO_gds_ds12"
41765
41766    STATIC_FRAMEWORK="$STATIC_gds"
41767    STATIC_COMPONENT="$STATIC_gds_ds12"
41768
41769    shared_mode_override=static
41770
41771    # Setup for either shared or static
41772    if test "$STATIC_FRAMEWORK" = "1" || \
41773       test "$STATIC_COMPONENT" = "1" || \
41774       test "$STATIC_all" = "1" ; then
41775        compile_mode="static"
41776    elif test "$shared_mode_override" = "dso" || \
41777         test "$SHARED_FRAMEWORK" = "1" || \
41778         test "$SHARED_COMPONENT" = "1" || \
41779         test "$DSO_all" = "1"; then
41780        compile_mode="dso"
41781    else
41782        compile_mode="static"
41783    fi
41784
41785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component gds:ds12 compile mode" >&5
41786$as_echo_n "checking for MCA component gds:ds12 compile mode... " >&6; }
41787    if test "$DIRECT_gds" = "ds12" ; then
41788        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
41789$as_echo "$compile_mode - direct" >&6; }
41790    else
41791        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
41792$as_echo "$compile_mode" >&6; }
41793    fi
41794
41795
41796    # try to configure the component
41797
41798    ac_config_files="$ac_config_files src/mca/gds/ds12/Makefile"
41799
41800
41801    if test "$pmix_fcntl_flock_happy" = "yes"; then :
41802  should_build=$should_build
41803else
41804  if test "$pmix_pthread_rwlockattr_setpshared" = "yes" && test "$pmix_pthread_process_shared" = "yes"; then :
41805  should_build=$should_build
41806else
41807  should_build=0
41808fi
41809fi
41810
41811
41812    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build"
41813
41814    if test "$should_build" = "1"; then :
41815
41816
41817
41818    # See if it dropped an output file for us to pick up some
41819    # shell variables in.
41820    infile="$srcdir/src/mca/gds/ds12/post_configure.sh"
41821
41822    # Add this subdir to the mast list of all MCA component subdirs
41823    all_components="$all_components ds12"
41824
41825    if test "$compile_mode" = "dso" ; then
41826        dso_components="$dso_components ds12"
41827    else
41828        if test "gds" = "common"; then
41829            # Static libraries in "common" frameworks are installed, and
41830            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
41831            # set.
41832            static_ltlibs="mca/gds/ds12/lib${PMIX_LIB_PREFIX}mca_gds_ds12.la $static_ltlibs"
41833        else
41834            # Other frameworks do not have to obey the
41835            # $FRAMEWORK_LIB_PREFIX prefix.
41836            static_ltlibs="mca/gds/ds12/libmca_gds_ds12.la $static_ltlibs"
41837        fi
41838        echo "extern const pmix_mca_base_component_t mca_gds_ds12_component;" >> $outfile.extern
41839        echo "  &mca_gds_ds12_component, " >> $outfile.struct
41840        static_components="$static_components ds12"
41841    fi
41842
41843    # Output pretty results
41844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:ds12 can compile" >&5
41845$as_echo_n "checking if MCA component gds:ds12 can compile... " >&6; }
41846    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41847$as_echo "yes" >&6; }
41848
41849                        if test -f $infile; then
41850        # check for direct call header to include.  This will be
41851        # AC_SUBSTed later.
41852        if test "$DIRECT_gds" = "ds12" ; then
41853            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
41854                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
41855                str="MCA_pmix_gds_DIRECT_CALL_HEADER=$line"
41856                eval $str
41857            else
41858as_fn_error $? "*** gds component ds12 was supposed to be direct-called, but
41859*** does not appear to support direct calling.
41860*** Aborting" "$LINENO" 5
41861            fi
41862        fi
41863    else
41864        # were we supposed to have found something in the
41865        # post_configure.sh, but the file didn't exist?
41866        if test "$DIRECT_gds" = "ds12" ; then
41867as_fn_error $? "*** gds component ds12 was supposed to be direct-called, but
41868*** does not appear to support direct calling.
41869*** Aborting" "$LINENO" 5
41870        fi
41871    fi
41872
41873    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
41874    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
41875    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
41876    # component didn't have it's own configure script (in which case,
41877    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
41878    # have to do this if the component is building dynamically,
41879    # because it will link against these (without a dependency from
41880    # libmpi.so to these flags)
41881    if test "$compile_mode" = "static"; then
41882        if test "$gds_ds12_WRAPPER_EXTRA_LDFLAGS" = ""; then :
41883
41884
41885
41886    # Is the private index set?  If not, set it.
41887    if test "x$pmix_scope_index" = "x"; then
41888        pmix_scope_index=1
41889    fi
41890
41891    # First, check to see if any of these variables are already set.
41892    # This is a simple sanity check to ensure we're not already
41893    # overwriting pre-existing variables (that have a non-empty
41894    # value).  It's not a perfect check, but at least it's something.
41895    for pmix_var in pmix_tmp pmix_append; do
41896        pmix_str="pmix_str=\"\$$pmix_var\""
41897        eval $pmix_str
41898
41899        if test "x$pmix_str" != "x"; then
41900            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
41901$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
41902            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
41903$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
41904            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
41905$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
41906            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
41907$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
41908            as_fn_error $? "Cannot continue" "$LINENO" 5
41909        fi
41910    done
41911
41912    # Ok, we passed the simple sanity check.  Save all these names so
41913    # that we can unset them at the end of the scope.
41914    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
41915    eval $pmix_str
41916    unset pmix_str
41917
41918    env | grep pmix_scope
41919    pmix_scope_index=`expr $pmix_scope_index + 1`
41920
41921
41922    for arg in $gds_ds12_LDFLAGS; do
41923        pmix_tmp=`echo $arg | cut -c1-2`
41924        pmix_append=1
41925        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
41926  for val in ${mca_wrapper_extra_ldflags}; do
41927                   if test "x$val" = "x$arg"; then :
41928  pmix_append=0
41929fi
41930               done
41931fi
41932        if test "$pmix_append" = "1"; then :
41933  if test -z "$mca_wrapper_extra_ldflags"; then :
41934  mca_wrapper_extra_ldflags=$arg
41935else
41936  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
41937fi
41938fi
41939    done
41940
41941
41942    # Unwind the index
41943    pmix_scope_index=`expr $pmix_scope_index - 1`
41944    pmix_scope_test=`expr $pmix_scope_index \> 0`
41945    if test "$pmix_scope_test" = "0"; then
41946        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
41947$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
41948        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
41949$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
41950        as_fn_error $? "Cannot continue" "$LINENO" 5
41951    fi
41952
41953    # Get the variable names from that index
41954    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
41955    eval $pmix_str
41956
41957    # Iterate over all the variables and unset them all
41958    for pmix_var in $pmix_str; do
41959        unset $pmix_var
41960    done
41961
41962
41963else
41964
41965
41966
41967    # Is the private index set?  If not, set it.
41968    if test "x$pmix_scope_index" = "x"; then
41969        pmix_scope_index=1
41970    fi
41971
41972    # First, check to see if any of these variables are already set.
41973    # This is a simple sanity check to ensure we're not already
41974    # overwriting pre-existing variables (that have a non-empty
41975    # value).  It's not a perfect check, but at least it's something.
41976    for pmix_var in pmix_tmp pmix_append; do
41977        pmix_str="pmix_str=\"\$$pmix_var\""
41978        eval $pmix_str
41979
41980        if test "x$pmix_str" != "x"; then
41981            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
41982$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
41983            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
41984$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
41985            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
41986$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
41987            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
41988$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
41989            as_fn_error $? "Cannot continue" "$LINENO" 5
41990        fi
41991    done
41992
41993    # Ok, we passed the simple sanity check.  Save all these names so
41994    # that we can unset them at the end of the scope.
41995    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
41996    eval $pmix_str
41997    unset pmix_str
41998
41999    env | grep pmix_scope
42000    pmix_scope_index=`expr $pmix_scope_index + 1`
42001
42002
42003    for arg in $gds_ds12_WRAPPER_EXTRA_LDFLAGS; do
42004        pmix_tmp=`echo $arg | cut -c1-2`
42005        pmix_append=1
42006        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
42007  for val in ${mca_wrapper_extra_ldflags}; do
42008                   if test "x$val" = "x$arg"; then :
42009  pmix_append=0
42010fi
42011               done
42012fi
42013        if test "$pmix_append" = "1"; then :
42014  if test -z "$mca_wrapper_extra_ldflags"; then :
42015  mca_wrapper_extra_ldflags=$arg
42016else
42017  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
42018fi
42019fi
42020    done
42021
42022
42023    # Unwind the index
42024    pmix_scope_index=`expr $pmix_scope_index - 1`
42025    pmix_scope_test=`expr $pmix_scope_index \> 0`
42026    if test "$pmix_scope_test" = "0"; then
42027        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
42028$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
42029        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42030$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42031        as_fn_error $? "Cannot continue" "$LINENO" 5
42032    fi
42033
42034    # Get the variable names from that index
42035    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
42036    eval $pmix_str
42037
42038    # Iterate over all the variables and unset them all
42039    for pmix_var in $pmix_str; do
42040        unset $pmix_var
42041    done
42042
42043
42044fi
42045                        if test "$gds_ds12_WRAPPER_EXTRA_LIBS" = ""; then :
42046
42047
42048
42049    # Is the private index set?  If not, set it.
42050    if test "x$pmix_scope_index" = "x"; then
42051        pmix_scope_index=1
42052    fi
42053
42054    # First, check to see if any of these variables are already set.
42055    # This is a simple sanity check to ensure we're not already
42056    # overwriting pre-existing variables (that have a non-empty
42057    # value).  It's not a perfect check, but at least it's something.
42058    for pmix_var in pmix_tmp pmix_append; do
42059        pmix_str="pmix_str=\"\$$pmix_var\""
42060        eval $pmix_str
42061
42062        if test "x$pmix_str" != "x"; then
42063            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
42064$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
42065            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
42066$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
42067            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
42068$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
42069            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42070$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42071            as_fn_error $? "Cannot continue" "$LINENO" 5
42072        fi
42073    done
42074
42075    # Ok, we passed the simple sanity check.  Save all these names so
42076    # that we can unset them at the end of the scope.
42077    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
42078    eval $pmix_str
42079    unset pmix_str
42080
42081    env | grep pmix_scope
42082    pmix_scope_index=`expr $pmix_scope_index + 1`
42083
42084
42085    for arg in $gds_ds12_LIBS; do
42086        pmix_tmp=`echo $arg | cut -c1-2`
42087        pmix_append=1
42088        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
42089  for val in ${mca_wrapper_extra_libs}; do
42090                   if test "x$val" = "x$arg"; then :
42091  pmix_append=0
42092fi
42093               done
42094fi
42095        if test "$pmix_append" = "1"; then :
42096  if test -z "$mca_wrapper_extra_libs"; then :
42097  mca_wrapper_extra_libs=$arg
42098else
42099  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
42100fi
42101fi
42102    done
42103
42104
42105    # Unwind the index
42106    pmix_scope_index=`expr $pmix_scope_index - 1`
42107    pmix_scope_test=`expr $pmix_scope_index \> 0`
42108    if test "$pmix_scope_test" = "0"; then
42109        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
42110$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
42111        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42112$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42113        as_fn_error $? "Cannot continue" "$LINENO" 5
42114    fi
42115
42116    # Get the variable names from that index
42117    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
42118    eval $pmix_str
42119
42120    # Iterate over all the variables and unset them all
42121    for pmix_var in $pmix_str; do
42122        unset $pmix_var
42123    done
42124
42125
42126else
42127
42128
42129
42130    # Is the private index set?  If not, set it.
42131    if test "x$pmix_scope_index" = "x"; then
42132        pmix_scope_index=1
42133    fi
42134
42135    # First, check to see if any of these variables are already set.
42136    # This is a simple sanity check to ensure we're not already
42137    # overwriting pre-existing variables (that have a non-empty
42138    # value).  It's not a perfect check, but at least it's something.
42139    for pmix_var in pmix_tmp pmix_append; do
42140        pmix_str="pmix_str=\"\$$pmix_var\""
42141        eval $pmix_str
42142
42143        if test "x$pmix_str" != "x"; then
42144            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
42145$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
42146            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
42147$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
42148            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
42149$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
42150            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42151$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42152            as_fn_error $? "Cannot continue" "$LINENO" 5
42153        fi
42154    done
42155
42156    # Ok, we passed the simple sanity check.  Save all these names so
42157    # that we can unset them at the end of the scope.
42158    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
42159    eval $pmix_str
42160    unset pmix_str
42161
42162    env | grep pmix_scope
42163    pmix_scope_index=`expr $pmix_scope_index + 1`
42164
42165
42166    for arg in $gds_ds12_WRAPPER_EXTRA_LIBS; do
42167        pmix_tmp=`echo $arg | cut -c1-2`
42168        pmix_append=1
42169        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
42170  for val in ${mca_wrapper_extra_libs}; do
42171                   if test "x$val" = "x$arg"; then :
42172  pmix_append=0
42173fi
42174               done
42175fi
42176        if test "$pmix_append" = "1"; then :
42177  if test -z "$mca_wrapper_extra_libs"; then :
42178  mca_wrapper_extra_libs=$arg
42179else
42180  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
42181fi
42182fi
42183    done
42184
42185
42186    # Unwind the index
42187    pmix_scope_index=`expr $pmix_scope_index - 1`
42188    pmix_scope_test=`expr $pmix_scope_index \> 0`
42189    if test "$pmix_scope_test" = "0"; then
42190        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
42191$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
42192        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42193$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42194        as_fn_error $? "Cannot continue" "$LINENO" 5
42195    fi
42196
42197    # Get the variable names from that index
42198    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
42199    eval $pmix_str
42200
42201    # Iterate over all the variables and unset them all
42202    for pmix_var in $pmix_str; do
42203        unset $pmix_var
42204    done
42205
42206
42207fi
42208
42209    fi
42210
42211    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
42212    # component can never be used in a STOP_AT_FIRST framework, we
42213    # don't have to implement the else clause in the literal check...
42214    if test "$gds_ds12_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
42215  stop_at_first=0
42216            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
42217  if test "$with_devel_headers" = "yes"; then :
42218
42219
42220
42221    # Is the private index set?  If not, set it.
42222    if test "x$pmix_scope_index" = "x"; then
42223        pmix_scope_index=1
42224    fi
42225
42226    # First, check to see if any of these variables are already set.
42227    # This is a simple sanity check to ensure we're not already
42228    # overwriting pre-existing variables (that have a non-empty
42229    # value).  It's not a perfect check, but at least it's something.
42230    for pmix_var in pmix_tmp pmix_append; do
42231        pmix_str="pmix_str=\"\$$pmix_var\""
42232        eval $pmix_str
42233
42234        if test "x$pmix_str" != "x"; then
42235            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
42236$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
42237            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
42238$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
42239            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
42240$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
42241            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42242$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42243            as_fn_error $? "Cannot continue" "$LINENO" 5
42244        fi
42245    done
42246
42247    # Ok, we passed the simple sanity check.  Save all these names so
42248    # that we can unset them at the end of the scope.
42249    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
42250    eval $pmix_str
42251    unset pmix_str
42252
42253    env | grep pmix_scope
42254    pmix_scope_index=`expr $pmix_scope_index + 1`
42255
42256
42257    for arg in $gds_ds12_WRAPPER_EXTRA_CPPFLAGS; do
42258        pmix_tmp=`echo $arg | cut -c1-2`
42259        pmix_append=1
42260        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
42261  for val in ${mca_wrapper_extra_cppflags}; do
42262                   if test "x$val" = "x$arg"; then :
42263  pmix_append=0
42264fi
42265               done
42266fi
42267        if test "$pmix_append" = "1"; then :
42268  if test -z "$mca_wrapper_extra_cppflags"; then :
42269  mca_wrapper_extra_cppflags=$arg
42270else
42271  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
42272fi
42273fi
42274    done
42275
42276
42277    # Unwind the index
42278    pmix_scope_index=`expr $pmix_scope_index - 1`
42279    pmix_scope_test=`expr $pmix_scope_index \> 0`
42280    if test "$pmix_scope_test" = "0"; then
42281        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
42282$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
42283        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42284$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42285        as_fn_error $? "Cannot continue" "$LINENO" 5
42286    fi
42287
42288    # Get the variable names from that index
42289    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
42290    eval $pmix_str
42291
42292    # Iterate over all the variables and unset them all
42293    for pmix_var in $pmix_str; do
42294        unset $pmix_var
42295    done
42296
42297
42298fi
42299else
42300  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring gds_ds12_WRAPPER_EXTRA_CPPFLAGS ($gds_ds12_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
42301$as_echo "$as_me: WARNING: ignoring gds_ds12_WRAPPER_EXTRA_CPPFLAGS ($gds_ds12_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
42302fi
42303fi
42304
42305else
42306
42307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:ds12 can compile" >&5
42308$as_echo_n "checking if MCA component gds:ds12 can compile... " >&6; }
42309    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42310$as_echo "no" >&6; }
42311
42312    # If this component was requested as the default for this
42313    # type, then abort.
42314    if test "$with_gds" = "ds12" ; then
42315        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ds12\" failed to configure properly" >&5
42316$as_echo "$as_me: WARNING: MCA component \"ds12\" failed to configure properly" >&2;}
42317        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
42318$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
42319        as_fn_error $? "Cannot continue" "$LINENO" 5
42320    fi
42321
42322    if test ! -z "$DIRECT_gds" ; then
42323        if test "$DIRECT_gds" = "ds12" ; then
42324            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ds12\" failed to configure properly" >&5
42325$as_echo "$as_me: WARNING: MCA component \"ds12\" failed to configure properly" >&2;}
42326            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
42327$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
42328            as_fn_error $? "Cannot continue" "$LINENO" 5
42329        fi
42330    fi
42331
42332           # add component to all component list
42333           all_components="$all_components ds12"
42334fi
42335
42336
42337
42338    # set the AM_CONDITIONAL on how we should build
42339    if test "$compile_mode" = "dso"; then :
42340  BUILD_pmix_gds_ds12_DSO=1
42341else
42342  BUILD_pmix_gds_ds12_DSO=0
42343fi
42344     if test "$BUILD_pmix_gds_ds12_DSO" = "1"; then
42345  MCA_BUILD_pmix_gds_ds12_DSO_TRUE=
42346  MCA_BUILD_pmix_gds_ds12_DSO_FALSE='#'
42347else
42348  MCA_BUILD_pmix_gds_ds12_DSO_TRUE='#'
42349  MCA_BUILD_pmix_gds_ds12_DSO_FALSE=
42350fi
42351
42352
42353    if test "$should_build" = "1"; then :
42354  components_last_result=1
42355else
42356  components_last_result=0
42357fi
42358
42359    unset compile_mode
42360
42361
42362
42363
42364
42365    pmix_show_subsubsubtitle "MCA component gds:ds21 (m4 configuration macro)"
42366
42367    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed"
42368
42369
42370
42371    component_path="$srcdir/src/mca/gds/ds21"
42372    want_component=0
42373
42374    # build if:
42375    # - the component type is direct and we are that component
42376    # - there is no pmix_ignore file
42377    # - there is an pmix_ignore, but there is an empty pmix_unignore
42378    # - there is an pmix_ignore, but username is in pmix_unignore
42379    if test -d $component_path ; then
42380        # decide if we want the component to be built or not.  This
42381        # is spread out because some of the logic is a little complex
42382        # and test's syntax isn't exactly the greatest.  We want to
42383        # build the component by default.
42384        want_component=1
42385        if test -f $component_path/.pmix_ignore ; then
42386            # If there is an pmix_ignore file, don't build
42387            # the component.  Note that this decision can be
42388            # overridden by the unignore logic below.
42389            want_component=0
42390        fi
42391        if test -f $component_path/.pmix_unignore ; then
42392            # if there is an empty pmix_unignore, that is
42393            # equivalent to having your userid in the unignore file.
42394            # If userid is in the file, unignore the ignore file.
42395            if test ! -s $component_path/.pmix_unignore ; then
42396                want_component=1
42397            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
42398                want_component=1
42399            fi
42400        fi
42401        # if this component type is direct and we are not it, we don't want
42402        # to be built.  Otherwise, we do want to be built.
42403        if test ! -z "$DIRECT_gds" ; then
42404            if test "$DIRECT_gds" = "ds21" ; then
42405                want_component=1
42406            else
42407                want_component=0
42408            fi
42409        fi
42410    fi
42411
42412    # if we were explicitly disabled, don't build :)
42413    if test "$DISABLE_gds" = "1"; then :
42414  want_component=0
42415fi
42416    if test "$DISABLE_gds_ds21" = "1"; then :
42417  want_component=0
42418fi
42419
42420    if test "$want_component" = "1"; then :
42421  should_build=$components_looking_for_succeed
42422else
42423  should_build=0
42424fi
42425
42426    # Allow the component to override the build mode if it really wants to.
42427    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
42428
42429    SHARED_FRAMEWORK="$DSO_gds"
42430    SHARED_COMPONENT="$DSO_gds_ds21"
42431
42432    STATIC_FRAMEWORK="$STATIC_gds"
42433    STATIC_COMPONENT="$STATIC_gds_ds21"
42434
42435    shared_mode_override=static
42436
42437    # Setup for either shared or static
42438    if test "$STATIC_FRAMEWORK" = "1" || \
42439       test "$STATIC_COMPONENT" = "1" || \
42440       test "$STATIC_all" = "1" ; then
42441        compile_mode="static"
42442    elif test "$shared_mode_override" = "dso" || \
42443         test "$SHARED_FRAMEWORK" = "1" || \
42444         test "$SHARED_COMPONENT" = "1" || \
42445         test "$DSO_all" = "1"; then
42446        compile_mode="dso"
42447    else
42448        compile_mode="static"
42449    fi
42450
42451    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component gds:ds21 compile mode" >&5
42452$as_echo_n "checking for MCA component gds:ds21 compile mode... " >&6; }
42453    if test "$DIRECT_gds" = "ds21" ; then
42454        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
42455$as_echo "$compile_mode - direct" >&6; }
42456    else
42457        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
42458$as_echo "$compile_mode" >&6; }
42459    fi
42460
42461
42462    # try to configure the component
42463
42464    ac_config_files="$ac_config_files src/mca/gds/ds21/Makefile"
42465
42466
42467    if test "$pmix_pthread_mutexattr_setpshared" = "yes" && test "$pmix_pthread_process_shared" = "yes"; then :
42468  should_build=$should_build
42469else
42470  should_build=0
42471fi
42472
42473
42474    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build"
42475
42476    if test "$should_build" = "1"; then :
42477
42478
42479
42480    # See if it dropped an output file for us to pick up some
42481    # shell variables in.
42482    infile="$srcdir/src/mca/gds/ds21/post_configure.sh"
42483
42484    # Add this subdir to the mast list of all MCA component subdirs
42485    all_components="$all_components ds21"
42486
42487    if test "$compile_mode" = "dso" ; then
42488        dso_components="$dso_components ds21"
42489    else
42490        if test "gds" = "common"; then
42491            # Static libraries in "common" frameworks are installed, and
42492            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
42493            # set.
42494            static_ltlibs="mca/gds/ds21/lib${PMIX_LIB_PREFIX}mca_gds_ds21.la $static_ltlibs"
42495        else
42496            # Other frameworks do not have to obey the
42497            # $FRAMEWORK_LIB_PREFIX prefix.
42498            static_ltlibs="mca/gds/ds21/libmca_gds_ds21.la $static_ltlibs"
42499        fi
42500        echo "extern const pmix_mca_base_component_t mca_gds_ds21_component;" >> $outfile.extern
42501        echo "  &mca_gds_ds21_component, " >> $outfile.struct
42502        static_components="$static_components ds21"
42503    fi
42504
42505    # Output pretty results
42506    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:ds21 can compile" >&5
42507$as_echo_n "checking if MCA component gds:ds21 can compile... " >&6; }
42508    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42509$as_echo "yes" >&6; }
42510
42511                        if test -f $infile; then
42512        # check for direct call header to include.  This will be
42513        # AC_SUBSTed later.
42514        if test "$DIRECT_gds" = "ds21" ; then
42515            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
42516                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
42517                str="MCA_pmix_gds_DIRECT_CALL_HEADER=$line"
42518                eval $str
42519            else
42520as_fn_error $? "*** gds component ds21 was supposed to be direct-called, but
42521*** does not appear to support direct calling.
42522*** Aborting" "$LINENO" 5
42523            fi
42524        fi
42525    else
42526        # were we supposed to have found something in the
42527        # post_configure.sh, but the file didn't exist?
42528        if test "$DIRECT_gds" = "ds21" ; then
42529as_fn_error $? "*** gds component ds21 was supposed to be direct-called, but
42530*** does not appear to support direct calling.
42531*** Aborting" "$LINENO" 5
42532        fi
42533    fi
42534
42535    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
42536    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
42537    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
42538    # component didn't have it's own configure script (in which case,
42539    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
42540    # have to do this if the component is building dynamically,
42541    # because it will link against these (without a dependency from
42542    # libmpi.so to these flags)
42543    if test "$compile_mode" = "static"; then
42544        if test "$gds_ds21_WRAPPER_EXTRA_LDFLAGS" = ""; then :
42545
42546
42547
42548    # Is the private index set?  If not, set it.
42549    if test "x$pmix_scope_index" = "x"; then
42550        pmix_scope_index=1
42551    fi
42552
42553    # First, check to see if any of these variables are already set.
42554    # This is a simple sanity check to ensure we're not already
42555    # overwriting pre-existing variables (that have a non-empty
42556    # value).  It's not a perfect check, but at least it's something.
42557    for pmix_var in pmix_tmp pmix_append; do
42558        pmix_str="pmix_str=\"\$$pmix_var\""
42559        eval $pmix_str
42560
42561        if test "x$pmix_str" != "x"; then
42562            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
42563$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
42564            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
42565$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
42566            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
42567$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
42568            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42569$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42570            as_fn_error $? "Cannot continue" "$LINENO" 5
42571        fi
42572    done
42573
42574    # Ok, we passed the simple sanity check.  Save all these names so
42575    # that we can unset them at the end of the scope.
42576    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
42577    eval $pmix_str
42578    unset pmix_str
42579
42580    env | grep pmix_scope
42581    pmix_scope_index=`expr $pmix_scope_index + 1`
42582
42583
42584    for arg in $gds_ds21_LDFLAGS; do
42585        pmix_tmp=`echo $arg | cut -c1-2`
42586        pmix_append=1
42587        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
42588  for val in ${mca_wrapper_extra_ldflags}; do
42589                   if test "x$val" = "x$arg"; then :
42590  pmix_append=0
42591fi
42592               done
42593fi
42594        if test "$pmix_append" = "1"; then :
42595  if test -z "$mca_wrapper_extra_ldflags"; then :
42596  mca_wrapper_extra_ldflags=$arg
42597else
42598  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
42599fi
42600fi
42601    done
42602
42603
42604    # Unwind the index
42605    pmix_scope_index=`expr $pmix_scope_index - 1`
42606    pmix_scope_test=`expr $pmix_scope_index \> 0`
42607    if test "$pmix_scope_test" = "0"; then
42608        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
42609$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
42610        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42611$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42612        as_fn_error $? "Cannot continue" "$LINENO" 5
42613    fi
42614
42615    # Get the variable names from that index
42616    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
42617    eval $pmix_str
42618
42619    # Iterate over all the variables and unset them all
42620    for pmix_var in $pmix_str; do
42621        unset $pmix_var
42622    done
42623
42624
42625else
42626
42627
42628
42629    # Is the private index set?  If not, set it.
42630    if test "x$pmix_scope_index" = "x"; then
42631        pmix_scope_index=1
42632    fi
42633
42634    # First, check to see if any of these variables are already set.
42635    # This is a simple sanity check to ensure we're not already
42636    # overwriting pre-existing variables (that have a non-empty
42637    # value).  It's not a perfect check, but at least it's something.
42638    for pmix_var in pmix_tmp pmix_append; do
42639        pmix_str="pmix_str=\"\$$pmix_var\""
42640        eval $pmix_str
42641
42642        if test "x$pmix_str" != "x"; then
42643            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
42644$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
42645            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
42646$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
42647            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
42648$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
42649            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42650$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42651            as_fn_error $? "Cannot continue" "$LINENO" 5
42652        fi
42653    done
42654
42655    # Ok, we passed the simple sanity check.  Save all these names so
42656    # that we can unset them at the end of the scope.
42657    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
42658    eval $pmix_str
42659    unset pmix_str
42660
42661    env | grep pmix_scope
42662    pmix_scope_index=`expr $pmix_scope_index + 1`
42663
42664
42665    for arg in $gds_ds21_WRAPPER_EXTRA_LDFLAGS; do
42666        pmix_tmp=`echo $arg | cut -c1-2`
42667        pmix_append=1
42668        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
42669  for val in ${mca_wrapper_extra_ldflags}; do
42670                   if test "x$val" = "x$arg"; then :
42671  pmix_append=0
42672fi
42673               done
42674fi
42675        if test "$pmix_append" = "1"; then :
42676  if test -z "$mca_wrapper_extra_ldflags"; then :
42677  mca_wrapper_extra_ldflags=$arg
42678else
42679  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
42680fi
42681fi
42682    done
42683
42684
42685    # Unwind the index
42686    pmix_scope_index=`expr $pmix_scope_index - 1`
42687    pmix_scope_test=`expr $pmix_scope_index \> 0`
42688    if test "$pmix_scope_test" = "0"; then
42689        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
42690$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
42691        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42692$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42693        as_fn_error $? "Cannot continue" "$LINENO" 5
42694    fi
42695
42696    # Get the variable names from that index
42697    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
42698    eval $pmix_str
42699
42700    # Iterate over all the variables and unset them all
42701    for pmix_var in $pmix_str; do
42702        unset $pmix_var
42703    done
42704
42705
42706fi
42707                        if test "$gds_ds21_WRAPPER_EXTRA_LIBS" = ""; then :
42708
42709
42710
42711    # Is the private index set?  If not, set it.
42712    if test "x$pmix_scope_index" = "x"; then
42713        pmix_scope_index=1
42714    fi
42715
42716    # First, check to see if any of these variables are already set.
42717    # This is a simple sanity check to ensure we're not already
42718    # overwriting pre-existing variables (that have a non-empty
42719    # value).  It's not a perfect check, but at least it's something.
42720    for pmix_var in pmix_tmp pmix_append; do
42721        pmix_str="pmix_str=\"\$$pmix_var\""
42722        eval $pmix_str
42723
42724        if test "x$pmix_str" != "x"; then
42725            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
42726$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
42727            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
42728$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
42729            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
42730$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
42731            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42732$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42733            as_fn_error $? "Cannot continue" "$LINENO" 5
42734        fi
42735    done
42736
42737    # Ok, we passed the simple sanity check.  Save all these names so
42738    # that we can unset them at the end of the scope.
42739    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
42740    eval $pmix_str
42741    unset pmix_str
42742
42743    env | grep pmix_scope
42744    pmix_scope_index=`expr $pmix_scope_index + 1`
42745
42746
42747    for arg in $gds_ds21_LIBS; do
42748        pmix_tmp=`echo $arg | cut -c1-2`
42749        pmix_append=1
42750        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
42751  for val in ${mca_wrapper_extra_libs}; do
42752                   if test "x$val" = "x$arg"; then :
42753  pmix_append=0
42754fi
42755               done
42756fi
42757        if test "$pmix_append" = "1"; then :
42758  if test -z "$mca_wrapper_extra_libs"; then :
42759  mca_wrapper_extra_libs=$arg
42760else
42761  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
42762fi
42763fi
42764    done
42765
42766
42767    # Unwind the index
42768    pmix_scope_index=`expr $pmix_scope_index - 1`
42769    pmix_scope_test=`expr $pmix_scope_index \> 0`
42770    if test "$pmix_scope_test" = "0"; then
42771        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
42772$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
42773        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42774$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42775        as_fn_error $? "Cannot continue" "$LINENO" 5
42776    fi
42777
42778    # Get the variable names from that index
42779    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
42780    eval $pmix_str
42781
42782    # Iterate over all the variables and unset them all
42783    for pmix_var in $pmix_str; do
42784        unset $pmix_var
42785    done
42786
42787
42788else
42789
42790
42791
42792    # Is the private index set?  If not, set it.
42793    if test "x$pmix_scope_index" = "x"; then
42794        pmix_scope_index=1
42795    fi
42796
42797    # First, check to see if any of these variables are already set.
42798    # This is a simple sanity check to ensure we're not already
42799    # overwriting pre-existing variables (that have a non-empty
42800    # value).  It's not a perfect check, but at least it's something.
42801    for pmix_var in pmix_tmp pmix_append; do
42802        pmix_str="pmix_str=\"\$$pmix_var\""
42803        eval $pmix_str
42804
42805        if test "x$pmix_str" != "x"; then
42806            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
42807$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
42808            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
42809$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
42810            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
42811$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
42812            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42813$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42814            as_fn_error $? "Cannot continue" "$LINENO" 5
42815        fi
42816    done
42817
42818    # Ok, we passed the simple sanity check.  Save all these names so
42819    # that we can unset them at the end of the scope.
42820    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
42821    eval $pmix_str
42822    unset pmix_str
42823
42824    env | grep pmix_scope
42825    pmix_scope_index=`expr $pmix_scope_index + 1`
42826
42827
42828    for arg in $gds_ds21_WRAPPER_EXTRA_LIBS; do
42829        pmix_tmp=`echo $arg | cut -c1-2`
42830        pmix_append=1
42831        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
42832  for val in ${mca_wrapper_extra_libs}; do
42833                   if test "x$val" = "x$arg"; then :
42834  pmix_append=0
42835fi
42836               done
42837fi
42838        if test "$pmix_append" = "1"; then :
42839  if test -z "$mca_wrapper_extra_libs"; then :
42840  mca_wrapper_extra_libs=$arg
42841else
42842  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
42843fi
42844fi
42845    done
42846
42847
42848    # Unwind the index
42849    pmix_scope_index=`expr $pmix_scope_index - 1`
42850    pmix_scope_test=`expr $pmix_scope_index \> 0`
42851    if test "$pmix_scope_test" = "0"; then
42852        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
42853$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
42854        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42855$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42856        as_fn_error $? "Cannot continue" "$LINENO" 5
42857    fi
42858
42859    # Get the variable names from that index
42860    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
42861    eval $pmix_str
42862
42863    # Iterate over all the variables and unset them all
42864    for pmix_var in $pmix_str; do
42865        unset $pmix_var
42866    done
42867
42868
42869fi
42870
42871    fi
42872
42873    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
42874    # component can never be used in a STOP_AT_FIRST framework, we
42875    # don't have to implement the else clause in the literal check...
42876    if test "$gds_ds21_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
42877  stop_at_first=0
42878            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
42879  if test "$with_devel_headers" = "yes"; then :
42880
42881
42882
42883    # Is the private index set?  If not, set it.
42884    if test "x$pmix_scope_index" = "x"; then
42885        pmix_scope_index=1
42886    fi
42887
42888    # First, check to see if any of these variables are already set.
42889    # This is a simple sanity check to ensure we're not already
42890    # overwriting pre-existing variables (that have a non-empty
42891    # value).  It's not a perfect check, but at least it's something.
42892    for pmix_var in pmix_tmp pmix_append; do
42893        pmix_str="pmix_str=\"\$$pmix_var\""
42894        eval $pmix_str
42895
42896        if test "x$pmix_str" != "x"; then
42897            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
42898$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
42899            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
42900$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
42901            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
42902$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
42903            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42904$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42905            as_fn_error $? "Cannot continue" "$LINENO" 5
42906        fi
42907    done
42908
42909    # Ok, we passed the simple sanity check.  Save all these names so
42910    # that we can unset them at the end of the scope.
42911    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
42912    eval $pmix_str
42913    unset pmix_str
42914
42915    env | grep pmix_scope
42916    pmix_scope_index=`expr $pmix_scope_index + 1`
42917
42918
42919    for arg in $gds_ds21_WRAPPER_EXTRA_CPPFLAGS; do
42920        pmix_tmp=`echo $arg | cut -c1-2`
42921        pmix_append=1
42922        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
42923  for val in ${mca_wrapper_extra_cppflags}; do
42924                   if test "x$val" = "x$arg"; then :
42925  pmix_append=0
42926fi
42927               done
42928fi
42929        if test "$pmix_append" = "1"; then :
42930  if test -z "$mca_wrapper_extra_cppflags"; then :
42931  mca_wrapper_extra_cppflags=$arg
42932else
42933  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
42934fi
42935fi
42936    done
42937
42938
42939    # Unwind the index
42940    pmix_scope_index=`expr $pmix_scope_index - 1`
42941    pmix_scope_test=`expr $pmix_scope_index \> 0`
42942    if test "$pmix_scope_test" = "0"; then
42943        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
42944$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
42945        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
42946$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
42947        as_fn_error $? "Cannot continue" "$LINENO" 5
42948    fi
42949
42950    # Get the variable names from that index
42951    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
42952    eval $pmix_str
42953
42954    # Iterate over all the variables and unset them all
42955    for pmix_var in $pmix_str; do
42956        unset $pmix_var
42957    done
42958
42959
42960fi
42961else
42962  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring gds_ds21_WRAPPER_EXTRA_CPPFLAGS ($gds_ds21_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
42963$as_echo "$as_me: WARNING: ignoring gds_ds21_WRAPPER_EXTRA_CPPFLAGS ($gds_ds21_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
42964fi
42965fi
42966
42967else
42968
42969    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:ds21 can compile" >&5
42970$as_echo_n "checking if MCA component gds:ds21 can compile... " >&6; }
42971    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42972$as_echo "no" >&6; }
42973
42974    # If this component was requested as the default for this
42975    # type, then abort.
42976    if test "$with_gds" = "ds21" ; then
42977        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ds21\" failed to configure properly" >&5
42978$as_echo "$as_me: WARNING: MCA component \"ds21\" failed to configure properly" >&2;}
42979        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
42980$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
42981        as_fn_error $? "Cannot continue" "$LINENO" 5
42982    fi
42983
42984    if test ! -z "$DIRECT_gds" ; then
42985        if test "$DIRECT_gds" = "ds21" ; then
42986            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"ds21\" failed to configure properly" >&5
42987$as_echo "$as_me: WARNING: MCA component \"ds21\" failed to configure properly" >&2;}
42988            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
42989$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
42990            as_fn_error $? "Cannot continue" "$LINENO" 5
42991        fi
42992    fi
42993
42994           # add component to all component list
42995           all_components="$all_components ds21"
42996fi
42997
42998
42999
43000    # set the AM_CONDITIONAL on how we should build
43001    if test "$compile_mode" = "dso"; then :
43002  BUILD_pmix_gds_ds21_DSO=1
43003else
43004  BUILD_pmix_gds_ds21_DSO=0
43005fi
43006     if test "$BUILD_pmix_gds_ds21_DSO" = "1"; then
43007  MCA_BUILD_pmix_gds_ds21_DSO_TRUE=
43008  MCA_BUILD_pmix_gds_ds21_DSO_FALSE='#'
43009else
43010  MCA_BUILD_pmix_gds_ds21_DSO_TRUE='#'
43011  MCA_BUILD_pmix_gds_ds21_DSO_FALSE=
43012fi
43013
43014
43015    if test "$should_build" = "1"; then :
43016  components_last_result=1
43017else
43018  components_last_result=0
43019fi
43020
43021    unset compile_mode
43022
43023
43024
43025
43026
43027    # configure components that provide their own configure script.
43028    # It would be really hard to run these for "find first that
43029    # works", so we don't :)
43030
43031
43032
43033                  if test "1" != "0"; then :
43034
43035    for component_path in $srcdir/src/mca/gds/* ; do
43036        component="`basename $component_path`"
43037        if test -d $component_path && test -x $component_path/configure ; then
43038            pmix_show_subsubsubtitle "MCA component gds:$component (need to configure)"
43039
43040            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build="
43041
43042
43043
43044    component_path="$srcdir/src/mca/gds/$component"
43045    want_component=0
43046
43047    # build if:
43048    # - the component type is direct and we are that component
43049    # - there is no pmix_ignore file
43050    # - there is an pmix_ignore, but there is an empty pmix_unignore
43051    # - there is an pmix_ignore, but username is in pmix_unignore
43052    if test -d $component_path ; then
43053        # decide if we want the component to be built or not.  This
43054        # is spread out because some of the logic is a little complex
43055        # and test's syntax isn't exactly the greatest.  We want to
43056        # build the component by default.
43057        want_component=1
43058        if test -f $component_path/.pmix_ignore ; then
43059            # If there is an pmix_ignore file, don't build
43060            # the component.  Note that this decision can be
43061            # overridden by the unignore logic below.
43062            want_component=0
43063        fi
43064        if test -f $component_path/.pmix_unignore ; then
43065            # if there is an empty pmix_unignore, that is
43066            # equivalent to having your userid in the unignore file.
43067            # If userid is in the file, unignore the ignore file.
43068            if test ! -s $component_path/.pmix_unignore ; then
43069                want_component=1
43070            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
43071                want_component=1
43072            fi
43073        fi
43074        # if this component type is direct and we are not it, we don't want
43075        # to be built.  Otherwise, we do want to be built.
43076        if test ! -z "$DIRECT_gds" ; then
43077            if test "$DIRECT_gds" = "$component" ; then
43078                want_component=1
43079            else
43080                want_component=0
43081            fi
43082        fi
43083    fi
43084
43085    # if we were explicitly disabled, don't build :)
43086    if test "$DISABLE_gds" = "1"; then :
43087  want_component=0
43088fi
43089    str="DISABLED_COMPONENT_CHECK=\$DISABLE_gds_$component"
43090         eval $str
43091         if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
43092             want_component=0
43093         fi
43094
43095    if test "$want_component" = "1"; then :
43096  should_build=1
43097else
43098  should_build=0
43099fi
43100
43101
43102    SHARED_FRAMEWORK="$DSO_gds"
43103    str="SHARED_COMPONENT=\$DSO_gds_$component"
43104         eval $str
43105
43106    STATIC_FRAMEWORK="$STATIC_gds"
43107    str="STATIC_COMPONENT=\$STATIC_gds_$component"
43108         eval $str
43109
43110    shared_mode_override=static
43111
43112    # Setup for either shared or static
43113    if test "$STATIC_FRAMEWORK" = "1" || \
43114       test "$STATIC_COMPONENT" = "1" || \
43115       test "$STATIC_all" = "1" ; then
43116        compile_mode="static"
43117    elif test "$shared_mode_override" = "dso" || \
43118         test "$SHARED_FRAMEWORK" = "1" || \
43119         test "$SHARED_COMPONENT" = "1" || \
43120         test "$DSO_all" = "1"; then
43121        compile_mode="dso"
43122    else
43123        compile_mode="static"
43124    fi
43125
43126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component gds:$component compile mode" >&5
43127$as_echo_n "checking for MCA component gds:$component compile mode... " >&6; }
43128    if test "$DIRECT_gds" = "$component" ; then
43129        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
43130$as_echo "$compile_mode - direct" >&6; }
43131    else
43132        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
43133$as_echo "$compile_mode" >&6; }
43134    fi
43135
43136            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build"
43137
43138            if test "$should_build" = "1" ; then
43139
43140
43141
43142    # Is the private index set?  If not, set it.
43143    if test "x$pmix_scope_index" = "x"; then
43144        pmix_scope_index=1
43145    fi
43146
43147    # First, check to see if any of these variables are already set.
43148    # This is a simple sanity check to ensure we're not already
43149    # overwriting pre-existing variables (that have a non-empty
43150    # value).  It's not a perfect check, but at least it's something.
43151    for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do
43152        pmix_str="pmix_str=\"\$$pmix_var\""
43153        eval $pmix_str
43154
43155        if test "x$pmix_str" != "x"; then
43156            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
43157$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
43158            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
43159$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
43160            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
43161$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
43162            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
43163$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
43164            as_fn_error $? "Cannot continue" "$LINENO" 5
43165        fi
43166    done
43167
43168    # Ok, we passed the simple sanity check.  Save all these names so
43169    # that we can unset them at the end of the scope.
43170    pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\""
43171    eval $pmix_str
43172    unset pmix_str
43173
43174    env | grep pmix_scope
43175    pmix_scope_index=`expr $pmix_scope_index + 1`
43176
43177
43178#
43179# Invoke configure in a specific subdirectory.
43180#
43181# src/mca/gds/$component is the directory to invoke in
43182# $pmix_subdir_args is the list of arguments to pass
43183# should_build=1 is actions to execute upon success
43184# should_build=0 is actions to execute upon failure
43185#
43186subdir_dir="src/mca/gds/$component"
43187subdir_args="$pmix_subdir_args"
43188subdir_success="should_build=1"
43189subdir_failure="should_build=0"
43190
43191#
43192# Sanity checks
43193#
43194
43195if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then
43196    { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5
43197$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;}
43198
43199    #
43200    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
43201    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
43202    # into it.
43203    #
43204
43205    case $srcdir in
43206    .)
43207	;;
43208    *)
43209	{ case $subdir_dir in
43210	[\\/]* | ?:[\\/]* ) total_dir=;;
43211	*)                      total_dir=.;;
43212	esac
43213	temp=$subdir_dir
43214	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
43215	    case $dir_part in
43216	    # Skip DOS drivespec
43217	    ?:) total_dir=$dir_part ;;
43218	    *)  total_dir=$total_dir/$dir_part
43219		test -d "$total_dir" ||
43220		mkdir "$total_dir" ||
43221		as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5
43222		;;
43223	    esac
43224	done; }
43225
43226	if test -d ./$subdir_dir; then :;
43227	else
43228	    as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
43229	fi
43230	;;
43231    esac
43232
43233    #
43234    # Move into the target directory
43235    #
43236
43237    subdir_parent=`pwd`
43238    cd $subdir_dir
43239
43240    #
43241    # Make a "../" for each directory in $subdir_dir.
43242    #
43243
43244    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
43245    #
43246    # Construct the --srcdir argument
43247    #
43248
43249    case $srcdir in
43250    .)
43251	# In place
43252	subdir_srcdir="$srcdir"
43253	;;
43254    [\\/]* | ?:[\\/]* )
43255	# Absolute path
43256	subdir_srcdir="$srcdir/$subdir_dir"
43257	;;
43258    *)
43259	# Relative path
43260	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
43261	;;
43262    esac
43263
43264    #
43265    # Construct the --cache-file argument
43266    #
43267
43268    # BWB - subdir caching is a pain since we change CFLAGS and all that.
43269    # Just disable it for now
43270    subdir_cache_file="/dev/null"
43271
43272    #
43273    # Invoke the configure script in the subdirectory
43274    #
43275
43276    sub_configure="$SHELL '$subdir_srcdir/configure'"
43277    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
43278$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
43279    eval "$sub_configure $subdir_args \
43280	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
43281    if test "$?" = "0"; then
43282	eval $subdir_success
43283	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
43284$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
43285    else
43286	eval $subdir_failure
43287	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
43288$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
43289    fi
43290
43291    #
43292    # Go back to the topdir
43293    #
43294
43295    cd $subdir_parent
43296fi
43297
43298#
43299# Clean up
43300#
43301
43302
43303    # Unwind the index
43304    pmix_scope_index=`expr $pmix_scope_index - 1`
43305    pmix_scope_test=`expr $pmix_scope_index \> 0`
43306    if test "$pmix_scope_test" = "0"; then
43307        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
43308$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
43309        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
43310$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
43311        as_fn_error $? "Cannot continue" "$LINENO" 5
43312    fi
43313
43314    # Get the variable names from that index
43315    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
43316    eval $pmix_str
43317
43318    # Iterate over all the variables and unset them all
43319    for pmix_var in $pmix_str; do
43320        unset $pmix_var
43321    done
43322
43323                pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build"
43324            fi
43325
43326            if test "$should_build" = "1" ; then
43327                # do some extra work to pass flags back from the
43328                # top-level configure, the way a configure.m4
43329                # component would.
43330                infile="$srcdir/src/mca/gds/all_components/post_configure.sh"
43331                if test -f $infile; then
43332
43333                    # First check for the ABORT tag
43334                    line="`$GREP ABORT= $infile | cut -d= -f2-`"
43335                    if test -n "$line" && test "$line" != "no"; then
43336                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
43337$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
43338                        as_fn_error $? "cannot continue" "$LINENO" 5
43339                    fi
43340
43341                    line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
43342                            eval "line=$line"
43343                            if test -n "$line"; then
43344                                all_components_static_components_WRAPPER_EXTRA_LDFLAGS="$line"
43345                            fi
43346                        line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
43347                            eval "line=$line"
43348                            if test -n "$line"; then
43349                                all_components_static_components_WRAPPER_EXTRA_LIBS="$line"
43350                            fi
43351                                        fi
43352
43353
43354
43355
43356    # See if it dropped an output file for us to pick up some
43357    # shell variables in.
43358    infile="$srcdir/src/mca/gds/$component/post_configure.sh"
43359
43360    # Add this subdir to the mast list of all MCA component subdirs
43361    all_components="$all_components $component"
43362
43363    if test "$compile_mode" = "dso" ; then
43364        dso_components="$dso_components $component"
43365    else
43366        if test "gds" = "common"; then
43367            # Static libraries in "common" frameworks are installed, and
43368            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
43369            # set.
43370            static_ltlibs="mca/gds/$component/lib${PMIX_LIB_PREFIX}mca_gds_$component.la $static_ltlibs"
43371        else
43372            # Other frameworks do not have to obey the
43373            # $FRAMEWORK_LIB_PREFIX prefix.
43374            static_ltlibs="mca/gds/$component/libmca_gds_$component.la $static_ltlibs"
43375        fi
43376        echo "extern const pmix_mca_base_component_t mca_gds_$component_component;" >> $outfile.extern
43377        echo "  &mca_gds_$component_component, " >> $outfile.struct
43378        static_components="$static_components $component"
43379    fi
43380
43381    # Output pretty results
43382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:$component can compile" >&5
43383$as_echo_n "checking if MCA component gds:$component can compile... " >&6; }
43384    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43385$as_echo "yes" >&6; }
43386
43387                        if test -f $infile; then
43388        # check for direct call header to include.  This will be
43389        # AC_SUBSTed later.
43390        if test "$DIRECT_gds" = "$component" ; then
43391            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
43392                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
43393                str="MCA_pmix_gds_DIRECT_CALL_HEADER=$line"
43394                eval $str
43395            else
43396as_fn_error $? "*** gds component $component was supposed to be direct-called, but
43397*** does not appear to support direct calling.
43398*** Aborting" "$LINENO" 5
43399            fi
43400        fi
43401    else
43402        # were we supposed to have found something in the
43403        # post_configure.sh, but the file didn't exist?
43404        if test "$DIRECT_gds" = "$component" ; then
43405as_fn_error $? "*** gds component $component was supposed to be direct-called, but
43406*** does not appear to support direct calling.
43407*** Aborting" "$LINENO" 5
43408        fi
43409    fi
43410
43411    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
43412    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
43413    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
43414    # component didn't have it's own configure script (in which case,
43415    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
43416    # have to do this if the component is building dynamically,
43417    # because it will link against these (without a dependency from
43418    # libmpi.so to these flags)
43419    if test "$compile_mode" = "static"; then
43420        str="line=\$gds_$component_WRAPPER_EXTRA_LDFLAGS"
43421                      eval "$str"
43422
43423
43424
43425    # Is the private index set?  If not, set it.
43426    if test "x$pmix_scope_index" = "x"; then
43427        pmix_scope_index=1
43428    fi
43429
43430    # First, check to see if any of these variables are already set.
43431    # This is a simple sanity check to ensure we're not already
43432    # overwriting pre-existing variables (that have a non-empty
43433    # value).  It's not a perfect check, but at least it's something.
43434    for pmix_var in pmix_tmp pmix_append; do
43435        pmix_str="pmix_str=\"\$$pmix_var\""
43436        eval $pmix_str
43437
43438        if test "x$pmix_str" != "x"; then
43439            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
43440$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
43441            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
43442$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
43443            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
43444$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
43445            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
43446$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
43447            as_fn_error $? "Cannot continue" "$LINENO" 5
43448        fi
43449    done
43450
43451    # Ok, we passed the simple sanity check.  Save all these names so
43452    # that we can unset them at the end of the scope.
43453    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
43454    eval $pmix_str
43455    unset pmix_str
43456
43457    env | grep pmix_scope
43458    pmix_scope_index=`expr $pmix_scope_index + 1`
43459
43460
43461    for arg in $line; do
43462        pmix_tmp=`echo $arg | cut -c1-2`
43463        pmix_append=1
43464        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
43465  for val in ${mca_wrapper_extra_ldflags}; do
43466                   if test "x$val" = "x$arg"; then :
43467  pmix_append=0
43468fi
43469               done
43470fi
43471        if test "$pmix_append" = "1"; then :
43472  if test -z "$mca_wrapper_extra_ldflags"; then :
43473  mca_wrapper_extra_ldflags=$arg
43474else
43475  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
43476fi
43477fi
43478    done
43479
43480
43481    # Unwind the index
43482    pmix_scope_index=`expr $pmix_scope_index - 1`
43483    pmix_scope_test=`expr $pmix_scope_index \> 0`
43484    if test "$pmix_scope_test" = "0"; then
43485        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
43486$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
43487        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
43488$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
43489        as_fn_error $? "Cannot continue" "$LINENO" 5
43490    fi
43491
43492    # Get the variable names from that index
43493    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
43494    eval $pmix_str
43495
43496    # Iterate over all the variables and unset them all
43497    for pmix_var in $pmix_str; do
43498        unset $pmix_var
43499    done
43500
43501str="line=\$gds_$component_WRAPPER_EXTRA_LIBS"
43502                      eval "$str"
43503
43504
43505
43506    # Is the private index set?  If not, set it.
43507    if test "x$pmix_scope_index" = "x"; then
43508        pmix_scope_index=1
43509    fi
43510
43511    # First, check to see if any of these variables are already set.
43512    # This is a simple sanity check to ensure we're not already
43513    # overwriting pre-existing variables (that have a non-empty
43514    # value).  It's not a perfect check, but at least it's something.
43515    for pmix_var in pmix_tmp pmix_append; do
43516        pmix_str="pmix_str=\"\$$pmix_var\""
43517        eval $pmix_str
43518
43519        if test "x$pmix_str" != "x"; then
43520            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
43521$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
43522            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
43523$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
43524            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
43525$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
43526            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
43527$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
43528            as_fn_error $? "Cannot continue" "$LINENO" 5
43529        fi
43530    done
43531
43532    # Ok, we passed the simple sanity check.  Save all these names so
43533    # that we can unset them at the end of the scope.
43534    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
43535    eval $pmix_str
43536    unset pmix_str
43537
43538    env | grep pmix_scope
43539    pmix_scope_index=`expr $pmix_scope_index + 1`
43540
43541
43542    for arg in $line; do
43543        pmix_tmp=`echo $arg | cut -c1-2`
43544        pmix_append=1
43545        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
43546  for val in ${mca_wrapper_extra_libs}; do
43547                   if test "x$val" = "x$arg"; then :
43548  pmix_append=0
43549fi
43550               done
43551fi
43552        if test "$pmix_append" = "1"; then :
43553  if test -z "$mca_wrapper_extra_libs"; then :
43554  mca_wrapper_extra_libs=$arg
43555else
43556  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
43557fi
43558fi
43559    done
43560
43561
43562    # Unwind the index
43563    pmix_scope_index=`expr $pmix_scope_index - 1`
43564    pmix_scope_test=`expr $pmix_scope_index \> 0`
43565    if test "$pmix_scope_test" = "0"; then
43566        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
43567$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
43568        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
43569$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
43570        as_fn_error $? "Cannot continue" "$LINENO" 5
43571    fi
43572
43573    # Get the variable names from that index
43574    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
43575    eval $pmix_str
43576
43577    # Iterate over all the variables and unset them all
43578    for pmix_var in $pmix_str; do
43579        unset $pmix_var
43580    done
43581
43582
43583    fi
43584
43585    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
43586    # component can never be used in a STOP_AT_FIRST framework, we
43587    # don't have to implement the else clause in the literal check...
43588
43589
43590            else
43591
43592    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component gds:$component can compile" >&5
43593$as_echo_n "checking if MCA component gds:$component can compile... " >&6; }
43594    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43595$as_echo "no" >&6; }
43596
43597    # If this component was requested as the default for this
43598    # type, then abort.
43599    if test "$with_gds" = "$component" ; then
43600        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
43601$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
43602        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
43603$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
43604        as_fn_error $? "Cannot continue" "$LINENO" 5
43605    fi
43606
43607    if test ! -z "$DIRECT_gds" ; then
43608        if test "$DIRECT_gds" = "$component" ; then
43609            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
43610$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
43611            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
43612$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
43613            as_fn_error $? "Cannot continue" "$LINENO" 5
43614        fi
43615    fi
43616
43617            fi
43618        fi
43619    done
43620
43621fi
43622
43623    MCA_pmix_gds_ALL_COMPONENTS="$all_components"
43624    MCA_pmix_gds_STATIC_COMPONENTS="$static_components"
43625    MCA_pmix_gds_DSO_COMPONENTS="$dso_components"
43626    MCA_pmix_gds_STATIC_LTLIBS="$static_ltlibs"
43627
43628
43629
43630
43631
43632
43633
43634    MCA_pmix_gds_ALL_SUBDIRS=
43635    for item in $all_components ; do
43636       MCA_pmix_gds_ALL_SUBDIRS="$MCA_pmix_gds_ALL_SUBDIRS mca/gds/$item"
43637    done
43638
43639
43640
43641    MCA_pmix_gds_STATIC_SUBDIRS=
43642    for item in $static_components ; do
43643       MCA_pmix_gds_STATIC_SUBDIRS="$MCA_pmix_gds_STATIC_SUBDIRS mca/gds/$item"
43644    done
43645
43646
43647
43648    MCA_pmix_gds_DSO_SUBDIRS=
43649    for item in $dso_components ; do
43650       MCA_pmix_gds_DSO_SUBDIRS="$MCA_pmix_gds_DSO_SUBDIRS mca/gds/$item"
43651    done
43652
43653
43654
43655    # Create the final .h file that will be included in the type's
43656    # top-level glue.  This lists all the static components.  We don't
43657    # need to do this for "common".
43658    if test "gds" != "common"; then
43659        cat > $outfile <<EOF
43660/*
43661 * \$HEADER\$
43662 */
43663#if defined(c_plusplus) || defined(__cplusplus)
43664extern "C" {
43665#endif
43666
43667`cat $outfile.extern`
43668
43669const pmix_mca_base_component_t *mca_gds_base_static_components[] = {
43670`cat $outfile.struct`
43671  NULL
43672};
43673
43674#if defined(c_plusplus) || defined(__cplusplus)
43675}
43676#endif
43677
43678EOF
43679        # Only replace the header file if a) it doesn't previously
43680        # exist, or b) the contents are different.  Do this to not
43681        # trigger recompilation of certain .c files just because the
43682        # timestamp changed on $outfile_real (similar to the way AC
43683        # handles AC_CONFIG_HEADER files).
43684        diff $outfile $outfile_real > /dev/null 2>&1
43685        if test "$?" != "0"; then
43686            mv $outfile $outfile_real
43687        else
43688            rm -f $outfile
43689        fi
43690    fi
43691    rm -f $outfile.struct $outfile.extern
43692
43693    unset all_components static_components dso_components outfile outfile_real
43694
43695                                 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS pdl"
43696                                 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/pdl"
43697                                 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_pdl_ALL_SUBDIRS)"
43698                                 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_pdl_DSO_SUBDIRS)"
43699                                 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_pdl_STATIC_SUBDIRS)"
43700                                 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/pdl/libmca_pdl.la"
43701                          MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_pdl_STATIC_LTLIBS)"
43702
43703    PMIX_HAVE_PDL_SUPPORT=0
43704
43705    # If --disable-dlopen was used, then have all the components fail
43706    # (we still need to configure them all so that things like "make
43707    # dist" work", but we just want the MCA system to (artificially)
43708    # conclude that it can't build any of the components.
43709    if test $PMIX_ENABLE_DLOPEN_SUPPORT -eq 0; then :
43710  want_pdl=0
43711else
43712  want_pdl=1
43713fi
43714
43715
43716    pmix_show_subsubtitle "Configuring MCA framework pdl"
43717
43718
43719
43720
43721    # setup for framework
43722    all_components=
43723    static_components=
43724    dso_components=
43725    static_ltlibs=
43726
43727    # Ensure that the directory where the #include file is to live
43728    # exists.  Need to do this for VPATH builds, because the directory
43729    # may not exist yet.  For the "common" type, it's not really a
43730    # component, so it doesn't have a base.
43731    outdir=src/mca/pdl/base
43732    as_dir=$outdir; as_fn_mkdir_p
43733
43734    # emit Makefile rule
43735    ac_config_files="$ac_config_files src/mca/pdl/Makefile"
43736
43737
43738    # remove any previously generated #include files
43739    outfile_real=$outdir/static-components.h
43740    outfile=$outfile_real.new
43741    rm -f $outfile $outfile.struct $outfile.extern
43742    touch $outfile.struct $outfile.extern
43743
43744    # print some nice messages about what we're about to do...
43745    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pdl" >&5
43746$as_echo_n "checking for no configure components in framework pdl... " >&6; }
43747    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
43748$as_echo "" >&6; }
43749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pdl" >&5
43750$as_echo_n "checking for m4 configure components in framework pdl... " >&6; }
43751    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pdlopen, plibltdl" >&5
43752$as_echo "pdlopen, plibltdl" >&6; }
43753
43754    # If there are components in the no configure list, but we're
43755    # doing one of the "special" selection logics, abort with a
43756    # reasonable message.
43757
43758
43759
43760    # run the configure logic for the no-config components
43761
43762
43763    # configure components that use built-in configuration scripts
43764
43765
43766
43767
43768
43769
43770    best_mca_component_priority=0
43771    components_looking_for_succeed=$want_pdl
43772    components_last_result=0
43773
43774
43775    pmix_show_subsubsubtitle "MCA component pdl:pdlopen (m4 configuration macro, priority 80)"
43776
43777    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed"
43778
43779
43780
43781    component_path="$srcdir/src/mca/pdl/pdlopen"
43782    want_component=0
43783
43784    # build if:
43785    # - the component type is direct and we are that component
43786    # - there is no pmix_ignore file
43787    # - there is an pmix_ignore, but there is an empty pmix_unignore
43788    # - there is an pmix_ignore, but username is in pmix_unignore
43789    if test -d $component_path ; then
43790        # decide if we want the component to be built or not.  This
43791        # is spread out because some of the logic is a little complex
43792        # and test's syntax isn't exactly the greatest.  We want to
43793        # build the component by default.
43794        want_component=1
43795        if test -f $component_path/.pmix_ignore ; then
43796            # If there is an pmix_ignore file, don't build
43797            # the component.  Note that this decision can be
43798            # overridden by the unignore logic below.
43799            want_component=0
43800        fi
43801        if test -f $component_path/.pmix_unignore ; then
43802            # if there is an empty pmix_unignore, that is
43803            # equivalent to having your userid in the unignore file.
43804            # If userid is in the file, unignore the ignore file.
43805            if test ! -s $component_path/.pmix_unignore ; then
43806                want_component=1
43807            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
43808                want_component=1
43809            fi
43810        fi
43811        # if this component type is direct and we are not it, we don't want
43812        # to be built.  Otherwise, we do want to be built.
43813        if test ! -z "$DIRECT_pdl" ; then
43814            if test "$DIRECT_pdl" = "pdlopen" ; then
43815                want_component=1
43816            else
43817                want_component=0
43818            fi
43819        fi
43820    fi
43821
43822    # if we were explicitly disabled, don't build :)
43823    if test "$DISABLE_pdl" = "1"; then :
43824  want_component=0
43825fi
43826    if test "$DISABLE_pdl_pdlopen" = "1"; then :
43827  want_component=0
43828fi
43829
43830    if test "$want_component" = "1"; then :
43831  should_build=$components_looking_for_succeed
43832else
43833  should_build=0
43834fi
43835
43836    # Allow the component to override the build mode if it really wants to.
43837    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
43838
43839    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pdl:pdlopen compile mode" >&5
43840$as_echo_n "checking for MCA component pdl:pdlopen compile mode... " >&6; }
43841    compile_mode="static"
43842    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
43843$as_echo "$compile_mode" >&6; }
43844
43845
43846    # try to configure the component
43847
43848    ac_config_files="$ac_config_files src/mca/pdl/pdlopen/Makefile"
43849
43850
43851            # Check whether --enable-dl-dlopen was given.
43852if test "${enable_dl_dlopen+set}" = set; then :
43853  enableval=$enable_dl_dlopen;
43854fi
43855
43856
43857    pmix_pdl_pdlopen_happy=no
43858    if test "$enable_dl_dlopen" != "no"; then :
43859
43860    pmix_check_package_pmix_pdl_pdlopen_save_CPPFLAGS="$CPPFLAGS"
43861    pmix_check_package_pmix_pdl_pdlopen_save_LDFLAGS="$LDFLAGS"
43862    pmix_check_package_pmix_pdl_pdlopen_save_LIBS="$LIBS"
43863
43864    pmix_check_package_pmix_pdl_pdlopen_orig_CPPFLAGS="$pmix_pdl_pdlopen_CPPFLAGS"
43865    pmix_check_package_pmix_pdl_pdlopen_orig_LDFLAGS="$pmix_pdl_pdlopen_LDFLAGS"
43866    pmix_check_package_pmix_pdl_pdlopen_orig_LIBS="$pmix_pdl_pdlopen_LIBS"
43867
43868
43869    # This is stolen from autoconf to peek under the covers to get the
43870    # cache variable for the library check.  one should not copy this
43871    # code into other places unless you want much pain and suffering
43872
43873
43874    # so this sucks, but there's no way to get through the progression
43875    # of header includes without killing off the cache variable and trying
43876    # again...
43877    unset ac_cv_header_dlfcn_h
43878    pmix_check_package_header_happy="no"
43879
43880    # get rid of the trailing slash(es)
43881    hdir_prefix=$(echo  | sed -e 'sX/*$XXg')
43882
43883    if test "$hdir_prefix" = "" || \
43884           test "$hdir_prefix" = "/usr" || \
43885           test "$hdir_prefix" = "/usr/local"; then :
43886   # try as is...
43887            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
43888$as_echo "looking for header without includes" >&6; }
43889            for ac_header in dlfcn.h
43890do :
43891  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
43892if test "x$ac_cv_header_dlfcn_h" = xyes; then :
43893  cat >>confdefs.h <<_ACEOF
43894#define HAVE_DLFCN_H 1
43895_ACEOF
43896 pmix_check_package_header_happy="yes"
43897fi
43898
43899done
43900
43901            if test "$pmix_check_package_header_happy" = "no"; then :
43902  # no go on the as is - reset the cache and try again
43903                   unset ac_cv_header_dlfcn_h
43904fi
43905fi
43906
43907    if test "$pmix_check_package_header_happy" = "no"; then :
43908  if test "$hdir_prefix" != ""; then :
43909  pmix_pdl_pdlopen_CPPFLAGS="$pmix_pdl_pdlopen_CPPFLAGS -I$hdir_prefix"
43910                  CPPFLAGS="$CPPFLAGS -I$hdir_prefix"
43911                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix" >&5
43912$as_echo "looking for header in $hdir_prefix" >&6; }
43913                  for ac_header in dlfcn.h
43914do :
43915  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
43916if test "x$ac_cv_header_dlfcn_h" = xyes; then :
43917  cat >>confdefs.h <<_ACEOF
43918#define HAVE_DLFCN_H 1
43919_ACEOF
43920 pmix_check_package_header_happy="yes"
43921fi
43922
43923done
43924
43925                  if test "$pmix_check_package_header_happy" = "no"; then :
43926  unset ac_cv_header_dlfcn_h
43927                         pmix_pdl_pdlopen_CPPFLAGS="$pmix_pdl_pdlopen_CPPFLAGS -I$hdir_prefix/include"
43928                         CPPFLAGS="$CPPFLAGS -I$hdir_prefix/include"
43929                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix/include" >&5
43930$as_echo "looking for header in $hdir_prefix/include" >&6; }
43931                         for ac_header in dlfcn.h
43932do :
43933  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
43934if test "x$ac_cv_header_dlfcn_h" = xyes; then :
43935  cat >>confdefs.h <<_ACEOF
43936#define HAVE_DLFCN_H 1
43937_ACEOF
43938 pmix_check_package_header_happy="yes"
43939fi
43940
43941done
43942
43943fi
43944fi
43945fi
43946
43947    if test "$pmix_check_package_header_happy" = "yes"; then :
43948
43949    # This is stolen from autoconf to peek under the covers to get the
43950    # cache variable for the library check.  one should not copy this
43951    # code into other places unless you want much pain and suffering
43952
43953    # see comment above
43954    unset ac_cv_lib_dl_dlopen
43955    pmix_check_package_lib_happy="no"
43956
43957    # get rid of the trailing slash(es)
43958    libdir_prefix=$(echo  | sed -e 'sX/*$XXg')
43959
43960    if test "$libdir_prefix" != ""; then :
43961  # libdir was specified - search only there
43962           pmix_pdl_pdlopen_LDFLAGS="$pmix_pdl_pdlopen_LDFLAGS -L$libdir_prefix"
43963           LDFLAGS="$LDFLAGS -L$libdir_prefix"
43964           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
43965$as_echo_n "checking for library containing dlopen... " >&6; }
43966if ${ac_cv_search_dlopen+:} false; then :
43967  $as_echo_n "(cached) " >&6
43968else
43969  ac_func_search_save_LIBS=$LIBS
43970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43971/* end confdefs.h.  */
43972
43973/* Override any GCC internal prototype to avoid an error.
43974   Use char because int might match the return type of a GCC
43975   builtin and then its argument prototype would still apply.  */
43976#ifdef __cplusplus
43977extern "C"
43978#endif
43979char dlopen ();
43980int
43981main ()
43982{
43983return dlopen ();
43984  ;
43985  return 0;
43986}
43987_ACEOF
43988for ac_lib in '' dl; do
43989  if test -z "$ac_lib"; then
43990    ac_res="none required"
43991  else
43992    ac_res=-l$ac_lib
43993    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
43994  fi
43995  if ac_fn_c_try_link "$LINENO"; then :
43996  ac_cv_search_dlopen=$ac_res
43997fi
43998rm -f core conftest.err conftest.$ac_objext \
43999    conftest$ac_exeext
44000  if ${ac_cv_search_dlopen+:} false; then :
44001  break
44002fi
44003done
44004if ${ac_cv_search_dlopen+:} false; then :
44005
44006else
44007  ac_cv_search_dlopen=no
44008fi
44009rm conftest.$ac_ext
44010LIBS=$ac_func_search_save_LIBS
44011fi
44012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
44013$as_echo "$ac_cv_search_dlopen" >&6; }
44014ac_res=$ac_cv_search_dlopen
44015if test "$ac_res" != no; then :
44016  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
44017  pmix_check_package_lib_happy="yes"
44018else
44019  pmix_check_package_lib_happy="no"
44020fi
44021
44022           if test "$pmix_check_package_lib_happy" = "no"; then :
44023  LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_save_LDFLAGS"
44024                  pmix_pdl_pdlopen_LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_orig_LDFLAGS"
44025                  unset ac_cv_lib_dl_dlopen
44026fi
44027else
44028   # libdir was not specified - go through search path
44029            # get rid of the trailing slash(es)
44030            libdir_prefix=$(echo  | sed -e 'sX/*$XXg')
44031
44032            # first try standard locations as otherwise our
44033            # searches with libdir_prefix locations might come
44034            # back positive and unnecessarily add an LDFLAG
44035            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
44036$as_echo "looking for library without search path" >&6; }
44037            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
44038$as_echo_n "checking for library containing dlopen... " >&6; }
44039if ${ac_cv_search_dlopen+:} false; then :
44040  $as_echo_n "(cached) " >&6
44041else
44042  ac_func_search_save_LIBS=$LIBS
44043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44044/* end confdefs.h.  */
44045
44046/* Override any GCC internal prototype to avoid an error.
44047   Use char because int might match the return type of a GCC
44048   builtin and then its argument prototype would still apply.  */
44049#ifdef __cplusplus
44050extern "C"
44051#endif
44052char dlopen ();
44053int
44054main ()
44055{
44056return dlopen ();
44057  ;
44058  return 0;
44059}
44060_ACEOF
44061for ac_lib in '' dl; do
44062  if test -z "$ac_lib"; then
44063    ac_res="none required"
44064  else
44065    ac_res=-l$ac_lib
44066    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
44067  fi
44068  if ac_fn_c_try_link "$LINENO"; then :
44069  ac_cv_search_dlopen=$ac_res
44070fi
44071rm -f core conftest.err conftest.$ac_objext \
44072    conftest$ac_exeext
44073  if ${ac_cv_search_dlopen+:} false; then :
44074  break
44075fi
44076done
44077if ${ac_cv_search_dlopen+:} false; then :
44078
44079else
44080  ac_cv_search_dlopen=no
44081fi
44082rm conftest.$ac_ext
44083LIBS=$ac_func_search_save_LIBS
44084fi
44085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
44086$as_echo "$ac_cv_search_dlopen" >&6; }
44087ac_res=$ac_cv_search_dlopen
44088if test "$ac_res" != no; then :
44089  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
44090  pmix_check_package_lib_happy="yes"
44091else
44092  pmix_check_package_lib_happy="no"
44093fi
44094
44095            if test "$pmix_check_package_lib_happy" = "no"; then :
44096   # no go on the as is..  see what happens later...
44097                   LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_save_LDFLAGS"
44098                   pmix_pdl_pdlopen_LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_orig_LDFLAGS"
44099                   unset ac_cv_lib_dl_dlopen
44100fi
44101
44102           if test "$pmix_check_package_lib_happy" = "no"; then :
44103  # if we didn't find it, check the libdir_prefix/lib64 directory
44104               if test "$libdir_prefix" != "" && \
44105                       test "$libdir_prefix" != "/usr" && \
44106                       test "$libdir_prefix" != "/usr/local"; then :
44107  pmix_pdl_pdlopen_LDFLAGS="$pmix_pdl_pdlopen_LDFLAGS -L$libdir_prefix/lib64"
44108                     LDFLAGS="$LDFLAGS -L$libdir_prefix/lib64"
44109                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib64" >&5
44110$as_echo "looking for library in $libdir_prefix/lib64" >&6; }
44111                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
44112$as_echo_n "checking for library containing dlopen... " >&6; }
44113if ${ac_cv_search_dlopen+:} false; then :
44114  $as_echo_n "(cached) " >&6
44115else
44116  ac_func_search_save_LIBS=$LIBS
44117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44118/* end confdefs.h.  */
44119
44120/* Override any GCC internal prototype to avoid an error.
44121   Use char because int might match the return type of a GCC
44122   builtin and then its argument prototype would still apply.  */
44123#ifdef __cplusplus
44124extern "C"
44125#endif
44126char dlopen ();
44127int
44128main ()
44129{
44130return dlopen ();
44131  ;
44132  return 0;
44133}
44134_ACEOF
44135for ac_lib in '' dl; do
44136  if test -z "$ac_lib"; then
44137    ac_res="none required"
44138  else
44139    ac_res=-l$ac_lib
44140    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
44141  fi
44142  if ac_fn_c_try_link "$LINENO"; then :
44143  ac_cv_search_dlopen=$ac_res
44144fi
44145rm -f core conftest.err conftest.$ac_objext \
44146    conftest$ac_exeext
44147  if ${ac_cv_search_dlopen+:} false; then :
44148  break
44149fi
44150done
44151if ${ac_cv_search_dlopen+:} false; then :
44152
44153else
44154  ac_cv_search_dlopen=no
44155fi
44156rm conftest.$ac_ext
44157LIBS=$ac_func_search_save_LIBS
44158fi
44159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
44160$as_echo "$ac_cv_search_dlopen" >&6; }
44161ac_res=$ac_cv_search_dlopen
44162if test "$ac_res" != no; then :
44163  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
44164  pmix_check_package_lib_happy="yes"
44165else
44166  pmix_check_package_lib_happy="no"
44167fi
44168
44169                     if test "$pmix_check_package_lib_happy" = "no"; then :
44170   # no go on the as is..  see what happens later...
44171                          LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_save_LDFLAGS"
44172                          pmix_pdl_pdlopen_LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_orig_LDFLAGS"
44173                          unset ac_cv_lib_dl_dlopen
44174fi
44175fi
44176fi
44177
44178           if test "$pmix_check_package_lib_happy" = "no"; then :
44179  # if we still haven't found it, check the libdir_prefix/lib directory
44180               if test "$libdir_prefix" != "" && \
44181                       test "$libdir_prefix" != "/usr" && \
44182                       test "$libdir_prefix" != "/usr/local"; then :
44183  pmix_pdl_pdlopen_LDFLAGS="$pmix_pdl_pdlopen_LDFLAGS -L$libdir_prefix/lib"
44184                     LDFLAGS="$LDFLAGS -L$libdir_prefix/lib"
44185                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib" >&5
44186$as_echo "looking for library in $libdir_prefix/lib" >&6; }
44187                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
44188$as_echo_n "checking for library containing dlopen... " >&6; }
44189if ${ac_cv_search_dlopen+:} false; then :
44190  $as_echo_n "(cached) " >&6
44191else
44192  ac_func_search_save_LIBS=$LIBS
44193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44194/* end confdefs.h.  */
44195
44196/* Override any GCC internal prototype to avoid an error.
44197   Use char because int might match the return type of a GCC
44198   builtin and then its argument prototype would still apply.  */
44199#ifdef __cplusplus
44200extern "C"
44201#endif
44202char dlopen ();
44203int
44204main ()
44205{
44206return dlopen ();
44207  ;
44208  return 0;
44209}
44210_ACEOF
44211for ac_lib in '' dl; do
44212  if test -z "$ac_lib"; then
44213    ac_res="none required"
44214  else
44215    ac_res=-l$ac_lib
44216    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
44217  fi
44218  if ac_fn_c_try_link "$LINENO"; then :
44219  ac_cv_search_dlopen=$ac_res
44220fi
44221rm -f core conftest.err conftest.$ac_objext \
44222    conftest$ac_exeext
44223  if ${ac_cv_search_dlopen+:} false; then :
44224  break
44225fi
44226done
44227if ${ac_cv_search_dlopen+:} false; then :
44228
44229else
44230  ac_cv_search_dlopen=no
44231fi
44232rm conftest.$ac_ext
44233LIBS=$ac_func_search_save_LIBS
44234fi
44235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
44236$as_echo "$ac_cv_search_dlopen" >&6; }
44237ac_res=$ac_cv_search_dlopen
44238if test "$ac_res" != no; then :
44239  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
44240  pmix_check_package_lib_happy="yes"
44241else
44242  pmix_check_package_lib_happy="no"
44243fi
44244
44245                     if test "$pmix_check_package_lib_happy" = "no"; then :
44246   # no go on the as is..  see what happens later...
44247                          LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_save_LDFLAGS"
44248                          pmix_pdl_pdlopen_LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_orig_LDFLAGS"
44249                          unset ac_cv_lib_dl_dlopen
44250fi
44251fi
44252fi
44253
44254fi
44255
44256
44257    if test "$pmix_check_package_lib_happy" = "yes"; then :
44258  pmix_pdl_pdlopen_LIBS="-ldl "
44259           pmix_check_package_happy="yes"
44260else
44261  pmix_check_package_happy="no"
44262fi
44263    if test "$pmix_check_package_lib_happy" = "yes"; then :
44264   # The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function]
44265           if test "$ac_cv_search_dlopen" != "no" &&
44266                  test "$ac_cv_search_dlopen" != "none required"; then :
44267  pmix_pdl_pdlopen_LIBS="$ac_cv_search_dlopen "
44268else
44269  pmix_pdl_pdlopen_LIBS=""
44270fi
44271           pmix_check_package_happy="yes"
44272else
44273  pmix_check_package_happy="no"
44274fi
44275
44276
44277else
44278  pmix_check_package_happy="no"
44279fi
44280
44281    unset pmix_check_package_header_happy
44282
44283
44284
44285    if test "$pmix_check_package_happy" = "yes"; then :
44286  pmix_pdl_pdlopen_happy=yes
44287else
44288  pmix_pdl_pdlopen_CPPFLAGS="$pmix_check_package_pmix_pdl_pdlopen_orig_CPPFLAGS"
44289           pmix_pdl_pdlopen_LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_orig_LDFLAGS"
44290           pmix_pdl_pdlopen_LIBS="$pmix_check_package_pmix_pdl_pdlopen_orig_LIBS"
44291           pmix_pdl_pdlopen_happy=no
44292fi
44293
44294    CPPFLAGS="$pmix_check_package_pmix_pdl_pdlopen_save_CPPFLAGS"
44295    LDFLAGS="$pmix_check_package_pmix_pdl_pdlopen_save_LDFLAGS"
44296    LIBS="$pmix_check_package_pmix_pdl_pdlopen_save_LIBS"
44297
44298
44299fi
44300
44301    if test "$pmix_pdl_pdlopen_happy" = "yes"; then :
44302  pmix_pdl_pdlopen_ADD_LIBS=$pmix_pdl_pdlopen_LIBS
44303           should_build=$should_build
44304else
44305  should_build=0
44306fi
44307
44308
44309
44310    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build"
44311
44312    if test "$should_build" = "1"; then :
44313
44314
44315
44316    # See if it dropped an output file for us to pick up some
44317    # shell variables in.
44318    infile="$srcdir/src/mca/pdl/pdlopen/post_configure.sh"
44319
44320    # Add this subdir to the mast list of all MCA component subdirs
44321    all_components="$all_components pdlopen"
44322
44323    if test "$compile_mode" = "dso" ; then
44324        dso_components="$dso_components pdlopen"
44325    else
44326        if test "pdl" = "common"; then
44327            # Static libraries in "common" frameworks are installed, and
44328            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
44329            # set.
44330            static_ltlibs="mca/pdl/pdlopen/lib${PMIX_LIB_PREFIX}mca_pdl_pdlopen.la $static_ltlibs"
44331        else
44332            # Other frameworks do not have to obey the
44333            # $FRAMEWORK_LIB_PREFIX prefix.
44334            static_ltlibs="mca/pdl/pdlopen/libmca_pdl_pdlopen.la $static_ltlibs"
44335        fi
44336        echo "extern const pmix_mca_base_component_t mca_pdl_pdlopen_component;" >> $outfile.extern
44337        echo "  &mca_pdl_pdlopen_component, " >> $outfile.struct
44338        static_components="$static_components pdlopen"
44339    fi
44340
44341    # Output pretty results
44342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pdl:pdlopen can compile" >&5
44343$as_echo_n "checking if MCA component pdl:pdlopen can compile... " >&6; }
44344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44345$as_echo "yes" >&6; }
44346
44347                        if test -f $infile; then
44348        # check for direct call header to include.  This will be
44349        # AC_SUBSTed later.
44350        if test "$DIRECT_pdl" = "pdlopen" ; then
44351            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
44352                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
44353                str="MCA_pmix_pdl_DIRECT_CALL_HEADER=$line"
44354                eval $str
44355            else
44356as_fn_error $? "*** pdl component pdlopen was supposed to be direct-called, but
44357*** does not appear to support direct calling.
44358*** Aborting" "$LINENO" 5
44359            fi
44360        fi
44361    else
44362        # were we supposed to have found something in the
44363        # post_configure.sh, but the file didn't exist?
44364        if test "$DIRECT_pdl" = "pdlopen" ; then
44365as_fn_error $? "*** pdl component pdlopen was supposed to be direct-called, but
44366*** does not appear to support direct calling.
44367*** Aborting" "$LINENO" 5
44368        fi
44369    fi
44370
44371    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
44372    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
44373    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
44374    # component didn't have it's own configure script (in which case,
44375    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
44376    # have to do this if the component is building dynamically,
44377    # because it will link against these (without a dependency from
44378    # libmpi.so to these flags)
44379    if test "$compile_mode" = "static"; then
44380        if test "$pdl_pdlopen_WRAPPER_EXTRA_LDFLAGS" = ""; then :
44381
44382
44383
44384    # Is the private index set?  If not, set it.
44385    if test "x$pmix_scope_index" = "x"; then
44386        pmix_scope_index=1
44387    fi
44388
44389    # First, check to see if any of these variables are already set.
44390    # This is a simple sanity check to ensure we're not already
44391    # overwriting pre-existing variables (that have a non-empty
44392    # value).  It's not a perfect check, but at least it's something.
44393    for pmix_var in pmix_tmp pmix_append; do
44394        pmix_str="pmix_str=\"\$$pmix_var\""
44395        eval $pmix_str
44396
44397        if test "x$pmix_str" != "x"; then
44398            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
44399$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
44400            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
44401$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
44402            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
44403$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
44404            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
44405$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
44406            as_fn_error $? "Cannot continue" "$LINENO" 5
44407        fi
44408    done
44409
44410    # Ok, we passed the simple sanity check.  Save all these names so
44411    # that we can unset them at the end of the scope.
44412    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
44413    eval $pmix_str
44414    unset pmix_str
44415
44416    env | grep pmix_scope
44417    pmix_scope_index=`expr $pmix_scope_index + 1`
44418
44419
44420    for arg in $pdl_pdlopen_LDFLAGS; do
44421        pmix_tmp=`echo $arg | cut -c1-2`
44422        pmix_append=1
44423        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
44424  for val in ${mca_wrapper_extra_ldflags}; do
44425                   if test "x$val" = "x$arg"; then :
44426  pmix_append=0
44427fi
44428               done
44429fi
44430        if test "$pmix_append" = "1"; then :
44431  if test -z "$mca_wrapper_extra_ldflags"; then :
44432  mca_wrapper_extra_ldflags=$arg
44433else
44434  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
44435fi
44436fi
44437    done
44438
44439
44440    # Unwind the index
44441    pmix_scope_index=`expr $pmix_scope_index - 1`
44442    pmix_scope_test=`expr $pmix_scope_index \> 0`
44443    if test "$pmix_scope_test" = "0"; then
44444        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
44445$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
44446        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
44447$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
44448        as_fn_error $? "Cannot continue" "$LINENO" 5
44449    fi
44450
44451    # Get the variable names from that index
44452    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
44453    eval $pmix_str
44454
44455    # Iterate over all the variables and unset them all
44456    for pmix_var in $pmix_str; do
44457        unset $pmix_var
44458    done
44459
44460
44461else
44462
44463
44464
44465    # Is the private index set?  If not, set it.
44466    if test "x$pmix_scope_index" = "x"; then
44467        pmix_scope_index=1
44468    fi
44469
44470    # First, check to see if any of these variables are already set.
44471    # This is a simple sanity check to ensure we're not already
44472    # overwriting pre-existing variables (that have a non-empty
44473    # value).  It's not a perfect check, but at least it's something.
44474    for pmix_var in pmix_tmp pmix_append; do
44475        pmix_str="pmix_str=\"\$$pmix_var\""
44476        eval $pmix_str
44477
44478        if test "x$pmix_str" != "x"; then
44479            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
44480$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
44481            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
44482$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
44483            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
44484$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
44485            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
44486$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
44487            as_fn_error $? "Cannot continue" "$LINENO" 5
44488        fi
44489    done
44490
44491    # Ok, we passed the simple sanity check.  Save all these names so
44492    # that we can unset them at the end of the scope.
44493    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
44494    eval $pmix_str
44495    unset pmix_str
44496
44497    env | grep pmix_scope
44498    pmix_scope_index=`expr $pmix_scope_index + 1`
44499
44500
44501    for arg in $pdl_pdlopen_WRAPPER_EXTRA_LDFLAGS; do
44502        pmix_tmp=`echo $arg | cut -c1-2`
44503        pmix_append=1
44504        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
44505  for val in ${mca_wrapper_extra_ldflags}; do
44506                   if test "x$val" = "x$arg"; then :
44507  pmix_append=0
44508fi
44509               done
44510fi
44511        if test "$pmix_append" = "1"; then :
44512  if test -z "$mca_wrapper_extra_ldflags"; then :
44513  mca_wrapper_extra_ldflags=$arg
44514else
44515  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
44516fi
44517fi
44518    done
44519
44520
44521    # Unwind the index
44522    pmix_scope_index=`expr $pmix_scope_index - 1`
44523    pmix_scope_test=`expr $pmix_scope_index \> 0`
44524    if test "$pmix_scope_test" = "0"; then
44525        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
44526$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
44527        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
44528$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
44529        as_fn_error $? "Cannot continue" "$LINENO" 5
44530    fi
44531
44532    # Get the variable names from that index
44533    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
44534    eval $pmix_str
44535
44536    # Iterate over all the variables and unset them all
44537    for pmix_var in $pmix_str; do
44538        unset $pmix_var
44539    done
44540
44541
44542fi
44543                        if test "$pdl_pdlopen_WRAPPER_EXTRA_LIBS" = ""; then :
44544
44545
44546
44547    # Is the private index set?  If not, set it.
44548    if test "x$pmix_scope_index" = "x"; then
44549        pmix_scope_index=1
44550    fi
44551
44552    # First, check to see if any of these variables are already set.
44553    # This is a simple sanity check to ensure we're not already
44554    # overwriting pre-existing variables (that have a non-empty
44555    # value).  It's not a perfect check, but at least it's something.
44556    for pmix_var in pmix_tmp pmix_append; do
44557        pmix_str="pmix_str=\"\$$pmix_var\""
44558        eval $pmix_str
44559
44560        if test "x$pmix_str" != "x"; then
44561            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
44562$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
44563            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
44564$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
44565            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
44566$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
44567            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
44568$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
44569            as_fn_error $? "Cannot continue" "$LINENO" 5
44570        fi
44571    done
44572
44573    # Ok, we passed the simple sanity check.  Save all these names so
44574    # that we can unset them at the end of the scope.
44575    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
44576    eval $pmix_str
44577    unset pmix_str
44578
44579    env | grep pmix_scope
44580    pmix_scope_index=`expr $pmix_scope_index + 1`
44581
44582
44583    for arg in $pdl_pdlopen_LIBS; do
44584        pmix_tmp=`echo $arg | cut -c1-2`
44585        pmix_append=1
44586        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
44587  for val in ${mca_wrapper_extra_libs}; do
44588                   if test "x$val" = "x$arg"; then :
44589  pmix_append=0
44590fi
44591               done
44592fi
44593        if test "$pmix_append" = "1"; then :
44594  if test -z "$mca_wrapper_extra_libs"; then :
44595  mca_wrapper_extra_libs=$arg
44596else
44597  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
44598fi
44599fi
44600    done
44601
44602
44603    # Unwind the index
44604    pmix_scope_index=`expr $pmix_scope_index - 1`
44605    pmix_scope_test=`expr $pmix_scope_index \> 0`
44606    if test "$pmix_scope_test" = "0"; then
44607        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
44608$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
44609        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
44610$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
44611        as_fn_error $? "Cannot continue" "$LINENO" 5
44612    fi
44613
44614    # Get the variable names from that index
44615    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
44616    eval $pmix_str
44617
44618    # Iterate over all the variables and unset them all
44619    for pmix_var in $pmix_str; do
44620        unset $pmix_var
44621    done
44622
44623
44624else
44625
44626
44627
44628    # Is the private index set?  If not, set it.
44629    if test "x$pmix_scope_index" = "x"; then
44630        pmix_scope_index=1
44631    fi
44632
44633    # First, check to see if any of these variables are already set.
44634    # This is a simple sanity check to ensure we're not already
44635    # overwriting pre-existing variables (that have a non-empty
44636    # value).  It's not a perfect check, but at least it's something.
44637    for pmix_var in pmix_tmp pmix_append; do
44638        pmix_str="pmix_str=\"\$$pmix_var\""
44639        eval $pmix_str
44640
44641        if test "x$pmix_str" != "x"; then
44642            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
44643$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
44644            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
44645$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
44646            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
44647$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
44648            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
44649$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
44650            as_fn_error $? "Cannot continue" "$LINENO" 5
44651        fi
44652    done
44653
44654    # Ok, we passed the simple sanity check.  Save all these names so
44655    # that we can unset them at the end of the scope.
44656    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
44657    eval $pmix_str
44658    unset pmix_str
44659
44660    env | grep pmix_scope
44661    pmix_scope_index=`expr $pmix_scope_index + 1`
44662
44663
44664    for arg in $pdl_pdlopen_WRAPPER_EXTRA_LIBS; do
44665        pmix_tmp=`echo $arg | cut -c1-2`
44666        pmix_append=1
44667        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
44668  for val in ${mca_wrapper_extra_libs}; do
44669                   if test "x$val" = "x$arg"; then :
44670  pmix_append=0
44671fi
44672               done
44673fi
44674        if test "$pmix_append" = "1"; then :
44675  if test -z "$mca_wrapper_extra_libs"; then :
44676  mca_wrapper_extra_libs=$arg
44677else
44678  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
44679fi
44680fi
44681    done
44682
44683
44684    # Unwind the index
44685    pmix_scope_index=`expr $pmix_scope_index - 1`
44686    pmix_scope_test=`expr $pmix_scope_index \> 0`
44687    if test "$pmix_scope_test" = "0"; then
44688        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
44689$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
44690        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
44691$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
44692        as_fn_error $? "Cannot continue" "$LINENO" 5
44693    fi
44694
44695    # Get the variable names from that index
44696    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
44697    eval $pmix_str
44698
44699    # Iterate over all the variables and unset them all
44700    for pmix_var in $pmix_str; do
44701        unset $pmix_var
44702    done
44703
44704
44705fi
44706
44707    fi
44708
44709    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
44710    # component can never be used in a STOP_AT_FIRST framework, we
44711    # don't have to implement the else clause in the literal check...
44712    if test "$pdl_pdlopen_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
44713  stop_at_first=1
44714            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
44715  if test "$with_devel_headers" = "yes"; then :
44716
44717
44718
44719    # Is the private index set?  If not, set it.
44720    if test "x$pmix_scope_index" = "x"; then
44721        pmix_scope_index=1
44722    fi
44723
44724    # First, check to see if any of these variables are already set.
44725    # This is a simple sanity check to ensure we're not already
44726    # overwriting pre-existing variables (that have a non-empty
44727    # value).  It's not a perfect check, but at least it's something.
44728    for pmix_var in pmix_tmp pmix_append; do
44729        pmix_str="pmix_str=\"\$$pmix_var\""
44730        eval $pmix_str
44731
44732        if test "x$pmix_str" != "x"; then
44733            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
44734$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
44735            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
44736$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
44737            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
44738$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
44739            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
44740$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
44741            as_fn_error $? "Cannot continue" "$LINENO" 5
44742        fi
44743    done
44744
44745    # Ok, we passed the simple sanity check.  Save all these names so
44746    # that we can unset them at the end of the scope.
44747    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
44748    eval $pmix_str
44749    unset pmix_str
44750
44751    env | grep pmix_scope
44752    pmix_scope_index=`expr $pmix_scope_index + 1`
44753
44754
44755    for arg in $pdl_pdlopen_WRAPPER_EXTRA_CPPFLAGS; do
44756        pmix_tmp=`echo $arg | cut -c1-2`
44757        pmix_append=1
44758        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
44759  for val in ${mca_wrapper_extra_cppflags}; do
44760                   if test "x$val" = "x$arg"; then :
44761  pmix_append=0
44762fi
44763               done
44764fi
44765        if test "$pmix_append" = "1"; then :
44766  if test -z "$mca_wrapper_extra_cppflags"; then :
44767  mca_wrapper_extra_cppflags=$arg
44768else
44769  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
44770fi
44771fi
44772    done
44773
44774
44775    # Unwind the index
44776    pmix_scope_index=`expr $pmix_scope_index - 1`
44777    pmix_scope_test=`expr $pmix_scope_index \> 0`
44778    if test "$pmix_scope_test" = "0"; then
44779        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
44780$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
44781        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
44782$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
44783        as_fn_error $? "Cannot continue" "$LINENO" 5
44784    fi
44785
44786    # Get the variable names from that index
44787    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
44788    eval $pmix_str
44789
44790    # Iterate over all the variables and unset them all
44791    for pmix_var in $pmix_str; do
44792        unset $pmix_var
44793    done
44794
44795
44796fi
44797else
44798  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pdl_pdlopen_WRAPPER_EXTRA_CPPFLAGS ($pdl_pdlopen_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
44799$as_echo "$as_me: WARNING: ignoring pdl_pdlopen_WRAPPER_EXTRA_CPPFLAGS ($pdl_pdlopen_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
44800fi
44801fi
44802
44803else
44804
44805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pdl:pdlopen can compile" >&5
44806$as_echo_n "checking if MCA component pdl:pdlopen can compile... " >&6; }
44807    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44808$as_echo "no" >&6; }
44809
44810    # If this component was requested as the default for this
44811    # type, then abort.
44812    if test "$with_pdl" = "pdlopen" ; then
44813        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pdlopen\" failed to configure properly" >&5
44814$as_echo "$as_me: WARNING: MCA component \"pdlopen\" failed to configure properly" >&2;}
44815        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
44816$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
44817        as_fn_error $? "Cannot continue" "$LINENO" 5
44818    fi
44819
44820    if test ! -z "$DIRECT_pdl" ; then
44821        if test "$DIRECT_pdl" = "pdlopen" ; then
44822            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"pdlopen\" failed to configure properly" >&5
44823$as_echo "$as_me: WARNING: MCA component \"pdlopen\" failed to configure properly" >&2;}
44824            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
44825$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
44826            as_fn_error $? "Cannot continue" "$LINENO" 5
44827        fi
44828    fi
44829
44830           # add component to all component list
44831           all_components="$all_components pdlopen"
44832fi
44833
44834
44835    # If we won, then do all the rest of the setup
44836    if test "$should_build" = "1"; then :
44837
44838           # Add some stuff to CPPFLAGS so that the rest of the source
44839           # tree can be built
44840           LDFLAGS="$LDFLAGS $pmix_pdl_pdlopen_ADD_LDFLAGS"
44841           LIBS="$LIBS $pmix_pdl_pdlopen_ADD_LIBS"
44842
44843fi
44844
44845
44846    # set the AM_CONDITIONAL on how we should build
44847    if test "$compile_mode" = "dso"; then :
44848  BUILD_pmix_pdl_pdlopen_DSO=1
44849else
44850  BUILD_pmix_pdl_pdlopen_DSO=0
44851fi
44852     if test "$BUILD_pmix_pdl_pdlopen_DSO" = "1"; then
44853  MCA_BUILD_pmix_pdl_pdlopen_DSO_TRUE=
44854  MCA_BUILD_pmix_pdl_pdlopen_DSO_FALSE='#'
44855else
44856  MCA_BUILD_pmix_pdl_pdlopen_DSO_TRUE='#'
44857  MCA_BUILD_pmix_pdl_pdlopen_DSO_FALSE=
44858fi
44859
44860
44861    if test "$should_build" = "1"; then :
44862  components_last_result=1
44863else
44864  components_last_result=0
44865fi
44866
44867    unset compile_mode
44868
44869                   if test $components_last_result -eq 1; then :
44870  components_looking_for_succeed=0
44871fi
44872
44873
44874
44875    pmix_show_subsubsubtitle "MCA component pdl:plibltdl (m4 configuration macro, priority 50)"
44876
44877    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed"
44878
44879
44880
44881    component_path="$srcdir/src/mca/pdl/plibltdl"
44882    want_component=0
44883
44884    # build if:
44885    # - the component type is direct and we are that component
44886    # - there is no pmix_ignore file
44887    # - there is an pmix_ignore, but there is an empty pmix_unignore
44888    # - there is an pmix_ignore, but username is in pmix_unignore
44889    if test -d $component_path ; then
44890        # decide if we want the component to be built or not.  This
44891        # is spread out because some of the logic is a little complex
44892        # and test's syntax isn't exactly the greatest.  We want to
44893        # build the component by default.
44894        want_component=1
44895        if test -f $component_path/.pmix_ignore ; then
44896            # If there is an pmix_ignore file, don't build
44897            # the component.  Note that this decision can be
44898            # overridden by the unignore logic below.
44899            want_component=0
44900        fi
44901        if test -f $component_path/.pmix_unignore ; then
44902            # if there is an empty pmix_unignore, that is
44903            # equivalent to having your userid in the unignore file.
44904            # If userid is in the file, unignore the ignore file.
44905            if test ! -s $component_path/.pmix_unignore ; then
44906                want_component=1
44907            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
44908                want_component=1
44909            fi
44910        fi
44911        # if this component type is direct and we are not it, we don't want
44912        # to be built.  Otherwise, we do want to be built.
44913        if test ! -z "$DIRECT_pdl" ; then
44914            if test "$DIRECT_pdl" = "plibltdl" ; then
44915                want_component=1
44916            else
44917                want_component=0
44918            fi
44919        fi
44920    fi
44921
44922    # if we were explicitly disabled, don't build :)
44923    if test "$DISABLE_pdl" = "1"; then :
44924  want_component=0
44925fi
44926    if test "$DISABLE_pdl_plibltdl" = "1"; then :
44927  want_component=0
44928fi
44929
44930    if test "$want_component" = "1"; then :
44931  should_build=$components_looking_for_succeed
44932else
44933  should_build=0
44934fi
44935
44936    # Allow the component to override the build mode if it really wants to.
44937    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
44938
44939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pdl:plibltdl compile mode" >&5
44940$as_echo_n "checking for MCA component pdl:plibltdl compile mode... " >&6; }
44941    compile_mode="static"
44942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
44943$as_echo "$compile_mode" >&6; }
44944
44945
44946    # try to configure the component
44947
44948
44949
44950    # Is the private index set?  If not, set it.
44951    if test "x$pmix_scope_index" = "x"; then
44952        pmix_scope_index=1
44953    fi
44954
44955    # First, check to see if any of these variables are already set.
44956    # This is a simple sanity check to ensure we're not already
44957    # overwriting pre-existing variables (that have a non-empty
44958    # value).  It's not a perfect check, but at least it's something.
44959    for pmix_var in CPPFLAGS_save LDFLAGS_save LIBS_save; do
44960        pmix_str="pmix_str=\"\$$pmix_var\""
44961        eval $pmix_str
44962
44963        if test "x$pmix_str" != "x"; then
44964            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
44965$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
44966            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
44967$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
44968            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
44969$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
44970            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
44971$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
44972            as_fn_error $? "Cannot continue" "$LINENO" 5
44973        fi
44974    done
44975
44976    # Ok, we passed the simple sanity check.  Save all these names so
44977    # that we can unset them at the end of the scope.
44978    pmix_str="pmix_scope_$pmix_scope_index=\"CPPFLAGS_save LDFLAGS_save LIBS_save\""
44979    eval $pmix_str
44980    unset pmix_str
44981
44982    env | grep pmix_scope
44983    pmix_scope_index=`expr $pmix_scope_index + 1`
44984
44985    ac_config_files="$ac_config_files src/mca/pdl/plibltdl/Makefile"
44986
44987
44988    # Add --with options
44989
44990# Check whether --with-plibltdl was given.
44991if test "${with_plibltdl+set}" = set; then :
44992  withval=$with_plibltdl;
44993fi
44994
44995
44996# Check whether --with-libltdl-libdir was given.
44997if test "${with_libltdl_libdir+set}" = set; then :
44998  withval=$with_libltdl_libdir;
44999fi
45000
45001
45002    # Sanity check the --with values
45003
45004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plibltdl value" >&5
45005$as_echo_n "checking --with-plibltdl value... " >&6; }
45006    if test "$with_libltdl" = "yes" || test "$with_libltdl" = "no" || test "x$with_libltdl" = "x"; then :
45007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
45008$as_echo "simple ok (unspecified)" >&6; }
45009else
45010  if test ! -d "$with_libltdl"; then :
45011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
45012$as_echo "not found" >&6; }
45013                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_libltdl not found" >&5
45014$as_echo "$as_me: WARNING: Directory $with_libltdl not found" >&2;}
45015                  as_fn_error $? "Cannot continue" "$LINENO" 5
45016else
45017  if test "x`ls $with_libltdl/include/ltdl.h 2> /dev/null`" = "x"; then :
45018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
45019$as_echo "not found" >&6; }
45020                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_libltdl/include/ltdl.h not found" >&5
45021$as_echo "$as_me: WARNING: Expected file $with_libltdl/include/ltdl.h not found" >&2;}
45022                         as_fn_error $? "Cannot continue" "$LINENO" 5
45023else
45024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_libltdl)" >&5
45025$as_echo "sanity check ok ($with_libltdl)" >&6; }
45026
45027fi
45028
45029
45030fi
45031
45032
45033fi
45034
45035
45036    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plibltdl-libdir value" >&5
45037$as_echo_n "checking --with-plibltdl-libdir value... " >&6; }
45038    if test "$with_libltdl_libdir" = "yes" || test "$with_libltdl_libdir" = "no" || test "x$with_libltdl_libdir" = "x"; then :
45039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: simple ok (unspecified)" >&5
45040$as_echo "simple ok (unspecified)" >&6; }
45041else
45042  if test ! -d "$with_libltdl_libdir"; then :
45043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
45044$as_echo "not found" >&6; }
45045                  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Directory $with_libltdl_libdir not found" >&5
45046$as_echo "$as_me: WARNING: Directory $with_libltdl_libdir not found" >&2;}
45047                  as_fn_error $? "Cannot continue" "$LINENO" 5
45048else
45049  if test "x`ls $with_libltdl_libdir/libltdl.* 2> /dev/null`" = "x"; then :
45050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
45051$as_echo "not found" >&6; }
45052                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Expected file $with_libltdl_libdir/libltdl.* not found" >&5
45053$as_echo "$as_me: WARNING: Expected file $with_libltdl_libdir/libltdl.* not found" >&2;}
45054                         as_fn_error $? "Cannot continue" "$LINENO" 5
45055else
45056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: sanity check ok ($with_libltdl_libdir)" >&5
45057$as_echo "sanity check ok ($with_libltdl_libdir)" >&6; }
45058
45059fi
45060
45061
45062fi
45063
45064
45065fi
45066
45067
45068    # Defaults
45069    pmix_check_plibltdl_dir_msg="compiler default"
45070    pmix_check_plibltdl_libdir_msg="linker default"
45071
45072    # Save directory names if supplied
45073    if test ! -z "$with_libltdl" && test "$with_libltdl" != "yes"; then :
45074  pmix_check_plibltdl_dir=$with_libltdl
45075           pmix_check_plibltdl_dir_msg="$pmix_check_plibltdl_dir (from --with-libltdl)"
45076fi
45077    if test ! -z "$with_libltdl_libdir" && test "$with_libltdl_libdir" != "yes"; then :
45078  pmix_check_plibltdl_libdir=$with_libltdl_libdir
45079           pmix_check_plibltdl_libdir_msg="$pmix_check_plibltdl_libdir (from --with-libltdl-libdir)"
45080fi
45081
45082    pmix_pdl_plibltdl_happy=no
45083    if test "$with_plibltdl" != "no"; then :
45084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl dir" >&5
45085$as_echo_n "checking for libltdl dir... " >&6; }
45086           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_check_plibltdl_dir_msg" >&5
45087$as_echo "$pmix_check_plibltdl_dir_msg" >&6; }
45088           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl library dir" >&5
45089$as_echo_n "checking for libltdl library dir... " >&6; }
45090           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pmix_check_plibltdl_libdir_msg" >&5
45091$as_echo "$pmix_check_plibltdl_libdir_msg" >&6; }
45092
45093
45094    pmix_check_package_pmix_pdl_plibltdl_save_CPPFLAGS="$CPPFLAGS"
45095    pmix_check_package_pmix_pdl_plibltdl_save_LDFLAGS="$LDFLAGS"
45096    pmix_check_package_pmix_pdl_plibltdl_save_LIBS="$LIBS"
45097
45098    pmix_check_package_pmix_pdl_plibltdl_orig_CPPFLAGS="$pmix_pdl_plibltdl_CPPFLAGS"
45099    pmix_check_package_pmix_pdl_plibltdl_orig_LDFLAGS="$pmix_pdl_plibltdl_LDFLAGS"
45100    pmix_check_package_pmix_pdl_plibltdl_orig_LIBS="$pmix_pdl_plibltdl_LIBS"
45101
45102
45103    # This is stolen from autoconf to peek under the covers to get the
45104    # cache variable for the library check.  one should not copy this
45105    # code into other places unless you want much pain and suffering
45106
45107
45108    # so this sucks, but there's no way to get through the progression
45109    # of header includes without killing off the cache variable and trying
45110    # again...
45111    unset ac_cv_header_ltdl_h
45112    pmix_check_package_header_happy="no"
45113
45114    # get rid of the trailing slash(es)
45115    hdir_prefix=$(echo $pmix_check_plibltdl_dir | sed -e 'sX/*$XXg')
45116
45117    if test "$hdir_prefix" = "" || \
45118           test "$hdir_prefix" = "/usr" || \
45119           test "$hdir_prefix" = "/usr/local"; then :
45120   # try as is...
45121            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
45122$as_echo "looking for header without includes" >&6; }
45123            for ac_header in ltdl.h
45124do :
45125  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
45126if test "x$ac_cv_header_ltdl_h" = xyes; then :
45127  cat >>confdefs.h <<_ACEOF
45128#define HAVE_LTDL_H 1
45129_ACEOF
45130 pmix_check_package_header_happy="yes"
45131fi
45132
45133done
45134
45135            if test "$pmix_check_package_header_happy" = "no"; then :
45136  # no go on the as is - reset the cache and try again
45137                   unset ac_cv_header_ltdl_h
45138fi
45139fi
45140
45141    if test "$pmix_check_package_header_happy" = "no"; then :
45142  if test "$hdir_prefix" != ""; then :
45143  pmix_pdl_plibltdl_CPPFLAGS="$pmix_pdl_plibltdl_CPPFLAGS -I$hdir_prefix"
45144                  CPPFLAGS="$CPPFLAGS -I$hdir_prefix"
45145                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix" >&5
45146$as_echo "looking for header in $hdir_prefix" >&6; }
45147                  for ac_header in ltdl.h
45148do :
45149  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
45150if test "x$ac_cv_header_ltdl_h" = xyes; then :
45151  cat >>confdefs.h <<_ACEOF
45152#define HAVE_LTDL_H 1
45153_ACEOF
45154 pmix_check_package_header_happy="yes"
45155fi
45156
45157done
45158
45159                  if test "$pmix_check_package_header_happy" = "no"; then :
45160  unset ac_cv_header_ltdl_h
45161                         pmix_pdl_plibltdl_CPPFLAGS="$pmix_pdl_plibltdl_CPPFLAGS -I$hdir_prefix/include"
45162                         CPPFLAGS="$CPPFLAGS -I$hdir_prefix/include"
45163                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix/include" >&5
45164$as_echo "looking for header in $hdir_prefix/include" >&6; }
45165                         for ac_header in ltdl.h
45166do :
45167  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
45168if test "x$ac_cv_header_ltdl_h" = xyes; then :
45169  cat >>confdefs.h <<_ACEOF
45170#define HAVE_LTDL_H 1
45171_ACEOF
45172 pmix_check_package_header_happy="yes"
45173fi
45174
45175done
45176
45177fi
45178fi
45179fi
45180
45181    if test "$pmix_check_package_header_happy" = "yes"; then :
45182
45183    # This is stolen from autoconf to peek under the covers to get the
45184    # cache variable for the library check.  one should not copy this
45185    # code into other places unless you want much pain and suffering
45186
45187    # see comment above
45188    unset ac_cv_lib_ltdl_lt_dlopen
45189    pmix_check_package_lib_happy="no"
45190
45191    # get rid of the trailing slash(es)
45192    libdir_prefix=$(echo $pmix_check_plibltdl_libdir | sed -e 'sX/*$XXg')
45193
45194    if test "$libdir_prefix" != ""; then :
45195  # libdir was specified - search only there
45196           pmix_pdl_plibltdl_LDFLAGS="$pmix_pdl_plibltdl_LDFLAGS -L$libdir_prefix"
45197           LDFLAGS="$LDFLAGS -L$libdir_prefix"
45198           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lt_dlopen" >&5
45199$as_echo_n "checking for library containing lt_dlopen... " >&6; }
45200if ${ac_cv_search_lt_dlopen+:} false; then :
45201  $as_echo_n "(cached) " >&6
45202else
45203  ac_func_search_save_LIBS=$LIBS
45204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45205/* end confdefs.h.  */
45206
45207/* Override any GCC internal prototype to avoid an error.
45208   Use char because int might match the return type of a GCC
45209   builtin and then its argument prototype would still apply.  */
45210#ifdef __cplusplus
45211extern "C"
45212#endif
45213char lt_dlopen ();
45214int
45215main ()
45216{
45217return lt_dlopen ();
45218  ;
45219  return 0;
45220}
45221_ACEOF
45222for ac_lib in '' ltdl; do
45223  if test -z "$ac_lib"; then
45224    ac_res="none required"
45225  else
45226    ac_res=-l$ac_lib
45227    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
45228  fi
45229  if ac_fn_c_try_link "$LINENO"; then :
45230  ac_cv_search_lt_dlopen=$ac_res
45231fi
45232rm -f core conftest.err conftest.$ac_objext \
45233    conftest$ac_exeext
45234  if ${ac_cv_search_lt_dlopen+:} false; then :
45235  break
45236fi
45237done
45238if ${ac_cv_search_lt_dlopen+:} false; then :
45239
45240else
45241  ac_cv_search_lt_dlopen=no
45242fi
45243rm conftest.$ac_ext
45244LIBS=$ac_func_search_save_LIBS
45245fi
45246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5
45247$as_echo "$ac_cv_search_lt_dlopen" >&6; }
45248ac_res=$ac_cv_search_lt_dlopen
45249if test "$ac_res" != no; then :
45250  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
45251  pmix_check_package_lib_happy="yes"
45252else
45253  pmix_check_package_lib_happy="no"
45254fi
45255
45256           if test "$pmix_check_package_lib_happy" = "no"; then :
45257  LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_save_LDFLAGS"
45258                  pmix_pdl_plibltdl_LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_orig_LDFLAGS"
45259                  unset ac_cv_lib_ltdl_lt_dlopen
45260fi
45261else
45262   # libdir was not specified - go through search path
45263            # get rid of the trailing slash(es)
45264            libdir_prefix=$(echo $pmix_check_plibltdl_dir | sed -e 'sX/*$XXg')
45265
45266            # first try standard locations as otherwise our
45267            # searches with libdir_prefix locations might come
45268            # back positive and unnecessarily add an LDFLAG
45269            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
45270$as_echo "looking for library without search path" >&6; }
45271            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lt_dlopen" >&5
45272$as_echo_n "checking for library containing lt_dlopen... " >&6; }
45273if ${ac_cv_search_lt_dlopen+:} false; then :
45274  $as_echo_n "(cached) " >&6
45275else
45276  ac_func_search_save_LIBS=$LIBS
45277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45278/* end confdefs.h.  */
45279
45280/* Override any GCC internal prototype to avoid an error.
45281   Use char because int might match the return type of a GCC
45282   builtin and then its argument prototype would still apply.  */
45283#ifdef __cplusplus
45284extern "C"
45285#endif
45286char lt_dlopen ();
45287int
45288main ()
45289{
45290return lt_dlopen ();
45291  ;
45292  return 0;
45293}
45294_ACEOF
45295for ac_lib in '' ltdl; do
45296  if test -z "$ac_lib"; then
45297    ac_res="none required"
45298  else
45299    ac_res=-l$ac_lib
45300    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
45301  fi
45302  if ac_fn_c_try_link "$LINENO"; then :
45303  ac_cv_search_lt_dlopen=$ac_res
45304fi
45305rm -f core conftest.err conftest.$ac_objext \
45306    conftest$ac_exeext
45307  if ${ac_cv_search_lt_dlopen+:} false; then :
45308  break
45309fi
45310done
45311if ${ac_cv_search_lt_dlopen+:} false; then :
45312
45313else
45314  ac_cv_search_lt_dlopen=no
45315fi
45316rm conftest.$ac_ext
45317LIBS=$ac_func_search_save_LIBS
45318fi
45319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5
45320$as_echo "$ac_cv_search_lt_dlopen" >&6; }
45321ac_res=$ac_cv_search_lt_dlopen
45322if test "$ac_res" != no; then :
45323  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
45324  pmix_check_package_lib_happy="yes"
45325else
45326  pmix_check_package_lib_happy="no"
45327fi
45328
45329            if test "$pmix_check_package_lib_happy" = "no"; then :
45330   # no go on the as is..  see what happens later...
45331                   LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_save_LDFLAGS"
45332                   pmix_pdl_plibltdl_LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_orig_LDFLAGS"
45333                   unset ac_cv_lib_ltdl_lt_dlopen
45334fi
45335
45336           if test "$pmix_check_package_lib_happy" = "no"; then :
45337  # if we didn't find it, check the libdir_prefix/lib64 directory
45338               if test "$libdir_prefix" != "" && \
45339                       test "$libdir_prefix" != "/usr" && \
45340                       test "$libdir_prefix" != "/usr/local"; then :
45341  pmix_pdl_plibltdl_LDFLAGS="$pmix_pdl_plibltdl_LDFLAGS -L$libdir_prefix/lib64"
45342                     LDFLAGS="$LDFLAGS -L$libdir_prefix/lib64"
45343                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib64" >&5
45344$as_echo "looking for library in $libdir_prefix/lib64" >&6; }
45345                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lt_dlopen" >&5
45346$as_echo_n "checking for library containing lt_dlopen... " >&6; }
45347if ${ac_cv_search_lt_dlopen+:} false; then :
45348  $as_echo_n "(cached) " >&6
45349else
45350  ac_func_search_save_LIBS=$LIBS
45351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45352/* end confdefs.h.  */
45353
45354/* Override any GCC internal prototype to avoid an error.
45355   Use char because int might match the return type of a GCC
45356   builtin and then its argument prototype would still apply.  */
45357#ifdef __cplusplus
45358extern "C"
45359#endif
45360char lt_dlopen ();
45361int
45362main ()
45363{
45364return lt_dlopen ();
45365  ;
45366  return 0;
45367}
45368_ACEOF
45369for ac_lib in '' ltdl; do
45370  if test -z "$ac_lib"; then
45371    ac_res="none required"
45372  else
45373    ac_res=-l$ac_lib
45374    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
45375  fi
45376  if ac_fn_c_try_link "$LINENO"; then :
45377  ac_cv_search_lt_dlopen=$ac_res
45378fi
45379rm -f core conftest.err conftest.$ac_objext \
45380    conftest$ac_exeext
45381  if ${ac_cv_search_lt_dlopen+:} false; then :
45382  break
45383fi
45384done
45385if ${ac_cv_search_lt_dlopen+:} false; then :
45386
45387else
45388  ac_cv_search_lt_dlopen=no
45389fi
45390rm conftest.$ac_ext
45391LIBS=$ac_func_search_save_LIBS
45392fi
45393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5
45394$as_echo "$ac_cv_search_lt_dlopen" >&6; }
45395ac_res=$ac_cv_search_lt_dlopen
45396if test "$ac_res" != no; then :
45397  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
45398  pmix_check_package_lib_happy="yes"
45399else
45400  pmix_check_package_lib_happy="no"
45401fi
45402
45403                     if test "$pmix_check_package_lib_happy" = "no"; then :
45404   # no go on the as is..  see what happens later...
45405                          LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_save_LDFLAGS"
45406                          pmix_pdl_plibltdl_LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_orig_LDFLAGS"
45407                          unset ac_cv_lib_ltdl_lt_dlopen
45408fi
45409fi
45410fi
45411
45412           if test "$pmix_check_package_lib_happy" = "no"; then :
45413  # if we still haven't found it, check the libdir_prefix/lib directory
45414               if test "$libdir_prefix" != "" && \
45415                       test "$libdir_prefix" != "/usr" && \
45416                       test "$libdir_prefix" != "/usr/local"; then :
45417  pmix_pdl_plibltdl_LDFLAGS="$pmix_pdl_plibltdl_LDFLAGS -L$libdir_prefix/lib"
45418                     LDFLAGS="$LDFLAGS -L$libdir_prefix/lib"
45419                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib" >&5
45420$as_echo "looking for library in $libdir_prefix/lib" >&6; }
45421                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lt_dlopen" >&5
45422$as_echo_n "checking for library containing lt_dlopen... " >&6; }
45423if ${ac_cv_search_lt_dlopen+:} false; then :
45424  $as_echo_n "(cached) " >&6
45425else
45426  ac_func_search_save_LIBS=$LIBS
45427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45428/* end confdefs.h.  */
45429
45430/* Override any GCC internal prototype to avoid an error.
45431   Use char because int might match the return type of a GCC
45432   builtin and then its argument prototype would still apply.  */
45433#ifdef __cplusplus
45434extern "C"
45435#endif
45436char lt_dlopen ();
45437int
45438main ()
45439{
45440return lt_dlopen ();
45441  ;
45442  return 0;
45443}
45444_ACEOF
45445for ac_lib in '' ltdl; do
45446  if test -z "$ac_lib"; then
45447    ac_res="none required"
45448  else
45449    ac_res=-l$ac_lib
45450    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
45451  fi
45452  if ac_fn_c_try_link "$LINENO"; then :
45453  ac_cv_search_lt_dlopen=$ac_res
45454fi
45455rm -f core conftest.err conftest.$ac_objext \
45456    conftest$ac_exeext
45457  if ${ac_cv_search_lt_dlopen+:} false; then :
45458  break
45459fi
45460done
45461if ${ac_cv_search_lt_dlopen+:} false; then :
45462
45463else
45464  ac_cv_search_lt_dlopen=no
45465fi
45466rm conftest.$ac_ext
45467LIBS=$ac_func_search_save_LIBS
45468fi
45469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lt_dlopen" >&5
45470$as_echo "$ac_cv_search_lt_dlopen" >&6; }
45471ac_res=$ac_cv_search_lt_dlopen
45472if test "$ac_res" != no; then :
45473  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
45474  pmix_check_package_lib_happy="yes"
45475else
45476  pmix_check_package_lib_happy="no"
45477fi
45478
45479                     if test "$pmix_check_package_lib_happy" = "no"; then :
45480   # no go on the as is..  see what happens later...
45481                          LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_save_LDFLAGS"
45482                          pmix_pdl_plibltdl_LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_orig_LDFLAGS"
45483                          unset ac_cv_lib_ltdl_lt_dlopen
45484fi
45485fi
45486fi
45487
45488fi
45489
45490
45491    if test "$pmix_check_package_lib_happy" = "yes"; then :
45492  pmix_pdl_plibltdl_LIBS="-lltdl "
45493           pmix_check_package_happy="yes"
45494else
45495  pmix_check_package_happy="no"
45496fi
45497    if test "$pmix_check_package_lib_happy" = "yes"; then :
45498   # The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function]
45499           if test "$ac_cv_search_lt_dlopen" != "no" &&
45500                  test "$ac_cv_search_lt_dlopen" != "none required"; then :
45501  pmix_pdl_plibltdl_LIBS="$ac_cv_search_lt_dlopen "
45502else
45503  pmix_pdl_plibltdl_LIBS=""
45504fi
45505           pmix_check_package_happy="yes"
45506else
45507  pmix_check_package_happy="no"
45508fi
45509
45510
45511else
45512  pmix_check_package_happy="no"
45513fi
45514
45515    unset pmix_check_package_header_happy
45516
45517
45518
45519    if test "$pmix_check_package_happy" = "yes"; then :
45520  pmix_pdl_plibltdl_happy=yes
45521else
45522  pmix_pdl_plibltdl_CPPFLAGS="$pmix_check_package_pmix_pdl_plibltdl_orig_CPPFLAGS"
45523           pmix_pdl_plibltdl_LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_orig_LDFLAGS"
45524           pmix_pdl_plibltdl_LIBS="$pmix_check_package_pmix_pdl_plibltdl_orig_LIBS"
45525           pmix_pdl_plibltdl_happy=no
45526fi
45527
45528    CPPFLAGS="$pmix_check_package_pmix_pdl_plibltdl_save_CPPFLAGS"
45529    LDFLAGS="$pmix_check_package_pmix_pdl_plibltdl_save_LDFLAGS"
45530    LIBS="$pmix_check_package_pmix_pdl_plibltdl_save_LIBS"
45531
45532
45533fi
45534
45535    # If we have plibltdl, do we have lt_dladvise?
45536    pmix_pdl_plibltdl_have_lt_dladvise=0
45537    if test "$pmix_pdl_plibltdl_happy" = "yes"; then :
45538  CPPFLAGS_save=$CPPFLAGS
45539           LDFLAGS_save=$LDFLAGS
45540           LIBS_save=$LIBS
45541
45542           CPPFLAGS="$pmix_pdl_plibltdl_CPPFLAGS $CPPFLAGS"
45543           LDFLAGS="$pmix_pdl_plibltdl_LDFLAGS $LDFLAGS"
45544           LIBS="$pmix_pdl_plibltdl_LIBS $LIBS"
45545           ac_fn_c_check_func "$LINENO" "lt_dladvise_init" "ac_cv_func_lt_dladvise_init"
45546if test "x$ac_cv_func_lt_dladvise_init" = xyes; then :
45547  pmix_pdl_plibltdl_have_lt_dladvise=1
45548fi
45549
45550           CPPFLAGS=$CPPFLAGS_save
45551           LDFLAGS=$LDFLAGS_save
45552           LIBS=$LIBS_save
45553
45554fi
45555
45556cat >>confdefs.h <<_ACEOF
45557#define PMIX_PDL_PLIBLTDL_HAVE_LT_DLADVISE $pmix_pdl_plibltdl_have_lt_dladvise
45558_ACEOF
45559
45560
45561    if test "$pmix_pdl_plibltdl_happy" = "yes"; then :
45562  pmix_pdl_plibltdl_ADD_CPPFLAGS=$pmix_pdl_plibltdl_CPPFLAGS
45563           pmix_pdl_plibltdl_ADD_LDFLAGS=$pmix_pdl_plibltdl_LDFLAGS
45564           pmix_pdl_plibltdl_ADD_LIBS=$pmix_pdl_plibltdl_LIBS
45565           should_build=$should_build
45566else
45567  if test ! -z "$with_libltdl" && \
45568                  test "$with_libltdl" != "no"; then :
45569  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl support requested (via --with-libltdl) but not found." >&5
45570$as_echo "$as_me: WARNING: libltdl support requested (via --with-libltdl) but not found." >&2;}
45571                  as_fn_error $? "Cannot continue." "$LINENO" 5
45572fi
45573           should_build=0
45574fi
45575
45576
45577
45578
45579
45580
45581    # Unwind the index
45582    pmix_scope_index=`expr $pmix_scope_index - 1`
45583    pmix_scope_test=`expr $pmix_scope_index \> 0`
45584    if test "$pmix_scope_test" = "0"; then
45585        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
45586$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
45587        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
45588$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
45589        as_fn_error $? "Cannot continue" "$LINENO" 5
45590    fi
45591
45592    # Get the variable names from that index
45593    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
45594    eval $pmix_str
45595
45596    # Iterate over all the variables and unset them all
45597    for pmix_var in $pmix_str; do
45598        unset $pmix_var
45599    done
45600
45601
45602    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build"
45603
45604    if test "$should_build" = "1"; then :
45605
45606
45607
45608    # See if it dropped an output file for us to pick up some
45609    # shell variables in.
45610    infile="$srcdir/src/mca/pdl/plibltdl/post_configure.sh"
45611
45612    # Add this subdir to the mast list of all MCA component subdirs
45613    all_components="$all_components plibltdl"
45614
45615    if test "$compile_mode" = "dso" ; then
45616        dso_components="$dso_components plibltdl"
45617    else
45618        if test "pdl" = "common"; then
45619            # Static libraries in "common" frameworks are installed, and
45620            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
45621            # set.
45622            static_ltlibs="mca/pdl/plibltdl/lib${PMIX_LIB_PREFIX}mca_pdl_plibltdl.la $static_ltlibs"
45623        else
45624            # Other frameworks do not have to obey the
45625            # $FRAMEWORK_LIB_PREFIX prefix.
45626            static_ltlibs="mca/pdl/plibltdl/libmca_pdl_plibltdl.la $static_ltlibs"
45627        fi
45628        echo "extern const pmix_mca_base_component_t mca_pdl_plibltdl_component;" >> $outfile.extern
45629        echo "  &mca_pdl_plibltdl_component, " >> $outfile.struct
45630        static_components="$static_components plibltdl"
45631    fi
45632
45633    # Output pretty results
45634    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pdl:plibltdl can compile" >&5
45635$as_echo_n "checking if MCA component pdl:plibltdl can compile... " >&6; }
45636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45637$as_echo "yes" >&6; }
45638
45639                        if test -f $infile; then
45640        # check for direct call header to include.  This will be
45641        # AC_SUBSTed later.
45642        if test "$DIRECT_pdl" = "plibltdl" ; then
45643            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
45644                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
45645                str="MCA_pmix_pdl_DIRECT_CALL_HEADER=$line"
45646                eval $str
45647            else
45648as_fn_error $? "*** pdl component plibltdl was supposed to be direct-called, but
45649*** does not appear to support direct calling.
45650*** Aborting" "$LINENO" 5
45651            fi
45652        fi
45653    else
45654        # were we supposed to have found something in the
45655        # post_configure.sh, but the file didn't exist?
45656        if test "$DIRECT_pdl" = "plibltdl" ; then
45657as_fn_error $? "*** pdl component plibltdl was supposed to be direct-called, but
45658*** does not appear to support direct calling.
45659*** Aborting" "$LINENO" 5
45660        fi
45661    fi
45662
45663    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
45664    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
45665    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
45666    # component didn't have it's own configure script (in which case,
45667    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
45668    # have to do this if the component is building dynamically,
45669    # because it will link against these (without a dependency from
45670    # libmpi.so to these flags)
45671    if test "$compile_mode" = "static"; then
45672        if test "$pdl_plibltdl_WRAPPER_EXTRA_LDFLAGS" = ""; then :
45673
45674
45675
45676    # Is the private index set?  If not, set it.
45677    if test "x$pmix_scope_index" = "x"; then
45678        pmix_scope_index=1
45679    fi
45680
45681    # First, check to see if any of these variables are already set.
45682    # This is a simple sanity check to ensure we're not already
45683    # overwriting pre-existing variables (that have a non-empty
45684    # value).  It's not a perfect check, but at least it's something.
45685    for pmix_var in pmix_tmp pmix_append; do
45686        pmix_str="pmix_str=\"\$$pmix_var\""
45687        eval $pmix_str
45688
45689        if test "x$pmix_str" != "x"; then
45690            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
45691$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
45692            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
45693$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
45694            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
45695$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
45696            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
45697$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
45698            as_fn_error $? "Cannot continue" "$LINENO" 5
45699        fi
45700    done
45701
45702    # Ok, we passed the simple sanity check.  Save all these names so
45703    # that we can unset them at the end of the scope.
45704    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
45705    eval $pmix_str
45706    unset pmix_str
45707
45708    env | grep pmix_scope
45709    pmix_scope_index=`expr $pmix_scope_index + 1`
45710
45711
45712    for arg in $pdl_plibltdl_LDFLAGS; do
45713        pmix_tmp=`echo $arg | cut -c1-2`
45714        pmix_append=1
45715        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
45716  for val in ${mca_wrapper_extra_ldflags}; do
45717                   if test "x$val" = "x$arg"; then :
45718  pmix_append=0
45719fi
45720               done
45721fi
45722        if test "$pmix_append" = "1"; then :
45723  if test -z "$mca_wrapper_extra_ldflags"; then :
45724  mca_wrapper_extra_ldflags=$arg
45725else
45726  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
45727fi
45728fi
45729    done
45730
45731
45732    # Unwind the index
45733    pmix_scope_index=`expr $pmix_scope_index - 1`
45734    pmix_scope_test=`expr $pmix_scope_index \> 0`
45735    if test "$pmix_scope_test" = "0"; then
45736        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
45737$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
45738        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
45739$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
45740        as_fn_error $? "Cannot continue" "$LINENO" 5
45741    fi
45742
45743    # Get the variable names from that index
45744    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
45745    eval $pmix_str
45746
45747    # Iterate over all the variables and unset them all
45748    for pmix_var in $pmix_str; do
45749        unset $pmix_var
45750    done
45751
45752
45753else
45754
45755
45756
45757    # Is the private index set?  If not, set it.
45758    if test "x$pmix_scope_index" = "x"; then
45759        pmix_scope_index=1
45760    fi
45761
45762    # First, check to see if any of these variables are already set.
45763    # This is a simple sanity check to ensure we're not already
45764    # overwriting pre-existing variables (that have a non-empty
45765    # value).  It's not a perfect check, but at least it's something.
45766    for pmix_var in pmix_tmp pmix_append; do
45767        pmix_str="pmix_str=\"\$$pmix_var\""
45768        eval $pmix_str
45769
45770        if test "x$pmix_str" != "x"; then
45771            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
45772$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
45773            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
45774$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
45775            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
45776$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
45777            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
45778$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
45779            as_fn_error $? "Cannot continue" "$LINENO" 5
45780        fi
45781    done
45782
45783    # Ok, we passed the simple sanity check.  Save all these names so
45784    # that we can unset them at the end of the scope.
45785    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
45786    eval $pmix_str
45787    unset pmix_str
45788
45789    env | grep pmix_scope
45790    pmix_scope_index=`expr $pmix_scope_index + 1`
45791
45792
45793    for arg in $pdl_plibltdl_WRAPPER_EXTRA_LDFLAGS; do
45794        pmix_tmp=`echo $arg | cut -c1-2`
45795        pmix_append=1
45796        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
45797  for val in ${mca_wrapper_extra_ldflags}; do
45798                   if test "x$val" = "x$arg"; then :
45799  pmix_append=0
45800fi
45801               done
45802fi
45803        if test "$pmix_append" = "1"; then :
45804  if test -z "$mca_wrapper_extra_ldflags"; then :
45805  mca_wrapper_extra_ldflags=$arg
45806else
45807  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
45808fi
45809fi
45810    done
45811
45812
45813    # Unwind the index
45814    pmix_scope_index=`expr $pmix_scope_index - 1`
45815    pmix_scope_test=`expr $pmix_scope_index \> 0`
45816    if test "$pmix_scope_test" = "0"; then
45817        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
45818$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
45819        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
45820$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
45821        as_fn_error $? "Cannot continue" "$LINENO" 5
45822    fi
45823
45824    # Get the variable names from that index
45825    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
45826    eval $pmix_str
45827
45828    # Iterate over all the variables and unset them all
45829    for pmix_var in $pmix_str; do
45830        unset $pmix_var
45831    done
45832
45833
45834fi
45835                        if test "$pdl_plibltdl_WRAPPER_EXTRA_LIBS" = ""; then :
45836
45837
45838
45839    # Is the private index set?  If not, set it.
45840    if test "x$pmix_scope_index" = "x"; then
45841        pmix_scope_index=1
45842    fi
45843
45844    # First, check to see if any of these variables are already set.
45845    # This is a simple sanity check to ensure we're not already
45846    # overwriting pre-existing variables (that have a non-empty
45847    # value).  It's not a perfect check, but at least it's something.
45848    for pmix_var in pmix_tmp pmix_append; do
45849        pmix_str="pmix_str=\"\$$pmix_var\""
45850        eval $pmix_str
45851
45852        if test "x$pmix_str" != "x"; then
45853            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
45854$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
45855            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
45856$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
45857            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
45858$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
45859            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
45860$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
45861            as_fn_error $? "Cannot continue" "$LINENO" 5
45862        fi
45863    done
45864
45865    # Ok, we passed the simple sanity check.  Save all these names so
45866    # that we can unset them at the end of the scope.
45867    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
45868    eval $pmix_str
45869    unset pmix_str
45870
45871    env | grep pmix_scope
45872    pmix_scope_index=`expr $pmix_scope_index + 1`
45873
45874
45875    for arg in $pdl_plibltdl_LIBS; do
45876        pmix_tmp=`echo $arg | cut -c1-2`
45877        pmix_append=1
45878        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
45879  for val in ${mca_wrapper_extra_libs}; do
45880                   if test "x$val" = "x$arg"; then :
45881  pmix_append=0
45882fi
45883               done
45884fi
45885        if test "$pmix_append" = "1"; then :
45886  if test -z "$mca_wrapper_extra_libs"; then :
45887  mca_wrapper_extra_libs=$arg
45888else
45889  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
45890fi
45891fi
45892    done
45893
45894
45895    # Unwind the index
45896    pmix_scope_index=`expr $pmix_scope_index - 1`
45897    pmix_scope_test=`expr $pmix_scope_index \> 0`
45898    if test "$pmix_scope_test" = "0"; then
45899        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
45900$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
45901        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
45902$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
45903        as_fn_error $? "Cannot continue" "$LINENO" 5
45904    fi
45905
45906    # Get the variable names from that index
45907    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
45908    eval $pmix_str
45909
45910    # Iterate over all the variables and unset them all
45911    for pmix_var in $pmix_str; do
45912        unset $pmix_var
45913    done
45914
45915
45916else
45917
45918
45919
45920    # Is the private index set?  If not, set it.
45921    if test "x$pmix_scope_index" = "x"; then
45922        pmix_scope_index=1
45923    fi
45924
45925    # First, check to see if any of these variables are already set.
45926    # This is a simple sanity check to ensure we're not already
45927    # overwriting pre-existing variables (that have a non-empty
45928    # value).  It's not a perfect check, but at least it's something.
45929    for pmix_var in pmix_tmp pmix_append; do
45930        pmix_str="pmix_str=\"\$$pmix_var\""
45931        eval $pmix_str
45932
45933        if test "x$pmix_str" != "x"; then
45934            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
45935$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
45936            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
45937$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
45938            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
45939$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
45940            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
45941$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
45942            as_fn_error $? "Cannot continue" "$LINENO" 5
45943        fi
45944    done
45945
45946    # Ok, we passed the simple sanity check.  Save all these names so
45947    # that we can unset them at the end of the scope.
45948    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
45949    eval $pmix_str
45950    unset pmix_str
45951
45952    env | grep pmix_scope
45953    pmix_scope_index=`expr $pmix_scope_index + 1`
45954
45955
45956    for arg in $pdl_plibltdl_WRAPPER_EXTRA_LIBS; do
45957        pmix_tmp=`echo $arg | cut -c1-2`
45958        pmix_append=1
45959        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
45960  for val in ${mca_wrapper_extra_libs}; do
45961                   if test "x$val" = "x$arg"; then :
45962  pmix_append=0
45963fi
45964               done
45965fi
45966        if test "$pmix_append" = "1"; then :
45967  if test -z "$mca_wrapper_extra_libs"; then :
45968  mca_wrapper_extra_libs=$arg
45969else
45970  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
45971fi
45972fi
45973    done
45974
45975
45976    # Unwind the index
45977    pmix_scope_index=`expr $pmix_scope_index - 1`
45978    pmix_scope_test=`expr $pmix_scope_index \> 0`
45979    if test "$pmix_scope_test" = "0"; then
45980        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
45981$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
45982        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
45983$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
45984        as_fn_error $? "Cannot continue" "$LINENO" 5
45985    fi
45986
45987    # Get the variable names from that index
45988    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
45989    eval $pmix_str
45990
45991    # Iterate over all the variables and unset them all
45992    for pmix_var in $pmix_str; do
45993        unset $pmix_var
45994    done
45995
45996
45997fi
45998
45999    fi
46000
46001    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
46002    # component can never be used in a STOP_AT_FIRST framework, we
46003    # don't have to implement the else clause in the literal check...
46004    if test "$pdl_plibltdl_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
46005  stop_at_first=1
46006            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
46007  if test "$with_devel_headers" = "yes"; then :
46008
46009
46010
46011    # Is the private index set?  If not, set it.
46012    if test "x$pmix_scope_index" = "x"; then
46013        pmix_scope_index=1
46014    fi
46015
46016    # First, check to see if any of these variables are already set.
46017    # This is a simple sanity check to ensure we're not already
46018    # overwriting pre-existing variables (that have a non-empty
46019    # value).  It's not a perfect check, but at least it's something.
46020    for pmix_var in pmix_tmp pmix_append; do
46021        pmix_str="pmix_str=\"\$$pmix_var\""
46022        eval $pmix_str
46023
46024        if test "x$pmix_str" != "x"; then
46025            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
46026$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
46027            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
46028$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
46029            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
46030$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
46031            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
46032$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
46033            as_fn_error $? "Cannot continue" "$LINENO" 5
46034        fi
46035    done
46036
46037    # Ok, we passed the simple sanity check.  Save all these names so
46038    # that we can unset them at the end of the scope.
46039    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
46040    eval $pmix_str
46041    unset pmix_str
46042
46043    env | grep pmix_scope
46044    pmix_scope_index=`expr $pmix_scope_index + 1`
46045
46046
46047    for arg in $pdl_plibltdl_WRAPPER_EXTRA_CPPFLAGS; do
46048        pmix_tmp=`echo $arg | cut -c1-2`
46049        pmix_append=1
46050        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
46051  for val in ${mca_wrapper_extra_cppflags}; do
46052                   if test "x$val" = "x$arg"; then :
46053  pmix_append=0
46054fi
46055               done
46056fi
46057        if test "$pmix_append" = "1"; then :
46058  if test -z "$mca_wrapper_extra_cppflags"; then :
46059  mca_wrapper_extra_cppflags=$arg
46060else
46061  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
46062fi
46063fi
46064    done
46065
46066
46067    # Unwind the index
46068    pmix_scope_index=`expr $pmix_scope_index - 1`
46069    pmix_scope_test=`expr $pmix_scope_index \> 0`
46070    if test "$pmix_scope_test" = "0"; then
46071        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
46072$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
46073        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
46074$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
46075        as_fn_error $? "Cannot continue" "$LINENO" 5
46076    fi
46077
46078    # Get the variable names from that index
46079    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
46080    eval $pmix_str
46081
46082    # Iterate over all the variables and unset them all
46083    for pmix_var in $pmix_str; do
46084        unset $pmix_var
46085    done
46086
46087
46088fi
46089else
46090  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pdl_plibltdl_WRAPPER_EXTRA_CPPFLAGS ($pdl_plibltdl_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
46091$as_echo "$as_me: WARNING: ignoring pdl_plibltdl_WRAPPER_EXTRA_CPPFLAGS ($pdl_plibltdl_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
46092fi
46093fi
46094
46095else
46096
46097    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pdl:plibltdl can compile" >&5
46098$as_echo_n "checking if MCA component pdl:plibltdl can compile... " >&6; }
46099    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46100$as_echo "no" >&6; }
46101
46102    # If this component was requested as the default for this
46103    # type, then abort.
46104    if test "$with_pdl" = "plibltdl" ; then
46105        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"plibltdl\" failed to configure properly" >&5
46106$as_echo "$as_me: WARNING: MCA component \"plibltdl\" failed to configure properly" >&2;}
46107        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
46108$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
46109        as_fn_error $? "Cannot continue" "$LINENO" 5
46110    fi
46111
46112    if test ! -z "$DIRECT_pdl" ; then
46113        if test "$DIRECT_pdl" = "plibltdl" ; then
46114            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"plibltdl\" failed to configure properly" >&5
46115$as_echo "$as_me: WARNING: MCA component \"plibltdl\" failed to configure properly" >&2;}
46116            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
46117$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
46118            as_fn_error $? "Cannot continue" "$LINENO" 5
46119        fi
46120    fi
46121
46122           # add component to all component list
46123           all_components="$all_components plibltdl"
46124fi
46125
46126
46127    # If we won, then do all the rest of the setup
46128    if test "$should_build" = "1"; then :
46129
46130           # Add some stuff to CPPFLAGS so that the rest of the source
46131           # tree can be built
46132           LDFLAGS="$LDFLAGS $pmix_pdl_plibltdl_ADD_LDFLAGS"
46133           LIBS="$LIBS $pmix_pdl_plibltdl_ADD_LIBS"
46134
46135fi
46136
46137
46138    # set the AM_CONDITIONAL on how we should build
46139    if test "$compile_mode" = "dso"; then :
46140  BUILD_pmix_pdl_plibltdl_DSO=1
46141else
46142  BUILD_pmix_pdl_plibltdl_DSO=0
46143fi
46144     if test "$BUILD_pmix_pdl_plibltdl_DSO" = "1"; then
46145  MCA_BUILD_pmix_pdl_plibltdl_DSO_TRUE=
46146  MCA_BUILD_pmix_pdl_plibltdl_DSO_FALSE='#'
46147else
46148  MCA_BUILD_pmix_pdl_plibltdl_DSO_TRUE='#'
46149  MCA_BUILD_pmix_pdl_plibltdl_DSO_FALSE=
46150fi
46151
46152
46153    if test "$should_build" = "1"; then :
46154  components_last_result=1
46155else
46156  components_last_result=0
46157fi
46158
46159    unset compile_mode
46160
46161                   if test $components_last_result -eq 1; then :
46162  components_looking_for_succeed=0
46163fi
46164
46165
46166
46167    # configure components that provide their own configure script.
46168    # It would be really hard to run these for "find first that
46169    # works", so we don't :)
46170
46171
46172    MCA_pmix_pdl_ALL_COMPONENTS="$all_components"
46173    MCA_pmix_pdl_STATIC_COMPONENTS="$static_components"
46174    MCA_pmix_pdl_DSO_COMPONENTS="$dso_components"
46175    MCA_pmix_pdl_STATIC_LTLIBS="$static_ltlibs"
46176
46177
46178
46179
46180
46181
46182
46183    MCA_pmix_pdl_ALL_SUBDIRS=
46184    for item in $all_components ; do
46185       MCA_pmix_pdl_ALL_SUBDIRS="$MCA_pmix_pdl_ALL_SUBDIRS mca/pdl/$item"
46186    done
46187
46188
46189
46190    MCA_pmix_pdl_STATIC_SUBDIRS=
46191    for item in $static_components ; do
46192       MCA_pmix_pdl_STATIC_SUBDIRS="$MCA_pmix_pdl_STATIC_SUBDIRS mca/pdl/$item"
46193    done
46194
46195
46196
46197    MCA_pmix_pdl_DSO_SUBDIRS=
46198    for item in $dso_components ; do
46199       MCA_pmix_pdl_DSO_SUBDIRS="$MCA_pmix_pdl_DSO_SUBDIRS mca/pdl/$item"
46200    done
46201
46202
46203
46204    # Create the final .h file that will be included in the type's
46205    # top-level glue.  This lists all the static components.  We don't
46206    # need to do this for "common".
46207    if test "pdl" != "common"; then
46208        cat > $outfile <<EOF
46209/*
46210 * \$HEADER\$
46211 */
46212#if defined(c_plusplus) || defined(__cplusplus)
46213extern "C" {
46214#endif
46215
46216`cat $outfile.extern`
46217
46218const pmix_mca_base_component_t *mca_pdl_base_static_components[] = {
46219`cat $outfile.struct`
46220  NULL
46221};
46222
46223#if defined(c_plusplus) || defined(__cplusplus)
46224}
46225#endif
46226
46227EOF
46228        # Only replace the header file if a) it doesn't previously
46229        # exist, or b) the contents are different.  Do this to not
46230        # trigger recompilation of certain .c files just because the
46231        # timestamp changed on $outfile_real (similar to the way AC
46232        # handles AC_CONFIG_HEADER files).
46233        diff $outfile $outfile_real > /dev/null 2>&1
46234        if test "$?" != "0"; then
46235            mv $outfile $outfile_real
46236        else
46237            rm -f $outfile
46238        fi
46239    fi
46240    rm -f $outfile.struct $outfile.extern
46241
46242    unset all_components static_components dso_components outfile outfile_real
46243
46244
46245    # If we found no suitable static pdl component and dlopen support
46246    # was not specifically disabled, this is an error.
46247    if test "$MCA_pmix_pdl_STATIC_COMPONENTS" = "" && \
46248           test $PMIX_ENABLE_DLOPEN_SUPPORT -eq 1; then :
46249  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not find a suitable static pmix pdl component" >&5
46250$as_echo "$as_me: WARNING: Did not find a suitable static pmix pdl component" >&2;}
46251           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You might need to install libltld (and its headers) or" >&5
46252$as_echo "$as_me: WARNING: You might need to install libltld (and its headers) or" >&2;}
46253           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: specify --disable-dlopen to configure." >&5
46254$as_echo "$as_me: WARNING: specify --disable-dlopen to configure." >&2;}
46255           as_fn_error $? "Cannot continue" "$LINENO" 5
46256fi
46257
46258    # If we have a winning component (which, per above, will only
46259    # happen if --disable-dlopen was *not* specified), do some more
46260    # logic.
46261    if test "$MCA_pmix_pdl_STATIC_COMPONENTS" != ""; then :
46262   # We had a winner -- w00t!
46263
46264        PMIX_HAVE_PDL_SUPPORT=1
46265        # If we added any -L flags to ADD_LDFLAGS, then we (might)
46266        # need to add those directories to LD_LIBRARY_PATH.
46267        # Otherwise, if we try to AC RUN_IFELSE anything here in
46268        # configure, it might die because it can't find the libraries
46269        # we just linked against.
46270
46271
46272    # Is the private index set?  If not, set it.
46273    if test "x$pmix_scope_index" = "x"; then
46274        pmix_scope_index=1
46275    fi
46276
46277    # First, check to see if any of these variables are already set.
46278    # This is a simple sanity check to ensure we're not already
46279    # overwriting pre-existing variables (that have a non-empty
46280    # value).  It's not a perfect check, but at least it's something.
46281    for pmix_var in pmix_pdl_base_found_l pmix_pdl_base_token pmix_pdl_base_tmp pmix_pdl_base_dir; do
46282        pmix_str="pmix_str=\"\$$pmix_var\""
46283        eval $pmix_str
46284
46285        if test "x$pmix_str" != "x"; then
46286            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
46287$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
46288            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
46289$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
46290            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
46291$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
46292            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
46293$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
46294            as_fn_error $? "Cannot continue" "$LINENO" 5
46295        fi
46296    done
46297
46298    # Ok, we passed the simple sanity check.  Save all these names so
46299    # that we can unset them at the end of the scope.
46300    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_pdl_base_found_l pmix_pdl_base_token pmix_pdl_base_tmp pmix_pdl_base_dir\""
46301    eval $pmix_str
46302    unset pmix_str
46303
46304    env | grep pmix_scope
46305    pmix_scope_index=`expr $pmix_scope_index + 1`
46306
46307        pmix_pdl_base_found_l=0
46308        eval "pmix_pdl_base_tmp=\$pmix_pdl_${pmix_pdl_winner}_ADD_LIBS"
46309        for pmix_pdl_base_token in $pmix_pdl_base_tmp; do
46310            case $pmix_pdl_base_token in
46311            -l*) pmix_pdl_base_found_l=1 ;;
46312            esac
46313        done
46314        if test $pmix_pdl_base_found_l -eq 1; then :
46315  eval "pmix_pdl_base_tmp=\$pmix_pdl_${pmix_pdl_winner}_ADD_LDFLAGS"
46316               for pmix_pdl_base_token in $pmix_pdl_base_tmp; do
46317                   case $pmix_pdl_base_token in
46318                   -L*)
46319                       pmix_pdl_base_dir=`echo $pmix_pdl_base_token | cut -c3-`
46320                       export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$pmix_pdl_base_dir
46321                       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Adding to LD_LIBRARY_PATH: $pmix_pdl_base_dir" >&5
46322$as_echo "$as_me: WARNING: Adding to LD_LIBRARY_PATH: $pmix_pdl_base_dir" >&2;}
46323                       ;;
46324                   esac
46325               done
46326fi
46327
46328    # Unwind the index
46329    pmix_scope_index=`expr $pmix_scope_index - 1`
46330    pmix_scope_test=`expr $pmix_scope_index \> 0`
46331    if test "$pmix_scope_test" = "0"; then
46332        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
46333$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
46334        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
46335$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
46336        as_fn_error $? "Cannot continue" "$LINENO" 5
46337    fi
46338
46339    # Get the variable names from that index
46340    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
46341    eval $pmix_str
46342
46343    # Iterate over all the variables and unset them all
46344    for pmix_var in $pmix_str; do
46345        unset $pmix_var
46346    done
46347
46348
46349fi
46350
46351
46352cat >>confdefs.h <<_ACEOF
46353#define PMIX_HAVE_PDL_SUPPORT $PMIX_HAVE_PDL_SUPPORT
46354_ACEOF
46355
46356
46357                                 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS pif"
46358                                 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/pif"
46359                                 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_pif_ALL_SUBDIRS)"
46360                                 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_pif_DSO_SUBDIRS)"
46361                                 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_pif_STATIC_SUBDIRS)"
46362                                 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/pif/libmca_pif.la"
46363                          MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_pif_STATIC_LTLIBS)"
46364
46365    pmix_show_subsubtitle "Configuring MCA framework pif"
46366
46367
46368
46369
46370    # setup for framework
46371    all_components=
46372    static_components=
46373    dso_components=
46374    static_ltlibs=
46375
46376    # Ensure that the directory where the #include file is to live
46377    # exists.  Need to do this for VPATH builds, because the directory
46378    # may not exist yet.  For the "common" type, it's not really a
46379    # component, so it doesn't have a base.
46380    outdir=src/mca/pif/base
46381    as_dir=$outdir; as_fn_mkdir_p
46382
46383    # emit Makefile rule
46384    ac_config_files="$ac_config_files src/mca/pif/Makefile"
46385
46386
46387    # remove any previously generated #include files
46388    outfile_real=$outdir/static-components.h
46389    outfile=$outfile_real.new
46390    rm -f $outfile $outfile.struct $outfile.extern
46391    touch $outfile.struct $outfile.extern
46392
46393    # print some nice messages about what we're about to do...
46394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pif" >&5
46395$as_echo_n "checking for no configure components in framework pif... " >&6; }
46396    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
46397$as_echo "" >&6; }
46398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pif" >&5
46399$as_echo_n "checking for m4 configure components in framework pif... " >&6; }
46400    { $as_echo "$as_me:${as_lineno-$LINENO}: result: bsdx_ipv4, bsdx_ipv6, linux_ipv6, posix_ipv4, solaris_ipv6" >&5
46401$as_echo "bsdx_ipv4, bsdx_ipv6, linux_ipv6, posix_ipv4, solaris_ipv6" >&6; }
46402
46403    # If there are components in the no configure list, but we're
46404    # doing one of the "special" selection logics, abort with a
46405    # reasonable message.
46406
46407
46408
46409    # run the configure logic for the no-config components
46410
46411
46412    # configure components that use built-in configuration scripts
46413
46414
46415
46416    best_mca_component_priority=0
46417    components_looking_for_succeed=1
46418    components_last_result=0
46419
46420
46421    pmix_show_subsubsubtitle "MCA component pif:bsdx_ipv4 (m4 configuration macro)"
46422
46423    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed"
46424
46425
46426
46427    component_path="$srcdir/src/mca/pif/bsdx_ipv4"
46428    want_component=0
46429
46430    # build if:
46431    # - the component type is direct and we are that component
46432    # - there is no pmix_ignore file
46433    # - there is an pmix_ignore, but there is an empty pmix_unignore
46434    # - there is an pmix_ignore, but username is in pmix_unignore
46435    if test -d $component_path ; then
46436        # decide if we want the component to be built or not.  This
46437        # is spread out because some of the logic is a little complex
46438        # and test's syntax isn't exactly the greatest.  We want to
46439        # build the component by default.
46440        want_component=1
46441        if test -f $component_path/.pmix_ignore ; then
46442            # If there is an pmix_ignore file, don't build
46443            # the component.  Note that this decision can be
46444            # overridden by the unignore logic below.
46445            want_component=0
46446        fi
46447        if test -f $component_path/.pmix_unignore ; then
46448            # if there is an empty pmix_unignore, that is
46449            # equivalent to having your userid in the unignore file.
46450            # If userid is in the file, unignore the ignore file.
46451            if test ! -s $component_path/.pmix_unignore ; then
46452                want_component=1
46453            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
46454                want_component=1
46455            fi
46456        fi
46457        # if this component type is direct and we are not it, we don't want
46458        # to be built.  Otherwise, we do want to be built.
46459        if test ! -z "$DIRECT_pif" ; then
46460            if test "$DIRECT_pif" = "bsdx_ipv4" ; then
46461                want_component=1
46462            else
46463                want_component=0
46464            fi
46465        fi
46466    fi
46467
46468    # if we were explicitly disabled, don't build :)
46469    if test "$DISABLE_pif" = "1"; then :
46470  want_component=0
46471fi
46472    if test "$DISABLE_pif_bsdx_ipv4" = "1"; then :
46473  want_component=0
46474fi
46475
46476    if test "$want_component" = "1"; then :
46477  should_build=$components_looking_for_succeed
46478else
46479  should_build=0
46480fi
46481
46482    # Allow the component to override the build mode if it really wants to.
46483    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
46484
46485    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pif:bsdx_ipv4 compile mode" >&5
46486$as_echo_n "checking for MCA component pif:bsdx_ipv4 compile mode... " >&6; }
46487    compile_mode="static"
46488    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
46489$as_echo "$compile_mode" >&6; }
46490
46491
46492    # try to configure the component
46493
46494    ac_config_files="$ac_config_files src/mca/pif/bsdx_ipv4/Makefile"
46495
46496
46497
46498
46499    # If we found struct sockaddr and we're on any of the BSDs, we're
46500    # happy.  I.e., this:
46501    #if defined(__NetBSD__) || defined(__FreeBSD__) || \
46502    #    defined(__OpenBSD__) || defined(__DragonFly__)
46503    { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr" >&5
46504$as_echo_n "checking struct sockaddr... " >&6; }
46505    if test "$pmix_found_sockaddr" = "yes"; then :
46506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (cached)" >&5
46507$as_echo "yes (cached)" >&6; }
46508           { $as_echo "$as_me:${as_lineno-$LINENO}: checking NetBSD, FreeBSD, OpenBSD, or DragonFly" >&5
46509$as_echo_n "checking NetBSD, FreeBSD, OpenBSD, or DragonFly... " >&6; }
46510           if test "$pmix_found_netbsd" = "yes" || \
46511                  test "$pmix_found_freebsd" = "yes" || \
46512                  test "$pmix_found_openbsd" = "yes" || \
46513                  test "$pmix_found_dragonfly" = "yes"; then :
46514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46515$as_echo "yes" >&6; }
46516                  should_build=$should_build
46517else
46518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
46519$as_echo "no" >&6; }
46520                  should_build=0
46521fi
46522else
46523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cached)" >&5
46524$as_echo "no (cached)" >&6; }
46525           should_build=0
46526fi
46527
46528    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build"
46529
46530    if test "$should_build" = "1"; then :
46531
46532
46533
46534    # See if it dropped an output file for us to pick up some
46535    # shell variables in.
46536    infile="$srcdir/src/mca/pif/bsdx_ipv4/post_configure.sh"
46537
46538    # Add this subdir to the mast list of all MCA component subdirs
46539    all_components="$all_components bsdx_ipv4"
46540
46541    if test "$compile_mode" = "dso" ; then
46542        dso_components="$dso_components bsdx_ipv4"
46543    else
46544        if test "pif" = "common"; then
46545            # Static libraries in "common" frameworks are installed, and
46546            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
46547            # set.
46548            static_ltlibs="mca/pif/bsdx_ipv4/lib${PMIX_LIB_PREFIX}mca_pif_bsdx_ipv4.la $static_ltlibs"
46549        else
46550            # Other frameworks do not have to obey the
46551            # $FRAMEWORK_LIB_PREFIX prefix.
46552            static_ltlibs="mca/pif/bsdx_ipv4/libmca_pif_bsdx_ipv4.la $static_ltlibs"
46553        fi
46554        echo "extern const pmix_mca_base_component_t mca_pif_bsdx_ipv4_component;" >> $outfile.extern
46555        echo "  &mca_pif_bsdx_ipv4_component, " >> $outfile.struct
46556        static_components="$static_components bsdx_ipv4"
46557    fi
46558
46559    # Output pretty results
46560    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:bsdx_ipv4 can compile" >&5
46561$as_echo_n "checking if MCA component pif:bsdx_ipv4 can compile... " >&6; }
46562    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46563$as_echo "yes" >&6; }
46564
46565                        if test -f $infile; then
46566        # check for direct call header to include.  This will be
46567        # AC_SUBSTed later.
46568        if test "$DIRECT_pif" = "bsdx_ipv4" ; then
46569            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
46570                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
46571                str="MCA_pmix_pif_DIRECT_CALL_HEADER=$line"
46572                eval $str
46573            else
46574as_fn_error $? "*** pif component bsdx_ipv4 was supposed to be direct-called, but
46575*** does not appear to support direct calling.
46576*** Aborting" "$LINENO" 5
46577            fi
46578        fi
46579    else
46580        # were we supposed to have found something in the
46581        # post_configure.sh, but the file didn't exist?
46582        if test "$DIRECT_pif" = "bsdx_ipv4" ; then
46583as_fn_error $? "*** pif component bsdx_ipv4 was supposed to be direct-called, but
46584*** does not appear to support direct calling.
46585*** Aborting" "$LINENO" 5
46586        fi
46587    fi
46588
46589    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
46590    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
46591    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
46592    # component didn't have it's own configure script (in which case,
46593    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
46594    # have to do this if the component is building dynamically,
46595    # because it will link against these (without a dependency from
46596    # libmpi.so to these flags)
46597    if test "$compile_mode" = "static"; then
46598        if test "$pif_bsdx_ipv4_WRAPPER_EXTRA_LDFLAGS" = ""; then :
46599
46600
46601
46602    # Is the private index set?  If not, set it.
46603    if test "x$pmix_scope_index" = "x"; then
46604        pmix_scope_index=1
46605    fi
46606
46607    # First, check to see if any of these variables are already set.
46608    # This is a simple sanity check to ensure we're not already
46609    # overwriting pre-existing variables (that have a non-empty
46610    # value).  It's not a perfect check, but at least it's something.
46611    for pmix_var in pmix_tmp pmix_append; do
46612        pmix_str="pmix_str=\"\$$pmix_var\""
46613        eval $pmix_str
46614
46615        if test "x$pmix_str" != "x"; then
46616            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
46617$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
46618            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
46619$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
46620            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
46621$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
46622            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
46623$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
46624            as_fn_error $? "Cannot continue" "$LINENO" 5
46625        fi
46626    done
46627
46628    # Ok, we passed the simple sanity check.  Save all these names so
46629    # that we can unset them at the end of the scope.
46630    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
46631    eval $pmix_str
46632    unset pmix_str
46633
46634    env | grep pmix_scope
46635    pmix_scope_index=`expr $pmix_scope_index + 1`
46636
46637
46638    for arg in $pif_bsdx_ipv4_LDFLAGS; do
46639        pmix_tmp=`echo $arg | cut -c1-2`
46640        pmix_append=1
46641        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
46642  for val in ${mca_wrapper_extra_ldflags}; do
46643                   if test "x$val" = "x$arg"; then :
46644  pmix_append=0
46645fi
46646               done
46647fi
46648        if test "$pmix_append" = "1"; then :
46649  if test -z "$mca_wrapper_extra_ldflags"; then :
46650  mca_wrapper_extra_ldflags=$arg
46651else
46652  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
46653fi
46654fi
46655    done
46656
46657
46658    # Unwind the index
46659    pmix_scope_index=`expr $pmix_scope_index - 1`
46660    pmix_scope_test=`expr $pmix_scope_index \> 0`
46661    if test "$pmix_scope_test" = "0"; then
46662        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
46663$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
46664        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
46665$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
46666        as_fn_error $? "Cannot continue" "$LINENO" 5
46667    fi
46668
46669    # Get the variable names from that index
46670    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
46671    eval $pmix_str
46672
46673    # Iterate over all the variables and unset them all
46674    for pmix_var in $pmix_str; do
46675        unset $pmix_var
46676    done
46677
46678
46679else
46680
46681
46682
46683    # Is the private index set?  If not, set it.
46684    if test "x$pmix_scope_index" = "x"; then
46685        pmix_scope_index=1
46686    fi
46687
46688    # First, check to see if any of these variables are already set.
46689    # This is a simple sanity check to ensure we're not already
46690    # overwriting pre-existing variables (that have a non-empty
46691    # value).  It's not a perfect check, but at least it's something.
46692    for pmix_var in pmix_tmp pmix_append; do
46693        pmix_str="pmix_str=\"\$$pmix_var\""
46694        eval $pmix_str
46695
46696        if test "x$pmix_str" != "x"; then
46697            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
46698$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
46699            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
46700$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
46701            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
46702$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
46703            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
46704$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
46705            as_fn_error $? "Cannot continue" "$LINENO" 5
46706        fi
46707    done
46708
46709    # Ok, we passed the simple sanity check.  Save all these names so
46710    # that we can unset them at the end of the scope.
46711    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
46712    eval $pmix_str
46713    unset pmix_str
46714
46715    env | grep pmix_scope
46716    pmix_scope_index=`expr $pmix_scope_index + 1`
46717
46718
46719    for arg in $pif_bsdx_ipv4_WRAPPER_EXTRA_LDFLAGS; do
46720        pmix_tmp=`echo $arg | cut -c1-2`
46721        pmix_append=1
46722        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
46723  for val in ${mca_wrapper_extra_ldflags}; do
46724                   if test "x$val" = "x$arg"; then :
46725  pmix_append=0
46726fi
46727               done
46728fi
46729        if test "$pmix_append" = "1"; then :
46730  if test -z "$mca_wrapper_extra_ldflags"; then :
46731  mca_wrapper_extra_ldflags=$arg
46732else
46733  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
46734fi
46735fi
46736    done
46737
46738
46739    # Unwind the index
46740    pmix_scope_index=`expr $pmix_scope_index - 1`
46741    pmix_scope_test=`expr $pmix_scope_index \> 0`
46742    if test "$pmix_scope_test" = "0"; then
46743        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
46744$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
46745        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
46746$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
46747        as_fn_error $? "Cannot continue" "$LINENO" 5
46748    fi
46749
46750    # Get the variable names from that index
46751    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
46752    eval $pmix_str
46753
46754    # Iterate over all the variables and unset them all
46755    for pmix_var in $pmix_str; do
46756        unset $pmix_var
46757    done
46758
46759
46760fi
46761                        if test "$pif_bsdx_ipv4_WRAPPER_EXTRA_LIBS" = ""; then :
46762
46763
46764
46765    # Is the private index set?  If not, set it.
46766    if test "x$pmix_scope_index" = "x"; then
46767        pmix_scope_index=1
46768    fi
46769
46770    # First, check to see if any of these variables are already set.
46771    # This is a simple sanity check to ensure we're not already
46772    # overwriting pre-existing variables (that have a non-empty
46773    # value).  It's not a perfect check, but at least it's something.
46774    for pmix_var in pmix_tmp pmix_append; do
46775        pmix_str="pmix_str=\"\$$pmix_var\""
46776        eval $pmix_str
46777
46778        if test "x$pmix_str" != "x"; then
46779            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
46780$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
46781            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
46782$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
46783            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
46784$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
46785            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
46786$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
46787            as_fn_error $? "Cannot continue" "$LINENO" 5
46788        fi
46789    done
46790
46791    # Ok, we passed the simple sanity check.  Save all these names so
46792    # that we can unset them at the end of the scope.
46793    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
46794    eval $pmix_str
46795    unset pmix_str
46796
46797    env | grep pmix_scope
46798    pmix_scope_index=`expr $pmix_scope_index + 1`
46799
46800
46801    for arg in $pif_bsdx_ipv4_LIBS; do
46802        pmix_tmp=`echo $arg | cut -c1-2`
46803        pmix_append=1
46804        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
46805  for val in ${mca_wrapper_extra_libs}; do
46806                   if test "x$val" = "x$arg"; then :
46807  pmix_append=0
46808fi
46809               done
46810fi
46811        if test "$pmix_append" = "1"; then :
46812  if test -z "$mca_wrapper_extra_libs"; then :
46813  mca_wrapper_extra_libs=$arg
46814else
46815  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
46816fi
46817fi
46818    done
46819
46820
46821    # Unwind the index
46822    pmix_scope_index=`expr $pmix_scope_index - 1`
46823    pmix_scope_test=`expr $pmix_scope_index \> 0`
46824    if test "$pmix_scope_test" = "0"; then
46825        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
46826$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
46827        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
46828$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
46829        as_fn_error $? "Cannot continue" "$LINENO" 5
46830    fi
46831
46832    # Get the variable names from that index
46833    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
46834    eval $pmix_str
46835
46836    # Iterate over all the variables and unset them all
46837    for pmix_var in $pmix_str; do
46838        unset $pmix_var
46839    done
46840
46841
46842else
46843
46844
46845
46846    # Is the private index set?  If not, set it.
46847    if test "x$pmix_scope_index" = "x"; then
46848        pmix_scope_index=1
46849    fi
46850
46851    # First, check to see if any of these variables are already set.
46852    # This is a simple sanity check to ensure we're not already
46853    # overwriting pre-existing variables (that have a non-empty
46854    # value).  It's not a perfect check, but at least it's something.
46855    for pmix_var in pmix_tmp pmix_append; do
46856        pmix_str="pmix_str=\"\$$pmix_var\""
46857        eval $pmix_str
46858
46859        if test "x$pmix_str" != "x"; then
46860            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
46861$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
46862            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
46863$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
46864            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
46865$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
46866            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
46867$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
46868            as_fn_error $? "Cannot continue" "$LINENO" 5
46869        fi
46870    done
46871
46872    # Ok, we passed the simple sanity check.  Save all these names so
46873    # that we can unset them at the end of the scope.
46874    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
46875    eval $pmix_str
46876    unset pmix_str
46877
46878    env | grep pmix_scope
46879    pmix_scope_index=`expr $pmix_scope_index + 1`
46880
46881
46882    for arg in $pif_bsdx_ipv4_WRAPPER_EXTRA_LIBS; do
46883        pmix_tmp=`echo $arg | cut -c1-2`
46884        pmix_append=1
46885        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
46886  for val in ${mca_wrapper_extra_libs}; do
46887                   if test "x$val" = "x$arg"; then :
46888  pmix_append=0
46889fi
46890               done
46891fi
46892        if test "$pmix_append" = "1"; then :
46893  if test -z "$mca_wrapper_extra_libs"; then :
46894  mca_wrapper_extra_libs=$arg
46895else
46896  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
46897fi
46898fi
46899    done
46900
46901
46902    # Unwind the index
46903    pmix_scope_index=`expr $pmix_scope_index - 1`
46904    pmix_scope_test=`expr $pmix_scope_index \> 0`
46905    if test "$pmix_scope_test" = "0"; then
46906        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
46907$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
46908        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
46909$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
46910        as_fn_error $? "Cannot continue" "$LINENO" 5
46911    fi
46912
46913    # Get the variable names from that index
46914    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
46915    eval $pmix_str
46916
46917    # Iterate over all the variables and unset them all
46918    for pmix_var in $pmix_str; do
46919        unset $pmix_var
46920    done
46921
46922
46923fi
46924
46925    fi
46926
46927    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
46928    # component can never be used in a STOP_AT_FIRST framework, we
46929    # don't have to implement the else clause in the literal check...
46930    if test "$pif_bsdx_ipv4_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
46931  stop_at_first=0
46932            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
46933  if test "$with_devel_headers" = "yes"; then :
46934
46935
46936
46937    # Is the private index set?  If not, set it.
46938    if test "x$pmix_scope_index" = "x"; then
46939        pmix_scope_index=1
46940    fi
46941
46942    # First, check to see if any of these variables are already set.
46943    # This is a simple sanity check to ensure we're not already
46944    # overwriting pre-existing variables (that have a non-empty
46945    # value).  It's not a perfect check, but at least it's something.
46946    for pmix_var in pmix_tmp pmix_append; do
46947        pmix_str="pmix_str=\"\$$pmix_var\""
46948        eval $pmix_str
46949
46950        if test "x$pmix_str" != "x"; then
46951            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
46952$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
46953            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
46954$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
46955            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
46956$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
46957            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
46958$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
46959            as_fn_error $? "Cannot continue" "$LINENO" 5
46960        fi
46961    done
46962
46963    # Ok, we passed the simple sanity check.  Save all these names so
46964    # that we can unset them at the end of the scope.
46965    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
46966    eval $pmix_str
46967    unset pmix_str
46968
46969    env | grep pmix_scope
46970    pmix_scope_index=`expr $pmix_scope_index + 1`
46971
46972
46973    for arg in $pif_bsdx_ipv4_WRAPPER_EXTRA_CPPFLAGS; do
46974        pmix_tmp=`echo $arg | cut -c1-2`
46975        pmix_append=1
46976        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
46977  for val in ${mca_wrapper_extra_cppflags}; do
46978                   if test "x$val" = "x$arg"; then :
46979  pmix_append=0
46980fi
46981               done
46982fi
46983        if test "$pmix_append" = "1"; then :
46984  if test -z "$mca_wrapper_extra_cppflags"; then :
46985  mca_wrapper_extra_cppflags=$arg
46986else
46987  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
46988fi
46989fi
46990    done
46991
46992
46993    # Unwind the index
46994    pmix_scope_index=`expr $pmix_scope_index - 1`
46995    pmix_scope_test=`expr $pmix_scope_index \> 0`
46996    if test "$pmix_scope_test" = "0"; then
46997        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
46998$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
46999        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
47000$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
47001        as_fn_error $? "Cannot continue" "$LINENO" 5
47002    fi
47003
47004    # Get the variable names from that index
47005    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
47006    eval $pmix_str
47007
47008    # Iterate over all the variables and unset them all
47009    for pmix_var in $pmix_str; do
47010        unset $pmix_var
47011    done
47012
47013
47014fi
47015else
47016  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pif_bsdx_ipv4_WRAPPER_EXTRA_CPPFLAGS ($pif_bsdx_ipv4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
47017$as_echo "$as_me: WARNING: ignoring pif_bsdx_ipv4_WRAPPER_EXTRA_CPPFLAGS ($pif_bsdx_ipv4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
47018fi
47019fi
47020
47021else
47022
47023    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:bsdx_ipv4 can compile" >&5
47024$as_echo_n "checking if MCA component pif:bsdx_ipv4 can compile... " >&6; }
47025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47026$as_echo "no" >&6; }
47027
47028    # If this component was requested as the default for this
47029    # type, then abort.
47030    if test "$with_pif" = "bsdx_ipv4" ; then
47031        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bsdx_ipv4\" failed to configure properly" >&5
47032$as_echo "$as_me: WARNING: MCA component \"bsdx_ipv4\" failed to configure properly" >&2;}
47033        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
47034$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
47035        as_fn_error $? "Cannot continue" "$LINENO" 5
47036    fi
47037
47038    if test ! -z "$DIRECT_pif" ; then
47039        if test "$DIRECT_pif" = "bsdx_ipv4" ; then
47040            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bsdx_ipv4\" failed to configure properly" >&5
47041$as_echo "$as_me: WARNING: MCA component \"bsdx_ipv4\" failed to configure properly" >&2;}
47042            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
47043$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
47044            as_fn_error $? "Cannot continue" "$LINENO" 5
47045        fi
47046    fi
47047
47048           # add component to all component list
47049           all_components="$all_components bsdx_ipv4"
47050fi
47051
47052
47053
47054    # set the AM_CONDITIONAL on how we should build
47055    if test "$compile_mode" = "dso"; then :
47056  BUILD_pmix_pif_bsdx_ipv4_DSO=1
47057else
47058  BUILD_pmix_pif_bsdx_ipv4_DSO=0
47059fi
47060     if test "$BUILD_pmix_pif_bsdx_ipv4_DSO" = "1"; then
47061  MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_TRUE=
47062  MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_FALSE='#'
47063else
47064  MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_TRUE='#'
47065  MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_FALSE=
47066fi
47067
47068
47069    if test "$should_build" = "1"; then :
47070  components_last_result=1
47071else
47072  components_last_result=0
47073fi
47074
47075    unset compile_mode
47076
47077
47078
47079
47080
47081    pmix_show_subsubsubtitle "MCA component pif:bsdx_ipv6 (m4 configuration macro)"
47082
47083    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed"
47084
47085
47086
47087    component_path="$srcdir/src/mca/pif/bsdx_ipv6"
47088    want_component=0
47089
47090    # build if:
47091    # - the component type is direct and we are that component
47092    # - there is no pmix_ignore file
47093    # - there is an pmix_ignore, but there is an empty pmix_unignore
47094    # - there is an pmix_ignore, but username is in pmix_unignore
47095    if test -d $component_path ; then
47096        # decide if we want the component to be built or not.  This
47097        # is spread out because some of the logic is a little complex
47098        # and test's syntax isn't exactly the greatest.  We want to
47099        # build the component by default.
47100        want_component=1
47101        if test -f $component_path/.pmix_ignore ; then
47102            # If there is an pmix_ignore file, don't build
47103            # the component.  Note that this decision can be
47104            # overridden by the unignore logic below.
47105            want_component=0
47106        fi
47107        if test -f $component_path/.pmix_unignore ; then
47108            # if there is an empty pmix_unignore, that is
47109            # equivalent to having your userid in the unignore file.
47110            # If userid is in the file, unignore the ignore file.
47111            if test ! -s $component_path/.pmix_unignore ; then
47112                want_component=1
47113            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
47114                want_component=1
47115            fi
47116        fi
47117        # if this component type is direct and we are not it, we don't want
47118        # to be built.  Otherwise, we do want to be built.
47119        if test ! -z "$DIRECT_pif" ; then
47120            if test "$DIRECT_pif" = "bsdx_ipv6" ; then
47121                want_component=1
47122            else
47123                want_component=0
47124            fi
47125        fi
47126    fi
47127
47128    # if we were explicitly disabled, don't build :)
47129    if test "$DISABLE_pif" = "1"; then :
47130  want_component=0
47131fi
47132    if test "$DISABLE_pif_bsdx_ipv6" = "1"; then :
47133  want_component=0
47134fi
47135
47136    if test "$want_component" = "1"; then :
47137  should_build=$components_looking_for_succeed
47138else
47139  should_build=0
47140fi
47141
47142    # Allow the component to override the build mode if it really wants to.
47143    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
47144
47145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pif:bsdx_ipv6 compile mode" >&5
47146$as_echo_n "checking for MCA component pif:bsdx_ipv6 compile mode... " >&6; }
47147    compile_mode="static"
47148    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
47149$as_echo "$compile_mode" >&6; }
47150
47151
47152    # try to configure the component
47153
47154    ac_config_files="$ac_config_files src/mca/pif/bsdx_ipv6/Makefile"
47155
47156
47157
47158
47159    # If we found struct sockaddr and we're on any of the BSDs, we're
47160    # happy.  I.e., this:
47161    #if defined( __NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || \
47162    #             defined(__386BSD__) || defined(__bsdi__) || defined(__APPLE__)
47163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr" >&5
47164$as_echo_n "checking struct sockaddr... " >&6; }
47165    if test "$pmix_found_sockaddr" = "yes"; then :
47166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (cached)" >&5
47167$as_echo "yes (cached)" >&6; }
47168           { $as_echo "$as_me:${as_lineno-$LINENO}: checking some flavor of BSD" >&5
47169$as_echo_n "checking some flavor of BSD... " >&6; }
47170           if test "$pmix_found_netbsd" = "yes" || \
47171                  test "$pmix_found_freebsd" = "yes" || \
47172                  test "$pmix_found_openbsd" = "yes" || \
47173                  test "$pmix_found_386bsd" = "yes" || \
47174                  test "$pmix_found_bsdi" = "yes" ||
47175                  test "$pmix_found_apple" = "yes"; then :
47176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47177$as_echo "yes" >&6; }
47178                  should_build=$should_build
47179else
47180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47181$as_echo "no" >&6; }
47182                  should_build=0
47183fi
47184else
47185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cached)" >&5
47186$as_echo "no (cached)" >&6; }
47187           should_build=0
47188fi
47189
47190    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build"
47191
47192    if test "$should_build" = "1"; then :
47193
47194
47195
47196    # See if it dropped an output file for us to pick up some
47197    # shell variables in.
47198    infile="$srcdir/src/mca/pif/bsdx_ipv6/post_configure.sh"
47199
47200    # Add this subdir to the mast list of all MCA component subdirs
47201    all_components="$all_components bsdx_ipv6"
47202
47203    if test "$compile_mode" = "dso" ; then
47204        dso_components="$dso_components bsdx_ipv6"
47205    else
47206        if test "pif" = "common"; then
47207            # Static libraries in "common" frameworks are installed, and
47208            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
47209            # set.
47210            static_ltlibs="mca/pif/bsdx_ipv6/lib${PMIX_LIB_PREFIX}mca_pif_bsdx_ipv6.la $static_ltlibs"
47211        else
47212            # Other frameworks do not have to obey the
47213            # $FRAMEWORK_LIB_PREFIX prefix.
47214            static_ltlibs="mca/pif/bsdx_ipv6/libmca_pif_bsdx_ipv6.la $static_ltlibs"
47215        fi
47216        echo "extern const pmix_mca_base_component_t mca_pif_bsdx_ipv6_component;" >> $outfile.extern
47217        echo "  &mca_pif_bsdx_ipv6_component, " >> $outfile.struct
47218        static_components="$static_components bsdx_ipv6"
47219    fi
47220
47221    # Output pretty results
47222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:bsdx_ipv6 can compile" >&5
47223$as_echo_n "checking if MCA component pif:bsdx_ipv6 can compile... " >&6; }
47224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47225$as_echo "yes" >&6; }
47226
47227                        if test -f $infile; then
47228        # check for direct call header to include.  This will be
47229        # AC_SUBSTed later.
47230        if test "$DIRECT_pif" = "bsdx_ipv6" ; then
47231            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
47232                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
47233                str="MCA_pmix_pif_DIRECT_CALL_HEADER=$line"
47234                eval $str
47235            else
47236as_fn_error $? "*** pif component bsdx_ipv6 was supposed to be direct-called, but
47237*** does not appear to support direct calling.
47238*** Aborting" "$LINENO" 5
47239            fi
47240        fi
47241    else
47242        # were we supposed to have found something in the
47243        # post_configure.sh, but the file didn't exist?
47244        if test "$DIRECT_pif" = "bsdx_ipv6" ; then
47245as_fn_error $? "*** pif component bsdx_ipv6 was supposed to be direct-called, but
47246*** does not appear to support direct calling.
47247*** Aborting" "$LINENO" 5
47248        fi
47249    fi
47250
47251    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
47252    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
47253    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
47254    # component didn't have it's own configure script (in which case,
47255    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
47256    # have to do this if the component is building dynamically,
47257    # because it will link against these (without a dependency from
47258    # libmpi.so to these flags)
47259    if test "$compile_mode" = "static"; then
47260        if test "$pif_bsdx_ipv6_WRAPPER_EXTRA_LDFLAGS" = ""; then :
47261
47262
47263
47264    # Is the private index set?  If not, set it.
47265    if test "x$pmix_scope_index" = "x"; then
47266        pmix_scope_index=1
47267    fi
47268
47269    # First, check to see if any of these variables are already set.
47270    # This is a simple sanity check to ensure we're not already
47271    # overwriting pre-existing variables (that have a non-empty
47272    # value).  It's not a perfect check, but at least it's something.
47273    for pmix_var in pmix_tmp pmix_append; do
47274        pmix_str="pmix_str=\"\$$pmix_var\""
47275        eval $pmix_str
47276
47277        if test "x$pmix_str" != "x"; then
47278            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
47279$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
47280            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
47281$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
47282            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
47283$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
47284            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
47285$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
47286            as_fn_error $? "Cannot continue" "$LINENO" 5
47287        fi
47288    done
47289
47290    # Ok, we passed the simple sanity check.  Save all these names so
47291    # that we can unset them at the end of the scope.
47292    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
47293    eval $pmix_str
47294    unset pmix_str
47295
47296    env | grep pmix_scope
47297    pmix_scope_index=`expr $pmix_scope_index + 1`
47298
47299
47300    for arg in $pif_bsdx_ipv6_LDFLAGS; do
47301        pmix_tmp=`echo $arg | cut -c1-2`
47302        pmix_append=1
47303        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
47304  for val in ${mca_wrapper_extra_ldflags}; do
47305                   if test "x$val" = "x$arg"; then :
47306  pmix_append=0
47307fi
47308               done
47309fi
47310        if test "$pmix_append" = "1"; then :
47311  if test -z "$mca_wrapper_extra_ldflags"; then :
47312  mca_wrapper_extra_ldflags=$arg
47313else
47314  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
47315fi
47316fi
47317    done
47318
47319
47320    # Unwind the index
47321    pmix_scope_index=`expr $pmix_scope_index - 1`
47322    pmix_scope_test=`expr $pmix_scope_index \> 0`
47323    if test "$pmix_scope_test" = "0"; then
47324        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
47325$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
47326        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
47327$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
47328        as_fn_error $? "Cannot continue" "$LINENO" 5
47329    fi
47330
47331    # Get the variable names from that index
47332    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
47333    eval $pmix_str
47334
47335    # Iterate over all the variables and unset them all
47336    for pmix_var in $pmix_str; do
47337        unset $pmix_var
47338    done
47339
47340
47341else
47342
47343
47344
47345    # Is the private index set?  If not, set it.
47346    if test "x$pmix_scope_index" = "x"; then
47347        pmix_scope_index=1
47348    fi
47349
47350    # First, check to see if any of these variables are already set.
47351    # This is a simple sanity check to ensure we're not already
47352    # overwriting pre-existing variables (that have a non-empty
47353    # value).  It's not a perfect check, but at least it's something.
47354    for pmix_var in pmix_tmp pmix_append; do
47355        pmix_str="pmix_str=\"\$$pmix_var\""
47356        eval $pmix_str
47357
47358        if test "x$pmix_str" != "x"; then
47359            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
47360$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
47361            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
47362$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
47363            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
47364$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
47365            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
47366$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
47367            as_fn_error $? "Cannot continue" "$LINENO" 5
47368        fi
47369    done
47370
47371    # Ok, we passed the simple sanity check.  Save all these names so
47372    # that we can unset them at the end of the scope.
47373    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
47374    eval $pmix_str
47375    unset pmix_str
47376
47377    env | grep pmix_scope
47378    pmix_scope_index=`expr $pmix_scope_index + 1`
47379
47380
47381    for arg in $pif_bsdx_ipv6_WRAPPER_EXTRA_LDFLAGS; do
47382        pmix_tmp=`echo $arg | cut -c1-2`
47383        pmix_append=1
47384        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
47385  for val in ${mca_wrapper_extra_ldflags}; do
47386                   if test "x$val" = "x$arg"; then :
47387  pmix_append=0
47388fi
47389               done
47390fi
47391        if test "$pmix_append" = "1"; then :
47392  if test -z "$mca_wrapper_extra_ldflags"; then :
47393  mca_wrapper_extra_ldflags=$arg
47394else
47395  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
47396fi
47397fi
47398    done
47399
47400
47401    # Unwind the index
47402    pmix_scope_index=`expr $pmix_scope_index - 1`
47403    pmix_scope_test=`expr $pmix_scope_index \> 0`
47404    if test "$pmix_scope_test" = "0"; then
47405        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
47406$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
47407        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
47408$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
47409        as_fn_error $? "Cannot continue" "$LINENO" 5
47410    fi
47411
47412    # Get the variable names from that index
47413    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
47414    eval $pmix_str
47415
47416    # Iterate over all the variables and unset them all
47417    for pmix_var in $pmix_str; do
47418        unset $pmix_var
47419    done
47420
47421
47422fi
47423                        if test "$pif_bsdx_ipv6_WRAPPER_EXTRA_LIBS" = ""; then :
47424
47425
47426
47427    # Is the private index set?  If not, set it.
47428    if test "x$pmix_scope_index" = "x"; then
47429        pmix_scope_index=1
47430    fi
47431
47432    # First, check to see if any of these variables are already set.
47433    # This is a simple sanity check to ensure we're not already
47434    # overwriting pre-existing variables (that have a non-empty
47435    # value).  It's not a perfect check, but at least it's something.
47436    for pmix_var in pmix_tmp pmix_append; do
47437        pmix_str="pmix_str=\"\$$pmix_var\""
47438        eval $pmix_str
47439
47440        if test "x$pmix_str" != "x"; then
47441            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
47442$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
47443            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
47444$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
47445            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
47446$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
47447            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
47448$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
47449            as_fn_error $? "Cannot continue" "$LINENO" 5
47450        fi
47451    done
47452
47453    # Ok, we passed the simple sanity check.  Save all these names so
47454    # that we can unset them at the end of the scope.
47455    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
47456    eval $pmix_str
47457    unset pmix_str
47458
47459    env | grep pmix_scope
47460    pmix_scope_index=`expr $pmix_scope_index + 1`
47461
47462
47463    for arg in $pif_bsdx_ipv6_LIBS; do
47464        pmix_tmp=`echo $arg | cut -c1-2`
47465        pmix_append=1
47466        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
47467  for val in ${mca_wrapper_extra_libs}; do
47468                   if test "x$val" = "x$arg"; then :
47469  pmix_append=0
47470fi
47471               done
47472fi
47473        if test "$pmix_append" = "1"; then :
47474  if test -z "$mca_wrapper_extra_libs"; then :
47475  mca_wrapper_extra_libs=$arg
47476else
47477  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
47478fi
47479fi
47480    done
47481
47482
47483    # Unwind the index
47484    pmix_scope_index=`expr $pmix_scope_index - 1`
47485    pmix_scope_test=`expr $pmix_scope_index \> 0`
47486    if test "$pmix_scope_test" = "0"; then
47487        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
47488$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
47489        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
47490$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
47491        as_fn_error $? "Cannot continue" "$LINENO" 5
47492    fi
47493
47494    # Get the variable names from that index
47495    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
47496    eval $pmix_str
47497
47498    # Iterate over all the variables and unset them all
47499    for pmix_var in $pmix_str; do
47500        unset $pmix_var
47501    done
47502
47503
47504else
47505
47506
47507
47508    # Is the private index set?  If not, set it.
47509    if test "x$pmix_scope_index" = "x"; then
47510        pmix_scope_index=1
47511    fi
47512
47513    # First, check to see if any of these variables are already set.
47514    # This is a simple sanity check to ensure we're not already
47515    # overwriting pre-existing variables (that have a non-empty
47516    # value).  It's not a perfect check, but at least it's something.
47517    for pmix_var in pmix_tmp pmix_append; do
47518        pmix_str="pmix_str=\"\$$pmix_var\""
47519        eval $pmix_str
47520
47521        if test "x$pmix_str" != "x"; then
47522            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
47523$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
47524            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
47525$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
47526            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
47527$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
47528            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
47529$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
47530            as_fn_error $? "Cannot continue" "$LINENO" 5
47531        fi
47532    done
47533
47534    # Ok, we passed the simple sanity check.  Save all these names so
47535    # that we can unset them at the end of the scope.
47536    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
47537    eval $pmix_str
47538    unset pmix_str
47539
47540    env | grep pmix_scope
47541    pmix_scope_index=`expr $pmix_scope_index + 1`
47542
47543
47544    for arg in $pif_bsdx_ipv6_WRAPPER_EXTRA_LIBS; do
47545        pmix_tmp=`echo $arg | cut -c1-2`
47546        pmix_append=1
47547        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
47548  for val in ${mca_wrapper_extra_libs}; do
47549                   if test "x$val" = "x$arg"; then :
47550  pmix_append=0
47551fi
47552               done
47553fi
47554        if test "$pmix_append" = "1"; then :
47555  if test -z "$mca_wrapper_extra_libs"; then :
47556  mca_wrapper_extra_libs=$arg
47557else
47558  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
47559fi
47560fi
47561    done
47562
47563
47564    # Unwind the index
47565    pmix_scope_index=`expr $pmix_scope_index - 1`
47566    pmix_scope_test=`expr $pmix_scope_index \> 0`
47567    if test "$pmix_scope_test" = "0"; then
47568        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
47569$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
47570        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
47571$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
47572        as_fn_error $? "Cannot continue" "$LINENO" 5
47573    fi
47574
47575    # Get the variable names from that index
47576    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
47577    eval $pmix_str
47578
47579    # Iterate over all the variables and unset them all
47580    for pmix_var in $pmix_str; do
47581        unset $pmix_var
47582    done
47583
47584
47585fi
47586
47587    fi
47588
47589    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
47590    # component can never be used in a STOP_AT_FIRST framework, we
47591    # don't have to implement the else clause in the literal check...
47592    if test "$pif_bsdx_ipv6_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
47593  stop_at_first=0
47594            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
47595  if test "$with_devel_headers" = "yes"; then :
47596
47597
47598
47599    # Is the private index set?  If not, set it.
47600    if test "x$pmix_scope_index" = "x"; then
47601        pmix_scope_index=1
47602    fi
47603
47604    # First, check to see if any of these variables are already set.
47605    # This is a simple sanity check to ensure we're not already
47606    # overwriting pre-existing variables (that have a non-empty
47607    # value).  It's not a perfect check, but at least it's something.
47608    for pmix_var in pmix_tmp pmix_append; do
47609        pmix_str="pmix_str=\"\$$pmix_var\""
47610        eval $pmix_str
47611
47612        if test "x$pmix_str" != "x"; then
47613            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
47614$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
47615            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
47616$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
47617            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
47618$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
47619            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
47620$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
47621            as_fn_error $? "Cannot continue" "$LINENO" 5
47622        fi
47623    done
47624
47625    # Ok, we passed the simple sanity check.  Save all these names so
47626    # that we can unset them at the end of the scope.
47627    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
47628    eval $pmix_str
47629    unset pmix_str
47630
47631    env | grep pmix_scope
47632    pmix_scope_index=`expr $pmix_scope_index + 1`
47633
47634
47635    for arg in $pif_bsdx_ipv6_WRAPPER_EXTRA_CPPFLAGS; do
47636        pmix_tmp=`echo $arg | cut -c1-2`
47637        pmix_append=1
47638        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
47639  for val in ${mca_wrapper_extra_cppflags}; do
47640                   if test "x$val" = "x$arg"; then :
47641  pmix_append=0
47642fi
47643               done
47644fi
47645        if test "$pmix_append" = "1"; then :
47646  if test -z "$mca_wrapper_extra_cppflags"; then :
47647  mca_wrapper_extra_cppflags=$arg
47648else
47649  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
47650fi
47651fi
47652    done
47653
47654
47655    # Unwind the index
47656    pmix_scope_index=`expr $pmix_scope_index - 1`
47657    pmix_scope_test=`expr $pmix_scope_index \> 0`
47658    if test "$pmix_scope_test" = "0"; then
47659        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
47660$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
47661        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
47662$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
47663        as_fn_error $? "Cannot continue" "$LINENO" 5
47664    fi
47665
47666    # Get the variable names from that index
47667    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
47668    eval $pmix_str
47669
47670    # Iterate over all the variables and unset them all
47671    for pmix_var in $pmix_str; do
47672        unset $pmix_var
47673    done
47674
47675
47676fi
47677else
47678  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pif_bsdx_ipv6_WRAPPER_EXTRA_CPPFLAGS ($pif_bsdx_ipv6_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
47679$as_echo "$as_me: WARNING: ignoring pif_bsdx_ipv6_WRAPPER_EXTRA_CPPFLAGS ($pif_bsdx_ipv6_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
47680fi
47681fi
47682
47683else
47684
47685    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:bsdx_ipv6 can compile" >&5
47686$as_echo_n "checking if MCA component pif:bsdx_ipv6 can compile... " >&6; }
47687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47688$as_echo "no" >&6; }
47689
47690    # If this component was requested as the default for this
47691    # type, then abort.
47692    if test "$with_pif" = "bsdx_ipv6" ; then
47693        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bsdx_ipv6\" failed to configure properly" >&5
47694$as_echo "$as_me: WARNING: MCA component \"bsdx_ipv6\" failed to configure properly" >&2;}
47695        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
47696$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
47697        as_fn_error $? "Cannot continue" "$LINENO" 5
47698    fi
47699
47700    if test ! -z "$DIRECT_pif" ; then
47701        if test "$DIRECT_pif" = "bsdx_ipv6" ; then
47702            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"bsdx_ipv6\" failed to configure properly" >&5
47703$as_echo "$as_me: WARNING: MCA component \"bsdx_ipv6\" failed to configure properly" >&2;}
47704            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
47705$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
47706            as_fn_error $? "Cannot continue" "$LINENO" 5
47707        fi
47708    fi
47709
47710           # add component to all component list
47711           all_components="$all_components bsdx_ipv6"
47712fi
47713
47714
47715
47716    # set the AM_CONDITIONAL on how we should build
47717    if test "$compile_mode" = "dso"; then :
47718  BUILD_pmix_pif_bsdx_ipv6_DSO=1
47719else
47720  BUILD_pmix_pif_bsdx_ipv6_DSO=0
47721fi
47722     if test "$BUILD_pmix_pif_bsdx_ipv6_DSO" = "1"; then
47723  MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_TRUE=
47724  MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_FALSE='#'
47725else
47726  MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_TRUE='#'
47727  MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_FALSE=
47728fi
47729
47730
47731    if test "$should_build" = "1"; then :
47732  components_last_result=1
47733else
47734  components_last_result=0
47735fi
47736
47737    unset compile_mode
47738
47739
47740
47741
47742
47743    pmix_show_subsubsubtitle "MCA component pif:linux_ipv6 (m4 configuration macro)"
47744
47745    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed"
47746
47747
47748
47749    component_path="$srcdir/src/mca/pif/linux_ipv6"
47750    want_component=0
47751
47752    # build if:
47753    # - the component type is direct and we are that component
47754    # - there is no pmix_ignore file
47755    # - there is an pmix_ignore, but there is an empty pmix_unignore
47756    # - there is an pmix_ignore, but username is in pmix_unignore
47757    if test -d $component_path ; then
47758        # decide if we want the component to be built or not.  This
47759        # is spread out because some of the logic is a little complex
47760        # and test's syntax isn't exactly the greatest.  We want to
47761        # build the component by default.
47762        want_component=1
47763        if test -f $component_path/.pmix_ignore ; then
47764            # If there is an pmix_ignore file, don't build
47765            # the component.  Note that this decision can be
47766            # overridden by the unignore logic below.
47767            want_component=0
47768        fi
47769        if test -f $component_path/.pmix_unignore ; then
47770            # if there is an empty pmix_unignore, that is
47771            # equivalent to having your userid in the unignore file.
47772            # If userid is in the file, unignore the ignore file.
47773            if test ! -s $component_path/.pmix_unignore ; then
47774                want_component=1
47775            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
47776                want_component=1
47777            fi
47778        fi
47779        # if this component type is direct and we are not it, we don't want
47780        # to be built.  Otherwise, we do want to be built.
47781        if test ! -z "$DIRECT_pif" ; then
47782            if test "$DIRECT_pif" = "linux_ipv6" ; then
47783                want_component=1
47784            else
47785                want_component=0
47786            fi
47787        fi
47788    fi
47789
47790    # if we were explicitly disabled, don't build :)
47791    if test "$DISABLE_pif" = "1"; then :
47792  want_component=0
47793fi
47794    if test "$DISABLE_pif_linux_ipv6" = "1"; then :
47795  want_component=0
47796fi
47797
47798    if test "$want_component" = "1"; then :
47799  should_build=$components_looking_for_succeed
47800else
47801  should_build=0
47802fi
47803
47804    # Allow the component to override the build mode if it really wants to.
47805    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
47806
47807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pif:linux_ipv6 compile mode" >&5
47808$as_echo_n "checking for MCA component pif:linux_ipv6 compile mode... " >&6; }
47809    compile_mode="static"
47810    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
47811$as_echo "$compile_mode" >&6; }
47812
47813
47814    # try to configure the component
47815
47816    ac_config_files="$ac_config_files src/mca/pif/linux_ipv6/Makefile"
47817
47818
47819
47820
47821    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we are on Linux with TCP" >&5
47822$as_echo_n "checking if we are on Linux with TCP... " >&6; }
47823    # If we have struct sockaddr and we're on Linux, then we're
47824    # happy.
47825    if test "$pmix_found_sockaddr" = "yes" && test "$pmix_found_linux" = "yes"; then :
47826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47827$as_echo "yes" >&6; }
47828           should_build=$should_build
47829else
47830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47831$as_echo "no" >&6; }
47832           should_build=0
47833fi
47834
47835    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build"
47836
47837    if test "$should_build" = "1"; then :
47838
47839
47840
47841    # See if it dropped an output file for us to pick up some
47842    # shell variables in.
47843    infile="$srcdir/src/mca/pif/linux_ipv6/post_configure.sh"
47844
47845    # Add this subdir to the mast list of all MCA component subdirs
47846    all_components="$all_components linux_ipv6"
47847
47848    if test "$compile_mode" = "dso" ; then
47849        dso_components="$dso_components linux_ipv6"
47850    else
47851        if test "pif" = "common"; then
47852            # Static libraries in "common" frameworks are installed, and
47853            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
47854            # set.
47855            static_ltlibs="mca/pif/linux_ipv6/lib${PMIX_LIB_PREFIX}mca_pif_linux_ipv6.la $static_ltlibs"
47856        else
47857            # Other frameworks do not have to obey the
47858            # $FRAMEWORK_LIB_PREFIX prefix.
47859            static_ltlibs="mca/pif/linux_ipv6/libmca_pif_linux_ipv6.la $static_ltlibs"
47860        fi
47861        echo "extern const pmix_mca_base_component_t mca_pif_linux_ipv6_component;" >> $outfile.extern
47862        echo "  &mca_pif_linux_ipv6_component, " >> $outfile.struct
47863        static_components="$static_components linux_ipv6"
47864    fi
47865
47866    # Output pretty results
47867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:linux_ipv6 can compile" >&5
47868$as_echo_n "checking if MCA component pif:linux_ipv6 can compile... " >&6; }
47869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
47870$as_echo "yes" >&6; }
47871
47872                        if test -f $infile; then
47873        # check for direct call header to include.  This will be
47874        # AC_SUBSTed later.
47875        if test "$DIRECT_pif" = "linux_ipv6" ; then
47876            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
47877                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
47878                str="MCA_pmix_pif_DIRECT_CALL_HEADER=$line"
47879                eval $str
47880            else
47881as_fn_error $? "*** pif component linux_ipv6 was supposed to be direct-called, but
47882*** does not appear to support direct calling.
47883*** Aborting" "$LINENO" 5
47884            fi
47885        fi
47886    else
47887        # were we supposed to have found something in the
47888        # post_configure.sh, but the file didn't exist?
47889        if test "$DIRECT_pif" = "linux_ipv6" ; then
47890as_fn_error $? "*** pif component linux_ipv6 was supposed to be direct-called, but
47891*** does not appear to support direct calling.
47892*** Aborting" "$LINENO" 5
47893        fi
47894    fi
47895
47896    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
47897    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
47898    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
47899    # component didn't have it's own configure script (in which case,
47900    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
47901    # have to do this if the component is building dynamically,
47902    # because it will link against these (without a dependency from
47903    # libmpi.so to these flags)
47904    if test "$compile_mode" = "static"; then
47905        if test "$pif_linux_ipv6_WRAPPER_EXTRA_LDFLAGS" = ""; then :
47906
47907
47908
47909    # Is the private index set?  If not, set it.
47910    if test "x$pmix_scope_index" = "x"; then
47911        pmix_scope_index=1
47912    fi
47913
47914    # First, check to see if any of these variables are already set.
47915    # This is a simple sanity check to ensure we're not already
47916    # overwriting pre-existing variables (that have a non-empty
47917    # value).  It's not a perfect check, but at least it's something.
47918    for pmix_var in pmix_tmp pmix_append; do
47919        pmix_str="pmix_str=\"\$$pmix_var\""
47920        eval $pmix_str
47921
47922        if test "x$pmix_str" != "x"; then
47923            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
47924$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
47925            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
47926$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
47927            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
47928$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
47929            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
47930$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
47931            as_fn_error $? "Cannot continue" "$LINENO" 5
47932        fi
47933    done
47934
47935    # Ok, we passed the simple sanity check.  Save all these names so
47936    # that we can unset them at the end of the scope.
47937    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
47938    eval $pmix_str
47939    unset pmix_str
47940
47941    env | grep pmix_scope
47942    pmix_scope_index=`expr $pmix_scope_index + 1`
47943
47944
47945    for arg in $pif_linux_ipv6_LDFLAGS; do
47946        pmix_tmp=`echo $arg | cut -c1-2`
47947        pmix_append=1
47948        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
47949  for val in ${mca_wrapper_extra_ldflags}; do
47950                   if test "x$val" = "x$arg"; then :
47951  pmix_append=0
47952fi
47953               done
47954fi
47955        if test "$pmix_append" = "1"; then :
47956  if test -z "$mca_wrapper_extra_ldflags"; then :
47957  mca_wrapper_extra_ldflags=$arg
47958else
47959  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
47960fi
47961fi
47962    done
47963
47964
47965    # Unwind the index
47966    pmix_scope_index=`expr $pmix_scope_index - 1`
47967    pmix_scope_test=`expr $pmix_scope_index \> 0`
47968    if test "$pmix_scope_test" = "0"; then
47969        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
47970$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
47971        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
47972$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
47973        as_fn_error $? "Cannot continue" "$LINENO" 5
47974    fi
47975
47976    # Get the variable names from that index
47977    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
47978    eval $pmix_str
47979
47980    # Iterate over all the variables and unset them all
47981    for pmix_var in $pmix_str; do
47982        unset $pmix_var
47983    done
47984
47985
47986else
47987
47988
47989
47990    # Is the private index set?  If not, set it.
47991    if test "x$pmix_scope_index" = "x"; then
47992        pmix_scope_index=1
47993    fi
47994
47995    # First, check to see if any of these variables are already set.
47996    # This is a simple sanity check to ensure we're not already
47997    # overwriting pre-existing variables (that have a non-empty
47998    # value).  It's not a perfect check, but at least it's something.
47999    for pmix_var in pmix_tmp pmix_append; do
48000        pmix_str="pmix_str=\"\$$pmix_var\""
48001        eval $pmix_str
48002
48003        if test "x$pmix_str" != "x"; then
48004            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
48005$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
48006            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
48007$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
48008            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
48009$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
48010            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48011$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48012            as_fn_error $? "Cannot continue" "$LINENO" 5
48013        fi
48014    done
48015
48016    # Ok, we passed the simple sanity check.  Save all these names so
48017    # that we can unset them at the end of the scope.
48018    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
48019    eval $pmix_str
48020    unset pmix_str
48021
48022    env | grep pmix_scope
48023    pmix_scope_index=`expr $pmix_scope_index + 1`
48024
48025
48026    for arg in $pif_linux_ipv6_WRAPPER_EXTRA_LDFLAGS; do
48027        pmix_tmp=`echo $arg | cut -c1-2`
48028        pmix_append=1
48029        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
48030  for val in ${mca_wrapper_extra_ldflags}; do
48031                   if test "x$val" = "x$arg"; then :
48032  pmix_append=0
48033fi
48034               done
48035fi
48036        if test "$pmix_append" = "1"; then :
48037  if test -z "$mca_wrapper_extra_ldflags"; then :
48038  mca_wrapper_extra_ldflags=$arg
48039else
48040  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
48041fi
48042fi
48043    done
48044
48045
48046    # Unwind the index
48047    pmix_scope_index=`expr $pmix_scope_index - 1`
48048    pmix_scope_test=`expr $pmix_scope_index \> 0`
48049    if test "$pmix_scope_test" = "0"; then
48050        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
48051$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
48052        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48053$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48054        as_fn_error $? "Cannot continue" "$LINENO" 5
48055    fi
48056
48057    # Get the variable names from that index
48058    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
48059    eval $pmix_str
48060
48061    # Iterate over all the variables and unset them all
48062    for pmix_var in $pmix_str; do
48063        unset $pmix_var
48064    done
48065
48066
48067fi
48068                        if test "$pif_linux_ipv6_WRAPPER_EXTRA_LIBS" = ""; then :
48069
48070
48071
48072    # Is the private index set?  If not, set it.
48073    if test "x$pmix_scope_index" = "x"; then
48074        pmix_scope_index=1
48075    fi
48076
48077    # First, check to see if any of these variables are already set.
48078    # This is a simple sanity check to ensure we're not already
48079    # overwriting pre-existing variables (that have a non-empty
48080    # value).  It's not a perfect check, but at least it's something.
48081    for pmix_var in pmix_tmp pmix_append; do
48082        pmix_str="pmix_str=\"\$$pmix_var\""
48083        eval $pmix_str
48084
48085        if test "x$pmix_str" != "x"; then
48086            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
48087$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
48088            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
48089$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
48090            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
48091$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
48092            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48093$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48094            as_fn_error $? "Cannot continue" "$LINENO" 5
48095        fi
48096    done
48097
48098    # Ok, we passed the simple sanity check.  Save all these names so
48099    # that we can unset them at the end of the scope.
48100    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
48101    eval $pmix_str
48102    unset pmix_str
48103
48104    env | grep pmix_scope
48105    pmix_scope_index=`expr $pmix_scope_index + 1`
48106
48107
48108    for arg in $pif_linux_ipv6_LIBS; do
48109        pmix_tmp=`echo $arg | cut -c1-2`
48110        pmix_append=1
48111        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
48112  for val in ${mca_wrapper_extra_libs}; do
48113                   if test "x$val" = "x$arg"; then :
48114  pmix_append=0
48115fi
48116               done
48117fi
48118        if test "$pmix_append" = "1"; then :
48119  if test -z "$mca_wrapper_extra_libs"; then :
48120  mca_wrapper_extra_libs=$arg
48121else
48122  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
48123fi
48124fi
48125    done
48126
48127
48128    # Unwind the index
48129    pmix_scope_index=`expr $pmix_scope_index - 1`
48130    pmix_scope_test=`expr $pmix_scope_index \> 0`
48131    if test "$pmix_scope_test" = "0"; then
48132        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
48133$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
48134        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48135$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48136        as_fn_error $? "Cannot continue" "$LINENO" 5
48137    fi
48138
48139    # Get the variable names from that index
48140    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
48141    eval $pmix_str
48142
48143    # Iterate over all the variables and unset them all
48144    for pmix_var in $pmix_str; do
48145        unset $pmix_var
48146    done
48147
48148
48149else
48150
48151
48152
48153    # Is the private index set?  If not, set it.
48154    if test "x$pmix_scope_index" = "x"; then
48155        pmix_scope_index=1
48156    fi
48157
48158    # First, check to see if any of these variables are already set.
48159    # This is a simple sanity check to ensure we're not already
48160    # overwriting pre-existing variables (that have a non-empty
48161    # value).  It's not a perfect check, but at least it's something.
48162    for pmix_var in pmix_tmp pmix_append; do
48163        pmix_str="pmix_str=\"\$$pmix_var\""
48164        eval $pmix_str
48165
48166        if test "x$pmix_str" != "x"; then
48167            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
48168$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
48169            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
48170$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
48171            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
48172$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
48173            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48174$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48175            as_fn_error $? "Cannot continue" "$LINENO" 5
48176        fi
48177    done
48178
48179    # Ok, we passed the simple sanity check.  Save all these names so
48180    # that we can unset them at the end of the scope.
48181    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
48182    eval $pmix_str
48183    unset pmix_str
48184
48185    env | grep pmix_scope
48186    pmix_scope_index=`expr $pmix_scope_index + 1`
48187
48188
48189    for arg in $pif_linux_ipv6_WRAPPER_EXTRA_LIBS; do
48190        pmix_tmp=`echo $arg | cut -c1-2`
48191        pmix_append=1
48192        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
48193  for val in ${mca_wrapper_extra_libs}; do
48194                   if test "x$val" = "x$arg"; then :
48195  pmix_append=0
48196fi
48197               done
48198fi
48199        if test "$pmix_append" = "1"; then :
48200  if test -z "$mca_wrapper_extra_libs"; then :
48201  mca_wrapper_extra_libs=$arg
48202else
48203  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
48204fi
48205fi
48206    done
48207
48208
48209    # Unwind the index
48210    pmix_scope_index=`expr $pmix_scope_index - 1`
48211    pmix_scope_test=`expr $pmix_scope_index \> 0`
48212    if test "$pmix_scope_test" = "0"; then
48213        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
48214$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
48215        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48216$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48217        as_fn_error $? "Cannot continue" "$LINENO" 5
48218    fi
48219
48220    # Get the variable names from that index
48221    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
48222    eval $pmix_str
48223
48224    # Iterate over all the variables and unset them all
48225    for pmix_var in $pmix_str; do
48226        unset $pmix_var
48227    done
48228
48229
48230fi
48231
48232    fi
48233
48234    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
48235    # component can never be used in a STOP_AT_FIRST framework, we
48236    # don't have to implement the else clause in the literal check...
48237    if test "$pif_linux_ipv6_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
48238  stop_at_first=0
48239            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
48240  if test "$with_devel_headers" = "yes"; then :
48241
48242
48243
48244    # Is the private index set?  If not, set it.
48245    if test "x$pmix_scope_index" = "x"; then
48246        pmix_scope_index=1
48247    fi
48248
48249    # First, check to see if any of these variables are already set.
48250    # This is a simple sanity check to ensure we're not already
48251    # overwriting pre-existing variables (that have a non-empty
48252    # value).  It's not a perfect check, but at least it's something.
48253    for pmix_var in pmix_tmp pmix_append; do
48254        pmix_str="pmix_str=\"\$$pmix_var\""
48255        eval $pmix_str
48256
48257        if test "x$pmix_str" != "x"; then
48258            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
48259$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
48260            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
48261$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
48262            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
48263$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
48264            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48265$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48266            as_fn_error $? "Cannot continue" "$LINENO" 5
48267        fi
48268    done
48269
48270    # Ok, we passed the simple sanity check.  Save all these names so
48271    # that we can unset them at the end of the scope.
48272    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
48273    eval $pmix_str
48274    unset pmix_str
48275
48276    env | grep pmix_scope
48277    pmix_scope_index=`expr $pmix_scope_index + 1`
48278
48279
48280    for arg in $pif_linux_ipv6_WRAPPER_EXTRA_CPPFLAGS; do
48281        pmix_tmp=`echo $arg | cut -c1-2`
48282        pmix_append=1
48283        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
48284  for val in ${mca_wrapper_extra_cppflags}; do
48285                   if test "x$val" = "x$arg"; then :
48286  pmix_append=0
48287fi
48288               done
48289fi
48290        if test "$pmix_append" = "1"; then :
48291  if test -z "$mca_wrapper_extra_cppflags"; then :
48292  mca_wrapper_extra_cppflags=$arg
48293else
48294  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
48295fi
48296fi
48297    done
48298
48299
48300    # Unwind the index
48301    pmix_scope_index=`expr $pmix_scope_index - 1`
48302    pmix_scope_test=`expr $pmix_scope_index \> 0`
48303    if test "$pmix_scope_test" = "0"; then
48304        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
48305$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
48306        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48307$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48308        as_fn_error $? "Cannot continue" "$LINENO" 5
48309    fi
48310
48311    # Get the variable names from that index
48312    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
48313    eval $pmix_str
48314
48315    # Iterate over all the variables and unset them all
48316    for pmix_var in $pmix_str; do
48317        unset $pmix_var
48318    done
48319
48320
48321fi
48322else
48323  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pif_linux_ipv6_WRAPPER_EXTRA_CPPFLAGS ($pif_linux_ipv6_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
48324$as_echo "$as_me: WARNING: ignoring pif_linux_ipv6_WRAPPER_EXTRA_CPPFLAGS ($pif_linux_ipv6_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
48325fi
48326fi
48327
48328else
48329
48330    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:linux_ipv6 can compile" >&5
48331$as_echo_n "checking if MCA component pif:linux_ipv6 can compile... " >&6; }
48332    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48333$as_echo "no" >&6; }
48334
48335    # If this component was requested as the default for this
48336    # type, then abort.
48337    if test "$with_pif" = "linux_ipv6" ; then
48338        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux_ipv6\" failed to configure properly" >&5
48339$as_echo "$as_me: WARNING: MCA component \"linux_ipv6\" failed to configure properly" >&2;}
48340        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
48341$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
48342        as_fn_error $? "Cannot continue" "$LINENO" 5
48343    fi
48344
48345    if test ! -z "$DIRECT_pif" ; then
48346        if test "$DIRECT_pif" = "linux_ipv6" ; then
48347            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"linux_ipv6\" failed to configure properly" >&5
48348$as_echo "$as_me: WARNING: MCA component \"linux_ipv6\" failed to configure properly" >&2;}
48349            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
48350$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
48351            as_fn_error $? "Cannot continue" "$LINENO" 5
48352        fi
48353    fi
48354
48355           # add component to all component list
48356           all_components="$all_components linux_ipv6"
48357fi
48358
48359
48360
48361    # set the AM_CONDITIONAL on how we should build
48362    if test "$compile_mode" = "dso"; then :
48363  BUILD_pmix_pif_linux_ipv6_DSO=1
48364else
48365  BUILD_pmix_pif_linux_ipv6_DSO=0
48366fi
48367     if test "$BUILD_pmix_pif_linux_ipv6_DSO" = "1"; then
48368  MCA_BUILD_pmix_pif_linux_ipv6_DSO_TRUE=
48369  MCA_BUILD_pmix_pif_linux_ipv6_DSO_FALSE='#'
48370else
48371  MCA_BUILD_pmix_pif_linux_ipv6_DSO_TRUE='#'
48372  MCA_BUILD_pmix_pif_linux_ipv6_DSO_FALSE=
48373fi
48374
48375
48376    if test "$should_build" = "1"; then :
48377  components_last_result=1
48378else
48379  components_last_result=0
48380fi
48381
48382    unset compile_mode
48383
48384
48385
48386
48387
48388    pmix_show_subsubsubtitle "MCA component pif:posix_ipv4 (m4 configuration macro)"
48389
48390    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed"
48391
48392
48393
48394    component_path="$srcdir/src/mca/pif/posix_ipv4"
48395    want_component=0
48396
48397    # build if:
48398    # - the component type is direct and we are that component
48399    # - there is no pmix_ignore file
48400    # - there is an pmix_ignore, but there is an empty pmix_unignore
48401    # - there is an pmix_ignore, but username is in pmix_unignore
48402    if test -d $component_path ; then
48403        # decide if we want the component to be built or not.  This
48404        # is spread out because some of the logic is a little complex
48405        # and test's syntax isn't exactly the greatest.  We want to
48406        # build the component by default.
48407        want_component=1
48408        if test -f $component_path/.pmix_ignore ; then
48409            # If there is an pmix_ignore file, don't build
48410            # the component.  Note that this decision can be
48411            # overridden by the unignore logic below.
48412            want_component=0
48413        fi
48414        if test -f $component_path/.pmix_unignore ; then
48415            # if there is an empty pmix_unignore, that is
48416            # equivalent to having your userid in the unignore file.
48417            # If userid is in the file, unignore the ignore file.
48418            if test ! -s $component_path/.pmix_unignore ; then
48419                want_component=1
48420            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
48421                want_component=1
48422            fi
48423        fi
48424        # if this component type is direct and we are not it, we don't want
48425        # to be built.  Otherwise, we do want to be built.
48426        if test ! -z "$DIRECT_pif" ; then
48427            if test "$DIRECT_pif" = "posix_ipv4" ; then
48428                want_component=1
48429            else
48430                want_component=0
48431            fi
48432        fi
48433    fi
48434
48435    # if we were explicitly disabled, don't build :)
48436    if test "$DISABLE_pif" = "1"; then :
48437  want_component=0
48438fi
48439    if test "$DISABLE_pif_posix_ipv4" = "1"; then :
48440  want_component=0
48441fi
48442
48443    if test "$want_component" = "1"; then :
48444  should_build=$components_looking_for_succeed
48445else
48446  should_build=0
48447fi
48448
48449    # Allow the component to override the build mode if it really wants to.
48450    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
48451
48452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pif:posix_ipv4 compile mode" >&5
48453$as_echo_n "checking for MCA component pif:posix_ipv4 compile mode... " >&6; }
48454    compile_mode="static"
48455    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
48456$as_echo "$compile_mode" >&6; }
48457
48458
48459    # try to configure the component
48460
48461    ac_config_files="$ac_config_files src/mca/pif/posix_ipv4/Makefile"
48462
48463
48464
48465
48466    # Is the private index set?  If not, set it.
48467    if test "x$pmix_scope_index" = "x"; then
48468        pmix_scope_index=1
48469    fi
48470
48471    # First, check to see if any of these variables are already set.
48472    # This is a simple sanity check to ensure we're not already
48473    # overwriting pre-existing variables (that have a non-empty
48474    # value).  It's not a perfect check, but at least it's something.
48475    for pmix_var in pmix_pif_posix_ipv4_happy; do
48476        pmix_str="pmix_str=\"\$$pmix_var\""
48477        eval $pmix_str
48478
48479        if test "x$pmix_str" != "x"; then
48480            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
48481$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
48482            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
48483$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
48484            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
48485$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
48486            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48487$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48488            as_fn_error $? "Cannot continue" "$LINENO" 5
48489        fi
48490    done
48491
48492    # Ok, we passed the simple sanity check.  Save all these names so
48493    # that we can unset them at the end of the scope.
48494    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_pif_posix_ipv4_happy\""
48495    eval $pmix_str
48496    unset pmix_str
48497
48498    env | grep pmix_scope
48499    pmix_scope_index=`expr $pmix_scope_index + 1`
48500
48501    pmix_pif_posix_ipv4_happy=no
48502
48503
48504
48505    # If we found struct sockaddr and we're NOT on most of the BSDs,
48506    # we're happy.  I.e., if posix but not:
48507    #if defined(__NetBSD__) || defined(__FreeBSD__) || \
48508    #    defined(__OpenBSD__) || defined(__DragonFly__)
48509    { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr" >&5
48510$as_echo_n "checking struct sockaddr... " >&6; }
48511    if test "$pmix_found_sockaddr" = "yes"; then :
48512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (cached)" >&5
48513$as_echo "yes (cached)" >&6; }
48514           { $as_echo "$as_me:${as_lineno-$LINENO}: checking not NetBSD, FreeBSD, OpenBSD, or DragonFly" >&5
48515$as_echo_n "checking not NetBSD, FreeBSD, OpenBSD, or DragonFly... " >&6; }
48516           if test "$pmix_found_netbsd" = "no" && test "$pmix_found_freebsd" = "no" && test "$pmix_found_openbsd" = "no" && test "$pmix_found_dragonfly" = "no"; then :
48517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48518$as_echo "yes" >&6; }
48519                  pmix_pif_posix_ipv4_happy=yes
48520else
48521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
48522$as_echo "no" >&6; }
48523
48524fi
48525else
48526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cached)" >&5
48527$as_echo "no (cached)" >&6; }
48528
48529fi
48530
48531    if test "$pmix_pif_posix_ipv4_happy" = "yes"; then :
48532  ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#include <net/if.h>
48533"
48534if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
48535
48536cat >>confdefs.h <<_ACEOF
48537#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
48538_ACEOF
48539
48540
48541fi
48542
48543           ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_mtu" "ac_cv_member_struct_ifreq_ifr_mtu" "#include <net/if.h>
48544"
48545if test "x$ac_cv_member_struct_ifreq_ifr_mtu" = xyes; then :
48546
48547cat >>confdefs.h <<_ACEOF
48548#define HAVE_STRUCT_IFREQ_IFR_MTU 1
48549_ACEOF
48550
48551
48552fi
48553
48554
48555fi
48556
48557    if test "$pmix_pif_posix_ipv4_happy" = "yes"; then :
48558  should_build=$should_build
48559else
48560  should_build=0
48561fi;
48562
48563    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build"
48564
48565    if test "$should_build" = "1"; then :
48566
48567
48568
48569    # See if it dropped an output file for us to pick up some
48570    # shell variables in.
48571    infile="$srcdir/src/mca/pif/posix_ipv4/post_configure.sh"
48572
48573    # Add this subdir to the mast list of all MCA component subdirs
48574    all_components="$all_components posix_ipv4"
48575
48576    if test "$compile_mode" = "dso" ; then
48577        dso_components="$dso_components posix_ipv4"
48578    else
48579        if test "pif" = "common"; then
48580            # Static libraries in "common" frameworks are installed, and
48581            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
48582            # set.
48583            static_ltlibs="mca/pif/posix_ipv4/lib${PMIX_LIB_PREFIX}mca_pif_posix_ipv4.la $static_ltlibs"
48584        else
48585            # Other frameworks do not have to obey the
48586            # $FRAMEWORK_LIB_PREFIX prefix.
48587            static_ltlibs="mca/pif/posix_ipv4/libmca_pif_posix_ipv4.la $static_ltlibs"
48588        fi
48589        echo "extern const pmix_mca_base_component_t mca_pif_posix_ipv4_component;" >> $outfile.extern
48590        echo "  &mca_pif_posix_ipv4_component, " >> $outfile.struct
48591        static_components="$static_components posix_ipv4"
48592    fi
48593
48594    # Output pretty results
48595    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:posix_ipv4 can compile" >&5
48596$as_echo_n "checking if MCA component pif:posix_ipv4 can compile... " >&6; }
48597    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
48598$as_echo "yes" >&6; }
48599
48600                        if test -f $infile; then
48601        # check for direct call header to include.  This will be
48602        # AC_SUBSTed later.
48603        if test "$DIRECT_pif" = "posix_ipv4" ; then
48604            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
48605                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
48606                str="MCA_pmix_pif_DIRECT_CALL_HEADER=$line"
48607                eval $str
48608            else
48609as_fn_error $? "*** pif component posix_ipv4 was supposed to be direct-called, but
48610*** does not appear to support direct calling.
48611*** Aborting" "$LINENO" 5
48612            fi
48613        fi
48614    else
48615        # were we supposed to have found something in the
48616        # post_configure.sh, but the file didn't exist?
48617        if test "$DIRECT_pif" = "posix_ipv4" ; then
48618as_fn_error $? "*** pif component posix_ipv4 was supposed to be direct-called, but
48619*** does not appear to support direct calling.
48620*** Aborting" "$LINENO" 5
48621        fi
48622    fi
48623
48624    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
48625    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
48626    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
48627    # component didn't have it's own configure script (in which case,
48628    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
48629    # have to do this if the component is building dynamically,
48630    # because it will link against these (without a dependency from
48631    # libmpi.so to these flags)
48632    if test "$compile_mode" = "static"; then
48633        if test "$pif_posix_ipv4_WRAPPER_EXTRA_LDFLAGS" = ""; then :
48634
48635
48636
48637    # Is the private index set?  If not, set it.
48638    if test "x$pmix_scope_index" = "x"; then
48639        pmix_scope_index=1
48640    fi
48641
48642    # First, check to see if any of these variables are already set.
48643    # This is a simple sanity check to ensure we're not already
48644    # overwriting pre-existing variables (that have a non-empty
48645    # value).  It's not a perfect check, but at least it's something.
48646    for pmix_var in pmix_tmp pmix_append; do
48647        pmix_str="pmix_str=\"\$$pmix_var\""
48648        eval $pmix_str
48649
48650        if test "x$pmix_str" != "x"; then
48651            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
48652$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
48653            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
48654$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
48655            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
48656$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
48657            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48658$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48659            as_fn_error $? "Cannot continue" "$LINENO" 5
48660        fi
48661    done
48662
48663    # Ok, we passed the simple sanity check.  Save all these names so
48664    # that we can unset them at the end of the scope.
48665    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
48666    eval $pmix_str
48667    unset pmix_str
48668
48669    env | grep pmix_scope
48670    pmix_scope_index=`expr $pmix_scope_index + 1`
48671
48672
48673    for arg in $pif_posix_ipv4_LDFLAGS; do
48674        pmix_tmp=`echo $arg | cut -c1-2`
48675        pmix_append=1
48676        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
48677  for val in ${mca_wrapper_extra_ldflags}; do
48678                   if test "x$val" = "x$arg"; then :
48679  pmix_append=0
48680fi
48681               done
48682fi
48683        if test "$pmix_append" = "1"; then :
48684  if test -z "$mca_wrapper_extra_ldflags"; then :
48685  mca_wrapper_extra_ldflags=$arg
48686else
48687  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
48688fi
48689fi
48690    done
48691
48692
48693    # Unwind the index
48694    pmix_scope_index=`expr $pmix_scope_index - 1`
48695    pmix_scope_test=`expr $pmix_scope_index \> 0`
48696    if test "$pmix_scope_test" = "0"; then
48697        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
48698$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
48699        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48700$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48701        as_fn_error $? "Cannot continue" "$LINENO" 5
48702    fi
48703
48704    # Get the variable names from that index
48705    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
48706    eval $pmix_str
48707
48708    # Iterate over all the variables and unset them all
48709    for pmix_var in $pmix_str; do
48710        unset $pmix_var
48711    done
48712
48713
48714else
48715
48716
48717
48718    # Is the private index set?  If not, set it.
48719    if test "x$pmix_scope_index" = "x"; then
48720        pmix_scope_index=1
48721    fi
48722
48723    # First, check to see if any of these variables are already set.
48724    # This is a simple sanity check to ensure we're not already
48725    # overwriting pre-existing variables (that have a non-empty
48726    # value).  It's not a perfect check, but at least it's something.
48727    for pmix_var in pmix_tmp pmix_append; do
48728        pmix_str="pmix_str=\"\$$pmix_var\""
48729        eval $pmix_str
48730
48731        if test "x$pmix_str" != "x"; then
48732            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
48733$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
48734            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
48735$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
48736            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
48737$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
48738            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48739$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48740            as_fn_error $? "Cannot continue" "$LINENO" 5
48741        fi
48742    done
48743
48744    # Ok, we passed the simple sanity check.  Save all these names so
48745    # that we can unset them at the end of the scope.
48746    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
48747    eval $pmix_str
48748    unset pmix_str
48749
48750    env | grep pmix_scope
48751    pmix_scope_index=`expr $pmix_scope_index + 1`
48752
48753
48754    for arg in $pif_posix_ipv4_WRAPPER_EXTRA_LDFLAGS; do
48755        pmix_tmp=`echo $arg | cut -c1-2`
48756        pmix_append=1
48757        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
48758  for val in ${mca_wrapper_extra_ldflags}; do
48759                   if test "x$val" = "x$arg"; then :
48760  pmix_append=0
48761fi
48762               done
48763fi
48764        if test "$pmix_append" = "1"; then :
48765  if test -z "$mca_wrapper_extra_ldflags"; then :
48766  mca_wrapper_extra_ldflags=$arg
48767else
48768  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
48769fi
48770fi
48771    done
48772
48773
48774    # Unwind the index
48775    pmix_scope_index=`expr $pmix_scope_index - 1`
48776    pmix_scope_test=`expr $pmix_scope_index \> 0`
48777    if test "$pmix_scope_test" = "0"; then
48778        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
48779$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
48780        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48781$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48782        as_fn_error $? "Cannot continue" "$LINENO" 5
48783    fi
48784
48785    # Get the variable names from that index
48786    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
48787    eval $pmix_str
48788
48789    # Iterate over all the variables and unset them all
48790    for pmix_var in $pmix_str; do
48791        unset $pmix_var
48792    done
48793
48794
48795fi
48796                        if test "$pif_posix_ipv4_WRAPPER_EXTRA_LIBS" = ""; then :
48797
48798
48799
48800    # Is the private index set?  If not, set it.
48801    if test "x$pmix_scope_index" = "x"; then
48802        pmix_scope_index=1
48803    fi
48804
48805    # First, check to see if any of these variables are already set.
48806    # This is a simple sanity check to ensure we're not already
48807    # overwriting pre-existing variables (that have a non-empty
48808    # value).  It's not a perfect check, but at least it's something.
48809    for pmix_var in pmix_tmp pmix_append; do
48810        pmix_str="pmix_str=\"\$$pmix_var\""
48811        eval $pmix_str
48812
48813        if test "x$pmix_str" != "x"; then
48814            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
48815$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
48816            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
48817$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
48818            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
48819$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
48820            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48821$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48822            as_fn_error $? "Cannot continue" "$LINENO" 5
48823        fi
48824    done
48825
48826    # Ok, we passed the simple sanity check.  Save all these names so
48827    # that we can unset them at the end of the scope.
48828    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
48829    eval $pmix_str
48830    unset pmix_str
48831
48832    env | grep pmix_scope
48833    pmix_scope_index=`expr $pmix_scope_index + 1`
48834
48835
48836    for arg in $pif_posix_ipv4_LIBS; do
48837        pmix_tmp=`echo $arg | cut -c1-2`
48838        pmix_append=1
48839        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
48840  for val in ${mca_wrapper_extra_libs}; do
48841                   if test "x$val" = "x$arg"; then :
48842  pmix_append=0
48843fi
48844               done
48845fi
48846        if test "$pmix_append" = "1"; then :
48847  if test -z "$mca_wrapper_extra_libs"; then :
48848  mca_wrapper_extra_libs=$arg
48849else
48850  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
48851fi
48852fi
48853    done
48854
48855
48856    # Unwind the index
48857    pmix_scope_index=`expr $pmix_scope_index - 1`
48858    pmix_scope_test=`expr $pmix_scope_index \> 0`
48859    if test "$pmix_scope_test" = "0"; then
48860        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
48861$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
48862        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48863$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48864        as_fn_error $? "Cannot continue" "$LINENO" 5
48865    fi
48866
48867    # Get the variable names from that index
48868    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
48869    eval $pmix_str
48870
48871    # Iterate over all the variables and unset them all
48872    for pmix_var in $pmix_str; do
48873        unset $pmix_var
48874    done
48875
48876
48877else
48878
48879
48880
48881    # Is the private index set?  If not, set it.
48882    if test "x$pmix_scope_index" = "x"; then
48883        pmix_scope_index=1
48884    fi
48885
48886    # First, check to see if any of these variables are already set.
48887    # This is a simple sanity check to ensure we're not already
48888    # overwriting pre-existing variables (that have a non-empty
48889    # value).  It's not a perfect check, but at least it's something.
48890    for pmix_var in pmix_tmp pmix_append; do
48891        pmix_str="pmix_str=\"\$$pmix_var\""
48892        eval $pmix_str
48893
48894        if test "x$pmix_str" != "x"; then
48895            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
48896$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
48897            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
48898$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
48899            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
48900$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
48901            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48902$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48903            as_fn_error $? "Cannot continue" "$LINENO" 5
48904        fi
48905    done
48906
48907    # Ok, we passed the simple sanity check.  Save all these names so
48908    # that we can unset them at the end of the scope.
48909    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
48910    eval $pmix_str
48911    unset pmix_str
48912
48913    env | grep pmix_scope
48914    pmix_scope_index=`expr $pmix_scope_index + 1`
48915
48916
48917    for arg in $pif_posix_ipv4_WRAPPER_EXTRA_LIBS; do
48918        pmix_tmp=`echo $arg | cut -c1-2`
48919        pmix_append=1
48920        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
48921  for val in ${mca_wrapper_extra_libs}; do
48922                   if test "x$val" = "x$arg"; then :
48923  pmix_append=0
48924fi
48925               done
48926fi
48927        if test "$pmix_append" = "1"; then :
48928  if test -z "$mca_wrapper_extra_libs"; then :
48929  mca_wrapper_extra_libs=$arg
48930else
48931  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
48932fi
48933fi
48934    done
48935
48936
48937    # Unwind the index
48938    pmix_scope_index=`expr $pmix_scope_index - 1`
48939    pmix_scope_test=`expr $pmix_scope_index \> 0`
48940    if test "$pmix_scope_test" = "0"; then
48941        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
48942$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
48943        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48944$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48945        as_fn_error $? "Cannot continue" "$LINENO" 5
48946    fi
48947
48948    # Get the variable names from that index
48949    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
48950    eval $pmix_str
48951
48952    # Iterate over all the variables and unset them all
48953    for pmix_var in $pmix_str; do
48954        unset $pmix_var
48955    done
48956
48957
48958fi
48959
48960    fi
48961
48962    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
48963    # component can never be used in a STOP_AT_FIRST framework, we
48964    # don't have to implement the else clause in the literal check...
48965    if test "$pif_posix_ipv4_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
48966  stop_at_first=0
48967            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
48968  if test "$with_devel_headers" = "yes"; then :
48969
48970
48971
48972    # Is the private index set?  If not, set it.
48973    if test "x$pmix_scope_index" = "x"; then
48974        pmix_scope_index=1
48975    fi
48976
48977    # First, check to see if any of these variables are already set.
48978    # This is a simple sanity check to ensure we're not already
48979    # overwriting pre-existing variables (that have a non-empty
48980    # value).  It's not a perfect check, but at least it's something.
48981    for pmix_var in pmix_tmp pmix_append; do
48982        pmix_str="pmix_str=\"\$$pmix_var\""
48983        eval $pmix_str
48984
48985        if test "x$pmix_str" != "x"; then
48986            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
48987$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
48988            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
48989$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
48990            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
48991$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
48992            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
48993$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
48994            as_fn_error $? "Cannot continue" "$LINENO" 5
48995        fi
48996    done
48997
48998    # Ok, we passed the simple sanity check.  Save all these names so
48999    # that we can unset them at the end of the scope.
49000    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
49001    eval $pmix_str
49002    unset pmix_str
49003
49004    env | grep pmix_scope
49005    pmix_scope_index=`expr $pmix_scope_index + 1`
49006
49007
49008    for arg in $pif_posix_ipv4_WRAPPER_EXTRA_CPPFLAGS; do
49009        pmix_tmp=`echo $arg | cut -c1-2`
49010        pmix_append=1
49011        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
49012  for val in ${mca_wrapper_extra_cppflags}; do
49013                   if test "x$val" = "x$arg"; then :
49014  pmix_append=0
49015fi
49016               done
49017fi
49018        if test "$pmix_append" = "1"; then :
49019  if test -z "$mca_wrapper_extra_cppflags"; then :
49020  mca_wrapper_extra_cppflags=$arg
49021else
49022  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
49023fi
49024fi
49025    done
49026
49027
49028    # Unwind the index
49029    pmix_scope_index=`expr $pmix_scope_index - 1`
49030    pmix_scope_test=`expr $pmix_scope_index \> 0`
49031    if test "$pmix_scope_test" = "0"; then
49032        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
49033$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
49034        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
49035$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
49036        as_fn_error $? "Cannot continue" "$LINENO" 5
49037    fi
49038
49039    # Get the variable names from that index
49040    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
49041    eval $pmix_str
49042
49043    # Iterate over all the variables and unset them all
49044    for pmix_var in $pmix_str; do
49045        unset $pmix_var
49046    done
49047
49048
49049fi
49050else
49051  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pif_posix_ipv4_WRAPPER_EXTRA_CPPFLAGS ($pif_posix_ipv4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
49052$as_echo "$as_me: WARNING: ignoring pif_posix_ipv4_WRAPPER_EXTRA_CPPFLAGS ($pif_posix_ipv4_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
49053fi
49054fi
49055
49056else
49057
49058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:posix_ipv4 can compile" >&5
49059$as_echo_n "checking if MCA component pif:posix_ipv4 can compile... " >&6; }
49060    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49061$as_echo "no" >&6; }
49062
49063    # If this component was requested as the default for this
49064    # type, then abort.
49065    if test "$with_pif" = "posix_ipv4" ; then
49066        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"posix_ipv4\" failed to configure properly" >&5
49067$as_echo "$as_me: WARNING: MCA component \"posix_ipv4\" failed to configure properly" >&2;}
49068        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
49069$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
49070        as_fn_error $? "Cannot continue" "$LINENO" 5
49071    fi
49072
49073    if test ! -z "$DIRECT_pif" ; then
49074        if test "$DIRECT_pif" = "posix_ipv4" ; then
49075            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"posix_ipv4\" failed to configure properly" >&5
49076$as_echo "$as_me: WARNING: MCA component \"posix_ipv4\" failed to configure properly" >&2;}
49077            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
49078$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
49079            as_fn_error $? "Cannot continue" "$LINENO" 5
49080        fi
49081    fi
49082
49083           # add component to all component list
49084           all_components="$all_components posix_ipv4"
49085fi
49086
49087
49088
49089    # set the AM_CONDITIONAL on how we should build
49090    if test "$compile_mode" = "dso"; then :
49091  BUILD_pmix_pif_posix_ipv4_DSO=1
49092else
49093  BUILD_pmix_pif_posix_ipv4_DSO=0
49094fi
49095     if test "$BUILD_pmix_pif_posix_ipv4_DSO" = "1"; then
49096  MCA_BUILD_pmix_pif_posix_ipv4_DSO_TRUE=
49097  MCA_BUILD_pmix_pif_posix_ipv4_DSO_FALSE='#'
49098else
49099  MCA_BUILD_pmix_pif_posix_ipv4_DSO_TRUE='#'
49100  MCA_BUILD_pmix_pif_posix_ipv4_DSO_FALSE=
49101fi
49102
49103
49104    if test "$should_build" = "1"; then :
49105  components_last_result=1
49106else
49107  components_last_result=0
49108fi
49109
49110    unset compile_mode
49111
49112
49113
49114
49115
49116    pmix_show_subsubsubtitle "MCA component pif:solaris_ipv6 (m4 configuration macro)"
49117
49118    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed"
49119
49120
49121
49122    component_path="$srcdir/src/mca/pif/solaris_ipv6"
49123    want_component=0
49124
49125    # build if:
49126    # - the component type is direct and we are that component
49127    # - there is no pmix_ignore file
49128    # - there is an pmix_ignore, but there is an empty pmix_unignore
49129    # - there is an pmix_ignore, but username is in pmix_unignore
49130    if test -d $component_path ; then
49131        # decide if we want the component to be built or not.  This
49132        # is spread out because some of the logic is a little complex
49133        # and test's syntax isn't exactly the greatest.  We want to
49134        # build the component by default.
49135        want_component=1
49136        if test -f $component_path/.pmix_ignore ; then
49137            # If there is an pmix_ignore file, don't build
49138            # the component.  Note that this decision can be
49139            # overridden by the unignore logic below.
49140            want_component=0
49141        fi
49142        if test -f $component_path/.pmix_unignore ; then
49143            # if there is an empty pmix_unignore, that is
49144            # equivalent to having your userid in the unignore file.
49145            # If userid is in the file, unignore the ignore file.
49146            if test ! -s $component_path/.pmix_unignore ; then
49147                want_component=1
49148            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
49149                want_component=1
49150            fi
49151        fi
49152        # if this component type is direct and we are not it, we don't want
49153        # to be built.  Otherwise, we do want to be built.
49154        if test ! -z "$DIRECT_pif" ; then
49155            if test "$DIRECT_pif" = "solaris_ipv6" ; then
49156                want_component=1
49157            else
49158                want_component=0
49159            fi
49160        fi
49161    fi
49162
49163    # if we were explicitly disabled, don't build :)
49164    if test "$DISABLE_pif" = "1"; then :
49165  want_component=0
49166fi
49167    if test "$DISABLE_pif_solaris_ipv6" = "1"; then :
49168  want_component=0
49169fi
49170
49171    if test "$want_component" = "1"; then :
49172  should_build=$components_looking_for_succeed
49173else
49174  should_build=0
49175fi
49176
49177    # Allow the component to override the build mode if it really wants to.
49178    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
49179
49180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pif:solaris_ipv6 compile mode" >&5
49181$as_echo_n "checking for MCA component pif:solaris_ipv6 compile mode... " >&6; }
49182    compile_mode="static"
49183    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
49184$as_echo "$compile_mode" >&6; }
49185
49186
49187    # try to configure the component
49188
49189    ac_config_files="$ac_config_files src/mca/pif/solaris_ipv6/Makefile"
49190
49191
49192
49193
49194    # check to see if we are on a solaris machine
49195    if test "$pmix_found_sun" = "yes"; then :
49196  should_build=$should_build
49197else
49198  should_build=0
49199fi
49200
49201    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build"
49202
49203    if test "$should_build" = "1"; then :
49204
49205
49206
49207    # See if it dropped an output file for us to pick up some
49208    # shell variables in.
49209    infile="$srcdir/src/mca/pif/solaris_ipv6/post_configure.sh"
49210
49211    # Add this subdir to the mast list of all MCA component subdirs
49212    all_components="$all_components solaris_ipv6"
49213
49214    if test "$compile_mode" = "dso" ; then
49215        dso_components="$dso_components solaris_ipv6"
49216    else
49217        if test "pif" = "common"; then
49218            # Static libraries in "common" frameworks are installed, and
49219            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
49220            # set.
49221            static_ltlibs="mca/pif/solaris_ipv6/lib${PMIX_LIB_PREFIX}mca_pif_solaris_ipv6.la $static_ltlibs"
49222        else
49223            # Other frameworks do not have to obey the
49224            # $FRAMEWORK_LIB_PREFIX prefix.
49225            static_ltlibs="mca/pif/solaris_ipv6/libmca_pif_solaris_ipv6.la $static_ltlibs"
49226        fi
49227        echo "extern const pmix_mca_base_component_t mca_pif_solaris_ipv6_component;" >> $outfile.extern
49228        echo "  &mca_pif_solaris_ipv6_component, " >> $outfile.struct
49229        static_components="$static_components solaris_ipv6"
49230    fi
49231
49232    # Output pretty results
49233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:solaris_ipv6 can compile" >&5
49234$as_echo_n "checking if MCA component pif:solaris_ipv6 can compile... " >&6; }
49235    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
49236$as_echo "yes" >&6; }
49237
49238                        if test -f $infile; then
49239        # check for direct call header to include.  This will be
49240        # AC_SUBSTed later.
49241        if test "$DIRECT_pif" = "solaris_ipv6" ; then
49242            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
49243                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
49244                str="MCA_pmix_pif_DIRECT_CALL_HEADER=$line"
49245                eval $str
49246            else
49247as_fn_error $? "*** pif component solaris_ipv6 was supposed to be direct-called, but
49248*** does not appear to support direct calling.
49249*** Aborting" "$LINENO" 5
49250            fi
49251        fi
49252    else
49253        # were we supposed to have found something in the
49254        # post_configure.sh, but the file didn't exist?
49255        if test "$DIRECT_pif" = "solaris_ipv6" ; then
49256as_fn_error $? "*** pif component solaris_ipv6 was supposed to be direct-called, but
49257*** does not appear to support direct calling.
49258*** Aborting" "$LINENO" 5
49259        fi
49260    fi
49261
49262    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
49263    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
49264    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
49265    # component didn't have it's own configure script (in which case,
49266    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
49267    # have to do this if the component is building dynamically,
49268    # because it will link against these (without a dependency from
49269    # libmpi.so to these flags)
49270    if test "$compile_mode" = "static"; then
49271        if test "$pif_solaris_ipv6_WRAPPER_EXTRA_LDFLAGS" = ""; then :
49272
49273
49274
49275    # Is the private index set?  If not, set it.
49276    if test "x$pmix_scope_index" = "x"; then
49277        pmix_scope_index=1
49278    fi
49279
49280    # First, check to see if any of these variables are already set.
49281    # This is a simple sanity check to ensure we're not already
49282    # overwriting pre-existing variables (that have a non-empty
49283    # value).  It's not a perfect check, but at least it's something.
49284    for pmix_var in pmix_tmp pmix_append; do
49285        pmix_str="pmix_str=\"\$$pmix_var\""
49286        eval $pmix_str
49287
49288        if test "x$pmix_str" != "x"; then
49289            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
49290$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
49291            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
49292$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
49293            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
49294$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
49295            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
49296$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
49297            as_fn_error $? "Cannot continue" "$LINENO" 5
49298        fi
49299    done
49300
49301    # Ok, we passed the simple sanity check.  Save all these names so
49302    # that we can unset them at the end of the scope.
49303    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
49304    eval $pmix_str
49305    unset pmix_str
49306
49307    env | grep pmix_scope
49308    pmix_scope_index=`expr $pmix_scope_index + 1`
49309
49310
49311    for arg in $pif_solaris_ipv6_LDFLAGS; do
49312        pmix_tmp=`echo $arg | cut -c1-2`
49313        pmix_append=1
49314        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
49315  for val in ${mca_wrapper_extra_ldflags}; do
49316                   if test "x$val" = "x$arg"; then :
49317  pmix_append=0
49318fi
49319               done
49320fi
49321        if test "$pmix_append" = "1"; then :
49322  if test -z "$mca_wrapper_extra_ldflags"; then :
49323  mca_wrapper_extra_ldflags=$arg
49324else
49325  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
49326fi
49327fi
49328    done
49329
49330
49331    # Unwind the index
49332    pmix_scope_index=`expr $pmix_scope_index - 1`
49333    pmix_scope_test=`expr $pmix_scope_index \> 0`
49334    if test "$pmix_scope_test" = "0"; then
49335        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
49336$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
49337        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
49338$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
49339        as_fn_error $? "Cannot continue" "$LINENO" 5
49340    fi
49341
49342    # Get the variable names from that index
49343    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
49344    eval $pmix_str
49345
49346    # Iterate over all the variables and unset them all
49347    for pmix_var in $pmix_str; do
49348        unset $pmix_var
49349    done
49350
49351
49352else
49353
49354
49355
49356    # Is the private index set?  If not, set it.
49357    if test "x$pmix_scope_index" = "x"; then
49358        pmix_scope_index=1
49359    fi
49360
49361    # First, check to see if any of these variables are already set.
49362    # This is a simple sanity check to ensure we're not already
49363    # overwriting pre-existing variables (that have a non-empty
49364    # value).  It's not a perfect check, but at least it's something.
49365    for pmix_var in pmix_tmp pmix_append; do
49366        pmix_str="pmix_str=\"\$$pmix_var\""
49367        eval $pmix_str
49368
49369        if test "x$pmix_str" != "x"; then
49370            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
49371$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
49372            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
49373$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
49374            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
49375$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
49376            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
49377$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
49378            as_fn_error $? "Cannot continue" "$LINENO" 5
49379        fi
49380    done
49381
49382    # Ok, we passed the simple sanity check.  Save all these names so
49383    # that we can unset them at the end of the scope.
49384    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
49385    eval $pmix_str
49386    unset pmix_str
49387
49388    env | grep pmix_scope
49389    pmix_scope_index=`expr $pmix_scope_index + 1`
49390
49391
49392    for arg in $pif_solaris_ipv6_WRAPPER_EXTRA_LDFLAGS; do
49393        pmix_tmp=`echo $arg | cut -c1-2`
49394        pmix_append=1
49395        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
49396  for val in ${mca_wrapper_extra_ldflags}; do
49397                   if test "x$val" = "x$arg"; then :
49398  pmix_append=0
49399fi
49400               done
49401fi
49402        if test "$pmix_append" = "1"; then :
49403  if test -z "$mca_wrapper_extra_ldflags"; then :
49404  mca_wrapper_extra_ldflags=$arg
49405else
49406  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
49407fi
49408fi
49409    done
49410
49411
49412    # Unwind the index
49413    pmix_scope_index=`expr $pmix_scope_index - 1`
49414    pmix_scope_test=`expr $pmix_scope_index \> 0`
49415    if test "$pmix_scope_test" = "0"; then
49416        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
49417$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
49418        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
49419$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
49420        as_fn_error $? "Cannot continue" "$LINENO" 5
49421    fi
49422
49423    # Get the variable names from that index
49424    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
49425    eval $pmix_str
49426
49427    # Iterate over all the variables and unset them all
49428    for pmix_var in $pmix_str; do
49429        unset $pmix_var
49430    done
49431
49432
49433fi
49434                        if test "$pif_solaris_ipv6_WRAPPER_EXTRA_LIBS" = ""; then :
49435
49436
49437
49438    # Is the private index set?  If not, set it.
49439    if test "x$pmix_scope_index" = "x"; then
49440        pmix_scope_index=1
49441    fi
49442
49443    # First, check to see if any of these variables are already set.
49444    # This is a simple sanity check to ensure we're not already
49445    # overwriting pre-existing variables (that have a non-empty
49446    # value).  It's not a perfect check, but at least it's something.
49447    for pmix_var in pmix_tmp pmix_append; do
49448        pmix_str="pmix_str=\"\$$pmix_var\""
49449        eval $pmix_str
49450
49451        if test "x$pmix_str" != "x"; then
49452            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
49453$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
49454            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
49455$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
49456            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
49457$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
49458            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
49459$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
49460            as_fn_error $? "Cannot continue" "$LINENO" 5
49461        fi
49462    done
49463
49464    # Ok, we passed the simple sanity check.  Save all these names so
49465    # that we can unset them at the end of the scope.
49466    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
49467    eval $pmix_str
49468    unset pmix_str
49469
49470    env | grep pmix_scope
49471    pmix_scope_index=`expr $pmix_scope_index + 1`
49472
49473
49474    for arg in $pif_solaris_ipv6_LIBS; do
49475        pmix_tmp=`echo $arg | cut -c1-2`
49476        pmix_append=1
49477        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
49478  for val in ${mca_wrapper_extra_libs}; do
49479                   if test "x$val" = "x$arg"; then :
49480  pmix_append=0
49481fi
49482               done
49483fi
49484        if test "$pmix_append" = "1"; then :
49485  if test -z "$mca_wrapper_extra_libs"; then :
49486  mca_wrapper_extra_libs=$arg
49487else
49488  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
49489fi
49490fi
49491    done
49492
49493
49494    # Unwind the index
49495    pmix_scope_index=`expr $pmix_scope_index - 1`
49496    pmix_scope_test=`expr $pmix_scope_index \> 0`
49497    if test "$pmix_scope_test" = "0"; then
49498        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
49499$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
49500        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
49501$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
49502        as_fn_error $? "Cannot continue" "$LINENO" 5
49503    fi
49504
49505    # Get the variable names from that index
49506    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
49507    eval $pmix_str
49508
49509    # Iterate over all the variables and unset them all
49510    for pmix_var in $pmix_str; do
49511        unset $pmix_var
49512    done
49513
49514
49515else
49516
49517
49518
49519    # Is the private index set?  If not, set it.
49520    if test "x$pmix_scope_index" = "x"; then
49521        pmix_scope_index=1
49522    fi
49523
49524    # First, check to see if any of these variables are already set.
49525    # This is a simple sanity check to ensure we're not already
49526    # overwriting pre-existing variables (that have a non-empty
49527    # value).  It's not a perfect check, but at least it's something.
49528    for pmix_var in pmix_tmp pmix_append; do
49529        pmix_str="pmix_str=\"\$$pmix_var\""
49530        eval $pmix_str
49531
49532        if test "x$pmix_str" != "x"; then
49533            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
49534$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
49535            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
49536$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
49537            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
49538$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
49539            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
49540$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
49541            as_fn_error $? "Cannot continue" "$LINENO" 5
49542        fi
49543    done
49544
49545    # Ok, we passed the simple sanity check.  Save all these names so
49546    # that we can unset them at the end of the scope.
49547    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
49548    eval $pmix_str
49549    unset pmix_str
49550
49551    env | grep pmix_scope
49552    pmix_scope_index=`expr $pmix_scope_index + 1`
49553
49554
49555    for arg in $pif_solaris_ipv6_WRAPPER_EXTRA_LIBS; do
49556        pmix_tmp=`echo $arg | cut -c1-2`
49557        pmix_append=1
49558        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
49559  for val in ${mca_wrapper_extra_libs}; do
49560                   if test "x$val" = "x$arg"; then :
49561  pmix_append=0
49562fi
49563               done
49564fi
49565        if test "$pmix_append" = "1"; then :
49566  if test -z "$mca_wrapper_extra_libs"; then :
49567  mca_wrapper_extra_libs=$arg
49568else
49569  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
49570fi
49571fi
49572    done
49573
49574
49575    # Unwind the index
49576    pmix_scope_index=`expr $pmix_scope_index - 1`
49577    pmix_scope_test=`expr $pmix_scope_index \> 0`
49578    if test "$pmix_scope_test" = "0"; then
49579        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
49580$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
49581        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
49582$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
49583        as_fn_error $? "Cannot continue" "$LINENO" 5
49584    fi
49585
49586    # Get the variable names from that index
49587    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
49588    eval $pmix_str
49589
49590    # Iterate over all the variables and unset them all
49591    for pmix_var in $pmix_str; do
49592        unset $pmix_var
49593    done
49594
49595
49596fi
49597
49598    fi
49599
49600    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
49601    # component can never be used in a STOP_AT_FIRST framework, we
49602    # don't have to implement the else clause in the literal check...
49603    if test "$pif_solaris_ipv6_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
49604  stop_at_first=0
49605            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
49606  if test "$with_devel_headers" = "yes"; then :
49607
49608
49609
49610    # Is the private index set?  If not, set it.
49611    if test "x$pmix_scope_index" = "x"; then
49612        pmix_scope_index=1
49613    fi
49614
49615    # First, check to see if any of these variables are already set.
49616    # This is a simple sanity check to ensure we're not already
49617    # overwriting pre-existing variables (that have a non-empty
49618    # value).  It's not a perfect check, but at least it's something.
49619    for pmix_var in pmix_tmp pmix_append; do
49620        pmix_str="pmix_str=\"\$$pmix_var\""
49621        eval $pmix_str
49622
49623        if test "x$pmix_str" != "x"; then
49624            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
49625$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
49626            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
49627$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
49628            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
49629$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
49630            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
49631$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
49632            as_fn_error $? "Cannot continue" "$LINENO" 5
49633        fi
49634    done
49635
49636    # Ok, we passed the simple sanity check.  Save all these names so
49637    # that we can unset them at the end of the scope.
49638    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
49639    eval $pmix_str
49640    unset pmix_str
49641
49642    env | grep pmix_scope
49643    pmix_scope_index=`expr $pmix_scope_index + 1`
49644
49645
49646    for arg in $pif_solaris_ipv6_WRAPPER_EXTRA_CPPFLAGS; do
49647        pmix_tmp=`echo $arg | cut -c1-2`
49648        pmix_append=1
49649        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
49650  for val in ${mca_wrapper_extra_cppflags}; do
49651                   if test "x$val" = "x$arg"; then :
49652  pmix_append=0
49653fi
49654               done
49655fi
49656        if test "$pmix_append" = "1"; then :
49657  if test -z "$mca_wrapper_extra_cppflags"; then :
49658  mca_wrapper_extra_cppflags=$arg
49659else
49660  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
49661fi
49662fi
49663    done
49664
49665
49666    # Unwind the index
49667    pmix_scope_index=`expr $pmix_scope_index - 1`
49668    pmix_scope_test=`expr $pmix_scope_index \> 0`
49669    if test "$pmix_scope_test" = "0"; then
49670        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
49671$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
49672        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
49673$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
49674        as_fn_error $? "Cannot continue" "$LINENO" 5
49675    fi
49676
49677    # Get the variable names from that index
49678    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
49679    eval $pmix_str
49680
49681    # Iterate over all the variables and unset them all
49682    for pmix_var in $pmix_str; do
49683        unset $pmix_var
49684    done
49685
49686
49687fi
49688else
49689  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pif_solaris_ipv6_WRAPPER_EXTRA_CPPFLAGS ($pif_solaris_ipv6_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
49690$as_echo "$as_me: WARNING: ignoring pif_solaris_ipv6_WRAPPER_EXTRA_CPPFLAGS ($pif_solaris_ipv6_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
49691fi
49692fi
49693
49694else
49695
49696    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:solaris_ipv6 can compile" >&5
49697$as_echo_n "checking if MCA component pif:solaris_ipv6 can compile... " >&6; }
49698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
49699$as_echo "no" >&6; }
49700
49701    # If this component was requested as the default for this
49702    # type, then abort.
49703    if test "$with_pif" = "solaris_ipv6" ; then
49704        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"solaris_ipv6\" failed to configure properly" >&5
49705$as_echo "$as_me: WARNING: MCA component \"solaris_ipv6\" failed to configure properly" >&2;}
49706        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
49707$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
49708        as_fn_error $? "Cannot continue" "$LINENO" 5
49709    fi
49710
49711    if test ! -z "$DIRECT_pif" ; then
49712        if test "$DIRECT_pif" = "solaris_ipv6" ; then
49713            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"solaris_ipv6\" failed to configure properly" >&5
49714$as_echo "$as_me: WARNING: MCA component \"solaris_ipv6\" failed to configure properly" >&2;}
49715            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
49716$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
49717            as_fn_error $? "Cannot continue" "$LINENO" 5
49718        fi
49719    fi
49720
49721           # add component to all component list
49722           all_components="$all_components solaris_ipv6"
49723fi
49724
49725
49726
49727    # set the AM_CONDITIONAL on how we should build
49728    if test "$compile_mode" = "dso"; then :
49729  BUILD_pmix_pif_solaris_ipv6_DSO=1
49730else
49731  BUILD_pmix_pif_solaris_ipv6_DSO=0
49732fi
49733     if test "$BUILD_pmix_pif_solaris_ipv6_DSO" = "1"; then
49734  MCA_BUILD_pmix_pif_solaris_ipv6_DSO_TRUE=
49735  MCA_BUILD_pmix_pif_solaris_ipv6_DSO_FALSE='#'
49736else
49737  MCA_BUILD_pmix_pif_solaris_ipv6_DSO_TRUE='#'
49738  MCA_BUILD_pmix_pif_solaris_ipv6_DSO_FALSE=
49739fi
49740
49741
49742    if test "$should_build" = "1"; then :
49743  components_last_result=1
49744else
49745  components_last_result=0
49746fi
49747
49748    unset compile_mode
49749
49750
49751
49752
49753
49754    # configure components that provide their own configure script.
49755    # It would be really hard to run these for "find first that
49756    # works", so we don't :)
49757
49758
49759
49760                  if test "1" != "0"; then :
49761
49762    for component_path in $srcdir/src/mca/pif/* ; do
49763        component="`basename $component_path`"
49764        if test -d $component_path && test -x $component_path/configure ; then
49765            pmix_show_subsubsubtitle "MCA component pif:$component (need to configure)"
49766
49767            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build="
49768
49769
49770
49771    component_path="$srcdir/src/mca/pif/$component"
49772    want_component=0
49773
49774    # build if:
49775    # - the component type is direct and we are that component
49776    # - there is no pmix_ignore file
49777    # - there is an pmix_ignore, but there is an empty pmix_unignore
49778    # - there is an pmix_ignore, but username is in pmix_unignore
49779    if test -d $component_path ; then
49780        # decide if we want the component to be built or not.  This
49781        # is spread out because some of the logic is a little complex
49782        # and test's syntax isn't exactly the greatest.  We want to
49783        # build the component by default.
49784        want_component=1
49785        if test -f $component_path/.pmix_ignore ; then
49786            # If there is an pmix_ignore file, don't build
49787            # the component.  Note that this decision can be
49788            # overridden by the unignore logic below.
49789            want_component=0
49790        fi
49791        if test -f $component_path/.pmix_unignore ; then
49792            # if there is an empty pmix_unignore, that is
49793            # equivalent to having your userid in the unignore file.
49794            # If userid is in the file, unignore the ignore file.
49795            if test ! -s $component_path/.pmix_unignore ; then
49796                want_component=1
49797            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
49798                want_component=1
49799            fi
49800        fi
49801        # if this component type is direct and we are not it, we don't want
49802        # to be built.  Otherwise, we do want to be built.
49803        if test ! -z "$DIRECT_pif" ; then
49804            if test "$DIRECT_pif" = "$component" ; then
49805                want_component=1
49806            else
49807                want_component=0
49808            fi
49809        fi
49810    fi
49811
49812    # if we were explicitly disabled, don't build :)
49813    if test "$DISABLE_pif" = "1"; then :
49814  want_component=0
49815fi
49816    str="DISABLED_COMPONENT_CHECK=\$DISABLE_pif_$component"
49817         eval $str
49818         if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
49819             want_component=0
49820         fi
49821
49822    if test "$want_component" = "1"; then :
49823  should_build=1
49824else
49825  should_build=0
49826fi
49827
49828
49829    SHARED_FRAMEWORK="$DSO_pif"
49830    str="SHARED_COMPONENT=\$DSO_pif_$component"
49831         eval $str
49832
49833    STATIC_FRAMEWORK="$STATIC_pif"
49834    str="STATIC_COMPONENT=\$STATIC_pif_$component"
49835         eval $str
49836
49837    shared_mode_override=static
49838
49839    # Setup for either shared or static
49840    if test "$STATIC_FRAMEWORK" = "1" || \
49841       test "$STATIC_COMPONENT" = "1" || \
49842       test "$STATIC_all" = "1" ; then
49843        compile_mode="static"
49844    elif test "$shared_mode_override" = "dso" || \
49845         test "$SHARED_FRAMEWORK" = "1" || \
49846         test "$SHARED_COMPONENT" = "1" || \
49847         test "$DSO_all" = "1"; then
49848        compile_mode="dso"
49849    else
49850        compile_mode="static"
49851    fi
49852
49853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pif:$component compile mode" >&5
49854$as_echo_n "checking for MCA component pif:$component compile mode... " >&6; }
49855    if test "$DIRECT_pif" = "$component" ; then
49856        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
49857$as_echo "$compile_mode - direct" >&6; }
49858    else
49859        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
49860$as_echo "$compile_mode" >&6; }
49861    fi
49862
49863            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build"
49864
49865            if test "$should_build" = "1" ; then
49866
49867
49868
49869    # Is the private index set?  If not, set it.
49870    if test "x$pmix_scope_index" = "x"; then
49871        pmix_scope_index=1
49872    fi
49873
49874    # First, check to see if any of these variables are already set.
49875    # This is a simple sanity check to ensure we're not already
49876    # overwriting pre-existing variables (that have a non-empty
49877    # value).  It's not a perfect check, but at least it's something.
49878    for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do
49879        pmix_str="pmix_str=\"\$$pmix_var\""
49880        eval $pmix_str
49881
49882        if test "x$pmix_str" != "x"; then
49883            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
49884$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
49885            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
49886$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
49887            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
49888$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
49889            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
49890$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
49891            as_fn_error $? "Cannot continue" "$LINENO" 5
49892        fi
49893    done
49894
49895    # Ok, we passed the simple sanity check.  Save all these names so
49896    # that we can unset them at the end of the scope.
49897    pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\""
49898    eval $pmix_str
49899    unset pmix_str
49900
49901    env | grep pmix_scope
49902    pmix_scope_index=`expr $pmix_scope_index + 1`
49903
49904
49905#
49906# Invoke configure in a specific subdirectory.
49907#
49908# src/mca/pif/$component is the directory to invoke in
49909# $pmix_subdir_args is the list of arguments to pass
49910# should_build=1 is actions to execute upon success
49911# should_build=0 is actions to execute upon failure
49912#
49913subdir_dir="src/mca/pif/$component"
49914subdir_args="$pmix_subdir_args"
49915subdir_success="should_build=1"
49916subdir_failure="should_build=0"
49917
49918#
49919# Sanity checks
49920#
49921
49922if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then
49923    { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5
49924$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;}
49925
49926    #
49927    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
49928    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
49929    # into it.
49930    #
49931
49932    case $srcdir in
49933    .)
49934	;;
49935    *)
49936	{ case $subdir_dir in
49937	[\\/]* | ?:[\\/]* ) total_dir=;;
49938	*)                      total_dir=.;;
49939	esac
49940	temp=$subdir_dir
49941	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
49942	    case $dir_part in
49943	    # Skip DOS drivespec
49944	    ?:) total_dir=$dir_part ;;
49945	    *)  total_dir=$total_dir/$dir_part
49946		test -d "$total_dir" ||
49947		mkdir "$total_dir" ||
49948		as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5
49949		;;
49950	    esac
49951	done; }
49952
49953	if test -d ./$subdir_dir; then :;
49954	else
49955	    as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
49956	fi
49957	;;
49958    esac
49959
49960    #
49961    # Move into the target directory
49962    #
49963
49964    subdir_parent=`pwd`
49965    cd $subdir_dir
49966
49967    #
49968    # Make a "../" for each directory in $subdir_dir.
49969    #
49970
49971    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
49972    #
49973    # Construct the --srcdir argument
49974    #
49975
49976    case $srcdir in
49977    .)
49978	# In place
49979	subdir_srcdir="$srcdir"
49980	;;
49981    [\\/]* | ?:[\\/]* )
49982	# Absolute path
49983	subdir_srcdir="$srcdir/$subdir_dir"
49984	;;
49985    *)
49986	# Relative path
49987	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
49988	;;
49989    esac
49990
49991    #
49992    # Construct the --cache-file argument
49993    #
49994
49995    # BWB - subdir caching is a pain since we change CFLAGS and all that.
49996    # Just disable it for now
49997    subdir_cache_file="/dev/null"
49998
49999    #
50000    # Invoke the configure script in the subdirectory
50001    #
50002
50003    sub_configure="$SHELL '$subdir_srcdir/configure'"
50004    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
50005$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
50006    eval "$sub_configure $subdir_args \
50007	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
50008    if test "$?" = "0"; then
50009	eval $subdir_success
50010	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
50011$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
50012    else
50013	eval $subdir_failure
50014	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
50015$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
50016    fi
50017
50018    #
50019    # Go back to the topdir
50020    #
50021
50022    cd $subdir_parent
50023fi
50024
50025#
50026# Clean up
50027#
50028
50029
50030    # Unwind the index
50031    pmix_scope_index=`expr $pmix_scope_index - 1`
50032    pmix_scope_test=`expr $pmix_scope_index \> 0`
50033    if test "$pmix_scope_test" = "0"; then
50034        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
50035$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
50036        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50037$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50038        as_fn_error $? "Cannot continue" "$LINENO" 5
50039    fi
50040
50041    # Get the variable names from that index
50042    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
50043    eval $pmix_str
50044
50045    # Iterate over all the variables and unset them all
50046    for pmix_var in $pmix_str; do
50047        unset $pmix_var
50048    done
50049
50050                pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build"
50051            fi
50052
50053            if test "$should_build" = "1" ; then
50054                # do some extra work to pass flags back from the
50055                # top-level configure, the way a configure.m4
50056                # component would.
50057                infile="$srcdir/src/mca/pif/all_components/post_configure.sh"
50058                if test -f $infile; then
50059
50060                    # First check for the ABORT tag
50061                    line="`$GREP ABORT= $infile | cut -d= -f2-`"
50062                    if test -n "$line" && test "$line" != "no"; then
50063                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
50064$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
50065                        as_fn_error $? "cannot continue" "$LINENO" 5
50066                    fi
50067
50068                    line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
50069                            eval "line=$line"
50070                            if test -n "$line"; then
50071                                all_components_static_components_WRAPPER_EXTRA_LDFLAGS="$line"
50072                            fi
50073                        line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
50074                            eval "line=$line"
50075                            if test -n "$line"; then
50076                                all_components_static_components_WRAPPER_EXTRA_LIBS="$line"
50077                            fi
50078                                        fi
50079
50080
50081
50082
50083    # See if it dropped an output file for us to pick up some
50084    # shell variables in.
50085    infile="$srcdir/src/mca/pif/$component/post_configure.sh"
50086
50087    # Add this subdir to the mast list of all MCA component subdirs
50088    all_components="$all_components $component"
50089
50090    if test "$compile_mode" = "dso" ; then
50091        dso_components="$dso_components $component"
50092    else
50093        if test "pif" = "common"; then
50094            # Static libraries in "common" frameworks are installed, and
50095            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
50096            # set.
50097            static_ltlibs="mca/pif/$component/lib${PMIX_LIB_PREFIX}mca_pif_$component.la $static_ltlibs"
50098        else
50099            # Other frameworks do not have to obey the
50100            # $FRAMEWORK_LIB_PREFIX prefix.
50101            static_ltlibs="mca/pif/$component/libmca_pif_$component.la $static_ltlibs"
50102        fi
50103        echo "extern const pmix_mca_base_component_t mca_pif_$component_component;" >> $outfile.extern
50104        echo "  &mca_pif_$component_component, " >> $outfile.struct
50105        static_components="$static_components $component"
50106    fi
50107
50108    # Output pretty results
50109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:$component can compile" >&5
50110$as_echo_n "checking if MCA component pif:$component can compile... " >&6; }
50111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50112$as_echo "yes" >&6; }
50113
50114                        if test -f $infile; then
50115        # check for direct call header to include.  This will be
50116        # AC_SUBSTed later.
50117        if test "$DIRECT_pif" = "$component" ; then
50118            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
50119                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
50120                str="MCA_pmix_pif_DIRECT_CALL_HEADER=$line"
50121                eval $str
50122            else
50123as_fn_error $? "*** pif component $component was supposed to be direct-called, but
50124*** does not appear to support direct calling.
50125*** Aborting" "$LINENO" 5
50126            fi
50127        fi
50128    else
50129        # were we supposed to have found something in the
50130        # post_configure.sh, but the file didn't exist?
50131        if test "$DIRECT_pif" = "$component" ; then
50132as_fn_error $? "*** pif component $component was supposed to be direct-called, but
50133*** does not appear to support direct calling.
50134*** Aborting" "$LINENO" 5
50135        fi
50136    fi
50137
50138    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
50139    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
50140    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
50141    # component didn't have it's own configure script (in which case,
50142    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
50143    # have to do this if the component is building dynamically,
50144    # because it will link against these (without a dependency from
50145    # libmpi.so to these flags)
50146    if test "$compile_mode" = "static"; then
50147        str="line=\$pif_$component_WRAPPER_EXTRA_LDFLAGS"
50148                      eval "$str"
50149
50150
50151
50152    # Is the private index set?  If not, set it.
50153    if test "x$pmix_scope_index" = "x"; then
50154        pmix_scope_index=1
50155    fi
50156
50157    # First, check to see if any of these variables are already set.
50158    # This is a simple sanity check to ensure we're not already
50159    # overwriting pre-existing variables (that have a non-empty
50160    # value).  It's not a perfect check, but at least it's something.
50161    for pmix_var in pmix_tmp pmix_append; do
50162        pmix_str="pmix_str=\"\$$pmix_var\""
50163        eval $pmix_str
50164
50165        if test "x$pmix_str" != "x"; then
50166            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
50167$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
50168            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
50169$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
50170            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
50171$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
50172            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50173$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50174            as_fn_error $? "Cannot continue" "$LINENO" 5
50175        fi
50176    done
50177
50178    # Ok, we passed the simple sanity check.  Save all these names so
50179    # that we can unset them at the end of the scope.
50180    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
50181    eval $pmix_str
50182    unset pmix_str
50183
50184    env | grep pmix_scope
50185    pmix_scope_index=`expr $pmix_scope_index + 1`
50186
50187
50188    for arg in $line; do
50189        pmix_tmp=`echo $arg | cut -c1-2`
50190        pmix_append=1
50191        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
50192  for val in ${mca_wrapper_extra_ldflags}; do
50193                   if test "x$val" = "x$arg"; then :
50194  pmix_append=0
50195fi
50196               done
50197fi
50198        if test "$pmix_append" = "1"; then :
50199  if test -z "$mca_wrapper_extra_ldflags"; then :
50200  mca_wrapper_extra_ldflags=$arg
50201else
50202  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
50203fi
50204fi
50205    done
50206
50207
50208    # Unwind the index
50209    pmix_scope_index=`expr $pmix_scope_index - 1`
50210    pmix_scope_test=`expr $pmix_scope_index \> 0`
50211    if test "$pmix_scope_test" = "0"; then
50212        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
50213$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
50214        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50215$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50216        as_fn_error $? "Cannot continue" "$LINENO" 5
50217    fi
50218
50219    # Get the variable names from that index
50220    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
50221    eval $pmix_str
50222
50223    # Iterate over all the variables and unset them all
50224    for pmix_var in $pmix_str; do
50225        unset $pmix_var
50226    done
50227
50228str="line=\$pif_$component_WRAPPER_EXTRA_LIBS"
50229                      eval "$str"
50230
50231
50232
50233    # Is the private index set?  If not, set it.
50234    if test "x$pmix_scope_index" = "x"; then
50235        pmix_scope_index=1
50236    fi
50237
50238    # First, check to see if any of these variables are already set.
50239    # This is a simple sanity check to ensure we're not already
50240    # overwriting pre-existing variables (that have a non-empty
50241    # value).  It's not a perfect check, but at least it's something.
50242    for pmix_var in pmix_tmp pmix_append; do
50243        pmix_str="pmix_str=\"\$$pmix_var\""
50244        eval $pmix_str
50245
50246        if test "x$pmix_str" != "x"; then
50247            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
50248$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
50249            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
50250$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
50251            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
50252$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
50253            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50254$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50255            as_fn_error $? "Cannot continue" "$LINENO" 5
50256        fi
50257    done
50258
50259    # Ok, we passed the simple sanity check.  Save all these names so
50260    # that we can unset them at the end of the scope.
50261    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
50262    eval $pmix_str
50263    unset pmix_str
50264
50265    env | grep pmix_scope
50266    pmix_scope_index=`expr $pmix_scope_index + 1`
50267
50268
50269    for arg in $line; do
50270        pmix_tmp=`echo $arg | cut -c1-2`
50271        pmix_append=1
50272        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
50273  for val in ${mca_wrapper_extra_libs}; do
50274                   if test "x$val" = "x$arg"; then :
50275  pmix_append=0
50276fi
50277               done
50278fi
50279        if test "$pmix_append" = "1"; then :
50280  if test -z "$mca_wrapper_extra_libs"; then :
50281  mca_wrapper_extra_libs=$arg
50282else
50283  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
50284fi
50285fi
50286    done
50287
50288
50289    # Unwind the index
50290    pmix_scope_index=`expr $pmix_scope_index - 1`
50291    pmix_scope_test=`expr $pmix_scope_index \> 0`
50292    if test "$pmix_scope_test" = "0"; then
50293        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
50294$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
50295        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50296$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50297        as_fn_error $? "Cannot continue" "$LINENO" 5
50298    fi
50299
50300    # Get the variable names from that index
50301    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
50302    eval $pmix_str
50303
50304    # Iterate over all the variables and unset them all
50305    for pmix_var in $pmix_str; do
50306        unset $pmix_var
50307    done
50308
50309
50310    fi
50311
50312    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
50313    # component can never be used in a STOP_AT_FIRST framework, we
50314    # don't have to implement the else clause in the literal check...
50315
50316
50317            else
50318
50319    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pif:$component can compile" >&5
50320$as_echo_n "checking if MCA component pif:$component can compile... " >&6; }
50321    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50322$as_echo "no" >&6; }
50323
50324    # If this component was requested as the default for this
50325    # type, then abort.
50326    if test "$with_pif" = "$component" ; then
50327        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
50328$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
50329        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
50330$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
50331        as_fn_error $? "Cannot continue" "$LINENO" 5
50332    fi
50333
50334    if test ! -z "$DIRECT_pif" ; then
50335        if test "$DIRECT_pif" = "$component" ; then
50336            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
50337$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
50338            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
50339$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
50340            as_fn_error $? "Cannot continue" "$LINENO" 5
50341        fi
50342    fi
50343
50344            fi
50345        fi
50346    done
50347
50348fi
50349
50350    MCA_pmix_pif_ALL_COMPONENTS="$all_components"
50351    MCA_pmix_pif_STATIC_COMPONENTS="$static_components"
50352    MCA_pmix_pif_DSO_COMPONENTS="$dso_components"
50353    MCA_pmix_pif_STATIC_LTLIBS="$static_ltlibs"
50354
50355
50356
50357
50358
50359
50360
50361    MCA_pmix_pif_ALL_SUBDIRS=
50362    for item in $all_components ; do
50363       MCA_pmix_pif_ALL_SUBDIRS="$MCA_pmix_pif_ALL_SUBDIRS mca/pif/$item"
50364    done
50365
50366
50367
50368    MCA_pmix_pif_STATIC_SUBDIRS=
50369    for item in $static_components ; do
50370       MCA_pmix_pif_STATIC_SUBDIRS="$MCA_pmix_pif_STATIC_SUBDIRS mca/pif/$item"
50371    done
50372
50373
50374
50375    MCA_pmix_pif_DSO_SUBDIRS=
50376    for item in $dso_components ; do
50377       MCA_pmix_pif_DSO_SUBDIRS="$MCA_pmix_pif_DSO_SUBDIRS mca/pif/$item"
50378    done
50379
50380
50381
50382    # Create the final .h file that will be included in the type's
50383    # top-level glue.  This lists all the static components.  We don't
50384    # need to do this for "common".
50385    if test "pif" != "common"; then
50386        cat > $outfile <<EOF
50387/*
50388 * \$HEADER\$
50389 */
50390#if defined(c_plusplus) || defined(__cplusplus)
50391extern "C" {
50392#endif
50393
50394`cat $outfile.extern`
50395
50396const pmix_mca_base_component_t *mca_pif_base_static_components[] = {
50397`cat $outfile.struct`
50398  NULL
50399};
50400
50401#if defined(c_plusplus) || defined(__cplusplus)
50402}
50403#endif
50404
50405EOF
50406        # Only replace the header file if a) it doesn't previously
50407        # exist, or b) the contents are different.  Do this to not
50408        # trigger recompilation of certain .c files just because the
50409        # timestamp changed on $outfile_real (similar to the way AC
50410        # handles AC_CONFIG_HEADER files).
50411        diff $outfile $outfile_real > /dev/null 2>&1
50412        if test "$?" != "0"; then
50413            mv $outfile $outfile_real
50414        else
50415            rm -f $outfile
50416        fi
50417    fi
50418    rm -f $outfile.struct $outfile.extern
50419
50420    unset all_components static_components dso_components outfile outfile_real
50421
50422                                 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS pinstalldirs"
50423                                 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/pinstalldirs"
50424                                 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_pinstalldirs_ALL_SUBDIRS)"
50425                                 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_pinstalldirs_DSO_SUBDIRS)"
50426                                 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_pinstalldirs_STATIC_SUBDIRS)"
50427                                 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/pinstalldirs/libmca_pinstalldirs.la"
50428                          MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_pinstalldirs_STATIC_LTLIBS)"
50429
50430    pmix_show_subsubtitle "Configuring MCA framework pinstalldirs"
50431
50432
50433
50434
50435    # setup for framework
50436    all_components=
50437    static_components=
50438    dso_components=
50439    static_ltlibs=
50440
50441    # Ensure that the directory where the #include file is to live
50442    # exists.  Need to do this for VPATH builds, because the directory
50443    # may not exist yet.  For the "common" type, it's not really a
50444    # component, so it doesn't have a base.
50445    outdir=src/mca/pinstalldirs/base
50446    as_dir=$outdir; as_fn_mkdir_p
50447
50448    # emit Makefile rule
50449    ac_config_files="$ac_config_files src/mca/pinstalldirs/Makefile"
50450
50451
50452    # remove any previously generated #include files
50453    outfile_real=$outdir/static-components.h
50454    outfile=$outfile_real.new
50455    rm -f $outfile $outfile.struct $outfile.extern
50456    touch $outfile.struct $outfile.extern
50457
50458    # print some nice messages about what we're about to do...
50459    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pinstalldirs" >&5
50460$as_echo_n "checking for no configure components in framework pinstalldirs... " >&6; }
50461    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
50462$as_echo "" >&6; }
50463    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pinstalldirs" >&5
50464$as_echo_n "checking for m4 configure components in framework pinstalldirs... " >&6; }
50465    { $as_echo "$as_me:${as_lineno-$LINENO}: result: config, env" >&5
50466$as_echo "config, env" >&6; }
50467
50468    # If there are components in the no configure list, but we're
50469    # doing one of the "special" selection logics, abort with a
50470    # reasonable message.
50471
50472
50473
50474    # run the configure logic for the no-config components
50475
50476
50477    # configure components that use built-in configuration scripts
50478
50479
50480
50481
50482
50483
50484    best_mca_component_priority=0
50485    components_looking_for_succeed=1
50486    components_last_result=0
50487
50488
50489    pmix_show_subsubsubtitle "MCA component pinstalldirs:env (m4 configuration macro, priority 10)"
50490
50491    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed"
50492
50493
50494
50495    component_path="$srcdir/src/mca/pinstalldirs/env"
50496    want_component=0
50497
50498    # build if:
50499    # - the component type is direct and we are that component
50500    # - there is no pmix_ignore file
50501    # - there is an pmix_ignore, but there is an empty pmix_unignore
50502    # - there is an pmix_ignore, but username is in pmix_unignore
50503    if test -d $component_path ; then
50504        # decide if we want the component to be built or not.  This
50505        # is spread out because some of the logic is a little complex
50506        # and test's syntax isn't exactly the greatest.  We want to
50507        # build the component by default.
50508        want_component=1
50509        if test -f $component_path/.pmix_ignore ; then
50510            # If there is an pmix_ignore file, don't build
50511            # the component.  Note that this decision can be
50512            # overridden by the unignore logic below.
50513            want_component=0
50514        fi
50515        if test -f $component_path/.pmix_unignore ; then
50516            # if there is an empty pmix_unignore, that is
50517            # equivalent to having your userid in the unignore file.
50518            # If userid is in the file, unignore the ignore file.
50519            if test ! -s $component_path/.pmix_unignore ; then
50520                want_component=1
50521            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
50522                want_component=1
50523            fi
50524        fi
50525        # if this component type is direct and we are not it, we don't want
50526        # to be built.  Otherwise, we do want to be built.
50527        if test ! -z "$DIRECT_pinstalldirs" ; then
50528            if test "$DIRECT_pinstalldirs" = "env" ; then
50529                want_component=1
50530            else
50531                want_component=0
50532            fi
50533        fi
50534    fi
50535
50536    # if we were explicitly disabled, don't build :)
50537    if test "$DISABLE_pinstalldirs" = "1"; then :
50538  want_component=0
50539fi
50540    if test "$DISABLE_pinstalldirs_env" = "1"; then :
50541  want_component=0
50542fi
50543
50544    if test "$want_component" = "1"; then :
50545  should_build=$components_looking_for_succeed
50546else
50547  should_build=0
50548fi
50549
50550    # Allow the component to override the build mode if it really wants to.
50551    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
50552
50553    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pinstalldirs:env compile mode" >&5
50554$as_echo_n "checking for MCA component pinstalldirs:env compile mode... " >&6; }
50555    compile_mode="static"
50556    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
50557$as_echo "$compile_mode" >&6; }
50558
50559
50560    # try to configure the component
50561
50562    ac_config_files="$ac_config_files src/mca/pinstalldirs/env/Makefile"
50563
50564
50565    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build"
50566
50567    if test "$should_build" = "1"; then :
50568
50569
50570
50571    # See if it dropped an output file for us to pick up some
50572    # shell variables in.
50573    infile="$srcdir/src/mca/pinstalldirs/env/post_configure.sh"
50574
50575    # Add this subdir to the mast list of all MCA component subdirs
50576    all_components="$all_components env"
50577
50578    if test "$compile_mode" = "dso" ; then
50579        dso_components="$dso_components env"
50580    else
50581        if test "pinstalldirs" = "common"; then
50582            # Static libraries in "common" frameworks are installed, and
50583            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
50584            # set.
50585            static_ltlibs="mca/pinstalldirs/env/lib${PMIX_LIB_PREFIX}mca_pinstalldirs_env.la $static_ltlibs"
50586        else
50587            # Other frameworks do not have to obey the
50588            # $FRAMEWORK_LIB_PREFIX prefix.
50589            static_ltlibs="mca/pinstalldirs/env/libmca_pinstalldirs_env.la $static_ltlibs"
50590        fi
50591        echo "extern const pmix_mca_base_component_t mca_pinstalldirs_env_component;" >> $outfile.extern
50592        echo "  &mca_pinstalldirs_env_component, " >> $outfile.struct
50593        static_components="$static_components env"
50594    fi
50595
50596    # Output pretty results
50597    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pinstalldirs:env can compile" >&5
50598$as_echo_n "checking if MCA component pinstalldirs:env can compile... " >&6; }
50599    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
50600$as_echo "yes" >&6; }
50601
50602                        if test -f $infile; then
50603        # check for direct call header to include.  This will be
50604        # AC_SUBSTed later.
50605        if test "$DIRECT_pinstalldirs" = "env" ; then
50606            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
50607                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
50608                str="MCA_pmix_pinstalldirs_DIRECT_CALL_HEADER=$line"
50609                eval $str
50610            else
50611as_fn_error $? "*** pinstalldirs component env was supposed to be direct-called, but
50612*** does not appear to support direct calling.
50613*** Aborting" "$LINENO" 5
50614            fi
50615        fi
50616    else
50617        # were we supposed to have found something in the
50618        # post_configure.sh, but the file didn't exist?
50619        if test "$DIRECT_pinstalldirs" = "env" ; then
50620as_fn_error $? "*** pinstalldirs component env was supposed to be direct-called, but
50621*** does not appear to support direct calling.
50622*** Aborting" "$LINENO" 5
50623        fi
50624    fi
50625
50626    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
50627    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
50628    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
50629    # component didn't have it's own configure script (in which case,
50630    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
50631    # have to do this if the component is building dynamically,
50632    # because it will link against these (without a dependency from
50633    # libmpi.so to these flags)
50634    if test "$compile_mode" = "static"; then
50635        if test "$pinstalldirs_env_WRAPPER_EXTRA_LDFLAGS" = ""; then :
50636
50637
50638
50639    # Is the private index set?  If not, set it.
50640    if test "x$pmix_scope_index" = "x"; then
50641        pmix_scope_index=1
50642    fi
50643
50644    # First, check to see if any of these variables are already set.
50645    # This is a simple sanity check to ensure we're not already
50646    # overwriting pre-existing variables (that have a non-empty
50647    # value).  It's not a perfect check, but at least it's something.
50648    for pmix_var in pmix_tmp pmix_append; do
50649        pmix_str="pmix_str=\"\$$pmix_var\""
50650        eval $pmix_str
50651
50652        if test "x$pmix_str" != "x"; then
50653            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
50654$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
50655            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
50656$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
50657            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
50658$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
50659            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50660$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50661            as_fn_error $? "Cannot continue" "$LINENO" 5
50662        fi
50663    done
50664
50665    # Ok, we passed the simple sanity check.  Save all these names so
50666    # that we can unset them at the end of the scope.
50667    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
50668    eval $pmix_str
50669    unset pmix_str
50670
50671    env | grep pmix_scope
50672    pmix_scope_index=`expr $pmix_scope_index + 1`
50673
50674
50675    for arg in $pinstalldirs_env_LDFLAGS; do
50676        pmix_tmp=`echo $arg | cut -c1-2`
50677        pmix_append=1
50678        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
50679  for val in ${mca_wrapper_extra_ldflags}; do
50680                   if test "x$val" = "x$arg"; then :
50681  pmix_append=0
50682fi
50683               done
50684fi
50685        if test "$pmix_append" = "1"; then :
50686  if test -z "$mca_wrapper_extra_ldflags"; then :
50687  mca_wrapper_extra_ldflags=$arg
50688else
50689  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
50690fi
50691fi
50692    done
50693
50694
50695    # Unwind the index
50696    pmix_scope_index=`expr $pmix_scope_index - 1`
50697    pmix_scope_test=`expr $pmix_scope_index \> 0`
50698    if test "$pmix_scope_test" = "0"; then
50699        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
50700$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
50701        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50702$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50703        as_fn_error $? "Cannot continue" "$LINENO" 5
50704    fi
50705
50706    # Get the variable names from that index
50707    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
50708    eval $pmix_str
50709
50710    # Iterate over all the variables and unset them all
50711    for pmix_var in $pmix_str; do
50712        unset $pmix_var
50713    done
50714
50715
50716else
50717
50718
50719
50720    # Is the private index set?  If not, set it.
50721    if test "x$pmix_scope_index" = "x"; then
50722        pmix_scope_index=1
50723    fi
50724
50725    # First, check to see if any of these variables are already set.
50726    # This is a simple sanity check to ensure we're not already
50727    # overwriting pre-existing variables (that have a non-empty
50728    # value).  It's not a perfect check, but at least it's something.
50729    for pmix_var in pmix_tmp pmix_append; do
50730        pmix_str="pmix_str=\"\$$pmix_var\""
50731        eval $pmix_str
50732
50733        if test "x$pmix_str" != "x"; then
50734            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
50735$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
50736            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
50737$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
50738            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
50739$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
50740            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50741$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50742            as_fn_error $? "Cannot continue" "$LINENO" 5
50743        fi
50744    done
50745
50746    # Ok, we passed the simple sanity check.  Save all these names so
50747    # that we can unset them at the end of the scope.
50748    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
50749    eval $pmix_str
50750    unset pmix_str
50751
50752    env | grep pmix_scope
50753    pmix_scope_index=`expr $pmix_scope_index + 1`
50754
50755
50756    for arg in $pinstalldirs_env_WRAPPER_EXTRA_LDFLAGS; do
50757        pmix_tmp=`echo $arg | cut -c1-2`
50758        pmix_append=1
50759        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
50760  for val in ${mca_wrapper_extra_ldflags}; do
50761                   if test "x$val" = "x$arg"; then :
50762  pmix_append=0
50763fi
50764               done
50765fi
50766        if test "$pmix_append" = "1"; then :
50767  if test -z "$mca_wrapper_extra_ldflags"; then :
50768  mca_wrapper_extra_ldflags=$arg
50769else
50770  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
50771fi
50772fi
50773    done
50774
50775
50776    # Unwind the index
50777    pmix_scope_index=`expr $pmix_scope_index - 1`
50778    pmix_scope_test=`expr $pmix_scope_index \> 0`
50779    if test "$pmix_scope_test" = "0"; then
50780        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
50781$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
50782        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50783$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50784        as_fn_error $? "Cannot continue" "$LINENO" 5
50785    fi
50786
50787    # Get the variable names from that index
50788    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
50789    eval $pmix_str
50790
50791    # Iterate over all the variables and unset them all
50792    for pmix_var in $pmix_str; do
50793        unset $pmix_var
50794    done
50795
50796
50797fi
50798                        if test "$pinstalldirs_env_WRAPPER_EXTRA_LIBS" = ""; then :
50799
50800
50801
50802    # Is the private index set?  If not, set it.
50803    if test "x$pmix_scope_index" = "x"; then
50804        pmix_scope_index=1
50805    fi
50806
50807    # First, check to see if any of these variables are already set.
50808    # This is a simple sanity check to ensure we're not already
50809    # overwriting pre-existing variables (that have a non-empty
50810    # value).  It's not a perfect check, but at least it's something.
50811    for pmix_var in pmix_tmp pmix_append; do
50812        pmix_str="pmix_str=\"\$$pmix_var\""
50813        eval $pmix_str
50814
50815        if test "x$pmix_str" != "x"; then
50816            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
50817$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
50818            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
50819$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
50820            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
50821$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
50822            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50823$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50824            as_fn_error $? "Cannot continue" "$LINENO" 5
50825        fi
50826    done
50827
50828    # Ok, we passed the simple sanity check.  Save all these names so
50829    # that we can unset them at the end of the scope.
50830    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
50831    eval $pmix_str
50832    unset pmix_str
50833
50834    env | grep pmix_scope
50835    pmix_scope_index=`expr $pmix_scope_index + 1`
50836
50837
50838    for arg in $pinstalldirs_env_LIBS; do
50839        pmix_tmp=`echo $arg | cut -c1-2`
50840        pmix_append=1
50841        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
50842  for val in ${mca_wrapper_extra_libs}; do
50843                   if test "x$val" = "x$arg"; then :
50844  pmix_append=0
50845fi
50846               done
50847fi
50848        if test "$pmix_append" = "1"; then :
50849  if test -z "$mca_wrapper_extra_libs"; then :
50850  mca_wrapper_extra_libs=$arg
50851else
50852  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
50853fi
50854fi
50855    done
50856
50857
50858    # Unwind the index
50859    pmix_scope_index=`expr $pmix_scope_index - 1`
50860    pmix_scope_test=`expr $pmix_scope_index \> 0`
50861    if test "$pmix_scope_test" = "0"; then
50862        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
50863$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
50864        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50865$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50866        as_fn_error $? "Cannot continue" "$LINENO" 5
50867    fi
50868
50869    # Get the variable names from that index
50870    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
50871    eval $pmix_str
50872
50873    # Iterate over all the variables and unset them all
50874    for pmix_var in $pmix_str; do
50875        unset $pmix_var
50876    done
50877
50878
50879else
50880
50881
50882
50883    # Is the private index set?  If not, set it.
50884    if test "x$pmix_scope_index" = "x"; then
50885        pmix_scope_index=1
50886    fi
50887
50888    # First, check to see if any of these variables are already set.
50889    # This is a simple sanity check to ensure we're not already
50890    # overwriting pre-existing variables (that have a non-empty
50891    # value).  It's not a perfect check, but at least it's something.
50892    for pmix_var in pmix_tmp pmix_append; do
50893        pmix_str="pmix_str=\"\$$pmix_var\""
50894        eval $pmix_str
50895
50896        if test "x$pmix_str" != "x"; then
50897            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
50898$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
50899            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
50900$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
50901            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
50902$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
50903            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50904$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50905            as_fn_error $? "Cannot continue" "$LINENO" 5
50906        fi
50907    done
50908
50909    # Ok, we passed the simple sanity check.  Save all these names so
50910    # that we can unset them at the end of the scope.
50911    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
50912    eval $pmix_str
50913    unset pmix_str
50914
50915    env | grep pmix_scope
50916    pmix_scope_index=`expr $pmix_scope_index + 1`
50917
50918
50919    for arg in $pinstalldirs_env_WRAPPER_EXTRA_LIBS; do
50920        pmix_tmp=`echo $arg | cut -c1-2`
50921        pmix_append=1
50922        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
50923  for val in ${mca_wrapper_extra_libs}; do
50924                   if test "x$val" = "x$arg"; then :
50925  pmix_append=0
50926fi
50927               done
50928fi
50929        if test "$pmix_append" = "1"; then :
50930  if test -z "$mca_wrapper_extra_libs"; then :
50931  mca_wrapper_extra_libs=$arg
50932else
50933  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
50934fi
50935fi
50936    done
50937
50938
50939    # Unwind the index
50940    pmix_scope_index=`expr $pmix_scope_index - 1`
50941    pmix_scope_test=`expr $pmix_scope_index \> 0`
50942    if test "$pmix_scope_test" = "0"; then
50943        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
50944$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
50945        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50946$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50947        as_fn_error $? "Cannot continue" "$LINENO" 5
50948    fi
50949
50950    # Get the variable names from that index
50951    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
50952    eval $pmix_str
50953
50954    # Iterate over all the variables and unset them all
50955    for pmix_var in $pmix_str; do
50956        unset $pmix_var
50957    done
50958
50959
50960fi
50961
50962    fi
50963
50964    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
50965    # component can never be used in a STOP_AT_FIRST framework, we
50966    # don't have to implement the else clause in the literal check...
50967    if test "$pinstalldirs_env_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
50968  stop_at_first=0
50969            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
50970  if test "$with_devel_headers" = "yes"; then :
50971
50972
50973
50974    # Is the private index set?  If not, set it.
50975    if test "x$pmix_scope_index" = "x"; then
50976        pmix_scope_index=1
50977    fi
50978
50979    # First, check to see if any of these variables are already set.
50980    # This is a simple sanity check to ensure we're not already
50981    # overwriting pre-existing variables (that have a non-empty
50982    # value).  It's not a perfect check, but at least it's something.
50983    for pmix_var in pmix_tmp pmix_append; do
50984        pmix_str="pmix_str=\"\$$pmix_var\""
50985        eval $pmix_str
50986
50987        if test "x$pmix_str" != "x"; then
50988            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
50989$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
50990            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
50991$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
50992            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
50993$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
50994            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
50995$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
50996            as_fn_error $? "Cannot continue" "$LINENO" 5
50997        fi
50998    done
50999
51000    # Ok, we passed the simple sanity check.  Save all these names so
51001    # that we can unset them at the end of the scope.
51002    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
51003    eval $pmix_str
51004    unset pmix_str
51005
51006    env | grep pmix_scope
51007    pmix_scope_index=`expr $pmix_scope_index + 1`
51008
51009
51010    for arg in $pinstalldirs_env_WRAPPER_EXTRA_CPPFLAGS; do
51011        pmix_tmp=`echo $arg | cut -c1-2`
51012        pmix_append=1
51013        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
51014  for val in ${mca_wrapper_extra_cppflags}; do
51015                   if test "x$val" = "x$arg"; then :
51016  pmix_append=0
51017fi
51018               done
51019fi
51020        if test "$pmix_append" = "1"; then :
51021  if test -z "$mca_wrapper_extra_cppflags"; then :
51022  mca_wrapper_extra_cppflags=$arg
51023else
51024  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
51025fi
51026fi
51027    done
51028
51029
51030    # Unwind the index
51031    pmix_scope_index=`expr $pmix_scope_index - 1`
51032    pmix_scope_test=`expr $pmix_scope_index \> 0`
51033    if test "$pmix_scope_test" = "0"; then
51034        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
51035$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
51036        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
51037$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
51038        as_fn_error $? "Cannot continue" "$LINENO" 5
51039    fi
51040
51041    # Get the variable names from that index
51042    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
51043    eval $pmix_str
51044
51045    # Iterate over all the variables and unset them all
51046    for pmix_var in $pmix_str; do
51047        unset $pmix_var
51048    done
51049
51050
51051fi
51052else
51053  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pinstalldirs_env_WRAPPER_EXTRA_CPPFLAGS ($pinstalldirs_env_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
51054$as_echo "$as_me: WARNING: ignoring pinstalldirs_env_WRAPPER_EXTRA_CPPFLAGS ($pinstalldirs_env_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
51055fi
51056fi
51057
51058else
51059
51060    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pinstalldirs:env can compile" >&5
51061$as_echo_n "checking if MCA component pinstalldirs:env can compile... " >&6; }
51062    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51063$as_echo "no" >&6; }
51064
51065    # If this component was requested as the default for this
51066    # type, then abort.
51067    if test "$with_pinstalldirs" = "env" ; then
51068        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"env\" failed to configure properly" >&5
51069$as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
51070        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
51071$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
51072        as_fn_error $? "Cannot continue" "$LINENO" 5
51073    fi
51074
51075    if test ! -z "$DIRECT_pinstalldirs" ; then
51076        if test "$DIRECT_pinstalldirs" = "env" ; then
51077            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"env\" failed to configure properly" >&5
51078$as_echo "$as_me: WARNING: MCA component \"env\" failed to configure properly" >&2;}
51079            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
51080$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
51081            as_fn_error $? "Cannot continue" "$LINENO" 5
51082        fi
51083    fi
51084
51085           # add component to all component list
51086           all_components="$all_components env"
51087fi
51088
51089
51090
51091    # set the AM_CONDITIONAL on how we should build
51092    if test "$compile_mode" = "dso"; then :
51093  BUILD_pmix_pinstalldirs_env_DSO=1
51094else
51095  BUILD_pmix_pinstalldirs_env_DSO=0
51096fi
51097     if test "$BUILD_pmix_pinstalldirs_env_DSO" = "1"; then
51098  MCA_BUILD_pmix_pinstalldirs_env_DSO_TRUE=
51099  MCA_BUILD_pmix_pinstalldirs_env_DSO_FALSE='#'
51100else
51101  MCA_BUILD_pmix_pinstalldirs_env_DSO_TRUE='#'
51102  MCA_BUILD_pmix_pinstalldirs_env_DSO_FALSE=
51103fi
51104
51105
51106    if test "$should_build" = "1"; then :
51107  components_last_result=1
51108else
51109  components_last_result=0
51110fi
51111
51112    unset compile_mode
51113
51114
51115
51116
51117
51118    pmix_show_subsubsubtitle "MCA component pinstalldirs:config (m4 configuration macro, priority 0)"
51119
51120    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed"
51121
51122
51123
51124    component_path="$srcdir/src/mca/pinstalldirs/config"
51125    want_component=0
51126
51127    # build if:
51128    # - the component type is direct and we are that component
51129    # - there is no pmix_ignore file
51130    # - there is an pmix_ignore, but there is an empty pmix_unignore
51131    # - there is an pmix_ignore, but username is in pmix_unignore
51132    if test -d $component_path ; then
51133        # decide if we want the component to be built or not.  This
51134        # is spread out because some of the logic is a little complex
51135        # and test's syntax isn't exactly the greatest.  We want to
51136        # build the component by default.
51137        want_component=1
51138        if test -f $component_path/.pmix_ignore ; then
51139            # If there is an pmix_ignore file, don't build
51140            # the component.  Note that this decision can be
51141            # overridden by the unignore logic below.
51142            want_component=0
51143        fi
51144        if test -f $component_path/.pmix_unignore ; then
51145            # if there is an empty pmix_unignore, that is
51146            # equivalent to having your userid in the unignore file.
51147            # If userid is in the file, unignore the ignore file.
51148            if test ! -s $component_path/.pmix_unignore ; then
51149                want_component=1
51150            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
51151                want_component=1
51152            fi
51153        fi
51154        # if this component type is direct and we are not it, we don't want
51155        # to be built.  Otherwise, we do want to be built.
51156        if test ! -z "$DIRECT_pinstalldirs" ; then
51157            if test "$DIRECT_pinstalldirs" = "config" ; then
51158                want_component=1
51159            else
51160                want_component=0
51161            fi
51162        fi
51163    fi
51164
51165    # if we were explicitly disabled, don't build :)
51166    if test "$DISABLE_pinstalldirs" = "1"; then :
51167  want_component=0
51168fi
51169    if test "$DISABLE_pinstalldirs_config" = "1"; then :
51170  want_component=0
51171fi
51172
51173    if test "$want_component" = "1"; then :
51174  should_build=$components_looking_for_succeed
51175else
51176  should_build=0
51177fi
51178
51179    # Allow the component to override the build mode if it really wants to.
51180    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
51181
51182    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pinstalldirs:config compile mode" >&5
51183$as_echo_n "checking for MCA component pinstalldirs:config compile mode... " >&6; }
51184    compile_mode="static"
51185    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
51186$as_echo "$compile_mode" >&6; }
51187
51188
51189    # try to configure the component
51190
51191    ac_config_files="$ac_config_files src/mca/pinstalldirs/config/Makefile src/mca/pinstalldirs/config/pinstall_dirs.h"
51192
51193
51194    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build"
51195
51196    if test "$should_build" = "1"; then :
51197
51198
51199
51200    # See if it dropped an output file for us to pick up some
51201    # shell variables in.
51202    infile="$srcdir/src/mca/pinstalldirs/config/post_configure.sh"
51203
51204    # Add this subdir to the mast list of all MCA component subdirs
51205    all_components="$all_components config"
51206
51207    if test "$compile_mode" = "dso" ; then
51208        dso_components="$dso_components config"
51209    else
51210        if test "pinstalldirs" = "common"; then
51211            # Static libraries in "common" frameworks are installed, and
51212            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
51213            # set.
51214            static_ltlibs="mca/pinstalldirs/config/lib${PMIX_LIB_PREFIX}mca_pinstalldirs_config.la $static_ltlibs"
51215        else
51216            # Other frameworks do not have to obey the
51217            # $FRAMEWORK_LIB_PREFIX prefix.
51218            static_ltlibs="mca/pinstalldirs/config/libmca_pinstalldirs_config.la $static_ltlibs"
51219        fi
51220        echo "extern const pmix_mca_base_component_t mca_pinstalldirs_config_component;" >> $outfile.extern
51221        echo "  &mca_pinstalldirs_config_component, " >> $outfile.struct
51222        static_components="$static_components config"
51223    fi
51224
51225    # Output pretty results
51226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pinstalldirs:config can compile" >&5
51227$as_echo_n "checking if MCA component pinstalldirs:config can compile... " >&6; }
51228    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
51229$as_echo "yes" >&6; }
51230
51231                        if test -f $infile; then
51232        # check for direct call header to include.  This will be
51233        # AC_SUBSTed later.
51234        if test "$DIRECT_pinstalldirs" = "config" ; then
51235            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
51236                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
51237                str="MCA_pmix_pinstalldirs_DIRECT_CALL_HEADER=$line"
51238                eval $str
51239            else
51240as_fn_error $? "*** pinstalldirs component config was supposed to be direct-called, but
51241*** does not appear to support direct calling.
51242*** Aborting" "$LINENO" 5
51243            fi
51244        fi
51245    else
51246        # were we supposed to have found something in the
51247        # post_configure.sh, but the file didn't exist?
51248        if test "$DIRECT_pinstalldirs" = "config" ; then
51249as_fn_error $? "*** pinstalldirs component config was supposed to be direct-called, but
51250*** does not appear to support direct calling.
51251*** Aborting" "$LINENO" 5
51252        fi
51253    fi
51254
51255    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
51256    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
51257    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
51258    # component didn't have it's own configure script (in which case,
51259    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
51260    # have to do this if the component is building dynamically,
51261    # because it will link against these (without a dependency from
51262    # libmpi.so to these flags)
51263    if test "$compile_mode" = "static"; then
51264        if test "$pinstalldirs_config_WRAPPER_EXTRA_LDFLAGS" = ""; then :
51265
51266
51267
51268    # Is the private index set?  If not, set it.
51269    if test "x$pmix_scope_index" = "x"; then
51270        pmix_scope_index=1
51271    fi
51272
51273    # First, check to see if any of these variables are already set.
51274    # This is a simple sanity check to ensure we're not already
51275    # overwriting pre-existing variables (that have a non-empty
51276    # value).  It's not a perfect check, but at least it's something.
51277    for pmix_var in pmix_tmp pmix_append; do
51278        pmix_str="pmix_str=\"\$$pmix_var\""
51279        eval $pmix_str
51280
51281        if test "x$pmix_str" != "x"; then
51282            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
51283$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
51284            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
51285$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
51286            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
51287$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
51288            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
51289$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
51290            as_fn_error $? "Cannot continue" "$LINENO" 5
51291        fi
51292    done
51293
51294    # Ok, we passed the simple sanity check.  Save all these names so
51295    # that we can unset them at the end of the scope.
51296    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
51297    eval $pmix_str
51298    unset pmix_str
51299
51300    env | grep pmix_scope
51301    pmix_scope_index=`expr $pmix_scope_index + 1`
51302
51303
51304    for arg in $pinstalldirs_config_LDFLAGS; do
51305        pmix_tmp=`echo $arg | cut -c1-2`
51306        pmix_append=1
51307        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
51308  for val in ${mca_wrapper_extra_ldflags}; do
51309                   if test "x$val" = "x$arg"; then :
51310  pmix_append=0
51311fi
51312               done
51313fi
51314        if test "$pmix_append" = "1"; then :
51315  if test -z "$mca_wrapper_extra_ldflags"; then :
51316  mca_wrapper_extra_ldflags=$arg
51317else
51318  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
51319fi
51320fi
51321    done
51322
51323
51324    # Unwind the index
51325    pmix_scope_index=`expr $pmix_scope_index - 1`
51326    pmix_scope_test=`expr $pmix_scope_index \> 0`
51327    if test "$pmix_scope_test" = "0"; then
51328        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
51329$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
51330        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
51331$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
51332        as_fn_error $? "Cannot continue" "$LINENO" 5
51333    fi
51334
51335    # Get the variable names from that index
51336    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
51337    eval $pmix_str
51338
51339    # Iterate over all the variables and unset them all
51340    for pmix_var in $pmix_str; do
51341        unset $pmix_var
51342    done
51343
51344
51345else
51346
51347
51348
51349    # Is the private index set?  If not, set it.
51350    if test "x$pmix_scope_index" = "x"; then
51351        pmix_scope_index=1
51352    fi
51353
51354    # First, check to see if any of these variables are already set.
51355    # This is a simple sanity check to ensure we're not already
51356    # overwriting pre-existing variables (that have a non-empty
51357    # value).  It's not a perfect check, but at least it's something.
51358    for pmix_var in pmix_tmp pmix_append; do
51359        pmix_str="pmix_str=\"\$$pmix_var\""
51360        eval $pmix_str
51361
51362        if test "x$pmix_str" != "x"; then
51363            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
51364$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
51365            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
51366$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
51367            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
51368$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
51369            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
51370$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
51371            as_fn_error $? "Cannot continue" "$LINENO" 5
51372        fi
51373    done
51374
51375    # Ok, we passed the simple sanity check.  Save all these names so
51376    # that we can unset them at the end of the scope.
51377    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
51378    eval $pmix_str
51379    unset pmix_str
51380
51381    env | grep pmix_scope
51382    pmix_scope_index=`expr $pmix_scope_index + 1`
51383
51384
51385    for arg in $pinstalldirs_config_WRAPPER_EXTRA_LDFLAGS; do
51386        pmix_tmp=`echo $arg | cut -c1-2`
51387        pmix_append=1
51388        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
51389  for val in ${mca_wrapper_extra_ldflags}; do
51390                   if test "x$val" = "x$arg"; then :
51391  pmix_append=0
51392fi
51393               done
51394fi
51395        if test "$pmix_append" = "1"; then :
51396  if test -z "$mca_wrapper_extra_ldflags"; then :
51397  mca_wrapper_extra_ldflags=$arg
51398else
51399  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
51400fi
51401fi
51402    done
51403
51404
51405    # Unwind the index
51406    pmix_scope_index=`expr $pmix_scope_index - 1`
51407    pmix_scope_test=`expr $pmix_scope_index \> 0`
51408    if test "$pmix_scope_test" = "0"; then
51409        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
51410$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
51411        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
51412$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
51413        as_fn_error $? "Cannot continue" "$LINENO" 5
51414    fi
51415
51416    # Get the variable names from that index
51417    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
51418    eval $pmix_str
51419
51420    # Iterate over all the variables and unset them all
51421    for pmix_var in $pmix_str; do
51422        unset $pmix_var
51423    done
51424
51425
51426fi
51427                        if test "$pinstalldirs_config_WRAPPER_EXTRA_LIBS" = ""; then :
51428
51429
51430
51431    # Is the private index set?  If not, set it.
51432    if test "x$pmix_scope_index" = "x"; then
51433        pmix_scope_index=1
51434    fi
51435
51436    # First, check to see if any of these variables are already set.
51437    # This is a simple sanity check to ensure we're not already
51438    # overwriting pre-existing variables (that have a non-empty
51439    # value).  It's not a perfect check, but at least it's something.
51440    for pmix_var in pmix_tmp pmix_append; do
51441        pmix_str="pmix_str=\"\$$pmix_var\""
51442        eval $pmix_str
51443
51444        if test "x$pmix_str" != "x"; then
51445            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
51446$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
51447            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
51448$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
51449            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
51450$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
51451            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
51452$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
51453            as_fn_error $? "Cannot continue" "$LINENO" 5
51454        fi
51455    done
51456
51457    # Ok, we passed the simple sanity check.  Save all these names so
51458    # that we can unset them at the end of the scope.
51459    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
51460    eval $pmix_str
51461    unset pmix_str
51462
51463    env | grep pmix_scope
51464    pmix_scope_index=`expr $pmix_scope_index + 1`
51465
51466
51467    for arg in $pinstalldirs_config_LIBS; do
51468        pmix_tmp=`echo $arg | cut -c1-2`
51469        pmix_append=1
51470        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
51471  for val in ${mca_wrapper_extra_libs}; do
51472                   if test "x$val" = "x$arg"; then :
51473  pmix_append=0
51474fi
51475               done
51476fi
51477        if test "$pmix_append" = "1"; then :
51478  if test -z "$mca_wrapper_extra_libs"; then :
51479  mca_wrapper_extra_libs=$arg
51480else
51481  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
51482fi
51483fi
51484    done
51485
51486
51487    # Unwind the index
51488    pmix_scope_index=`expr $pmix_scope_index - 1`
51489    pmix_scope_test=`expr $pmix_scope_index \> 0`
51490    if test "$pmix_scope_test" = "0"; then
51491        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
51492$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
51493        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
51494$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
51495        as_fn_error $? "Cannot continue" "$LINENO" 5
51496    fi
51497
51498    # Get the variable names from that index
51499    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
51500    eval $pmix_str
51501
51502    # Iterate over all the variables and unset them all
51503    for pmix_var in $pmix_str; do
51504        unset $pmix_var
51505    done
51506
51507
51508else
51509
51510
51511
51512    # Is the private index set?  If not, set it.
51513    if test "x$pmix_scope_index" = "x"; then
51514        pmix_scope_index=1
51515    fi
51516
51517    # First, check to see if any of these variables are already set.
51518    # This is a simple sanity check to ensure we're not already
51519    # overwriting pre-existing variables (that have a non-empty
51520    # value).  It's not a perfect check, but at least it's something.
51521    for pmix_var in pmix_tmp pmix_append; do
51522        pmix_str="pmix_str=\"\$$pmix_var\""
51523        eval $pmix_str
51524
51525        if test "x$pmix_str" != "x"; then
51526            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
51527$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
51528            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
51529$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
51530            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
51531$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
51532            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
51533$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
51534            as_fn_error $? "Cannot continue" "$LINENO" 5
51535        fi
51536    done
51537
51538    # Ok, we passed the simple sanity check.  Save all these names so
51539    # that we can unset them at the end of the scope.
51540    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
51541    eval $pmix_str
51542    unset pmix_str
51543
51544    env | grep pmix_scope
51545    pmix_scope_index=`expr $pmix_scope_index + 1`
51546
51547
51548    for arg in $pinstalldirs_config_WRAPPER_EXTRA_LIBS; do
51549        pmix_tmp=`echo $arg | cut -c1-2`
51550        pmix_append=1
51551        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
51552  for val in ${mca_wrapper_extra_libs}; do
51553                   if test "x$val" = "x$arg"; then :
51554  pmix_append=0
51555fi
51556               done
51557fi
51558        if test "$pmix_append" = "1"; then :
51559  if test -z "$mca_wrapper_extra_libs"; then :
51560  mca_wrapper_extra_libs=$arg
51561else
51562  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
51563fi
51564fi
51565    done
51566
51567
51568    # Unwind the index
51569    pmix_scope_index=`expr $pmix_scope_index - 1`
51570    pmix_scope_test=`expr $pmix_scope_index \> 0`
51571    if test "$pmix_scope_test" = "0"; then
51572        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
51573$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
51574        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
51575$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
51576        as_fn_error $? "Cannot continue" "$LINENO" 5
51577    fi
51578
51579    # Get the variable names from that index
51580    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
51581    eval $pmix_str
51582
51583    # Iterate over all the variables and unset them all
51584    for pmix_var in $pmix_str; do
51585        unset $pmix_var
51586    done
51587
51588
51589fi
51590
51591    fi
51592
51593    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
51594    # component can never be used in a STOP_AT_FIRST framework, we
51595    # don't have to implement the else clause in the literal check...
51596    if test "$pinstalldirs_config_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
51597  stop_at_first=0
51598            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
51599  if test "$with_devel_headers" = "yes"; then :
51600
51601
51602
51603    # Is the private index set?  If not, set it.
51604    if test "x$pmix_scope_index" = "x"; then
51605        pmix_scope_index=1
51606    fi
51607
51608    # First, check to see if any of these variables are already set.
51609    # This is a simple sanity check to ensure we're not already
51610    # overwriting pre-existing variables (that have a non-empty
51611    # value).  It's not a perfect check, but at least it's something.
51612    for pmix_var in pmix_tmp pmix_append; do
51613        pmix_str="pmix_str=\"\$$pmix_var\""
51614        eval $pmix_str
51615
51616        if test "x$pmix_str" != "x"; then
51617            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
51618$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
51619            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
51620$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
51621            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
51622$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
51623            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
51624$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
51625            as_fn_error $? "Cannot continue" "$LINENO" 5
51626        fi
51627    done
51628
51629    # Ok, we passed the simple sanity check.  Save all these names so
51630    # that we can unset them at the end of the scope.
51631    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
51632    eval $pmix_str
51633    unset pmix_str
51634
51635    env | grep pmix_scope
51636    pmix_scope_index=`expr $pmix_scope_index + 1`
51637
51638
51639    for arg in $pinstalldirs_config_WRAPPER_EXTRA_CPPFLAGS; do
51640        pmix_tmp=`echo $arg | cut -c1-2`
51641        pmix_append=1
51642        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
51643  for val in ${mca_wrapper_extra_cppflags}; do
51644                   if test "x$val" = "x$arg"; then :
51645  pmix_append=0
51646fi
51647               done
51648fi
51649        if test "$pmix_append" = "1"; then :
51650  if test -z "$mca_wrapper_extra_cppflags"; then :
51651  mca_wrapper_extra_cppflags=$arg
51652else
51653  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
51654fi
51655fi
51656    done
51657
51658
51659    # Unwind the index
51660    pmix_scope_index=`expr $pmix_scope_index - 1`
51661    pmix_scope_test=`expr $pmix_scope_index \> 0`
51662    if test "$pmix_scope_test" = "0"; then
51663        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
51664$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
51665        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
51666$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
51667        as_fn_error $? "Cannot continue" "$LINENO" 5
51668    fi
51669
51670    # Get the variable names from that index
51671    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
51672    eval $pmix_str
51673
51674    # Iterate over all the variables and unset them all
51675    for pmix_var in $pmix_str; do
51676        unset $pmix_var
51677    done
51678
51679
51680fi
51681else
51682  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pinstalldirs_config_WRAPPER_EXTRA_CPPFLAGS ($pinstalldirs_config_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
51683$as_echo "$as_me: WARNING: ignoring pinstalldirs_config_WRAPPER_EXTRA_CPPFLAGS ($pinstalldirs_config_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
51684fi
51685fi
51686
51687else
51688
51689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pinstalldirs:config can compile" >&5
51690$as_echo_n "checking if MCA component pinstalldirs:config can compile... " >&6; }
51691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
51692$as_echo "no" >&6; }
51693
51694    # If this component was requested as the default for this
51695    # type, then abort.
51696    if test "$with_pinstalldirs" = "config" ; then
51697        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"config\" failed to configure properly" >&5
51698$as_echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;}
51699        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
51700$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
51701        as_fn_error $? "Cannot continue" "$LINENO" 5
51702    fi
51703
51704    if test ! -z "$DIRECT_pinstalldirs" ; then
51705        if test "$DIRECT_pinstalldirs" = "config" ; then
51706            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"config\" failed to configure properly" >&5
51707$as_echo "$as_me: WARNING: MCA component \"config\" failed to configure properly" >&2;}
51708            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
51709$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
51710            as_fn_error $? "Cannot continue" "$LINENO" 5
51711        fi
51712    fi
51713
51714           # add component to all component list
51715           all_components="$all_components config"
51716fi
51717
51718
51719
51720    # set the AM_CONDITIONAL on how we should build
51721    if test "$compile_mode" = "dso"; then :
51722  BUILD_pmix_pinstalldirs_config_DSO=1
51723else
51724  BUILD_pmix_pinstalldirs_config_DSO=0
51725fi
51726     if test "$BUILD_pmix_pinstalldirs_config_DSO" = "1"; then
51727  MCA_BUILD_pmix_pinstalldirs_config_DSO_TRUE=
51728  MCA_BUILD_pmix_pinstalldirs_config_DSO_FALSE='#'
51729else
51730  MCA_BUILD_pmix_pinstalldirs_config_DSO_TRUE='#'
51731  MCA_BUILD_pmix_pinstalldirs_config_DSO_FALSE=
51732fi
51733
51734
51735    if test "$should_build" = "1"; then :
51736  components_last_result=1
51737else
51738  components_last_result=0
51739fi
51740
51741    unset compile_mode
51742
51743
51744
51745
51746
51747    # configure components that provide their own configure script.
51748    # It would be really hard to run these for "find first that
51749    # works", so we don't :)
51750
51751
51752    MCA_pmix_pinstalldirs_ALL_COMPONENTS="$all_components"
51753    MCA_pmix_pinstalldirs_STATIC_COMPONENTS="$static_components"
51754    MCA_pmix_pinstalldirs_DSO_COMPONENTS="$dso_components"
51755    MCA_pmix_pinstalldirs_STATIC_LTLIBS="$static_ltlibs"
51756
51757
51758
51759
51760
51761
51762
51763    MCA_pmix_pinstalldirs_ALL_SUBDIRS=
51764    for item in $all_components ; do
51765       MCA_pmix_pinstalldirs_ALL_SUBDIRS="$MCA_pmix_pinstalldirs_ALL_SUBDIRS mca/pinstalldirs/$item"
51766    done
51767
51768
51769
51770    MCA_pmix_pinstalldirs_STATIC_SUBDIRS=
51771    for item in $static_components ; do
51772       MCA_pmix_pinstalldirs_STATIC_SUBDIRS="$MCA_pmix_pinstalldirs_STATIC_SUBDIRS mca/pinstalldirs/$item"
51773    done
51774
51775
51776
51777    MCA_pmix_pinstalldirs_DSO_SUBDIRS=
51778    for item in $dso_components ; do
51779       MCA_pmix_pinstalldirs_DSO_SUBDIRS="$MCA_pmix_pinstalldirs_DSO_SUBDIRS mca/pinstalldirs/$item"
51780    done
51781
51782
51783
51784    # Create the final .h file that will be included in the type's
51785    # top-level glue.  This lists all the static components.  We don't
51786    # need to do this for "common".
51787    if test "pinstalldirs" != "common"; then
51788        cat > $outfile <<EOF
51789/*
51790 * \$HEADER\$
51791 */
51792#if defined(c_plusplus) || defined(__cplusplus)
51793extern "C" {
51794#endif
51795
51796`cat $outfile.extern`
51797
51798const pmix_mca_base_component_t *mca_pinstalldirs_base_static_components[] = {
51799`cat $outfile.struct`
51800  NULL
51801};
51802
51803#if defined(c_plusplus) || defined(__cplusplus)
51804}
51805#endif
51806
51807EOF
51808        # Only replace the header file if a) it doesn't previously
51809        # exist, or b) the contents are different.  Do this to not
51810        # trigger recompilation of certain .c files just because the
51811        # timestamp changed on $outfile_real (similar to the way AC
51812        # handles AC_CONFIG_HEADER files).
51813        diff $outfile $outfile_real > /dev/null 2>&1
51814        if test "$?" != "0"; then
51815            mv $outfile $outfile_real
51816        else
51817            rm -f $outfile
51818        fi
51819    fi
51820    rm -f $outfile.struct $outfile.extern
51821
51822    unset all_components static_components dso_components outfile outfile_real
51823
51824                                 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS pnet"
51825                                 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/pnet"
51826                                 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_pnet_ALL_SUBDIRS)"
51827                                 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_pnet_DSO_SUBDIRS)"
51828                                 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_pnet_STATIC_SUBDIRS)"
51829                                 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/pnet/libmca_pnet.la"
51830                          MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_pnet_STATIC_LTLIBS)"
51831
51832    pmix_show_subsubtitle "Configuring MCA framework pnet"
51833
51834
51835
51836
51837    # setup for framework
51838    all_components=
51839    static_components=
51840    dso_components=
51841    static_ltlibs=
51842
51843    # Ensure that the directory where the #include file is to live
51844    # exists.  Need to do this for VPATH builds, because the directory
51845    # may not exist yet.  For the "common" type, it's not really a
51846    # component, so it doesn't have a base.
51847    outdir=src/mca/pnet/base
51848    as_dir=$outdir; as_fn_mkdir_p
51849
51850    # emit Makefile rule
51851    ac_config_files="$ac_config_files src/mca/pnet/Makefile"
51852
51853
51854    # remove any previously generated #include files
51855    outfile_real=$outdir/static-components.h
51856    outfile=$outfile_real.new
51857    rm -f $outfile $outfile.struct $outfile.extern
51858    touch $outfile.struct $outfile.extern
51859
51860    # print some nice messages about what we're about to do...
51861    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pnet" >&5
51862$as_echo_n "checking for no configure components in framework pnet... " >&6; }
51863    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
51864$as_echo "" >&6; }
51865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pnet" >&5
51866$as_echo_n "checking for m4 configure components in framework pnet... " >&6; }
51867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
51868$as_echo "" >&6; }
51869
51870    # If there are components in the no configure list, but we're
51871    # doing one of the "special" selection logics, abort with a
51872    # reasonable message.
51873
51874
51875
51876    # run the configure logic for the no-config components
51877
51878
51879    # configure components that use built-in configuration scripts
51880
51881
51882
51883    best_mca_component_priority=0
51884    components_looking_for_succeed=1
51885    components_last_result=0
51886
51887
51888    # configure components that provide their own configure script.
51889    # It would be really hard to run these for "find first that
51890    # works", so we don't :)
51891
51892
51893
51894                  if test "1" != "0"; then :
51895
51896    for component_path in $srcdir/src/mca/pnet/* ; do
51897        component="`basename $component_path`"
51898        if test -d $component_path && test -x $component_path/configure ; then
51899            pmix_show_subsubsubtitle "MCA component pnet:$component (need to configure)"
51900
51901            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build="
51902
51903
51904
51905    component_path="$srcdir/src/mca/pnet/$component"
51906    want_component=0
51907
51908    # build if:
51909    # - the component type is direct and we are that component
51910    # - there is no pmix_ignore file
51911    # - there is an pmix_ignore, but there is an empty pmix_unignore
51912    # - there is an pmix_ignore, but username is in pmix_unignore
51913    if test -d $component_path ; then
51914        # decide if we want the component to be built or not.  This
51915        # is spread out because some of the logic is a little complex
51916        # and test's syntax isn't exactly the greatest.  We want to
51917        # build the component by default.
51918        want_component=1
51919        if test -f $component_path/.pmix_ignore ; then
51920            # If there is an pmix_ignore file, don't build
51921            # the component.  Note that this decision can be
51922            # overridden by the unignore logic below.
51923            want_component=0
51924        fi
51925        if test -f $component_path/.pmix_unignore ; then
51926            # if there is an empty pmix_unignore, that is
51927            # equivalent to having your userid in the unignore file.
51928            # If userid is in the file, unignore the ignore file.
51929            if test ! -s $component_path/.pmix_unignore ; then
51930                want_component=1
51931            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
51932                want_component=1
51933            fi
51934        fi
51935        # if this component type is direct and we are not it, we don't want
51936        # to be built.  Otherwise, we do want to be built.
51937        if test ! -z "$DIRECT_pnet" ; then
51938            if test "$DIRECT_pnet" = "$component" ; then
51939                want_component=1
51940            else
51941                want_component=0
51942            fi
51943        fi
51944    fi
51945
51946    # if we were explicitly disabled, don't build :)
51947    if test "$DISABLE_pnet" = "1"; then :
51948  want_component=0
51949fi
51950    str="DISABLED_COMPONENT_CHECK=\$DISABLE_pnet_$component"
51951         eval $str
51952         if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
51953             want_component=0
51954         fi
51955
51956    if test "$want_component" = "1"; then :
51957  should_build=1
51958else
51959  should_build=0
51960fi
51961
51962
51963    SHARED_FRAMEWORK="$DSO_pnet"
51964    str="SHARED_COMPONENT=\$DSO_pnet_$component"
51965         eval $str
51966
51967    STATIC_FRAMEWORK="$STATIC_pnet"
51968    str="STATIC_COMPONENT=\$STATIC_pnet_$component"
51969         eval $str
51970
51971    shared_mode_override=static
51972
51973    # Setup for either shared or static
51974    if test "$STATIC_FRAMEWORK" = "1" || \
51975       test "$STATIC_COMPONENT" = "1" || \
51976       test "$STATIC_all" = "1" ; then
51977        compile_mode="static"
51978    elif test "$shared_mode_override" = "dso" || \
51979         test "$SHARED_FRAMEWORK" = "1" || \
51980         test "$SHARED_COMPONENT" = "1" || \
51981         test "$DSO_all" = "1"; then
51982        compile_mode="dso"
51983    else
51984        compile_mode="static"
51985    fi
51986
51987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pnet:$component compile mode" >&5
51988$as_echo_n "checking for MCA component pnet:$component compile mode... " >&6; }
51989    if test "$DIRECT_pnet" = "$component" ; then
51990        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
51991$as_echo "$compile_mode - direct" >&6; }
51992    else
51993        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
51994$as_echo "$compile_mode" >&6; }
51995    fi
51996
51997            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build"
51998
51999            if test "$should_build" = "1" ; then
52000
52001
52002
52003    # Is the private index set?  If not, set it.
52004    if test "x$pmix_scope_index" = "x"; then
52005        pmix_scope_index=1
52006    fi
52007
52008    # First, check to see if any of these variables are already set.
52009    # This is a simple sanity check to ensure we're not already
52010    # overwriting pre-existing variables (that have a non-empty
52011    # value).  It's not a perfect check, but at least it's something.
52012    for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do
52013        pmix_str="pmix_str=\"\$$pmix_var\""
52014        eval $pmix_str
52015
52016        if test "x$pmix_str" != "x"; then
52017            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
52018$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
52019            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
52020$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
52021            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
52022$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
52023            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
52024$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
52025            as_fn_error $? "Cannot continue" "$LINENO" 5
52026        fi
52027    done
52028
52029    # Ok, we passed the simple sanity check.  Save all these names so
52030    # that we can unset them at the end of the scope.
52031    pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\""
52032    eval $pmix_str
52033    unset pmix_str
52034
52035    env | grep pmix_scope
52036    pmix_scope_index=`expr $pmix_scope_index + 1`
52037
52038
52039#
52040# Invoke configure in a specific subdirectory.
52041#
52042# src/mca/pnet/$component is the directory to invoke in
52043# $pmix_subdir_args is the list of arguments to pass
52044# should_build=1 is actions to execute upon success
52045# should_build=0 is actions to execute upon failure
52046#
52047subdir_dir="src/mca/pnet/$component"
52048subdir_args="$pmix_subdir_args"
52049subdir_success="should_build=1"
52050subdir_failure="should_build=0"
52051
52052#
52053# Sanity checks
52054#
52055
52056if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then
52057    { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5
52058$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;}
52059
52060    #
52061    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
52062    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
52063    # into it.
52064    #
52065
52066    case $srcdir in
52067    .)
52068	;;
52069    *)
52070	{ case $subdir_dir in
52071	[\\/]* | ?:[\\/]* ) total_dir=;;
52072	*)                      total_dir=.;;
52073	esac
52074	temp=$subdir_dir
52075	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
52076	    case $dir_part in
52077	    # Skip DOS drivespec
52078	    ?:) total_dir=$dir_part ;;
52079	    *)  total_dir=$total_dir/$dir_part
52080		test -d "$total_dir" ||
52081		mkdir "$total_dir" ||
52082		as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5
52083		;;
52084	    esac
52085	done; }
52086
52087	if test -d ./$subdir_dir; then :;
52088	else
52089	    as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
52090	fi
52091	;;
52092    esac
52093
52094    #
52095    # Move into the target directory
52096    #
52097
52098    subdir_parent=`pwd`
52099    cd $subdir_dir
52100
52101    #
52102    # Make a "../" for each directory in $subdir_dir.
52103    #
52104
52105    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
52106    #
52107    # Construct the --srcdir argument
52108    #
52109
52110    case $srcdir in
52111    .)
52112	# In place
52113	subdir_srcdir="$srcdir"
52114	;;
52115    [\\/]* | ?:[\\/]* )
52116	# Absolute path
52117	subdir_srcdir="$srcdir/$subdir_dir"
52118	;;
52119    *)
52120	# Relative path
52121	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
52122	;;
52123    esac
52124
52125    #
52126    # Construct the --cache-file argument
52127    #
52128
52129    # BWB - subdir caching is a pain since we change CFLAGS and all that.
52130    # Just disable it for now
52131    subdir_cache_file="/dev/null"
52132
52133    #
52134    # Invoke the configure script in the subdirectory
52135    #
52136
52137    sub_configure="$SHELL '$subdir_srcdir/configure'"
52138    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
52139$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
52140    eval "$sub_configure $subdir_args \
52141	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
52142    if test "$?" = "0"; then
52143	eval $subdir_success
52144	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
52145$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
52146    else
52147	eval $subdir_failure
52148	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
52149$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
52150    fi
52151
52152    #
52153    # Go back to the topdir
52154    #
52155
52156    cd $subdir_parent
52157fi
52158
52159#
52160# Clean up
52161#
52162
52163
52164    # Unwind the index
52165    pmix_scope_index=`expr $pmix_scope_index - 1`
52166    pmix_scope_test=`expr $pmix_scope_index \> 0`
52167    if test "$pmix_scope_test" = "0"; then
52168        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
52169$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
52170        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
52171$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
52172        as_fn_error $? "Cannot continue" "$LINENO" 5
52173    fi
52174
52175    # Get the variable names from that index
52176    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
52177    eval $pmix_str
52178
52179    # Iterate over all the variables and unset them all
52180    for pmix_var in $pmix_str; do
52181        unset $pmix_var
52182    done
52183
52184                pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build"
52185            fi
52186
52187            if test "$should_build" = "1" ; then
52188                # do some extra work to pass flags back from the
52189                # top-level configure, the way a configure.m4
52190                # component would.
52191                infile="$srcdir/src/mca/pnet/all_components/post_configure.sh"
52192                if test -f $infile; then
52193
52194                    # First check for the ABORT tag
52195                    line="`$GREP ABORT= $infile | cut -d= -f2-`"
52196                    if test -n "$line" && test "$line" != "no"; then
52197                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
52198$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
52199                        as_fn_error $? "cannot continue" "$LINENO" 5
52200                    fi
52201
52202                    line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
52203                            eval "line=$line"
52204                            if test -n "$line"; then
52205                                all_components_static_components_WRAPPER_EXTRA_LDFLAGS="$line"
52206                            fi
52207                        line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
52208                            eval "line=$line"
52209                            if test -n "$line"; then
52210                                all_components_static_components_WRAPPER_EXTRA_LIBS="$line"
52211                            fi
52212                                        fi
52213
52214
52215
52216
52217    # See if it dropped an output file for us to pick up some
52218    # shell variables in.
52219    infile="$srcdir/src/mca/pnet/$component/post_configure.sh"
52220
52221    # Add this subdir to the mast list of all MCA component subdirs
52222    all_components="$all_components $component"
52223
52224    if test "$compile_mode" = "dso" ; then
52225        dso_components="$dso_components $component"
52226    else
52227        if test "pnet" = "common"; then
52228            # Static libraries in "common" frameworks are installed, and
52229            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
52230            # set.
52231            static_ltlibs="mca/pnet/$component/lib${PMIX_LIB_PREFIX}mca_pnet_$component.la $static_ltlibs"
52232        else
52233            # Other frameworks do not have to obey the
52234            # $FRAMEWORK_LIB_PREFIX prefix.
52235            static_ltlibs="mca/pnet/$component/libmca_pnet_$component.la $static_ltlibs"
52236        fi
52237        echo "extern const pmix_mca_base_component_t mca_pnet_$component_component;" >> $outfile.extern
52238        echo "  &mca_pnet_$component_component, " >> $outfile.struct
52239        static_components="$static_components $component"
52240    fi
52241
52242    # Output pretty results
52243    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pnet:$component can compile" >&5
52244$as_echo_n "checking if MCA component pnet:$component can compile... " >&6; }
52245    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52246$as_echo "yes" >&6; }
52247
52248                        if test -f $infile; then
52249        # check for direct call header to include.  This will be
52250        # AC_SUBSTed later.
52251        if test "$DIRECT_pnet" = "$component" ; then
52252            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
52253                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
52254                str="MCA_pmix_pnet_DIRECT_CALL_HEADER=$line"
52255                eval $str
52256            else
52257as_fn_error $? "*** pnet component $component was supposed to be direct-called, but
52258*** does not appear to support direct calling.
52259*** Aborting" "$LINENO" 5
52260            fi
52261        fi
52262    else
52263        # were we supposed to have found something in the
52264        # post_configure.sh, but the file didn't exist?
52265        if test "$DIRECT_pnet" = "$component" ; then
52266as_fn_error $? "*** pnet component $component was supposed to be direct-called, but
52267*** does not appear to support direct calling.
52268*** Aborting" "$LINENO" 5
52269        fi
52270    fi
52271
52272    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
52273    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
52274    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
52275    # component didn't have it's own configure script (in which case,
52276    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
52277    # have to do this if the component is building dynamically,
52278    # because it will link against these (without a dependency from
52279    # libmpi.so to these flags)
52280    if test "$compile_mode" = "static"; then
52281        str="line=\$pnet_$component_WRAPPER_EXTRA_LDFLAGS"
52282                      eval "$str"
52283
52284
52285
52286    # Is the private index set?  If not, set it.
52287    if test "x$pmix_scope_index" = "x"; then
52288        pmix_scope_index=1
52289    fi
52290
52291    # First, check to see if any of these variables are already set.
52292    # This is a simple sanity check to ensure we're not already
52293    # overwriting pre-existing variables (that have a non-empty
52294    # value).  It's not a perfect check, but at least it's something.
52295    for pmix_var in pmix_tmp pmix_append; do
52296        pmix_str="pmix_str=\"\$$pmix_var\""
52297        eval $pmix_str
52298
52299        if test "x$pmix_str" != "x"; then
52300            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
52301$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
52302            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
52303$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
52304            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
52305$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
52306            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
52307$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
52308            as_fn_error $? "Cannot continue" "$LINENO" 5
52309        fi
52310    done
52311
52312    # Ok, we passed the simple sanity check.  Save all these names so
52313    # that we can unset them at the end of the scope.
52314    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
52315    eval $pmix_str
52316    unset pmix_str
52317
52318    env | grep pmix_scope
52319    pmix_scope_index=`expr $pmix_scope_index + 1`
52320
52321
52322    for arg in $line; do
52323        pmix_tmp=`echo $arg | cut -c1-2`
52324        pmix_append=1
52325        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
52326  for val in ${mca_wrapper_extra_ldflags}; do
52327                   if test "x$val" = "x$arg"; then :
52328  pmix_append=0
52329fi
52330               done
52331fi
52332        if test "$pmix_append" = "1"; then :
52333  if test -z "$mca_wrapper_extra_ldflags"; then :
52334  mca_wrapper_extra_ldflags=$arg
52335else
52336  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
52337fi
52338fi
52339    done
52340
52341
52342    # Unwind the index
52343    pmix_scope_index=`expr $pmix_scope_index - 1`
52344    pmix_scope_test=`expr $pmix_scope_index \> 0`
52345    if test "$pmix_scope_test" = "0"; then
52346        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
52347$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
52348        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
52349$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
52350        as_fn_error $? "Cannot continue" "$LINENO" 5
52351    fi
52352
52353    # Get the variable names from that index
52354    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
52355    eval $pmix_str
52356
52357    # Iterate over all the variables and unset them all
52358    for pmix_var in $pmix_str; do
52359        unset $pmix_var
52360    done
52361
52362str="line=\$pnet_$component_WRAPPER_EXTRA_LIBS"
52363                      eval "$str"
52364
52365
52366
52367    # Is the private index set?  If not, set it.
52368    if test "x$pmix_scope_index" = "x"; then
52369        pmix_scope_index=1
52370    fi
52371
52372    # First, check to see if any of these variables are already set.
52373    # This is a simple sanity check to ensure we're not already
52374    # overwriting pre-existing variables (that have a non-empty
52375    # value).  It's not a perfect check, but at least it's something.
52376    for pmix_var in pmix_tmp pmix_append; do
52377        pmix_str="pmix_str=\"\$$pmix_var\""
52378        eval $pmix_str
52379
52380        if test "x$pmix_str" != "x"; then
52381            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
52382$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
52383            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
52384$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
52385            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
52386$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
52387            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
52388$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
52389            as_fn_error $? "Cannot continue" "$LINENO" 5
52390        fi
52391    done
52392
52393    # Ok, we passed the simple sanity check.  Save all these names so
52394    # that we can unset them at the end of the scope.
52395    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
52396    eval $pmix_str
52397    unset pmix_str
52398
52399    env | grep pmix_scope
52400    pmix_scope_index=`expr $pmix_scope_index + 1`
52401
52402
52403    for arg in $line; do
52404        pmix_tmp=`echo $arg | cut -c1-2`
52405        pmix_append=1
52406        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
52407  for val in ${mca_wrapper_extra_libs}; do
52408                   if test "x$val" = "x$arg"; then :
52409  pmix_append=0
52410fi
52411               done
52412fi
52413        if test "$pmix_append" = "1"; then :
52414  if test -z "$mca_wrapper_extra_libs"; then :
52415  mca_wrapper_extra_libs=$arg
52416else
52417  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
52418fi
52419fi
52420    done
52421
52422
52423    # Unwind the index
52424    pmix_scope_index=`expr $pmix_scope_index - 1`
52425    pmix_scope_test=`expr $pmix_scope_index \> 0`
52426    if test "$pmix_scope_test" = "0"; then
52427        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
52428$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
52429        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
52430$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
52431        as_fn_error $? "Cannot continue" "$LINENO" 5
52432    fi
52433
52434    # Get the variable names from that index
52435    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
52436    eval $pmix_str
52437
52438    # Iterate over all the variables and unset them all
52439    for pmix_var in $pmix_str; do
52440        unset $pmix_var
52441    done
52442
52443
52444    fi
52445
52446    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
52447    # component can never be used in a STOP_AT_FIRST framework, we
52448    # don't have to implement the else clause in the literal check...
52449
52450
52451            else
52452
52453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pnet:$component can compile" >&5
52454$as_echo_n "checking if MCA component pnet:$component can compile... " >&6; }
52455    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
52456$as_echo "no" >&6; }
52457
52458    # If this component was requested as the default for this
52459    # type, then abort.
52460    if test "$with_pnet" = "$component" ; then
52461        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
52462$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
52463        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
52464$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
52465        as_fn_error $? "Cannot continue" "$LINENO" 5
52466    fi
52467
52468    if test ! -z "$DIRECT_pnet" ; then
52469        if test "$DIRECT_pnet" = "$component" ; then
52470            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
52471$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
52472            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
52473$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
52474            as_fn_error $? "Cannot continue" "$LINENO" 5
52475        fi
52476    fi
52477
52478            fi
52479        fi
52480    done
52481
52482fi
52483
52484    MCA_pmix_pnet_ALL_COMPONENTS="$all_components"
52485    MCA_pmix_pnet_STATIC_COMPONENTS="$static_components"
52486    MCA_pmix_pnet_DSO_COMPONENTS="$dso_components"
52487    MCA_pmix_pnet_STATIC_LTLIBS="$static_ltlibs"
52488
52489
52490
52491
52492
52493
52494
52495    MCA_pmix_pnet_ALL_SUBDIRS=
52496    for item in $all_components ; do
52497       MCA_pmix_pnet_ALL_SUBDIRS="$MCA_pmix_pnet_ALL_SUBDIRS mca/pnet/$item"
52498    done
52499
52500
52501
52502    MCA_pmix_pnet_STATIC_SUBDIRS=
52503    for item in $static_components ; do
52504       MCA_pmix_pnet_STATIC_SUBDIRS="$MCA_pmix_pnet_STATIC_SUBDIRS mca/pnet/$item"
52505    done
52506
52507
52508
52509    MCA_pmix_pnet_DSO_SUBDIRS=
52510    for item in $dso_components ; do
52511       MCA_pmix_pnet_DSO_SUBDIRS="$MCA_pmix_pnet_DSO_SUBDIRS mca/pnet/$item"
52512    done
52513
52514
52515
52516    # Create the final .h file that will be included in the type's
52517    # top-level glue.  This lists all the static components.  We don't
52518    # need to do this for "common".
52519    if test "pnet" != "common"; then
52520        cat > $outfile <<EOF
52521/*
52522 * \$HEADER\$
52523 */
52524#if defined(c_plusplus) || defined(__cplusplus)
52525extern "C" {
52526#endif
52527
52528`cat $outfile.extern`
52529
52530const pmix_mca_base_component_t *mca_pnet_base_static_components[] = {
52531`cat $outfile.struct`
52532  NULL
52533};
52534
52535#if defined(c_plusplus) || defined(__cplusplus)
52536}
52537#endif
52538
52539EOF
52540        # Only replace the header file if a) it doesn't previously
52541        # exist, or b) the contents are different.  Do this to not
52542        # trigger recompilation of certain .c files just because the
52543        # timestamp changed on $outfile_real (similar to the way AC
52544        # handles AC_CONFIG_HEADER files).
52545        diff $outfile $outfile_real > /dev/null 2>&1
52546        if test "$?" != "0"; then
52547            mv $outfile $outfile_real
52548        else
52549            rm -f $outfile
52550        fi
52551    fi
52552    rm -f $outfile.struct $outfile.extern
52553
52554    unset all_components static_components dso_components outfile outfile_real
52555
52556                                 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS preg"
52557                                 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/preg"
52558                                 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_preg_ALL_SUBDIRS)"
52559                                 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_preg_DSO_SUBDIRS)"
52560                                 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_preg_STATIC_SUBDIRS)"
52561                                 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/preg/libmca_preg.la"
52562                          MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_preg_STATIC_LTLIBS)"
52563
52564    pmix_show_subsubtitle "Configuring MCA framework preg"
52565
52566
52567
52568
52569    # setup for framework
52570    all_components=
52571    static_components=
52572    dso_components=
52573    static_ltlibs=
52574
52575    # Ensure that the directory where the #include file is to live
52576    # exists.  Need to do this for VPATH builds, because the directory
52577    # may not exist yet.  For the "common" type, it's not really a
52578    # component, so it doesn't have a base.
52579    outdir=src/mca/preg/base
52580    as_dir=$outdir; as_fn_mkdir_p
52581
52582    # emit Makefile rule
52583    ac_config_files="$ac_config_files src/mca/preg/Makefile"
52584
52585
52586    # remove any previously generated #include files
52587    outfile_real=$outdir/static-components.h
52588    outfile=$outfile_real.new
52589    rm -f $outfile $outfile.struct $outfile.extern
52590    touch $outfile.struct $outfile.extern
52591
52592    # print some nice messages about what we're about to do...
52593    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework preg" >&5
52594$as_echo_n "checking for no configure components in framework preg... " >&6; }
52595    { $as_echo "$as_me:${as_lineno-$LINENO}: result: native" >&5
52596$as_echo "native" >&6; }
52597    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework preg" >&5
52598$as_echo_n "checking for m4 configure components in framework preg... " >&6; }
52599    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
52600$as_echo "" >&6; }
52601
52602    # If there are components in the no configure list, but we're
52603    # doing one of the "special" selection logics, abort with a
52604    # reasonable message.
52605
52606
52607
52608    # run the configure logic for the no-config components
52609
52610    pmix_show_subsubsubtitle "MCA component preg:native (no configuration)"
52611
52612    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1"
52613
52614
52615
52616    component_path="$srcdir/src/mca/preg/native"
52617    want_component=0
52618
52619    # build if:
52620    # - the component type is direct and we are that component
52621    # - there is no pmix_ignore file
52622    # - there is an pmix_ignore, but there is an empty pmix_unignore
52623    # - there is an pmix_ignore, but username is in pmix_unignore
52624    if test -d $component_path ; then
52625        # decide if we want the component to be built or not.  This
52626        # is spread out because some of the logic is a little complex
52627        # and test's syntax isn't exactly the greatest.  We want to
52628        # build the component by default.
52629        want_component=1
52630        if test -f $component_path/.pmix_ignore ; then
52631            # If there is an pmix_ignore file, don't build
52632            # the component.  Note that this decision can be
52633            # overridden by the unignore logic below.
52634            want_component=0
52635        fi
52636        if test -f $component_path/.pmix_unignore ; then
52637            # if there is an empty pmix_unignore, that is
52638            # equivalent to having your userid in the unignore file.
52639            # If userid is in the file, unignore the ignore file.
52640            if test ! -s $component_path/.pmix_unignore ; then
52641                want_component=1
52642            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
52643                want_component=1
52644            fi
52645        fi
52646        # if this component type is direct and we are not it, we don't want
52647        # to be built.  Otherwise, we do want to be built.
52648        if test ! -z "$DIRECT_preg" ; then
52649            if test "$DIRECT_preg" = "native" ; then
52650                want_component=1
52651            else
52652                want_component=0
52653            fi
52654        fi
52655    fi
52656
52657    # if we were explicitly disabled, don't build :)
52658    if test "$DISABLE_preg" = "1"; then :
52659  want_component=0
52660fi
52661    if test "$DISABLE_preg_native" = "1"; then :
52662  want_component=0
52663fi
52664
52665    if test "$want_component" = "1"; then :
52666  should_build=1
52667else
52668  should_build=0
52669fi
52670
52671
52672    SHARED_FRAMEWORK="$DSO_preg"
52673    SHARED_COMPONENT="$DSO_preg_native"
52674
52675    STATIC_FRAMEWORK="$STATIC_preg"
52676    STATIC_COMPONENT="$STATIC_preg_native"
52677
52678    shared_mode_override=static
52679
52680    # Setup for either shared or static
52681    if test "$STATIC_FRAMEWORK" = "1" || \
52682       test "$STATIC_COMPONENT" = "1" || \
52683       test "$STATIC_all" = "1" ; then
52684        compile_mode="static"
52685    elif test "$shared_mode_override" = "dso" || \
52686         test "$SHARED_FRAMEWORK" = "1" || \
52687         test "$SHARED_COMPONENT" = "1" || \
52688         test "$DSO_all" = "1"; then
52689        compile_mode="dso"
52690    else
52691        compile_mode="static"
52692    fi
52693
52694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component preg:native compile mode" >&5
52695$as_echo_n "checking for MCA component preg:native compile mode... " >&6; }
52696    if test "$DIRECT_preg" = "native" ; then
52697        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
52698$as_echo "$compile_mode - direct" >&6; }
52699    else
52700        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
52701$as_echo "$compile_mode" >&6; }
52702    fi
52703
52704    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build"
52705
52706    if test "$should_build" = "1" ; then
52707
52708
52709
52710    # See if it dropped an output file for us to pick up some
52711    # shell variables in.
52712    infile="$srcdir/src/mca/preg/native/post_configure.sh"
52713
52714    # Add this subdir to the mast list of all MCA component subdirs
52715    all_components="$all_components native"
52716
52717    if test "$compile_mode" = "dso" ; then
52718        dso_components="$dso_components native"
52719    else
52720        if test "preg" = "common"; then
52721            # Static libraries in "common" frameworks are installed, and
52722            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
52723            # set.
52724            static_ltlibs="mca/preg/native/lib${PMIX_LIB_PREFIX}mca_preg_native.la $static_ltlibs"
52725        else
52726            # Other frameworks do not have to obey the
52727            # $FRAMEWORK_LIB_PREFIX prefix.
52728            static_ltlibs="mca/preg/native/libmca_preg_native.la $static_ltlibs"
52729        fi
52730        echo "extern const pmix_mca_base_component_t mca_preg_native_component;" >> $outfile.extern
52731        echo "  &mca_preg_native_component, " >> $outfile.struct
52732        static_components="$static_components native"
52733    fi
52734
52735    # Output pretty results
52736    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component preg:native can compile" >&5
52737$as_echo_n "checking if MCA component preg:native can compile... " >&6; }
52738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
52739$as_echo "yes" >&6; }
52740
52741                        if test -f $infile; then
52742        # check for direct call header to include.  This will be
52743        # AC_SUBSTed later.
52744        if test "$DIRECT_preg" = "native" ; then
52745            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
52746                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
52747                str="MCA_pmix_preg_DIRECT_CALL_HEADER=$line"
52748                eval $str
52749            else
52750as_fn_error $? "*** preg component native was supposed to be direct-called, but
52751*** does not appear to support direct calling.
52752*** Aborting" "$LINENO" 5
52753            fi
52754        fi
52755    else
52756        # were we supposed to have found something in the
52757        # post_configure.sh, but the file didn't exist?
52758        if test "$DIRECT_preg" = "native" ; then
52759as_fn_error $? "*** preg component native was supposed to be direct-called, but
52760*** does not appear to support direct calling.
52761*** Aborting" "$LINENO" 5
52762        fi
52763    fi
52764
52765    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
52766    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
52767    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
52768    # component didn't have it's own configure script (in which case,
52769    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
52770    # have to do this if the component is building dynamically,
52771    # because it will link against these (without a dependency from
52772    # libmpi.so to these flags)
52773    if test "$compile_mode" = "static"; then
52774        if test "$preg_native_WRAPPER_EXTRA_LDFLAGS" = ""; then :
52775
52776
52777
52778    # Is the private index set?  If not, set it.
52779    if test "x$pmix_scope_index" = "x"; then
52780        pmix_scope_index=1
52781    fi
52782
52783    # First, check to see if any of these variables are already set.
52784    # This is a simple sanity check to ensure we're not already
52785    # overwriting pre-existing variables (that have a non-empty
52786    # value).  It's not a perfect check, but at least it's something.
52787    for pmix_var in pmix_tmp pmix_append; do
52788        pmix_str="pmix_str=\"\$$pmix_var\""
52789        eval $pmix_str
52790
52791        if test "x$pmix_str" != "x"; then
52792            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
52793$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
52794            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
52795$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
52796            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
52797$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
52798            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
52799$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
52800            as_fn_error $? "Cannot continue" "$LINENO" 5
52801        fi
52802    done
52803
52804    # Ok, we passed the simple sanity check.  Save all these names so
52805    # that we can unset them at the end of the scope.
52806    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
52807    eval $pmix_str
52808    unset pmix_str
52809
52810    env | grep pmix_scope
52811    pmix_scope_index=`expr $pmix_scope_index + 1`
52812
52813
52814    for arg in $preg_native_LDFLAGS; do
52815        pmix_tmp=`echo $arg | cut -c1-2`
52816        pmix_append=1
52817        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
52818  for val in ${mca_wrapper_extra_ldflags}; do
52819                   if test "x$val" = "x$arg"; then :
52820  pmix_append=0
52821fi
52822               done
52823fi
52824        if test "$pmix_append" = "1"; then :
52825  if test -z "$mca_wrapper_extra_ldflags"; then :
52826  mca_wrapper_extra_ldflags=$arg
52827else
52828  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
52829fi
52830fi
52831    done
52832
52833
52834    # Unwind the index
52835    pmix_scope_index=`expr $pmix_scope_index - 1`
52836    pmix_scope_test=`expr $pmix_scope_index \> 0`
52837    if test "$pmix_scope_test" = "0"; then
52838        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
52839$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
52840        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
52841$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
52842        as_fn_error $? "Cannot continue" "$LINENO" 5
52843    fi
52844
52845    # Get the variable names from that index
52846    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
52847    eval $pmix_str
52848
52849    # Iterate over all the variables and unset them all
52850    for pmix_var in $pmix_str; do
52851        unset $pmix_var
52852    done
52853
52854
52855else
52856
52857
52858
52859    # Is the private index set?  If not, set it.
52860    if test "x$pmix_scope_index" = "x"; then
52861        pmix_scope_index=1
52862    fi
52863
52864    # First, check to see if any of these variables are already set.
52865    # This is a simple sanity check to ensure we're not already
52866    # overwriting pre-existing variables (that have a non-empty
52867    # value).  It's not a perfect check, but at least it's something.
52868    for pmix_var in pmix_tmp pmix_append; do
52869        pmix_str="pmix_str=\"\$$pmix_var\""
52870        eval $pmix_str
52871
52872        if test "x$pmix_str" != "x"; then
52873            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
52874$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
52875            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
52876$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
52877            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
52878$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
52879            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
52880$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
52881            as_fn_error $? "Cannot continue" "$LINENO" 5
52882        fi
52883    done
52884
52885    # Ok, we passed the simple sanity check.  Save all these names so
52886    # that we can unset them at the end of the scope.
52887    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
52888    eval $pmix_str
52889    unset pmix_str
52890
52891    env | grep pmix_scope
52892    pmix_scope_index=`expr $pmix_scope_index + 1`
52893
52894
52895    for arg in $preg_native_WRAPPER_EXTRA_LDFLAGS; do
52896        pmix_tmp=`echo $arg | cut -c1-2`
52897        pmix_append=1
52898        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
52899  for val in ${mca_wrapper_extra_ldflags}; do
52900                   if test "x$val" = "x$arg"; then :
52901  pmix_append=0
52902fi
52903               done
52904fi
52905        if test "$pmix_append" = "1"; then :
52906  if test -z "$mca_wrapper_extra_ldflags"; then :
52907  mca_wrapper_extra_ldflags=$arg
52908else
52909  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
52910fi
52911fi
52912    done
52913
52914
52915    # Unwind the index
52916    pmix_scope_index=`expr $pmix_scope_index - 1`
52917    pmix_scope_test=`expr $pmix_scope_index \> 0`
52918    if test "$pmix_scope_test" = "0"; then
52919        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
52920$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
52921        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
52922$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
52923        as_fn_error $? "Cannot continue" "$LINENO" 5
52924    fi
52925
52926    # Get the variable names from that index
52927    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
52928    eval $pmix_str
52929
52930    # Iterate over all the variables and unset them all
52931    for pmix_var in $pmix_str; do
52932        unset $pmix_var
52933    done
52934
52935
52936fi
52937                        if test "$preg_native_WRAPPER_EXTRA_LIBS" = ""; then :
52938
52939
52940
52941    # Is the private index set?  If not, set it.
52942    if test "x$pmix_scope_index" = "x"; then
52943        pmix_scope_index=1
52944    fi
52945
52946    # First, check to see if any of these variables are already set.
52947    # This is a simple sanity check to ensure we're not already
52948    # overwriting pre-existing variables (that have a non-empty
52949    # value).  It's not a perfect check, but at least it's something.
52950    for pmix_var in pmix_tmp pmix_append; do
52951        pmix_str="pmix_str=\"\$$pmix_var\""
52952        eval $pmix_str
52953
52954        if test "x$pmix_str" != "x"; then
52955            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
52956$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
52957            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
52958$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
52959            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
52960$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
52961            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
52962$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
52963            as_fn_error $? "Cannot continue" "$LINENO" 5
52964        fi
52965    done
52966
52967    # Ok, we passed the simple sanity check.  Save all these names so
52968    # that we can unset them at the end of the scope.
52969    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
52970    eval $pmix_str
52971    unset pmix_str
52972
52973    env | grep pmix_scope
52974    pmix_scope_index=`expr $pmix_scope_index + 1`
52975
52976
52977    for arg in $preg_native_LIBS; do
52978        pmix_tmp=`echo $arg | cut -c1-2`
52979        pmix_append=1
52980        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
52981  for val in ${mca_wrapper_extra_libs}; do
52982                   if test "x$val" = "x$arg"; then :
52983  pmix_append=0
52984fi
52985               done
52986fi
52987        if test "$pmix_append" = "1"; then :
52988  if test -z "$mca_wrapper_extra_libs"; then :
52989  mca_wrapper_extra_libs=$arg
52990else
52991  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
52992fi
52993fi
52994    done
52995
52996
52997    # Unwind the index
52998    pmix_scope_index=`expr $pmix_scope_index - 1`
52999    pmix_scope_test=`expr $pmix_scope_index \> 0`
53000    if test "$pmix_scope_test" = "0"; then
53001        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
53002$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
53003        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
53004$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
53005        as_fn_error $? "Cannot continue" "$LINENO" 5
53006    fi
53007
53008    # Get the variable names from that index
53009    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
53010    eval $pmix_str
53011
53012    # Iterate over all the variables and unset them all
53013    for pmix_var in $pmix_str; do
53014        unset $pmix_var
53015    done
53016
53017
53018else
53019
53020
53021
53022    # Is the private index set?  If not, set it.
53023    if test "x$pmix_scope_index" = "x"; then
53024        pmix_scope_index=1
53025    fi
53026
53027    # First, check to see if any of these variables are already set.
53028    # This is a simple sanity check to ensure we're not already
53029    # overwriting pre-existing variables (that have a non-empty
53030    # value).  It's not a perfect check, but at least it's something.
53031    for pmix_var in pmix_tmp pmix_append; do
53032        pmix_str="pmix_str=\"\$$pmix_var\""
53033        eval $pmix_str
53034
53035        if test "x$pmix_str" != "x"; then
53036            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
53037$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
53038            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
53039$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
53040            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
53041$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
53042            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
53043$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
53044            as_fn_error $? "Cannot continue" "$LINENO" 5
53045        fi
53046    done
53047
53048    # Ok, we passed the simple sanity check.  Save all these names so
53049    # that we can unset them at the end of the scope.
53050    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
53051    eval $pmix_str
53052    unset pmix_str
53053
53054    env | grep pmix_scope
53055    pmix_scope_index=`expr $pmix_scope_index + 1`
53056
53057
53058    for arg in $preg_native_WRAPPER_EXTRA_LIBS; do
53059        pmix_tmp=`echo $arg | cut -c1-2`
53060        pmix_append=1
53061        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
53062  for val in ${mca_wrapper_extra_libs}; do
53063                   if test "x$val" = "x$arg"; then :
53064  pmix_append=0
53065fi
53066               done
53067fi
53068        if test "$pmix_append" = "1"; then :
53069  if test -z "$mca_wrapper_extra_libs"; then :
53070  mca_wrapper_extra_libs=$arg
53071else
53072  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
53073fi
53074fi
53075    done
53076
53077
53078    # Unwind the index
53079    pmix_scope_index=`expr $pmix_scope_index - 1`
53080    pmix_scope_test=`expr $pmix_scope_index \> 0`
53081    if test "$pmix_scope_test" = "0"; then
53082        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
53083$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
53084        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
53085$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
53086        as_fn_error $? "Cannot continue" "$LINENO" 5
53087    fi
53088
53089    # Get the variable names from that index
53090    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
53091    eval $pmix_str
53092
53093    # Iterate over all the variables and unset them all
53094    for pmix_var in $pmix_str; do
53095        unset $pmix_var
53096    done
53097
53098
53099fi
53100
53101    fi
53102
53103    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
53104    # component can never be used in a STOP_AT_FIRST framework, we
53105    # don't have to implement the else clause in the literal check...
53106    if test "$preg_native_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
53107  stop_at_first=0
53108            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
53109  if test "$with_devel_headers" = "yes"; then :
53110
53111
53112
53113    # Is the private index set?  If not, set it.
53114    if test "x$pmix_scope_index" = "x"; then
53115        pmix_scope_index=1
53116    fi
53117
53118    # First, check to see if any of these variables are already set.
53119    # This is a simple sanity check to ensure we're not already
53120    # overwriting pre-existing variables (that have a non-empty
53121    # value).  It's not a perfect check, but at least it's something.
53122    for pmix_var in pmix_tmp pmix_append; do
53123        pmix_str="pmix_str=\"\$$pmix_var\""
53124        eval $pmix_str
53125
53126        if test "x$pmix_str" != "x"; then
53127            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
53128$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
53129            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
53130$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
53131            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
53132$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
53133            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
53134$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
53135            as_fn_error $? "Cannot continue" "$LINENO" 5
53136        fi
53137    done
53138
53139    # Ok, we passed the simple sanity check.  Save all these names so
53140    # that we can unset them at the end of the scope.
53141    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
53142    eval $pmix_str
53143    unset pmix_str
53144
53145    env | grep pmix_scope
53146    pmix_scope_index=`expr $pmix_scope_index + 1`
53147
53148
53149    for arg in $preg_native_WRAPPER_EXTRA_CPPFLAGS; do
53150        pmix_tmp=`echo $arg | cut -c1-2`
53151        pmix_append=1
53152        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
53153  for val in ${mca_wrapper_extra_cppflags}; do
53154                   if test "x$val" = "x$arg"; then :
53155  pmix_append=0
53156fi
53157               done
53158fi
53159        if test "$pmix_append" = "1"; then :
53160  if test -z "$mca_wrapper_extra_cppflags"; then :
53161  mca_wrapper_extra_cppflags=$arg
53162else
53163  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
53164fi
53165fi
53166    done
53167
53168
53169    # Unwind the index
53170    pmix_scope_index=`expr $pmix_scope_index - 1`
53171    pmix_scope_test=`expr $pmix_scope_index \> 0`
53172    if test "$pmix_scope_test" = "0"; then
53173        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
53174$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
53175        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
53176$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
53177        as_fn_error $? "Cannot continue" "$LINENO" 5
53178    fi
53179
53180    # Get the variable names from that index
53181    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
53182    eval $pmix_str
53183
53184    # Iterate over all the variables and unset them all
53185    for pmix_var in $pmix_str; do
53186        unset $pmix_var
53187    done
53188
53189
53190fi
53191else
53192  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring preg_native_WRAPPER_EXTRA_CPPFLAGS ($preg_native_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
53193$as_echo "$as_me: WARNING: ignoring preg_native_WRAPPER_EXTRA_CPPFLAGS ($preg_native_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
53194fi
53195fi
53196
53197    else
53198
53199    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component preg:native can compile" >&5
53200$as_echo_n "checking if MCA component preg:native can compile... " >&6; }
53201    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53202$as_echo "no" >&6; }
53203
53204    # If this component was requested as the default for this
53205    # type, then abort.
53206    if test "$with_preg" = "native" ; then
53207        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"native\" failed to configure properly" >&5
53208$as_echo "$as_me: WARNING: MCA component \"native\" failed to configure properly" >&2;}
53209        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
53210$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
53211        as_fn_error $? "Cannot continue" "$LINENO" 5
53212    fi
53213
53214    if test ! -z "$DIRECT_preg" ; then
53215        if test "$DIRECT_preg" = "native" ; then
53216            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"native\" failed to configure properly" >&5
53217$as_echo "$as_me: WARNING: MCA component \"native\" failed to configure properly" >&2;}
53218            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
53219$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
53220            as_fn_error $? "Cannot continue" "$LINENO" 5
53221        fi
53222    fi
53223
53224        # add component to all component list
53225        all_components="$all_components native"
53226    fi
53227
53228    # set the AM_CONDITIONAL on how we should build
53229    if test "$compile_mode" = "dso" ; then
53230        BUILD_pmix_preg_native_DSO=1
53231    else
53232        BUILD_pmix_preg_native_DSO=0
53233    fi
53234     if test "$BUILD_pmix_preg_native_DSO" = "1"; then
53235  MCA_BUILD_pmix_preg_native_DSO_TRUE=
53236  MCA_BUILD_pmix_preg_native_DSO_FALSE='#'
53237else
53238  MCA_BUILD_pmix_preg_native_DSO_TRUE='#'
53239  MCA_BUILD_pmix_preg_native_DSO_FALSE=
53240fi
53241
53242
53243    ac_config_files="$ac_config_files src/mca/preg/native/Makefile"
53244
53245
53246    unset compile_mode
53247
53248
53249    # configure components that use built-in configuration scripts
53250
53251
53252
53253    best_mca_component_priority=0
53254    components_looking_for_succeed=1
53255    components_last_result=0
53256
53257
53258    # configure components that provide their own configure script.
53259    # It would be really hard to run these for "find first that
53260    # works", so we don't :)
53261
53262
53263
53264                  if test "1" != "0"; then :
53265
53266    for component_path in $srcdir/src/mca/preg/* ; do
53267        component="`basename $component_path`"
53268        if test -d $component_path && test -x $component_path/configure ; then
53269            pmix_show_subsubsubtitle "MCA component preg:$component (need to configure)"
53270
53271            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build="
53272
53273
53274
53275    component_path="$srcdir/src/mca/preg/$component"
53276    want_component=0
53277
53278    # build if:
53279    # - the component type is direct and we are that component
53280    # - there is no pmix_ignore file
53281    # - there is an pmix_ignore, but there is an empty pmix_unignore
53282    # - there is an pmix_ignore, but username is in pmix_unignore
53283    if test -d $component_path ; then
53284        # decide if we want the component to be built or not.  This
53285        # is spread out because some of the logic is a little complex
53286        # and test's syntax isn't exactly the greatest.  We want to
53287        # build the component by default.
53288        want_component=1
53289        if test -f $component_path/.pmix_ignore ; then
53290            # If there is an pmix_ignore file, don't build
53291            # the component.  Note that this decision can be
53292            # overridden by the unignore logic below.
53293            want_component=0
53294        fi
53295        if test -f $component_path/.pmix_unignore ; then
53296            # if there is an empty pmix_unignore, that is
53297            # equivalent to having your userid in the unignore file.
53298            # If userid is in the file, unignore the ignore file.
53299            if test ! -s $component_path/.pmix_unignore ; then
53300                want_component=1
53301            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
53302                want_component=1
53303            fi
53304        fi
53305        # if this component type is direct and we are not it, we don't want
53306        # to be built.  Otherwise, we do want to be built.
53307        if test ! -z "$DIRECT_preg" ; then
53308            if test "$DIRECT_preg" = "$component" ; then
53309                want_component=1
53310            else
53311                want_component=0
53312            fi
53313        fi
53314    fi
53315
53316    # if we were explicitly disabled, don't build :)
53317    if test "$DISABLE_preg" = "1"; then :
53318  want_component=0
53319fi
53320    str="DISABLED_COMPONENT_CHECK=\$DISABLE_preg_$component"
53321         eval $str
53322         if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
53323             want_component=0
53324         fi
53325
53326    if test "$want_component" = "1"; then :
53327  should_build=1
53328else
53329  should_build=0
53330fi
53331
53332
53333    SHARED_FRAMEWORK="$DSO_preg"
53334    str="SHARED_COMPONENT=\$DSO_preg_$component"
53335         eval $str
53336
53337    STATIC_FRAMEWORK="$STATIC_preg"
53338    str="STATIC_COMPONENT=\$STATIC_preg_$component"
53339         eval $str
53340
53341    shared_mode_override=static
53342
53343    # Setup for either shared or static
53344    if test "$STATIC_FRAMEWORK" = "1" || \
53345       test "$STATIC_COMPONENT" = "1" || \
53346       test "$STATIC_all" = "1" ; then
53347        compile_mode="static"
53348    elif test "$shared_mode_override" = "dso" || \
53349         test "$SHARED_FRAMEWORK" = "1" || \
53350         test "$SHARED_COMPONENT" = "1" || \
53351         test "$DSO_all" = "1"; then
53352        compile_mode="dso"
53353    else
53354        compile_mode="static"
53355    fi
53356
53357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component preg:$component compile mode" >&5
53358$as_echo_n "checking for MCA component preg:$component compile mode... " >&6; }
53359    if test "$DIRECT_preg" = "$component" ; then
53360        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
53361$as_echo "$compile_mode - direct" >&6; }
53362    else
53363        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
53364$as_echo "$compile_mode" >&6; }
53365    fi
53366
53367            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build"
53368
53369            if test "$should_build" = "1" ; then
53370
53371
53372
53373    # Is the private index set?  If not, set it.
53374    if test "x$pmix_scope_index" = "x"; then
53375        pmix_scope_index=1
53376    fi
53377
53378    # First, check to see if any of these variables are already set.
53379    # This is a simple sanity check to ensure we're not already
53380    # overwriting pre-existing variables (that have a non-empty
53381    # value).  It's not a perfect check, but at least it's something.
53382    for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do
53383        pmix_str="pmix_str=\"\$$pmix_var\""
53384        eval $pmix_str
53385
53386        if test "x$pmix_str" != "x"; then
53387            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
53388$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
53389            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
53390$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
53391            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
53392$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
53393            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
53394$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
53395            as_fn_error $? "Cannot continue" "$LINENO" 5
53396        fi
53397    done
53398
53399    # Ok, we passed the simple sanity check.  Save all these names so
53400    # that we can unset them at the end of the scope.
53401    pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\""
53402    eval $pmix_str
53403    unset pmix_str
53404
53405    env | grep pmix_scope
53406    pmix_scope_index=`expr $pmix_scope_index + 1`
53407
53408
53409#
53410# Invoke configure in a specific subdirectory.
53411#
53412# src/mca/preg/$component is the directory to invoke in
53413# $pmix_subdir_args is the list of arguments to pass
53414# should_build=1 is actions to execute upon success
53415# should_build=0 is actions to execute upon failure
53416#
53417subdir_dir="src/mca/preg/$component"
53418subdir_args="$pmix_subdir_args"
53419subdir_success="should_build=1"
53420subdir_failure="should_build=0"
53421
53422#
53423# Sanity checks
53424#
53425
53426if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then
53427    { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5
53428$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;}
53429
53430    #
53431    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
53432    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
53433    # into it.
53434    #
53435
53436    case $srcdir in
53437    .)
53438	;;
53439    *)
53440	{ case $subdir_dir in
53441	[\\/]* | ?:[\\/]* ) total_dir=;;
53442	*)                      total_dir=.;;
53443	esac
53444	temp=$subdir_dir
53445	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
53446	    case $dir_part in
53447	    # Skip DOS drivespec
53448	    ?:) total_dir=$dir_part ;;
53449	    *)  total_dir=$total_dir/$dir_part
53450		test -d "$total_dir" ||
53451		mkdir "$total_dir" ||
53452		as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5
53453		;;
53454	    esac
53455	done; }
53456
53457	if test -d ./$subdir_dir; then :;
53458	else
53459	    as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
53460	fi
53461	;;
53462    esac
53463
53464    #
53465    # Move into the target directory
53466    #
53467
53468    subdir_parent=`pwd`
53469    cd $subdir_dir
53470
53471    #
53472    # Make a "../" for each directory in $subdir_dir.
53473    #
53474
53475    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
53476    #
53477    # Construct the --srcdir argument
53478    #
53479
53480    case $srcdir in
53481    .)
53482	# In place
53483	subdir_srcdir="$srcdir"
53484	;;
53485    [\\/]* | ?:[\\/]* )
53486	# Absolute path
53487	subdir_srcdir="$srcdir/$subdir_dir"
53488	;;
53489    *)
53490	# Relative path
53491	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
53492	;;
53493    esac
53494
53495    #
53496    # Construct the --cache-file argument
53497    #
53498
53499    # BWB - subdir caching is a pain since we change CFLAGS and all that.
53500    # Just disable it for now
53501    subdir_cache_file="/dev/null"
53502
53503    #
53504    # Invoke the configure script in the subdirectory
53505    #
53506
53507    sub_configure="$SHELL '$subdir_srcdir/configure'"
53508    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
53509$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
53510    eval "$sub_configure $subdir_args \
53511	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
53512    if test "$?" = "0"; then
53513	eval $subdir_success
53514	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
53515$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
53516    else
53517	eval $subdir_failure
53518	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
53519$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
53520    fi
53521
53522    #
53523    # Go back to the topdir
53524    #
53525
53526    cd $subdir_parent
53527fi
53528
53529#
53530# Clean up
53531#
53532
53533
53534    # Unwind the index
53535    pmix_scope_index=`expr $pmix_scope_index - 1`
53536    pmix_scope_test=`expr $pmix_scope_index \> 0`
53537    if test "$pmix_scope_test" = "0"; then
53538        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
53539$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
53540        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
53541$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
53542        as_fn_error $? "Cannot continue" "$LINENO" 5
53543    fi
53544
53545    # Get the variable names from that index
53546    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
53547    eval $pmix_str
53548
53549    # Iterate over all the variables and unset them all
53550    for pmix_var in $pmix_str; do
53551        unset $pmix_var
53552    done
53553
53554                pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build"
53555            fi
53556
53557            if test "$should_build" = "1" ; then
53558                # do some extra work to pass flags back from the
53559                # top-level configure, the way a configure.m4
53560                # component would.
53561                infile="$srcdir/src/mca/preg/all_components/post_configure.sh"
53562                if test -f $infile; then
53563
53564                    # First check for the ABORT tag
53565                    line="`$GREP ABORT= $infile | cut -d= -f2-`"
53566                    if test -n "$line" && test "$line" != "no"; then
53567                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
53568$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
53569                        as_fn_error $? "cannot continue" "$LINENO" 5
53570                    fi
53571
53572                    line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
53573                            eval "line=$line"
53574                            if test -n "$line"; then
53575                                all_components_static_components_WRAPPER_EXTRA_LDFLAGS="$line"
53576                            fi
53577                        line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
53578                            eval "line=$line"
53579                            if test -n "$line"; then
53580                                all_components_static_components_WRAPPER_EXTRA_LIBS="$line"
53581                            fi
53582                                        fi
53583
53584
53585
53586
53587    # See if it dropped an output file for us to pick up some
53588    # shell variables in.
53589    infile="$srcdir/src/mca/preg/$component/post_configure.sh"
53590
53591    # Add this subdir to the mast list of all MCA component subdirs
53592    all_components="$all_components $component"
53593
53594    if test "$compile_mode" = "dso" ; then
53595        dso_components="$dso_components $component"
53596    else
53597        if test "preg" = "common"; then
53598            # Static libraries in "common" frameworks are installed, and
53599            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
53600            # set.
53601            static_ltlibs="mca/preg/$component/lib${PMIX_LIB_PREFIX}mca_preg_$component.la $static_ltlibs"
53602        else
53603            # Other frameworks do not have to obey the
53604            # $FRAMEWORK_LIB_PREFIX prefix.
53605            static_ltlibs="mca/preg/$component/libmca_preg_$component.la $static_ltlibs"
53606        fi
53607        echo "extern const pmix_mca_base_component_t mca_preg_$component_component;" >> $outfile.extern
53608        echo "  &mca_preg_$component_component, " >> $outfile.struct
53609        static_components="$static_components $component"
53610    fi
53611
53612    # Output pretty results
53613    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component preg:$component can compile" >&5
53614$as_echo_n "checking if MCA component preg:$component can compile... " >&6; }
53615    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
53616$as_echo "yes" >&6; }
53617
53618                        if test -f $infile; then
53619        # check for direct call header to include.  This will be
53620        # AC_SUBSTed later.
53621        if test "$DIRECT_preg" = "$component" ; then
53622            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
53623                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
53624                str="MCA_pmix_preg_DIRECT_CALL_HEADER=$line"
53625                eval $str
53626            else
53627as_fn_error $? "*** preg component $component was supposed to be direct-called, but
53628*** does not appear to support direct calling.
53629*** Aborting" "$LINENO" 5
53630            fi
53631        fi
53632    else
53633        # were we supposed to have found something in the
53634        # post_configure.sh, but the file didn't exist?
53635        if test "$DIRECT_preg" = "$component" ; then
53636as_fn_error $? "*** preg component $component was supposed to be direct-called, but
53637*** does not appear to support direct calling.
53638*** Aborting" "$LINENO" 5
53639        fi
53640    fi
53641
53642    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
53643    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
53644    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
53645    # component didn't have it's own configure script (in which case,
53646    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
53647    # have to do this if the component is building dynamically,
53648    # because it will link against these (without a dependency from
53649    # libmpi.so to these flags)
53650    if test "$compile_mode" = "static"; then
53651        str="line=\$preg_$component_WRAPPER_EXTRA_LDFLAGS"
53652                      eval "$str"
53653
53654
53655
53656    # Is the private index set?  If not, set it.
53657    if test "x$pmix_scope_index" = "x"; then
53658        pmix_scope_index=1
53659    fi
53660
53661    # First, check to see if any of these variables are already set.
53662    # This is a simple sanity check to ensure we're not already
53663    # overwriting pre-existing variables (that have a non-empty
53664    # value).  It's not a perfect check, but at least it's something.
53665    for pmix_var in pmix_tmp pmix_append; do
53666        pmix_str="pmix_str=\"\$$pmix_var\""
53667        eval $pmix_str
53668
53669        if test "x$pmix_str" != "x"; then
53670            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
53671$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
53672            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
53673$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
53674            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
53675$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
53676            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
53677$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
53678            as_fn_error $? "Cannot continue" "$LINENO" 5
53679        fi
53680    done
53681
53682    # Ok, we passed the simple sanity check.  Save all these names so
53683    # that we can unset them at the end of the scope.
53684    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
53685    eval $pmix_str
53686    unset pmix_str
53687
53688    env | grep pmix_scope
53689    pmix_scope_index=`expr $pmix_scope_index + 1`
53690
53691
53692    for arg in $line; do
53693        pmix_tmp=`echo $arg | cut -c1-2`
53694        pmix_append=1
53695        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
53696  for val in ${mca_wrapper_extra_ldflags}; do
53697                   if test "x$val" = "x$arg"; then :
53698  pmix_append=0
53699fi
53700               done
53701fi
53702        if test "$pmix_append" = "1"; then :
53703  if test -z "$mca_wrapper_extra_ldflags"; then :
53704  mca_wrapper_extra_ldflags=$arg
53705else
53706  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
53707fi
53708fi
53709    done
53710
53711
53712    # Unwind the index
53713    pmix_scope_index=`expr $pmix_scope_index - 1`
53714    pmix_scope_test=`expr $pmix_scope_index \> 0`
53715    if test "$pmix_scope_test" = "0"; then
53716        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
53717$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
53718        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
53719$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
53720        as_fn_error $? "Cannot continue" "$LINENO" 5
53721    fi
53722
53723    # Get the variable names from that index
53724    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
53725    eval $pmix_str
53726
53727    # Iterate over all the variables and unset them all
53728    for pmix_var in $pmix_str; do
53729        unset $pmix_var
53730    done
53731
53732str="line=\$preg_$component_WRAPPER_EXTRA_LIBS"
53733                      eval "$str"
53734
53735
53736
53737    # Is the private index set?  If not, set it.
53738    if test "x$pmix_scope_index" = "x"; then
53739        pmix_scope_index=1
53740    fi
53741
53742    # First, check to see if any of these variables are already set.
53743    # This is a simple sanity check to ensure we're not already
53744    # overwriting pre-existing variables (that have a non-empty
53745    # value).  It's not a perfect check, but at least it's something.
53746    for pmix_var in pmix_tmp pmix_append; do
53747        pmix_str="pmix_str=\"\$$pmix_var\""
53748        eval $pmix_str
53749
53750        if test "x$pmix_str" != "x"; then
53751            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
53752$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
53753            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
53754$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
53755            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
53756$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
53757            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
53758$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
53759            as_fn_error $? "Cannot continue" "$LINENO" 5
53760        fi
53761    done
53762
53763    # Ok, we passed the simple sanity check.  Save all these names so
53764    # that we can unset them at the end of the scope.
53765    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
53766    eval $pmix_str
53767    unset pmix_str
53768
53769    env | grep pmix_scope
53770    pmix_scope_index=`expr $pmix_scope_index + 1`
53771
53772
53773    for arg in $line; do
53774        pmix_tmp=`echo $arg | cut -c1-2`
53775        pmix_append=1
53776        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
53777  for val in ${mca_wrapper_extra_libs}; do
53778                   if test "x$val" = "x$arg"; then :
53779  pmix_append=0
53780fi
53781               done
53782fi
53783        if test "$pmix_append" = "1"; then :
53784  if test -z "$mca_wrapper_extra_libs"; then :
53785  mca_wrapper_extra_libs=$arg
53786else
53787  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
53788fi
53789fi
53790    done
53791
53792
53793    # Unwind the index
53794    pmix_scope_index=`expr $pmix_scope_index - 1`
53795    pmix_scope_test=`expr $pmix_scope_index \> 0`
53796    if test "$pmix_scope_test" = "0"; then
53797        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
53798$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
53799        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
53800$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
53801        as_fn_error $? "Cannot continue" "$LINENO" 5
53802    fi
53803
53804    # Get the variable names from that index
53805    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
53806    eval $pmix_str
53807
53808    # Iterate over all the variables and unset them all
53809    for pmix_var in $pmix_str; do
53810        unset $pmix_var
53811    done
53812
53813
53814    fi
53815
53816    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
53817    # component can never be used in a STOP_AT_FIRST framework, we
53818    # don't have to implement the else clause in the literal check...
53819
53820
53821            else
53822
53823    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component preg:$component can compile" >&5
53824$as_echo_n "checking if MCA component preg:$component can compile... " >&6; }
53825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
53826$as_echo "no" >&6; }
53827
53828    # If this component was requested as the default for this
53829    # type, then abort.
53830    if test "$with_preg" = "$component" ; then
53831        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
53832$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
53833        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
53834$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
53835        as_fn_error $? "Cannot continue" "$LINENO" 5
53836    fi
53837
53838    if test ! -z "$DIRECT_preg" ; then
53839        if test "$DIRECT_preg" = "$component" ; then
53840            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
53841$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
53842            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
53843$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
53844            as_fn_error $? "Cannot continue" "$LINENO" 5
53845        fi
53846    fi
53847
53848            fi
53849        fi
53850    done
53851
53852fi
53853
53854    MCA_pmix_preg_ALL_COMPONENTS="$all_components"
53855    MCA_pmix_preg_STATIC_COMPONENTS="$static_components"
53856    MCA_pmix_preg_DSO_COMPONENTS="$dso_components"
53857    MCA_pmix_preg_STATIC_LTLIBS="$static_ltlibs"
53858
53859
53860
53861
53862
53863
53864
53865    MCA_pmix_preg_ALL_SUBDIRS=
53866    for item in $all_components ; do
53867       MCA_pmix_preg_ALL_SUBDIRS="$MCA_pmix_preg_ALL_SUBDIRS mca/preg/$item"
53868    done
53869
53870
53871
53872    MCA_pmix_preg_STATIC_SUBDIRS=
53873    for item in $static_components ; do
53874       MCA_pmix_preg_STATIC_SUBDIRS="$MCA_pmix_preg_STATIC_SUBDIRS mca/preg/$item"
53875    done
53876
53877
53878
53879    MCA_pmix_preg_DSO_SUBDIRS=
53880    for item in $dso_components ; do
53881       MCA_pmix_preg_DSO_SUBDIRS="$MCA_pmix_preg_DSO_SUBDIRS mca/preg/$item"
53882    done
53883
53884
53885
53886    # Create the final .h file that will be included in the type's
53887    # top-level glue.  This lists all the static components.  We don't
53888    # need to do this for "common".
53889    if test "preg" != "common"; then
53890        cat > $outfile <<EOF
53891/*
53892 * \$HEADER\$
53893 */
53894#if defined(c_plusplus) || defined(__cplusplus)
53895extern "C" {
53896#endif
53897
53898`cat $outfile.extern`
53899
53900const pmix_mca_base_component_t *mca_preg_base_static_components[] = {
53901`cat $outfile.struct`
53902  NULL
53903};
53904
53905#if defined(c_plusplus) || defined(__cplusplus)
53906}
53907#endif
53908
53909EOF
53910        # Only replace the header file if a) it doesn't previously
53911        # exist, or b) the contents are different.  Do this to not
53912        # trigger recompilation of certain .c files just because the
53913        # timestamp changed on $outfile_real (similar to the way AC
53914        # handles AC_CONFIG_HEADER files).
53915        diff $outfile $outfile_real > /dev/null 2>&1
53916        if test "$?" != "0"; then
53917            mv $outfile $outfile_real
53918        else
53919            rm -f $outfile
53920        fi
53921    fi
53922    rm -f $outfile.struct $outfile.extern
53923
53924    unset all_components static_components dso_components outfile outfile_real
53925
53926                                 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS psec"
53927                                 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/psec"
53928                                 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_psec_ALL_SUBDIRS)"
53929                                 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_psec_DSO_SUBDIRS)"
53930                                 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_psec_STATIC_SUBDIRS)"
53931                                 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/psec/libmca_psec.la"
53932                          MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_psec_STATIC_LTLIBS)"
53933
53934    pmix_show_subsubtitle "Configuring MCA framework psec"
53935
53936
53937
53938
53939    # setup for framework
53940    all_components=
53941    static_components=
53942    dso_components=
53943    static_ltlibs=
53944
53945    # Ensure that the directory where the #include file is to live
53946    # exists.  Need to do this for VPATH builds, because the directory
53947    # may not exist yet.  For the "common" type, it's not really a
53948    # component, so it doesn't have a base.
53949    outdir=src/mca/psec/base
53950    as_dir=$outdir; as_fn_mkdir_p
53951
53952    # emit Makefile rule
53953    ac_config_files="$ac_config_files src/mca/psec/Makefile"
53954
53955
53956    # remove any previously generated #include files
53957    outfile_real=$outdir/static-components.h
53958    outfile=$outfile_real.new
53959    rm -f $outfile $outfile.struct $outfile.extern
53960    touch $outfile.struct $outfile.extern
53961
53962    # print some nice messages about what we're about to do...
53963    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework psec" >&5
53964$as_echo_n "checking for no configure components in framework psec... " >&6; }
53965    { $as_echo "$as_me:${as_lineno-$LINENO}: result: dummy_handshake, native, none" >&5
53966$as_echo "dummy_handshake, native, none" >&6; }
53967    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework psec" >&5
53968$as_echo_n "checking for m4 configure components in framework psec... " >&6; }
53969    { $as_echo "$as_me:${as_lineno-$LINENO}: result: munge" >&5
53970$as_echo "munge" >&6; }
53971
53972    # If there are components in the no configure list, but we're
53973    # doing one of the "special" selection logics, abort with a
53974    # reasonable message.
53975
53976
53977
53978    # run the configure logic for the no-config components
53979
53980    pmix_show_subsubsubtitle "MCA component psec:dummy_handshake (no configuration)"
53981
53982    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1"
53983
53984
53985
53986    component_path="$srcdir/src/mca/psec/dummy_handshake"
53987    want_component=0
53988
53989    # build if:
53990    # - the component type is direct and we are that component
53991    # - there is no pmix_ignore file
53992    # - there is an pmix_ignore, but there is an empty pmix_unignore
53993    # - there is an pmix_ignore, but username is in pmix_unignore
53994    if test -d $component_path ; then
53995        # decide if we want the component to be built or not.  This
53996        # is spread out because some of the logic is a little complex
53997        # and test's syntax isn't exactly the greatest.  We want to
53998        # build the component by default.
53999        want_component=1
54000        if test -f $component_path/.pmix_ignore ; then
54001            # If there is an pmix_ignore file, don't build
54002            # the component.  Note that this decision can be
54003            # overridden by the unignore logic below.
54004            want_component=0
54005        fi
54006        if test -f $component_path/.pmix_unignore ; then
54007            # if there is an empty pmix_unignore, that is
54008            # equivalent to having your userid in the unignore file.
54009            # If userid is in the file, unignore the ignore file.
54010            if test ! -s $component_path/.pmix_unignore ; then
54011                want_component=1
54012            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
54013                want_component=1
54014            fi
54015        fi
54016        # if this component type is direct and we are not it, we don't want
54017        # to be built.  Otherwise, we do want to be built.
54018        if test ! -z "$DIRECT_psec" ; then
54019            if test "$DIRECT_psec" = "dummy_handshake" ; then
54020                want_component=1
54021            else
54022                want_component=0
54023            fi
54024        fi
54025    fi
54026
54027    # if we were explicitly disabled, don't build :)
54028    if test "$DISABLE_psec" = "1"; then :
54029  want_component=0
54030fi
54031    if test "$DISABLE_psec_dummy_handshake" = "1"; then :
54032  want_component=0
54033fi
54034
54035    if test "$want_component" = "1"; then :
54036  should_build=1
54037else
54038  should_build=0
54039fi
54040
54041
54042    SHARED_FRAMEWORK="$DSO_psec"
54043    SHARED_COMPONENT="$DSO_psec_dummy_handshake"
54044
54045    STATIC_FRAMEWORK="$STATIC_psec"
54046    STATIC_COMPONENT="$STATIC_psec_dummy_handshake"
54047
54048    shared_mode_override=static
54049
54050    # Setup for either shared or static
54051    if test "$STATIC_FRAMEWORK" = "1" || \
54052       test "$STATIC_COMPONENT" = "1" || \
54053       test "$STATIC_all" = "1" ; then
54054        compile_mode="static"
54055    elif test "$shared_mode_override" = "dso" || \
54056         test "$SHARED_FRAMEWORK" = "1" || \
54057         test "$SHARED_COMPONENT" = "1" || \
54058         test "$DSO_all" = "1"; then
54059        compile_mode="dso"
54060    else
54061        compile_mode="static"
54062    fi
54063
54064    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psec:dummy_handshake compile mode" >&5
54065$as_echo_n "checking for MCA component psec:dummy_handshake compile mode... " >&6; }
54066    if test "$DIRECT_psec" = "dummy_handshake" ; then
54067        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
54068$as_echo "$compile_mode - direct" >&6; }
54069    else
54070        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
54071$as_echo "$compile_mode" >&6; }
54072    fi
54073
54074    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build"
54075
54076    if test "$should_build" = "1" ; then
54077
54078
54079
54080    # See if it dropped an output file for us to pick up some
54081    # shell variables in.
54082    infile="$srcdir/src/mca/psec/dummy_handshake/post_configure.sh"
54083
54084    # Add this subdir to the mast list of all MCA component subdirs
54085    all_components="$all_components dummy_handshake"
54086
54087    if test "$compile_mode" = "dso" ; then
54088        dso_components="$dso_components dummy_handshake"
54089    else
54090        if test "psec" = "common"; then
54091            # Static libraries in "common" frameworks are installed, and
54092            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
54093            # set.
54094            static_ltlibs="mca/psec/dummy_handshake/lib${PMIX_LIB_PREFIX}mca_psec_dummy_handshake.la $static_ltlibs"
54095        else
54096            # Other frameworks do not have to obey the
54097            # $FRAMEWORK_LIB_PREFIX prefix.
54098            static_ltlibs="mca/psec/dummy_handshake/libmca_psec_dummy_handshake.la $static_ltlibs"
54099        fi
54100        echo "extern const pmix_mca_base_component_t mca_psec_dummy_handshake_component;" >> $outfile.extern
54101        echo "  &mca_psec_dummy_handshake_component, " >> $outfile.struct
54102        static_components="$static_components dummy_handshake"
54103    fi
54104
54105    # Output pretty results
54106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:dummy_handshake can compile" >&5
54107$as_echo_n "checking if MCA component psec:dummy_handshake can compile... " >&6; }
54108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54109$as_echo "yes" >&6; }
54110
54111                        if test -f $infile; then
54112        # check for direct call header to include.  This will be
54113        # AC_SUBSTed later.
54114        if test "$DIRECT_psec" = "dummy_handshake" ; then
54115            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
54116                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
54117                str="MCA_pmix_psec_DIRECT_CALL_HEADER=$line"
54118                eval $str
54119            else
54120as_fn_error $? "*** psec component dummy_handshake was supposed to be direct-called, but
54121*** does not appear to support direct calling.
54122*** Aborting" "$LINENO" 5
54123            fi
54124        fi
54125    else
54126        # were we supposed to have found something in the
54127        # post_configure.sh, but the file didn't exist?
54128        if test "$DIRECT_psec" = "dummy_handshake" ; then
54129as_fn_error $? "*** psec component dummy_handshake was supposed to be direct-called, but
54130*** does not appear to support direct calling.
54131*** Aborting" "$LINENO" 5
54132        fi
54133    fi
54134
54135    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
54136    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
54137    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
54138    # component didn't have it's own configure script (in which case,
54139    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
54140    # have to do this if the component is building dynamically,
54141    # because it will link against these (without a dependency from
54142    # libmpi.so to these flags)
54143    if test "$compile_mode" = "static"; then
54144        if test "$psec_dummy_handshake_WRAPPER_EXTRA_LDFLAGS" = ""; then :
54145
54146
54147
54148    # Is the private index set?  If not, set it.
54149    if test "x$pmix_scope_index" = "x"; then
54150        pmix_scope_index=1
54151    fi
54152
54153    # First, check to see if any of these variables are already set.
54154    # This is a simple sanity check to ensure we're not already
54155    # overwriting pre-existing variables (that have a non-empty
54156    # value).  It's not a perfect check, but at least it's something.
54157    for pmix_var in pmix_tmp pmix_append; do
54158        pmix_str="pmix_str=\"\$$pmix_var\""
54159        eval $pmix_str
54160
54161        if test "x$pmix_str" != "x"; then
54162            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
54163$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
54164            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
54165$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
54166            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
54167$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
54168            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54169$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54170            as_fn_error $? "Cannot continue" "$LINENO" 5
54171        fi
54172    done
54173
54174    # Ok, we passed the simple sanity check.  Save all these names so
54175    # that we can unset them at the end of the scope.
54176    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
54177    eval $pmix_str
54178    unset pmix_str
54179
54180    env | grep pmix_scope
54181    pmix_scope_index=`expr $pmix_scope_index + 1`
54182
54183
54184    for arg in $psec_dummy_handshake_LDFLAGS; do
54185        pmix_tmp=`echo $arg | cut -c1-2`
54186        pmix_append=1
54187        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
54188  for val in ${mca_wrapper_extra_ldflags}; do
54189                   if test "x$val" = "x$arg"; then :
54190  pmix_append=0
54191fi
54192               done
54193fi
54194        if test "$pmix_append" = "1"; then :
54195  if test -z "$mca_wrapper_extra_ldflags"; then :
54196  mca_wrapper_extra_ldflags=$arg
54197else
54198  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
54199fi
54200fi
54201    done
54202
54203
54204    # Unwind the index
54205    pmix_scope_index=`expr $pmix_scope_index - 1`
54206    pmix_scope_test=`expr $pmix_scope_index \> 0`
54207    if test "$pmix_scope_test" = "0"; then
54208        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
54209$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
54210        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54211$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54212        as_fn_error $? "Cannot continue" "$LINENO" 5
54213    fi
54214
54215    # Get the variable names from that index
54216    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
54217    eval $pmix_str
54218
54219    # Iterate over all the variables and unset them all
54220    for pmix_var in $pmix_str; do
54221        unset $pmix_var
54222    done
54223
54224
54225else
54226
54227
54228
54229    # Is the private index set?  If not, set it.
54230    if test "x$pmix_scope_index" = "x"; then
54231        pmix_scope_index=1
54232    fi
54233
54234    # First, check to see if any of these variables are already set.
54235    # This is a simple sanity check to ensure we're not already
54236    # overwriting pre-existing variables (that have a non-empty
54237    # value).  It's not a perfect check, but at least it's something.
54238    for pmix_var in pmix_tmp pmix_append; do
54239        pmix_str="pmix_str=\"\$$pmix_var\""
54240        eval $pmix_str
54241
54242        if test "x$pmix_str" != "x"; then
54243            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
54244$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
54245            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
54246$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
54247            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
54248$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
54249            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54250$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54251            as_fn_error $? "Cannot continue" "$LINENO" 5
54252        fi
54253    done
54254
54255    # Ok, we passed the simple sanity check.  Save all these names so
54256    # that we can unset them at the end of the scope.
54257    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
54258    eval $pmix_str
54259    unset pmix_str
54260
54261    env | grep pmix_scope
54262    pmix_scope_index=`expr $pmix_scope_index + 1`
54263
54264
54265    for arg in $psec_dummy_handshake_WRAPPER_EXTRA_LDFLAGS; do
54266        pmix_tmp=`echo $arg | cut -c1-2`
54267        pmix_append=1
54268        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
54269  for val in ${mca_wrapper_extra_ldflags}; do
54270                   if test "x$val" = "x$arg"; then :
54271  pmix_append=0
54272fi
54273               done
54274fi
54275        if test "$pmix_append" = "1"; then :
54276  if test -z "$mca_wrapper_extra_ldflags"; then :
54277  mca_wrapper_extra_ldflags=$arg
54278else
54279  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
54280fi
54281fi
54282    done
54283
54284
54285    # Unwind the index
54286    pmix_scope_index=`expr $pmix_scope_index - 1`
54287    pmix_scope_test=`expr $pmix_scope_index \> 0`
54288    if test "$pmix_scope_test" = "0"; then
54289        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
54290$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
54291        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54292$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54293        as_fn_error $? "Cannot continue" "$LINENO" 5
54294    fi
54295
54296    # Get the variable names from that index
54297    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
54298    eval $pmix_str
54299
54300    # Iterate over all the variables and unset them all
54301    for pmix_var in $pmix_str; do
54302        unset $pmix_var
54303    done
54304
54305
54306fi
54307                        if test "$psec_dummy_handshake_WRAPPER_EXTRA_LIBS" = ""; then :
54308
54309
54310
54311    # Is the private index set?  If not, set it.
54312    if test "x$pmix_scope_index" = "x"; then
54313        pmix_scope_index=1
54314    fi
54315
54316    # First, check to see if any of these variables are already set.
54317    # This is a simple sanity check to ensure we're not already
54318    # overwriting pre-existing variables (that have a non-empty
54319    # value).  It's not a perfect check, but at least it's something.
54320    for pmix_var in pmix_tmp pmix_append; do
54321        pmix_str="pmix_str=\"\$$pmix_var\""
54322        eval $pmix_str
54323
54324        if test "x$pmix_str" != "x"; then
54325            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
54326$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
54327            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
54328$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
54329            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
54330$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
54331            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54332$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54333            as_fn_error $? "Cannot continue" "$LINENO" 5
54334        fi
54335    done
54336
54337    # Ok, we passed the simple sanity check.  Save all these names so
54338    # that we can unset them at the end of the scope.
54339    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
54340    eval $pmix_str
54341    unset pmix_str
54342
54343    env | grep pmix_scope
54344    pmix_scope_index=`expr $pmix_scope_index + 1`
54345
54346
54347    for arg in $psec_dummy_handshake_LIBS; do
54348        pmix_tmp=`echo $arg | cut -c1-2`
54349        pmix_append=1
54350        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
54351  for val in ${mca_wrapper_extra_libs}; do
54352                   if test "x$val" = "x$arg"; then :
54353  pmix_append=0
54354fi
54355               done
54356fi
54357        if test "$pmix_append" = "1"; then :
54358  if test -z "$mca_wrapper_extra_libs"; then :
54359  mca_wrapper_extra_libs=$arg
54360else
54361  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
54362fi
54363fi
54364    done
54365
54366
54367    # Unwind the index
54368    pmix_scope_index=`expr $pmix_scope_index - 1`
54369    pmix_scope_test=`expr $pmix_scope_index \> 0`
54370    if test "$pmix_scope_test" = "0"; then
54371        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
54372$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
54373        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54374$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54375        as_fn_error $? "Cannot continue" "$LINENO" 5
54376    fi
54377
54378    # Get the variable names from that index
54379    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
54380    eval $pmix_str
54381
54382    # Iterate over all the variables and unset them all
54383    for pmix_var in $pmix_str; do
54384        unset $pmix_var
54385    done
54386
54387
54388else
54389
54390
54391
54392    # Is the private index set?  If not, set it.
54393    if test "x$pmix_scope_index" = "x"; then
54394        pmix_scope_index=1
54395    fi
54396
54397    # First, check to see if any of these variables are already set.
54398    # This is a simple sanity check to ensure we're not already
54399    # overwriting pre-existing variables (that have a non-empty
54400    # value).  It's not a perfect check, but at least it's something.
54401    for pmix_var in pmix_tmp pmix_append; do
54402        pmix_str="pmix_str=\"\$$pmix_var\""
54403        eval $pmix_str
54404
54405        if test "x$pmix_str" != "x"; then
54406            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
54407$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
54408            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
54409$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
54410            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
54411$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
54412            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54413$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54414            as_fn_error $? "Cannot continue" "$LINENO" 5
54415        fi
54416    done
54417
54418    # Ok, we passed the simple sanity check.  Save all these names so
54419    # that we can unset them at the end of the scope.
54420    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
54421    eval $pmix_str
54422    unset pmix_str
54423
54424    env | grep pmix_scope
54425    pmix_scope_index=`expr $pmix_scope_index + 1`
54426
54427
54428    for arg in $psec_dummy_handshake_WRAPPER_EXTRA_LIBS; do
54429        pmix_tmp=`echo $arg | cut -c1-2`
54430        pmix_append=1
54431        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
54432  for val in ${mca_wrapper_extra_libs}; do
54433                   if test "x$val" = "x$arg"; then :
54434  pmix_append=0
54435fi
54436               done
54437fi
54438        if test "$pmix_append" = "1"; then :
54439  if test -z "$mca_wrapper_extra_libs"; then :
54440  mca_wrapper_extra_libs=$arg
54441else
54442  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
54443fi
54444fi
54445    done
54446
54447
54448    # Unwind the index
54449    pmix_scope_index=`expr $pmix_scope_index - 1`
54450    pmix_scope_test=`expr $pmix_scope_index \> 0`
54451    if test "$pmix_scope_test" = "0"; then
54452        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
54453$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
54454        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54455$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54456        as_fn_error $? "Cannot continue" "$LINENO" 5
54457    fi
54458
54459    # Get the variable names from that index
54460    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
54461    eval $pmix_str
54462
54463    # Iterate over all the variables and unset them all
54464    for pmix_var in $pmix_str; do
54465        unset $pmix_var
54466    done
54467
54468
54469fi
54470
54471    fi
54472
54473    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
54474    # component can never be used in a STOP_AT_FIRST framework, we
54475    # don't have to implement the else clause in the literal check...
54476    if test "$psec_dummy_handshake_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
54477  stop_at_first=0
54478            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
54479  if test "$with_devel_headers" = "yes"; then :
54480
54481
54482
54483    # Is the private index set?  If not, set it.
54484    if test "x$pmix_scope_index" = "x"; then
54485        pmix_scope_index=1
54486    fi
54487
54488    # First, check to see if any of these variables are already set.
54489    # This is a simple sanity check to ensure we're not already
54490    # overwriting pre-existing variables (that have a non-empty
54491    # value).  It's not a perfect check, but at least it's something.
54492    for pmix_var in pmix_tmp pmix_append; do
54493        pmix_str="pmix_str=\"\$$pmix_var\""
54494        eval $pmix_str
54495
54496        if test "x$pmix_str" != "x"; then
54497            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
54498$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
54499            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
54500$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
54501            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
54502$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
54503            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54504$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54505            as_fn_error $? "Cannot continue" "$LINENO" 5
54506        fi
54507    done
54508
54509    # Ok, we passed the simple sanity check.  Save all these names so
54510    # that we can unset them at the end of the scope.
54511    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
54512    eval $pmix_str
54513    unset pmix_str
54514
54515    env | grep pmix_scope
54516    pmix_scope_index=`expr $pmix_scope_index + 1`
54517
54518
54519    for arg in $psec_dummy_handshake_WRAPPER_EXTRA_CPPFLAGS; do
54520        pmix_tmp=`echo $arg | cut -c1-2`
54521        pmix_append=1
54522        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
54523  for val in ${mca_wrapper_extra_cppflags}; do
54524                   if test "x$val" = "x$arg"; then :
54525  pmix_append=0
54526fi
54527               done
54528fi
54529        if test "$pmix_append" = "1"; then :
54530  if test -z "$mca_wrapper_extra_cppflags"; then :
54531  mca_wrapper_extra_cppflags=$arg
54532else
54533  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
54534fi
54535fi
54536    done
54537
54538
54539    # Unwind the index
54540    pmix_scope_index=`expr $pmix_scope_index - 1`
54541    pmix_scope_test=`expr $pmix_scope_index \> 0`
54542    if test "$pmix_scope_test" = "0"; then
54543        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
54544$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
54545        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54546$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54547        as_fn_error $? "Cannot continue" "$LINENO" 5
54548    fi
54549
54550    # Get the variable names from that index
54551    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
54552    eval $pmix_str
54553
54554    # Iterate over all the variables and unset them all
54555    for pmix_var in $pmix_str; do
54556        unset $pmix_var
54557    done
54558
54559
54560fi
54561else
54562  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring psec_dummy_handshake_WRAPPER_EXTRA_CPPFLAGS ($psec_dummy_handshake_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
54563$as_echo "$as_me: WARNING: ignoring psec_dummy_handshake_WRAPPER_EXTRA_CPPFLAGS ($psec_dummy_handshake_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
54564fi
54565fi
54566
54567    else
54568
54569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:dummy_handshake can compile" >&5
54570$as_echo_n "checking if MCA component psec:dummy_handshake can compile... " >&6; }
54571    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54572$as_echo "no" >&6; }
54573
54574    # If this component was requested as the default for this
54575    # type, then abort.
54576    if test "$with_psec" = "dummy_handshake" ; then
54577        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dummy_handshake\" failed to configure properly" >&5
54578$as_echo "$as_me: WARNING: MCA component \"dummy_handshake\" failed to configure properly" >&2;}
54579        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
54580$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
54581        as_fn_error $? "Cannot continue" "$LINENO" 5
54582    fi
54583
54584    if test ! -z "$DIRECT_psec" ; then
54585        if test "$DIRECT_psec" = "dummy_handshake" ; then
54586            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"dummy_handshake\" failed to configure properly" >&5
54587$as_echo "$as_me: WARNING: MCA component \"dummy_handshake\" failed to configure properly" >&2;}
54588            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
54589$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
54590            as_fn_error $? "Cannot continue" "$LINENO" 5
54591        fi
54592    fi
54593
54594        # add component to all component list
54595        all_components="$all_components dummy_handshake"
54596    fi
54597
54598    # set the AM_CONDITIONAL on how we should build
54599    if test "$compile_mode" = "dso" ; then
54600        BUILD_pmix_psec_dummy_handshake_DSO=1
54601    else
54602        BUILD_pmix_psec_dummy_handshake_DSO=0
54603    fi
54604     if test "$BUILD_pmix_psec_dummy_handshake_DSO" = "1"; then
54605  MCA_BUILD_pmix_psec_dummy_handshake_DSO_TRUE=
54606  MCA_BUILD_pmix_psec_dummy_handshake_DSO_FALSE='#'
54607else
54608  MCA_BUILD_pmix_psec_dummy_handshake_DSO_TRUE='#'
54609  MCA_BUILD_pmix_psec_dummy_handshake_DSO_FALSE=
54610fi
54611
54612
54613    ac_config_files="$ac_config_files src/mca/psec/dummy_handshake/Makefile"
54614
54615
54616    unset compile_mode
54617
54618    pmix_show_subsubsubtitle "MCA component psec:native (no configuration)"
54619
54620    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1"
54621
54622
54623
54624    component_path="$srcdir/src/mca/psec/native"
54625    want_component=0
54626
54627    # build if:
54628    # - the component type is direct and we are that component
54629    # - there is no pmix_ignore file
54630    # - there is an pmix_ignore, but there is an empty pmix_unignore
54631    # - there is an pmix_ignore, but username is in pmix_unignore
54632    if test -d $component_path ; then
54633        # decide if we want the component to be built or not.  This
54634        # is spread out because some of the logic is a little complex
54635        # and test's syntax isn't exactly the greatest.  We want to
54636        # build the component by default.
54637        want_component=1
54638        if test -f $component_path/.pmix_ignore ; then
54639            # If there is an pmix_ignore file, don't build
54640            # the component.  Note that this decision can be
54641            # overridden by the unignore logic below.
54642            want_component=0
54643        fi
54644        if test -f $component_path/.pmix_unignore ; then
54645            # if there is an empty pmix_unignore, that is
54646            # equivalent to having your userid in the unignore file.
54647            # If userid is in the file, unignore the ignore file.
54648            if test ! -s $component_path/.pmix_unignore ; then
54649                want_component=1
54650            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
54651                want_component=1
54652            fi
54653        fi
54654        # if this component type is direct and we are not it, we don't want
54655        # to be built.  Otherwise, we do want to be built.
54656        if test ! -z "$DIRECT_psec" ; then
54657            if test "$DIRECT_psec" = "native" ; then
54658                want_component=1
54659            else
54660                want_component=0
54661            fi
54662        fi
54663    fi
54664
54665    # if we were explicitly disabled, don't build :)
54666    if test "$DISABLE_psec" = "1"; then :
54667  want_component=0
54668fi
54669    if test "$DISABLE_psec_native" = "1"; then :
54670  want_component=0
54671fi
54672
54673    if test "$want_component" = "1"; then :
54674  should_build=1
54675else
54676  should_build=0
54677fi
54678
54679
54680    SHARED_FRAMEWORK="$DSO_psec"
54681    SHARED_COMPONENT="$DSO_psec_native"
54682
54683    STATIC_FRAMEWORK="$STATIC_psec"
54684    STATIC_COMPONENT="$STATIC_psec_native"
54685
54686    shared_mode_override=static
54687
54688    # Setup for either shared or static
54689    if test "$STATIC_FRAMEWORK" = "1" || \
54690       test "$STATIC_COMPONENT" = "1" || \
54691       test "$STATIC_all" = "1" ; then
54692        compile_mode="static"
54693    elif test "$shared_mode_override" = "dso" || \
54694         test "$SHARED_FRAMEWORK" = "1" || \
54695         test "$SHARED_COMPONENT" = "1" || \
54696         test "$DSO_all" = "1"; then
54697        compile_mode="dso"
54698    else
54699        compile_mode="static"
54700    fi
54701
54702    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psec:native compile mode" >&5
54703$as_echo_n "checking for MCA component psec:native compile mode... " >&6; }
54704    if test "$DIRECT_psec" = "native" ; then
54705        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
54706$as_echo "$compile_mode - direct" >&6; }
54707    else
54708        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
54709$as_echo "$compile_mode" >&6; }
54710    fi
54711
54712    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build"
54713
54714    if test "$should_build" = "1" ; then
54715
54716
54717
54718    # See if it dropped an output file for us to pick up some
54719    # shell variables in.
54720    infile="$srcdir/src/mca/psec/native/post_configure.sh"
54721
54722    # Add this subdir to the mast list of all MCA component subdirs
54723    all_components="$all_components native"
54724
54725    if test "$compile_mode" = "dso" ; then
54726        dso_components="$dso_components native"
54727    else
54728        if test "psec" = "common"; then
54729            # Static libraries in "common" frameworks are installed, and
54730            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
54731            # set.
54732            static_ltlibs="mca/psec/native/lib${PMIX_LIB_PREFIX}mca_psec_native.la $static_ltlibs"
54733        else
54734            # Other frameworks do not have to obey the
54735            # $FRAMEWORK_LIB_PREFIX prefix.
54736            static_ltlibs="mca/psec/native/libmca_psec_native.la $static_ltlibs"
54737        fi
54738        echo "extern const pmix_mca_base_component_t mca_psec_native_component;" >> $outfile.extern
54739        echo "  &mca_psec_native_component, " >> $outfile.struct
54740        static_components="$static_components native"
54741    fi
54742
54743    # Output pretty results
54744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:native can compile" >&5
54745$as_echo_n "checking if MCA component psec:native can compile... " >&6; }
54746    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
54747$as_echo "yes" >&6; }
54748
54749                        if test -f $infile; then
54750        # check for direct call header to include.  This will be
54751        # AC_SUBSTed later.
54752        if test "$DIRECT_psec" = "native" ; then
54753            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
54754                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
54755                str="MCA_pmix_psec_DIRECT_CALL_HEADER=$line"
54756                eval $str
54757            else
54758as_fn_error $? "*** psec component native was supposed to be direct-called, but
54759*** does not appear to support direct calling.
54760*** Aborting" "$LINENO" 5
54761            fi
54762        fi
54763    else
54764        # were we supposed to have found something in the
54765        # post_configure.sh, but the file didn't exist?
54766        if test "$DIRECT_psec" = "native" ; then
54767as_fn_error $? "*** psec component native was supposed to be direct-called, but
54768*** does not appear to support direct calling.
54769*** Aborting" "$LINENO" 5
54770        fi
54771    fi
54772
54773    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
54774    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
54775    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
54776    # component didn't have it's own configure script (in which case,
54777    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
54778    # have to do this if the component is building dynamically,
54779    # because it will link against these (without a dependency from
54780    # libmpi.so to these flags)
54781    if test "$compile_mode" = "static"; then
54782        if test "$psec_native_WRAPPER_EXTRA_LDFLAGS" = ""; then :
54783
54784
54785
54786    # Is the private index set?  If not, set it.
54787    if test "x$pmix_scope_index" = "x"; then
54788        pmix_scope_index=1
54789    fi
54790
54791    # First, check to see if any of these variables are already set.
54792    # This is a simple sanity check to ensure we're not already
54793    # overwriting pre-existing variables (that have a non-empty
54794    # value).  It's not a perfect check, but at least it's something.
54795    for pmix_var in pmix_tmp pmix_append; do
54796        pmix_str="pmix_str=\"\$$pmix_var\""
54797        eval $pmix_str
54798
54799        if test "x$pmix_str" != "x"; then
54800            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
54801$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
54802            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
54803$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
54804            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
54805$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
54806            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54807$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54808            as_fn_error $? "Cannot continue" "$LINENO" 5
54809        fi
54810    done
54811
54812    # Ok, we passed the simple sanity check.  Save all these names so
54813    # that we can unset them at the end of the scope.
54814    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
54815    eval $pmix_str
54816    unset pmix_str
54817
54818    env | grep pmix_scope
54819    pmix_scope_index=`expr $pmix_scope_index + 1`
54820
54821
54822    for arg in $psec_native_LDFLAGS; do
54823        pmix_tmp=`echo $arg | cut -c1-2`
54824        pmix_append=1
54825        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
54826  for val in ${mca_wrapper_extra_ldflags}; do
54827                   if test "x$val" = "x$arg"; then :
54828  pmix_append=0
54829fi
54830               done
54831fi
54832        if test "$pmix_append" = "1"; then :
54833  if test -z "$mca_wrapper_extra_ldflags"; then :
54834  mca_wrapper_extra_ldflags=$arg
54835else
54836  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
54837fi
54838fi
54839    done
54840
54841
54842    # Unwind the index
54843    pmix_scope_index=`expr $pmix_scope_index - 1`
54844    pmix_scope_test=`expr $pmix_scope_index \> 0`
54845    if test "$pmix_scope_test" = "0"; then
54846        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
54847$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
54848        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54849$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54850        as_fn_error $? "Cannot continue" "$LINENO" 5
54851    fi
54852
54853    # Get the variable names from that index
54854    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
54855    eval $pmix_str
54856
54857    # Iterate over all the variables and unset them all
54858    for pmix_var in $pmix_str; do
54859        unset $pmix_var
54860    done
54861
54862
54863else
54864
54865
54866
54867    # Is the private index set?  If not, set it.
54868    if test "x$pmix_scope_index" = "x"; then
54869        pmix_scope_index=1
54870    fi
54871
54872    # First, check to see if any of these variables are already set.
54873    # This is a simple sanity check to ensure we're not already
54874    # overwriting pre-existing variables (that have a non-empty
54875    # value).  It's not a perfect check, but at least it's something.
54876    for pmix_var in pmix_tmp pmix_append; do
54877        pmix_str="pmix_str=\"\$$pmix_var\""
54878        eval $pmix_str
54879
54880        if test "x$pmix_str" != "x"; then
54881            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
54882$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
54883            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
54884$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
54885            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
54886$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
54887            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54888$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54889            as_fn_error $? "Cannot continue" "$LINENO" 5
54890        fi
54891    done
54892
54893    # Ok, we passed the simple sanity check.  Save all these names so
54894    # that we can unset them at the end of the scope.
54895    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
54896    eval $pmix_str
54897    unset pmix_str
54898
54899    env | grep pmix_scope
54900    pmix_scope_index=`expr $pmix_scope_index + 1`
54901
54902
54903    for arg in $psec_native_WRAPPER_EXTRA_LDFLAGS; do
54904        pmix_tmp=`echo $arg | cut -c1-2`
54905        pmix_append=1
54906        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
54907  for val in ${mca_wrapper_extra_ldflags}; do
54908                   if test "x$val" = "x$arg"; then :
54909  pmix_append=0
54910fi
54911               done
54912fi
54913        if test "$pmix_append" = "1"; then :
54914  if test -z "$mca_wrapper_extra_ldflags"; then :
54915  mca_wrapper_extra_ldflags=$arg
54916else
54917  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
54918fi
54919fi
54920    done
54921
54922
54923    # Unwind the index
54924    pmix_scope_index=`expr $pmix_scope_index - 1`
54925    pmix_scope_test=`expr $pmix_scope_index \> 0`
54926    if test "$pmix_scope_test" = "0"; then
54927        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
54928$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
54929        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54930$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54931        as_fn_error $? "Cannot continue" "$LINENO" 5
54932    fi
54933
54934    # Get the variable names from that index
54935    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
54936    eval $pmix_str
54937
54938    # Iterate over all the variables and unset them all
54939    for pmix_var in $pmix_str; do
54940        unset $pmix_var
54941    done
54942
54943
54944fi
54945                        if test "$psec_native_WRAPPER_EXTRA_LIBS" = ""; then :
54946
54947
54948
54949    # Is the private index set?  If not, set it.
54950    if test "x$pmix_scope_index" = "x"; then
54951        pmix_scope_index=1
54952    fi
54953
54954    # First, check to see if any of these variables are already set.
54955    # This is a simple sanity check to ensure we're not already
54956    # overwriting pre-existing variables (that have a non-empty
54957    # value).  It's not a perfect check, but at least it's something.
54958    for pmix_var in pmix_tmp pmix_append; do
54959        pmix_str="pmix_str=\"\$$pmix_var\""
54960        eval $pmix_str
54961
54962        if test "x$pmix_str" != "x"; then
54963            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
54964$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
54965            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
54966$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
54967            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
54968$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
54969            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
54970$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
54971            as_fn_error $? "Cannot continue" "$LINENO" 5
54972        fi
54973    done
54974
54975    # Ok, we passed the simple sanity check.  Save all these names so
54976    # that we can unset them at the end of the scope.
54977    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
54978    eval $pmix_str
54979    unset pmix_str
54980
54981    env | grep pmix_scope
54982    pmix_scope_index=`expr $pmix_scope_index + 1`
54983
54984
54985    for arg in $psec_native_LIBS; do
54986        pmix_tmp=`echo $arg | cut -c1-2`
54987        pmix_append=1
54988        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
54989  for val in ${mca_wrapper_extra_libs}; do
54990                   if test "x$val" = "x$arg"; then :
54991  pmix_append=0
54992fi
54993               done
54994fi
54995        if test "$pmix_append" = "1"; then :
54996  if test -z "$mca_wrapper_extra_libs"; then :
54997  mca_wrapper_extra_libs=$arg
54998else
54999  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
55000fi
55001fi
55002    done
55003
55004
55005    # Unwind the index
55006    pmix_scope_index=`expr $pmix_scope_index - 1`
55007    pmix_scope_test=`expr $pmix_scope_index \> 0`
55008    if test "$pmix_scope_test" = "0"; then
55009        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
55010$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
55011        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55012$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55013        as_fn_error $? "Cannot continue" "$LINENO" 5
55014    fi
55015
55016    # Get the variable names from that index
55017    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
55018    eval $pmix_str
55019
55020    # Iterate over all the variables and unset them all
55021    for pmix_var in $pmix_str; do
55022        unset $pmix_var
55023    done
55024
55025
55026else
55027
55028
55029
55030    # Is the private index set?  If not, set it.
55031    if test "x$pmix_scope_index" = "x"; then
55032        pmix_scope_index=1
55033    fi
55034
55035    # First, check to see if any of these variables are already set.
55036    # This is a simple sanity check to ensure we're not already
55037    # overwriting pre-existing variables (that have a non-empty
55038    # value).  It's not a perfect check, but at least it's something.
55039    for pmix_var in pmix_tmp pmix_append; do
55040        pmix_str="pmix_str=\"\$$pmix_var\""
55041        eval $pmix_str
55042
55043        if test "x$pmix_str" != "x"; then
55044            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
55045$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
55046            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
55047$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
55048            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
55049$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
55050            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55051$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55052            as_fn_error $? "Cannot continue" "$LINENO" 5
55053        fi
55054    done
55055
55056    # Ok, we passed the simple sanity check.  Save all these names so
55057    # that we can unset them at the end of the scope.
55058    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
55059    eval $pmix_str
55060    unset pmix_str
55061
55062    env | grep pmix_scope
55063    pmix_scope_index=`expr $pmix_scope_index + 1`
55064
55065
55066    for arg in $psec_native_WRAPPER_EXTRA_LIBS; do
55067        pmix_tmp=`echo $arg | cut -c1-2`
55068        pmix_append=1
55069        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
55070  for val in ${mca_wrapper_extra_libs}; do
55071                   if test "x$val" = "x$arg"; then :
55072  pmix_append=0
55073fi
55074               done
55075fi
55076        if test "$pmix_append" = "1"; then :
55077  if test -z "$mca_wrapper_extra_libs"; then :
55078  mca_wrapper_extra_libs=$arg
55079else
55080  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
55081fi
55082fi
55083    done
55084
55085
55086    # Unwind the index
55087    pmix_scope_index=`expr $pmix_scope_index - 1`
55088    pmix_scope_test=`expr $pmix_scope_index \> 0`
55089    if test "$pmix_scope_test" = "0"; then
55090        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
55091$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
55092        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55093$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55094        as_fn_error $? "Cannot continue" "$LINENO" 5
55095    fi
55096
55097    # Get the variable names from that index
55098    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
55099    eval $pmix_str
55100
55101    # Iterate over all the variables and unset them all
55102    for pmix_var in $pmix_str; do
55103        unset $pmix_var
55104    done
55105
55106
55107fi
55108
55109    fi
55110
55111    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
55112    # component can never be used in a STOP_AT_FIRST framework, we
55113    # don't have to implement the else clause in the literal check...
55114    if test "$psec_native_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
55115  stop_at_first=0
55116            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
55117  if test "$with_devel_headers" = "yes"; then :
55118
55119
55120
55121    # Is the private index set?  If not, set it.
55122    if test "x$pmix_scope_index" = "x"; then
55123        pmix_scope_index=1
55124    fi
55125
55126    # First, check to see if any of these variables are already set.
55127    # This is a simple sanity check to ensure we're not already
55128    # overwriting pre-existing variables (that have a non-empty
55129    # value).  It's not a perfect check, but at least it's something.
55130    for pmix_var in pmix_tmp pmix_append; do
55131        pmix_str="pmix_str=\"\$$pmix_var\""
55132        eval $pmix_str
55133
55134        if test "x$pmix_str" != "x"; then
55135            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
55136$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
55137            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
55138$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
55139            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
55140$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
55141            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55142$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55143            as_fn_error $? "Cannot continue" "$LINENO" 5
55144        fi
55145    done
55146
55147    # Ok, we passed the simple sanity check.  Save all these names so
55148    # that we can unset them at the end of the scope.
55149    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
55150    eval $pmix_str
55151    unset pmix_str
55152
55153    env | grep pmix_scope
55154    pmix_scope_index=`expr $pmix_scope_index + 1`
55155
55156
55157    for arg in $psec_native_WRAPPER_EXTRA_CPPFLAGS; do
55158        pmix_tmp=`echo $arg | cut -c1-2`
55159        pmix_append=1
55160        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
55161  for val in ${mca_wrapper_extra_cppflags}; do
55162                   if test "x$val" = "x$arg"; then :
55163  pmix_append=0
55164fi
55165               done
55166fi
55167        if test "$pmix_append" = "1"; then :
55168  if test -z "$mca_wrapper_extra_cppflags"; then :
55169  mca_wrapper_extra_cppflags=$arg
55170else
55171  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
55172fi
55173fi
55174    done
55175
55176
55177    # Unwind the index
55178    pmix_scope_index=`expr $pmix_scope_index - 1`
55179    pmix_scope_test=`expr $pmix_scope_index \> 0`
55180    if test "$pmix_scope_test" = "0"; then
55181        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
55182$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
55183        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55184$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55185        as_fn_error $? "Cannot continue" "$LINENO" 5
55186    fi
55187
55188    # Get the variable names from that index
55189    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
55190    eval $pmix_str
55191
55192    # Iterate over all the variables and unset them all
55193    for pmix_var in $pmix_str; do
55194        unset $pmix_var
55195    done
55196
55197
55198fi
55199else
55200  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring psec_native_WRAPPER_EXTRA_CPPFLAGS ($psec_native_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
55201$as_echo "$as_me: WARNING: ignoring psec_native_WRAPPER_EXTRA_CPPFLAGS ($psec_native_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
55202fi
55203fi
55204
55205    else
55206
55207    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:native can compile" >&5
55208$as_echo_n "checking if MCA component psec:native can compile... " >&6; }
55209    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55210$as_echo "no" >&6; }
55211
55212    # If this component was requested as the default for this
55213    # type, then abort.
55214    if test "$with_psec" = "native" ; then
55215        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"native\" failed to configure properly" >&5
55216$as_echo "$as_me: WARNING: MCA component \"native\" failed to configure properly" >&2;}
55217        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
55218$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
55219        as_fn_error $? "Cannot continue" "$LINENO" 5
55220    fi
55221
55222    if test ! -z "$DIRECT_psec" ; then
55223        if test "$DIRECT_psec" = "native" ; then
55224            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"native\" failed to configure properly" >&5
55225$as_echo "$as_me: WARNING: MCA component \"native\" failed to configure properly" >&2;}
55226            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
55227$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
55228            as_fn_error $? "Cannot continue" "$LINENO" 5
55229        fi
55230    fi
55231
55232        # add component to all component list
55233        all_components="$all_components native"
55234    fi
55235
55236    # set the AM_CONDITIONAL on how we should build
55237    if test "$compile_mode" = "dso" ; then
55238        BUILD_pmix_psec_native_DSO=1
55239    else
55240        BUILD_pmix_psec_native_DSO=0
55241    fi
55242     if test "$BUILD_pmix_psec_native_DSO" = "1"; then
55243  MCA_BUILD_pmix_psec_native_DSO_TRUE=
55244  MCA_BUILD_pmix_psec_native_DSO_FALSE='#'
55245else
55246  MCA_BUILD_pmix_psec_native_DSO_TRUE='#'
55247  MCA_BUILD_pmix_psec_native_DSO_FALSE=
55248fi
55249
55250
55251    ac_config_files="$ac_config_files src/mca/psec/native/Makefile"
55252
55253
55254    unset compile_mode
55255
55256    pmix_show_subsubsubtitle "MCA component psec:none (no configuration)"
55257
55258    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1"
55259
55260
55261
55262    component_path="$srcdir/src/mca/psec/none"
55263    want_component=0
55264
55265    # build if:
55266    # - the component type is direct and we are that component
55267    # - there is no pmix_ignore file
55268    # - there is an pmix_ignore, but there is an empty pmix_unignore
55269    # - there is an pmix_ignore, but username is in pmix_unignore
55270    if test -d $component_path ; then
55271        # decide if we want the component to be built or not.  This
55272        # is spread out because some of the logic is a little complex
55273        # and test's syntax isn't exactly the greatest.  We want to
55274        # build the component by default.
55275        want_component=1
55276        if test -f $component_path/.pmix_ignore ; then
55277            # If there is an pmix_ignore file, don't build
55278            # the component.  Note that this decision can be
55279            # overridden by the unignore logic below.
55280            want_component=0
55281        fi
55282        if test -f $component_path/.pmix_unignore ; then
55283            # if there is an empty pmix_unignore, that is
55284            # equivalent to having your userid in the unignore file.
55285            # If userid is in the file, unignore the ignore file.
55286            if test ! -s $component_path/.pmix_unignore ; then
55287                want_component=1
55288            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
55289                want_component=1
55290            fi
55291        fi
55292        # if this component type is direct and we are not it, we don't want
55293        # to be built.  Otherwise, we do want to be built.
55294        if test ! -z "$DIRECT_psec" ; then
55295            if test "$DIRECT_psec" = "none" ; then
55296                want_component=1
55297            else
55298                want_component=0
55299            fi
55300        fi
55301    fi
55302
55303    # if we were explicitly disabled, don't build :)
55304    if test "$DISABLE_psec" = "1"; then :
55305  want_component=0
55306fi
55307    if test "$DISABLE_psec_none" = "1"; then :
55308  want_component=0
55309fi
55310
55311    if test "$want_component" = "1"; then :
55312  should_build=1
55313else
55314  should_build=0
55315fi
55316
55317
55318    SHARED_FRAMEWORK="$DSO_psec"
55319    SHARED_COMPONENT="$DSO_psec_none"
55320
55321    STATIC_FRAMEWORK="$STATIC_psec"
55322    STATIC_COMPONENT="$STATIC_psec_none"
55323
55324    shared_mode_override=static
55325
55326    # Setup for either shared or static
55327    if test "$STATIC_FRAMEWORK" = "1" || \
55328       test "$STATIC_COMPONENT" = "1" || \
55329       test "$STATIC_all" = "1" ; then
55330        compile_mode="static"
55331    elif test "$shared_mode_override" = "dso" || \
55332         test "$SHARED_FRAMEWORK" = "1" || \
55333         test "$SHARED_COMPONENT" = "1" || \
55334         test "$DSO_all" = "1"; then
55335        compile_mode="dso"
55336    else
55337        compile_mode="static"
55338    fi
55339
55340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psec:none compile mode" >&5
55341$as_echo_n "checking for MCA component psec:none compile mode... " >&6; }
55342    if test "$DIRECT_psec" = "none" ; then
55343        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
55344$as_echo "$compile_mode - direct" >&6; }
55345    else
55346        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
55347$as_echo "$compile_mode" >&6; }
55348    fi
55349
55350    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build"
55351
55352    if test "$should_build" = "1" ; then
55353
55354
55355
55356    # See if it dropped an output file for us to pick up some
55357    # shell variables in.
55358    infile="$srcdir/src/mca/psec/none/post_configure.sh"
55359
55360    # Add this subdir to the mast list of all MCA component subdirs
55361    all_components="$all_components none"
55362
55363    if test "$compile_mode" = "dso" ; then
55364        dso_components="$dso_components none"
55365    else
55366        if test "psec" = "common"; then
55367            # Static libraries in "common" frameworks are installed, and
55368            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
55369            # set.
55370            static_ltlibs="mca/psec/none/lib${PMIX_LIB_PREFIX}mca_psec_none.la $static_ltlibs"
55371        else
55372            # Other frameworks do not have to obey the
55373            # $FRAMEWORK_LIB_PREFIX prefix.
55374            static_ltlibs="mca/psec/none/libmca_psec_none.la $static_ltlibs"
55375        fi
55376        echo "extern const pmix_mca_base_component_t mca_psec_none_component;" >> $outfile.extern
55377        echo "  &mca_psec_none_component, " >> $outfile.struct
55378        static_components="$static_components none"
55379    fi
55380
55381    # Output pretty results
55382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:none can compile" >&5
55383$as_echo_n "checking if MCA component psec:none can compile... " >&6; }
55384    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55385$as_echo "yes" >&6; }
55386
55387                        if test -f $infile; then
55388        # check for direct call header to include.  This will be
55389        # AC_SUBSTed later.
55390        if test "$DIRECT_psec" = "none" ; then
55391            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
55392                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
55393                str="MCA_pmix_psec_DIRECT_CALL_HEADER=$line"
55394                eval $str
55395            else
55396as_fn_error $? "*** psec component none was supposed to be direct-called, but
55397*** does not appear to support direct calling.
55398*** Aborting" "$LINENO" 5
55399            fi
55400        fi
55401    else
55402        # were we supposed to have found something in the
55403        # post_configure.sh, but the file didn't exist?
55404        if test "$DIRECT_psec" = "none" ; then
55405as_fn_error $? "*** psec component none was supposed to be direct-called, but
55406*** does not appear to support direct calling.
55407*** Aborting" "$LINENO" 5
55408        fi
55409    fi
55410
55411    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
55412    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
55413    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
55414    # component didn't have it's own configure script (in which case,
55415    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
55416    # have to do this if the component is building dynamically,
55417    # because it will link against these (without a dependency from
55418    # libmpi.so to these flags)
55419    if test "$compile_mode" = "static"; then
55420        if test "$psec_none_WRAPPER_EXTRA_LDFLAGS" = ""; then :
55421
55422
55423
55424    # Is the private index set?  If not, set it.
55425    if test "x$pmix_scope_index" = "x"; then
55426        pmix_scope_index=1
55427    fi
55428
55429    # First, check to see if any of these variables are already set.
55430    # This is a simple sanity check to ensure we're not already
55431    # overwriting pre-existing variables (that have a non-empty
55432    # value).  It's not a perfect check, but at least it's something.
55433    for pmix_var in pmix_tmp pmix_append; do
55434        pmix_str="pmix_str=\"\$$pmix_var\""
55435        eval $pmix_str
55436
55437        if test "x$pmix_str" != "x"; then
55438            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
55439$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
55440            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
55441$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
55442            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
55443$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
55444            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55445$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55446            as_fn_error $? "Cannot continue" "$LINENO" 5
55447        fi
55448    done
55449
55450    # Ok, we passed the simple sanity check.  Save all these names so
55451    # that we can unset them at the end of the scope.
55452    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
55453    eval $pmix_str
55454    unset pmix_str
55455
55456    env | grep pmix_scope
55457    pmix_scope_index=`expr $pmix_scope_index + 1`
55458
55459
55460    for arg in $psec_none_LDFLAGS; do
55461        pmix_tmp=`echo $arg | cut -c1-2`
55462        pmix_append=1
55463        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
55464  for val in ${mca_wrapper_extra_ldflags}; do
55465                   if test "x$val" = "x$arg"; then :
55466  pmix_append=0
55467fi
55468               done
55469fi
55470        if test "$pmix_append" = "1"; then :
55471  if test -z "$mca_wrapper_extra_ldflags"; then :
55472  mca_wrapper_extra_ldflags=$arg
55473else
55474  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
55475fi
55476fi
55477    done
55478
55479
55480    # Unwind the index
55481    pmix_scope_index=`expr $pmix_scope_index - 1`
55482    pmix_scope_test=`expr $pmix_scope_index \> 0`
55483    if test "$pmix_scope_test" = "0"; then
55484        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
55485$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
55486        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55487$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55488        as_fn_error $? "Cannot continue" "$LINENO" 5
55489    fi
55490
55491    # Get the variable names from that index
55492    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
55493    eval $pmix_str
55494
55495    # Iterate over all the variables and unset them all
55496    for pmix_var in $pmix_str; do
55497        unset $pmix_var
55498    done
55499
55500
55501else
55502
55503
55504
55505    # Is the private index set?  If not, set it.
55506    if test "x$pmix_scope_index" = "x"; then
55507        pmix_scope_index=1
55508    fi
55509
55510    # First, check to see if any of these variables are already set.
55511    # This is a simple sanity check to ensure we're not already
55512    # overwriting pre-existing variables (that have a non-empty
55513    # value).  It's not a perfect check, but at least it's something.
55514    for pmix_var in pmix_tmp pmix_append; do
55515        pmix_str="pmix_str=\"\$$pmix_var\""
55516        eval $pmix_str
55517
55518        if test "x$pmix_str" != "x"; then
55519            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
55520$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
55521            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
55522$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
55523            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
55524$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
55525            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55526$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55527            as_fn_error $? "Cannot continue" "$LINENO" 5
55528        fi
55529    done
55530
55531    # Ok, we passed the simple sanity check.  Save all these names so
55532    # that we can unset them at the end of the scope.
55533    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
55534    eval $pmix_str
55535    unset pmix_str
55536
55537    env | grep pmix_scope
55538    pmix_scope_index=`expr $pmix_scope_index + 1`
55539
55540
55541    for arg in $psec_none_WRAPPER_EXTRA_LDFLAGS; do
55542        pmix_tmp=`echo $arg | cut -c1-2`
55543        pmix_append=1
55544        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
55545  for val in ${mca_wrapper_extra_ldflags}; do
55546                   if test "x$val" = "x$arg"; then :
55547  pmix_append=0
55548fi
55549               done
55550fi
55551        if test "$pmix_append" = "1"; then :
55552  if test -z "$mca_wrapper_extra_ldflags"; then :
55553  mca_wrapper_extra_ldflags=$arg
55554else
55555  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
55556fi
55557fi
55558    done
55559
55560
55561    # Unwind the index
55562    pmix_scope_index=`expr $pmix_scope_index - 1`
55563    pmix_scope_test=`expr $pmix_scope_index \> 0`
55564    if test "$pmix_scope_test" = "0"; then
55565        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
55566$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
55567        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55568$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55569        as_fn_error $? "Cannot continue" "$LINENO" 5
55570    fi
55571
55572    # Get the variable names from that index
55573    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
55574    eval $pmix_str
55575
55576    # Iterate over all the variables and unset them all
55577    for pmix_var in $pmix_str; do
55578        unset $pmix_var
55579    done
55580
55581
55582fi
55583                        if test "$psec_none_WRAPPER_EXTRA_LIBS" = ""; then :
55584
55585
55586
55587    # Is the private index set?  If not, set it.
55588    if test "x$pmix_scope_index" = "x"; then
55589        pmix_scope_index=1
55590    fi
55591
55592    # First, check to see if any of these variables are already set.
55593    # This is a simple sanity check to ensure we're not already
55594    # overwriting pre-existing variables (that have a non-empty
55595    # value).  It's not a perfect check, but at least it's something.
55596    for pmix_var in pmix_tmp pmix_append; do
55597        pmix_str="pmix_str=\"\$$pmix_var\""
55598        eval $pmix_str
55599
55600        if test "x$pmix_str" != "x"; then
55601            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
55602$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
55603            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
55604$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
55605            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
55606$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
55607            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55608$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55609            as_fn_error $? "Cannot continue" "$LINENO" 5
55610        fi
55611    done
55612
55613    # Ok, we passed the simple sanity check.  Save all these names so
55614    # that we can unset them at the end of the scope.
55615    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
55616    eval $pmix_str
55617    unset pmix_str
55618
55619    env | grep pmix_scope
55620    pmix_scope_index=`expr $pmix_scope_index + 1`
55621
55622
55623    for arg in $psec_none_LIBS; do
55624        pmix_tmp=`echo $arg | cut -c1-2`
55625        pmix_append=1
55626        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
55627  for val in ${mca_wrapper_extra_libs}; do
55628                   if test "x$val" = "x$arg"; then :
55629  pmix_append=0
55630fi
55631               done
55632fi
55633        if test "$pmix_append" = "1"; then :
55634  if test -z "$mca_wrapper_extra_libs"; then :
55635  mca_wrapper_extra_libs=$arg
55636else
55637  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
55638fi
55639fi
55640    done
55641
55642
55643    # Unwind the index
55644    pmix_scope_index=`expr $pmix_scope_index - 1`
55645    pmix_scope_test=`expr $pmix_scope_index \> 0`
55646    if test "$pmix_scope_test" = "0"; then
55647        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
55648$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
55649        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55650$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55651        as_fn_error $? "Cannot continue" "$LINENO" 5
55652    fi
55653
55654    # Get the variable names from that index
55655    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
55656    eval $pmix_str
55657
55658    # Iterate over all the variables and unset them all
55659    for pmix_var in $pmix_str; do
55660        unset $pmix_var
55661    done
55662
55663
55664else
55665
55666
55667
55668    # Is the private index set?  If not, set it.
55669    if test "x$pmix_scope_index" = "x"; then
55670        pmix_scope_index=1
55671    fi
55672
55673    # First, check to see if any of these variables are already set.
55674    # This is a simple sanity check to ensure we're not already
55675    # overwriting pre-existing variables (that have a non-empty
55676    # value).  It's not a perfect check, but at least it's something.
55677    for pmix_var in pmix_tmp pmix_append; do
55678        pmix_str="pmix_str=\"\$$pmix_var\""
55679        eval $pmix_str
55680
55681        if test "x$pmix_str" != "x"; then
55682            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
55683$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
55684            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
55685$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
55686            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
55687$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
55688            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55689$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55690            as_fn_error $? "Cannot continue" "$LINENO" 5
55691        fi
55692    done
55693
55694    # Ok, we passed the simple sanity check.  Save all these names so
55695    # that we can unset them at the end of the scope.
55696    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
55697    eval $pmix_str
55698    unset pmix_str
55699
55700    env | grep pmix_scope
55701    pmix_scope_index=`expr $pmix_scope_index + 1`
55702
55703
55704    for arg in $psec_none_WRAPPER_EXTRA_LIBS; do
55705        pmix_tmp=`echo $arg | cut -c1-2`
55706        pmix_append=1
55707        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
55708  for val in ${mca_wrapper_extra_libs}; do
55709                   if test "x$val" = "x$arg"; then :
55710  pmix_append=0
55711fi
55712               done
55713fi
55714        if test "$pmix_append" = "1"; then :
55715  if test -z "$mca_wrapper_extra_libs"; then :
55716  mca_wrapper_extra_libs=$arg
55717else
55718  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
55719fi
55720fi
55721    done
55722
55723
55724    # Unwind the index
55725    pmix_scope_index=`expr $pmix_scope_index - 1`
55726    pmix_scope_test=`expr $pmix_scope_index \> 0`
55727    if test "$pmix_scope_test" = "0"; then
55728        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
55729$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
55730        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55731$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55732        as_fn_error $? "Cannot continue" "$LINENO" 5
55733    fi
55734
55735    # Get the variable names from that index
55736    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
55737    eval $pmix_str
55738
55739    # Iterate over all the variables and unset them all
55740    for pmix_var in $pmix_str; do
55741        unset $pmix_var
55742    done
55743
55744
55745fi
55746
55747    fi
55748
55749    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
55750    # component can never be used in a STOP_AT_FIRST framework, we
55751    # don't have to implement the else clause in the literal check...
55752    if test "$psec_none_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
55753  stop_at_first=0
55754            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
55755  if test "$with_devel_headers" = "yes"; then :
55756
55757
55758
55759    # Is the private index set?  If not, set it.
55760    if test "x$pmix_scope_index" = "x"; then
55761        pmix_scope_index=1
55762    fi
55763
55764    # First, check to see if any of these variables are already set.
55765    # This is a simple sanity check to ensure we're not already
55766    # overwriting pre-existing variables (that have a non-empty
55767    # value).  It's not a perfect check, but at least it's something.
55768    for pmix_var in pmix_tmp pmix_append; do
55769        pmix_str="pmix_str=\"\$$pmix_var\""
55770        eval $pmix_str
55771
55772        if test "x$pmix_str" != "x"; then
55773            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
55774$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
55775            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
55776$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
55777            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
55778$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
55779            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55780$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55781            as_fn_error $? "Cannot continue" "$LINENO" 5
55782        fi
55783    done
55784
55785    # Ok, we passed the simple sanity check.  Save all these names so
55786    # that we can unset them at the end of the scope.
55787    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
55788    eval $pmix_str
55789    unset pmix_str
55790
55791    env | grep pmix_scope
55792    pmix_scope_index=`expr $pmix_scope_index + 1`
55793
55794
55795    for arg in $psec_none_WRAPPER_EXTRA_CPPFLAGS; do
55796        pmix_tmp=`echo $arg | cut -c1-2`
55797        pmix_append=1
55798        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
55799  for val in ${mca_wrapper_extra_cppflags}; do
55800                   if test "x$val" = "x$arg"; then :
55801  pmix_append=0
55802fi
55803               done
55804fi
55805        if test "$pmix_append" = "1"; then :
55806  if test -z "$mca_wrapper_extra_cppflags"; then :
55807  mca_wrapper_extra_cppflags=$arg
55808else
55809  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
55810fi
55811fi
55812    done
55813
55814
55815    # Unwind the index
55816    pmix_scope_index=`expr $pmix_scope_index - 1`
55817    pmix_scope_test=`expr $pmix_scope_index \> 0`
55818    if test "$pmix_scope_test" = "0"; then
55819        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
55820$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
55821        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
55822$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
55823        as_fn_error $? "Cannot continue" "$LINENO" 5
55824    fi
55825
55826    # Get the variable names from that index
55827    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
55828    eval $pmix_str
55829
55830    # Iterate over all the variables and unset them all
55831    for pmix_var in $pmix_str; do
55832        unset $pmix_var
55833    done
55834
55835
55836fi
55837else
55838  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring psec_none_WRAPPER_EXTRA_CPPFLAGS ($psec_none_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
55839$as_echo "$as_me: WARNING: ignoring psec_none_WRAPPER_EXTRA_CPPFLAGS ($psec_none_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
55840fi
55841fi
55842
55843    else
55844
55845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:none can compile" >&5
55846$as_echo_n "checking if MCA component psec:none can compile... " >&6; }
55847    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55848$as_echo "no" >&6; }
55849
55850    # If this component was requested as the default for this
55851    # type, then abort.
55852    if test "$with_psec" = "none" ; then
55853        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"none\" failed to configure properly" >&5
55854$as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;}
55855        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
55856$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
55857        as_fn_error $? "Cannot continue" "$LINENO" 5
55858    fi
55859
55860    if test ! -z "$DIRECT_psec" ; then
55861        if test "$DIRECT_psec" = "none" ; then
55862            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"none\" failed to configure properly" >&5
55863$as_echo "$as_me: WARNING: MCA component \"none\" failed to configure properly" >&2;}
55864            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
55865$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
55866            as_fn_error $? "Cannot continue" "$LINENO" 5
55867        fi
55868    fi
55869
55870        # add component to all component list
55871        all_components="$all_components none"
55872    fi
55873
55874    # set the AM_CONDITIONAL on how we should build
55875    if test "$compile_mode" = "dso" ; then
55876        BUILD_pmix_psec_none_DSO=1
55877    else
55878        BUILD_pmix_psec_none_DSO=0
55879    fi
55880     if test "$BUILD_pmix_psec_none_DSO" = "1"; then
55881  MCA_BUILD_pmix_psec_none_DSO_TRUE=
55882  MCA_BUILD_pmix_psec_none_DSO_FALSE='#'
55883else
55884  MCA_BUILD_pmix_psec_none_DSO_TRUE='#'
55885  MCA_BUILD_pmix_psec_none_DSO_FALSE=
55886fi
55887
55888
55889    ac_config_files="$ac_config_files src/mca/psec/none/Makefile"
55890
55891
55892    unset compile_mode
55893
55894
55895    # configure components that use built-in configuration scripts
55896
55897
55898
55899    best_mca_component_priority=0
55900    components_looking_for_succeed=1
55901    components_last_result=0
55902
55903
55904    pmix_show_subsubsubtitle "MCA component psec:munge (m4 configuration macro)"
55905
55906    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: before, should_build=$components_looking_for_succeed"
55907
55908
55909
55910    component_path="$srcdir/src/mca/psec/munge"
55911    want_component=0
55912
55913    # build if:
55914    # - the component type is direct and we are that component
55915    # - there is no pmix_ignore file
55916    # - there is an pmix_ignore, but there is an empty pmix_unignore
55917    # - there is an pmix_ignore, but username is in pmix_unignore
55918    if test -d $component_path ; then
55919        # decide if we want the component to be built or not.  This
55920        # is spread out because some of the logic is a little complex
55921        # and test's syntax isn't exactly the greatest.  We want to
55922        # build the component by default.
55923        want_component=1
55924        if test -f $component_path/.pmix_ignore ; then
55925            # If there is an pmix_ignore file, don't build
55926            # the component.  Note that this decision can be
55927            # overridden by the unignore logic below.
55928            want_component=0
55929        fi
55930        if test -f $component_path/.pmix_unignore ; then
55931            # if there is an empty pmix_unignore, that is
55932            # equivalent to having your userid in the unignore file.
55933            # If userid is in the file, unignore the ignore file.
55934            if test ! -s $component_path/.pmix_unignore ; then
55935                want_component=1
55936            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
55937                want_component=1
55938            fi
55939        fi
55940        # if this component type is direct and we are not it, we don't want
55941        # to be built.  Otherwise, we do want to be built.
55942        if test ! -z "$DIRECT_psec" ; then
55943            if test "$DIRECT_psec" = "munge" ; then
55944                want_component=1
55945            else
55946                want_component=0
55947            fi
55948        fi
55949    fi
55950
55951    # if we were explicitly disabled, don't build :)
55952    if test "$DISABLE_psec" = "1"; then :
55953  want_component=0
55954fi
55955    if test "$DISABLE_psec_munge" = "1"; then :
55956  want_component=0
55957fi
55958
55959    if test "$want_component" = "1"; then :
55960  should_build=$components_looking_for_succeed
55961else
55962  should_build=0
55963fi
55964
55965    # Allow the component to override the build mode if it really wants to.
55966    # It is, of course, free to end up calling MCA_COMPONENT_COMPILE_MODE
55967
55968    SHARED_FRAMEWORK="$DSO_psec"
55969    SHARED_COMPONENT="$DSO_psec_munge"
55970
55971    STATIC_FRAMEWORK="$STATIC_psec"
55972    STATIC_COMPONENT="$STATIC_psec_munge"
55973
55974    shared_mode_override=static
55975
55976    # Setup for either shared or static
55977    if test "$STATIC_FRAMEWORK" = "1" || \
55978       test "$STATIC_COMPONENT" = "1" || \
55979       test "$STATIC_all" = "1" ; then
55980        compile_mode="static"
55981    elif test "$shared_mode_override" = "dso" || \
55982         test "$SHARED_FRAMEWORK" = "1" || \
55983         test "$SHARED_COMPONENT" = "1" || \
55984         test "$DSO_all" = "1"; then
55985        compile_mode="dso"
55986    else
55987        compile_mode="static"
55988    fi
55989
55990    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psec:munge compile mode" >&5
55991$as_echo_n "checking for MCA component psec:munge compile mode... " >&6; }
55992    if test "$DIRECT_psec" = "munge" ; then
55993        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
55994$as_echo "$compile_mode - direct" >&6; }
55995    else
55996        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
55997$as_echo "$compile_mode" >&6; }
55998    fi
55999
56000
56001    # try to configure the component
56002
56003    ac_config_files="$ac_config_files src/mca/psec/munge/Makefile"
56004
56005
56006
56007
56008    # Is the private index set?  If not, set it.
56009    if test "x$pmix_scope_index" = "x"; then
56010        pmix_scope_index=1
56011    fi
56012
56013    # First, check to see if any of these variables are already set.
56014    # This is a simple sanity check to ensure we're not already
56015    # overwriting pre-existing variables (that have a non-empty
56016    # value).  It's not a perfect check, but at least it's something.
56017    for pmix_var in psec_munge_support psec_munge_dir psec_munge_libdir save_cpp save_ld; do
56018        pmix_str="pmix_str=\"\$$pmix_var\""
56019        eval $pmix_str
56020
56021        if test "x$pmix_str" != "x"; then
56022            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
56023$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
56024            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
56025$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
56026            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
56027$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
56028            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
56029$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
56030            as_fn_error $? "Cannot continue" "$LINENO" 5
56031        fi
56032    done
56033
56034    # Ok, we passed the simple sanity check.  Save all these names so
56035    # that we can unset them at the end of the scope.
56036    pmix_str="pmix_scope_$pmix_scope_index=\"psec_munge_support psec_munge_dir psec_munge_libdir save_cpp save_ld\""
56037    eval $pmix_str
56038    unset pmix_str
56039
56040    env | grep pmix_scope
56041    pmix_scope_index=`expr $pmix_scope_index + 1`
56042
56043
56044
56045# Check whether --with-munge was given.
56046if test "${with_munge+set}" = set; then :
56047  withval=$with_munge;
56048fi
56049
56050
56051
56052# Check whether --with-munge-libdir was given.
56053if test "${with_munge_libdir+set}" = set; then :
56054  withval=$with_munge_libdir;
56055fi
56056
56057
56058    psec_munge_support=0
56059    if test ! -z "$with_munge" && test "$with_munge" != "no"; then
56060        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for munge in" >&5
56061$as_echo_n "checking for munge in... " >&6; }
56062        if test -n "$with_munge" && test "$with_munge" != "yes"; then
56063            if test -d $with_munge/include/munge; then
56064                psec_munge_dir=$with_munge/include/munge
56065            else
56066                psec_munge_dir=$with_munge
56067            fi
56068            if test -d $with_munge/lib; then
56069                psec_munge_libdir=$with_munge/lib
56070            elif -d $with_munge/lib64; then
56071                psec_munge_libdir=$with_munge/lib64
56072            else
56073                { $as_echo "$as_me:${as_lineno-$LINENO}: result: Could not find $with_munge/lib or $with_munge/lib64" >&5
56074$as_echo "Could not find $with_munge/lib or $with_munge/lib64" >&6; }
56075                as_fn_error $? "Can not continue" "$LINENO" 5
56076            fi
56077            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $psec_munge_dir and $psec_munge_libdir" >&5
56078$as_echo "$psec_munge_dir and $psec_munge_libdir" >&6; }
56079        else
56080            { $as_echo "$as_me:${as_lineno-$LINENO}: result: (default search paths)" >&5
56081$as_echo "(default search paths)" >&6; }
56082            psec_munge_dir=
56083        fi
56084        if test -n "$with_munge_libdir" && test "$with_munge_libdir" != "yes"; then :
56085  psec_munge_libdir="$with_munge_libdir"
56086fi
56087
56088        save_cpp=$CPPFLAGS
56089        save_ld=$LDFLAGS
56090
56091
56092    pmix_check_package_psec_munge_save_CPPFLAGS="$CPPFLAGS"
56093    pmix_check_package_psec_munge_save_LDFLAGS="$LDFLAGS"
56094    pmix_check_package_psec_munge_save_LIBS="$LIBS"
56095
56096    pmix_check_package_psec_munge_orig_CPPFLAGS="$psec_munge_CPPFLAGS"
56097    pmix_check_package_psec_munge_orig_LDFLAGS="$psec_munge_LDFLAGS"
56098    pmix_check_package_psec_munge_orig_LIBS="$psec_munge_LIBS"
56099
56100
56101    # This is stolen from autoconf to peek under the covers to get the
56102    # cache variable for the library check.  one should not copy this
56103    # code into other places unless you want much pain and suffering
56104
56105
56106    # so this sucks, but there's no way to get through the progression
56107    # of header includes without killing off the cache variable and trying
56108    # again...
56109    unset ac_cv_header_munge_h
56110    pmix_check_package_header_happy="no"
56111
56112    # get rid of the trailing slash(es)
56113    hdir_prefix=$(echo $psec_munge_dir | sed -e 'sX/*$XXg')
56114
56115    if test "$hdir_prefix" = "" || \
56116           test "$hdir_prefix" = "/usr" || \
56117           test "$hdir_prefix" = "/usr/local"; then :
56118   # try as is...
56119            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header without includes" >&5
56120$as_echo "looking for header without includes" >&6; }
56121            for ac_header in munge.h
56122do :
56123  ac_fn_c_check_header_mongrel "$LINENO" "munge.h" "ac_cv_header_munge_h" "$ac_includes_default"
56124if test "x$ac_cv_header_munge_h" = xyes; then :
56125  cat >>confdefs.h <<_ACEOF
56126#define HAVE_MUNGE_H 1
56127_ACEOF
56128 pmix_check_package_header_happy="yes"
56129fi
56130
56131done
56132
56133            if test "$pmix_check_package_header_happy" = "no"; then :
56134  # no go on the as is - reset the cache and try again
56135                   unset ac_cv_header_munge_h
56136fi
56137fi
56138
56139    if test "$pmix_check_package_header_happy" = "no"; then :
56140  if test "$hdir_prefix" != ""; then :
56141  psec_munge_CPPFLAGS="$psec_munge_CPPFLAGS -I$hdir_prefix"
56142                  CPPFLAGS="$CPPFLAGS -I$hdir_prefix"
56143                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix" >&5
56144$as_echo "looking for header in $hdir_prefix" >&6; }
56145                  for ac_header in munge.h
56146do :
56147  ac_fn_c_check_header_mongrel "$LINENO" "munge.h" "ac_cv_header_munge_h" "$ac_includes_default"
56148if test "x$ac_cv_header_munge_h" = xyes; then :
56149  cat >>confdefs.h <<_ACEOF
56150#define HAVE_MUNGE_H 1
56151_ACEOF
56152 pmix_check_package_header_happy="yes"
56153fi
56154
56155done
56156
56157                  if test "$pmix_check_package_header_happy" = "no"; then :
56158  unset ac_cv_header_munge_h
56159                         psec_munge_CPPFLAGS="$psec_munge_CPPFLAGS -I$hdir_prefix/include"
56160                         CPPFLAGS="$CPPFLAGS -I$hdir_prefix/include"
56161                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for header in $hdir_prefix/include" >&5
56162$as_echo "looking for header in $hdir_prefix/include" >&6; }
56163                         for ac_header in munge.h
56164do :
56165  ac_fn_c_check_header_mongrel "$LINENO" "munge.h" "ac_cv_header_munge_h" "$ac_includes_default"
56166if test "x$ac_cv_header_munge_h" = xyes; then :
56167  cat >>confdefs.h <<_ACEOF
56168#define HAVE_MUNGE_H 1
56169_ACEOF
56170 pmix_check_package_header_happy="yes"
56171fi
56172
56173done
56174
56175fi
56176fi
56177fi
56178
56179    if test "$pmix_check_package_header_happy" = "yes"; then :
56180
56181    # This is stolen from autoconf to peek under the covers to get the
56182    # cache variable for the library check.  one should not copy this
56183    # code into other places unless you want much pain and suffering
56184
56185    # see comment above
56186    unset ac_cv_lib_munge_munge_encode
56187    pmix_check_package_lib_happy="no"
56188
56189    # get rid of the trailing slash(es)
56190    libdir_prefix=$(echo $psec_munge_libdir | sed -e 'sX/*$XXg')
56191
56192    if test "$libdir_prefix" != ""; then :
56193  # libdir was specified - search only there
56194           psec_munge_LDFLAGS="$psec_munge_LDFLAGS -L$libdir_prefix"
56195           LDFLAGS="$LDFLAGS -L$libdir_prefix"
56196           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing munge_encode" >&5
56197$as_echo_n "checking for library containing munge_encode... " >&6; }
56198if ${ac_cv_search_munge_encode+:} false; then :
56199  $as_echo_n "(cached) " >&6
56200else
56201  ac_func_search_save_LIBS=$LIBS
56202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56203/* end confdefs.h.  */
56204
56205/* Override any GCC internal prototype to avoid an error.
56206   Use char because int might match the return type of a GCC
56207   builtin and then its argument prototype would still apply.  */
56208#ifdef __cplusplus
56209extern "C"
56210#endif
56211char munge_encode ();
56212int
56213main ()
56214{
56215return munge_encode ();
56216  ;
56217  return 0;
56218}
56219_ACEOF
56220for ac_lib in '' munge; do
56221  if test -z "$ac_lib"; then
56222    ac_res="none required"
56223  else
56224    ac_res=-l$ac_lib
56225    LIBS="-l$ac_lib -lmunge $ac_func_search_save_LIBS"
56226  fi
56227  if ac_fn_c_try_link "$LINENO"; then :
56228  ac_cv_search_munge_encode=$ac_res
56229fi
56230rm -f core conftest.err conftest.$ac_objext \
56231    conftest$ac_exeext
56232  if ${ac_cv_search_munge_encode+:} false; then :
56233  break
56234fi
56235done
56236if ${ac_cv_search_munge_encode+:} false; then :
56237
56238else
56239  ac_cv_search_munge_encode=no
56240fi
56241rm conftest.$ac_ext
56242LIBS=$ac_func_search_save_LIBS
56243fi
56244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_munge_encode" >&5
56245$as_echo "$ac_cv_search_munge_encode" >&6; }
56246ac_res=$ac_cv_search_munge_encode
56247if test "$ac_res" != no; then :
56248  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
56249  pmix_check_package_lib_happy="yes"
56250else
56251  pmix_check_package_lib_happy="no"
56252fi
56253
56254           if test "$pmix_check_package_lib_happy" = "no"; then :
56255  LDFLAGS="$pmix_check_package_psec_munge_save_LDFLAGS"
56256                  psec_munge_LDFLAGS="$pmix_check_package_psec_munge_orig_LDFLAGS"
56257                  unset ac_cv_lib_munge_munge_encode
56258fi
56259else
56260   # libdir was not specified - go through search path
56261            # get rid of the trailing slash(es)
56262            libdir_prefix=$(echo $psec_munge_dir | sed -e 'sX/*$XXg')
56263
56264            # first try standard locations as otherwise our
56265            # searches with libdir_prefix locations might come
56266            # back positive and unnecessarily add an LDFLAG
56267            { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library without search path" >&5
56268$as_echo "looking for library without search path" >&6; }
56269            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing munge_encode" >&5
56270$as_echo_n "checking for library containing munge_encode... " >&6; }
56271if ${ac_cv_search_munge_encode+:} false; then :
56272  $as_echo_n "(cached) " >&6
56273else
56274  ac_func_search_save_LIBS=$LIBS
56275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56276/* end confdefs.h.  */
56277
56278/* Override any GCC internal prototype to avoid an error.
56279   Use char because int might match the return type of a GCC
56280   builtin and then its argument prototype would still apply.  */
56281#ifdef __cplusplus
56282extern "C"
56283#endif
56284char munge_encode ();
56285int
56286main ()
56287{
56288return munge_encode ();
56289  ;
56290  return 0;
56291}
56292_ACEOF
56293for ac_lib in '' munge; do
56294  if test -z "$ac_lib"; then
56295    ac_res="none required"
56296  else
56297    ac_res=-l$ac_lib
56298    LIBS="-l$ac_lib -lmunge $ac_func_search_save_LIBS"
56299  fi
56300  if ac_fn_c_try_link "$LINENO"; then :
56301  ac_cv_search_munge_encode=$ac_res
56302fi
56303rm -f core conftest.err conftest.$ac_objext \
56304    conftest$ac_exeext
56305  if ${ac_cv_search_munge_encode+:} false; then :
56306  break
56307fi
56308done
56309if ${ac_cv_search_munge_encode+:} false; then :
56310
56311else
56312  ac_cv_search_munge_encode=no
56313fi
56314rm conftest.$ac_ext
56315LIBS=$ac_func_search_save_LIBS
56316fi
56317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_munge_encode" >&5
56318$as_echo "$ac_cv_search_munge_encode" >&6; }
56319ac_res=$ac_cv_search_munge_encode
56320if test "$ac_res" != no; then :
56321  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
56322  pmix_check_package_lib_happy="yes"
56323else
56324  pmix_check_package_lib_happy="no"
56325fi
56326
56327            if test "$pmix_check_package_lib_happy" = "no"; then :
56328   # no go on the as is..  see what happens later...
56329                   LDFLAGS="$pmix_check_package_psec_munge_save_LDFLAGS"
56330                   psec_munge_LDFLAGS="$pmix_check_package_psec_munge_orig_LDFLAGS"
56331                   unset ac_cv_lib_munge_munge_encode
56332fi
56333
56334           if test "$pmix_check_package_lib_happy" = "no"; then :
56335  # if we didn't find it, check the libdir_prefix/lib64 directory
56336               if test "$libdir_prefix" != "" && \
56337                       test "$libdir_prefix" != "/usr" && \
56338                       test "$libdir_prefix" != "/usr/local"; then :
56339  psec_munge_LDFLAGS="$psec_munge_LDFLAGS -L$libdir_prefix/lib64"
56340                     LDFLAGS="$LDFLAGS -L$libdir_prefix/lib64"
56341                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib64" >&5
56342$as_echo "looking for library in $libdir_prefix/lib64" >&6; }
56343                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing munge_encode" >&5
56344$as_echo_n "checking for library containing munge_encode... " >&6; }
56345if ${ac_cv_search_munge_encode+:} false; then :
56346  $as_echo_n "(cached) " >&6
56347else
56348  ac_func_search_save_LIBS=$LIBS
56349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56350/* end confdefs.h.  */
56351
56352/* Override any GCC internal prototype to avoid an error.
56353   Use char because int might match the return type of a GCC
56354   builtin and then its argument prototype would still apply.  */
56355#ifdef __cplusplus
56356extern "C"
56357#endif
56358char munge_encode ();
56359int
56360main ()
56361{
56362return munge_encode ();
56363  ;
56364  return 0;
56365}
56366_ACEOF
56367for ac_lib in '' munge; do
56368  if test -z "$ac_lib"; then
56369    ac_res="none required"
56370  else
56371    ac_res=-l$ac_lib
56372    LIBS="-l$ac_lib -lmunge $ac_func_search_save_LIBS"
56373  fi
56374  if ac_fn_c_try_link "$LINENO"; then :
56375  ac_cv_search_munge_encode=$ac_res
56376fi
56377rm -f core conftest.err conftest.$ac_objext \
56378    conftest$ac_exeext
56379  if ${ac_cv_search_munge_encode+:} false; then :
56380  break
56381fi
56382done
56383if ${ac_cv_search_munge_encode+:} false; then :
56384
56385else
56386  ac_cv_search_munge_encode=no
56387fi
56388rm conftest.$ac_ext
56389LIBS=$ac_func_search_save_LIBS
56390fi
56391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_munge_encode" >&5
56392$as_echo "$ac_cv_search_munge_encode" >&6; }
56393ac_res=$ac_cv_search_munge_encode
56394if test "$ac_res" != no; then :
56395  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
56396  pmix_check_package_lib_happy="yes"
56397else
56398  pmix_check_package_lib_happy="no"
56399fi
56400
56401                     if test "$pmix_check_package_lib_happy" = "no"; then :
56402   # no go on the as is..  see what happens later...
56403                          LDFLAGS="$pmix_check_package_psec_munge_save_LDFLAGS"
56404                          psec_munge_LDFLAGS="$pmix_check_package_psec_munge_orig_LDFLAGS"
56405                          unset ac_cv_lib_munge_munge_encode
56406fi
56407fi
56408fi
56409
56410           if test "$pmix_check_package_lib_happy" = "no"; then :
56411  # if we still haven't found it, check the libdir_prefix/lib directory
56412               if test "$libdir_prefix" != "" && \
56413                       test "$libdir_prefix" != "/usr" && \
56414                       test "$libdir_prefix" != "/usr/local"; then :
56415  psec_munge_LDFLAGS="$psec_munge_LDFLAGS -L$libdir_prefix/lib"
56416                     LDFLAGS="$LDFLAGS -L$libdir_prefix/lib"
56417                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: looking for library in $libdir_prefix/lib" >&5
56418$as_echo "looking for library in $libdir_prefix/lib" >&6; }
56419                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing munge_encode" >&5
56420$as_echo_n "checking for library containing munge_encode... " >&6; }
56421if ${ac_cv_search_munge_encode+:} false; then :
56422  $as_echo_n "(cached) " >&6
56423else
56424  ac_func_search_save_LIBS=$LIBS
56425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56426/* end confdefs.h.  */
56427
56428/* Override any GCC internal prototype to avoid an error.
56429   Use char because int might match the return type of a GCC
56430   builtin and then its argument prototype would still apply.  */
56431#ifdef __cplusplus
56432extern "C"
56433#endif
56434char munge_encode ();
56435int
56436main ()
56437{
56438return munge_encode ();
56439  ;
56440  return 0;
56441}
56442_ACEOF
56443for ac_lib in '' munge; do
56444  if test -z "$ac_lib"; then
56445    ac_res="none required"
56446  else
56447    ac_res=-l$ac_lib
56448    LIBS="-l$ac_lib -lmunge $ac_func_search_save_LIBS"
56449  fi
56450  if ac_fn_c_try_link "$LINENO"; then :
56451  ac_cv_search_munge_encode=$ac_res
56452fi
56453rm -f core conftest.err conftest.$ac_objext \
56454    conftest$ac_exeext
56455  if ${ac_cv_search_munge_encode+:} false; then :
56456  break
56457fi
56458done
56459if ${ac_cv_search_munge_encode+:} false; then :
56460
56461else
56462  ac_cv_search_munge_encode=no
56463fi
56464rm conftest.$ac_ext
56465LIBS=$ac_func_search_save_LIBS
56466fi
56467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_munge_encode" >&5
56468$as_echo "$ac_cv_search_munge_encode" >&6; }
56469ac_res=$ac_cv_search_munge_encode
56470if test "$ac_res" != no; then :
56471  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
56472  pmix_check_package_lib_happy="yes"
56473else
56474  pmix_check_package_lib_happy="no"
56475fi
56476
56477                     if test "$pmix_check_package_lib_happy" = "no"; then :
56478   # no go on the as is..  see what happens later...
56479                          LDFLAGS="$pmix_check_package_psec_munge_save_LDFLAGS"
56480                          psec_munge_LDFLAGS="$pmix_check_package_psec_munge_orig_LDFLAGS"
56481                          unset ac_cv_lib_munge_munge_encode
56482fi
56483fi
56484fi
56485
56486fi
56487
56488
56489    if test "$pmix_check_package_lib_happy" = "yes"; then :
56490  psec_munge_LIBS="-lmunge -lmunge"
56491           pmix_check_package_happy="yes"
56492else
56493  pmix_check_package_happy="no"
56494fi
56495    if test "$pmix_check_package_lib_happy" = "yes"; then :
56496   # The result of AC SEARCH_LIBS is cached in $ac_cv_search_[function]
56497           if test "$ac_cv_search_munge_encode" != "no" &&
56498                  test "$ac_cv_search_munge_encode" != "none required"; then :
56499  psec_munge_LIBS="$ac_cv_search_munge_encode -lmunge"
56500else
56501  psec_munge_LIBS="-lmunge"
56502fi
56503           pmix_check_package_happy="yes"
56504else
56505  pmix_check_package_happy="no"
56506fi
56507
56508
56509else
56510  pmix_check_package_happy="no"
56511fi
56512
56513    unset pmix_check_package_header_happy
56514
56515
56516
56517    if test "$pmix_check_package_happy" = "yes"; then :
56518  psec_munge_support=1
56519else
56520  psec_munge_CPPFLAGS="$pmix_check_package_psec_munge_orig_CPPFLAGS"
56521           psec_munge_LDFLAGS="$pmix_check_package_psec_munge_orig_LDFLAGS"
56522           psec_munge_LIBS="$pmix_check_package_psec_munge_orig_LIBS"
56523           psec_munge_support=0
56524fi
56525
56526    CPPFLAGS="$pmix_check_package_psec_munge_save_CPPFLAGS"
56527    LDFLAGS="$pmix_check_package_psec_munge_save_LDFLAGS"
56528    LIBS="$pmix_check_package_psec_munge_save_LIBS"
56529
56530
56531        CPPFLAGS=$save_cpp
56532        LDFLAGS=$save_ld
56533    fi
56534
56535    if test -n "$with_munge" && test "$with_munge" != "no" && test "$psec_munge_support" != "1"; then
56536        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MUNGE SUPPORT REQUESTED AND NOT FOUND." >&5
56537$as_echo "$as_me: WARNING: MUNGE SUPPORT REQUESTED AND NOT FOUND." >&2;}
56538        as_fn_error $? "CANNOT CONTINUE" "$LINENO" 5
56539    fi
56540
56541    { $as_echo "$as_me:${as_lineno-$LINENO}: checking will munge support be built" >&5
56542$as_echo_n "checking will munge support be built... " >&6; }
56543    if test "$psec_munge_support" != "1"; then :
56544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
56545$as_echo "no" >&6; }
56546           should_build=0
56547else
56548  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56549$as_echo "yes" >&6; }
56550           should_build=$should_build
56551fi
56552
56553    # set build flags to use in makefile
56554
56555
56556
56557
56558
56559    # Unwind the index
56560    pmix_scope_index=`expr $pmix_scope_index - 1`
56561    pmix_scope_test=`expr $pmix_scope_index \> 0`
56562    if test "$pmix_scope_test" = "0"; then
56563        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
56564$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
56565        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
56566$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
56567        as_fn_error $? "Cannot continue" "$LINENO" 5
56568    fi
56569
56570    # Get the variable names from that index
56571    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
56572    eval $pmix_str
56573
56574    # Iterate over all the variables and unset them all
56575    for pmix_var in $pmix_str; do
56576        unset $pmix_var
56577    done
56578
56579
56580    pmix_show_verbose "PMIX_MCA_M4_CONFIG_COMPONENT: after, should_build=$should_build"
56581
56582    if test "$should_build" = "1"; then :
56583
56584
56585
56586    # See if it dropped an output file for us to pick up some
56587    # shell variables in.
56588    infile="$srcdir/src/mca/psec/munge/post_configure.sh"
56589
56590    # Add this subdir to the mast list of all MCA component subdirs
56591    all_components="$all_components munge"
56592
56593    if test "$compile_mode" = "dso" ; then
56594        dso_components="$dso_components munge"
56595    else
56596        if test "psec" = "common"; then
56597            # Static libraries in "common" frameworks are installed, and
56598            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
56599            # set.
56600            static_ltlibs="mca/psec/munge/lib${PMIX_LIB_PREFIX}mca_psec_munge.la $static_ltlibs"
56601        else
56602            # Other frameworks do not have to obey the
56603            # $FRAMEWORK_LIB_PREFIX prefix.
56604            static_ltlibs="mca/psec/munge/libmca_psec_munge.la $static_ltlibs"
56605        fi
56606        echo "extern const pmix_mca_base_component_t mca_psec_munge_component;" >> $outfile.extern
56607        echo "  &mca_psec_munge_component, " >> $outfile.struct
56608        static_components="$static_components munge"
56609    fi
56610
56611    # Output pretty results
56612    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:munge can compile" >&5
56613$as_echo_n "checking if MCA component psec:munge can compile... " >&6; }
56614    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
56615$as_echo "yes" >&6; }
56616
56617                        if test -f $infile; then
56618        # check for direct call header to include.  This will be
56619        # AC_SUBSTed later.
56620        if test "$DIRECT_psec" = "munge" ; then
56621            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
56622                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
56623                str="MCA_pmix_psec_DIRECT_CALL_HEADER=$line"
56624                eval $str
56625            else
56626as_fn_error $? "*** psec component munge was supposed to be direct-called, but
56627*** does not appear to support direct calling.
56628*** Aborting" "$LINENO" 5
56629            fi
56630        fi
56631    else
56632        # were we supposed to have found something in the
56633        # post_configure.sh, but the file didn't exist?
56634        if test "$DIRECT_psec" = "munge" ; then
56635as_fn_error $? "*** psec component munge was supposed to be direct-called, but
56636*** does not appear to support direct calling.
56637*** Aborting" "$LINENO" 5
56638        fi
56639    fi
56640
56641    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
56642    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
56643    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
56644    # component didn't have it's own configure script (in which case,
56645    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
56646    # have to do this if the component is building dynamically,
56647    # because it will link against these (without a dependency from
56648    # libmpi.so to these flags)
56649    if test "$compile_mode" = "static"; then
56650        if test "$psec_munge_WRAPPER_EXTRA_LDFLAGS" = ""; then :
56651
56652
56653
56654    # Is the private index set?  If not, set it.
56655    if test "x$pmix_scope_index" = "x"; then
56656        pmix_scope_index=1
56657    fi
56658
56659    # First, check to see if any of these variables are already set.
56660    # This is a simple sanity check to ensure we're not already
56661    # overwriting pre-existing variables (that have a non-empty
56662    # value).  It's not a perfect check, but at least it's something.
56663    for pmix_var in pmix_tmp pmix_append; do
56664        pmix_str="pmix_str=\"\$$pmix_var\""
56665        eval $pmix_str
56666
56667        if test "x$pmix_str" != "x"; then
56668            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
56669$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
56670            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
56671$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
56672            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
56673$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
56674            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
56675$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
56676            as_fn_error $? "Cannot continue" "$LINENO" 5
56677        fi
56678    done
56679
56680    # Ok, we passed the simple sanity check.  Save all these names so
56681    # that we can unset them at the end of the scope.
56682    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
56683    eval $pmix_str
56684    unset pmix_str
56685
56686    env | grep pmix_scope
56687    pmix_scope_index=`expr $pmix_scope_index + 1`
56688
56689
56690    for arg in $psec_munge_LDFLAGS; do
56691        pmix_tmp=`echo $arg | cut -c1-2`
56692        pmix_append=1
56693        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
56694  for val in ${mca_wrapper_extra_ldflags}; do
56695                   if test "x$val" = "x$arg"; then :
56696  pmix_append=0
56697fi
56698               done
56699fi
56700        if test "$pmix_append" = "1"; then :
56701  if test -z "$mca_wrapper_extra_ldflags"; then :
56702  mca_wrapper_extra_ldflags=$arg
56703else
56704  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
56705fi
56706fi
56707    done
56708
56709
56710    # Unwind the index
56711    pmix_scope_index=`expr $pmix_scope_index - 1`
56712    pmix_scope_test=`expr $pmix_scope_index \> 0`
56713    if test "$pmix_scope_test" = "0"; then
56714        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
56715$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
56716        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
56717$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
56718        as_fn_error $? "Cannot continue" "$LINENO" 5
56719    fi
56720
56721    # Get the variable names from that index
56722    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
56723    eval $pmix_str
56724
56725    # Iterate over all the variables and unset them all
56726    for pmix_var in $pmix_str; do
56727        unset $pmix_var
56728    done
56729
56730
56731else
56732
56733
56734
56735    # Is the private index set?  If not, set it.
56736    if test "x$pmix_scope_index" = "x"; then
56737        pmix_scope_index=1
56738    fi
56739
56740    # First, check to see if any of these variables are already set.
56741    # This is a simple sanity check to ensure we're not already
56742    # overwriting pre-existing variables (that have a non-empty
56743    # value).  It's not a perfect check, but at least it's something.
56744    for pmix_var in pmix_tmp pmix_append; do
56745        pmix_str="pmix_str=\"\$$pmix_var\""
56746        eval $pmix_str
56747
56748        if test "x$pmix_str" != "x"; then
56749            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
56750$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
56751            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
56752$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
56753            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
56754$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
56755            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
56756$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
56757            as_fn_error $? "Cannot continue" "$LINENO" 5
56758        fi
56759    done
56760
56761    # Ok, we passed the simple sanity check.  Save all these names so
56762    # that we can unset them at the end of the scope.
56763    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
56764    eval $pmix_str
56765    unset pmix_str
56766
56767    env | grep pmix_scope
56768    pmix_scope_index=`expr $pmix_scope_index + 1`
56769
56770
56771    for arg in $psec_munge_WRAPPER_EXTRA_LDFLAGS; do
56772        pmix_tmp=`echo $arg | cut -c1-2`
56773        pmix_append=1
56774        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
56775  for val in ${mca_wrapper_extra_ldflags}; do
56776                   if test "x$val" = "x$arg"; then :
56777  pmix_append=0
56778fi
56779               done
56780fi
56781        if test "$pmix_append" = "1"; then :
56782  if test -z "$mca_wrapper_extra_ldflags"; then :
56783  mca_wrapper_extra_ldflags=$arg
56784else
56785  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
56786fi
56787fi
56788    done
56789
56790
56791    # Unwind the index
56792    pmix_scope_index=`expr $pmix_scope_index - 1`
56793    pmix_scope_test=`expr $pmix_scope_index \> 0`
56794    if test "$pmix_scope_test" = "0"; then
56795        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
56796$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
56797        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
56798$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
56799        as_fn_error $? "Cannot continue" "$LINENO" 5
56800    fi
56801
56802    # Get the variable names from that index
56803    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
56804    eval $pmix_str
56805
56806    # Iterate over all the variables and unset them all
56807    for pmix_var in $pmix_str; do
56808        unset $pmix_var
56809    done
56810
56811
56812fi
56813                        if test "$psec_munge_WRAPPER_EXTRA_LIBS" = ""; then :
56814
56815
56816
56817    # Is the private index set?  If not, set it.
56818    if test "x$pmix_scope_index" = "x"; then
56819        pmix_scope_index=1
56820    fi
56821
56822    # First, check to see if any of these variables are already set.
56823    # This is a simple sanity check to ensure we're not already
56824    # overwriting pre-existing variables (that have a non-empty
56825    # value).  It's not a perfect check, but at least it's something.
56826    for pmix_var in pmix_tmp pmix_append; do
56827        pmix_str="pmix_str=\"\$$pmix_var\""
56828        eval $pmix_str
56829
56830        if test "x$pmix_str" != "x"; then
56831            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
56832$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
56833            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
56834$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
56835            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
56836$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
56837            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
56838$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
56839            as_fn_error $? "Cannot continue" "$LINENO" 5
56840        fi
56841    done
56842
56843    # Ok, we passed the simple sanity check.  Save all these names so
56844    # that we can unset them at the end of the scope.
56845    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
56846    eval $pmix_str
56847    unset pmix_str
56848
56849    env | grep pmix_scope
56850    pmix_scope_index=`expr $pmix_scope_index + 1`
56851
56852
56853    for arg in $psec_munge_LIBS; do
56854        pmix_tmp=`echo $arg | cut -c1-2`
56855        pmix_append=1
56856        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
56857  for val in ${mca_wrapper_extra_libs}; do
56858                   if test "x$val" = "x$arg"; then :
56859  pmix_append=0
56860fi
56861               done
56862fi
56863        if test "$pmix_append" = "1"; then :
56864  if test -z "$mca_wrapper_extra_libs"; then :
56865  mca_wrapper_extra_libs=$arg
56866else
56867  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
56868fi
56869fi
56870    done
56871
56872
56873    # Unwind the index
56874    pmix_scope_index=`expr $pmix_scope_index - 1`
56875    pmix_scope_test=`expr $pmix_scope_index \> 0`
56876    if test "$pmix_scope_test" = "0"; then
56877        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
56878$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
56879        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
56880$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
56881        as_fn_error $? "Cannot continue" "$LINENO" 5
56882    fi
56883
56884    # Get the variable names from that index
56885    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
56886    eval $pmix_str
56887
56888    # Iterate over all the variables and unset them all
56889    for pmix_var in $pmix_str; do
56890        unset $pmix_var
56891    done
56892
56893
56894else
56895
56896
56897
56898    # Is the private index set?  If not, set it.
56899    if test "x$pmix_scope_index" = "x"; then
56900        pmix_scope_index=1
56901    fi
56902
56903    # First, check to see if any of these variables are already set.
56904    # This is a simple sanity check to ensure we're not already
56905    # overwriting pre-existing variables (that have a non-empty
56906    # value).  It's not a perfect check, but at least it's something.
56907    for pmix_var in pmix_tmp pmix_append; do
56908        pmix_str="pmix_str=\"\$$pmix_var\""
56909        eval $pmix_str
56910
56911        if test "x$pmix_str" != "x"; then
56912            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
56913$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
56914            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
56915$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
56916            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
56917$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
56918            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
56919$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
56920            as_fn_error $? "Cannot continue" "$LINENO" 5
56921        fi
56922    done
56923
56924    # Ok, we passed the simple sanity check.  Save all these names so
56925    # that we can unset them at the end of the scope.
56926    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
56927    eval $pmix_str
56928    unset pmix_str
56929
56930    env | grep pmix_scope
56931    pmix_scope_index=`expr $pmix_scope_index + 1`
56932
56933
56934    for arg in $psec_munge_WRAPPER_EXTRA_LIBS; do
56935        pmix_tmp=`echo $arg | cut -c1-2`
56936        pmix_append=1
56937        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
56938  for val in ${mca_wrapper_extra_libs}; do
56939                   if test "x$val" = "x$arg"; then :
56940  pmix_append=0
56941fi
56942               done
56943fi
56944        if test "$pmix_append" = "1"; then :
56945  if test -z "$mca_wrapper_extra_libs"; then :
56946  mca_wrapper_extra_libs=$arg
56947else
56948  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
56949fi
56950fi
56951    done
56952
56953
56954    # Unwind the index
56955    pmix_scope_index=`expr $pmix_scope_index - 1`
56956    pmix_scope_test=`expr $pmix_scope_index \> 0`
56957    if test "$pmix_scope_test" = "0"; then
56958        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
56959$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
56960        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
56961$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
56962        as_fn_error $? "Cannot continue" "$LINENO" 5
56963    fi
56964
56965    # Get the variable names from that index
56966    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
56967    eval $pmix_str
56968
56969    # Iterate over all the variables and unset them all
56970    for pmix_var in $pmix_str; do
56971        unset $pmix_var
56972    done
56973
56974
56975fi
56976
56977    fi
56978
56979    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
56980    # component can never be used in a STOP_AT_FIRST framework, we
56981    # don't have to implement the else clause in the literal check...
56982    if test "$psec_munge_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
56983  stop_at_first=0
56984            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
56985  if test "$with_devel_headers" = "yes"; then :
56986
56987
56988
56989    # Is the private index set?  If not, set it.
56990    if test "x$pmix_scope_index" = "x"; then
56991        pmix_scope_index=1
56992    fi
56993
56994    # First, check to see if any of these variables are already set.
56995    # This is a simple sanity check to ensure we're not already
56996    # overwriting pre-existing variables (that have a non-empty
56997    # value).  It's not a perfect check, but at least it's something.
56998    for pmix_var in pmix_tmp pmix_append; do
56999        pmix_str="pmix_str=\"\$$pmix_var\""
57000        eval $pmix_str
57001
57002        if test "x$pmix_str" != "x"; then
57003            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
57004$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
57005            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
57006$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
57007            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
57008$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
57009            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
57010$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
57011            as_fn_error $? "Cannot continue" "$LINENO" 5
57012        fi
57013    done
57014
57015    # Ok, we passed the simple sanity check.  Save all these names so
57016    # that we can unset them at the end of the scope.
57017    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
57018    eval $pmix_str
57019    unset pmix_str
57020
57021    env | grep pmix_scope
57022    pmix_scope_index=`expr $pmix_scope_index + 1`
57023
57024
57025    for arg in $psec_munge_WRAPPER_EXTRA_CPPFLAGS; do
57026        pmix_tmp=`echo $arg | cut -c1-2`
57027        pmix_append=1
57028        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
57029  for val in ${mca_wrapper_extra_cppflags}; do
57030                   if test "x$val" = "x$arg"; then :
57031  pmix_append=0
57032fi
57033               done
57034fi
57035        if test "$pmix_append" = "1"; then :
57036  if test -z "$mca_wrapper_extra_cppflags"; then :
57037  mca_wrapper_extra_cppflags=$arg
57038else
57039  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
57040fi
57041fi
57042    done
57043
57044
57045    # Unwind the index
57046    pmix_scope_index=`expr $pmix_scope_index - 1`
57047    pmix_scope_test=`expr $pmix_scope_index \> 0`
57048    if test "$pmix_scope_test" = "0"; then
57049        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
57050$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
57051        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
57052$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
57053        as_fn_error $? "Cannot continue" "$LINENO" 5
57054    fi
57055
57056    # Get the variable names from that index
57057    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
57058    eval $pmix_str
57059
57060    # Iterate over all the variables and unset them all
57061    for pmix_var in $pmix_str; do
57062        unset $pmix_var
57063    done
57064
57065
57066fi
57067else
57068  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring psec_munge_WRAPPER_EXTRA_CPPFLAGS ($psec_munge_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
57069$as_echo "$as_me: WARNING: ignoring psec_munge_WRAPPER_EXTRA_CPPFLAGS ($psec_munge_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
57070fi
57071fi
57072
57073else
57074
57075    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:munge can compile" >&5
57076$as_echo_n "checking if MCA component psec:munge can compile... " >&6; }
57077    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57078$as_echo "no" >&6; }
57079
57080    # If this component was requested as the default for this
57081    # type, then abort.
57082    if test "$with_psec" = "munge" ; then
57083        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"munge\" failed to configure properly" >&5
57084$as_echo "$as_me: WARNING: MCA component \"munge\" failed to configure properly" >&2;}
57085        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
57086$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
57087        as_fn_error $? "Cannot continue" "$LINENO" 5
57088    fi
57089
57090    if test ! -z "$DIRECT_psec" ; then
57091        if test "$DIRECT_psec" = "munge" ; then
57092            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"munge\" failed to configure properly" >&5
57093$as_echo "$as_me: WARNING: MCA component \"munge\" failed to configure properly" >&2;}
57094            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
57095$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
57096            as_fn_error $? "Cannot continue" "$LINENO" 5
57097        fi
57098    fi
57099
57100           # add component to all component list
57101           all_components="$all_components munge"
57102fi
57103
57104
57105
57106    # set the AM_CONDITIONAL on how we should build
57107    if test "$compile_mode" = "dso"; then :
57108  BUILD_pmix_psec_munge_DSO=1
57109else
57110  BUILD_pmix_psec_munge_DSO=0
57111fi
57112     if test "$BUILD_pmix_psec_munge_DSO" = "1"; then
57113  MCA_BUILD_pmix_psec_munge_DSO_TRUE=
57114  MCA_BUILD_pmix_psec_munge_DSO_FALSE='#'
57115else
57116  MCA_BUILD_pmix_psec_munge_DSO_TRUE='#'
57117  MCA_BUILD_pmix_psec_munge_DSO_FALSE=
57118fi
57119
57120
57121    if test "$should_build" = "1"; then :
57122  components_last_result=1
57123else
57124  components_last_result=0
57125fi
57126
57127    unset compile_mode
57128
57129
57130
57131
57132
57133    # configure components that provide their own configure script.
57134    # It would be really hard to run these for "find first that
57135    # works", so we don't :)
57136
57137
57138
57139                  if test "1" != "0"; then :
57140
57141    for component_path in $srcdir/src/mca/psec/* ; do
57142        component="`basename $component_path`"
57143        if test -d $component_path && test -x $component_path/configure ; then
57144            pmix_show_subsubsubtitle "MCA component psec:$component (need to configure)"
57145
57146            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build="
57147
57148
57149
57150    component_path="$srcdir/src/mca/psec/$component"
57151    want_component=0
57152
57153    # build if:
57154    # - the component type is direct and we are that component
57155    # - there is no pmix_ignore file
57156    # - there is an pmix_ignore, but there is an empty pmix_unignore
57157    # - there is an pmix_ignore, but username is in pmix_unignore
57158    if test -d $component_path ; then
57159        # decide if we want the component to be built or not.  This
57160        # is spread out because some of the logic is a little complex
57161        # and test's syntax isn't exactly the greatest.  We want to
57162        # build the component by default.
57163        want_component=1
57164        if test -f $component_path/.pmix_ignore ; then
57165            # If there is an pmix_ignore file, don't build
57166            # the component.  Note that this decision can be
57167            # overridden by the unignore logic below.
57168            want_component=0
57169        fi
57170        if test -f $component_path/.pmix_unignore ; then
57171            # if there is an empty pmix_unignore, that is
57172            # equivalent to having your userid in the unignore file.
57173            # If userid is in the file, unignore the ignore file.
57174            if test ! -s $component_path/.pmix_unignore ; then
57175                want_component=1
57176            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
57177                want_component=1
57178            fi
57179        fi
57180        # if this component type is direct and we are not it, we don't want
57181        # to be built.  Otherwise, we do want to be built.
57182        if test ! -z "$DIRECT_psec" ; then
57183            if test "$DIRECT_psec" = "$component" ; then
57184                want_component=1
57185            else
57186                want_component=0
57187            fi
57188        fi
57189    fi
57190
57191    # if we were explicitly disabled, don't build :)
57192    if test "$DISABLE_psec" = "1"; then :
57193  want_component=0
57194fi
57195    str="DISABLED_COMPONENT_CHECK=\$DISABLE_psec_$component"
57196         eval $str
57197         if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
57198             want_component=0
57199         fi
57200
57201    if test "$want_component" = "1"; then :
57202  should_build=1
57203else
57204  should_build=0
57205fi
57206
57207
57208    SHARED_FRAMEWORK="$DSO_psec"
57209    str="SHARED_COMPONENT=\$DSO_psec_$component"
57210         eval $str
57211
57212    STATIC_FRAMEWORK="$STATIC_psec"
57213    str="STATIC_COMPONENT=\$STATIC_psec_$component"
57214         eval $str
57215
57216    shared_mode_override=static
57217
57218    # Setup for either shared or static
57219    if test "$STATIC_FRAMEWORK" = "1" || \
57220       test "$STATIC_COMPONENT" = "1" || \
57221       test "$STATIC_all" = "1" ; then
57222        compile_mode="static"
57223    elif test "$shared_mode_override" = "dso" || \
57224         test "$SHARED_FRAMEWORK" = "1" || \
57225         test "$SHARED_COMPONENT" = "1" || \
57226         test "$DSO_all" = "1"; then
57227        compile_mode="dso"
57228    else
57229        compile_mode="static"
57230    fi
57231
57232    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psec:$component compile mode" >&5
57233$as_echo_n "checking for MCA component psec:$component compile mode... " >&6; }
57234    if test "$DIRECT_psec" = "$component" ; then
57235        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
57236$as_echo "$compile_mode - direct" >&6; }
57237    else
57238        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
57239$as_echo "$compile_mode" >&6; }
57240    fi
57241
57242            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build"
57243
57244            if test "$should_build" = "1" ; then
57245
57246
57247
57248    # Is the private index set?  If not, set it.
57249    if test "x$pmix_scope_index" = "x"; then
57250        pmix_scope_index=1
57251    fi
57252
57253    # First, check to see if any of these variables are already set.
57254    # This is a simple sanity check to ensure we're not already
57255    # overwriting pre-existing variables (that have a non-empty
57256    # value).  It's not a perfect check, but at least it's something.
57257    for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do
57258        pmix_str="pmix_str=\"\$$pmix_var\""
57259        eval $pmix_str
57260
57261        if test "x$pmix_str" != "x"; then
57262            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
57263$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
57264            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
57265$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
57266            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
57267$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
57268            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
57269$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
57270            as_fn_error $? "Cannot continue" "$LINENO" 5
57271        fi
57272    done
57273
57274    # Ok, we passed the simple sanity check.  Save all these names so
57275    # that we can unset them at the end of the scope.
57276    pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\""
57277    eval $pmix_str
57278    unset pmix_str
57279
57280    env | grep pmix_scope
57281    pmix_scope_index=`expr $pmix_scope_index + 1`
57282
57283
57284#
57285# Invoke configure in a specific subdirectory.
57286#
57287# src/mca/psec/$component is the directory to invoke in
57288# $pmix_subdir_args is the list of arguments to pass
57289# should_build=1 is actions to execute upon success
57290# should_build=0 is actions to execute upon failure
57291#
57292subdir_dir="src/mca/psec/$component"
57293subdir_args="$pmix_subdir_args"
57294subdir_success="should_build=1"
57295subdir_failure="should_build=0"
57296
57297#
57298# Sanity checks
57299#
57300
57301if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then
57302    { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5
57303$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;}
57304
57305    #
57306    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
57307    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
57308    # into it.
57309    #
57310
57311    case $srcdir in
57312    .)
57313	;;
57314    *)
57315	{ case $subdir_dir in
57316	[\\/]* | ?:[\\/]* ) total_dir=;;
57317	*)                      total_dir=.;;
57318	esac
57319	temp=$subdir_dir
57320	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
57321	    case $dir_part in
57322	    # Skip DOS drivespec
57323	    ?:) total_dir=$dir_part ;;
57324	    *)  total_dir=$total_dir/$dir_part
57325		test -d "$total_dir" ||
57326		mkdir "$total_dir" ||
57327		as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5
57328		;;
57329	    esac
57330	done; }
57331
57332	if test -d ./$subdir_dir; then :;
57333	else
57334	    as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
57335	fi
57336	;;
57337    esac
57338
57339    #
57340    # Move into the target directory
57341    #
57342
57343    subdir_parent=`pwd`
57344    cd $subdir_dir
57345
57346    #
57347    # Make a "../" for each directory in $subdir_dir.
57348    #
57349
57350    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
57351    #
57352    # Construct the --srcdir argument
57353    #
57354
57355    case $srcdir in
57356    .)
57357	# In place
57358	subdir_srcdir="$srcdir"
57359	;;
57360    [\\/]* | ?:[\\/]* )
57361	# Absolute path
57362	subdir_srcdir="$srcdir/$subdir_dir"
57363	;;
57364    *)
57365	# Relative path
57366	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
57367	;;
57368    esac
57369
57370    #
57371    # Construct the --cache-file argument
57372    #
57373
57374    # BWB - subdir caching is a pain since we change CFLAGS and all that.
57375    # Just disable it for now
57376    subdir_cache_file="/dev/null"
57377
57378    #
57379    # Invoke the configure script in the subdirectory
57380    #
57381
57382    sub_configure="$SHELL '$subdir_srcdir/configure'"
57383    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
57384$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
57385    eval "$sub_configure $subdir_args \
57386	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
57387    if test "$?" = "0"; then
57388	eval $subdir_success
57389	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
57390$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
57391    else
57392	eval $subdir_failure
57393	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
57394$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
57395    fi
57396
57397    #
57398    # Go back to the topdir
57399    #
57400
57401    cd $subdir_parent
57402fi
57403
57404#
57405# Clean up
57406#
57407
57408
57409    # Unwind the index
57410    pmix_scope_index=`expr $pmix_scope_index - 1`
57411    pmix_scope_test=`expr $pmix_scope_index \> 0`
57412    if test "$pmix_scope_test" = "0"; then
57413        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
57414$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
57415        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
57416$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
57417        as_fn_error $? "Cannot continue" "$LINENO" 5
57418    fi
57419
57420    # Get the variable names from that index
57421    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
57422    eval $pmix_str
57423
57424    # Iterate over all the variables and unset them all
57425    for pmix_var in $pmix_str; do
57426        unset $pmix_var
57427    done
57428
57429                pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build"
57430            fi
57431
57432            if test "$should_build" = "1" ; then
57433                # do some extra work to pass flags back from the
57434                # top-level configure, the way a configure.m4
57435                # component would.
57436                infile="$srcdir/src/mca/psec/all_components/post_configure.sh"
57437                if test -f $infile; then
57438
57439                    # First check for the ABORT tag
57440                    line="`$GREP ABORT= $infile | cut -d= -f2-`"
57441                    if test -n "$line" && test "$line" != "no"; then
57442                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
57443$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
57444                        as_fn_error $? "cannot continue" "$LINENO" 5
57445                    fi
57446
57447                    line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
57448                            eval "line=$line"
57449                            if test -n "$line"; then
57450                                all_components_static_components_WRAPPER_EXTRA_LDFLAGS="$line"
57451                            fi
57452                        line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
57453                            eval "line=$line"
57454                            if test -n "$line"; then
57455                                all_components_static_components_WRAPPER_EXTRA_LIBS="$line"
57456                            fi
57457                                        fi
57458
57459
57460
57461
57462    # See if it dropped an output file for us to pick up some
57463    # shell variables in.
57464    infile="$srcdir/src/mca/psec/$component/post_configure.sh"
57465
57466    # Add this subdir to the mast list of all MCA component subdirs
57467    all_components="$all_components $component"
57468
57469    if test "$compile_mode" = "dso" ; then
57470        dso_components="$dso_components $component"
57471    else
57472        if test "psec" = "common"; then
57473            # Static libraries in "common" frameworks are installed, and
57474            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
57475            # set.
57476            static_ltlibs="mca/psec/$component/lib${PMIX_LIB_PREFIX}mca_psec_$component.la $static_ltlibs"
57477        else
57478            # Other frameworks do not have to obey the
57479            # $FRAMEWORK_LIB_PREFIX prefix.
57480            static_ltlibs="mca/psec/$component/libmca_psec_$component.la $static_ltlibs"
57481        fi
57482        echo "extern const pmix_mca_base_component_t mca_psec_$component_component;" >> $outfile.extern
57483        echo "  &mca_psec_$component_component, " >> $outfile.struct
57484        static_components="$static_components $component"
57485    fi
57486
57487    # Output pretty results
57488    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:$component can compile" >&5
57489$as_echo_n "checking if MCA component psec:$component can compile... " >&6; }
57490    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57491$as_echo "yes" >&6; }
57492
57493                        if test -f $infile; then
57494        # check for direct call header to include.  This will be
57495        # AC_SUBSTed later.
57496        if test "$DIRECT_psec" = "$component" ; then
57497            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
57498                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
57499                str="MCA_pmix_psec_DIRECT_CALL_HEADER=$line"
57500                eval $str
57501            else
57502as_fn_error $? "*** psec component $component was supposed to be direct-called, but
57503*** does not appear to support direct calling.
57504*** Aborting" "$LINENO" 5
57505            fi
57506        fi
57507    else
57508        # were we supposed to have found something in the
57509        # post_configure.sh, but the file didn't exist?
57510        if test "$DIRECT_psec" = "$component" ; then
57511as_fn_error $? "*** psec component $component was supposed to be direct-called, but
57512*** does not appear to support direct calling.
57513*** Aborting" "$LINENO" 5
57514        fi
57515    fi
57516
57517    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
57518    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
57519    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
57520    # component didn't have it's own configure script (in which case,
57521    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
57522    # have to do this if the component is building dynamically,
57523    # because it will link against these (without a dependency from
57524    # libmpi.so to these flags)
57525    if test "$compile_mode" = "static"; then
57526        str="line=\$psec_$component_WRAPPER_EXTRA_LDFLAGS"
57527                      eval "$str"
57528
57529
57530
57531    # Is the private index set?  If not, set it.
57532    if test "x$pmix_scope_index" = "x"; then
57533        pmix_scope_index=1
57534    fi
57535
57536    # First, check to see if any of these variables are already set.
57537    # This is a simple sanity check to ensure we're not already
57538    # overwriting pre-existing variables (that have a non-empty
57539    # value).  It's not a perfect check, but at least it's something.
57540    for pmix_var in pmix_tmp pmix_append; do
57541        pmix_str="pmix_str=\"\$$pmix_var\""
57542        eval $pmix_str
57543
57544        if test "x$pmix_str" != "x"; then
57545            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
57546$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
57547            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
57548$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
57549            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
57550$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
57551            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
57552$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
57553            as_fn_error $? "Cannot continue" "$LINENO" 5
57554        fi
57555    done
57556
57557    # Ok, we passed the simple sanity check.  Save all these names so
57558    # that we can unset them at the end of the scope.
57559    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
57560    eval $pmix_str
57561    unset pmix_str
57562
57563    env | grep pmix_scope
57564    pmix_scope_index=`expr $pmix_scope_index + 1`
57565
57566
57567    for arg in $line; do
57568        pmix_tmp=`echo $arg | cut -c1-2`
57569        pmix_append=1
57570        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
57571  for val in ${mca_wrapper_extra_ldflags}; do
57572                   if test "x$val" = "x$arg"; then :
57573  pmix_append=0
57574fi
57575               done
57576fi
57577        if test "$pmix_append" = "1"; then :
57578  if test -z "$mca_wrapper_extra_ldflags"; then :
57579  mca_wrapper_extra_ldflags=$arg
57580else
57581  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
57582fi
57583fi
57584    done
57585
57586
57587    # Unwind the index
57588    pmix_scope_index=`expr $pmix_scope_index - 1`
57589    pmix_scope_test=`expr $pmix_scope_index \> 0`
57590    if test "$pmix_scope_test" = "0"; then
57591        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
57592$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
57593        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
57594$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
57595        as_fn_error $? "Cannot continue" "$LINENO" 5
57596    fi
57597
57598    # Get the variable names from that index
57599    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
57600    eval $pmix_str
57601
57602    # Iterate over all the variables and unset them all
57603    for pmix_var in $pmix_str; do
57604        unset $pmix_var
57605    done
57606
57607str="line=\$psec_$component_WRAPPER_EXTRA_LIBS"
57608                      eval "$str"
57609
57610
57611
57612    # Is the private index set?  If not, set it.
57613    if test "x$pmix_scope_index" = "x"; then
57614        pmix_scope_index=1
57615    fi
57616
57617    # First, check to see if any of these variables are already set.
57618    # This is a simple sanity check to ensure we're not already
57619    # overwriting pre-existing variables (that have a non-empty
57620    # value).  It's not a perfect check, but at least it's something.
57621    for pmix_var in pmix_tmp pmix_append; do
57622        pmix_str="pmix_str=\"\$$pmix_var\""
57623        eval $pmix_str
57624
57625        if test "x$pmix_str" != "x"; then
57626            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
57627$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
57628            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
57629$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
57630            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
57631$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
57632            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
57633$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
57634            as_fn_error $? "Cannot continue" "$LINENO" 5
57635        fi
57636    done
57637
57638    # Ok, we passed the simple sanity check.  Save all these names so
57639    # that we can unset them at the end of the scope.
57640    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
57641    eval $pmix_str
57642    unset pmix_str
57643
57644    env | grep pmix_scope
57645    pmix_scope_index=`expr $pmix_scope_index + 1`
57646
57647
57648    for arg in $line; do
57649        pmix_tmp=`echo $arg | cut -c1-2`
57650        pmix_append=1
57651        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
57652  for val in ${mca_wrapper_extra_libs}; do
57653                   if test "x$val" = "x$arg"; then :
57654  pmix_append=0
57655fi
57656               done
57657fi
57658        if test "$pmix_append" = "1"; then :
57659  if test -z "$mca_wrapper_extra_libs"; then :
57660  mca_wrapper_extra_libs=$arg
57661else
57662  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
57663fi
57664fi
57665    done
57666
57667
57668    # Unwind the index
57669    pmix_scope_index=`expr $pmix_scope_index - 1`
57670    pmix_scope_test=`expr $pmix_scope_index \> 0`
57671    if test "$pmix_scope_test" = "0"; then
57672        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
57673$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
57674        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
57675$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
57676        as_fn_error $? "Cannot continue" "$LINENO" 5
57677    fi
57678
57679    # Get the variable names from that index
57680    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
57681    eval $pmix_str
57682
57683    # Iterate over all the variables and unset them all
57684    for pmix_var in $pmix_str; do
57685        unset $pmix_var
57686    done
57687
57688
57689    fi
57690
57691    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
57692    # component can never be used in a STOP_AT_FIRST framework, we
57693    # don't have to implement the else clause in the literal check...
57694
57695
57696            else
57697
57698    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psec:$component can compile" >&5
57699$as_echo_n "checking if MCA component psec:$component can compile... " >&6; }
57700    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57701$as_echo "no" >&6; }
57702
57703    # If this component was requested as the default for this
57704    # type, then abort.
57705    if test "$with_psec" = "$component" ; then
57706        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
57707$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
57708        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
57709$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
57710        as_fn_error $? "Cannot continue" "$LINENO" 5
57711    fi
57712
57713    if test ! -z "$DIRECT_psec" ; then
57714        if test "$DIRECT_psec" = "$component" ; then
57715            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
57716$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
57717            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
57718$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
57719            as_fn_error $? "Cannot continue" "$LINENO" 5
57720        fi
57721    fi
57722
57723            fi
57724        fi
57725    done
57726
57727fi
57728
57729    MCA_pmix_psec_ALL_COMPONENTS="$all_components"
57730    MCA_pmix_psec_STATIC_COMPONENTS="$static_components"
57731    MCA_pmix_psec_DSO_COMPONENTS="$dso_components"
57732    MCA_pmix_psec_STATIC_LTLIBS="$static_ltlibs"
57733
57734
57735
57736
57737
57738
57739
57740    MCA_pmix_psec_ALL_SUBDIRS=
57741    for item in $all_components ; do
57742       MCA_pmix_psec_ALL_SUBDIRS="$MCA_pmix_psec_ALL_SUBDIRS mca/psec/$item"
57743    done
57744
57745
57746
57747    MCA_pmix_psec_STATIC_SUBDIRS=
57748    for item in $static_components ; do
57749       MCA_pmix_psec_STATIC_SUBDIRS="$MCA_pmix_psec_STATIC_SUBDIRS mca/psec/$item"
57750    done
57751
57752
57753
57754    MCA_pmix_psec_DSO_SUBDIRS=
57755    for item in $dso_components ; do
57756       MCA_pmix_psec_DSO_SUBDIRS="$MCA_pmix_psec_DSO_SUBDIRS mca/psec/$item"
57757    done
57758
57759
57760
57761    # Create the final .h file that will be included in the type's
57762    # top-level glue.  This lists all the static components.  We don't
57763    # need to do this for "common".
57764    if test "psec" != "common"; then
57765        cat > $outfile <<EOF
57766/*
57767 * \$HEADER\$
57768 */
57769#if defined(c_plusplus) || defined(__cplusplus)
57770extern "C" {
57771#endif
57772
57773`cat $outfile.extern`
57774
57775const pmix_mca_base_component_t *mca_psec_base_static_components[] = {
57776`cat $outfile.struct`
57777  NULL
57778};
57779
57780#if defined(c_plusplus) || defined(__cplusplus)
57781}
57782#endif
57783
57784EOF
57785        # Only replace the header file if a) it doesn't previously
57786        # exist, or b) the contents are different.  Do this to not
57787        # trigger recompilation of certain .c files just because the
57788        # timestamp changed on $outfile_real (similar to the way AC
57789        # handles AC_CONFIG_HEADER files).
57790        diff $outfile $outfile_real > /dev/null 2>&1
57791        if test "$?" != "0"; then
57792            mv $outfile $outfile_real
57793        else
57794            rm -f $outfile
57795        fi
57796    fi
57797    rm -f $outfile.struct $outfile.extern
57798
57799    unset all_components static_components dso_components outfile outfile_real
57800
57801                                 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS psensor"
57802                                 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/psensor"
57803                                 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_psensor_ALL_SUBDIRS)"
57804                                 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_psensor_DSO_SUBDIRS)"
57805                                 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_psensor_STATIC_SUBDIRS)"
57806                                 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/psensor/libmca_psensor.la"
57807                          MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_psensor_STATIC_LTLIBS)"
57808
57809    pmix_show_subsubtitle "Configuring MCA framework psensor"
57810
57811
57812
57813
57814    # setup for framework
57815    all_components=
57816    static_components=
57817    dso_components=
57818    static_ltlibs=
57819
57820    # Ensure that the directory where the #include file is to live
57821    # exists.  Need to do this for VPATH builds, because the directory
57822    # may not exist yet.  For the "common" type, it's not really a
57823    # component, so it doesn't have a base.
57824    outdir=src/mca/psensor/base
57825    as_dir=$outdir; as_fn_mkdir_p
57826
57827    # emit Makefile rule
57828    ac_config_files="$ac_config_files src/mca/psensor/Makefile"
57829
57830
57831    # remove any previously generated #include files
57832    outfile_real=$outdir/static-components.h
57833    outfile=$outfile_real.new
57834    rm -f $outfile $outfile.struct $outfile.extern
57835    touch $outfile.struct $outfile.extern
57836
57837    # print some nice messages about what we're about to do...
57838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework psensor" >&5
57839$as_echo_n "checking for no configure components in framework psensor... " >&6; }
57840    { $as_echo "$as_me:${as_lineno-$LINENO}: result: file, heartbeat" >&5
57841$as_echo "file, heartbeat" >&6; }
57842    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework psensor" >&5
57843$as_echo_n "checking for m4 configure components in framework psensor... " >&6; }
57844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
57845$as_echo "" >&6; }
57846
57847    # If there are components in the no configure list, but we're
57848    # doing one of the "special" selection logics, abort with a
57849    # reasonable message.
57850
57851
57852
57853    # run the configure logic for the no-config components
57854
57855    pmix_show_subsubsubtitle "MCA component psensor:file (no configuration)"
57856
57857    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1"
57858
57859
57860
57861    component_path="$srcdir/src/mca/psensor/file"
57862    want_component=0
57863
57864    # build if:
57865    # - the component type is direct and we are that component
57866    # - there is no pmix_ignore file
57867    # - there is an pmix_ignore, but there is an empty pmix_unignore
57868    # - there is an pmix_ignore, but username is in pmix_unignore
57869    if test -d $component_path ; then
57870        # decide if we want the component to be built or not.  This
57871        # is spread out because some of the logic is a little complex
57872        # and test's syntax isn't exactly the greatest.  We want to
57873        # build the component by default.
57874        want_component=1
57875        if test -f $component_path/.pmix_ignore ; then
57876            # If there is an pmix_ignore file, don't build
57877            # the component.  Note that this decision can be
57878            # overridden by the unignore logic below.
57879            want_component=0
57880        fi
57881        if test -f $component_path/.pmix_unignore ; then
57882            # if there is an empty pmix_unignore, that is
57883            # equivalent to having your userid in the unignore file.
57884            # If userid is in the file, unignore the ignore file.
57885            if test ! -s $component_path/.pmix_unignore ; then
57886                want_component=1
57887            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
57888                want_component=1
57889            fi
57890        fi
57891        # if this component type is direct and we are not it, we don't want
57892        # to be built.  Otherwise, we do want to be built.
57893        if test ! -z "$DIRECT_psensor" ; then
57894            if test "$DIRECT_psensor" = "file" ; then
57895                want_component=1
57896            else
57897                want_component=0
57898            fi
57899        fi
57900    fi
57901
57902    # if we were explicitly disabled, don't build :)
57903    if test "$DISABLE_psensor" = "1"; then :
57904  want_component=0
57905fi
57906    if test "$DISABLE_psensor_file" = "1"; then :
57907  want_component=0
57908fi
57909
57910    if test "$want_component" = "1"; then :
57911  should_build=1
57912else
57913  should_build=0
57914fi
57915
57916
57917    SHARED_FRAMEWORK="$DSO_psensor"
57918    SHARED_COMPONENT="$DSO_psensor_file"
57919
57920    STATIC_FRAMEWORK="$STATIC_psensor"
57921    STATIC_COMPONENT="$STATIC_psensor_file"
57922
57923    shared_mode_override=static
57924
57925    # Setup for either shared or static
57926    if test "$STATIC_FRAMEWORK" = "1" || \
57927       test "$STATIC_COMPONENT" = "1" || \
57928       test "$STATIC_all" = "1" ; then
57929        compile_mode="static"
57930    elif test "$shared_mode_override" = "dso" || \
57931         test "$SHARED_FRAMEWORK" = "1" || \
57932         test "$SHARED_COMPONENT" = "1" || \
57933         test "$DSO_all" = "1"; then
57934        compile_mode="dso"
57935    else
57936        compile_mode="static"
57937    fi
57938
57939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psensor:file compile mode" >&5
57940$as_echo_n "checking for MCA component psensor:file compile mode... " >&6; }
57941    if test "$DIRECT_psensor" = "file" ; then
57942        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
57943$as_echo "$compile_mode - direct" >&6; }
57944    else
57945        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
57946$as_echo "$compile_mode" >&6; }
57947    fi
57948
57949    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build"
57950
57951    if test "$should_build" = "1" ; then
57952
57953
57954
57955    # See if it dropped an output file for us to pick up some
57956    # shell variables in.
57957    infile="$srcdir/src/mca/psensor/file/post_configure.sh"
57958
57959    # Add this subdir to the mast list of all MCA component subdirs
57960    all_components="$all_components file"
57961
57962    if test "$compile_mode" = "dso" ; then
57963        dso_components="$dso_components file"
57964    else
57965        if test "psensor" = "common"; then
57966            # Static libraries in "common" frameworks are installed, and
57967            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
57968            # set.
57969            static_ltlibs="mca/psensor/file/lib${PMIX_LIB_PREFIX}mca_psensor_file.la $static_ltlibs"
57970        else
57971            # Other frameworks do not have to obey the
57972            # $FRAMEWORK_LIB_PREFIX prefix.
57973            static_ltlibs="mca/psensor/file/libmca_psensor_file.la $static_ltlibs"
57974        fi
57975        echo "extern const pmix_mca_base_component_t mca_psensor_file_component;" >> $outfile.extern
57976        echo "  &mca_psensor_file_component, " >> $outfile.struct
57977        static_components="$static_components file"
57978    fi
57979
57980    # Output pretty results
57981    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psensor:file can compile" >&5
57982$as_echo_n "checking if MCA component psensor:file can compile... " >&6; }
57983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57984$as_echo "yes" >&6; }
57985
57986                        if test -f $infile; then
57987        # check for direct call header to include.  This will be
57988        # AC_SUBSTed later.
57989        if test "$DIRECT_psensor" = "file" ; then
57990            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
57991                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
57992                str="MCA_pmix_psensor_DIRECT_CALL_HEADER=$line"
57993                eval $str
57994            else
57995as_fn_error $? "*** psensor component file was supposed to be direct-called, but
57996*** does not appear to support direct calling.
57997*** Aborting" "$LINENO" 5
57998            fi
57999        fi
58000    else
58001        # were we supposed to have found something in the
58002        # post_configure.sh, but the file didn't exist?
58003        if test "$DIRECT_psensor" = "file" ; then
58004as_fn_error $? "*** psensor component file was supposed to be direct-called, but
58005*** does not appear to support direct calling.
58006*** Aborting" "$LINENO" 5
58007        fi
58008    fi
58009
58010    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
58011    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
58012    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
58013    # component didn't have it's own configure script (in which case,
58014    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
58015    # have to do this if the component is building dynamically,
58016    # because it will link against these (without a dependency from
58017    # libmpi.so to these flags)
58018    if test "$compile_mode" = "static"; then
58019        if test "$psensor_file_WRAPPER_EXTRA_LDFLAGS" = ""; then :
58020
58021
58022
58023    # Is the private index set?  If not, set it.
58024    if test "x$pmix_scope_index" = "x"; then
58025        pmix_scope_index=1
58026    fi
58027
58028    # First, check to see if any of these variables are already set.
58029    # This is a simple sanity check to ensure we're not already
58030    # overwriting pre-existing variables (that have a non-empty
58031    # value).  It's not a perfect check, but at least it's something.
58032    for pmix_var in pmix_tmp pmix_append; do
58033        pmix_str="pmix_str=\"\$$pmix_var\""
58034        eval $pmix_str
58035
58036        if test "x$pmix_str" != "x"; then
58037            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
58038$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
58039            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
58040$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
58041            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
58042$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
58043            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58044$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58045            as_fn_error $? "Cannot continue" "$LINENO" 5
58046        fi
58047    done
58048
58049    # Ok, we passed the simple sanity check.  Save all these names so
58050    # that we can unset them at the end of the scope.
58051    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
58052    eval $pmix_str
58053    unset pmix_str
58054
58055    env | grep pmix_scope
58056    pmix_scope_index=`expr $pmix_scope_index + 1`
58057
58058
58059    for arg in $psensor_file_LDFLAGS; do
58060        pmix_tmp=`echo $arg | cut -c1-2`
58061        pmix_append=1
58062        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
58063  for val in ${mca_wrapper_extra_ldflags}; do
58064                   if test "x$val" = "x$arg"; then :
58065  pmix_append=0
58066fi
58067               done
58068fi
58069        if test "$pmix_append" = "1"; then :
58070  if test -z "$mca_wrapper_extra_ldflags"; then :
58071  mca_wrapper_extra_ldflags=$arg
58072else
58073  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
58074fi
58075fi
58076    done
58077
58078
58079    # Unwind the index
58080    pmix_scope_index=`expr $pmix_scope_index - 1`
58081    pmix_scope_test=`expr $pmix_scope_index \> 0`
58082    if test "$pmix_scope_test" = "0"; then
58083        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
58084$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
58085        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58086$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58087        as_fn_error $? "Cannot continue" "$LINENO" 5
58088    fi
58089
58090    # Get the variable names from that index
58091    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
58092    eval $pmix_str
58093
58094    # Iterate over all the variables and unset them all
58095    for pmix_var in $pmix_str; do
58096        unset $pmix_var
58097    done
58098
58099
58100else
58101
58102
58103
58104    # Is the private index set?  If not, set it.
58105    if test "x$pmix_scope_index" = "x"; then
58106        pmix_scope_index=1
58107    fi
58108
58109    # First, check to see if any of these variables are already set.
58110    # This is a simple sanity check to ensure we're not already
58111    # overwriting pre-existing variables (that have a non-empty
58112    # value).  It's not a perfect check, but at least it's something.
58113    for pmix_var in pmix_tmp pmix_append; do
58114        pmix_str="pmix_str=\"\$$pmix_var\""
58115        eval $pmix_str
58116
58117        if test "x$pmix_str" != "x"; then
58118            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
58119$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
58120            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
58121$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
58122            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
58123$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
58124            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58125$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58126            as_fn_error $? "Cannot continue" "$LINENO" 5
58127        fi
58128    done
58129
58130    # Ok, we passed the simple sanity check.  Save all these names so
58131    # that we can unset them at the end of the scope.
58132    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
58133    eval $pmix_str
58134    unset pmix_str
58135
58136    env | grep pmix_scope
58137    pmix_scope_index=`expr $pmix_scope_index + 1`
58138
58139
58140    for arg in $psensor_file_WRAPPER_EXTRA_LDFLAGS; do
58141        pmix_tmp=`echo $arg | cut -c1-2`
58142        pmix_append=1
58143        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
58144  for val in ${mca_wrapper_extra_ldflags}; do
58145                   if test "x$val" = "x$arg"; then :
58146  pmix_append=0
58147fi
58148               done
58149fi
58150        if test "$pmix_append" = "1"; then :
58151  if test -z "$mca_wrapper_extra_ldflags"; then :
58152  mca_wrapper_extra_ldflags=$arg
58153else
58154  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
58155fi
58156fi
58157    done
58158
58159
58160    # Unwind the index
58161    pmix_scope_index=`expr $pmix_scope_index - 1`
58162    pmix_scope_test=`expr $pmix_scope_index \> 0`
58163    if test "$pmix_scope_test" = "0"; then
58164        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
58165$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
58166        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58167$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58168        as_fn_error $? "Cannot continue" "$LINENO" 5
58169    fi
58170
58171    # Get the variable names from that index
58172    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
58173    eval $pmix_str
58174
58175    # Iterate over all the variables and unset them all
58176    for pmix_var in $pmix_str; do
58177        unset $pmix_var
58178    done
58179
58180
58181fi
58182                        if test "$psensor_file_WRAPPER_EXTRA_LIBS" = ""; then :
58183
58184
58185
58186    # Is the private index set?  If not, set it.
58187    if test "x$pmix_scope_index" = "x"; then
58188        pmix_scope_index=1
58189    fi
58190
58191    # First, check to see if any of these variables are already set.
58192    # This is a simple sanity check to ensure we're not already
58193    # overwriting pre-existing variables (that have a non-empty
58194    # value).  It's not a perfect check, but at least it's something.
58195    for pmix_var in pmix_tmp pmix_append; do
58196        pmix_str="pmix_str=\"\$$pmix_var\""
58197        eval $pmix_str
58198
58199        if test "x$pmix_str" != "x"; then
58200            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
58201$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
58202            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
58203$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
58204            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
58205$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
58206            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58207$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58208            as_fn_error $? "Cannot continue" "$LINENO" 5
58209        fi
58210    done
58211
58212    # Ok, we passed the simple sanity check.  Save all these names so
58213    # that we can unset them at the end of the scope.
58214    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
58215    eval $pmix_str
58216    unset pmix_str
58217
58218    env | grep pmix_scope
58219    pmix_scope_index=`expr $pmix_scope_index + 1`
58220
58221
58222    for arg in $psensor_file_LIBS; do
58223        pmix_tmp=`echo $arg | cut -c1-2`
58224        pmix_append=1
58225        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
58226  for val in ${mca_wrapper_extra_libs}; do
58227                   if test "x$val" = "x$arg"; then :
58228  pmix_append=0
58229fi
58230               done
58231fi
58232        if test "$pmix_append" = "1"; then :
58233  if test -z "$mca_wrapper_extra_libs"; then :
58234  mca_wrapper_extra_libs=$arg
58235else
58236  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
58237fi
58238fi
58239    done
58240
58241
58242    # Unwind the index
58243    pmix_scope_index=`expr $pmix_scope_index - 1`
58244    pmix_scope_test=`expr $pmix_scope_index \> 0`
58245    if test "$pmix_scope_test" = "0"; then
58246        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
58247$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
58248        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58249$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58250        as_fn_error $? "Cannot continue" "$LINENO" 5
58251    fi
58252
58253    # Get the variable names from that index
58254    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
58255    eval $pmix_str
58256
58257    # Iterate over all the variables and unset them all
58258    for pmix_var in $pmix_str; do
58259        unset $pmix_var
58260    done
58261
58262
58263else
58264
58265
58266
58267    # Is the private index set?  If not, set it.
58268    if test "x$pmix_scope_index" = "x"; then
58269        pmix_scope_index=1
58270    fi
58271
58272    # First, check to see if any of these variables are already set.
58273    # This is a simple sanity check to ensure we're not already
58274    # overwriting pre-existing variables (that have a non-empty
58275    # value).  It's not a perfect check, but at least it's something.
58276    for pmix_var in pmix_tmp pmix_append; do
58277        pmix_str="pmix_str=\"\$$pmix_var\""
58278        eval $pmix_str
58279
58280        if test "x$pmix_str" != "x"; then
58281            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
58282$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
58283            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
58284$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
58285            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
58286$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
58287            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58288$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58289            as_fn_error $? "Cannot continue" "$LINENO" 5
58290        fi
58291    done
58292
58293    # Ok, we passed the simple sanity check.  Save all these names so
58294    # that we can unset them at the end of the scope.
58295    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
58296    eval $pmix_str
58297    unset pmix_str
58298
58299    env | grep pmix_scope
58300    pmix_scope_index=`expr $pmix_scope_index + 1`
58301
58302
58303    for arg in $psensor_file_WRAPPER_EXTRA_LIBS; do
58304        pmix_tmp=`echo $arg | cut -c1-2`
58305        pmix_append=1
58306        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
58307  for val in ${mca_wrapper_extra_libs}; do
58308                   if test "x$val" = "x$arg"; then :
58309  pmix_append=0
58310fi
58311               done
58312fi
58313        if test "$pmix_append" = "1"; then :
58314  if test -z "$mca_wrapper_extra_libs"; then :
58315  mca_wrapper_extra_libs=$arg
58316else
58317  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
58318fi
58319fi
58320    done
58321
58322
58323    # Unwind the index
58324    pmix_scope_index=`expr $pmix_scope_index - 1`
58325    pmix_scope_test=`expr $pmix_scope_index \> 0`
58326    if test "$pmix_scope_test" = "0"; then
58327        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
58328$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
58329        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58330$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58331        as_fn_error $? "Cannot continue" "$LINENO" 5
58332    fi
58333
58334    # Get the variable names from that index
58335    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
58336    eval $pmix_str
58337
58338    # Iterate over all the variables and unset them all
58339    for pmix_var in $pmix_str; do
58340        unset $pmix_var
58341    done
58342
58343
58344fi
58345
58346    fi
58347
58348    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
58349    # component can never be used in a STOP_AT_FIRST framework, we
58350    # don't have to implement the else clause in the literal check...
58351    if test "$psensor_file_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
58352  stop_at_first=0
58353            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
58354  if test "$with_devel_headers" = "yes"; then :
58355
58356
58357
58358    # Is the private index set?  If not, set it.
58359    if test "x$pmix_scope_index" = "x"; then
58360        pmix_scope_index=1
58361    fi
58362
58363    # First, check to see if any of these variables are already set.
58364    # This is a simple sanity check to ensure we're not already
58365    # overwriting pre-existing variables (that have a non-empty
58366    # value).  It's not a perfect check, but at least it's something.
58367    for pmix_var in pmix_tmp pmix_append; do
58368        pmix_str="pmix_str=\"\$$pmix_var\""
58369        eval $pmix_str
58370
58371        if test "x$pmix_str" != "x"; then
58372            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
58373$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
58374            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
58375$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
58376            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
58377$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
58378            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58379$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58380            as_fn_error $? "Cannot continue" "$LINENO" 5
58381        fi
58382    done
58383
58384    # Ok, we passed the simple sanity check.  Save all these names so
58385    # that we can unset them at the end of the scope.
58386    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
58387    eval $pmix_str
58388    unset pmix_str
58389
58390    env | grep pmix_scope
58391    pmix_scope_index=`expr $pmix_scope_index + 1`
58392
58393
58394    for arg in $psensor_file_WRAPPER_EXTRA_CPPFLAGS; do
58395        pmix_tmp=`echo $arg | cut -c1-2`
58396        pmix_append=1
58397        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
58398  for val in ${mca_wrapper_extra_cppflags}; do
58399                   if test "x$val" = "x$arg"; then :
58400  pmix_append=0
58401fi
58402               done
58403fi
58404        if test "$pmix_append" = "1"; then :
58405  if test -z "$mca_wrapper_extra_cppflags"; then :
58406  mca_wrapper_extra_cppflags=$arg
58407else
58408  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
58409fi
58410fi
58411    done
58412
58413
58414    # Unwind the index
58415    pmix_scope_index=`expr $pmix_scope_index - 1`
58416    pmix_scope_test=`expr $pmix_scope_index \> 0`
58417    if test "$pmix_scope_test" = "0"; then
58418        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
58419$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
58420        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58421$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58422        as_fn_error $? "Cannot continue" "$LINENO" 5
58423    fi
58424
58425    # Get the variable names from that index
58426    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
58427    eval $pmix_str
58428
58429    # Iterate over all the variables and unset them all
58430    for pmix_var in $pmix_str; do
58431        unset $pmix_var
58432    done
58433
58434
58435fi
58436else
58437  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring psensor_file_WRAPPER_EXTRA_CPPFLAGS ($psensor_file_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
58438$as_echo "$as_me: WARNING: ignoring psensor_file_WRAPPER_EXTRA_CPPFLAGS ($psensor_file_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
58439fi
58440fi
58441
58442    else
58443
58444    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psensor:file can compile" >&5
58445$as_echo_n "checking if MCA component psensor:file can compile... " >&6; }
58446    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
58447$as_echo "no" >&6; }
58448
58449    # If this component was requested as the default for this
58450    # type, then abort.
58451    if test "$with_psensor" = "file" ; then
58452        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"file\" failed to configure properly" >&5
58453$as_echo "$as_me: WARNING: MCA component \"file\" failed to configure properly" >&2;}
58454        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
58455$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
58456        as_fn_error $? "Cannot continue" "$LINENO" 5
58457    fi
58458
58459    if test ! -z "$DIRECT_psensor" ; then
58460        if test "$DIRECT_psensor" = "file" ; then
58461            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"file\" failed to configure properly" >&5
58462$as_echo "$as_me: WARNING: MCA component \"file\" failed to configure properly" >&2;}
58463            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
58464$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
58465            as_fn_error $? "Cannot continue" "$LINENO" 5
58466        fi
58467    fi
58468
58469        # add component to all component list
58470        all_components="$all_components file"
58471    fi
58472
58473    # set the AM_CONDITIONAL on how we should build
58474    if test "$compile_mode" = "dso" ; then
58475        BUILD_pmix_psensor_file_DSO=1
58476    else
58477        BUILD_pmix_psensor_file_DSO=0
58478    fi
58479     if test "$BUILD_pmix_psensor_file_DSO" = "1"; then
58480  MCA_BUILD_pmix_psensor_file_DSO_TRUE=
58481  MCA_BUILD_pmix_psensor_file_DSO_FALSE='#'
58482else
58483  MCA_BUILD_pmix_psensor_file_DSO_TRUE='#'
58484  MCA_BUILD_pmix_psensor_file_DSO_FALSE=
58485fi
58486
58487
58488    ac_config_files="$ac_config_files src/mca/psensor/file/Makefile"
58489
58490
58491    unset compile_mode
58492
58493    pmix_show_subsubsubtitle "MCA component psensor:heartbeat (no configuration)"
58494
58495    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1"
58496
58497
58498
58499    component_path="$srcdir/src/mca/psensor/heartbeat"
58500    want_component=0
58501
58502    # build if:
58503    # - the component type is direct and we are that component
58504    # - there is no pmix_ignore file
58505    # - there is an pmix_ignore, but there is an empty pmix_unignore
58506    # - there is an pmix_ignore, but username is in pmix_unignore
58507    if test -d $component_path ; then
58508        # decide if we want the component to be built or not.  This
58509        # is spread out because some of the logic is a little complex
58510        # and test's syntax isn't exactly the greatest.  We want to
58511        # build the component by default.
58512        want_component=1
58513        if test -f $component_path/.pmix_ignore ; then
58514            # If there is an pmix_ignore file, don't build
58515            # the component.  Note that this decision can be
58516            # overridden by the unignore logic below.
58517            want_component=0
58518        fi
58519        if test -f $component_path/.pmix_unignore ; then
58520            # if there is an empty pmix_unignore, that is
58521            # equivalent to having your userid in the unignore file.
58522            # If userid is in the file, unignore the ignore file.
58523            if test ! -s $component_path/.pmix_unignore ; then
58524                want_component=1
58525            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
58526                want_component=1
58527            fi
58528        fi
58529        # if this component type is direct and we are not it, we don't want
58530        # to be built.  Otherwise, we do want to be built.
58531        if test ! -z "$DIRECT_psensor" ; then
58532            if test "$DIRECT_psensor" = "heartbeat" ; then
58533                want_component=1
58534            else
58535                want_component=0
58536            fi
58537        fi
58538    fi
58539
58540    # if we were explicitly disabled, don't build :)
58541    if test "$DISABLE_psensor" = "1"; then :
58542  want_component=0
58543fi
58544    if test "$DISABLE_psensor_heartbeat" = "1"; then :
58545  want_component=0
58546fi
58547
58548    if test "$want_component" = "1"; then :
58549  should_build=1
58550else
58551  should_build=0
58552fi
58553
58554
58555    SHARED_FRAMEWORK="$DSO_psensor"
58556    SHARED_COMPONENT="$DSO_psensor_heartbeat"
58557
58558    STATIC_FRAMEWORK="$STATIC_psensor"
58559    STATIC_COMPONENT="$STATIC_psensor_heartbeat"
58560
58561    shared_mode_override=static
58562
58563    # Setup for either shared or static
58564    if test "$STATIC_FRAMEWORK" = "1" || \
58565       test "$STATIC_COMPONENT" = "1" || \
58566       test "$STATIC_all" = "1" ; then
58567        compile_mode="static"
58568    elif test "$shared_mode_override" = "dso" || \
58569         test "$SHARED_FRAMEWORK" = "1" || \
58570         test "$SHARED_COMPONENT" = "1" || \
58571         test "$DSO_all" = "1"; then
58572        compile_mode="dso"
58573    else
58574        compile_mode="static"
58575    fi
58576
58577    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psensor:heartbeat compile mode" >&5
58578$as_echo_n "checking for MCA component psensor:heartbeat compile mode... " >&6; }
58579    if test "$DIRECT_psensor" = "heartbeat" ; then
58580        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
58581$as_echo "$compile_mode - direct" >&6; }
58582    else
58583        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
58584$as_echo "$compile_mode" >&6; }
58585    fi
58586
58587    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build"
58588
58589    if test "$should_build" = "1" ; then
58590
58591
58592
58593    # See if it dropped an output file for us to pick up some
58594    # shell variables in.
58595    infile="$srcdir/src/mca/psensor/heartbeat/post_configure.sh"
58596
58597    # Add this subdir to the mast list of all MCA component subdirs
58598    all_components="$all_components heartbeat"
58599
58600    if test "$compile_mode" = "dso" ; then
58601        dso_components="$dso_components heartbeat"
58602    else
58603        if test "psensor" = "common"; then
58604            # Static libraries in "common" frameworks are installed, and
58605            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
58606            # set.
58607            static_ltlibs="mca/psensor/heartbeat/lib${PMIX_LIB_PREFIX}mca_psensor_heartbeat.la $static_ltlibs"
58608        else
58609            # Other frameworks do not have to obey the
58610            # $FRAMEWORK_LIB_PREFIX prefix.
58611            static_ltlibs="mca/psensor/heartbeat/libmca_psensor_heartbeat.la $static_ltlibs"
58612        fi
58613        echo "extern const pmix_mca_base_component_t mca_psensor_heartbeat_component;" >> $outfile.extern
58614        echo "  &mca_psensor_heartbeat_component, " >> $outfile.struct
58615        static_components="$static_components heartbeat"
58616    fi
58617
58618    # Output pretty results
58619    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psensor:heartbeat can compile" >&5
58620$as_echo_n "checking if MCA component psensor:heartbeat can compile... " >&6; }
58621    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
58622$as_echo "yes" >&6; }
58623
58624                        if test -f $infile; then
58625        # check for direct call header to include.  This will be
58626        # AC_SUBSTed later.
58627        if test "$DIRECT_psensor" = "heartbeat" ; then
58628            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
58629                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
58630                str="MCA_pmix_psensor_DIRECT_CALL_HEADER=$line"
58631                eval $str
58632            else
58633as_fn_error $? "*** psensor component heartbeat was supposed to be direct-called, but
58634*** does not appear to support direct calling.
58635*** Aborting" "$LINENO" 5
58636            fi
58637        fi
58638    else
58639        # were we supposed to have found something in the
58640        # post_configure.sh, but the file didn't exist?
58641        if test "$DIRECT_psensor" = "heartbeat" ; then
58642as_fn_error $? "*** psensor component heartbeat was supposed to be direct-called, but
58643*** does not appear to support direct calling.
58644*** Aborting" "$LINENO" 5
58645        fi
58646    fi
58647
58648    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
58649    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
58650    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
58651    # component didn't have it's own configure script (in which case,
58652    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
58653    # have to do this if the component is building dynamically,
58654    # because it will link against these (without a dependency from
58655    # libmpi.so to these flags)
58656    if test "$compile_mode" = "static"; then
58657        if test "$psensor_heartbeat_WRAPPER_EXTRA_LDFLAGS" = ""; then :
58658
58659
58660
58661    # Is the private index set?  If not, set it.
58662    if test "x$pmix_scope_index" = "x"; then
58663        pmix_scope_index=1
58664    fi
58665
58666    # First, check to see if any of these variables are already set.
58667    # This is a simple sanity check to ensure we're not already
58668    # overwriting pre-existing variables (that have a non-empty
58669    # value).  It's not a perfect check, but at least it's something.
58670    for pmix_var in pmix_tmp pmix_append; do
58671        pmix_str="pmix_str=\"\$$pmix_var\""
58672        eval $pmix_str
58673
58674        if test "x$pmix_str" != "x"; then
58675            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
58676$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
58677            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
58678$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
58679            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
58680$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
58681            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58682$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58683            as_fn_error $? "Cannot continue" "$LINENO" 5
58684        fi
58685    done
58686
58687    # Ok, we passed the simple sanity check.  Save all these names so
58688    # that we can unset them at the end of the scope.
58689    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
58690    eval $pmix_str
58691    unset pmix_str
58692
58693    env | grep pmix_scope
58694    pmix_scope_index=`expr $pmix_scope_index + 1`
58695
58696
58697    for arg in $psensor_heartbeat_LDFLAGS; do
58698        pmix_tmp=`echo $arg | cut -c1-2`
58699        pmix_append=1
58700        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
58701  for val in ${mca_wrapper_extra_ldflags}; do
58702                   if test "x$val" = "x$arg"; then :
58703  pmix_append=0
58704fi
58705               done
58706fi
58707        if test "$pmix_append" = "1"; then :
58708  if test -z "$mca_wrapper_extra_ldflags"; then :
58709  mca_wrapper_extra_ldflags=$arg
58710else
58711  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
58712fi
58713fi
58714    done
58715
58716
58717    # Unwind the index
58718    pmix_scope_index=`expr $pmix_scope_index - 1`
58719    pmix_scope_test=`expr $pmix_scope_index \> 0`
58720    if test "$pmix_scope_test" = "0"; then
58721        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
58722$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
58723        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58724$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58725        as_fn_error $? "Cannot continue" "$LINENO" 5
58726    fi
58727
58728    # Get the variable names from that index
58729    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
58730    eval $pmix_str
58731
58732    # Iterate over all the variables and unset them all
58733    for pmix_var in $pmix_str; do
58734        unset $pmix_var
58735    done
58736
58737
58738else
58739
58740
58741
58742    # Is the private index set?  If not, set it.
58743    if test "x$pmix_scope_index" = "x"; then
58744        pmix_scope_index=1
58745    fi
58746
58747    # First, check to see if any of these variables are already set.
58748    # This is a simple sanity check to ensure we're not already
58749    # overwriting pre-existing variables (that have a non-empty
58750    # value).  It's not a perfect check, but at least it's something.
58751    for pmix_var in pmix_tmp pmix_append; do
58752        pmix_str="pmix_str=\"\$$pmix_var\""
58753        eval $pmix_str
58754
58755        if test "x$pmix_str" != "x"; then
58756            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
58757$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
58758            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
58759$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
58760            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
58761$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
58762            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58763$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58764            as_fn_error $? "Cannot continue" "$LINENO" 5
58765        fi
58766    done
58767
58768    # Ok, we passed the simple sanity check.  Save all these names so
58769    # that we can unset them at the end of the scope.
58770    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
58771    eval $pmix_str
58772    unset pmix_str
58773
58774    env | grep pmix_scope
58775    pmix_scope_index=`expr $pmix_scope_index + 1`
58776
58777
58778    for arg in $psensor_heartbeat_WRAPPER_EXTRA_LDFLAGS; do
58779        pmix_tmp=`echo $arg | cut -c1-2`
58780        pmix_append=1
58781        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
58782  for val in ${mca_wrapper_extra_ldflags}; do
58783                   if test "x$val" = "x$arg"; then :
58784  pmix_append=0
58785fi
58786               done
58787fi
58788        if test "$pmix_append" = "1"; then :
58789  if test -z "$mca_wrapper_extra_ldflags"; then :
58790  mca_wrapper_extra_ldflags=$arg
58791else
58792  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
58793fi
58794fi
58795    done
58796
58797
58798    # Unwind the index
58799    pmix_scope_index=`expr $pmix_scope_index - 1`
58800    pmix_scope_test=`expr $pmix_scope_index \> 0`
58801    if test "$pmix_scope_test" = "0"; then
58802        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
58803$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
58804        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58805$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58806        as_fn_error $? "Cannot continue" "$LINENO" 5
58807    fi
58808
58809    # Get the variable names from that index
58810    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
58811    eval $pmix_str
58812
58813    # Iterate over all the variables and unset them all
58814    for pmix_var in $pmix_str; do
58815        unset $pmix_var
58816    done
58817
58818
58819fi
58820                        if test "$psensor_heartbeat_WRAPPER_EXTRA_LIBS" = ""; then :
58821
58822
58823
58824    # Is the private index set?  If not, set it.
58825    if test "x$pmix_scope_index" = "x"; then
58826        pmix_scope_index=1
58827    fi
58828
58829    # First, check to see if any of these variables are already set.
58830    # This is a simple sanity check to ensure we're not already
58831    # overwriting pre-existing variables (that have a non-empty
58832    # value).  It's not a perfect check, but at least it's something.
58833    for pmix_var in pmix_tmp pmix_append; do
58834        pmix_str="pmix_str=\"\$$pmix_var\""
58835        eval $pmix_str
58836
58837        if test "x$pmix_str" != "x"; then
58838            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
58839$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
58840            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
58841$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
58842            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
58843$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
58844            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58845$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58846            as_fn_error $? "Cannot continue" "$LINENO" 5
58847        fi
58848    done
58849
58850    # Ok, we passed the simple sanity check.  Save all these names so
58851    # that we can unset them at the end of the scope.
58852    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
58853    eval $pmix_str
58854    unset pmix_str
58855
58856    env | grep pmix_scope
58857    pmix_scope_index=`expr $pmix_scope_index + 1`
58858
58859
58860    for arg in $psensor_heartbeat_LIBS; do
58861        pmix_tmp=`echo $arg | cut -c1-2`
58862        pmix_append=1
58863        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
58864  for val in ${mca_wrapper_extra_libs}; do
58865                   if test "x$val" = "x$arg"; then :
58866  pmix_append=0
58867fi
58868               done
58869fi
58870        if test "$pmix_append" = "1"; then :
58871  if test -z "$mca_wrapper_extra_libs"; then :
58872  mca_wrapper_extra_libs=$arg
58873else
58874  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
58875fi
58876fi
58877    done
58878
58879
58880    # Unwind the index
58881    pmix_scope_index=`expr $pmix_scope_index - 1`
58882    pmix_scope_test=`expr $pmix_scope_index \> 0`
58883    if test "$pmix_scope_test" = "0"; then
58884        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
58885$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
58886        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58887$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58888        as_fn_error $? "Cannot continue" "$LINENO" 5
58889    fi
58890
58891    # Get the variable names from that index
58892    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
58893    eval $pmix_str
58894
58895    # Iterate over all the variables and unset them all
58896    for pmix_var in $pmix_str; do
58897        unset $pmix_var
58898    done
58899
58900
58901else
58902
58903
58904
58905    # Is the private index set?  If not, set it.
58906    if test "x$pmix_scope_index" = "x"; then
58907        pmix_scope_index=1
58908    fi
58909
58910    # First, check to see if any of these variables are already set.
58911    # This is a simple sanity check to ensure we're not already
58912    # overwriting pre-existing variables (that have a non-empty
58913    # value).  It's not a perfect check, but at least it's something.
58914    for pmix_var in pmix_tmp pmix_append; do
58915        pmix_str="pmix_str=\"\$$pmix_var\""
58916        eval $pmix_str
58917
58918        if test "x$pmix_str" != "x"; then
58919            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
58920$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
58921            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
58922$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
58923            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
58924$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
58925            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58926$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58927            as_fn_error $? "Cannot continue" "$LINENO" 5
58928        fi
58929    done
58930
58931    # Ok, we passed the simple sanity check.  Save all these names so
58932    # that we can unset them at the end of the scope.
58933    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
58934    eval $pmix_str
58935    unset pmix_str
58936
58937    env | grep pmix_scope
58938    pmix_scope_index=`expr $pmix_scope_index + 1`
58939
58940
58941    for arg in $psensor_heartbeat_WRAPPER_EXTRA_LIBS; do
58942        pmix_tmp=`echo $arg | cut -c1-2`
58943        pmix_append=1
58944        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
58945  for val in ${mca_wrapper_extra_libs}; do
58946                   if test "x$val" = "x$arg"; then :
58947  pmix_append=0
58948fi
58949               done
58950fi
58951        if test "$pmix_append" = "1"; then :
58952  if test -z "$mca_wrapper_extra_libs"; then :
58953  mca_wrapper_extra_libs=$arg
58954else
58955  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
58956fi
58957fi
58958    done
58959
58960
58961    # Unwind the index
58962    pmix_scope_index=`expr $pmix_scope_index - 1`
58963    pmix_scope_test=`expr $pmix_scope_index \> 0`
58964    if test "$pmix_scope_test" = "0"; then
58965        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
58966$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
58967        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
58968$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
58969        as_fn_error $? "Cannot continue" "$LINENO" 5
58970    fi
58971
58972    # Get the variable names from that index
58973    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
58974    eval $pmix_str
58975
58976    # Iterate over all the variables and unset them all
58977    for pmix_var in $pmix_str; do
58978        unset $pmix_var
58979    done
58980
58981
58982fi
58983
58984    fi
58985
58986    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
58987    # component can never be used in a STOP_AT_FIRST framework, we
58988    # don't have to implement the else clause in the literal check...
58989    if test "$psensor_heartbeat_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
58990  stop_at_first=0
58991            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
58992  if test "$with_devel_headers" = "yes"; then :
58993
58994
58995
58996    # Is the private index set?  If not, set it.
58997    if test "x$pmix_scope_index" = "x"; then
58998        pmix_scope_index=1
58999    fi
59000
59001    # First, check to see if any of these variables are already set.
59002    # This is a simple sanity check to ensure we're not already
59003    # overwriting pre-existing variables (that have a non-empty
59004    # value).  It's not a perfect check, but at least it's something.
59005    for pmix_var in pmix_tmp pmix_append; do
59006        pmix_str="pmix_str=\"\$$pmix_var\""
59007        eval $pmix_str
59008
59009        if test "x$pmix_str" != "x"; then
59010            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
59011$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
59012            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
59013$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
59014            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
59015$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
59016            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
59017$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
59018            as_fn_error $? "Cannot continue" "$LINENO" 5
59019        fi
59020    done
59021
59022    # Ok, we passed the simple sanity check.  Save all these names so
59023    # that we can unset them at the end of the scope.
59024    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
59025    eval $pmix_str
59026    unset pmix_str
59027
59028    env | grep pmix_scope
59029    pmix_scope_index=`expr $pmix_scope_index + 1`
59030
59031
59032    for arg in $psensor_heartbeat_WRAPPER_EXTRA_CPPFLAGS; do
59033        pmix_tmp=`echo $arg | cut -c1-2`
59034        pmix_append=1
59035        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
59036  for val in ${mca_wrapper_extra_cppflags}; do
59037                   if test "x$val" = "x$arg"; then :
59038  pmix_append=0
59039fi
59040               done
59041fi
59042        if test "$pmix_append" = "1"; then :
59043  if test -z "$mca_wrapper_extra_cppflags"; then :
59044  mca_wrapper_extra_cppflags=$arg
59045else
59046  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
59047fi
59048fi
59049    done
59050
59051
59052    # Unwind the index
59053    pmix_scope_index=`expr $pmix_scope_index - 1`
59054    pmix_scope_test=`expr $pmix_scope_index \> 0`
59055    if test "$pmix_scope_test" = "0"; then
59056        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
59057$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
59058        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
59059$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
59060        as_fn_error $? "Cannot continue" "$LINENO" 5
59061    fi
59062
59063    # Get the variable names from that index
59064    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
59065    eval $pmix_str
59066
59067    # Iterate over all the variables and unset them all
59068    for pmix_var in $pmix_str; do
59069        unset $pmix_var
59070    done
59071
59072
59073fi
59074else
59075  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring psensor_heartbeat_WRAPPER_EXTRA_CPPFLAGS ($psensor_heartbeat_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
59076$as_echo "$as_me: WARNING: ignoring psensor_heartbeat_WRAPPER_EXTRA_CPPFLAGS ($psensor_heartbeat_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
59077fi
59078fi
59079
59080    else
59081
59082    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psensor:heartbeat can compile" >&5
59083$as_echo_n "checking if MCA component psensor:heartbeat can compile... " >&6; }
59084    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59085$as_echo "no" >&6; }
59086
59087    # If this component was requested as the default for this
59088    # type, then abort.
59089    if test "$with_psensor" = "heartbeat" ; then
59090        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"heartbeat\" failed to configure properly" >&5
59091$as_echo "$as_me: WARNING: MCA component \"heartbeat\" failed to configure properly" >&2;}
59092        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
59093$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
59094        as_fn_error $? "Cannot continue" "$LINENO" 5
59095    fi
59096
59097    if test ! -z "$DIRECT_psensor" ; then
59098        if test "$DIRECT_psensor" = "heartbeat" ; then
59099            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"heartbeat\" failed to configure properly" >&5
59100$as_echo "$as_me: WARNING: MCA component \"heartbeat\" failed to configure properly" >&2;}
59101            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
59102$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
59103            as_fn_error $? "Cannot continue" "$LINENO" 5
59104        fi
59105    fi
59106
59107        # add component to all component list
59108        all_components="$all_components heartbeat"
59109    fi
59110
59111    # set the AM_CONDITIONAL on how we should build
59112    if test "$compile_mode" = "dso" ; then
59113        BUILD_pmix_psensor_heartbeat_DSO=1
59114    else
59115        BUILD_pmix_psensor_heartbeat_DSO=0
59116    fi
59117     if test "$BUILD_pmix_psensor_heartbeat_DSO" = "1"; then
59118  MCA_BUILD_pmix_psensor_heartbeat_DSO_TRUE=
59119  MCA_BUILD_pmix_psensor_heartbeat_DSO_FALSE='#'
59120else
59121  MCA_BUILD_pmix_psensor_heartbeat_DSO_TRUE='#'
59122  MCA_BUILD_pmix_psensor_heartbeat_DSO_FALSE=
59123fi
59124
59125
59126    ac_config_files="$ac_config_files src/mca/psensor/heartbeat/Makefile"
59127
59128
59129    unset compile_mode
59130
59131
59132    # configure components that use built-in configuration scripts
59133
59134
59135
59136    best_mca_component_priority=0
59137    components_looking_for_succeed=1
59138    components_last_result=0
59139
59140
59141    # configure components that provide their own configure script.
59142    # It would be really hard to run these for "find first that
59143    # works", so we don't :)
59144
59145
59146
59147                  if test "1" != "0"; then :
59148
59149    for component_path in $srcdir/src/mca/psensor/* ; do
59150        component="`basename $component_path`"
59151        if test -d $component_path && test -x $component_path/configure ; then
59152            pmix_show_subsubsubtitle "MCA component psensor:$component (need to configure)"
59153
59154            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build="
59155
59156
59157
59158    component_path="$srcdir/src/mca/psensor/$component"
59159    want_component=0
59160
59161    # build if:
59162    # - the component type is direct and we are that component
59163    # - there is no pmix_ignore file
59164    # - there is an pmix_ignore, but there is an empty pmix_unignore
59165    # - there is an pmix_ignore, but username is in pmix_unignore
59166    if test -d $component_path ; then
59167        # decide if we want the component to be built or not.  This
59168        # is spread out because some of the logic is a little complex
59169        # and test's syntax isn't exactly the greatest.  We want to
59170        # build the component by default.
59171        want_component=1
59172        if test -f $component_path/.pmix_ignore ; then
59173            # If there is an pmix_ignore file, don't build
59174            # the component.  Note that this decision can be
59175            # overridden by the unignore logic below.
59176            want_component=0
59177        fi
59178        if test -f $component_path/.pmix_unignore ; then
59179            # if there is an empty pmix_unignore, that is
59180            # equivalent to having your userid in the unignore file.
59181            # If userid is in the file, unignore the ignore file.
59182            if test ! -s $component_path/.pmix_unignore ; then
59183                want_component=1
59184            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
59185                want_component=1
59186            fi
59187        fi
59188        # if this component type is direct and we are not it, we don't want
59189        # to be built.  Otherwise, we do want to be built.
59190        if test ! -z "$DIRECT_psensor" ; then
59191            if test "$DIRECT_psensor" = "$component" ; then
59192                want_component=1
59193            else
59194                want_component=0
59195            fi
59196        fi
59197    fi
59198
59199    # if we were explicitly disabled, don't build :)
59200    if test "$DISABLE_psensor" = "1"; then :
59201  want_component=0
59202fi
59203    str="DISABLED_COMPONENT_CHECK=\$DISABLE_psensor_$component"
59204         eval $str
59205         if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
59206             want_component=0
59207         fi
59208
59209    if test "$want_component" = "1"; then :
59210  should_build=1
59211else
59212  should_build=0
59213fi
59214
59215
59216    SHARED_FRAMEWORK="$DSO_psensor"
59217    str="SHARED_COMPONENT=\$DSO_psensor_$component"
59218         eval $str
59219
59220    STATIC_FRAMEWORK="$STATIC_psensor"
59221    str="STATIC_COMPONENT=\$STATIC_psensor_$component"
59222         eval $str
59223
59224    shared_mode_override=static
59225
59226    # Setup for either shared or static
59227    if test "$STATIC_FRAMEWORK" = "1" || \
59228       test "$STATIC_COMPONENT" = "1" || \
59229       test "$STATIC_all" = "1" ; then
59230        compile_mode="static"
59231    elif test "$shared_mode_override" = "dso" || \
59232         test "$SHARED_FRAMEWORK" = "1" || \
59233         test "$SHARED_COMPONENT" = "1" || \
59234         test "$DSO_all" = "1"; then
59235        compile_mode="dso"
59236    else
59237        compile_mode="static"
59238    fi
59239
59240    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component psensor:$component compile mode" >&5
59241$as_echo_n "checking for MCA component psensor:$component compile mode... " >&6; }
59242    if test "$DIRECT_psensor" = "$component" ; then
59243        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
59244$as_echo "$compile_mode - direct" >&6; }
59245    else
59246        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
59247$as_echo "$compile_mode" >&6; }
59248    fi
59249
59250            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build"
59251
59252            if test "$should_build" = "1" ; then
59253
59254
59255
59256    # Is the private index set?  If not, set it.
59257    if test "x$pmix_scope_index" = "x"; then
59258        pmix_scope_index=1
59259    fi
59260
59261    # First, check to see if any of these variables are already set.
59262    # This is a simple sanity check to ensure we're not already
59263    # overwriting pre-existing variables (that have a non-empty
59264    # value).  It's not a perfect check, but at least it's something.
59265    for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do
59266        pmix_str="pmix_str=\"\$$pmix_var\""
59267        eval $pmix_str
59268
59269        if test "x$pmix_str" != "x"; then
59270            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
59271$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
59272            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
59273$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
59274            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
59275$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
59276            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
59277$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
59278            as_fn_error $? "Cannot continue" "$LINENO" 5
59279        fi
59280    done
59281
59282    # Ok, we passed the simple sanity check.  Save all these names so
59283    # that we can unset them at the end of the scope.
59284    pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\""
59285    eval $pmix_str
59286    unset pmix_str
59287
59288    env | grep pmix_scope
59289    pmix_scope_index=`expr $pmix_scope_index + 1`
59290
59291
59292#
59293# Invoke configure in a specific subdirectory.
59294#
59295# src/mca/psensor/$component is the directory to invoke in
59296# $pmix_subdir_args is the list of arguments to pass
59297# should_build=1 is actions to execute upon success
59298# should_build=0 is actions to execute upon failure
59299#
59300subdir_dir="src/mca/psensor/$component"
59301subdir_args="$pmix_subdir_args"
59302subdir_success="should_build=1"
59303subdir_failure="should_build=0"
59304
59305#
59306# Sanity checks
59307#
59308
59309if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then
59310    { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5
59311$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;}
59312
59313    #
59314    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
59315    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
59316    # into it.
59317    #
59318
59319    case $srcdir in
59320    .)
59321	;;
59322    *)
59323	{ case $subdir_dir in
59324	[\\/]* | ?:[\\/]* ) total_dir=;;
59325	*)                      total_dir=.;;
59326	esac
59327	temp=$subdir_dir
59328	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
59329	    case $dir_part in
59330	    # Skip DOS drivespec
59331	    ?:) total_dir=$dir_part ;;
59332	    *)  total_dir=$total_dir/$dir_part
59333		test -d "$total_dir" ||
59334		mkdir "$total_dir" ||
59335		as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5
59336		;;
59337	    esac
59338	done; }
59339
59340	if test -d ./$subdir_dir; then :;
59341	else
59342	    as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
59343	fi
59344	;;
59345    esac
59346
59347    #
59348    # Move into the target directory
59349    #
59350
59351    subdir_parent=`pwd`
59352    cd $subdir_dir
59353
59354    #
59355    # Make a "../" for each directory in $subdir_dir.
59356    #
59357
59358    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
59359    #
59360    # Construct the --srcdir argument
59361    #
59362
59363    case $srcdir in
59364    .)
59365	# In place
59366	subdir_srcdir="$srcdir"
59367	;;
59368    [\\/]* | ?:[\\/]* )
59369	# Absolute path
59370	subdir_srcdir="$srcdir/$subdir_dir"
59371	;;
59372    *)
59373	# Relative path
59374	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
59375	;;
59376    esac
59377
59378    #
59379    # Construct the --cache-file argument
59380    #
59381
59382    # BWB - subdir caching is a pain since we change CFLAGS and all that.
59383    # Just disable it for now
59384    subdir_cache_file="/dev/null"
59385
59386    #
59387    # Invoke the configure script in the subdirectory
59388    #
59389
59390    sub_configure="$SHELL '$subdir_srcdir/configure'"
59391    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
59392$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
59393    eval "$sub_configure $subdir_args \
59394	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
59395    if test "$?" = "0"; then
59396	eval $subdir_success
59397	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
59398$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
59399    else
59400	eval $subdir_failure
59401	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
59402$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
59403    fi
59404
59405    #
59406    # Go back to the topdir
59407    #
59408
59409    cd $subdir_parent
59410fi
59411
59412#
59413# Clean up
59414#
59415
59416
59417    # Unwind the index
59418    pmix_scope_index=`expr $pmix_scope_index - 1`
59419    pmix_scope_test=`expr $pmix_scope_index \> 0`
59420    if test "$pmix_scope_test" = "0"; then
59421        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
59422$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
59423        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
59424$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
59425        as_fn_error $? "Cannot continue" "$LINENO" 5
59426    fi
59427
59428    # Get the variable names from that index
59429    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
59430    eval $pmix_str
59431
59432    # Iterate over all the variables and unset them all
59433    for pmix_var in $pmix_str; do
59434        unset $pmix_var
59435    done
59436
59437                pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build"
59438            fi
59439
59440            if test "$should_build" = "1" ; then
59441                # do some extra work to pass flags back from the
59442                # top-level configure, the way a configure.m4
59443                # component would.
59444                infile="$srcdir/src/mca/psensor/all_components/post_configure.sh"
59445                if test -f $infile; then
59446
59447                    # First check for the ABORT tag
59448                    line="`$GREP ABORT= $infile | cut -d= -f2-`"
59449                    if test -n "$line" && test "$line" != "no"; then
59450                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
59451$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
59452                        as_fn_error $? "cannot continue" "$LINENO" 5
59453                    fi
59454
59455                    line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
59456                            eval "line=$line"
59457                            if test -n "$line"; then
59458                                all_components_static_components_WRAPPER_EXTRA_LDFLAGS="$line"
59459                            fi
59460                        line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
59461                            eval "line=$line"
59462                            if test -n "$line"; then
59463                                all_components_static_components_WRAPPER_EXTRA_LIBS="$line"
59464                            fi
59465                                        fi
59466
59467
59468
59469
59470    # See if it dropped an output file for us to pick up some
59471    # shell variables in.
59472    infile="$srcdir/src/mca/psensor/$component/post_configure.sh"
59473
59474    # Add this subdir to the mast list of all MCA component subdirs
59475    all_components="$all_components $component"
59476
59477    if test "$compile_mode" = "dso" ; then
59478        dso_components="$dso_components $component"
59479    else
59480        if test "psensor" = "common"; then
59481            # Static libraries in "common" frameworks are installed, and
59482            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
59483            # set.
59484            static_ltlibs="mca/psensor/$component/lib${PMIX_LIB_PREFIX}mca_psensor_$component.la $static_ltlibs"
59485        else
59486            # Other frameworks do not have to obey the
59487            # $FRAMEWORK_LIB_PREFIX prefix.
59488            static_ltlibs="mca/psensor/$component/libmca_psensor_$component.la $static_ltlibs"
59489        fi
59490        echo "extern const pmix_mca_base_component_t mca_psensor_$component_component;" >> $outfile.extern
59491        echo "  &mca_psensor_$component_component, " >> $outfile.struct
59492        static_components="$static_components $component"
59493    fi
59494
59495    # Output pretty results
59496    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psensor:$component can compile" >&5
59497$as_echo_n "checking if MCA component psensor:$component can compile... " >&6; }
59498    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59499$as_echo "yes" >&6; }
59500
59501                        if test -f $infile; then
59502        # check for direct call header to include.  This will be
59503        # AC_SUBSTed later.
59504        if test "$DIRECT_psensor" = "$component" ; then
59505            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
59506                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
59507                str="MCA_pmix_psensor_DIRECT_CALL_HEADER=$line"
59508                eval $str
59509            else
59510as_fn_error $? "*** psensor component $component was supposed to be direct-called, but
59511*** does not appear to support direct calling.
59512*** Aborting" "$LINENO" 5
59513            fi
59514        fi
59515    else
59516        # were we supposed to have found something in the
59517        # post_configure.sh, but the file didn't exist?
59518        if test "$DIRECT_psensor" = "$component" ; then
59519as_fn_error $? "*** psensor component $component was supposed to be direct-called, but
59520*** does not appear to support direct calling.
59521*** Aborting" "$LINENO" 5
59522        fi
59523    fi
59524
59525    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
59526    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
59527    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
59528    # component didn't have it's own configure script (in which case,
59529    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
59530    # have to do this if the component is building dynamically,
59531    # because it will link against these (without a dependency from
59532    # libmpi.so to these flags)
59533    if test "$compile_mode" = "static"; then
59534        str="line=\$psensor_$component_WRAPPER_EXTRA_LDFLAGS"
59535                      eval "$str"
59536
59537
59538
59539    # Is the private index set?  If not, set it.
59540    if test "x$pmix_scope_index" = "x"; then
59541        pmix_scope_index=1
59542    fi
59543
59544    # First, check to see if any of these variables are already set.
59545    # This is a simple sanity check to ensure we're not already
59546    # overwriting pre-existing variables (that have a non-empty
59547    # value).  It's not a perfect check, but at least it's something.
59548    for pmix_var in pmix_tmp pmix_append; do
59549        pmix_str="pmix_str=\"\$$pmix_var\""
59550        eval $pmix_str
59551
59552        if test "x$pmix_str" != "x"; then
59553            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
59554$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
59555            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
59556$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
59557            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
59558$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
59559            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
59560$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
59561            as_fn_error $? "Cannot continue" "$LINENO" 5
59562        fi
59563    done
59564
59565    # Ok, we passed the simple sanity check.  Save all these names so
59566    # that we can unset them at the end of the scope.
59567    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
59568    eval $pmix_str
59569    unset pmix_str
59570
59571    env | grep pmix_scope
59572    pmix_scope_index=`expr $pmix_scope_index + 1`
59573
59574
59575    for arg in $line; do
59576        pmix_tmp=`echo $arg | cut -c1-2`
59577        pmix_append=1
59578        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
59579  for val in ${mca_wrapper_extra_ldflags}; do
59580                   if test "x$val" = "x$arg"; then :
59581  pmix_append=0
59582fi
59583               done
59584fi
59585        if test "$pmix_append" = "1"; then :
59586  if test -z "$mca_wrapper_extra_ldflags"; then :
59587  mca_wrapper_extra_ldflags=$arg
59588else
59589  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
59590fi
59591fi
59592    done
59593
59594
59595    # Unwind the index
59596    pmix_scope_index=`expr $pmix_scope_index - 1`
59597    pmix_scope_test=`expr $pmix_scope_index \> 0`
59598    if test "$pmix_scope_test" = "0"; then
59599        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
59600$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
59601        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
59602$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
59603        as_fn_error $? "Cannot continue" "$LINENO" 5
59604    fi
59605
59606    # Get the variable names from that index
59607    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
59608    eval $pmix_str
59609
59610    # Iterate over all the variables and unset them all
59611    for pmix_var in $pmix_str; do
59612        unset $pmix_var
59613    done
59614
59615str="line=\$psensor_$component_WRAPPER_EXTRA_LIBS"
59616                      eval "$str"
59617
59618
59619
59620    # Is the private index set?  If not, set it.
59621    if test "x$pmix_scope_index" = "x"; then
59622        pmix_scope_index=1
59623    fi
59624
59625    # First, check to see if any of these variables are already set.
59626    # This is a simple sanity check to ensure we're not already
59627    # overwriting pre-existing variables (that have a non-empty
59628    # value).  It's not a perfect check, but at least it's something.
59629    for pmix_var in pmix_tmp pmix_append; do
59630        pmix_str="pmix_str=\"\$$pmix_var\""
59631        eval $pmix_str
59632
59633        if test "x$pmix_str" != "x"; then
59634            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
59635$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
59636            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
59637$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
59638            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
59639$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
59640            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
59641$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
59642            as_fn_error $? "Cannot continue" "$LINENO" 5
59643        fi
59644    done
59645
59646    # Ok, we passed the simple sanity check.  Save all these names so
59647    # that we can unset them at the end of the scope.
59648    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
59649    eval $pmix_str
59650    unset pmix_str
59651
59652    env | grep pmix_scope
59653    pmix_scope_index=`expr $pmix_scope_index + 1`
59654
59655
59656    for arg in $line; do
59657        pmix_tmp=`echo $arg | cut -c1-2`
59658        pmix_append=1
59659        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
59660  for val in ${mca_wrapper_extra_libs}; do
59661                   if test "x$val" = "x$arg"; then :
59662  pmix_append=0
59663fi
59664               done
59665fi
59666        if test "$pmix_append" = "1"; then :
59667  if test -z "$mca_wrapper_extra_libs"; then :
59668  mca_wrapper_extra_libs=$arg
59669else
59670  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
59671fi
59672fi
59673    done
59674
59675
59676    # Unwind the index
59677    pmix_scope_index=`expr $pmix_scope_index - 1`
59678    pmix_scope_test=`expr $pmix_scope_index \> 0`
59679    if test "$pmix_scope_test" = "0"; then
59680        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
59681$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
59682        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
59683$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
59684        as_fn_error $? "Cannot continue" "$LINENO" 5
59685    fi
59686
59687    # Get the variable names from that index
59688    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
59689    eval $pmix_str
59690
59691    # Iterate over all the variables and unset them all
59692    for pmix_var in $pmix_str; do
59693        unset $pmix_var
59694    done
59695
59696
59697    fi
59698
59699    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
59700    # component can never be used in a STOP_AT_FIRST framework, we
59701    # don't have to implement the else clause in the literal check...
59702
59703
59704            else
59705
59706    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component psensor:$component can compile" >&5
59707$as_echo_n "checking if MCA component psensor:$component can compile... " >&6; }
59708    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
59709$as_echo "no" >&6; }
59710
59711    # If this component was requested as the default for this
59712    # type, then abort.
59713    if test "$with_psensor" = "$component" ; then
59714        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
59715$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
59716        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
59717$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
59718        as_fn_error $? "Cannot continue" "$LINENO" 5
59719    fi
59720
59721    if test ! -z "$DIRECT_psensor" ; then
59722        if test "$DIRECT_psensor" = "$component" ; then
59723            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
59724$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
59725            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
59726$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
59727            as_fn_error $? "Cannot continue" "$LINENO" 5
59728        fi
59729    fi
59730
59731            fi
59732        fi
59733    done
59734
59735fi
59736
59737    MCA_pmix_psensor_ALL_COMPONENTS="$all_components"
59738    MCA_pmix_psensor_STATIC_COMPONENTS="$static_components"
59739    MCA_pmix_psensor_DSO_COMPONENTS="$dso_components"
59740    MCA_pmix_psensor_STATIC_LTLIBS="$static_ltlibs"
59741
59742
59743
59744
59745
59746
59747
59748    MCA_pmix_psensor_ALL_SUBDIRS=
59749    for item in $all_components ; do
59750       MCA_pmix_psensor_ALL_SUBDIRS="$MCA_pmix_psensor_ALL_SUBDIRS mca/psensor/$item"
59751    done
59752
59753
59754
59755    MCA_pmix_psensor_STATIC_SUBDIRS=
59756    for item in $static_components ; do
59757       MCA_pmix_psensor_STATIC_SUBDIRS="$MCA_pmix_psensor_STATIC_SUBDIRS mca/psensor/$item"
59758    done
59759
59760
59761
59762    MCA_pmix_psensor_DSO_SUBDIRS=
59763    for item in $dso_components ; do
59764       MCA_pmix_psensor_DSO_SUBDIRS="$MCA_pmix_psensor_DSO_SUBDIRS mca/psensor/$item"
59765    done
59766
59767
59768
59769    # Create the final .h file that will be included in the type's
59770    # top-level glue.  This lists all the static components.  We don't
59771    # need to do this for "common".
59772    if test "psensor" != "common"; then
59773        cat > $outfile <<EOF
59774/*
59775 * \$HEADER\$
59776 */
59777#if defined(c_plusplus) || defined(__cplusplus)
59778extern "C" {
59779#endif
59780
59781`cat $outfile.extern`
59782
59783const pmix_mca_base_component_t *mca_psensor_base_static_components[] = {
59784`cat $outfile.struct`
59785  NULL
59786};
59787
59788#if defined(c_plusplus) || defined(__cplusplus)
59789}
59790#endif
59791
59792EOF
59793        # Only replace the header file if a) it doesn't previously
59794        # exist, or b) the contents are different.  Do this to not
59795        # trigger recompilation of certain .c files just because the
59796        # timestamp changed on $outfile_real (similar to the way AC
59797        # handles AC_CONFIG_HEADER files).
59798        diff $outfile $outfile_real > /dev/null 2>&1
59799        if test "$?" != "0"; then
59800            mv $outfile $outfile_real
59801        else
59802            rm -f $outfile
59803        fi
59804    fi
59805    rm -f $outfile.struct $outfile.extern
59806
59807    unset all_components static_components dso_components outfile outfile_real
59808
59809                                 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS pshmem"
59810                                 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/pshmem"
59811                                 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_pshmem_ALL_SUBDIRS)"
59812                                 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_pshmem_DSO_SUBDIRS)"
59813                                 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_pshmem_STATIC_SUBDIRS)"
59814                                 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/pshmem/libmca_pshmem.la"
59815                          MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_pshmem_STATIC_LTLIBS)"
59816
59817    pmix_show_subsubtitle "Configuring MCA framework pshmem"
59818
59819
59820
59821
59822    # setup for framework
59823    all_components=
59824    static_components=
59825    dso_components=
59826    static_ltlibs=
59827
59828    # Ensure that the directory where the #include file is to live
59829    # exists.  Need to do this for VPATH builds, because the directory
59830    # may not exist yet.  For the "common" type, it's not really a
59831    # component, so it doesn't have a base.
59832    outdir=src/mca/pshmem/base
59833    as_dir=$outdir; as_fn_mkdir_p
59834
59835    # emit Makefile rule
59836    ac_config_files="$ac_config_files src/mca/pshmem/Makefile"
59837
59838
59839    # remove any previously generated #include files
59840    outfile_real=$outdir/static-components.h
59841    outfile=$outfile_real.new
59842    rm -f $outfile $outfile.struct $outfile.extern
59843    touch $outfile.struct $outfile.extern
59844
59845    # print some nice messages about what we're about to do...
59846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework pshmem" >&5
59847$as_echo_n "checking for no configure components in framework pshmem... " >&6; }
59848    { $as_echo "$as_me:${as_lineno-$LINENO}: result: mmap" >&5
59849$as_echo "mmap" >&6; }
59850    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework pshmem" >&5
59851$as_echo_n "checking for m4 configure components in framework pshmem... " >&6; }
59852    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
59853$as_echo "" >&6; }
59854
59855    # If there are components in the no configure list, but we're
59856    # doing one of the "special" selection logics, abort with a
59857    # reasonable message.
59858
59859
59860
59861    # run the configure logic for the no-config components
59862
59863    pmix_show_subsubsubtitle "MCA component pshmem:mmap (no configuration)"
59864
59865    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1"
59866
59867
59868
59869    component_path="$srcdir/src/mca/pshmem/mmap"
59870    want_component=0
59871
59872    # build if:
59873    # - the component type is direct and we are that component
59874    # - there is no pmix_ignore file
59875    # - there is an pmix_ignore, but there is an empty pmix_unignore
59876    # - there is an pmix_ignore, but username is in pmix_unignore
59877    if test -d $component_path ; then
59878        # decide if we want the component to be built or not.  This
59879        # is spread out because some of the logic is a little complex
59880        # and test's syntax isn't exactly the greatest.  We want to
59881        # build the component by default.
59882        want_component=1
59883        if test -f $component_path/.pmix_ignore ; then
59884            # If there is an pmix_ignore file, don't build
59885            # the component.  Note that this decision can be
59886            # overridden by the unignore logic below.
59887            want_component=0
59888        fi
59889        if test -f $component_path/.pmix_unignore ; then
59890            # if there is an empty pmix_unignore, that is
59891            # equivalent to having your userid in the unignore file.
59892            # If userid is in the file, unignore the ignore file.
59893            if test ! -s $component_path/.pmix_unignore ; then
59894                want_component=1
59895            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
59896                want_component=1
59897            fi
59898        fi
59899        # if this component type is direct and we are not it, we don't want
59900        # to be built.  Otherwise, we do want to be built.
59901        if test ! -z "$DIRECT_pshmem" ; then
59902            if test "$DIRECT_pshmem" = "mmap" ; then
59903                want_component=1
59904            else
59905                want_component=0
59906            fi
59907        fi
59908    fi
59909
59910    # if we were explicitly disabled, don't build :)
59911    if test "$DISABLE_pshmem" = "1"; then :
59912  want_component=0
59913fi
59914    if test "$DISABLE_pshmem_mmap" = "1"; then :
59915  want_component=0
59916fi
59917
59918    if test "$want_component" = "1"; then :
59919  should_build=1
59920else
59921  should_build=0
59922fi
59923
59924
59925    SHARED_FRAMEWORK="$DSO_pshmem"
59926    SHARED_COMPONENT="$DSO_pshmem_mmap"
59927
59928    STATIC_FRAMEWORK="$STATIC_pshmem"
59929    STATIC_COMPONENT="$STATIC_pshmem_mmap"
59930
59931    shared_mode_override=static
59932
59933    # Setup for either shared or static
59934    if test "$STATIC_FRAMEWORK" = "1" || \
59935       test "$STATIC_COMPONENT" = "1" || \
59936       test "$STATIC_all" = "1" ; then
59937        compile_mode="static"
59938    elif test "$shared_mode_override" = "dso" || \
59939         test "$SHARED_FRAMEWORK" = "1" || \
59940         test "$SHARED_COMPONENT" = "1" || \
59941         test "$DSO_all" = "1"; then
59942        compile_mode="dso"
59943    else
59944        compile_mode="static"
59945    fi
59946
59947    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pshmem:mmap compile mode" >&5
59948$as_echo_n "checking for MCA component pshmem:mmap compile mode... " >&6; }
59949    if test "$DIRECT_pshmem" = "mmap" ; then
59950        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
59951$as_echo "$compile_mode - direct" >&6; }
59952    else
59953        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
59954$as_echo "$compile_mode" >&6; }
59955    fi
59956
59957    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build"
59958
59959    if test "$should_build" = "1" ; then
59960
59961
59962
59963    # See if it dropped an output file for us to pick up some
59964    # shell variables in.
59965    infile="$srcdir/src/mca/pshmem/mmap/post_configure.sh"
59966
59967    # Add this subdir to the mast list of all MCA component subdirs
59968    all_components="$all_components mmap"
59969
59970    if test "$compile_mode" = "dso" ; then
59971        dso_components="$dso_components mmap"
59972    else
59973        if test "pshmem" = "common"; then
59974            # Static libraries in "common" frameworks are installed, and
59975            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
59976            # set.
59977            static_ltlibs="mca/pshmem/mmap/lib${PMIX_LIB_PREFIX}mca_pshmem_mmap.la $static_ltlibs"
59978        else
59979            # Other frameworks do not have to obey the
59980            # $FRAMEWORK_LIB_PREFIX prefix.
59981            static_ltlibs="mca/pshmem/mmap/libmca_pshmem_mmap.la $static_ltlibs"
59982        fi
59983        echo "extern const pmix_mca_base_component_t mca_pshmem_mmap_component;" >> $outfile.extern
59984        echo "  &mca_pshmem_mmap_component, " >> $outfile.struct
59985        static_components="$static_components mmap"
59986    fi
59987
59988    # Output pretty results
59989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pshmem:mmap can compile" >&5
59990$as_echo_n "checking if MCA component pshmem:mmap can compile... " >&6; }
59991    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
59992$as_echo "yes" >&6; }
59993
59994                        if test -f $infile; then
59995        # check for direct call header to include.  This will be
59996        # AC_SUBSTed later.
59997        if test "$DIRECT_pshmem" = "mmap" ; then
59998            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
59999                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
60000                str="MCA_pmix_pshmem_DIRECT_CALL_HEADER=$line"
60001                eval $str
60002            else
60003as_fn_error $? "*** pshmem component mmap was supposed to be direct-called, but
60004*** does not appear to support direct calling.
60005*** Aborting" "$LINENO" 5
60006            fi
60007        fi
60008    else
60009        # were we supposed to have found something in the
60010        # post_configure.sh, but the file didn't exist?
60011        if test "$DIRECT_pshmem" = "mmap" ; then
60012as_fn_error $? "*** pshmem component mmap was supposed to be direct-called, but
60013*** does not appear to support direct calling.
60014*** Aborting" "$LINENO" 5
60015        fi
60016    fi
60017
60018    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
60019    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
60020    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
60021    # component didn't have it's own configure script (in which case,
60022    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
60023    # have to do this if the component is building dynamically,
60024    # because it will link against these (without a dependency from
60025    # libmpi.so to these flags)
60026    if test "$compile_mode" = "static"; then
60027        if test "$pshmem_mmap_WRAPPER_EXTRA_LDFLAGS" = ""; then :
60028
60029
60030
60031    # Is the private index set?  If not, set it.
60032    if test "x$pmix_scope_index" = "x"; then
60033        pmix_scope_index=1
60034    fi
60035
60036    # First, check to see if any of these variables are already set.
60037    # This is a simple sanity check to ensure we're not already
60038    # overwriting pre-existing variables (that have a non-empty
60039    # value).  It's not a perfect check, but at least it's something.
60040    for pmix_var in pmix_tmp pmix_append; do
60041        pmix_str="pmix_str=\"\$$pmix_var\""
60042        eval $pmix_str
60043
60044        if test "x$pmix_str" != "x"; then
60045            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
60046$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
60047            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
60048$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
60049            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
60050$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
60051            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60052$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60053            as_fn_error $? "Cannot continue" "$LINENO" 5
60054        fi
60055    done
60056
60057    # Ok, we passed the simple sanity check.  Save all these names so
60058    # that we can unset them at the end of the scope.
60059    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
60060    eval $pmix_str
60061    unset pmix_str
60062
60063    env | grep pmix_scope
60064    pmix_scope_index=`expr $pmix_scope_index + 1`
60065
60066
60067    for arg in $pshmem_mmap_LDFLAGS; do
60068        pmix_tmp=`echo $arg | cut -c1-2`
60069        pmix_append=1
60070        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
60071  for val in ${mca_wrapper_extra_ldflags}; do
60072                   if test "x$val" = "x$arg"; then :
60073  pmix_append=0
60074fi
60075               done
60076fi
60077        if test "$pmix_append" = "1"; then :
60078  if test -z "$mca_wrapper_extra_ldflags"; then :
60079  mca_wrapper_extra_ldflags=$arg
60080else
60081  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
60082fi
60083fi
60084    done
60085
60086
60087    # Unwind the index
60088    pmix_scope_index=`expr $pmix_scope_index - 1`
60089    pmix_scope_test=`expr $pmix_scope_index \> 0`
60090    if test "$pmix_scope_test" = "0"; then
60091        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
60092$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
60093        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60094$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60095        as_fn_error $? "Cannot continue" "$LINENO" 5
60096    fi
60097
60098    # Get the variable names from that index
60099    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
60100    eval $pmix_str
60101
60102    # Iterate over all the variables and unset them all
60103    for pmix_var in $pmix_str; do
60104        unset $pmix_var
60105    done
60106
60107
60108else
60109
60110
60111
60112    # Is the private index set?  If not, set it.
60113    if test "x$pmix_scope_index" = "x"; then
60114        pmix_scope_index=1
60115    fi
60116
60117    # First, check to see if any of these variables are already set.
60118    # This is a simple sanity check to ensure we're not already
60119    # overwriting pre-existing variables (that have a non-empty
60120    # value).  It's not a perfect check, but at least it's something.
60121    for pmix_var in pmix_tmp pmix_append; do
60122        pmix_str="pmix_str=\"\$$pmix_var\""
60123        eval $pmix_str
60124
60125        if test "x$pmix_str" != "x"; then
60126            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
60127$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
60128            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
60129$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
60130            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
60131$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
60132            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60133$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60134            as_fn_error $? "Cannot continue" "$LINENO" 5
60135        fi
60136    done
60137
60138    # Ok, we passed the simple sanity check.  Save all these names so
60139    # that we can unset them at the end of the scope.
60140    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
60141    eval $pmix_str
60142    unset pmix_str
60143
60144    env | grep pmix_scope
60145    pmix_scope_index=`expr $pmix_scope_index + 1`
60146
60147
60148    for arg in $pshmem_mmap_WRAPPER_EXTRA_LDFLAGS; do
60149        pmix_tmp=`echo $arg | cut -c1-2`
60150        pmix_append=1
60151        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
60152  for val in ${mca_wrapper_extra_ldflags}; do
60153                   if test "x$val" = "x$arg"; then :
60154  pmix_append=0
60155fi
60156               done
60157fi
60158        if test "$pmix_append" = "1"; then :
60159  if test -z "$mca_wrapper_extra_ldflags"; then :
60160  mca_wrapper_extra_ldflags=$arg
60161else
60162  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
60163fi
60164fi
60165    done
60166
60167
60168    # Unwind the index
60169    pmix_scope_index=`expr $pmix_scope_index - 1`
60170    pmix_scope_test=`expr $pmix_scope_index \> 0`
60171    if test "$pmix_scope_test" = "0"; then
60172        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
60173$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
60174        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60175$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60176        as_fn_error $? "Cannot continue" "$LINENO" 5
60177    fi
60178
60179    # Get the variable names from that index
60180    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
60181    eval $pmix_str
60182
60183    # Iterate over all the variables and unset them all
60184    for pmix_var in $pmix_str; do
60185        unset $pmix_var
60186    done
60187
60188
60189fi
60190                        if test "$pshmem_mmap_WRAPPER_EXTRA_LIBS" = ""; then :
60191
60192
60193
60194    # Is the private index set?  If not, set it.
60195    if test "x$pmix_scope_index" = "x"; then
60196        pmix_scope_index=1
60197    fi
60198
60199    # First, check to see if any of these variables are already set.
60200    # This is a simple sanity check to ensure we're not already
60201    # overwriting pre-existing variables (that have a non-empty
60202    # value).  It's not a perfect check, but at least it's something.
60203    for pmix_var in pmix_tmp pmix_append; do
60204        pmix_str="pmix_str=\"\$$pmix_var\""
60205        eval $pmix_str
60206
60207        if test "x$pmix_str" != "x"; then
60208            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
60209$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
60210            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
60211$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
60212            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
60213$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
60214            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60215$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60216            as_fn_error $? "Cannot continue" "$LINENO" 5
60217        fi
60218    done
60219
60220    # Ok, we passed the simple sanity check.  Save all these names so
60221    # that we can unset them at the end of the scope.
60222    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
60223    eval $pmix_str
60224    unset pmix_str
60225
60226    env | grep pmix_scope
60227    pmix_scope_index=`expr $pmix_scope_index + 1`
60228
60229
60230    for arg in $pshmem_mmap_LIBS; do
60231        pmix_tmp=`echo $arg | cut -c1-2`
60232        pmix_append=1
60233        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
60234  for val in ${mca_wrapper_extra_libs}; do
60235                   if test "x$val" = "x$arg"; then :
60236  pmix_append=0
60237fi
60238               done
60239fi
60240        if test "$pmix_append" = "1"; then :
60241  if test -z "$mca_wrapper_extra_libs"; then :
60242  mca_wrapper_extra_libs=$arg
60243else
60244  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
60245fi
60246fi
60247    done
60248
60249
60250    # Unwind the index
60251    pmix_scope_index=`expr $pmix_scope_index - 1`
60252    pmix_scope_test=`expr $pmix_scope_index \> 0`
60253    if test "$pmix_scope_test" = "0"; then
60254        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
60255$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
60256        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60257$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60258        as_fn_error $? "Cannot continue" "$LINENO" 5
60259    fi
60260
60261    # Get the variable names from that index
60262    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
60263    eval $pmix_str
60264
60265    # Iterate over all the variables and unset them all
60266    for pmix_var in $pmix_str; do
60267        unset $pmix_var
60268    done
60269
60270
60271else
60272
60273
60274
60275    # Is the private index set?  If not, set it.
60276    if test "x$pmix_scope_index" = "x"; then
60277        pmix_scope_index=1
60278    fi
60279
60280    # First, check to see if any of these variables are already set.
60281    # This is a simple sanity check to ensure we're not already
60282    # overwriting pre-existing variables (that have a non-empty
60283    # value).  It's not a perfect check, but at least it's something.
60284    for pmix_var in pmix_tmp pmix_append; do
60285        pmix_str="pmix_str=\"\$$pmix_var\""
60286        eval $pmix_str
60287
60288        if test "x$pmix_str" != "x"; then
60289            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
60290$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
60291            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
60292$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
60293            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
60294$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
60295            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60296$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60297            as_fn_error $? "Cannot continue" "$LINENO" 5
60298        fi
60299    done
60300
60301    # Ok, we passed the simple sanity check.  Save all these names so
60302    # that we can unset them at the end of the scope.
60303    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
60304    eval $pmix_str
60305    unset pmix_str
60306
60307    env | grep pmix_scope
60308    pmix_scope_index=`expr $pmix_scope_index + 1`
60309
60310
60311    for arg in $pshmem_mmap_WRAPPER_EXTRA_LIBS; do
60312        pmix_tmp=`echo $arg | cut -c1-2`
60313        pmix_append=1
60314        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
60315  for val in ${mca_wrapper_extra_libs}; do
60316                   if test "x$val" = "x$arg"; then :
60317  pmix_append=0
60318fi
60319               done
60320fi
60321        if test "$pmix_append" = "1"; then :
60322  if test -z "$mca_wrapper_extra_libs"; then :
60323  mca_wrapper_extra_libs=$arg
60324else
60325  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
60326fi
60327fi
60328    done
60329
60330
60331    # Unwind the index
60332    pmix_scope_index=`expr $pmix_scope_index - 1`
60333    pmix_scope_test=`expr $pmix_scope_index \> 0`
60334    if test "$pmix_scope_test" = "0"; then
60335        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
60336$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
60337        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60338$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60339        as_fn_error $? "Cannot continue" "$LINENO" 5
60340    fi
60341
60342    # Get the variable names from that index
60343    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
60344    eval $pmix_str
60345
60346    # Iterate over all the variables and unset them all
60347    for pmix_var in $pmix_str; do
60348        unset $pmix_var
60349    done
60350
60351
60352fi
60353
60354    fi
60355
60356    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
60357    # component can never be used in a STOP_AT_FIRST framework, we
60358    # don't have to implement the else clause in the literal check...
60359    if test "$pshmem_mmap_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
60360  stop_at_first=0
60361            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
60362  if test "$with_devel_headers" = "yes"; then :
60363
60364
60365
60366    # Is the private index set?  If not, set it.
60367    if test "x$pmix_scope_index" = "x"; then
60368        pmix_scope_index=1
60369    fi
60370
60371    # First, check to see if any of these variables are already set.
60372    # This is a simple sanity check to ensure we're not already
60373    # overwriting pre-existing variables (that have a non-empty
60374    # value).  It's not a perfect check, but at least it's something.
60375    for pmix_var in pmix_tmp pmix_append; do
60376        pmix_str="pmix_str=\"\$$pmix_var\""
60377        eval $pmix_str
60378
60379        if test "x$pmix_str" != "x"; then
60380            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
60381$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
60382            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
60383$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
60384            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
60385$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
60386            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60387$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60388            as_fn_error $? "Cannot continue" "$LINENO" 5
60389        fi
60390    done
60391
60392    # Ok, we passed the simple sanity check.  Save all these names so
60393    # that we can unset them at the end of the scope.
60394    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
60395    eval $pmix_str
60396    unset pmix_str
60397
60398    env | grep pmix_scope
60399    pmix_scope_index=`expr $pmix_scope_index + 1`
60400
60401
60402    for arg in $pshmem_mmap_WRAPPER_EXTRA_CPPFLAGS; do
60403        pmix_tmp=`echo $arg | cut -c1-2`
60404        pmix_append=1
60405        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
60406  for val in ${mca_wrapper_extra_cppflags}; do
60407                   if test "x$val" = "x$arg"; then :
60408  pmix_append=0
60409fi
60410               done
60411fi
60412        if test "$pmix_append" = "1"; then :
60413  if test -z "$mca_wrapper_extra_cppflags"; then :
60414  mca_wrapper_extra_cppflags=$arg
60415else
60416  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
60417fi
60418fi
60419    done
60420
60421
60422    # Unwind the index
60423    pmix_scope_index=`expr $pmix_scope_index - 1`
60424    pmix_scope_test=`expr $pmix_scope_index \> 0`
60425    if test "$pmix_scope_test" = "0"; then
60426        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
60427$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
60428        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60429$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60430        as_fn_error $? "Cannot continue" "$LINENO" 5
60431    fi
60432
60433    # Get the variable names from that index
60434    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
60435    eval $pmix_str
60436
60437    # Iterate over all the variables and unset them all
60438    for pmix_var in $pmix_str; do
60439        unset $pmix_var
60440    done
60441
60442
60443fi
60444else
60445  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring pshmem_mmap_WRAPPER_EXTRA_CPPFLAGS ($pshmem_mmap_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
60446$as_echo "$as_me: WARNING: ignoring pshmem_mmap_WRAPPER_EXTRA_CPPFLAGS ($pshmem_mmap_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
60447fi
60448fi
60449
60450    else
60451
60452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pshmem:mmap can compile" >&5
60453$as_echo_n "checking if MCA component pshmem:mmap can compile... " >&6; }
60454    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
60455$as_echo "no" >&6; }
60456
60457    # If this component was requested as the default for this
60458    # type, then abort.
60459    if test "$with_pshmem" = "mmap" ; then
60460        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mmap\" failed to configure properly" >&5
60461$as_echo "$as_me: WARNING: MCA component \"mmap\" failed to configure properly" >&2;}
60462        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
60463$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
60464        as_fn_error $? "Cannot continue" "$LINENO" 5
60465    fi
60466
60467    if test ! -z "$DIRECT_pshmem" ; then
60468        if test "$DIRECT_pshmem" = "mmap" ; then
60469            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"mmap\" failed to configure properly" >&5
60470$as_echo "$as_me: WARNING: MCA component \"mmap\" failed to configure properly" >&2;}
60471            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
60472$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
60473            as_fn_error $? "Cannot continue" "$LINENO" 5
60474        fi
60475    fi
60476
60477        # add component to all component list
60478        all_components="$all_components mmap"
60479    fi
60480
60481    # set the AM_CONDITIONAL on how we should build
60482    if test "$compile_mode" = "dso" ; then
60483        BUILD_pmix_pshmem_mmap_DSO=1
60484    else
60485        BUILD_pmix_pshmem_mmap_DSO=0
60486    fi
60487     if test "$BUILD_pmix_pshmem_mmap_DSO" = "1"; then
60488  MCA_BUILD_pmix_pshmem_mmap_DSO_TRUE=
60489  MCA_BUILD_pmix_pshmem_mmap_DSO_FALSE='#'
60490else
60491  MCA_BUILD_pmix_pshmem_mmap_DSO_TRUE='#'
60492  MCA_BUILD_pmix_pshmem_mmap_DSO_FALSE=
60493fi
60494
60495
60496    ac_config_files="$ac_config_files src/mca/pshmem/mmap/Makefile"
60497
60498
60499    unset compile_mode
60500
60501
60502    # configure components that use built-in configuration scripts
60503
60504
60505
60506    best_mca_component_priority=0
60507    components_looking_for_succeed=1
60508    components_last_result=0
60509
60510
60511    # configure components that provide their own configure script.
60512    # It would be really hard to run these for "find first that
60513    # works", so we don't :)
60514
60515
60516
60517                  if test "1" != "0"; then :
60518
60519    for component_path in $srcdir/src/mca/pshmem/* ; do
60520        component="`basename $component_path`"
60521        if test -d $component_path && test -x $component_path/configure ; then
60522            pmix_show_subsubsubtitle "MCA component pshmem:$component (need to configure)"
60523
60524            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build="
60525
60526
60527
60528    component_path="$srcdir/src/mca/pshmem/$component"
60529    want_component=0
60530
60531    # build if:
60532    # - the component type is direct and we are that component
60533    # - there is no pmix_ignore file
60534    # - there is an pmix_ignore, but there is an empty pmix_unignore
60535    # - there is an pmix_ignore, but username is in pmix_unignore
60536    if test -d $component_path ; then
60537        # decide if we want the component to be built or not.  This
60538        # is spread out because some of the logic is a little complex
60539        # and test's syntax isn't exactly the greatest.  We want to
60540        # build the component by default.
60541        want_component=1
60542        if test -f $component_path/.pmix_ignore ; then
60543            # If there is an pmix_ignore file, don't build
60544            # the component.  Note that this decision can be
60545            # overridden by the unignore logic below.
60546            want_component=0
60547        fi
60548        if test -f $component_path/.pmix_unignore ; then
60549            # if there is an empty pmix_unignore, that is
60550            # equivalent to having your userid in the unignore file.
60551            # If userid is in the file, unignore the ignore file.
60552            if test ! -s $component_path/.pmix_unignore ; then
60553                want_component=1
60554            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
60555                want_component=1
60556            fi
60557        fi
60558        # if this component type is direct and we are not it, we don't want
60559        # to be built.  Otherwise, we do want to be built.
60560        if test ! -z "$DIRECT_pshmem" ; then
60561            if test "$DIRECT_pshmem" = "$component" ; then
60562                want_component=1
60563            else
60564                want_component=0
60565            fi
60566        fi
60567    fi
60568
60569    # if we were explicitly disabled, don't build :)
60570    if test "$DISABLE_pshmem" = "1"; then :
60571  want_component=0
60572fi
60573    str="DISABLED_COMPONENT_CHECK=\$DISABLE_pshmem_$component"
60574         eval $str
60575         if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
60576             want_component=0
60577         fi
60578
60579    if test "$want_component" = "1"; then :
60580  should_build=1
60581else
60582  should_build=0
60583fi
60584
60585
60586    SHARED_FRAMEWORK="$DSO_pshmem"
60587    str="SHARED_COMPONENT=\$DSO_pshmem_$component"
60588         eval $str
60589
60590    STATIC_FRAMEWORK="$STATIC_pshmem"
60591    str="STATIC_COMPONENT=\$STATIC_pshmem_$component"
60592         eval $str
60593
60594    shared_mode_override=static
60595
60596    # Setup for either shared or static
60597    if test "$STATIC_FRAMEWORK" = "1" || \
60598       test "$STATIC_COMPONENT" = "1" || \
60599       test "$STATIC_all" = "1" ; then
60600        compile_mode="static"
60601    elif test "$shared_mode_override" = "dso" || \
60602         test "$SHARED_FRAMEWORK" = "1" || \
60603         test "$SHARED_COMPONENT" = "1" || \
60604         test "$DSO_all" = "1"; then
60605        compile_mode="dso"
60606    else
60607        compile_mode="static"
60608    fi
60609
60610    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component pshmem:$component compile mode" >&5
60611$as_echo_n "checking for MCA component pshmem:$component compile mode... " >&6; }
60612    if test "$DIRECT_pshmem" = "$component" ; then
60613        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
60614$as_echo "$compile_mode - direct" >&6; }
60615    else
60616        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
60617$as_echo "$compile_mode" >&6; }
60618    fi
60619
60620            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build"
60621
60622            if test "$should_build" = "1" ; then
60623
60624
60625
60626    # Is the private index set?  If not, set it.
60627    if test "x$pmix_scope_index" = "x"; then
60628        pmix_scope_index=1
60629    fi
60630
60631    # First, check to see if any of these variables are already set.
60632    # This is a simple sanity check to ensure we're not already
60633    # overwriting pre-existing variables (that have a non-empty
60634    # value).  It's not a perfect check, but at least it's something.
60635    for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do
60636        pmix_str="pmix_str=\"\$$pmix_var\""
60637        eval $pmix_str
60638
60639        if test "x$pmix_str" != "x"; then
60640            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
60641$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
60642            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
60643$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
60644            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
60645$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
60646            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60647$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60648            as_fn_error $? "Cannot continue" "$LINENO" 5
60649        fi
60650    done
60651
60652    # Ok, we passed the simple sanity check.  Save all these names so
60653    # that we can unset them at the end of the scope.
60654    pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\""
60655    eval $pmix_str
60656    unset pmix_str
60657
60658    env | grep pmix_scope
60659    pmix_scope_index=`expr $pmix_scope_index + 1`
60660
60661
60662#
60663# Invoke configure in a specific subdirectory.
60664#
60665# src/mca/pshmem/$component is the directory to invoke in
60666# $pmix_subdir_args is the list of arguments to pass
60667# should_build=1 is actions to execute upon success
60668# should_build=0 is actions to execute upon failure
60669#
60670subdir_dir="src/mca/pshmem/$component"
60671subdir_args="$pmix_subdir_args"
60672subdir_success="should_build=1"
60673subdir_failure="should_build=0"
60674
60675#
60676# Sanity checks
60677#
60678
60679if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then
60680    { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5
60681$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;}
60682
60683    #
60684    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
60685    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
60686    # into it.
60687    #
60688
60689    case $srcdir in
60690    .)
60691	;;
60692    *)
60693	{ case $subdir_dir in
60694	[\\/]* | ?:[\\/]* ) total_dir=;;
60695	*)                      total_dir=.;;
60696	esac
60697	temp=$subdir_dir
60698	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
60699	    case $dir_part in
60700	    # Skip DOS drivespec
60701	    ?:) total_dir=$dir_part ;;
60702	    *)  total_dir=$total_dir/$dir_part
60703		test -d "$total_dir" ||
60704		mkdir "$total_dir" ||
60705		as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5
60706		;;
60707	    esac
60708	done; }
60709
60710	if test -d ./$subdir_dir; then :;
60711	else
60712	    as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
60713	fi
60714	;;
60715    esac
60716
60717    #
60718    # Move into the target directory
60719    #
60720
60721    subdir_parent=`pwd`
60722    cd $subdir_dir
60723
60724    #
60725    # Make a "../" for each directory in $subdir_dir.
60726    #
60727
60728    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
60729    #
60730    # Construct the --srcdir argument
60731    #
60732
60733    case $srcdir in
60734    .)
60735	# In place
60736	subdir_srcdir="$srcdir"
60737	;;
60738    [\\/]* | ?:[\\/]* )
60739	# Absolute path
60740	subdir_srcdir="$srcdir/$subdir_dir"
60741	;;
60742    *)
60743	# Relative path
60744	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
60745	;;
60746    esac
60747
60748    #
60749    # Construct the --cache-file argument
60750    #
60751
60752    # BWB - subdir caching is a pain since we change CFLAGS and all that.
60753    # Just disable it for now
60754    subdir_cache_file="/dev/null"
60755
60756    #
60757    # Invoke the configure script in the subdirectory
60758    #
60759
60760    sub_configure="$SHELL '$subdir_srcdir/configure'"
60761    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
60762$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
60763    eval "$sub_configure $subdir_args \
60764	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
60765    if test "$?" = "0"; then
60766	eval $subdir_success
60767	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
60768$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
60769    else
60770	eval $subdir_failure
60771	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
60772$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
60773    fi
60774
60775    #
60776    # Go back to the topdir
60777    #
60778
60779    cd $subdir_parent
60780fi
60781
60782#
60783# Clean up
60784#
60785
60786
60787    # Unwind the index
60788    pmix_scope_index=`expr $pmix_scope_index - 1`
60789    pmix_scope_test=`expr $pmix_scope_index \> 0`
60790    if test "$pmix_scope_test" = "0"; then
60791        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
60792$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
60793        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60794$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60795        as_fn_error $? "Cannot continue" "$LINENO" 5
60796    fi
60797
60798    # Get the variable names from that index
60799    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
60800    eval $pmix_str
60801
60802    # Iterate over all the variables and unset them all
60803    for pmix_var in $pmix_str; do
60804        unset $pmix_var
60805    done
60806
60807                pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build"
60808            fi
60809
60810            if test "$should_build" = "1" ; then
60811                # do some extra work to pass flags back from the
60812                # top-level configure, the way a configure.m4
60813                # component would.
60814                infile="$srcdir/src/mca/pshmem/all_components/post_configure.sh"
60815                if test -f $infile; then
60816
60817                    # First check for the ABORT tag
60818                    line="`$GREP ABORT= $infile | cut -d= -f2-`"
60819                    if test -n "$line" && test "$line" != "no"; then
60820                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
60821$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
60822                        as_fn_error $? "cannot continue" "$LINENO" 5
60823                    fi
60824
60825                    line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
60826                            eval "line=$line"
60827                            if test -n "$line"; then
60828                                all_components_static_components_WRAPPER_EXTRA_LDFLAGS="$line"
60829                            fi
60830                        line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
60831                            eval "line=$line"
60832                            if test -n "$line"; then
60833                                all_components_static_components_WRAPPER_EXTRA_LIBS="$line"
60834                            fi
60835                                        fi
60836
60837
60838
60839
60840    # See if it dropped an output file for us to pick up some
60841    # shell variables in.
60842    infile="$srcdir/src/mca/pshmem/$component/post_configure.sh"
60843
60844    # Add this subdir to the mast list of all MCA component subdirs
60845    all_components="$all_components $component"
60846
60847    if test "$compile_mode" = "dso" ; then
60848        dso_components="$dso_components $component"
60849    else
60850        if test "pshmem" = "common"; then
60851            # Static libraries in "common" frameworks are installed, and
60852            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
60853            # set.
60854            static_ltlibs="mca/pshmem/$component/lib${PMIX_LIB_PREFIX}mca_pshmem_$component.la $static_ltlibs"
60855        else
60856            # Other frameworks do not have to obey the
60857            # $FRAMEWORK_LIB_PREFIX prefix.
60858            static_ltlibs="mca/pshmem/$component/libmca_pshmem_$component.la $static_ltlibs"
60859        fi
60860        echo "extern const pmix_mca_base_component_t mca_pshmem_$component_component;" >> $outfile.extern
60861        echo "  &mca_pshmem_$component_component, " >> $outfile.struct
60862        static_components="$static_components $component"
60863    fi
60864
60865    # Output pretty results
60866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pshmem:$component can compile" >&5
60867$as_echo_n "checking if MCA component pshmem:$component can compile... " >&6; }
60868    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
60869$as_echo "yes" >&6; }
60870
60871                        if test -f $infile; then
60872        # check for direct call header to include.  This will be
60873        # AC_SUBSTed later.
60874        if test "$DIRECT_pshmem" = "$component" ; then
60875            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
60876                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
60877                str="MCA_pmix_pshmem_DIRECT_CALL_HEADER=$line"
60878                eval $str
60879            else
60880as_fn_error $? "*** pshmem component $component was supposed to be direct-called, but
60881*** does not appear to support direct calling.
60882*** Aborting" "$LINENO" 5
60883            fi
60884        fi
60885    else
60886        # were we supposed to have found something in the
60887        # post_configure.sh, but the file didn't exist?
60888        if test "$DIRECT_pshmem" = "$component" ; then
60889as_fn_error $? "*** pshmem component $component was supposed to be direct-called, but
60890*** does not appear to support direct calling.
60891*** Aborting" "$LINENO" 5
60892        fi
60893    fi
60894
60895    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
60896    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
60897    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
60898    # component didn't have it's own configure script (in which case,
60899    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
60900    # have to do this if the component is building dynamically,
60901    # because it will link against these (without a dependency from
60902    # libmpi.so to these flags)
60903    if test "$compile_mode" = "static"; then
60904        str="line=\$pshmem_$component_WRAPPER_EXTRA_LDFLAGS"
60905                      eval "$str"
60906
60907
60908
60909    # Is the private index set?  If not, set it.
60910    if test "x$pmix_scope_index" = "x"; then
60911        pmix_scope_index=1
60912    fi
60913
60914    # First, check to see if any of these variables are already set.
60915    # This is a simple sanity check to ensure we're not already
60916    # overwriting pre-existing variables (that have a non-empty
60917    # value).  It's not a perfect check, but at least it's something.
60918    for pmix_var in pmix_tmp pmix_append; do
60919        pmix_str="pmix_str=\"\$$pmix_var\""
60920        eval $pmix_str
60921
60922        if test "x$pmix_str" != "x"; then
60923            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
60924$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
60925            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
60926$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
60927            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
60928$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
60929            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60930$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60931            as_fn_error $? "Cannot continue" "$LINENO" 5
60932        fi
60933    done
60934
60935    # Ok, we passed the simple sanity check.  Save all these names so
60936    # that we can unset them at the end of the scope.
60937    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
60938    eval $pmix_str
60939    unset pmix_str
60940
60941    env | grep pmix_scope
60942    pmix_scope_index=`expr $pmix_scope_index + 1`
60943
60944
60945    for arg in $line; do
60946        pmix_tmp=`echo $arg | cut -c1-2`
60947        pmix_append=1
60948        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
60949  for val in ${mca_wrapper_extra_ldflags}; do
60950                   if test "x$val" = "x$arg"; then :
60951  pmix_append=0
60952fi
60953               done
60954fi
60955        if test "$pmix_append" = "1"; then :
60956  if test -z "$mca_wrapper_extra_ldflags"; then :
60957  mca_wrapper_extra_ldflags=$arg
60958else
60959  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
60960fi
60961fi
60962    done
60963
60964
60965    # Unwind the index
60966    pmix_scope_index=`expr $pmix_scope_index - 1`
60967    pmix_scope_test=`expr $pmix_scope_index \> 0`
60968    if test "$pmix_scope_test" = "0"; then
60969        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
60970$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
60971        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
60972$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
60973        as_fn_error $? "Cannot continue" "$LINENO" 5
60974    fi
60975
60976    # Get the variable names from that index
60977    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
60978    eval $pmix_str
60979
60980    # Iterate over all the variables and unset them all
60981    for pmix_var in $pmix_str; do
60982        unset $pmix_var
60983    done
60984
60985str="line=\$pshmem_$component_WRAPPER_EXTRA_LIBS"
60986                      eval "$str"
60987
60988
60989
60990    # Is the private index set?  If not, set it.
60991    if test "x$pmix_scope_index" = "x"; then
60992        pmix_scope_index=1
60993    fi
60994
60995    # First, check to see if any of these variables are already set.
60996    # This is a simple sanity check to ensure we're not already
60997    # overwriting pre-existing variables (that have a non-empty
60998    # value).  It's not a perfect check, but at least it's something.
60999    for pmix_var in pmix_tmp pmix_append; do
61000        pmix_str="pmix_str=\"\$$pmix_var\""
61001        eval $pmix_str
61002
61003        if test "x$pmix_str" != "x"; then
61004            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
61005$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
61006            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
61007$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
61008            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
61009$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
61010            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
61011$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
61012            as_fn_error $? "Cannot continue" "$LINENO" 5
61013        fi
61014    done
61015
61016    # Ok, we passed the simple sanity check.  Save all these names so
61017    # that we can unset them at the end of the scope.
61018    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
61019    eval $pmix_str
61020    unset pmix_str
61021
61022    env | grep pmix_scope
61023    pmix_scope_index=`expr $pmix_scope_index + 1`
61024
61025
61026    for arg in $line; do
61027        pmix_tmp=`echo $arg | cut -c1-2`
61028        pmix_append=1
61029        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
61030  for val in ${mca_wrapper_extra_libs}; do
61031                   if test "x$val" = "x$arg"; then :
61032  pmix_append=0
61033fi
61034               done
61035fi
61036        if test "$pmix_append" = "1"; then :
61037  if test -z "$mca_wrapper_extra_libs"; then :
61038  mca_wrapper_extra_libs=$arg
61039else
61040  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
61041fi
61042fi
61043    done
61044
61045
61046    # Unwind the index
61047    pmix_scope_index=`expr $pmix_scope_index - 1`
61048    pmix_scope_test=`expr $pmix_scope_index \> 0`
61049    if test "$pmix_scope_test" = "0"; then
61050        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
61051$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
61052        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
61053$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
61054        as_fn_error $? "Cannot continue" "$LINENO" 5
61055    fi
61056
61057    # Get the variable names from that index
61058    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
61059    eval $pmix_str
61060
61061    # Iterate over all the variables and unset them all
61062    for pmix_var in $pmix_str; do
61063        unset $pmix_var
61064    done
61065
61066
61067    fi
61068
61069    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
61070    # component can never be used in a STOP_AT_FIRST framework, we
61071    # don't have to implement the else clause in the literal check...
61072
61073
61074            else
61075
61076    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component pshmem:$component can compile" >&5
61077$as_echo_n "checking if MCA component pshmem:$component can compile... " >&6; }
61078    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61079$as_echo "no" >&6; }
61080
61081    # If this component was requested as the default for this
61082    # type, then abort.
61083    if test "$with_pshmem" = "$component" ; then
61084        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
61085$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
61086        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
61087$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
61088        as_fn_error $? "Cannot continue" "$LINENO" 5
61089    fi
61090
61091    if test ! -z "$DIRECT_pshmem" ; then
61092        if test "$DIRECT_pshmem" = "$component" ; then
61093            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
61094$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
61095            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
61096$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
61097            as_fn_error $? "Cannot continue" "$LINENO" 5
61098        fi
61099    fi
61100
61101            fi
61102        fi
61103    done
61104
61105fi
61106
61107    MCA_pmix_pshmem_ALL_COMPONENTS="$all_components"
61108    MCA_pmix_pshmem_STATIC_COMPONENTS="$static_components"
61109    MCA_pmix_pshmem_DSO_COMPONENTS="$dso_components"
61110    MCA_pmix_pshmem_STATIC_LTLIBS="$static_ltlibs"
61111
61112
61113
61114
61115
61116
61117
61118    MCA_pmix_pshmem_ALL_SUBDIRS=
61119    for item in $all_components ; do
61120       MCA_pmix_pshmem_ALL_SUBDIRS="$MCA_pmix_pshmem_ALL_SUBDIRS mca/pshmem/$item"
61121    done
61122
61123
61124
61125    MCA_pmix_pshmem_STATIC_SUBDIRS=
61126    for item in $static_components ; do
61127       MCA_pmix_pshmem_STATIC_SUBDIRS="$MCA_pmix_pshmem_STATIC_SUBDIRS mca/pshmem/$item"
61128    done
61129
61130
61131
61132    MCA_pmix_pshmem_DSO_SUBDIRS=
61133    for item in $dso_components ; do
61134       MCA_pmix_pshmem_DSO_SUBDIRS="$MCA_pmix_pshmem_DSO_SUBDIRS mca/pshmem/$item"
61135    done
61136
61137
61138
61139    # Create the final .h file that will be included in the type's
61140    # top-level glue.  This lists all the static components.  We don't
61141    # need to do this for "common".
61142    if test "pshmem" != "common"; then
61143        cat > $outfile <<EOF
61144/*
61145 * \$HEADER\$
61146 */
61147#if defined(c_plusplus) || defined(__cplusplus)
61148extern "C" {
61149#endif
61150
61151`cat $outfile.extern`
61152
61153const pmix_mca_base_component_t *mca_pshmem_base_static_components[] = {
61154`cat $outfile.struct`
61155  NULL
61156};
61157
61158#if defined(c_plusplus) || defined(__cplusplus)
61159}
61160#endif
61161
61162EOF
61163        # Only replace the header file if a) it doesn't previously
61164        # exist, or b) the contents are different.  Do this to not
61165        # trigger recompilation of certain .c files just because the
61166        # timestamp changed on $outfile_real (similar to the way AC
61167        # handles AC_CONFIG_HEADER files).
61168        diff $outfile $outfile_real > /dev/null 2>&1
61169        if test "$?" != "0"; then
61170            mv $outfile $outfile_real
61171        else
61172            rm -f $outfile
61173        fi
61174    fi
61175    rm -f $outfile.struct $outfile.extern
61176
61177    unset all_components static_components dso_components outfile outfile_real
61178
61179                                 MCA_pmix_FRAMEWORKS="$MCA_pmix_FRAMEWORKS ptl"
61180                                 MCA_pmix_FRAMEWORKS_SUBDIRS="$MCA_pmix_FRAMEWORKS_SUBDIRS mca/ptl"
61181                                 MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_ALL_SUBDIRS \$(MCA_pmix_ptl_ALL_SUBDIRS)"
61182                                 MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_DSO_SUBDIRS \$(MCA_pmix_ptl_DSO_SUBDIRS)"
61183                                 MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS="$MCA_pmix_FRAMEWORK_COMPONENT_STATIC_SUBDIRS \$(MCA_pmix_ptl_STATIC_SUBDIRS)"
61184                                 MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS mca/ptl/libmca_ptl.la"
61185                          MCA_pmix_FRAMEWORK_LIBS="$MCA_pmix_FRAMEWORK_LIBS \$(MCA_pmix_ptl_STATIC_LTLIBS)"
61186
61187    pmix_show_subsubtitle "Configuring MCA framework ptl"
61188
61189
61190
61191
61192    # setup for framework
61193    all_components=
61194    static_components=
61195    dso_components=
61196    static_ltlibs=
61197
61198    # Ensure that the directory where the #include file is to live
61199    # exists.  Need to do this for VPATH builds, because the directory
61200    # may not exist yet.  For the "common" type, it's not really a
61201    # component, so it doesn't have a base.
61202    outdir=src/mca/ptl/base
61203    as_dir=$outdir; as_fn_mkdir_p
61204
61205    # emit Makefile rule
61206    ac_config_files="$ac_config_files src/mca/ptl/Makefile"
61207
61208
61209    # remove any previously generated #include files
61210    outfile_real=$outdir/static-components.h
61211    outfile=$outfile_real.new
61212    rm -f $outfile $outfile.struct $outfile.extern
61213    touch $outfile.struct $outfile.extern
61214
61215    # print some nice messages about what we're about to do...
61216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for no configure components in framework ptl" >&5
61217$as_echo_n "checking for no configure components in framework ptl... " >&6; }
61218    { $as_echo "$as_me:${as_lineno-$LINENO}: result: tcp, usock" >&5
61219$as_echo "tcp, usock" >&6; }
61220    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 configure components in framework ptl" >&5
61221$as_echo_n "checking for m4 configure components in framework ptl... " >&6; }
61222    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
61223$as_echo "" >&6; }
61224
61225    # If there are components in the no configure list, but we're
61226    # doing one of the "special" selection logics, abort with a
61227    # reasonable message.
61228
61229
61230
61231    # run the configure logic for the no-config components
61232
61233    pmix_show_subsubsubtitle "MCA component ptl:tcp (no configuration)"
61234
61235    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1"
61236
61237
61238
61239    component_path="$srcdir/src/mca/ptl/tcp"
61240    want_component=0
61241
61242    # build if:
61243    # - the component type is direct and we are that component
61244    # - there is no pmix_ignore file
61245    # - there is an pmix_ignore, but there is an empty pmix_unignore
61246    # - there is an pmix_ignore, but username is in pmix_unignore
61247    if test -d $component_path ; then
61248        # decide if we want the component to be built or not.  This
61249        # is spread out because some of the logic is a little complex
61250        # and test's syntax isn't exactly the greatest.  We want to
61251        # build the component by default.
61252        want_component=1
61253        if test -f $component_path/.pmix_ignore ; then
61254            # If there is an pmix_ignore file, don't build
61255            # the component.  Note that this decision can be
61256            # overridden by the unignore logic below.
61257            want_component=0
61258        fi
61259        if test -f $component_path/.pmix_unignore ; then
61260            # if there is an empty pmix_unignore, that is
61261            # equivalent to having your userid in the unignore file.
61262            # If userid is in the file, unignore the ignore file.
61263            if test ! -s $component_path/.pmix_unignore ; then
61264                want_component=1
61265            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
61266                want_component=1
61267            fi
61268        fi
61269        # if this component type is direct and we are not it, we don't want
61270        # to be built.  Otherwise, we do want to be built.
61271        if test ! -z "$DIRECT_ptl" ; then
61272            if test "$DIRECT_ptl" = "tcp" ; then
61273                want_component=1
61274            else
61275                want_component=0
61276            fi
61277        fi
61278    fi
61279
61280    # if we were explicitly disabled, don't build :)
61281    if test "$DISABLE_ptl" = "1"; then :
61282  want_component=0
61283fi
61284    if test "$DISABLE_ptl_tcp" = "1"; then :
61285  want_component=0
61286fi
61287
61288    if test "$want_component" = "1"; then :
61289  should_build=1
61290else
61291  should_build=0
61292fi
61293
61294
61295    SHARED_FRAMEWORK="$DSO_ptl"
61296    SHARED_COMPONENT="$DSO_ptl_tcp"
61297
61298    STATIC_FRAMEWORK="$STATIC_ptl"
61299    STATIC_COMPONENT="$STATIC_ptl_tcp"
61300
61301    shared_mode_override=static
61302
61303    # Setup for either shared or static
61304    if test "$STATIC_FRAMEWORK" = "1" || \
61305       test "$STATIC_COMPONENT" = "1" || \
61306       test "$STATIC_all" = "1" ; then
61307        compile_mode="static"
61308    elif test "$shared_mode_override" = "dso" || \
61309         test "$SHARED_FRAMEWORK" = "1" || \
61310         test "$SHARED_COMPONENT" = "1" || \
61311         test "$DSO_all" = "1"; then
61312        compile_mode="dso"
61313    else
61314        compile_mode="static"
61315    fi
61316
61317    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ptl:tcp compile mode" >&5
61318$as_echo_n "checking for MCA component ptl:tcp compile mode... " >&6; }
61319    if test "$DIRECT_ptl" = "tcp" ; then
61320        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
61321$as_echo "$compile_mode - direct" >&6; }
61322    else
61323        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
61324$as_echo "$compile_mode" >&6; }
61325    fi
61326
61327    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build"
61328
61329    if test "$should_build" = "1" ; then
61330
61331
61332
61333    # See if it dropped an output file for us to pick up some
61334    # shell variables in.
61335    infile="$srcdir/src/mca/ptl/tcp/post_configure.sh"
61336
61337    # Add this subdir to the mast list of all MCA component subdirs
61338    all_components="$all_components tcp"
61339
61340    if test "$compile_mode" = "dso" ; then
61341        dso_components="$dso_components tcp"
61342    else
61343        if test "ptl" = "common"; then
61344            # Static libraries in "common" frameworks are installed, and
61345            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
61346            # set.
61347            static_ltlibs="mca/ptl/tcp/lib${PMIX_LIB_PREFIX}mca_ptl_tcp.la $static_ltlibs"
61348        else
61349            # Other frameworks do not have to obey the
61350            # $FRAMEWORK_LIB_PREFIX prefix.
61351            static_ltlibs="mca/ptl/tcp/libmca_ptl_tcp.la $static_ltlibs"
61352        fi
61353        echo "extern const pmix_mca_base_component_t mca_ptl_tcp_component;" >> $outfile.extern
61354        echo "  &mca_ptl_tcp_component, " >> $outfile.struct
61355        static_components="$static_components tcp"
61356    fi
61357
61358    # Output pretty results
61359    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ptl:tcp can compile" >&5
61360$as_echo_n "checking if MCA component ptl:tcp can compile... " >&6; }
61361    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
61362$as_echo "yes" >&6; }
61363
61364                        if test -f $infile; then
61365        # check for direct call header to include.  This will be
61366        # AC_SUBSTed later.
61367        if test "$DIRECT_ptl" = "tcp" ; then
61368            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
61369                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
61370                str="MCA_pmix_ptl_DIRECT_CALL_HEADER=$line"
61371                eval $str
61372            else
61373as_fn_error $? "*** ptl component tcp was supposed to be direct-called, but
61374*** does not appear to support direct calling.
61375*** Aborting" "$LINENO" 5
61376            fi
61377        fi
61378    else
61379        # were we supposed to have found something in the
61380        # post_configure.sh, but the file didn't exist?
61381        if test "$DIRECT_ptl" = "tcp" ; then
61382as_fn_error $? "*** ptl component tcp was supposed to be direct-called, but
61383*** does not appear to support direct calling.
61384*** Aborting" "$LINENO" 5
61385        fi
61386    fi
61387
61388    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
61389    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
61390    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
61391    # component didn't have it's own configure script (in which case,
61392    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
61393    # have to do this if the component is building dynamically,
61394    # because it will link against these (without a dependency from
61395    # libmpi.so to these flags)
61396    if test "$compile_mode" = "static"; then
61397        if test "$ptl_tcp_WRAPPER_EXTRA_LDFLAGS" = ""; then :
61398
61399
61400
61401    # Is the private index set?  If not, set it.
61402    if test "x$pmix_scope_index" = "x"; then
61403        pmix_scope_index=1
61404    fi
61405
61406    # First, check to see if any of these variables are already set.
61407    # This is a simple sanity check to ensure we're not already
61408    # overwriting pre-existing variables (that have a non-empty
61409    # value).  It's not a perfect check, but at least it's something.
61410    for pmix_var in pmix_tmp pmix_append; do
61411        pmix_str="pmix_str=\"\$$pmix_var\""
61412        eval $pmix_str
61413
61414        if test "x$pmix_str" != "x"; then
61415            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
61416$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
61417            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
61418$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
61419            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
61420$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
61421            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
61422$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
61423            as_fn_error $? "Cannot continue" "$LINENO" 5
61424        fi
61425    done
61426
61427    # Ok, we passed the simple sanity check.  Save all these names so
61428    # that we can unset them at the end of the scope.
61429    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
61430    eval $pmix_str
61431    unset pmix_str
61432
61433    env | grep pmix_scope
61434    pmix_scope_index=`expr $pmix_scope_index + 1`
61435
61436
61437    for arg in $ptl_tcp_LDFLAGS; do
61438        pmix_tmp=`echo $arg | cut -c1-2`
61439        pmix_append=1
61440        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
61441  for val in ${mca_wrapper_extra_ldflags}; do
61442                   if test "x$val" = "x$arg"; then :
61443  pmix_append=0
61444fi
61445               done
61446fi
61447        if test "$pmix_append" = "1"; then :
61448  if test -z "$mca_wrapper_extra_ldflags"; then :
61449  mca_wrapper_extra_ldflags=$arg
61450else
61451  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
61452fi
61453fi
61454    done
61455
61456
61457    # Unwind the index
61458    pmix_scope_index=`expr $pmix_scope_index - 1`
61459    pmix_scope_test=`expr $pmix_scope_index \> 0`
61460    if test "$pmix_scope_test" = "0"; then
61461        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
61462$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
61463        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
61464$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
61465        as_fn_error $? "Cannot continue" "$LINENO" 5
61466    fi
61467
61468    # Get the variable names from that index
61469    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
61470    eval $pmix_str
61471
61472    # Iterate over all the variables and unset them all
61473    for pmix_var in $pmix_str; do
61474        unset $pmix_var
61475    done
61476
61477
61478else
61479
61480
61481
61482    # Is the private index set?  If not, set it.
61483    if test "x$pmix_scope_index" = "x"; then
61484        pmix_scope_index=1
61485    fi
61486
61487    # First, check to see if any of these variables are already set.
61488    # This is a simple sanity check to ensure we're not already
61489    # overwriting pre-existing variables (that have a non-empty
61490    # value).  It's not a perfect check, but at least it's something.
61491    for pmix_var in pmix_tmp pmix_append; do
61492        pmix_str="pmix_str=\"\$$pmix_var\""
61493        eval $pmix_str
61494
61495        if test "x$pmix_str" != "x"; then
61496            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
61497$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
61498            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
61499$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
61500            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
61501$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
61502            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
61503$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
61504            as_fn_error $? "Cannot continue" "$LINENO" 5
61505        fi
61506    done
61507
61508    # Ok, we passed the simple sanity check.  Save all these names so
61509    # that we can unset them at the end of the scope.
61510    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
61511    eval $pmix_str
61512    unset pmix_str
61513
61514    env | grep pmix_scope
61515    pmix_scope_index=`expr $pmix_scope_index + 1`
61516
61517
61518    for arg in $ptl_tcp_WRAPPER_EXTRA_LDFLAGS; do
61519        pmix_tmp=`echo $arg | cut -c1-2`
61520        pmix_append=1
61521        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
61522  for val in ${mca_wrapper_extra_ldflags}; do
61523                   if test "x$val" = "x$arg"; then :
61524  pmix_append=0
61525fi
61526               done
61527fi
61528        if test "$pmix_append" = "1"; then :
61529  if test -z "$mca_wrapper_extra_ldflags"; then :
61530  mca_wrapper_extra_ldflags=$arg
61531else
61532  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
61533fi
61534fi
61535    done
61536
61537
61538    # Unwind the index
61539    pmix_scope_index=`expr $pmix_scope_index - 1`
61540    pmix_scope_test=`expr $pmix_scope_index \> 0`
61541    if test "$pmix_scope_test" = "0"; then
61542        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
61543$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
61544        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
61545$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
61546        as_fn_error $? "Cannot continue" "$LINENO" 5
61547    fi
61548
61549    # Get the variable names from that index
61550    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
61551    eval $pmix_str
61552
61553    # Iterate over all the variables and unset them all
61554    for pmix_var in $pmix_str; do
61555        unset $pmix_var
61556    done
61557
61558
61559fi
61560                        if test "$ptl_tcp_WRAPPER_EXTRA_LIBS" = ""; then :
61561
61562
61563
61564    # Is the private index set?  If not, set it.
61565    if test "x$pmix_scope_index" = "x"; then
61566        pmix_scope_index=1
61567    fi
61568
61569    # First, check to see if any of these variables are already set.
61570    # This is a simple sanity check to ensure we're not already
61571    # overwriting pre-existing variables (that have a non-empty
61572    # value).  It's not a perfect check, but at least it's something.
61573    for pmix_var in pmix_tmp pmix_append; do
61574        pmix_str="pmix_str=\"\$$pmix_var\""
61575        eval $pmix_str
61576
61577        if test "x$pmix_str" != "x"; then
61578            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
61579$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
61580            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
61581$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
61582            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
61583$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
61584            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
61585$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
61586            as_fn_error $? "Cannot continue" "$LINENO" 5
61587        fi
61588    done
61589
61590    # Ok, we passed the simple sanity check.  Save all these names so
61591    # that we can unset them at the end of the scope.
61592    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
61593    eval $pmix_str
61594    unset pmix_str
61595
61596    env | grep pmix_scope
61597    pmix_scope_index=`expr $pmix_scope_index + 1`
61598
61599
61600    for arg in $ptl_tcp_LIBS; do
61601        pmix_tmp=`echo $arg | cut -c1-2`
61602        pmix_append=1
61603        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
61604  for val in ${mca_wrapper_extra_libs}; do
61605                   if test "x$val" = "x$arg"; then :
61606  pmix_append=0
61607fi
61608               done
61609fi
61610        if test "$pmix_append" = "1"; then :
61611  if test -z "$mca_wrapper_extra_libs"; then :
61612  mca_wrapper_extra_libs=$arg
61613else
61614  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
61615fi
61616fi
61617    done
61618
61619
61620    # Unwind the index
61621    pmix_scope_index=`expr $pmix_scope_index - 1`
61622    pmix_scope_test=`expr $pmix_scope_index \> 0`
61623    if test "$pmix_scope_test" = "0"; then
61624        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
61625$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
61626        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
61627$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
61628        as_fn_error $? "Cannot continue" "$LINENO" 5
61629    fi
61630
61631    # Get the variable names from that index
61632    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
61633    eval $pmix_str
61634
61635    # Iterate over all the variables and unset them all
61636    for pmix_var in $pmix_str; do
61637        unset $pmix_var
61638    done
61639
61640
61641else
61642
61643
61644
61645    # Is the private index set?  If not, set it.
61646    if test "x$pmix_scope_index" = "x"; then
61647        pmix_scope_index=1
61648    fi
61649
61650    # First, check to see if any of these variables are already set.
61651    # This is a simple sanity check to ensure we're not already
61652    # overwriting pre-existing variables (that have a non-empty
61653    # value).  It's not a perfect check, but at least it's something.
61654    for pmix_var in pmix_tmp pmix_append; do
61655        pmix_str="pmix_str=\"\$$pmix_var\""
61656        eval $pmix_str
61657
61658        if test "x$pmix_str" != "x"; then
61659            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
61660$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
61661            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
61662$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
61663            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
61664$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
61665            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
61666$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
61667            as_fn_error $? "Cannot continue" "$LINENO" 5
61668        fi
61669    done
61670
61671    # Ok, we passed the simple sanity check.  Save all these names so
61672    # that we can unset them at the end of the scope.
61673    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
61674    eval $pmix_str
61675    unset pmix_str
61676
61677    env | grep pmix_scope
61678    pmix_scope_index=`expr $pmix_scope_index + 1`
61679
61680
61681    for arg in $ptl_tcp_WRAPPER_EXTRA_LIBS; do
61682        pmix_tmp=`echo $arg | cut -c1-2`
61683        pmix_append=1
61684        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
61685  for val in ${mca_wrapper_extra_libs}; do
61686                   if test "x$val" = "x$arg"; then :
61687  pmix_append=0
61688fi
61689               done
61690fi
61691        if test "$pmix_append" = "1"; then :
61692  if test -z "$mca_wrapper_extra_libs"; then :
61693  mca_wrapper_extra_libs=$arg
61694else
61695  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
61696fi
61697fi
61698    done
61699
61700
61701    # Unwind the index
61702    pmix_scope_index=`expr $pmix_scope_index - 1`
61703    pmix_scope_test=`expr $pmix_scope_index \> 0`
61704    if test "$pmix_scope_test" = "0"; then
61705        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
61706$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
61707        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
61708$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
61709        as_fn_error $? "Cannot continue" "$LINENO" 5
61710    fi
61711
61712    # Get the variable names from that index
61713    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
61714    eval $pmix_str
61715
61716    # Iterate over all the variables and unset them all
61717    for pmix_var in $pmix_str; do
61718        unset $pmix_var
61719    done
61720
61721
61722fi
61723
61724    fi
61725
61726    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
61727    # component can never be used in a STOP_AT_FIRST framework, we
61728    # don't have to implement the else clause in the literal check...
61729    if test "$ptl_tcp_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
61730  stop_at_first=0
61731            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
61732  if test "$with_devel_headers" = "yes"; then :
61733
61734
61735
61736    # Is the private index set?  If not, set it.
61737    if test "x$pmix_scope_index" = "x"; then
61738        pmix_scope_index=1
61739    fi
61740
61741    # First, check to see if any of these variables are already set.
61742    # This is a simple sanity check to ensure we're not already
61743    # overwriting pre-existing variables (that have a non-empty
61744    # value).  It's not a perfect check, but at least it's something.
61745    for pmix_var in pmix_tmp pmix_append; do
61746        pmix_str="pmix_str=\"\$$pmix_var\""
61747        eval $pmix_str
61748
61749        if test "x$pmix_str" != "x"; then
61750            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
61751$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
61752            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
61753$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
61754            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
61755$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
61756            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
61757$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
61758            as_fn_error $? "Cannot continue" "$LINENO" 5
61759        fi
61760    done
61761
61762    # Ok, we passed the simple sanity check.  Save all these names so
61763    # that we can unset them at the end of the scope.
61764    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
61765    eval $pmix_str
61766    unset pmix_str
61767
61768    env | grep pmix_scope
61769    pmix_scope_index=`expr $pmix_scope_index + 1`
61770
61771
61772    for arg in $ptl_tcp_WRAPPER_EXTRA_CPPFLAGS; do
61773        pmix_tmp=`echo $arg | cut -c1-2`
61774        pmix_append=1
61775        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
61776  for val in ${mca_wrapper_extra_cppflags}; do
61777                   if test "x$val" = "x$arg"; then :
61778  pmix_append=0
61779fi
61780               done
61781fi
61782        if test "$pmix_append" = "1"; then :
61783  if test -z "$mca_wrapper_extra_cppflags"; then :
61784  mca_wrapper_extra_cppflags=$arg
61785else
61786  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
61787fi
61788fi
61789    done
61790
61791
61792    # Unwind the index
61793    pmix_scope_index=`expr $pmix_scope_index - 1`
61794    pmix_scope_test=`expr $pmix_scope_index \> 0`
61795    if test "$pmix_scope_test" = "0"; then
61796        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
61797$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
61798        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
61799$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
61800        as_fn_error $? "Cannot continue" "$LINENO" 5
61801    fi
61802
61803    # Get the variable names from that index
61804    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
61805    eval $pmix_str
61806
61807    # Iterate over all the variables and unset them all
61808    for pmix_var in $pmix_str; do
61809        unset $pmix_var
61810    done
61811
61812
61813fi
61814else
61815  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ptl_tcp_WRAPPER_EXTRA_CPPFLAGS ($ptl_tcp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
61816$as_echo "$as_me: WARNING: ignoring ptl_tcp_WRAPPER_EXTRA_CPPFLAGS ($ptl_tcp_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
61817fi
61818fi
61819
61820    else
61821
61822    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ptl:tcp can compile" >&5
61823$as_echo_n "checking if MCA component ptl:tcp can compile... " >&6; }
61824    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
61825$as_echo "no" >&6; }
61826
61827    # If this component was requested as the default for this
61828    # type, then abort.
61829    if test "$with_ptl" = "tcp" ; then
61830        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5
61831$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
61832        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
61833$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
61834        as_fn_error $? "Cannot continue" "$LINENO" 5
61835    fi
61836
61837    if test ! -z "$DIRECT_ptl" ; then
61838        if test "$DIRECT_ptl" = "tcp" ; then
61839            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"tcp\" failed to configure properly" >&5
61840$as_echo "$as_me: WARNING: MCA component \"tcp\" failed to configure properly" >&2;}
61841            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
61842$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
61843            as_fn_error $? "Cannot continue" "$LINENO" 5
61844        fi
61845    fi
61846
61847        # add component to all component list
61848        all_components="$all_components tcp"
61849    fi
61850
61851    # set the AM_CONDITIONAL on how we should build
61852    if test "$compile_mode" = "dso" ; then
61853        BUILD_pmix_ptl_tcp_DSO=1
61854    else
61855        BUILD_pmix_ptl_tcp_DSO=0
61856    fi
61857     if test "$BUILD_pmix_ptl_tcp_DSO" = "1"; then
61858  MCA_BUILD_pmix_ptl_tcp_DSO_TRUE=
61859  MCA_BUILD_pmix_ptl_tcp_DSO_FALSE='#'
61860else
61861  MCA_BUILD_pmix_ptl_tcp_DSO_TRUE='#'
61862  MCA_BUILD_pmix_ptl_tcp_DSO_FALSE=
61863fi
61864
61865
61866    ac_config_files="$ac_config_files src/mca/ptl/tcp/Makefile"
61867
61868
61869    unset compile_mode
61870
61871    pmix_show_subsubsubtitle "MCA component ptl:usock (no configuration)"
61872
61873    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: before, should_build=1"
61874
61875
61876
61877    component_path="$srcdir/src/mca/ptl/usock"
61878    want_component=0
61879
61880    # build if:
61881    # - the component type is direct and we are that component
61882    # - there is no pmix_ignore file
61883    # - there is an pmix_ignore, but there is an empty pmix_unignore
61884    # - there is an pmix_ignore, but username is in pmix_unignore
61885    if test -d $component_path ; then
61886        # decide if we want the component to be built or not.  This
61887        # is spread out because some of the logic is a little complex
61888        # and test's syntax isn't exactly the greatest.  We want to
61889        # build the component by default.
61890        want_component=1
61891        if test -f $component_path/.pmix_ignore ; then
61892            # If there is an pmix_ignore file, don't build
61893            # the component.  Note that this decision can be
61894            # overridden by the unignore logic below.
61895            want_component=0
61896        fi
61897        if test -f $component_path/.pmix_unignore ; then
61898            # if there is an empty pmix_unignore, that is
61899            # equivalent to having your userid in the unignore file.
61900            # If userid is in the file, unignore the ignore file.
61901            if test ! -s $component_path/.pmix_unignore ; then
61902                want_component=1
61903            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
61904                want_component=1
61905            fi
61906        fi
61907        # if this component type is direct and we are not it, we don't want
61908        # to be built.  Otherwise, we do want to be built.
61909        if test ! -z "$DIRECT_ptl" ; then
61910            if test "$DIRECT_ptl" = "usock" ; then
61911                want_component=1
61912            else
61913                want_component=0
61914            fi
61915        fi
61916    fi
61917
61918    # if we were explicitly disabled, don't build :)
61919    if test "$DISABLE_ptl" = "1"; then :
61920  want_component=0
61921fi
61922    if test "$DISABLE_ptl_usock" = "1"; then :
61923  want_component=0
61924fi
61925
61926    if test "$want_component" = "1"; then :
61927  should_build=1
61928else
61929  should_build=0
61930fi
61931
61932
61933    SHARED_FRAMEWORK="$DSO_ptl"
61934    SHARED_COMPONENT="$DSO_ptl_usock"
61935
61936    STATIC_FRAMEWORK="$STATIC_ptl"
61937    STATIC_COMPONENT="$STATIC_ptl_usock"
61938
61939    shared_mode_override=static
61940
61941    # Setup for either shared or static
61942    if test "$STATIC_FRAMEWORK" = "1" || \
61943       test "$STATIC_COMPONENT" = "1" || \
61944       test "$STATIC_all" = "1" ; then
61945        compile_mode="static"
61946    elif test "$shared_mode_override" = "dso" || \
61947         test "$SHARED_FRAMEWORK" = "1" || \
61948         test "$SHARED_COMPONENT" = "1" || \
61949         test "$DSO_all" = "1"; then
61950        compile_mode="dso"
61951    else
61952        compile_mode="static"
61953    fi
61954
61955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ptl:usock compile mode" >&5
61956$as_echo_n "checking for MCA component ptl:usock compile mode... " >&6; }
61957    if test "$DIRECT_ptl" = "usock" ; then
61958        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
61959$as_echo "$compile_mode - direct" >&6; }
61960    else
61961        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
61962$as_echo "$compile_mode" >&6; }
61963    fi
61964
61965    pmix_show_verbose "PMIX_MCA_NO_CONFIG_COMPONENT: after, should_build=$should_build"
61966
61967    if test "$should_build" = "1" ; then
61968
61969
61970
61971    # See if it dropped an output file for us to pick up some
61972    # shell variables in.
61973    infile="$srcdir/src/mca/ptl/usock/post_configure.sh"
61974
61975    # Add this subdir to the mast list of all MCA component subdirs
61976    all_components="$all_components usock"
61977
61978    if test "$compile_mode" = "dso" ; then
61979        dso_components="$dso_components usock"
61980    else
61981        if test "ptl" = "common"; then
61982            # Static libraries in "common" frameworks are installed, and
61983            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
61984            # set.
61985            static_ltlibs="mca/ptl/usock/lib${PMIX_LIB_PREFIX}mca_ptl_usock.la $static_ltlibs"
61986        else
61987            # Other frameworks do not have to obey the
61988            # $FRAMEWORK_LIB_PREFIX prefix.
61989            static_ltlibs="mca/ptl/usock/libmca_ptl_usock.la $static_ltlibs"
61990        fi
61991        echo "extern const pmix_mca_base_component_t mca_ptl_usock_component;" >> $outfile.extern
61992        echo "  &mca_ptl_usock_component, " >> $outfile.struct
61993        static_components="$static_components usock"
61994    fi
61995
61996    # Output pretty results
61997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ptl:usock can compile" >&5
61998$as_echo_n "checking if MCA component ptl:usock can compile... " >&6; }
61999    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62000$as_echo "yes" >&6; }
62001
62002                        if test -f $infile; then
62003        # check for direct call header to include.  This will be
62004        # AC_SUBSTed later.
62005        if test "$DIRECT_ptl" = "usock" ; then
62006            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
62007                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
62008                str="MCA_pmix_ptl_DIRECT_CALL_HEADER=$line"
62009                eval $str
62010            else
62011as_fn_error $? "*** ptl component usock was supposed to be direct-called, but
62012*** does not appear to support direct calling.
62013*** Aborting" "$LINENO" 5
62014            fi
62015        fi
62016    else
62017        # were we supposed to have found something in the
62018        # post_configure.sh, but the file didn't exist?
62019        if test "$DIRECT_ptl" = "usock" ; then
62020as_fn_error $? "*** ptl component usock was supposed to be direct-called, but
62021*** does not appear to support direct calling.
62022*** Aborting" "$LINENO" 5
62023        fi
62024    fi
62025
62026    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
62027    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
62028    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
62029    # component didn't have it's own configure script (in which case,
62030    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
62031    # have to do this if the component is building dynamically,
62032    # because it will link against these (without a dependency from
62033    # libmpi.so to these flags)
62034    if test "$compile_mode" = "static"; then
62035        if test "$ptl_usock_WRAPPER_EXTRA_LDFLAGS" = ""; then :
62036
62037
62038
62039    # Is the private index set?  If not, set it.
62040    if test "x$pmix_scope_index" = "x"; then
62041        pmix_scope_index=1
62042    fi
62043
62044    # First, check to see if any of these variables are already set.
62045    # This is a simple sanity check to ensure we're not already
62046    # overwriting pre-existing variables (that have a non-empty
62047    # value).  It's not a perfect check, but at least it's something.
62048    for pmix_var in pmix_tmp pmix_append; do
62049        pmix_str="pmix_str=\"\$$pmix_var\""
62050        eval $pmix_str
62051
62052        if test "x$pmix_str" != "x"; then
62053            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
62054$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
62055            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
62056$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
62057            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
62058$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
62059            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62060$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62061            as_fn_error $? "Cannot continue" "$LINENO" 5
62062        fi
62063    done
62064
62065    # Ok, we passed the simple sanity check.  Save all these names so
62066    # that we can unset them at the end of the scope.
62067    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
62068    eval $pmix_str
62069    unset pmix_str
62070
62071    env | grep pmix_scope
62072    pmix_scope_index=`expr $pmix_scope_index + 1`
62073
62074
62075    for arg in $ptl_usock_LDFLAGS; do
62076        pmix_tmp=`echo $arg | cut -c1-2`
62077        pmix_append=1
62078        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
62079  for val in ${mca_wrapper_extra_ldflags}; do
62080                   if test "x$val" = "x$arg"; then :
62081  pmix_append=0
62082fi
62083               done
62084fi
62085        if test "$pmix_append" = "1"; then :
62086  if test -z "$mca_wrapper_extra_ldflags"; then :
62087  mca_wrapper_extra_ldflags=$arg
62088else
62089  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
62090fi
62091fi
62092    done
62093
62094
62095    # Unwind the index
62096    pmix_scope_index=`expr $pmix_scope_index - 1`
62097    pmix_scope_test=`expr $pmix_scope_index \> 0`
62098    if test "$pmix_scope_test" = "0"; then
62099        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
62100$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
62101        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62102$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62103        as_fn_error $? "Cannot continue" "$LINENO" 5
62104    fi
62105
62106    # Get the variable names from that index
62107    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
62108    eval $pmix_str
62109
62110    # Iterate over all the variables and unset them all
62111    for pmix_var in $pmix_str; do
62112        unset $pmix_var
62113    done
62114
62115
62116else
62117
62118
62119
62120    # Is the private index set?  If not, set it.
62121    if test "x$pmix_scope_index" = "x"; then
62122        pmix_scope_index=1
62123    fi
62124
62125    # First, check to see if any of these variables are already set.
62126    # This is a simple sanity check to ensure we're not already
62127    # overwriting pre-existing variables (that have a non-empty
62128    # value).  It's not a perfect check, but at least it's something.
62129    for pmix_var in pmix_tmp pmix_append; do
62130        pmix_str="pmix_str=\"\$$pmix_var\""
62131        eval $pmix_str
62132
62133        if test "x$pmix_str" != "x"; then
62134            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
62135$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
62136            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
62137$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
62138            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
62139$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
62140            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62141$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62142            as_fn_error $? "Cannot continue" "$LINENO" 5
62143        fi
62144    done
62145
62146    # Ok, we passed the simple sanity check.  Save all these names so
62147    # that we can unset them at the end of the scope.
62148    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
62149    eval $pmix_str
62150    unset pmix_str
62151
62152    env | grep pmix_scope
62153    pmix_scope_index=`expr $pmix_scope_index + 1`
62154
62155
62156    for arg in $ptl_usock_WRAPPER_EXTRA_LDFLAGS; do
62157        pmix_tmp=`echo $arg | cut -c1-2`
62158        pmix_append=1
62159        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
62160  for val in ${mca_wrapper_extra_ldflags}; do
62161                   if test "x$val" = "x$arg"; then :
62162  pmix_append=0
62163fi
62164               done
62165fi
62166        if test "$pmix_append" = "1"; then :
62167  if test -z "$mca_wrapper_extra_ldflags"; then :
62168  mca_wrapper_extra_ldflags=$arg
62169else
62170  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
62171fi
62172fi
62173    done
62174
62175
62176    # Unwind the index
62177    pmix_scope_index=`expr $pmix_scope_index - 1`
62178    pmix_scope_test=`expr $pmix_scope_index \> 0`
62179    if test "$pmix_scope_test" = "0"; then
62180        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
62181$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
62182        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62183$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62184        as_fn_error $? "Cannot continue" "$LINENO" 5
62185    fi
62186
62187    # Get the variable names from that index
62188    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
62189    eval $pmix_str
62190
62191    # Iterate over all the variables and unset them all
62192    for pmix_var in $pmix_str; do
62193        unset $pmix_var
62194    done
62195
62196
62197fi
62198                        if test "$ptl_usock_WRAPPER_EXTRA_LIBS" = ""; then :
62199
62200
62201
62202    # Is the private index set?  If not, set it.
62203    if test "x$pmix_scope_index" = "x"; then
62204        pmix_scope_index=1
62205    fi
62206
62207    # First, check to see if any of these variables are already set.
62208    # This is a simple sanity check to ensure we're not already
62209    # overwriting pre-existing variables (that have a non-empty
62210    # value).  It's not a perfect check, but at least it's something.
62211    for pmix_var in pmix_tmp pmix_append; do
62212        pmix_str="pmix_str=\"\$$pmix_var\""
62213        eval $pmix_str
62214
62215        if test "x$pmix_str" != "x"; then
62216            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
62217$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
62218            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
62219$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
62220            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
62221$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
62222            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62223$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62224            as_fn_error $? "Cannot continue" "$LINENO" 5
62225        fi
62226    done
62227
62228    # Ok, we passed the simple sanity check.  Save all these names so
62229    # that we can unset them at the end of the scope.
62230    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
62231    eval $pmix_str
62232    unset pmix_str
62233
62234    env | grep pmix_scope
62235    pmix_scope_index=`expr $pmix_scope_index + 1`
62236
62237
62238    for arg in $ptl_usock_LIBS; do
62239        pmix_tmp=`echo $arg | cut -c1-2`
62240        pmix_append=1
62241        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
62242  for val in ${mca_wrapper_extra_libs}; do
62243                   if test "x$val" = "x$arg"; then :
62244  pmix_append=0
62245fi
62246               done
62247fi
62248        if test "$pmix_append" = "1"; then :
62249  if test -z "$mca_wrapper_extra_libs"; then :
62250  mca_wrapper_extra_libs=$arg
62251else
62252  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
62253fi
62254fi
62255    done
62256
62257
62258    # Unwind the index
62259    pmix_scope_index=`expr $pmix_scope_index - 1`
62260    pmix_scope_test=`expr $pmix_scope_index \> 0`
62261    if test "$pmix_scope_test" = "0"; then
62262        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
62263$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
62264        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62265$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62266        as_fn_error $? "Cannot continue" "$LINENO" 5
62267    fi
62268
62269    # Get the variable names from that index
62270    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
62271    eval $pmix_str
62272
62273    # Iterate over all the variables and unset them all
62274    for pmix_var in $pmix_str; do
62275        unset $pmix_var
62276    done
62277
62278
62279else
62280
62281
62282
62283    # Is the private index set?  If not, set it.
62284    if test "x$pmix_scope_index" = "x"; then
62285        pmix_scope_index=1
62286    fi
62287
62288    # First, check to see if any of these variables are already set.
62289    # This is a simple sanity check to ensure we're not already
62290    # overwriting pre-existing variables (that have a non-empty
62291    # value).  It's not a perfect check, but at least it's something.
62292    for pmix_var in pmix_tmp pmix_append; do
62293        pmix_str="pmix_str=\"\$$pmix_var\""
62294        eval $pmix_str
62295
62296        if test "x$pmix_str" != "x"; then
62297            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
62298$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
62299            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
62300$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
62301            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
62302$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
62303            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62304$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62305            as_fn_error $? "Cannot continue" "$LINENO" 5
62306        fi
62307    done
62308
62309    # Ok, we passed the simple sanity check.  Save all these names so
62310    # that we can unset them at the end of the scope.
62311    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
62312    eval $pmix_str
62313    unset pmix_str
62314
62315    env | grep pmix_scope
62316    pmix_scope_index=`expr $pmix_scope_index + 1`
62317
62318
62319    for arg in $ptl_usock_WRAPPER_EXTRA_LIBS; do
62320        pmix_tmp=`echo $arg | cut -c1-2`
62321        pmix_append=1
62322        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
62323  for val in ${mca_wrapper_extra_libs}; do
62324                   if test "x$val" = "x$arg"; then :
62325  pmix_append=0
62326fi
62327               done
62328fi
62329        if test "$pmix_append" = "1"; then :
62330  if test -z "$mca_wrapper_extra_libs"; then :
62331  mca_wrapper_extra_libs=$arg
62332else
62333  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
62334fi
62335fi
62336    done
62337
62338
62339    # Unwind the index
62340    pmix_scope_index=`expr $pmix_scope_index - 1`
62341    pmix_scope_test=`expr $pmix_scope_index \> 0`
62342    if test "$pmix_scope_test" = "0"; then
62343        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
62344$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
62345        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62346$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62347        as_fn_error $? "Cannot continue" "$LINENO" 5
62348    fi
62349
62350    # Get the variable names from that index
62351    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
62352    eval $pmix_str
62353
62354    # Iterate over all the variables and unset them all
62355    for pmix_var in $pmix_str; do
62356        unset $pmix_var
62357    done
62358
62359
62360fi
62361
62362    fi
62363
62364    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
62365    # component can never be used in a STOP_AT_FIRST framework, we
62366    # don't have to implement the else clause in the literal check...
62367    if test "$ptl_usock_WRAPPER_EXTRA_CPPFLAGS" != ""; then :
62368  stop_at_first=0
62369            if test "$compile_mode" = "static" && test "$stop_at_first" = "1"; then :
62370  if test "$with_devel_headers" = "yes"; then :
62371
62372
62373
62374    # Is the private index set?  If not, set it.
62375    if test "x$pmix_scope_index" = "x"; then
62376        pmix_scope_index=1
62377    fi
62378
62379    # First, check to see if any of these variables are already set.
62380    # This is a simple sanity check to ensure we're not already
62381    # overwriting pre-existing variables (that have a non-empty
62382    # value).  It's not a perfect check, but at least it's something.
62383    for pmix_var in pmix_tmp pmix_append; do
62384        pmix_str="pmix_str=\"\$$pmix_var\""
62385        eval $pmix_str
62386
62387        if test "x$pmix_str" != "x"; then
62388            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
62389$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
62390            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
62391$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
62392            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
62393$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
62394            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62395$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62396            as_fn_error $? "Cannot continue" "$LINENO" 5
62397        fi
62398    done
62399
62400    # Ok, we passed the simple sanity check.  Save all these names so
62401    # that we can unset them at the end of the scope.
62402    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
62403    eval $pmix_str
62404    unset pmix_str
62405
62406    env | grep pmix_scope
62407    pmix_scope_index=`expr $pmix_scope_index + 1`
62408
62409
62410    for arg in $ptl_usock_WRAPPER_EXTRA_CPPFLAGS; do
62411        pmix_tmp=`echo $arg | cut -c1-2`
62412        pmix_append=1
62413        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
62414  for val in ${mca_wrapper_extra_cppflags}; do
62415                   if test "x$val" = "x$arg"; then :
62416  pmix_append=0
62417fi
62418               done
62419fi
62420        if test "$pmix_append" = "1"; then :
62421  if test -z "$mca_wrapper_extra_cppflags"; then :
62422  mca_wrapper_extra_cppflags=$arg
62423else
62424  mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags $arg"
62425fi
62426fi
62427    done
62428
62429
62430    # Unwind the index
62431    pmix_scope_index=`expr $pmix_scope_index - 1`
62432    pmix_scope_test=`expr $pmix_scope_index \> 0`
62433    if test "$pmix_scope_test" = "0"; then
62434        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
62435$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
62436        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62437$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62438        as_fn_error $? "Cannot continue" "$LINENO" 5
62439    fi
62440
62441    # Get the variable names from that index
62442    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
62443    eval $pmix_str
62444
62445    # Iterate over all the variables and unset them all
62446    for pmix_var in $pmix_str; do
62447        unset $pmix_var
62448    done
62449
62450
62451fi
62452else
62453  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ptl_usock_WRAPPER_EXTRA_CPPFLAGS ($ptl_usock_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&5
62454$as_echo "$as_me: WARNING: ignoring ptl_usock_WRAPPER_EXTRA_CPPFLAGS ($ptl_usock_WRAPPER_EXTRA_CPPFLAGS): component conditions not met" >&2;}
62455fi
62456fi
62457
62458    else
62459
62460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ptl:usock can compile" >&5
62461$as_echo_n "checking if MCA component ptl:usock can compile... " >&6; }
62462    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
62463$as_echo "no" >&6; }
62464
62465    # If this component was requested as the default for this
62466    # type, then abort.
62467    if test "$with_ptl" = "usock" ; then
62468        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"usock\" failed to configure properly" >&5
62469$as_echo "$as_me: WARNING: MCA component \"usock\" failed to configure properly" >&2;}
62470        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
62471$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
62472        as_fn_error $? "Cannot continue" "$LINENO" 5
62473    fi
62474
62475    if test ! -z "$DIRECT_ptl" ; then
62476        if test "$DIRECT_ptl" = "usock" ; then
62477            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"usock\" failed to configure properly" >&5
62478$as_echo "$as_me: WARNING: MCA component \"usock\" failed to configure properly" >&2;}
62479            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
62480$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
62481            as_fn_error $? "Cannot continue" "$LINENO" 5
62482        fi
62483    fi
62484
62485        # add component to all component list
62486        all_components="$all_components usock"
62487    fi
62488
62489    # set the AM_CONDITIONAL on how we should build
62490    if test "$compile_mode" = "dso" ; then
62491        BUILD_pmix_ptl_usock_DSO=1
62492    else
62493        BUILD_pmix_ptl_usock_DSO=0
62494    fi
62495     if test "$BUILD_pmix_ptl_usock_DSO" = "1"; then
62496  MCA_BUILD_pmix_ptl_usock_DSO_TRUE=
62497  MCA_BUILD_pmix_ptl_usock_DSO_FALSE='#'
62498else
62499  MCA_BUILD_pmix_ptl_usock_DSO_TRUE='#'
62500  MCA_BUILD_pmix_ptl_usock_DSO_FALSE=
62501fi
62502
62503
62504    ac_config_files="$ac_config_files src/mca/ptl/usock/Makefile"
62505
62506
62507    unset compile_mode
62508
62509
62510    # configure components that use built-in configuration scripts
62511
62512
62513
62514    best_mca_component_priority=0
62515    components_looking_for_succeed=1
62516    components_last_result=0
62517
62518
62519    # configure components that provide their own configure script.
62520    # It would be really hard to run these for "find first that
62521    # works", so we don't :)
62522
62523
62524
62525                  if test "1" != "0"; then :
62526
62527    for component_path in $srcdir/src/mca/ptl/* ; do
62528        component="`basename $component_path`"
62529        if test -d $component_path && test -x $component_path/configure ; then
62530            pmix_show_subsubsubtitle "MCA component ptl:$component (need to configure)"
62531
62532            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: before, should_build="
62533
62534
62535
62536    component_path="$srcdir/src/mca/ptl/$component"
62537    want_component=0
62538
62539    # build if:
62540    # - the component type is direct and we are that component
62541    # - there is no pmix_ignore file
62542    # - there is an pmix_ignore, but there is an empty pmix_unignore
62543    # - there is an pmix_ignore, but username is in pmix_unignore
62544    if test -d $component_path ; then
62545        # decide if we want the component to be built or not.  This
62546        # is spread out because some of the logic is a little complex
62547        # and test's syntax isn't exactly the greatest.  We want to
62548        # build the component by default.
62549        want_component=1
62550        if test -f $component_path/.pmix_ignore ; then
62551            # If there is an pmix_ignore file, don't build
62552            # the component.  Note that this decision can be
62553            # overridden by the unignore logic below.
62554            want_component=0
62555        fi
62556        if test -f $component_path/.pmix_unignore ; then
62557            # if there is an empty pmix_unignore, that is
62558            # equivalent to having your userid in the unignore file.
62559            # If userid is in the file, unignore the ignore file.
62560            if test ! -s $component_path/.pmix_unignore ; then
62561                want_component=1
62562            elif test ! -z "`$GREP $PMIX_CONFIGURE_USER $component_path/.pmix_unignore`" ; then
62563                want_component=1
62564            fi
62565        fi
62566        # if this component type is direct and we are not it, we don't want
62567        # to be built.  Otherwise, we do want to be built.
62568        if test ! -z "$DIRECT_ptl" ; then
62569            if test "$DIRECT_ptl" = "$component" ; then
62570                want_component=1
62571            else
62572                want_component=0
62573            fi
62574        fi
62575    fi
62576
62577    # if we were explicitly disabled, don't build :)
62578    if test "$DISABLE_ptl" = "1"; then :
62579  want_component=0
62580fi
62581    str="DISABLED_COMPONENT_CHECK=\$DISABLE_ptl_$component"
62582         eval $str
62583         if test "$DISABLED_COMPONENT_CHECK" = "1" ; then
62584             want_component=0
62585         fi
62586
62587    if test "$want_component" = "1"; then :
62588  should_build=1
62589else
62590  should_build=0
62591fi
62592
62593
62594    SHARED_FRAMEWORK="$DSO_ptl"
62595    str="SHARED_COMPONENT=\$DSO_ptl_$component"
62596         eval $str
62597
62598    STATIC_FRAMEWORK="$STATIC_ptl"
62599    str="STATIC_COMPONENT=\$STATIC_ptl_$component"
62600         eval $str
62601
62602    shared_mode_override=static
62603
62604    # Setup for either shared or static
62605    if test "$STATIC_FRAMEWORK" = "1" || \
62606       test "$STATIC_COMPONENT" = "1" || \
62607       test "$STATIC_all" = "1" ; then
62608        compile_mode="static"
62609    elif test "$shared_mode_override" = "dso" || \
62610         test "$SHARED_FRAMEWORK" = "1" || \
62611         test "$SHARED_COMPONENT" = "1" || \
62612         test "$DSO_all" = "1"; then
62613        compile_mode="dso"
62614    else
62615        compile_mode="static"
62616    fi
62617
62618    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCA component ptl:$component compile mode" >&5
62619$as_echo_n "checking for MCA component ptl:$component compile mode... " >&6; }
62620    if test "$DIRECT_ptl" = "$component" ; then
62621        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode - direct" >&5
62622$as_echo "$compile_mode - direct" >&6; }
62623    else
62624        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $compile_mode" >&5
62625$as_echo "$compile_mode" >&6; }
62626    fi
62627
62628            pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after, should_build=$should_build"
62629
62630            if test "$should_build" = "1" ; then
62631
62632
62633
62634    # Is the private index set?  If not, set it.
62635    if test "x$pmix_scope_index" = "x"; then
62636        pmix_scope_index=1
62637    fi
62638
62639    # First, check to see if any of these variables are already set.
62640    # This is a simple sanity check to ensure we're not already
62641    # overwriting pre-existing variables (that have a non-empty
62642    # value).  It's not a perfect check, but at least it's something.
62643    for pmix_var in subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp; do
62644        pmix_str="pmix_str=\"\$$pmix_var\""
62645        eval $pmix_str
62646
62647        if test "x$pmix_str" != "x"; then
62648            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
62649$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
62650            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
62651$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
62652            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
62653$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
62654            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62655$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62656            as_fn_error $? "Cannot continue" "$LINENO" 5
62657        fi
62658    done
62659
62660    # Ok, we passed the simple sanity check.  Save all these names so
62661    # that we can unset them at the end of the scope.
62662    pmix_str="pmix_scope_$pmix_scope_index=\"subdir_parent sub_configure subdir_dir subdir_srcdir subdir_cache_file subdir_args subdir_dots total_dir dir_part temp\""
62663    eval $pmix_str
62664    unset pmix_str
62665
62666    env | grep pmix_scope
62667    pmix_scope_index=`expr $pmix_scope_index + 1`
62668
62669
62670#
62671# Invoke configure in a specific subdirectory.
62672#
62673# src/mca/ptl/$component is the directory to invoke in
62674# $pmix_subdir_args is the list of arguments to pass
62675# should_build=1 is actions to execute upon success
62676# should_build=0 is actions to execute upon failure
62677#
62678subdir_dir="src/mca/ptl/$component"
62679subdir_args="$pmix_subdir_args"
62680subdir_success="should_build=1"
62681subdir_failure="should_build=0"
62682
62683#
62684# Sanity checks
62685#
62686
62687if test "$subdir_dir" != ":" && test -d $srcdir/$subdir_dir; then
62688    { $as_echo "$as_me:${as_lineno-$LINENO}: PMIX configuring in $subdir_dir" >&5
62689$as_echo "$as_me: PMIX configuring in $subdir_dir" >&6;}
62690
62691    #
62692    # Gotta check where srcdir is for VPATH builds.  If srcdir is not
62693    # ., then we need to mkdir the subdir.  Otherwise, we can just cd
62694    # into it.
62695    #
62696
62697    case $srcdir in
62698    .)
62699	;;
62700    *)
62701	{ case $subdir_dir in
62702	[\\/]* | ?:[\\/]* ) total_dir=;;
62703	*)                      total_dir=.;;
62704	esac
62705	temp=$subdir_dir
62706	for dir_part in `IFS='/\\'; set X $temp; shift; echo "$@"`; do
62707	    case $dir_part in
62708	    # Skip DOS drivespec
62709	    ?:) total_dir=$dir_part ;;
62710	    *)  total_dir=$total_dir/$dir_part
62711		test -d "$total_dir" ||
62712		mkdir "$total_dir" ||
62713		as_fn_error $? "cannot create $subdir_dir" "$LINENO" 5
62714		;;
62715	    esac
62716	done; }
62717
62718	if test -d ./$subdir_dir; then :;
62719	else
62720	    as_fn_error $? "cannot create \`pwd\`/$subdir_dir" "$LINENO" 5
62721	fi
62722	;;
62723    esac
62724
62725    #
62726    # Move into the target directory
62727    #
62728
62729    subdir_parent=`pwd`
62730    cd $subdir_dir
62731
62732    #
62733    # Make a "../" for each directory in $subdir_dir.
62734    #
62735
62736    subdir_dots=`echo $subdir_dir | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
62737    #
62738    # Construct the --srcdir argument
62739    #
62740
62741    case $srcdir in
62742    .)
62743	# In place
62744	subdir_srcdir="$srcdir"
62745	;;
62746    [\\/]* | ?:[\\/]* )
62747	# Absolute path
62748	subdir_srcdir="$srcdir/$subdir_dir"
62749	;;
62750    *)
62751	# Relative path
62752	subdir_srcdir="$subdir_dots$srcdir/$subdir_dir"
62753	;;
62754    esac
62755
62756    #
62757    # Construct the --cache-file argument
62758    #
62759
62760    # BWB - subdir caching is a pain since we change CFLAGS and all that.
62761    # Just disable it for now
62762    subdir_cache_file="/dev/null"
62763
62764    #
62765    # Invoke the configure script in the subdirectory
62766    #
62767
62768    sub_configure="$SHELL '$subdir_srcdir/configure'"
62769    { $as_echo "$as_me:${as_lineno-$LINENO}: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&5
62770$as_echo "$as_me: running $sub_configure $subdir_args --cache-file=$subdir_cache_file --srcdir=$subdir_srcdir --disable-option-checking" >&6;}
62771    eval "$sub_configure $subdir_args \
62772	--cache-file=\"\$subdir_cache_file\" --srcdir=\"$subdir_srcdir\" --disable-option-checking"
62773    if test "$?" = "0"; then
62774	eval $subdir_success
62775	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure succeeded for $subdir_dir" >&5
62776$as_echo "$as_me: $sub_configure succeeded for $subdir_dir" >&6;}
62777    else
62778	eval $subdir_failure
62779	{ $as_echo "$as_me:${as_lineno-$LINENO}: $sub_configure *failed* for $subdir_dir" >&5
62780$as_echo "$as_me: $sub_configure *failed* for $subdir_dir" >&6;}
62781    fi
62782
62783    #
62784    # Go back to the topdir
62785    #
62786
62787    cd $subdir_parent
62788fi
62789
62790#
62791# Clean up
62792#
62793
62794
62795    # Unwind the index
62796    pmix_scope_index=`expr $pmix_scope_index - 1`
62797    pmix_scope_test=`expr $pmix_scope_index \> 0`
62798    if test "$pmix_scope_test" = "0"; then
62799        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
62800$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
62801        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62802$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62803        as_fn_error $? "Cannot continue" "$LINENO" 5
62804    fi
62805
62806    # Get the variable names from that index
62807    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
62808    eval $pmix_str
62809
62810    # Iterate over all the variables and unset them all
62811    for pmix_var in $pmix_str; do
62812        unset $pmix_var
62813    done
62814
62815                pmix_show_verbose "PMIX_MCA_ALL_CONFIG_COMPONENTS: after subdir, should_build=$should_build"
62816            fi
62817
62818            if test "$should_build" = "1" ; then
62819                # do some extra work to pass flags back from the
62820                # top-level configure, the way a configure.m4
62821                # component would.
62822                infile="$srcdir/src/mca/ptl/all_components/post_configure.sh"
62823                if test -f $infile; then
62824
62825                    # First check for the ABORT tag
62826                    line="`$GREP ABORT= $infile | cut -d= -f2-`"
62827                    if test -n "$line" && test "$line" != "no"; then
62828                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component configure script told me to abort" >&5
62829$as_echo "$as_me: WARNING: MCA component configure script told me to abort" >&2;}
62830                        as_fn_error $? "cannot continue" "$LINENO" 5
62831                    fi
62832
62833                    line="`$GREP WRAPPER_EXTRA_LDFLAGS= $infile | cut -d= -f2-`"
62834                            eval "line=$line"
62835                            if test -n "$line"; then
62836                                all_components_static_components_WRAPPER_EXTRA_LDFLAGS="$line"
62837                            fi
62838                        line="`$GREP WRAPPER_EXTRA_LIBS= $infile | cut -d= -f2-`"
62839                            eval "line=$line"
62840                            if test -n "$line"; then
62841                                all_components_static_components_WRAPPER_EXTRA_LIBS="$line"
62842                            fi
62843                                        fi
62844
62845
62846
62847
62848    # See if it dropped an output file for us to pick up some
62849    # shell variables in.
62850    infile="$srcdir/src/mca/ptl/$component/post_configure.sh"
62851
62852    # Add this subdir to the mast list of all MCA component subdirs
62853    all_components="$all_components $component"
62854
62855    if test "$compile_mode" = "dso" ; then
62856        dso_components="$dso_components $component"
62857    else
62858        if test "ptl" = "common"; then
62859            # Static libraries in "common" frameworks are installed, and
62860            # therefore must obey the $FRAMEWORK_LIB_PREFIX that was
62861            # set.
62862            static_ltlibs="mca/ptl/$component/lib${PMIX_LIB_PREFIX}mca_ptl_$component.la $static_ltlibs"
62863        else
62864            # Other frameworks do not have to obey the
62865            # $FRAMEWORK_LIB_PREFIX prefix.
62866            static_ltlibs="mca/ptl/$component/libmca_ptl_$component.la $static_ltlibs"
62867        fi
62868        echo "extern const pmix_mca_base_component_t mca_ptl_$component_component;" >> $outfile.extern
62869        echo "  &mca_ptl_$component_component, " >> $outfile.struct
62870        static_components="$static_components $component"
62871    fi
62872
62873    # Output pretty results
62874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ptl:$component can compile" >&5
62875$as_echo_n "checking if MCA component ptl:$component can compile... " >&6; }
62876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
62877$as_echo "yes" >&6; }
62878
62879                        if test -f $infile; then
62880        # check for direct call header to include.  This will be
62881        # AC_SUBSTed later.
62882        if test "$DIRECT_ptl" = "$component" ; then
62883            if test "`$GREP DIRECT_CALL_HEADER $infile`" != "" ; then
62884                line="`$GREP DIRECT_CALL_HEADER $infile | cut -d= -f2-`"
62885                str="MCA_pmix_ptl_DIRECT_CALL_HEADER=$line"
62886                eval $str
62887            else
62888as_fn_error $? "*** ptl component $component was supposed to be direct-called, but
62889*** does not appear to support direct calling.
62890*** Aborting" "$LINENO" 5
62891            fi
62892        fi
62893    else
62894        # were we supposed to have found something in the
62895        # post_configure.sh, but the file didn't exist?
62896        if test "$DIRECT_ptl" = "$component" ; then
62897as_fn_error $? "*** ptl component $component was supposed to be direct-called, but
62898*** does not appear to support direct calling.
62899*** Aborting" "$LINENO" 5
62900        fi
62901    fi
62902
62903    # if the component is building, add it's WRAPPER_EXTRA_LDFLAGS and
62904    # WRAPPER_EXTRA_LIBS.  If the component doesn't specify it's
62905    # WRAPPER_EXTRA_LIBS and WRAPPER_EXTRA_LDFLAGS, try using LDFLAGS and LIBS if
62906    # component didn't have it's own configure script (in which case,
62907    # we know it didn't set LDFLAGS and LIBS because it can't) Don't
62908    # have to do this if the component is building dynamically,
62909    # because it will link against these (without a dependency from
62910    # libmpi.so to these flags)
62911    if test "$compile_mode" = "static"; then
62912        str="line=\$ptl_$component_WRAPPER_EXTRA_LDFLAGS"
62913                      eval "$str"
62914
62915
62916
62917    # Is the private index set?  If not, set it.
62918    if test "x$pmix_scope_index" = "x"; then
62919        pmix_scope_index=1
62920    fi
62921
62922    # First, check to see if any of these variables are already set.
62923    # This is a simple sanity check to ensure we're not already
62924    # overwriting pre-existing variables (that have a non-empty
62925    # value).  It's not a perfect check, but at least it's something.
62926    for pmix_var in pmix_tmp pmix_append; do
62927        pmix_str="pmix_str=\"\$$pmix_var\""
62928        eval $pmix_str
62929
62930        if test "x$pmix_str" != "x"; then
62931            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
62932$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
62933            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
62934$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
62935            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
62936$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
62937            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62938$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62939            as_fn_error $? "Cannot continue" "$LINENO" 5
62940        fi
62941    done
62942
62943    # Ok, we passed the simple sanity check.  Save all these names so
62944    # that we can unset them at the end of the scope.
62945    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
62946    eval $pmix_str
62947    unset pmix_str
62948
62949    env | grep pmix_scope
62950    pmix_scope_index=`expr $pmix_scope_index + 1`
62951
62952
62953    for arg in $line; do
62954        pmix_tmp=`echo $arg | cut -c1-2`
62955        pmix_append=1
62956        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
62957  for val in ${mca_wrapper_extra_ldflags}; do
62958                   if test "x$val" = "x$arg"; then :
62959  pmix_append=0
62960fi
62961               done
62962fi
62963        if test "$pmix_append" = "1"; then :
62964  if test -z "$mca_wrapper_extra_ldflags"; then :
62965  mca_wrapper_extra_ldflags=$arg
62966else
62967  mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags $arg"
62968fi
62969fi
62970    done
62971
62972
62973    # Unwind the index
62974    pmix_scope_index=`expr $pmix_scope_index - 1`
62975    pmix_scope_test=`expr $pmix_scope_index \> 0`
62976    if test "$pmix_scope_test" = "0"; then
62977        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
62978$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
62979        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
62980$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
62981        as_fn_error $? "Cannot continue" "$LINENO" 5
62982    fi
62983
62984    # Get the variable names from that index
62985    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
62986    eval $pmix_str
62987
62988    # Iterate over all the variables and unset them all
62989    for pmix_var in $pmix_str; do
62990        unset $pmix_var
62991    done
62992
62993str="line=\$ptl_$component_WRAPPER_EXTRA_LIBS"
62994                      eval "$str"
62995
62996
62997
62998    # Is the private index set?  If not, set it.
62999    if test "x$pmix_scope_index" = "x"; then
63000        pmix_scope_index=1
63001    fi
63002
63003    # First, check to see if any of these variables are already set.
63004    # This is a simple sanity check to ensure we're not already
63005    # overwriting pre-existing variables (that have a non-empty
63006    # value).  It's not a perfect check, but at least it's something.
63007    for pmix_var in pmix_tmp pmix_append; do
63008        pmix_str="pmix_str=\"\$$pmix_var\""
63009        eval $pmix_str
63010
63011        if test "x$pmix_str" != "x"; then
63012            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
63013$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
63014            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
63015$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
63016            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
63017$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
63018            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
63019$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
63020            as_fn_error $? "Cannot continue" "$LINENO" 5
63021        fi
63022    done
63023
63024    # Ok, we passed the simple sanity check.  Save all these names so
63025    # that we can unset them at the end of the scope.
63026    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_tmp pmix_append\""
63027    eval $pmix_str
63028    unset pmix_str
63029
63030    env | grep pmix_scope
63031    pmix_scope_index=`expr $pmix_scope_index + 1`
63032
63033
63034    for arg in $line; do
63035        pmix_tmp=`echo $arg | cut -c1-2`
63036        pmix_append=1
63037        if test "$pmix_tmp" = "-I" || test "$pmix_tmp" = "-L" || test "$pmix_tmp" = "-l"; then :
63038  for val in ${mca_wrapper_extra_libs}; do
63039                   if test "x$val" = "x$arg"; then :
63040  pmix_append=0
63041fi
63042               done
63043fi
63044        if test "$pmix_append" = "1"; then :
63045  if test -z "$mca_wrapper_extra_libs"; then :
63046  mca_wrapper_extra_libs=$arg
63047else
63048  mca_wrapper_extra_libs="$mca_wrapper_extra_libs $arg"
63049fi
63050fi
63051    done
63052
63053
63054    # Unwind the index
63055    pmix_scope_index=`expr $pmix_scope_index - 1`
63056    pmix_scope_test=`expr $pmix_scope_index \> 0`
63057    if test "$pmix_scope_test" = "0"; then
63058        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
63059$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
63060        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
63061$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
63062        as_fn_error $? "Cannot continue" "$LINENO" 5
63063    fi
63064
63065    # Get the variable names from that index
63066    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
63067    eval $pmix_str
63068
63069    # Iterate over all the variables and unset them all
63070    for pmix_var in $pmix_str; do
63071        unset $pmix_var
63072    done
63073
63074
63075    fi
63076
63077    # if needed, copy over WRAPPER_EXTRA_CPPFLAGS.  Since a configure script
63078    # component can never be used in a STOP_AT_FIRST framework, we
63079    # don't have to implement the else clause in the literal check...
63080
63081
63082            else
63083
63084    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MCA component ptl:$component can compile" >&5
63085$as_echo_n "checking if MCA component ptl:$component can compile... " >&6; }
63086    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63087$as_echo "no" >&6; }
63088
63089    # If this component was requested as the default for this
63090    # type, then abort.
63091    if test "$with_ptl" = "$component" ; then
63092        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
63093$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
63094        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default" >&5
63095$as_echo "$as_me: WARNING: This component was selected as the default" >&2;}
63096        as_fn_error $? "Cannot continue" "$LINENO" 5
63097    fi
63098
63099    if test ! -z "$DIRECT_ptl" ; then
63100        if test "$DIRECT_ptl" = "$component" ; then
63101            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MCA component \"$component\" failed to configure properly" >&5
63102$as_echo "$as_me: WARNING: MCA component \"$component\" failed to configure properly" >&2;}
63103            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This component was selected as the default (direct call)" >&5
63104$as_echo "$as_me: WARNING: This component was selected as the default (direct call)" >&2;}
63105            as_fn_error $? "Cannot continue" "$LINENO" 5
63106        fi
63107    fi
63108
63109            fi
63110        fi
63111    done
63112
63113fi
63114
63115    MCA_pmix_ptl_ALL_COMPONENTS="$all_components"
63116    MCA_pmix_ptl_STATIC_COMPONENTS="$static_components"
63117    MCA_pmix_ptl_DSO_COMPONENTS="$dso_components"
63118    MCA_pmix_ptl_STATIC_LTLIBS="$static_ltlibs"
63119
63120
63121
63122
63123
63124
63125
63126    MCA_pmix_ptl_ALL_SUBDIRS=
63127    for item in $all_components ; do
63128       MCA_pmix_ptl_ALL_SUBDIRS="$MCA_pmix_ptl_ALL_SUBDIRS mca/ptl/$item"
63129    done
63130
63131
63132
63133    MCA_pmix_ptl_STATIC_SUBDIRS=
63134    for item in $static_components ; do
63135       MCA_pmix_ptl_STATIC_SUBDIRS="$MCA_pmix_ptl_STATIC_SUBDIRS mca/ptl/$item"
63136    done
63137
63138
63139
63140    MCA_pmix_ptl_DSO_SUBDIRS=
63141    for item in $dso_components ; do
63142       MCA_pmix_ptl_DSO_SUBDIRS="$MCA_pmix_ptl_DSO_SUBDIRS mca/ptl/$item"
63143    done
63144
63145
63146
63147    # Create the final .h file that will be included in the type's
63148    # top-level glue.  This lists all the static components.  We don't
63149    # need to do this for "common".
63150    if test "ptl" != "common"; then
63151        cat > $outfile <<EOF
63152/*
63153 * \$HEADER\$
63154 */
63155#if defined(c_plusplus) || defined(__cplusplus)
63156extern "C" {
63157#endif
63158
63159`cat $outfile.extern`
63160
63161const pmix_mca_base_component_t *mca_ptl_base_static_components[] = {
63162`cat $outfile.struct`
63163  NULL
63164};
63165
63166#if defined(c_plusplus) || defined(__cplusplus)
63167}
63168#endif
63169
63170EOF
63171        # Only replace the header file if a) it doesn't previously
63172        # exist, or b) the contents are different.  Do this to not
63173        # trigger recompilation of certain .c files just because the
63174        # timestamp changed on $outfile_real (similar to the way AC
63175        # handles AC_CONFIG_HEADER files).
63176        diff $outfile $outfile_real > /dev/null 2>&1
63177        if test "$?" != "0"; then
63178            mv $outfile $outfile_real
63179        else
63180            rm -f $outfile
63181        fi
63182    fi
63183    rm -f $outfile.struct $outfile.extern
63184
63185    unset all_components static_components dso_components outfile outfile_real
63186
63187
63188    # note that mca_wrapper_extra_* is a running list, and we take checkpoints at the end of our project
63189    pmix_mca_wrapper_extra_cppflags="$mca_wrapper_extra_cppflags"
63190    pmix_mca_wrapper_extra_ldflags="$mca_wrapper_extra_ldflags"
63191    pmix_mca_wrapper_extra_libs="$mca_wrapper_extra_libs"
63192
63193
63194
63195
63196
63197
63198
63199
63200
63201
63202
63203
63204    ##################################
63205    # Dstore Locking
63206    ##################################
63207
63208    pmix_show_title "Dstore Locking"
63209
63210
63211
63212
63213
63214    # Is the private index set?  If not, set it.
63215    if test "x$pmix_scope_index" = "x"; then
63216        pmix_scope_index=1
63217    fi
63218
63219    # First, check to see if any of these variables are already set.
63220    # This is a simple sanity check to ensure we're not already
63221    # overwriting pre-existing variables (that have a non-empty
63222    # value).  It's not a perfect check, but at least it's something.
63223    for pmix_var in orig_libs pmix_prefer_write_nonrecursive; do
63224        pmix_str="pmix_str=\"\$$pmix_var\""
63225        eval $pmix_str
63226
63227        if test "x$pmix_str" != "x"; then
63228            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
63229$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
63230            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
63231$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
63232            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
63233$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
63234            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
63235$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
63236            as_fn_error $? "Cannot continue" "$LINENO" 5
63237        fi
63238    done
63239
63240    # Ok, we passed the simple sanity check.  Save all these names so
63241    # that we can unset them at the end of the scope.
63242    pmix_str="pmix_scope_$pmix_scope_index=\"orig_libs pmix_prefer_write_nonrecursive\""
63243    eval $pmix_str
63244    unset pmix_str
63245
63246    env | grep pmix_scope
63247    pmix_scope_index=`expr $pmix_scope_index + 1`
63248
63249
63250    orig_libs=$LIBS
63251    LIBS="-lpthread $LIBS"
63252
63253    _x_ac_pthread_lock_found=0
63254    _x_ac_fcntl_lock_found=0
63255    pmix_prefer_write_nonrecursive=0
63256
63257    ac_fn_c_check_member "$LINENO" "struct flock" "l_type" "ac_cv_member_struct_flock_l_type" "#include <fcntl.h>
63258"
63259if test "x$ac_cv_member_struct_flock_l_type" = xyes; then :
63260  pmix_fcntl_flock_happy=yes
63261                     _x_ac_fcntl_lock_found=1
63262else
63263  pmix_fcntl_flock_happy=no
63264fi
63265
63266
63267    if test "$DSTORE_PTHREAD_LOCK" = "1"; then
63268
63269        { $as_echo "$as_me:${as_lineno-$LINENO}: checking pthread_process_shared" >&5
63270$as_echo_n "checking pthread_process_shared... " >&6; }
63271        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63272/* end confdefs.h.  */
63273#include <pthread.h>
63274                      #ifdef PTHREAD_PROCESS_SHARED
63275                        yes
63276                      #endif
63277
63278_ACEOF
63279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63280  $EGREP "yes" >/dev/null 2>&1; then :
63281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
63282$as_echo "yes" >&6; }
63283                      pmix_pthread_process_shared=yes
63284else
63285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
63286$as_echo "no" >&6; }
63287                      pmix_pthread_process_shared=no
63288fi
63289rm -f conftest*
63290
63291
63292        ac_fn_c_check_func "$LINENO" "pthread_rwlockattr_setkind_np" "ac_cv_func_pthread_rwlockattr_setkind_np"
63293if test "x$ac_cv_func_pthread_rwlockattr_setkind_np" = xyes; then :
63294  pmix_pthread_rwlockattr_setkind_np=yes
63295                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
63296/* end confdefs.h.  */
63297#include <pthread.h>
63298                                     #ifdef PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP
63299                                       yes
63300                                     #endif
63301
63302_ACEOF
63303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63304  $EGREP "yes" >/dev/null 2>&1; then :
63305  pmix_pthread_rwlock_prefer_writer_nonrecursive_np=yes
63306else
63307  pmix_pthread_rwlock_prefer_writer_nonrecursive_np=no
63308fi
63309rm -f conftest*
63310
63311else
63312  pmix_pthread_rwlockattr_setkind_np=no
63313fi
63314
63315
63316        ac_fn_c_check_func "$LINENO" "pthread_rwlockattr_setpshared" "ac_cv_func_pthread_rwlockattr_setpshared"
63317if test "x$ac_cv_func_pthread_rwlockattr_setpshared" = xyes; then :
63318  pmix_pthread_rwlockattr_setpshared=yes
63319                       if test "$pmix_pthread_process_shared" = "yes"; then :
63320  _x_ac_pthread_lock_found=1
63321fi
63322
63323else
63324  pmix_pthread_rwlockattr_setpshared=no
63325fi
63326
63327        ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared"
63328if test "x$ac_cv_func_pthread_mutexattr_setpshared" = xyes; then :
63329  pmix_pthread_mutexattr_setpshared=yes
63330else
63331  pmix_pthread_mutexattr_setpshared=no
63332fi
63333
63334
63335        if test "$pmix_pthread_rwlockattr_setkind_np" = "yes" && test "$pmix_pthread_rwlock_prefer_writer_nonrecursive_np" = "yes"; then :
63336  pmix_prefer_write_nonrecursive=1
63337else
63338  pmix_prefer_write_nonrecursive=0
63339fi
63340
63341        if test "$_x_ac_pthread_lock_found" = "0"; then
63342            if test "$_x_ac_fcntl_lock_found" = "1"; then
63343                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dstore: pthread-based locking not found, will use fcntl-based locking." >&5
63344$as_echo "$as_me: WARNING: dstore: pthread-based locking not found, will use fcntl-based locking." >&2;}
63345            else
63346                as_fn_error $? "dstore: no available locking mechanisms was found. Can not continue. Try disabling dstore" "$LINENO" 5
63347            fi
63348        fi
63349    else
63350        if test "$_x_ac_fcntl_lock_found" = "0"; then
63351            as_fn_error $? "dstore: no available locking mechanisms was found. Can not continue. Try disabling dstore" "$LINENO" 5
63352        fi
63353    fi
63354    LIBS="$orig_libs"
63355
63356
63357cat >>confdefs.h <<_ACEOF
63358#define PMIX_PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP $pmix_prefer_write_nonrecursive
63359_ACEOF
63360
63361     if test "$_x_ac_pthread_lock_found" = "1"; then
63362  HAVE_DSTORE_PTHREAD_LOCK_TRUE=
63363  HAVE_DSTORE_PTHREAD_LOCK_FALSE='#'
63364else
63365  HAVE_DSTORE_PTHREAD_LOCK_TRUE='#'
63366  HAVE_DSTORE_PTHREAD_LOCK_FALSE=
63367fi
63368
63369     if test "$_x_ac_fcntl_lock_found" = "1"; then
63370  HAVE_DSTORE_FCNTL_LOCK_TRUE=
63371  HAVE_DSTORE_FCNTL_LOCK_FALSE='#'
63372else
63373  HAVE_DSTORE_FCNTL_LOCK_TRUE='#'
63374  HAVE_DSTORE_FCNTL_LOCK_FALSE=
63375fi
63376
63377
63378
63379    # Unwind the index
63380    pmix_scope_index=`expr $pmix_scope_index - 1`
63381    pmix_scope_test=`expr $pmix_scope_index \> 0`
63382    if test "$pmix_scope_test" = "0"; then
63383        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
63384$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
63385        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
63386$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
63387        as_fn_error $? "Cannot continue" "$LINENO" 5
63388    fi
63389
63390    # Get the variable names from that index
63391    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
63392    eval $pmix_str
63393
63394    # Iterate over all the variables and unset them all
63395    for pmix_var in $pmix_str; do
63396        unset $pmix_var
63397    done
63398
63399
63400
63401
63402
63403    ############################################################################
63404    # final compiler config
63405    ############################################################################
63406
63407    pmix_show_subtitle "Set path-related compiler flags"
63408
63409    #
63410    # This is needed for VPATH builds, so that it will -I the appropriate
63411    # include directory.  We delayed doing it until now just so that
63412    # '-I$(top_srcdir)' doesn't show up in any of the configure output --
63413    # purely aesthetic.
63414    #
63415    # Because pmix_config.h is created by AC_CONFIG_HEADERS, we
63416    # don't need to -I the builddir for pmix/include. However, if we
63417    # are VPATH building, we do need to include the source directories.
63418    #
63419    if test "$PMIX_top_builddir" != "$PMIX_top_srcdir"; then
63420        # Note the embedded m4 directives here -- we must embed them
63421        # rather than have successive assignments to these shell
63422        # variables, lest the $(foo) names try to get evaluated here.
63423        # Yuck!
63424        CPPFLAGS="-I$PMIX_top_builddir -I$PMIX_top_srcdir -I$PMIX_top_srcdir/src -I$PMIX_top_builddir/include -I$PMIX_top_srcdir/include $CPPFLAGS"
63425    else
63426        CPPFLAGS="-I$PMIX_top_srcdir -I$PMIX_top_srcdir/src -I$PMIX_top_srcdir/include $CPPFLAGS"
63427    fi
63428
63429    # pmixdatadir, pmixlibdir, and pmixinclude are essentially the same as
63430    # pkg*dir, but will always be */pmix.
63431    pmixdatadir='${datadir}/pmix'
63432    pmixlibdir='${libdir}/pmix'
63433    pmixincludedir='${includedir}/pmix'
63434
63435
63436
63437
63438    ############################################################################
63439    # final output
63440    ############################################################################
63441
63442    pmix_show_subtitle "Final output"
63443
63444    ac_config_headers="$ac_config_headers include/pmix_common.h"
63445
63446
63447    ac_config_files="$ac_config_files Makefile config/Makefile etc/Makefile include/Makefile src/Makefile src/util/keyval/Makefile src/mca/base/Makefile"
63448
63449
63450    # publish any embedded flags so external wrappers can use them
63451
63452
63453
63454
63455    # Success
63456
63457
63458
63459# Run the AM_CONDITIONALs
63460
63461    if test "$pmix_did_am_conditionals" != "yes"; then :
63462
63463         if test "x$pmix_mode" = "xembedded"; then
63464  PMIX_EMBEDDED_MODE_TRUE=
63465  PMIX_EMBEDDED_MODE_FALSE='#'
63466else
63467  PMIX_EMBEDDED_MODE_TRUE='#'
63468  PMIX_EMBEDDED_MODE_FALSE=
63469fi
63470
63471         if test "x$pmix_tests" = "xyes"; then
63472  PMIX_TESTS_EXAMPLES_TRUE=
63473  PMIX_TESTS_EXAMPLES_FALSE='#'
63474else
63475  PMIX_TESTS_EXAMPLES_TRUE='#'
63476  PMIX_TESTS_EXAMPLES_FALSE=
63477fi
63478
63479         if test "$WANT_TIMING" = "1"; then
63480  PMIX_COMPILE_TIMING_TRUE=
63481  PMIX_COMPILE_TIMING_FALSE='#'
63482else
63483  PMIX_COMPILE_TIMING_TRUE='#'
63484  PMIX_COMPILE_TIMING_FALSE=
63485fi
63486
63487         if test "$pmix_munge_support" = "1"; then
63488  PMIX_WANT_MUNGE_TRUE=
63489  PMIX_WANT_MUNGE_FALSE='#'
63490else
63491  PMIX_WANT_MUNGE_TRUE='#'
63492  PMIX_WANT_MUNGE_FALSE=
63493fi
63494
63495         if test "$pmix_sasl_support" = "1"; then
63496  PMIX_WANT_SASL_TRUE=
63497  PMIX_WANT_SASL_FALSE='#'
63498else
63499  PMIX_WANT_SASL_TRUE='#'
63500  PMIX_WANT_SASL_FALSE=
63501fi
63502
63503         if test "x$enable_dstore" != "xno"; then
63504  WANT_DSTORE_TRUE=
63505  WANT_DSTORE_FALSE='#'
63506else
63507  WANT_DSTORE_TRUE='#'
63508  WANT_DSTORE_FALSE=
63509fi
63510
63511         if test "x$pmix_install_primary_headers" = "xyes"; then
63512  WANT_PRIMARY_HEADERS_TRUE=
63513  WANT_PRIMARY_HEADERS_FALSE='#'
63514else
63515  WANT_PRIMARY_HEADERS_TRUE='#'
63516  WANT_PRIMARY_HEADERS_FALSE=
63517fi
63518
63519         if test "$WANT_INSTALL_HEADERS" = 1; then
63520  WANT_INSTALL_HEADERS_TRUE=
63521  WANT_INSTALL_HEADERS_FALSE='#'
63522else
63523  WANT_INSTALL_HEADERS_TRUE='#'
63524  WANT_INSTALL_HEADERS_FALSE=
63525fi
63526
63527         if test "$WANT_PMI_BACKWARD" = 1; then
63528  WANT_PMI_BACKWARD_TRUE=
63529  WANT_PMI_BACKWARD_FALSE='#'
63530else
63531  WANT_PMI_BACKWARD_TRUE='#'
63532  WANT_PMI_BACKWARD_FALSE=
63533fi
63534
63535         if test "$pmix_need_libpmix" = "1"; then
63536  NEED_LIBPMIX_TRUE=
63537  NEED_LIBPMIX_FALSE='#'
63538else
63539  NEED_LIBPMIX_TRUE='#'
63540  NEED_LIBPMIX_FALSE=
63541fi
63542
63543
63544fi
63545    pmix_did_am_conditionals=yes
63546
63547
63548####################################################################
63549# Setup C compiler
63550####################################################################
63551
63552
63553if test -z "$CC_FOR_BUILD"; then :
63554
63555    CC_FOR_BUILD=$CC
63556
63557
63558fi
63559
63560# restore any user-provided Werror flags
63561if test ! -z "$PMIX_CFLAGS_cache"; then :
63562  CFLAGS="$CFLAGS $PMIX_CFLAGS_cache"
63563fi
63564
63565# Delay setting pickyness until here so we
63566# don't break configure code tests
63567#if test "$WANT_PICKY_COMPILER" = "1"; then
63568#    CFLAGS="$CFLAGS -Wall -Wextra -Werror"
63569#fi
63570
63571# Cleanup duplicate flags
63572
63573    # 1 is the variable name to be uniq-ized
63574    pmix_name=CFLAGS
63575
63576    # Go through each item in the variable and only keep the unique ones
63577
63578    pmix_count=0
63579    for val in ${CFLAGS}; do
63580        pmix_done=0
63581        pmix_i=1
63582        pmix_found=0
63583
63584        # Loop over every token we've seen so far
63585
63586        pmix_done="`expr $pmix_i \> $pmix_count`"
63587        while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do
63588
63589            # Have we seen this token already?  Prefix the comparison
63590            # with "x" so that "-Lfoo" values won't be cause an error.
63591
63592	    pmix_eval="expr x$val = x\$pmix_array_$pmix_i"
63593	    pmix_found=`eval $pmix_eval`
63594
63595            # Check the ending condition
63596
63597	    pmix_done="`expr $pmix_i \>= $pmix_count`"
63598
63599            # Increment the counter
63600
63601	    pmix_i="`expr $pmix_i + 1`"
63602        done
63603
63604        # Check for special cases where we do want to allow repeated
63605        # arguments (per
63606        # http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
63607        # and
63608        # https://github.com/open-mpi/ompi/issues/324).
63609
63610        case $val in
63611        -Xclang|-Xg)
63612                pmix_found=0
63613                pmix_i=`expr $pmix_count + 1`
63614                ;;
63615        -framework)
63616                pmix_found=0
63617                pmix_i=`expr $pmix_count + 1`
63618                ;;
63619        --param)
63620                pmix_found=0
63621                pmix_i=`expr $pmix_count + 1`
63622                ;;
63623        esac
63624
63625        # If we didn't find the token, add it to the "array"
63626
63627        if test "$pmix_found" = "0"; then
63628	    pmix_eval="pmix_array_$pmix_i=$val"
63629	    eval $pmix_eval
63630	    pmix_count="`expr $pmix_count + 1`"
63631        else
63632	    pmix_i="`expr $pmix_i - 1`"
63633        fi
63634    done
63635
63636    # Take all the items in the "array" and assemble them back into a
63637    # single variable
63638
63639    pmix_i=1
63640    pmix_done="`expr $pmix_i \> $pmix_count`"
63641    pmix_newval=
63642    while test "$pmix_done" = "0"; do
63643        pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\""
63644        eval $pmix_eval
63645
63646        pmix_eval="unset pmix_array_$pmix_i"
63647        eval $pmix_eval
63648
63649        pmix_done="`expr $pmix_i \>= $pmix_count`"
63650        pmix_i="`expr $pmix_i + 1`"
63651    done
63652
63653    # Done; do the assignment
63654
63655    pmix_newval="`echo $pmix_newval`"
63656    pmix_eval="$pmix_name=\"$pmix_newval\""
63657    eval $pmix_eval
63658
63659    # Clean up
63660
63661    unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count
63662
63663
63664    # 1 is the variable name to be uniq-ized
63665    pmix_name=CPPFLAGS
63666
63667    # Go through each item in the variable and only keep the unique ones
63668
63669    pmix_count=0
63670    for val in ${CPPFLAGS}; do
63671        pmix_done=0
63672        pmix_i=1
63673        pmix_found=0
63674
63675        # Loop over every token we've seen so far
63676
63677        pmix_done="`expr $pmix_i \> $pmix_count`"
63678        while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do
63679
63680            # Have we seen this token already?  Prefix the comparison
63681            # with "x" so that "-Lfoo" values won't be cause an error.
63682
63683	    pmix_eval="expr x$val = x\$pmix_array_$pmix_i"
63684	    pmix_found=`eval $pmix_eval`
63685
63686            # Check the ending condition
63687
63688	    pmix_done="`expr $pmix_i \>= $pmix_count`"
63689
63690            # Increment the counter
63691
63692	    pmix_i="`expr $pmix_i + 1`"
63693        done
63694
63695        # Check for special cases where we do want to allow repeated
63696        # arguments (per
63697        # http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
63698        # and
63699        # https://github.com/open-mpi/ompi/issues/324).
63700
63701        case $val in
63702        -Xclang|-Xg)
63703                pmix_found=0
63704                pmix_i=`expr $pmix_count + 1`
63705                ;;
63706        -framework)
63707                pmix_found=0
63708                pmix_i=`expr $pmix_count + 1`
63709                ;;
63710        --param)
63711                pmix_found=0
63712                pmix_i=`expr $pmix_count + 1`
63713                ;;
63714        esac
63715
63716        # If we didn't find the token, add it to the "array"
63717
63718        if test "$pmix_found" = "0"; then
63719	    pmix_eval="pmix_array_$pmix_i=$val"
63720	    eval $pmix_eval
63721	    pmix_count="`expr $pmix_count + 1`"
63722        else
63723	    pmix_i="`expr $pmix_i - 1`"
63724        fi
63725    done
63726
63727    # Take all the items in the "array" and assemble them back into a
63728    # single variable
63729
63730    pmix_i=1
63731    pmix_done="`expr $pmix_i \> $pmix_count`"
63732    pmix_newval=
63733    while test "$pmix_done" = "0"; do
63734        pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\""
63735        eval $pmix_eval
63736
63737        pmix_eval="unset pmix_array_$pmix_i"
63738        eval $pmix_eval
63739
63740        pmix_done="`expr $pmix_i \>= $pmix_count`"
63741        pmix_i="`expr $pmix_i + 1`"
63742    done
63743
63744    # Done; do the assignment
63745
63746    pmix_newval="`echo $pmix_newval`"
63747    pmix_eval="$pmix_name=\"$pmix_newval\""
63748    eval $pmix_eval
63749
63750    # Clean up
63751
63752    unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count
63753
63754
63755    # 1 is the variable name to be uniq-ized
63756    pmix_name=LDFLAGS
63757
63758    # Go through each item in the variable and only keep the unique ones
63759
63760    pmix_count=0
63761    for val in ${LDFLAGS}; do
63762        pmix_done=0
63763        pmix_i=1
63764        pmix_found=0
63765
63766        # Loop over every token we've seen so far
63767
63768        pmix_done="`expr $pmix_i \> $pmix_count`"
63769        while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do
63770
63771            # Have we seen this token already?  Prefix the comparison
63772            # with "x" so that "-Lfoo" values won't be cause an error.
63773
63774	    pmix_eval="expr x$val = x\$pmix_array_$pmix_i"
63775	    pmix_found=`eval $pmix_eval`
63776
63777            # Check the ending condition
63778
63779	    pmix_done="`expr $pmix_i \>= $pmix_count`"
63780
63781            # Increment the counter
63782
63783	    pmix_i="`expr $pmix_i + 1`"
63784        done
63785
63786        # Check for special cases where we do want to allow repeated
63787        # arguments (per
63788        # http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
63789        # and
63790        # https://github.com/open-mpi/ompi/issues/324).
63791
63792        case $val in
63793        -Xclang|-Xg)
63794                pmix_found=0
63795                pmix_i=`expr $pmix_count + 1`
63796                ;;
63797        -framework)
63798                pmix_found=0
63799                pmix_i=`expr $pmix_count + 1`
63800                ;;
63801        --param)
63802                pmix_found=0
63803                pmix_i=`expr $pmix_count + 1`
63804                ;;
63805        esac
63806
63807        # If we didn't find the token, add it to the "array"
63808
63809        if test "$pmix_found" = "0"; then
63810	    pmix_eval="pmix_array_$pmix_i=$val"
63811	    eval $pmix_eval
63812	    pmix_count="`expr $pmix_count + 1`"
63813        else
63814	    pmix_i="`expr $pmix_i - 1`"
63815        fi
63816    done
63817
63818    # Take all the items in the "array" and assemble them back into a
63819    # single variable
63820
63821    pmix_i=1
63822    pmix_done="`expr $pmix_i \> $pmix_count`"
63823    pmix_newval=
63824    while test "$pmix_done" = "0"; do
63825        pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\""
63826        eval $pmix_eval
63827
63828        pmix_eval="unset pmix_array_$pmix_i"
63829        eval $pmix_eval
63830
63831        pmix_done="`expr $pmix_i \>= $pmix_count`"
63832        pmix_i="`expr $pmix_i + 1`"
63833    done
63834
63835    # Done; do the assignment
63836
63837    pmix_newval="`echo $pmix_newval`"
63838    pmix_eval="$pmix_name=\"$pmix_newval\""
63839    eval $pmix_eval
63840
63841    # Clean up
63842
63843    unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count
63844
63845
63846    # 1 is the variable name to be uniq-ized
63847    pmix_name=LIBS
63848
63849    # Go through each item in the variable and only keep the unique ones
63850
63851    pmix_count=0
63852    for val in ${LIBS}; do
63853        pmix_done=0
63854        pmix_i=1
63855        pmix_found=0
63856
63857        # Loop over every token we've seen so far
63858
63859        pmix_done="`expr $pmix_i \> $pmix_count`"
63860        while test "$pmix_found" = "0" && test "$pmix_done" = "0"; do
63861
63862            # Have we seen this token already?  Prefix the comparison
63863            # with "x" so that "-Lfoo" values won't be cause an error.
63864
63865	    pmix_eval="expr x$val = x\$pmix_array_$pmix_i"
63866	    pmix_found=`eval $pmix_eval`
63867
63868            # Check the ending condition
63869
63870	    pmix_done="`expr $pmix_i \>= $pmix_count`"
63871
63872            # Increment the counter
63873
63874	    pmix_i="`expr $pmix_i + 1`"
63875        done
63876
63877        # Check for special cases where we do want to allow repeated
63878        # arguments (per
63879        # http://www.open-mpi.org/community/lists/devel/2012/08/11362.php
63880        # and
63881        # https://github.com/open-mpi/ompi/issues/324).
63882
63883        case $val in
63884        -Xclang|-Xg)
63885                pmix_found=0
63886                pmix_i=`expr $pmix_count + 1`
63887                ;;
63888        -framework)
63889                pmix_found=0
63890                pmix_i=`expr $pmix_count + 1`
63891                ;;
63892        --param)
63893                pmix_found=0
63894                pmix_i=`expr $pmix_count + 1`
63895                ;;
63896        esac
63897
63898        # If we didn't find the token, add it to the "array"
63899
63900        if test "$pmix_found" = "0"; then
63901	    pmix_eval="pmix_array_$pmix_i=$val"
63902	    eval $pmix_eval
63903	    pmix_count="`expr $pmix_count + 1`"
63904        else
63905	    pmix_i="`expr $pmix_i - 1`"
63906        fi
63907    done
63908
63909    # Take all the items in the "array" and assemble them back into a
63910    # single variable
63911
63912    pmix_i=1
63913    pmix_done="`expr $pmix_i \> $pmix_count`"
63914    pmix_newval=
63915    while test "$pmix_done" = "0"; do
63916        pmix_eval="pmix_newval=\"$pmix_newval \$pmix_array_$pmix_i\""
63917        eval $pmix_eval
63918
63919        pmix_eval="unset pmix_array_$pmix_i"
63920        eval $pmix_eval
63921
63922        pmix_done="`expr $pmix_i \>= $pmix_count`"
63923        pmix_i="`expr $pmix_i + 1`"
63924    done
63925
63926    # Done; do the assignment
63927
63928    pmix_newval="`echo $pmix_newval`"
63929    pmix_eval="$pmix_name=\"$pmix_newval\""
63930    eval $pmix_eval
63931
63932    # Clean up
63933
63934    unset pmix_name pmix_i pmix_done pmix_newval pmix_eval pmix_count
63935
63936
63937#
63938# Delayed the substitution of CFLAGS and CXXFLAGS until now because
63939# they may have been modified throughout the course of this script.
63940#
63941
63942
63943
63944
63945pmix_show_title "Final compiler flags"
63946
63947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking final CPPFLAGS" >&5
63948$as_echo_n "checking final CPPFLAGS... " >&6; }
63949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPFLAGS" >&5
63950$as_echo "$CPPFLAGS" >&6; }
63951
63952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking final CFLAGS" >&5
63953$as_echo_n "checking final CFLAGS... " >&6; }
63954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGS" >&5
63955$as_echo "$CFLAGS" >&6; }
63956
63957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking final LDFLAGS" >&5
63958$as_echo_n "checking final LDFLAGS... " >&6; }
63959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDFLAGS" >&5
63960$as_echo "$LDFLAGS" >&6; }
63961
63962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking final LIBS" >&5
63963$as_echo_n "checking final LIBS... " >&6; }
63964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
63965$as_echo "$LIBS" >&6; }
63966
63967####################################################################
63968# Version information
63969####################################################################
63970
63971# PMIX_VERSION was setup by PMIX_SETUP_CORE above.
63972
63973# Make configure depend on the VERSION file, since it's used in AC_INIT
63974CONFIGURE_DEPENDENCIES='$(top_srcdir)/VERSION'
63975
63976
63977. $srcdir/VERSION
63978
63979
63980
63981
63982
63983ac_config_files="$ac_config_files contrib/Makefile examples/Makefile test/Makefile test/simple/Makefile"
63984
63985
63986pmix_show_title "Configuration complete"
63987
63988cat >confcache <<\_ACEOF
63989# This file is a shell script that caches the results of configure
63990# tests run on this system so they can be shared between configure
63991# scripts and configure runs, see configure's option --config-cache.
63992# It is not useful on other systems.  If it contains results you don't
63993# want to keep, you may remove or edit it.
63994#
63995# config.status only pays attention to the cache file if you give it
63996# the --recheck option to rerun configure.
63997#
63998# `ac_cv_env_foo' variables (set or unset) will be overridden when
63999# loading this file, other *unset* `ac_cv_foo' will be assigned the
64000# following values.
64001
64002_ACEOF
64003
64004# The following way of writing the cache mishandles newlines in values,
64005# but we know of no workaround that is simple, portable, and efficient.
64006# So, we kill variables containing newlines.
64007# Ultrix sh set writes to stderr and can't be redirected directly,
64008# and sets the high bit in the cache file unless we assign to the vars.
64009(
64010  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
64011    eval ac_val=\$$ac_var
64012    case $ac_val in #(
64013    *${as_nl}*)
64014      case $ac_var in #(
64015      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
64016$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
64017      esac
64018      case $ac_var in #(
64019      _ | IFS | as_nl) ;; #(
64020      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
64021      *) { eval $ac_var=; unset $ac_var;} ;;
64022      esac ;;
64023    esac
64024  done
64025
64026  (set) 2>&1 |
64027    case $as_nl`(ac_space=' '; set) 2>&1` in #(
64028    *${as_nl}ac_space=\ *)
64029      # `set' does not quote correctly, so add quotes: double-quote
64030      # substitution turns \\\\ into \\, and sed turns \\ into \.
64031      sed -n \
64032	"s/'/'\\\\''/g;
64033	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64034      ;; #(
64035    *)
64036      # `set' quotes correctly as required by POSIX, so do not add quotes.
64037      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
64038      ;;
64039    esac |
64040    sort
64041) |
64042  sed '
64043     /^ac_cv_env_/b end
64044     t clear
64045     :clear
64046     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
64047     t end
64048     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
64049     :end' >>confcache
64050if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
64051  if test -w "$cache_file"; then
64052    if test "x$cache_file" != "x/dev/null"; then
64053      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
64054$as_echo "$as_me: updating cache $cache_file" >&6;}
64055      if test ! -f "$cache_file" || test -h "$cache_file"; then
64056	cat confcache >"$cache_file"
64057      else
64058        case $cache_file in #(
64059        */* | ?:*)
64060	  mv -f confcache "$cache_file"$$ &&
64061	  mv -f "$cache_file"$$ "$cache_file" ;; #(
64062        *)
64063	  mv -f confcache "$cache_file" ;;
64064	esac
64065      fi
64066    fi
64067  else
64068    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
64069$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
64070  fi
64071fi
64072rm -f confcache
64073
64074test "x$prefix" = xNONE && prefix=$ac_default_prefix
64075# Let make expand exec_prefix.
64076test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
64077
64078DEFS=-DHAVE_CONFIG_H
64079
64080ac_libobjs=
64081ac_ltlibobjs=
64082U=
64083for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
64084  # 1. Remove the extension, and $U if already installed.
64085  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
64086  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
64087  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
64088  #    will be set to the directory where LIBOBJS objects are built.
64089  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
64090  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
64091done
64092LIBOBJS=$ac_libobjs
64093
64094LTLIBOBJS=$ac_ltlibobjs
64095
64096
64097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
64098$as_echo_n "checking that generated files are newer than configure... " >&6; }
64099   if test -n "$am_sleep_pid"; then
64100     # Hide warnings about reused PIDs.
64101     wait $am_sleep_pid 2>/dev/null
64102   fi
64103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
64104$as_echo "done" >&6; }
64105 if test -n "$EXEEXT"; then
64106  am__EXEEXT_TRUE=
64107  am__EXEEXT_FALSE='#'
64108else
64109  am__EXEEXT_TRUE='#'
64110  am__EXEEXT_FALSE=
64111fi
64112
64113if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
64114  as_fn_error $? "conditional \"AMDEP\" was never defined.
64115Usually this means the macro was only invoked conditionally." "$LINENO" 5
64116fi
64117if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
64118  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
64119Usually this means the macro was only invoked conditionally." "$LINENO" 5
64120fi
64121if test -z "${WANT_INSTALL_HEADERS_TRUE}" && test -z "${WANT_INSTALL_HEADERS_FALSE}"; then
64122  as_fn_error $? "conditional \"WANT_INSTALL_HEADERS\" was never defined.
64123Usually this means the macro was only invoked conditionally." "$LINENO" 5
64124fi
64125if test -z "${PMIX_INSTALL_BINARIES_TRUE}" && test -z "${PMIX_INSTALL_BINARIES_FALSE}"; then
64126  as_fn_error $? "conditional \"PMIX_INSTALL_BINARIES\" was never defined.
64127Usually this means the macro was only invoked conditionally." "$LINENO" 5
64128fi
64129if test -z "${MCA_BUILD_PSEC_DUMMY_HANDSHAKE_TRUE}" && test -z "${MCA_BUILD_PSEC_DUMMY_HANDSHAKE_FALSE}"; then
64130  as_fn_error $? "conditional \"MCA_BUILD_PSEC_DUMMY_HANDSHAKE\" was never defined.
64131Usually this means the macro was only invoked conditionally." "$LINENO" 5
64132fi
64133if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
64134  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
64135Usually this means the macro was only invoked conditionally." "$LINENO" 5
64136fi
64137if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
64138  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
64139Usually this means the macro was only invoked conditionally." "$LINENO" 5
64140fi
64141if test -z "${PMIX_DESTRUCTOR_USE_FINI_TRUE}" && test -z "${PMIX_DESTRUCTOR_USE_FINI_FALSE}"; then
64142  as_fn_error $? "conditional \"PMIX_DESTRUCTOR_USE_FINI\" was never defined.
64143Usually this means the macro was only invoked conditionally." "$LINENO" 5
64144fi
64145
64146if test -z "${WANT_HIDDEN_TRUE}" && test -z "${WANT_HIDDEN_FALSE}"; then
64147  as_fn_error $? "conditional \"WANT_HIDDEN\" was never defined.
64148Usually this means the macro was only invoked conditionally." "$LINENO" 5
64149fi
64150if test -z "${MCA_BUILD_pmix_common_dstore_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_common_dstore_DSO_FALSE}"; then
64151  as_fn_error $? "conditional \"MCA_BUILD_pmix_common_dstore_DSO\" was never defined.
64152Usually this means the macro was only invoked conditionally." "$LINENO" 5
64153fi
64154if test -z "${MCA_BUILD_pmix_bfrops_v12_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_bfrops_v12_DSO_FALSE}"; then
64155  as_fn_error $? "conditional \"MCA_BUILD_pmix_bfrops_v12_DSO\" was never defined.
64156Usually this means the macro was only invoked conditionally." "$LINENO" 5
64157fi
64158if test -z "${MCA_BUILD_pmix_bfrops_v20_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_bfrops_v20_DSO_FALSE}"; then
64159  as_fn_error $? "conditional \"MCA_BUILD_pmix_bfrops_v20_DSO\" was never defined.
64160Usually this means the macro was only invoked conditionally." "$LINENO" 5
64161fi
64162if test -z "${MCA_BUILD_pmix_bfrops_v21_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_bfrops_v21_DSO_FALSE}"; then
64163  as_fn_error $? "conditional \"MCA_BUILD_pmix_bfrops_v21_DSO\" was never defined.
64164Usually this means the macro was only invoked conditionally." "$LINENO" 5
64165fi
64166if test -z "${MCA_BUILD_pmix_gds_hash_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_gds_hash_DSO_FALSE}"; then
64167  as_fn_error $? "conditional \"MCA_BUILD_pmix_gds_hash_DSO\" was never defined.
64168Usually this means the macro was only invoked conditionally." "$LINENO" 5
64169fi
64170if test -z "${MCA_BUILD_pmix_gds_ds12_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_gds_ds12_DSO_FALSE}"; then
64171  as_fn_error $? "conditional \"MCA_BUILD_pmix_gds_ds12_DSO\" was never defined.
64172Usually this means the macro was only invoked conditionally." "$LINENO" 5
64173fi
64174if test -z "${MCA_BUILD_pmix_gds_ds21_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_gds_ds21_DSO_FALSE}"; then
64175  as_fn_error $? "conditional \"MCA_BUILD_pmix_gds_ds21_DSO\" was never defined.
64176Usually this means the macro was only invoked conditionally." "$LINENO" 5
64177fi
64178if test -z "${MCA_BUILD_pmix_pdl_pdlopen_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pdl_pdlopen_DSO_FALSE}"; then
64179  as_fn_error $? "conditional \"MCA_BUILD_pmix_pdl_pdlopen_DSO\" was never defined.
64180Usually this means the macro was only invoked conditionally." "$LINENO" 5
64181fi
64182if test -z "${MCA_BUILD_pmix_pdl_plibltdl_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pdl_plibltdl_DSO_FALSE}"; then
64183  as_fn_error $? "conditional \"MCA_BUILD_pmix_pdl_plibltdl_DSO\" was never defined.
64184Usually this means the macro was only invoked conditionally." "$LINENO" 5
64185fi
64186if test -z "${MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pif_bsdx_ipv4_DSO_FALSE}"; then
64187  as_fn_error $? "conditional \"MCA_BUILD_pmix_pif_bsdx_ipv4_DSO\" was never defined.
64188Usually this means the macro was only invoked conditionally." "$LINENO" 5
64189fi
64190if test -z "${MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pif_bsdx_ipv6_DSO_FALSE}"; then
64191  as_fn_error $? "conditional \"MCA_BUILD_pmix_pif_bsdx_ipv6_DSO\" was never defined.
64192Usually this means the macro was only invoked conditionally." "$LINENO" 5
64193fi
64194if test -z "${MCA_BUILD_pmix_pif_linux_ipv6_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pif_linux_ipv6_DSO_FALSE}"; then
64195  as_fn_error $? "conditional \"MCA_BUILD_pmix_pif_linux_ipv6_DSO\" was never defined.
64196Usually this means the macro was only invoked conditionally." "$LINENO" 5
64197fi
64198if test -z "${MCA_BUILD_pmix_pif_posix_ipv4_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pif_posix_ipv4_DSO_FALSE}"; then
64199  as_fn_error $? "conditional \"MCA_BUILD_pmix_pif_posix_ipv4_DSO\" was never defined.
64200Usually this means the macro was only invoked conditionally." "$LINENO" 5
64201fi
64202if test -z "${MCA_BUILD_pmix_pif_solaris_ipv6_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pif_solaris_ipv6_DSO_FALSE}"; then
64203  as_fn_error $? "conditional \"MCA_BUILD_pmix_pif_solaris_ipv6_DSO\" was never defined.
64204Usually this means the macro was only invoked conditionally." "$LINENO" 5
64205fi
64206if test -z "${MCA_BUILD_pmix_pinstalldirs_env_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pinstalldirs_env_DSO_FALSE}"; then
64207  as_fn_error $? "conditional \"MCA_BUILD_pmix_pinstalldirs_env_DSO\" was never defined.
64208Usually this means the macro was only invoked conditionally." "$LINENO" 5
64209fi
64210if test -z "${MCA_BUILD_pmix_pinstalldirs_config_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pinstalldirs_config_DSO_FALSE}"; then
64211  as_fn_error $? "conditional \"MCA_BUILD_pmix_pinstalldirs_config_DSO\" was never defined.
64212Usually this means the macro was only invoked conditionally." "$LINENO" 5
64213fi
64214if test -z "${MCA_BUILD_pmix_preg_native_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_preg_native_DSO_FALSE}"; then
64215  as_fn_error $? "conditional \"MCA_BUILD_pmix_preg_native_DSO\" was never defined.
64216Usually this means the macro was only invoked conditionally." "$LINENO" 5
64217fi
64218if test -z "${MCA_BUILD_pmix_psec_dummy_handshake_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psec_dummy_handshake_DSO_FALSE}"; then
64219  as_fn_error $? "conditional \"MCA_BUILD_pmix_psec_dummy_handshake_DSO\" was never defined.
64220Usually this means the macro was only invoked conditionally." "$LINENO" 5
64221fi
64222if test -z "${MCA_BUILD_pmix_psec_native_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psec_native_DSO_FALSE}"; then
64223  as_fn_error $? "conditional \"MCA_BUILD_pmix_psec_native_DSO\" was never defined.
64224Usually this means the macro was only invoked conditionally." "$LINENO" 5
64225fi
64226if test -z "${MCA_BUILD_pmix_psec_none_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psec_none_DSO_FALSE}"; then
64227  as_fn_error $? "conditional \"MCA_BUILD_pmix_psec_none_DSO\" was never defined.
64228Usually this means the macro was only invoked conditionally." "$LINENO" 5
64229fi
64230if test -z "${MCA_BUILD_pmix_psec_munge_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psec_munge_DSO_FALSE}"; then
64231  as_fn_error $? "conditional \"MCA_BUILD_pmix_psec_munge_DSO\" was never defined.
64232Usually this means the macro was only invoked conditionally." "$LINENO" 5
64233fi
64234if test -z "${MCA_BUILD_pmix_psensor_file_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psensor_file_DSO_FALSE}"; then
64235  as_fn_error $? "conditional \"MCA_BUILD_pmix_psensor_file_DSO\" was never defined.
64236Usually this means the macro was only invoked conditionally." "$LINENO" 5
64237fi
64238if test -z "${MCA_BUILD_pmix_psensor_heartbeat_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_psensor_heartbeat_DSO_FALSE}"; then
64239  as_fn_error $? "conditional \"MCA_BUILD_pmix_psensor_heartbeat_DSO\" was never defined.
64240Usually this means the macro was only invoked conditionally." "$LINENO" 5
64241fi
64242if test -z "${MCA_BUILD_pmix_pshmem_mmap_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_pshmem_mmap_DSO_FALSE}"; then
64243  as_fn_error $? "conditional \"MCA_BUILD_pmix_pshmem_mmap_DSO\" was never defined.
64244Usually this means the macro was only invoked conditionally." "$LINENO" 5
64245fi
64246if test -z "${MCA_BUILD_pmix_ptl_tcp_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_ptl_tcp_DSO_FALSE}"; then
64247  as_fn_error $? "conditional \"MCA_BUILD_pmix_ptl_tcp_DSO\" was never defined.
64248Usually this means the macro was only invoked conditionally." "$LINENO" 5
64249fi
64250if test -z "${MCA_BUILD_pmix_ptl_usock_DSO_TRUE}" && test -z "${MCA_BUILD_pmix_ptl_usock_DSO_FALSE}"; then
64251  as_fn_error $? "conditional \"MCA_BUILD_pmix_ptl_usock_DSO\" was never defined.
64252Usually this means the macro was only invoked conditionally." "$LINENO" 5
64253fi
64254if test -z "${HAVE_DSTORE_PTHREAD_LOCK_TRUE}" && test -z "${HAVE_DSTORE_PTHREAD_LOCK_FALSE}"; then
64255  as_fn_error $? "conditional \"HAVE_DSTORE_PTHREAD_LOCK\" was never defined.
64256Usually this means the macro was only invoked conditionally." "$LINENO" 5
64257fi
64258if test -z "${HAVE_DSTORE_FCNTL_LOCK_TRUE}" && test -z "${HAVE_DSTORE_FCNTL_LOCK_FALSE}"; then
64259  as_fn_error $? "conditional \"HAVE_DSTORE_FCNTL_LOCK\" was never defined.
64260Usually this means the macro was only invoked conditionally." "$LINENO" 5
64261fi
64262if test -z "${PMIX_EMBEDDED_MODE_TRUE}" && test -z "${PMIX_EMBEDDED_MODE_FALSE}"; then
64263  as_fn_error $? "conditional \"PMIX_EMBEDDED_MODE\" was never defined.
64264Usually this means the macro was only invoked conditionally." "$LINENO" 5
64265fi
64266if test -z "${PMIX_TESTS_EXAMPLES_TRUE}" && test -z "${PMIX_TESTS_EXAMPLES_FALSE}"; then
64267  as_fn_error $? "conditional \"PMIX_TESTS_EXAMPLES\" was never defined.
64268Usually this means the macro was only invoked conditionally." "$LINENO" 5
64269fi
64270if test -z "${PMIX_COMPILE_TIMING_TRUE}" && test -z "${PMIX_COMPILE_TIMING_FALSE}"; then
64271  as_fn_error $? "conditional \"PMIX_COMPILE_TIMING\" was never defined.
64272Usually this means the macro was only invoked conditionally." "$LINENO" 5
64273fi
64274if test -z "${PMIX_WANT_MUNGE_TRUE}" && test -z "${PMIX_WANT_MUNGE_FALSE}"; then
64275  as_fn_error $? "conditional \"PMIX_WANT_MUNGE\" was never defined.
64276Usually this means the macro was only invoked conditionally." "$LINENO" 5
64277fi
64278if test -z "${PMIX_WANT_SASL_TRUE}" && test -z "${PMIX_WANT_SASL_FALSE}"; then
64279  as_fn_error $? "conditional \"PMIX_WANT_SASL\" was never defined.
64280Usually this means the macro was only invoked conditionally." "$LINENO" 5
64281fi
64282if test -z "${WANT_DSTORE_TRUE}" && test -z "${WANT_DSTORE_FALSE}"; then
64283  as_fn_error $? "conditional \"WANT_DSTORE\" was never defined.
64284Usually this means the macro was only invoked conditionally." "$LINENO" 5
64285fi
64286if test -z "${WANT_PRIMARY_HEADERS_TRUE}" && test -z "${WANT_PRIMARY_HEADERS_FALSE}"; then
64287  as_fn_error $? "conditional \"WANT_PRIMARY_HEADERS\" was never defined.
64288Usually this means the macro was only invoked conditionally." "$LINENO" 5
64289fi
64290if test -z "${WANT_INSTALL_HEADERS_TRUE}" && test -z "${WANT_INSTALL_HEADERS_FALSE}"; then
64291  as_fn_error $? "conditional \"WANT_INSTALL_HEADERS\" was never defined.
64292Usually this means the macro was only invoked conditionally." "$LINENO" 5
64293fi
64294if test -z "${WANT_PMI_BACKWARD_TRUE}" && test -z "${WANT_PMI_BACKWARD_FALSE}"; then
64295  as_fn_error $? "conditional \"WANT_PMI_BACKWARD\" was never defined.
64296Usually this means the macro was only invoked conditionally." "$LINENO" 5
64297fi
64298if test -z "${NEED_LIBPMIX_TRUE}" && test -z "${NEED_LIBPMIX_FALSE}"; then
64299  as_fn_error $? "conditional \"NEED_LIBPMIX\" was never defined.
64300Usually this means the macro was only invoked conditionally." "$LINENO" 5
64301fi
64302
64303: "${CONFIG_STATUS=./config.status}"
64304ac_write_fail=0
64305ac_clean_files_save=$ac_clean_files
64306ac_clean_files="$ac_clean_files $CONFIG_STATUS"
64307{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
64308$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
64309as_write_fail=0
64310cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
64311#! $SHELL
64312# Generated by $as_me.
64313# Run this file to recreate the current configuration.
64314# Compiler output produced by configure, useful for debugging
64315# configure, is in config.log if it exists.
64316
64317debug=false
64318ac_cs_recheck=false
64319ac_cs_silent=false
64320
64321SHELL=\${CONFIG_SHELL-$SHELL}
64322export SHELL
64323_ASEOF
64324cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
64325## -------------------- ##
64326## M4sh Initialization. ##
64327## -------------------- ##
64328
64329# Be more Bourne compatible
64330DUALCASE=1; export DUALCASE # for MKS sh
64331if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
64332  emulate sh
64333  NULLCMD=:
64334  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
64335  # is contrary to our usage.  Disable this feature.
64336  alias -g '${1+"$@"}'='"$@"'
64337  setopt NO_GLOB_SUBST
64338else
64339  case `(set -o) 2>/dev/null` in #(
64340  *posix*) :
64341    set -o posix ;; #(
64342  *) :
64343     ;;
64344esac
64345fi
64346
64347
64348as_nl='
64349'
64350export as_nl
64351# Printing a long string crashes Solaris 7 /usr/bin/printf.
64352as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
64353as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
64354as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
64355# Prefer a ksh shell builtin over an external printf program on Solaris,
64356# but without wasting forks for bash or zsh.
64357if test -z "$BASH_VERSION$ZSH_VERSION" \
64358    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
64359  as_echo='print -r --'
64360  as_echo_n='print -rn --'
64361elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
64362  as_echo='printf %s\n'
64363  as_echo_n='printf %s'
64364else
64365  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
64366    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
64367    as_echo_n='/usr/ucb/echo -n'
64368  else
64369    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64370    as_echo_n_body='eval
64371      arg=$1;
64372      case $arg in #(
64373      *"$as_nl"*)
64374	expr "X$arg" : "X\\(.*\\)$as_nl";
64375	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64376      esac;
64377      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64378    '
64379    export as_echo_n_body
64380    as_echo_n='sh -c $as_echo_n_body as_echo'
64381  fi
64382  export as_echo_body
64383  as_echo='sh -c $as_echo_body as_echo'
64384fi
64385
64386# The user is always right.
64387if test "${PATH_SEPARATOR+set}" != set; then
64388  PATH_SEPARATOR=:
64389  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
64390    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
64391      PATH_SEPARATOR=';'
64392  }
64393fi
64394
64395
64396# IFS
64397# We need space, tab and new line, in precisely that order.  Quoting is
64398# there to prevent editors from complaining about space-tab.
64399# (If _AS_PATH_WALK were called with IFS unset, it would disable word
64400# splitting by setting IFS to empty value.)
64401IFS=" ""	$as_nl"
64402
64403# Find who we are.  Look in the path if we contain no directory separator.
64404as_myself=
64405case $0 in #((
64406  *[\\/]* ) as_myself=$0 ;;
64407  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
64408for as_dir in $PATH
64409do
64410  IFS=$as_save_IFS
64411  test -z "$as_dir" && as_dir=.
64412    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
64413  done
64414IFS=$as_save_IFS
64415
64416     ;;
64417esac
64418# We did not find ourselves, most probably we were run as `sh COMMAND'
64419# in which case we are not to be found in the path.
64420if test "x$as_myself" = x; then
64421  as_myself=$0
64422fi
64423if test ! -f "$as_myself"; then
64424  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
64425  exit 1
64426fi
64427
64428# Unset variables that we do not need and which cause bugs (e.g. in
64429# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
64430# suppresses any "Segmentation fault" message there.  '((' could
64431# trigger a bug in pdksh 5.2.14.
64432for as_var in BASH_ENV ENV MAIL MAILPATH
64433do eval test x\${$as_var+set} = xset \
64434  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
64435done
64436PS1='$ '
64437PS2='> '
64438PS4='+ '
64439
64440# NLS nuisances.
64441LC_ALL=C
64442export LC_ALL
64443LANGUAGE=C
64444export LANGUAGE
64445
64446# CDPATH.
64447(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
64448
64449
64450# as_fn_error STATUS ERROR [LINENO LOG_FD]
64451# ----------------------------------------
64452# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
64453# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
64454# script with STATUS, using 1 if that was 0.
64455as_fn_error ()
64456{
64457  as_status=$1; test $as_status -eq 0 && as_status=1
64458  if test "$4"; then
64459    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
64460    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
64461  fi
64462  $as_echo "$as_me: error: $2" >&2
64463  as_fn_exit $as_status
64464} # as_fn_error
64465
64466
64467# as_fn_set_status STATUS
64468# -----------------------
64469# Set $? to STATUS, without forking.
64470as_fn_set_status ()
64471{
64472  return $1
64473} # as_fn_set_status
64474
64475# as_fn_exit STATUS
64476# -----------------
64477# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
64478as_fn_exit ()
64479{
64480  set +e
64481  as_fn_set_status $1
64482  exit $1
64483} # as_fn_exit
64484
64485# as_fn_unset VAR
64486# ---------------
64487# Portably unset VAR.
64488as_fn_unset ()
64489{
64490  { eval $1=; unset $1;}
64491}
64492as_unset=as_fn_unset
64493# as_fn_append VAR VALUE
64494# ----------------------
64495# Append the text in VALUE to the end of the definition contained in VAR. Take
64496# advantage of any shell optimizations that allow amortized linear growth over
64497# repeated appends, instead of the typical quadratic growth present in naive
64498# implementations.
64499if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
64500  eval 'as_fn_append ()
64501  {
64502    eval $1+=\$2
64503  }'
64504else
64505  as_fn_append ()
64506  {
64507    eval $1=\$$1\$2
64508  }
64509fi # as_fn_append
64510
64511# as_fn_arith ARG...
64512# ------------------
64513# Perform arithmetic evaluation on the ARGs, and store the result in the
64514# global $as_val. Take advantage of shells that can avoid forks. The arguments
64515# must be portable across $(()) and expr.
64516if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
64517  eval 'as_fn_arith ()
64518  {
64519    as_val=$(( $* ))
64520  }'
64521else
64522  as_fn_arith ()
64523  {
64524    as_val=`expr "$@" || test $? -eq 1`
64525  }
64526fi # as_fn_arith
64527
64528
64529if expr a : '\(a\)' >/dev/null 2>&1 &&
64530   test "X`expr 00001 : '.*\(...\)'`" = X001; then
64531  as_expr=expr
64532else
64533  as_expr=false
64534fi
64535
64536if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
64537  as_basename=basename
64538else
64539  as_basename=false
64540fi
64541
64542if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
64543  as_dirname=dirname
64544else
64545  as_dirname=false
64546fi
64547
64548as_me=`$as_basename -- "$0" ||
64549$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
64550	 X"$0" : 'X\(//\)$' \| \
64551	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
64552$as_echo X/"$0" |
64553    sed '/^.*\/\([^/][^/]*\)\/*$/{
64554	    s//\1/
64555	    q
64556	  }
64557	  /^X\/\(\/\/\)$/{
64558	    s//\1/
64559	    q
64560	  }
64561	  /^X\/\(\/\).*/{
64562	    s//\1/
64563	    q
64564	  }
64565	  s/.*/./; q'`
64566
64567# Avoid depending upon Character Ranges.
64568as_cr_letters='abcdefghijklmnopqrstuvwxyz'
64569as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
64570as_cr_Letters=$as_cr_letters$as_cr_LETTERS
64571as_cr_digits='0123456789'
64572as_cr_alnum=$as_cr_Letters$as_cr_digits
64573
64574ECHO_C= ECHO_N= ECHO_T=
64575case `echo -n x` in #(((((
64576-n*)
64577  case `echo 'xy\c'` in
64578  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
64579  xy)  ECHO_C='\c';;
64580  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
64581       ECHO_T='	';;
64582  esac;;
64583*)
64584  ECHO_N='-n';;
64585esac
64586
64587rm -f conf$$ conf$$.exe conf$$.file
64588if test -d conf$$.dir; then
64589  rm -f conf$$.dir/conf$$.file
64590else
64591  rm -f conf$$.dir
64592  mkdir conf$$.dir 2>/dev/null
64593fi
64594if (echo >conf$$.file) 2>/dev/null; then
64595  if ln -s conf$$.file conf$$ 2>/dev/null; then
64596    as_ln_s='ln -s'
64597    # ... but there are two gotchas:
64598    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
64599    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
64600    # In both cases, we have to default to `cp -pR'.
64601    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
64602      as_ln_s='cp -pR'
64603  elif ln conf$$.file conf$$ 2>/dev/null; then
64604    as_ln_s=ln
64605  else
64606    as_ln_s='cp -pR'
64607  fi
64608else
64609  as_ln_s='cp -pR'
64610fi
64611rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
64612rmdir conf$$.dir 2>/dev/null
64613
64614
64615# as_fn_mkdir_p
64616# -------------
64617# Create "$as_dir" as a directory, including parents if necessary.
64618as_fn_mkdir_p ()
64619{
64620
64621  case $as_dir in #(
64622  -*) as_dir=./$as_dir;;
64623  esac
64624  test -d "$as_dir" || eval $as_mkdir_p || {
64625    as_dirs=
64626    while :; do
64627      case $as_dir in #(
64628      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
64629      *) as_qdir=$as_dir;;
64630      esac
64631      as_dirs="'$as_qdir' $as_dirs"
64632      as_dir=`$as_dirname -- "$as_dir" ||
64633$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64634	 X"$as_dir" : 'X\(//\)[^/]' \| \
64635	 X"$as_dir" : 'X\(//\)$' \| \
64636	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
64637$as_echo X"$as_dir" |
64638    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
64639	    s//\1/
64640	    q
64641	  }
64642	  /^X\(\/\/\)[^/].*/{
64643	    s//\1/
64644	    q
64645	  }
64646	  /^X\(\/\/\)$/{
64647	    s//\1/
64648	    q
64649	  }
64650	  /^X\(\/\).*/{
64651	    s//\1/
64652	    q
64653	  }
64654	  s/.*/./; q'`
64655      test -d "$as_dir" && break
64656    done
64657    test -z "$as_dirs" || eval "mkdir $as_dirs"
64658  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
64659
64660
64661} # as_fn_mkdir_p
64662if mkdir -p . 2>/dev/null; then
64663  as_mkdir_p='mkdir -p "$as_dir"'
64664else
64665  test -d ./-p && rmdir ./-p
64666  as_mkdir_p=false
64667fi
64668
64669
64670# as_fn_executable_p FILE
64671# -----------------------
64672# Test if FILE is an executable regular file.
64673as_fn_executable_p ()
64674{
64675  test -f "$1" && test -x "$1"
64676} # as_fn_executable_p
64677as_test_x='test -x'
64678as_executable_p=as_fn_executable_p
64679
64680# Sed expression to map a string onto a valid CPP name.
64681as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
64682
64683# Sed expression to map a string onto a valid variable name.
64684as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
64685
64686
64687exec 6>&1
64688## ----------------------------------- ##
64689## Main body of $CONFIG_STATUS script. ##
64690## ----------------------------------- ##
64691_ASEOF
64692test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
64693
64694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
64695# Save the log message, to keep $0 and so on meaningful, and to
64696# report actual input values of CONFIG_FILES etc. instead of their
64697# values after options handling.
64698ac_log="
64699This file was extended by pmix $as_me 2.2.3, which was
64700generated by GNU Autoconf 2.69.  Invocation command line was
64701
64702  CONFIG_FILES    = $CONFIG_FILES
64703  CONFIG_HEADERS  = $CONFIG_HEADERS
64704  CONFIG_LINKS    = $CONFIG_LINKS
64705  CONFIG_COMMANDS = $CONFIG_COMMANDS
64706  $ $0 $@
64707
64708on `(hostname || uname -n) 2>/dev/null | sed 1q`
64709"
64710
64711_ACEOF
64712
64713case $ac_config_files in *"
64714"*) set x $ac_config_files; shift; ac_config_files=$*;;
64715esac
64716
64717case $ac_config_headers in *"
64718"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
64719esac
64720
64721
64722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
64723# Files that config.status was made for.
64724config_files="$ac_config_files"
64725config_headers="$ac_config_headers"
64726config_commands="$ac_config_commands"
64727
64728_ACEOF
64729
64730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
64731ac_cs_usage="\
64732\`$as_me' instantiates files and other configuration actions
64733from templates according to the current configuration.  Unless the files
64734and actions are specified as TAGs, all are instantiated by default.
64735
64736Usage: $0 [OPTION]... [TAG]...
64737
64738  -h, --help       print this help, then exit
64739  -V, --version    print version number and configuration settings, then exit
64740      --config     print configuration, then exit
64741  -q, --quiet, --silent
64742                   do not print progress messages
64743  -d, --debug      don't remove temporary files
64744      --recheck    update $as_me by reconfiguring in the same conditions
64745      --file=FILE[:TEMPLATE]
64746                   instantiate the configuration file FILE
64747      --header=FILE[:TEMPLATE]
64748                   instantiate the configuration header FILE
64749
64750Configuration files:
64751$config_files
64752
64753Configuration headers:
64754$config_headers
64755
64756Configuration commands:
64757$config_commands
64758
64759Report bugs to <https://github.com/pmix/pmix/issues>."
64760
64761_ACEOF
64762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
64763ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
64764ac_cs_version="\\
64765pmix config.status 2.2.3
64766configured by $0, generated by GNU Autoconf 2.69,
64767  with options \\"\$ac_cs_config\\"
64768
64769Copyright (C) 2012 Free Software Foundation, Inc.
64770This config.status script is free software; the Free Software Foundation
64771gives unlimited permission to copy, distribute and modify it."
64772
64773ac_pwd='$ac_pwd'
64774srcdir='$srcdir'
64775INSTALL='$INSTALL'
64776MKDIR_P='$MKDIR_P'
64777AWK='$AWK'
64778test -n "\$AWK" || AWK=awk
64779_ACEOF
64780
64781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
64782# The default lists apply if the user does not specify any file.
64783ac_need_defaults=:
64784while test $# != 0
64785do
64786  case $1 in
64787  --*=?*)
64788    ac_option=`expr "X$1" : 'X\([^=]*\)='`
64789    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
64790    ac_shift=:
64791    ;;
64792  --*=)
64793    ac_option=`expr "X$1" : 'X\([^=]*\)='`
64794    ac_optarg=
64795    ac_shift=:
64796    ;;
64797  *)
64798    ac_option=$1
64799    ac_optarg=$2
64800    ac_shift=shift
64801    ;;
64802  esac
64803
64804  case $ac_option in
64805  # Handling of the options.
64806  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
64807    ac_cs_recheck=: ;;
64808  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
64809    $as_echo "$ac_cs_version"; exit ;;
64810  --config | --confi | --conf | --con | --co | --c )
64811    $as_echo "$ac_cs_config"; exit ;;
64812  --debug | --debu | --deb | --de | --d | -d )
64813    debug=: ;;
64814  --file | --fil | --fi | --f )
64815    $ac_shift
64816    case $ac_optarg in
64817    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
64818    '') as_fn_error $? "missing file argument" ;;
64819    esac
64820    as_fn_append CONFIG_FILES " '$ac_optarg'"
64821    ac_need_defaults=false;;
64822  --header | --heade | --head | --hea )
64823    $ac_shift
64824    case $ac_optarg in
64825    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
64826    esac
64827    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
64828    ac_need_defaults=false;;
64829  --he | --h)
64830    # Conflict between --help and --header
64831    as_fn_error $? "ambiguous option: \`$1'
64832Try \`$0 --help' for more information.";;
64833  --help | --hel | -h )
64834    $as_echo "$ac_cs_usage"; exit ;;
64835  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
64836  | -silent | --silent | --silen | --sile | --sil | --si | --s)
64837    ac_cs_silent=: ;;
64838
64839  # This is an error.
64840  -*) as_fn_error $? "unrecognized option: \`$1'
64841Try \`$0 --help' for more information." ;;
64842
64843  *) as_fn_append ac_config_targets " $1"
64844     ac_need_defaults=false ;;
64845
64846  esac
64847  shift
64848done
64849
64850ac_configure_extra_args=
64851
64852if $ac_cs_silent; then
64853  exec 6>/dev/null
64854  ac_configure_extra_args="$ac_configure_extra_args --silent"
64855fi
64856
64857_ACEOF
64858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
64859if \$ac_cs_recheck; then
64860  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
64861  shift
64862  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
64863  CONFIG_SHELL='$SHELL'
64864  export CONFIG_SHELL
64865  exec "\$@"
64866fi
64867
64868_ACEOF
64869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
64870exec 5>>config.log
64871{
64872  echo
64873  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
64874## Running $as_me. ##
64875_ASBOX
64876  $as_echo "$ac_log"
64877} >&5
64878
64879_ACEOF
64880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
64881#
64882# INIT-COMMANDS
64883#
64884AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
64885
64886
64887# The HP-UX ksh and POSIX shell print the target directory to stdout
64888# if CDPATH is set.
64889(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
64890
64891sed_quote_subst='$sed_quote_subst'
64892double_quote_subst='$double_quote_subst'
64893delay_variable_subst='$delay_variable_subst'
64894enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
64895enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
64896macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
64897macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
64898pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
64899enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
64900shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
64901SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
64902ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
64903PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
64904host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
64905host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
64906host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
64907build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
64908build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
64909build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
64910SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
64911Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
64912GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
64913EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
64914FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
64915LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
64916NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
64917LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
64918max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
64919ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
64920exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
64921lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
64922lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
64923lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
64924lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
64925lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
64926reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
64927reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
64928OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
64929deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
64930file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
64931file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
64932want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
64933DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
64934sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
64935AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
64936AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
64937archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
64938STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
64939RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
64940old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
64941old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
64942old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
64943lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
64944CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
64945CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
64946compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
64947GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
64948lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
64949lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
64950lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
64951lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
64952lt_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"`'
64953lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
64954nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
64955lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
64956lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
64957objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
64958MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
64959lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
64960lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
64961lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
64962lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
64963lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
64964need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
64965MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
64966DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
64967NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
64968LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
64969OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
64970OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
64971libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
64972shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
64973extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
64974archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
64975enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
64976export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
64977whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
64978compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
64979old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
64980old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
64981archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
64982archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
64983module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
64984module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
64985with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
64986allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
64987no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
64988hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
64989hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
64990hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
64991hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
64992hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
64993hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
64994hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
64995inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
64996link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
64997always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
64998export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
64999exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
65000include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
65001prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
65002postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
65003file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
65004variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
65005need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
65006need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
65007version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
65008runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
65009shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
65010shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
65011libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
65012library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
65013soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
65014install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
65015postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
65016postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
65017finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
65018finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
65019hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
65020sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
65021configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
65022configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
65023hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
65024enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
65025enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
65026enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
65027old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
65028striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
65029
65030LTCC='$LTCC'
65031LTCFLAGS='$LTCFLAGS'
65032compiler='$compiler_DEFAULT'
65033
65034# A function that is used when there is no print builtin or printf.
65035func_fallback_echo ()
65036{
65037  eval 'cat <<_LTECHO_EOF
65038\$1
65039_LTECHO_EOF'
65040}
65041
65042# Quote evaled strings.
65043for var in SHELL \
65044ECHO \
65045PATH_SEPARATOR \
65046SED \
65047GREP \
65048EGREP \
65049FGREP \
65050LD \
65051NM \
65052LN_S \
65053lt_SP2NL \
65054lt_NL2SP \
65055reload_flag \
65056OBJDUMP \
65057deplibs_check_method \
65058file_magic_cmd \
65059file_magic_glob \
65060want_nocaseglob \
65061DLLTOOL \
65062sharedlib_from_linklib_cmd \
65063AR \
65064AR_FLAGS \
65065archiver_list_spec \
65066STRIP \
65067RANLIB \
65068CC \
65069CFLAGS \
65070compiler \
65071lt_cv_sys_global_symbol_pipe \
65072lt_cv_sys_global_symbol_to_cdecl \
65073lt_cv_sys_global_symbol_to_import \
65074lt_cv_sys_global_symbol_to_c_name_address \
65075lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
65076lt_cv_nm_interface \
65077nm_file_list_spec \
65078lt_cv_truncate_bin \
65079lt_prog_compiler_no_builtin_flag \
65080lt_prog_compiler_pic \
65081lt_prog_compiler_wl \
65082lt_prog_compiler_static \
65083lt_cv_prog_compiler_c_o \
65084need_locks \
65085MANIFEST_TOOL \
65086DSYMUTIL \
65087NMEDIT \
65088LIPO \
65089OTOOL \
65090OTOOL64 \
65091shrext_cmds \
65092export_dynamic_flag_spec \
65093whole_archive_flag_spec \
65094compiler_needs_object \
65095with_gnu_ld \
65096allow_undefined_flag \
65097no_undefined_flag \
65098hardcode_libdir_flag_spec \
65099hardcode_libdir_separator \
65100exclude_expsyms \
65101include_expsyms \
65102file_list_spec \
65103variables_saved_for_relink \
65104libname_spec \
65105library_names_spec \
65106soname_spec \
65107install_override_mode \
65108finish_eval \
65109old_striplib \
65110striplib; do
65111    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
65112    *[\\\\\\\`\\"\\\$]*)
65113      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
65114      ;;
65115    *)
65116      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
65117      ;;
65118    esac
65119done
65120
65121# Double-quote double-evaled strings.
65122for var in reload_cmds \
65123old_postinstall_cmds \
65124old_postuninstall_cmds \
65125old_archive_cmds \
65126extract_expsyms_cmds \
65127old_archive_from_new_cmds \
65128old_archive_from_expsyms_cmds \
65129archive_cmds \
65130archive_expsym_cmds \
65131module_cmds \
65132module_expsym_cmds \
65133export_symbols_cmds \
65134prelink_cmds \
65135postlink_cmds \
65136postinstall_cmds \
65137postuninstall_cmds \
65138finish_cmds \
65139sys_lib_search_path_spec \
65140configure_time_dlsearch_path \
65141configure_time_lt_sys_library_path; do
65142    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
65143    *[\\\\\\\`\\"\\\$]*)
65144      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
65145      ;;
65146    *)
65147      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
65148      ;;
65149    esac
65150done
65151
65152ac_aux_dir='$ac_aux_dir'
65153
65154# See if we are running on zsh, and set the options that allow our
65155# commands through without removal of \ escapes INIT.
65156if test -n "\${ZSH_VERSION+set}"; then
65157   setopt NO_GLOB_SUBST
65158fi
65159
65160
65161    PACKAGE='$PACKAGE'
65162    VERSION='$VERSION'
65163    RM='$RM'
65164    ofile='$ofile'
65165
65166
65167
65168
65169_ACEOF
65170
65171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
65172
65173# Handling of arguments.
65174for ac_config_target in $ac_config_targets
65175do
65176  case $ac_config_target in
65177    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
65178    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
65179    "include/pmix_version.h") CONFIG_FILES="$CONFIG_FILES include/pmix_version.h" ;;
65180    "src/include/pmix_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pmix_config.h" ;;
65181    "include/pmix_rename.h") CONFIG_FILES="$CONFIG_FILES include/pmix_rename.h" ;;
65182    "src/mca/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/common/Makefile" ;;
65183    "src/mca/common/dstore/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/common/dstore/Makefile" ;;
65184    "src/mca/bfrops/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/bfrops/Makefile" ;;
65185    "src/mca/bfrops/v12/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/bfrops/v12/Makefile" ;;
65186    "src/mca/bfrops/v20/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/bfrops/v20/Makefile" ;;
65187    "src/mca/bfrops/v21/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/bfrops/v21/Makefile" ;;
65188    "src/mca/gds/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/gds/Makefile" ;;
65189    "src/mca/gds/hash/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/gds/hash/Makefile" ;;
65190    "src/mca/gds/ds12/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/gds/ds12/Makefile" ;;
65191    "src/mca/gds/ds21/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/gds/ds21/Makefile" ;;
65192    "src/mca/pdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pdl/Makefile" ;;
65193    "src/mca/pdl/pdlopen/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pdl/pdlopen/Makefile" ;;
65194    "src/mca/pdl/plibltdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pdl/plibltdl/Makefile" ;;
65195    "src/mca/pif/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pif/Makefile" ;;
65196    "src/mca/pif/bsdx_ipv4/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pif/bsdx_ipv4/Makefile" ;;
65197    "src/mca/pif/bsdx_ipv6/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pif/bsdx_ipv6/Makefile" ;;
65198    "src/mca/pif/linux_ipv6/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pif/linux_ipv6/Makefile" ;;
65199    "src/mca/pif/posix_ipv4/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pif/posix_ipv4/Makefile" ;;
65200    "src/mca/pif/solaris_ipv6/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pif/solaris_ipv6/Makefile" ;;
65201    "src/mca/pinstalldirs/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pinstalldirs/Makefile" ;;
65202    "src/mca/pinstalldirs/env/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pinstalldirs/env/Makefile" ;;
65203    "src/mca/pinstalldirs/config/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pinstalldirs/config/Makefile" ;;
65204    "src/mca/pinstalldirs/config/pinstall_dirs.h") CONFIG_FILES="$CONFIG_FILES src/mca/pinstalldirs/config/pinstall_dirs.h" ;;
65205    "src/mca/pnet/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pnet/Makefile" ;;
65206    "src/mca/preg/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/preg/Makefile" ;;
65207    "src/mca/preg/native/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/preg/native/Makefile" ;;
65208    "src/mca/psec/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psec/Makefile" ;;
65209    "src/mca/psec/dummy_handshake/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psec/dummy_handshake/Makefile" ;;
65210    "src/mca/psec/native/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psec/native/Makefile" ;;
65211    "src/mca/psec/none/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psec/none/Makefile" ;;
65212    "src/mca/psec/munge/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psec/munge/Makefile" ;;
65213    "src/mca/psensor/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psensor/Makefile" ;;
65214    "src/mca/psensor/file/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psensor/file/Makefile" ;;
65215    "src/mca/psensor/heartbeat/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/psensor/heartbeat/Makefile" ;;
65216    "src/mca/pshmem/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pshmem/Makefile" ;;
65217    "src/mca/pshmem/mmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/pshmem/mmap/Makefile" ;;
65218    "src/mca/ptl/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/ptl/Makefile" ;;
65219    "src/mca/ptl/tcp/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/ptl/tcp/Makefile" ;;
65220    "src/mca/ptl/usock/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/ptl/usock/Makefile" ;;
65221    "include/pmix_common.h") CONFIG_HEADERS="$CONFIG_HEADERS include/pmix_common.h" ;;
65222    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
65223    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
65224    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
65225    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
65226    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
65227    "src/util/keyval/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/keyval/Makefile" ;;
65228    "src/mca/base/Makefile") CONFIG_FILES="$CONFIG_FILES src/mca/base/Makefile" ;;
65229    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
65230    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
65231    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
65232    "test/simple/Makefile") CONFIG_FILES="$CONFIG_FILES test/simple/Makefile" ;;
65233
65234  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
65235  esac
65236done
65237
65238
65239# If the user did not use the arguments to specify the items to instantiate,
65240# then the envvar interface is used.  Set only those that are not.
65241# We use the long form for the default assignment because of an extremely
65242# bizarre bug on SunOS 4.1.3.
65243if $ac_need_defaults; then
65244  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
65245  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
65246  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
65247fi
65248
65249# Have a temporary directory for convenience.  Make it in the build tree
65250# simply because there is no reason against having it here, and in addition,
65251# creating and moving files from /tmp can sometimes cause problems.
65252# Hook for its removal unless debugging.
65253# Note that there is a small window in which the directory will not be cleaned:
65254# after its creation but before its name has been assigned to `$tmp'.
65255$debug ||
65256{
65257  tmp= ac_tmp=
65258  trap 'exit_status=$?
65259  : "${ac_tmp:=$tmp}"
65260  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
65261' 0
65262  trap 'as_fn_exit 1' 1 2 13 15
65263}
65264# Create a (secure) tmp directory for tmp files.
65265
65266{
65267  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
65268  test -d "$tmp"
65269}  ||
65270{
65271  tmp=./conf$$-$RANDOM
65272  (umask 077 && mkdir "$tmp")
65273} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
65274ac_tmp=$tmp
65275
65276# Set up the scripts for CONFIG_FILES section.
65277# No need to generate them if there are no CONFIG_FILES.
65278# This happens for instance with `./config.status config.h'.
65279if test -n "$CONFIG_FILES"; then
65280
65281
65282ac_cr=`echo X | tr X '\015'`
65283# On cygwin, bash can eat \r inside `` if the user requested igncr.
65284# But we know of no other shell where ac_cr would be empty at this
65285# point, so we can use a bashism as a fallback.
65286if test "x$ac_cr" = x; then
65287  eval ac_cr=\$\'\\r\'
65288fi
65289ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
65290if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
65291  ac_cs_awk_cr='\\r'
65292else
65293  ac_cs_awk_cr=$ac_cr
65294fi
65295
65296echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
65297_ACEOF
65298
65299
65300{
65301  echo "cat >conf$$subs.awk <<_ACEOF" &&
65302  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
65303  echo "_ACEOF"
65304} >conf$$subs.sh ||
65305  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
65306ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
65307ac_delim='%!_!# '
65308for ac_last_try in false false false false false :; do
65309  . ./conf$$subs.sh ||
65310    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
65311
65312  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
65313  if test $ac_delim_n = $ac_delim_num; then
65314    break
65315  elif $ac_last_try; then
65316    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
65317  else
65318    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
65319  fi
65320done
65321rm -f conf$$subs.sh
65322
65323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
65324cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
65325_ACEOF
65326sed -n '
65327h
65328s/^/S["/; s/!.*/"]=/
65329p
65330g
65331s/^[^!]*!//
65332:repl
65333t repl
65334s/'"$ac_delim"'$//
65335t delim
65336:nl
65337h
65338s/\(.\{148\}\)..*/\1/
65339t more1
65340s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
65341p
65342n
65343b repl
65344:more1
65345s/["\\]/\\&/g; s/^/"/; s/$/"\\/
65346p
65347g
65348s/.\{148\}//
65349t nl
65350:delim
65351h
65352s/\(.\{148\}\)..*/\1/
65353t more2
65354s/["\\]/\\&/g; s/^/"/; s/$/"/
65355p
65356b
65357:more2
65358s/["\\]/\\&/g; s/^/"/; s/$/"\\/
65359p
65360g
65361s/.\{148\}//
65362t delim
65363' <conf$$subs.awk | sed '
65364/^[^""]/{
65365  N
65366  s/\n//
65367}
65368' >>$CONFIG_STATUS || ac_write_fail=1
65369rm -f conf$$subs.awk
65370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
65371_ACAWK
65372cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
65373  for (key in S) S_is_set[key] = 1
65374  FS = ""
65375
65376}
65377{
65378  line = $ 0
65379  nfields = split(line, field, "@")
65380  substed = 0
65381  len = length(field[1])
65382  for (i = 2; i < nfields; i++) {
65383    key = field[i]
65384    keylen = length(key)
65385    if (S_is_set[key]) {
65386      value = S[key]
65387      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
65388      len += length(value) + length(field[++i])
65389      substed = 1
65390    } else
65391      len += 1 + keylen
65392  }
65393
65394  print line
65395}
65396
65397_ACAWK
65398_ACEOF
65399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
65400if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
65401  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
65402else
65403  cat
65404fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
65405  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
65406_ACEOF
65407
65408# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
65409# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
65410# trailing colons and then remove the whole line if VPATH becomes empty
65411# (actually we leave an empty line to preserve line numbers).
65412if test "x$srcdir" = x.; then
65413  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
65414h
65415s///
65416s/^/:/
65417s/[	 ]*$/:/
65418s/:\$(srcdir):/:/g
65419s/:\${srcdir}:/:/g
65420s/:@srcdir@:/:/g
65421s/^:*//
65422s/:*$//
65423x
65424s/\(=[	 ]*\).*/\1/
65425G
65426s/\n//
65427s/^[^=]*=[	 ]*$//
65428}'
65429fi
65430
65431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
65432fi # test -n "$CONFIG_FILES"
65433
65434# Set up the scripts for CONFIG_HEADERS section.
65435# No need to generate them if there are no CONFIG_HEADERS.
65436# This happens for instance with `./config.status Makefile'.
65437if test -n "$CONFIG_HEADERS"; then
65438cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
65439BEGIN {
65440_ACEOF
65441
65442# Transform confdefs.h into an awk script `defines.awk', embedded as
65443# here-document in config.status, that substitutes the proper values into
65444# config.h.in to produce config.h.
65445
65446# Create a delimiter string that does not exist in confdefs.h, to ease
65447# handling of long lines.
65448ac_delim='%!_!# '
65449for ac_last_try in false false :; do
65450  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
65451  if test -z "$ac_tt"; then
65452    break
65453  elif $ac_last_try; then
65454    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
65455  else
65456    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
65457  fi
65458done
65459
65460# For the awk script, D is an array of macro values keyed by name,
65461# likewise P contains macro parameters if any.  Preserve backslash
65462# newline sequences.
65463
65464ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
65465sed -n '
65466s/.\{148\}/&'"$ac_delim"'/g
65467t rset
65468:rset
65469s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
65470t def
65471d
65472:def
65473s/\\$//
65474t bsnl
65475s/["\\]/\\&/g
65476s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
65477D["\1"]=" \3"/p
65478s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
65479d
65480:bsnl
65481s/["\\]/\\&/g
65482s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
65483D["\1"]=" \3\\\\\\n"\\/p
65484t cont
65485s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
65486t cont
65487d
65488:cont
65489n
65490s/.\{148\}/&'"$ac_delim"'/g
65491t clear
65492:clear
65493s/\\$//
65494t bsnlc
65495s/["\\]/\\&/g; s/^/"/; s/$/"/p
65496d
65497:bsnlc
65498s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
65499b cont
65500' <confdefs.h | sed '
65501s/'"$ac_delim"'/"\\\
65502"/g' >>$CONFIG_STATUS || ac_write_fail=1
65503
65504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
65505  for (key in D) D_is_set[key] = 1
65506  FS = ""
65507}
65508/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
65509  line = \$ 0
65510  split(line, arg, " ")
65511  if (arg[1] == "#") {
65512    defundef = arg[2]
65513    mac1 = arg[3]
65514  } else {
65515    defundef = substr(arg[1], 2)
65516    mac1 = arg[2]
65517  }
65518  split(mac1, mac2, "(") #)
65519  macro = mac2[1]
65520  prefix = substr(line, 1, index(line, defundef) - 1)
65521  if (D_is_set[macro]) {
65522    # Preserve the white space surrounding the "#".
65523    print prefix "define", macro P[macro] D[macro]
65524    next
65525  } else {
65526    # Replace #undef with comments.  This is necessary, for example,
65527    # in the case of _POSIX_SOURCE, which is predefined and required
65528    # on some systems where configure will not decide to define it.
65529    if (defundef == "undef") {
65530      print "/*", prefix defundef, macro, "*/"
65531      next
65532    }
65533  }
65534}
65535{ print }
65536_ACAWK
65537_ACEOF
65538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
65539  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
65540fi # test -n "$CONFIG_HEADERS"
65541
65542
65543eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
65544shift
65545for ac_tag
65546do
65547  case $ac_tag in
65548  :[FHLC]) ac_mode=$ac_tag; continue;;
65549  esac
65550  case $ac_mode$ac_tag in
65551  :[FHL]*:*);;
65552  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
65553  :[FH]-) ac_tag=-:-;;
65554  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
65555  esac
65556  ac_save_IFS=$IFS
65557  IFS=:
65558  set x $ac_tag
65559  IFS=$ac_save_IFS
65560  shift
65561  ac_file=$1
65562  shift
65563
65564  case $ac_mode in
65565  :L) ac_source=$1;;
65566  :[FH])
65567    ac_file_inputs=
65568    for ac_f
65569    do
65570      case $ac_f in
65571      -) ac_f="$ac_tmp/stdin";;
65572      *) # Look for the file first in the build tree, then in the source tree
65573	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
65574	 # because $ac_f cannot contain `:'.
65575	 test -f "$ac_f" ||
65576	   case $ac_f in
65577	   [\\/$]*) false;;
65578	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
65579	   esac ||
65580	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
65581      esac
65582      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
65583      as_fn_append ac_file_inputs " '$ac_f'"
65584    done
65585
65586    # Let's still pretend it is `configure' which instantiates (i.e., don't
65587    # use $as_me), people would be surprised to read:
65588    #    /* config.h.  Generated by config.status.  */
65589    configure_input='Generated from '`
65590	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
65591	`' by configure.'
65592    if test x"$ac_file" != x-; then
65593      configure_input="$ac_file.  $configure_input"
65594      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
65595$as_echo "$as_me: creating $ac_file" >&6;}
65596    fi
65597    # Neutralize special characters interpreted by sed in replacement strings.
65598    case $configure_input in #(
65599    *\&* | *\|* | *\\* )
65600       ac_sed_conf_input=`$as_echo "$configure_input" |
65601       sed 's/[\\\\&|]/\\\\&/g'`;; #(
65602    *) ac_sed_conf_input=$configure_input;;
65603    esac
65604
65605    case $ac_tag in
65606    *:-:* | *:-) cat >"$ac_tmp/stdin" \
65607      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
65608    esac
65609    ;;
65610  esac
65611
65612  ac_dir=`$as_dirname -- "$ac_file" ||
65613$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65614	 X"$ac_file" : 'X\(//\)[^/]' \| \
65615	 X"$ac_file" : 'X\(//\)$' \| \
65616	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
65617$as_echo X"$ac_file" |
65618    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
65619	    s//\1/
65620	    q
65621	  }
65622	  /^X\(\/\/\)[^/].*/{
65623	    s//\1/
65624	    q
65625	  }
65626	  /^X\(\/\/\)$/{
65627	    s//\1/
65628	    q
65629	  }
65630	  /^X\(\/\).*/{
65631	    s//\1/
65632	    q
65633	  }
65634	  s/.*/./; q'`
65635  as_dir="$ac_dir"; as_fn_mkdir_p
65636  ac_builddir=.
65637
65638case "$ac_dir" in
65639.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
65640*)
65641  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
65642  # A ".." for each directory in $ac_dir_suffix.
65643  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
65644  case $ac_top_builddir_sub in
65645  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
65646  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
65647  esac ;;
65648esac
65649ac_abs_top_builddir=$ac_pwd
65650ac_abs_builddir=$ac_pwd$ac_dir_suffix
65651# for backward compatibility:
65652ac_top_builddir=$ac_top_build_prefix
65653
65654case $srcdir in
65655  .)  # We are building in place.
65656    ac_srcdir=.
65657    ac_top_srcdir=$ac_top_builddir_sub
65658    ac_abs_top_srcdir=$ac_pwd ;;
65659  [\\/]* | ?:[\\/]* )  # Absolute name.
65660    ac_srcdir=$srcdir$ac_dir_suffix;
65661    ac_top_srcdir=$srcdir
65662    ac_abs_top_srcdir=$srcdir ;;
65663  *) # Relative name.
65664    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
65665    ac_top_srcdir=$ac_top_build_prefix$srcdir
65666    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
65667esac
65668ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
65669
65670
65671  case $ac_mode in
65672  :F)
65673  #
65674  # CONFIG_FILE
65675  #
65676
65677  case $INSTALL in
65678  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
65679  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
65680  esac
65681  ac_MKDIR_P=$MKDIR_P
65682  case $MKDIR_P in
65683  [\\/$]* | ?:[\\/]* ) ;;
65684  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
65685  esac
65686_ACEOF
65687
65688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
65689# If the template does not know about datarootdir, expand it.
65690# FIXME: This hack should be removed a few years after 2.60.
65691ac_datarootdir_hack=; ac_datarootdir_seen=
65692ac_sed_dataroot='
65693/datarootdir/ {
65694  p
65695  q
65696}
65697/@datadir@/p
65698/@docdir@/p
65699/@infodir@/p
65700/@localedir@/p
65701/@mandir@/p'
65702case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
65703*datarootdir*) ac_datarootdir_seen=yes;;
65704*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
65705  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
65706$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
65707_ACEOF
65708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
65709  ac_datarootdir_hack='
65710  s&@datadir@&$datadir&g
65711  s&@docdir@&$docdir&g
65712  s&@infodir@&$infodir&g
65713  s&@localedir@&$localedir&g
65714  s&@mandir@&$mandir&g
65715  s&\\\${datarootdir}&$datarootdir&g' ;;
65716esac
65717_ACEOF
65718
65719# Neutralize VPATH when `$srcdir' = `.'.
65720# Shell code in configure.ac might set extrasub.
65721# FIXME: do we really want to maintain this feature?
65722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
65723ac_sed_extra="$ac_vpsub
65724$extrasub
65725_ACEOF
65726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
65727:t
65728/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
65729s|@configure_input@|$ac_sed_conf_input|;t t
65730s&@top_builddir@&$ac_top_builddir_sub&;t t
65731s&@top_build_prefix@&$ac_top_build_prefix&;t t
65732s&@srcdir@&$ac_srcdir&;t t
65733s&@abs_srcdir@&$ac_abs_srcdir&;t t
65734s&@top_srcdir@&$ac_top_srcdir&;t t
65735s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
65736s&@builddir@&$ac_builddir&;t t
65737s&@abs_builddir@&$ac_abs_builddir&;t t
65738s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
65739s&@INSTALL@&$ac_INSTALL&;t t
65740s&@MKDIR_P@&$ac_MKDIR_P&;t t
65741$ac_datarootdir_hack
65742"
65743eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
65744  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
65745
65746test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
65747  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
65748  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
65749      "$ac_tmp/out"`; test -z "$ac_out"; } &&
65750  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
65751which seems to be undefined.  Please make sure it is defined" >&5
65752$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
65753which seems to be undefined.  Please make sure it is defined" >&2;}
65754
65755  rm -f "$ac_tmp/stdin"
65756  case $ac_file in
65757  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
65758  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
65759  esac \
65760  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
65761 ;;
65762  :H)
65763  #
65764  # CONFIG_HEADER
65765  #
65766  if test x"$ac_file" != x-; then
65767    {
65768      $as_echo "/* $configure_input  */" \
65769      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
65770    } >"$ac_tmp/config.h" \
65771      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
65772    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
65773      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
65774$as_echo "$as_me: $ac_file is unchanged" >&6;}
65775    else
65776      rm -f "$ac_file"
65777      mv "$ac_tmp/config.h" "$ac_file" \
65778	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
65779    fi
65780  else
65781    $as_echo "/* $configure_input  */" \
65782      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
65783      || as_fn_error $? "could not create -" "$LINENO" 5
65784  fi
65785# Compute "$ac_file"'s index in $config_headers.
65786_am_arg="$ac_file"
65787_am_stamp_count=1
65788for _am_header in $config_headers :; do
65789  case $_am_header in
65790    $_am_arg | $_am_arg:* )
65791      break ;;
65792    * )
65793      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
65794  esac
65795done
65796echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
65797$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65798	 X"$_am_arg" : 'X\(//\)[^/]' \| \
65799	 X"$_am_arg" : 'X\(//\)$' \| \
65800	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
65801$as_echo X"$_am_arg" |
65802    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
65803	    s//\1/
65804	    q
65805	  }
65806	  /^X\(\/\/\)[^/].*/{
65807	    s//\1/
65808	    q
65809	  }
65810	  /^X\(\/\/\)$/{
65811	    s//\1/
65812	    q
65813	  }
65814	  /^X\(\/\).*/{
65815	    s//\1/
65816	    q
65817	  }
65818	  s/.*/./; q'`/stamp-h$_am_stamp_count
65819 ;;
65820
65821  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
65822$as_echo "$as_me: executing $ac_file commands" >&6;}
65823 ;;
65824  esac
65825
65826
65827  case $ac_file$ac_mode in
65828    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
65829  # Older Autoconf quotes --file arguments for eval, but not when files
65830  # are listed without --file.  Let's play safe and only enable the eval
65831  # if we detect the quoting.
65832  case $CONFIG_FILES in
65833  *\'*) eval set x "$CONFIG_FILES" ;;
65834  *)   set x $CONFIG_FILES ;;
65835  esac
65836  shift
65837  for mf
65838  do
65839    # Strip MF so we end up with the name of the file.
65840    mf=`echo "$mf" | sed -e 's/:.*$//'`
65841    # Check whether this is an Automake generated Makefile or not.
65842    # We used to match only the files named 'Makefile.in', but
65843    # some people rename them; so instead we look at the file content.
65844    # Grep'ing the first line is not enough: some people post-process
65845    # each Makefile.in and add a new line on top of each file to say so.
65846    # Grep'ing the whole file is not good either: AIX grep has a line
65847    # limit of 2048, but all sed's we know have understand at least 4000.
65848    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
65849      dirpart=`$as_dirname -- "$mf" ||
65850$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65851	 X"$mf" : 'X\(//\)[^/]' \| \
65852	 X"$mf" : 'X\(//\)$' \| \
65853	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
65854$as_echo X"$mf" |
65855    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
65856	    s//\1/
65857	    q
65858	  }
65859	  /^X\(\/\/\)[^/].*/{
65860	    s//\1/
65861	    q
65862	  }
65863	  /^X\(\/\/\)$/{
65864	    s//\1/
65865	    q
65866	  }
65867	  /^X\(\/\).*/{
65868	    s//\1/
65869	    q
65870	  }
65871	  s/.*/./; q'`
65872    else
65873      continue
65874    fi
65875    # Extract the definition of DEPDIR, am__include, and am__quote
65876    # from the Makefile without running 'make'.
65877    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
65878    test -z "$DEPDIR" && continue
65879    am__include=`sed -n 's/^am__include = //p' < "$mf"`
65880    test -z "$am__include" && continue
65881    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
65882    # Find all dependency output files, they are included files with
65883    # $(DEPDIR) in their names.  We invoke sed twice because it is the
65884    # simplest approach to changing $(DEPDIR) to its actual value in the
65885    # expansion.
65886    for file in `sed -n "
65887      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
65888	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
65889      # Make sure the directory exists.
65890      test -f "$dirpart/$file" && continue
65891      fdir=`$as_dirname -- "$file" ||
65892$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65893	 X"$file" : 'X\(//\)[^/]' \| \
65894	 X"$file" : 'X\(//\)$' \| \
65895	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
65896$as_echo X"$file" |
65897    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
65898	    s//\1/
65899	    q
65900	  }
65901	  /^X\(\/\/\)[^/].*/{
65902	    s//\1/
65903	    q
65904	  }
65905	  /^X\(\/\/\)$/{
65906	    s//\1/
65907	    q
65908	  }
65909	  /^X\(\/\).*/{
65910	    s//\1/
65911	    q
65912	  }
65913	  s/.*/./; q'`
65914      as_dir=$dirpart/$fdir; as_fn_mkdir_p
65915      # echo "creating $dirpart/$file"
65916      echo '# dummy' > "$dirpart/$file"
65917    done
65918  done
65919}
65920 ;;
65921    "libtool":C)
65922
65923    # See if we are running on zsh, and set the options that allow our
65924    # commands through without removal of \ escapes.
65925    if test -n "${ZSH_VERSION+set}"; then
65926      setopt NO_GLOB_SUBST
65927    fi
65928
65929    cfgfile=${ofile}T
65930    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
65931    $RM "$cfgfile"
65932
65933    cat <<_LT_EOF >> "$cfgfile"
65934#! $SHELL
65935# Generated automatically by $as_me ($PACKAGE) $VERSION
65936# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
65937# NOTE: Changes made to this file will be lost: look at ltmain.sh.
65938
65939# Provide generalized library-building support services.
65940# Written by Gordon Matzigkeit, 1996
65941
65942# Copyright (C) 2014 Free Software Foundation, Inc.
65943# This is free software; see the source for copying conditions.  There is NO
65944# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
65945
65946# GNU Libtool is free software; you can redistribute it and/or modify
65947# it under the terms of the GNU General Public License as published by
65948# the Free Software Foundation; either version 2 of of the License, or
65949# (at your option) any later version.
65950#
65951# As a special exception to the GNU General Public License, if you
65952# distribute this file as part of a program or library that is built
65953# using GNU Libtool, you may include this file under the  same
65954# distribution terms that you use for the rest of that program.
65955#
65956# GNU Libtool is distributed in the hope that it will be useful, but
65957# WITHOUT ANY WARRANTY; without even the implied warranty of
65958# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
65959# GNU General Public License for more details.
65960#
65961# You should have received a copy of the GNU General Public License
65962# along with this program.  If not, see <http://www.gnu.org/licenses/>.
65963
65964
65965# The names of the tagged configurations supported by this script.
65966available_tags=''
65967
65968# Configured defaults for sys_lib_dlsearch_path munging.
65969: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
65970
65971# ### BEGIN LIBTOOL CONFIG
65972
65973# Whether or not to build shared libraries.
65974build_libtool_libs=$enable_shared
65975
65976# Whether or not to build static libraries.
65977build_old_libs=$enable_static
65978
65979# Which release of libtool.m4 was used?
65980macro_version=$macro_version
65981macro_revision=$macro_revision
65982
65983# What type of objects to build.
65984pic_mode=$pic_mode
65985
65986# Whether or not to optimize for fast installation.
65987fast_install=$enable_fast_install
65988
65989# Shared archive member basename,for filename based shared library versioning on AIX.
65990shared_archive_member_spec=$shared_archive_member_spec
65991
65992# Shell to use when invoking shell scripts.
65993SHELL=$lt_SHELL
65994
65995# An echo program that protects backslashes.
65996ECHO=$lt_ECHO
65997
65998# The PATH separator for the build system.
65999PATH_SEPARATOR=$lt_PATH_SEPARATOR
66000
66001# The host system.
66002host_alias=$host_alias
66003host=$host
66004host_os=$host_os
66005
66006# The build system.
66007build_alias=$build_alias
66008build=$build
66009build_os=$build_os
66010
66011# A sed program that does not truncate output.
66012SED=$lt_SED
66013
66014# Sed that helps us avoid accidentally triggering echo(1) options like -n.
66015Xsed="\$SED -e 1s/^X//"
66016
66017# A grep program that handles long lines.
66018GREP=$lt_GREP
66019
66020# An ERE matcher.
66021EGREP=$lt_EGREP
66022
66023# A literal string matcher.
66024FGREP=$lt_FGREP
66025
66026# A BSD- or MS-compatible name lister.
66027NM=$lt_NM
66028
66029# Whether we need soft or hard links.
66030LN_S=$lt_LN_S
66031
66032# What is the maximum length of a command?
66033max_cmd_len=$max_cmd_len
66034
66035# Object file suffix (normally "o").
66036objext=$ac_objext
66037
66038# Executable file suffix (normally "").
66039exeext=$exeext
66040
66041# whether the shell understands "unset".
66042lt_unset=$lt_unset
66043
66044# turn spaces into newlines.
66045SP2NL=$lt_lt_SP2NL
66046
66047# turn newlines into spaces.
66048NL2SP=$lt_lt_NL2SP
66049
66050# convert \$build file names to \$host format.
66051to_host_file_cmd=$lt_cv_to_host_file_cmd
66052
66053# convert \$build files to toolchain format.
66054to_tool_file_cmd=$lt_cv_to_tool_file_cmd
66055
66056# An object symbol dumper.
66057OBJDUMP=$lt_OBJDUMP
66058
66059# Method to check whether dependent libraries are shared objects.
66060deplibs_check_method=$lt_deplibs_check_method
66061
66062# Command to use when deplibs_check_method = "file_magic".
66063file_magic_cmd=$lt_file_magic_cmd
66064
66065# How to find potential files when deplibs_check_method = "file_magic".
66066file_magic_glob=$lt_file_magic_glob
66067
66068# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
66069want_nocaseglob=$lt_want_nocaseglob
66070
66071# DLL creation program.
66072DLLTOOL=$lt_DLLTOOL
66073
66074# Command to associate shared and link libraries.
66075sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
66076
66077# The archiver.
66078AR=$lt_AR
66079
66080# Flags to create an archive.
66081AR_FLAGS=$lt_AR_FLAGS
66082
66083# How to feed a file listing to the archiver.
66084archiver_list_spec=$lt_archiver_list_spec
66085
66086# A symbol stripping program.
66087STRIP=$lt_STRIP
66088
66089# Commands used to install an old-style archive.
66090RANLIB=$lt_RANLIB
66091old_postinstall_cmds=$lt_old_postinstall_cmds
66092old_postuninstall_cmds=$lt_old_postuninstall_cmds
66093
66094# Whether to use a lock for old archive extraction.
66095lock_old_archive_extraction=$lock_old_archive_extraction
66096
66097# A C compiler.
66098LTCC=$lt_CC
66099
66100# LTCC compiler flags.
66101LTCFLAGS=$lt_CFLAGS
66102
66103# Take the output of nm and produce a listing of raw symbols and C names.
66104global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
66105
66106# Transform the output of nm in a proper C declaration.
66107global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
66108
66109# Transform the output of nm into a list of symbols to manually relocate.
66110global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
66111
66112# Transform the output of nm in a C name address pair.
66113global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
66114
66115# Transform the output of nm in a C name address pair when lib prefix is needed.
66116global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
66117
66118# The name lister interface.
66119nm_interface=$lt_lt_cv_nm_interface
66120
66121# Specify filename containing input files for \$NM.
66122nm_file_list_spec=$lt_nm_file_list_spec
66123
66124# The root where to search for dependent libraries,and where our libraries should be installed.
66125lt_sysroot=$lt_sysroot
66126
66127# Command to truncate a binary pipe.
66128lt_truncate_bin=$lt_lt_cv_truncate_bin
66129
66130# The name of the directory that contains temporary libtool files.
66131objdir=$objdir
66132
66133# Used to examine libraries when file_magic_cmd begins with "file".
66134MAGIC_CMD=$MAGIC_CMD
66135
66136# Must we lock files when doing compilation?
66137need_locks=$lt_need_locks
66138
66139# Manifest tool.
66140MANIFEST_TOOL=$lt_MANIFEST_TOOL
66141
66142# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
66143DSYMUTIL=$lt_DSYMUTIL
66144
66145# Tool to change global to local symbols on Mac OS X.
66146NMEDIT=$lt_NMEDIT
66147
66148# Tool to manipulate fat objects and archives on Mac OS X.
66149LIPO=$lt_LIPO
66150
66151# ldd/readelf like tool for Mach-O binaries on Mac OS X.
66152OTOOL=$lt_OTOOL
66153
66154# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
66155OTOOL64=$lt_OTOOL64
66156
66157# Old archive suffix (normally "a").
66158libext=$libext
66159
66160# Shared library suffix (normally ".so").
66161shrext_cmds=$lt_shrext_cmds
66162
66163# The commands to extract the exported symbol list from a shared archive.
66164extract_expsyms_cmds=$lt_extract_expsyms_cmds
66165
66166# Variables whose values should be saved in libtool wrapper scripts and
66167# restored at link time.
66168variables_saved_for_relink=$lt_variables_saved_for_relink
66169
66170# Do we need the "lib" prefix for modules?
66171need_lib_prefix=$need_lib_prefix
66172
66173# Do we need a version for libraries?
66174need_version=$need_version
66175
66176# Library versioning type.
66177version_type=$version_type
66178
66179# Shared library runtime path variable.
66180runpath_var=$runpath_var
66181
66182# Shared library path variable.
66183shlibpath_var=$shlibpath_var
66184
66185# Is shlibpath searched before the hard-coded library search path?
66186shlibpath_overrides_runpath=$shlibpath_overrides_runpath
66187
66188# Format of library name prefix.
66189libname_spec=$lt_libname_spec
66190
66191# List of archive names.  First name is the real one, the rest are links.
66192# The last name is the one that the linker finds with -lNAME
66193library_names_spec=$lt_library_names_spec
66194
66195# The coded name of the library, if different from the real name.
66196soname_spec=$lt_soname_spec
66197
66198# Permission mode override for installation of shared libraries.
66199install_override_mode=$lt_install_override_mode
66200
66201# Command to use after installation of a shared archive.
66202postinstall_cmds=$lt_postinstall_cmds
66203
66204# Command to use after uninstallation of a shared archive.
66205postuninstall_cmds=$lt_postuninstall_cmds
66206
66207# Commands used to finish a libtool library installation in a directory.
66208finish_cmds=$lt_finish_cmds
66209
66210# As "finish_cmds", except a single script fragment to be evaled but
66211# not shown.
66212finish_eval=$lt_finish_eval
66213
66214# Whether we should hardcode library paths into libraries.
66215hardcode_into_libs=$hardcode_into_libs
66216
66217# Compile-time system search path for libraries.
66218sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
66219
66220# Detected run-time system search path for libraries.
66221sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
66222
66223# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
66224configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
66225
66226# Whether dlopen is supported.
66227dlopen_support=$enable_dlopen
66228
66229# Whether dlopen of programs is supported.
66230dlopen_self=$enable_dlopen_self
66231
66232# Whether dlopen of statically linked programs is supported.
66233dlopen_self_static=$enable_dlopen_self_static
66234
66235# Commands to strip libraries.
66236old_striplib=$lt_old_striplib
66237striplib=$lt_striplib
66238
66239
66240# The linker used to build libraries.
66241LD=$lt_LD
66242
66243# How to create reloadable object files.
66244reload_flag=$lt_reload_flag
66245reload_cmds=$lt_reload_cmds
66246
66247# Commands used to build an old-style archive.
66248old_archive_cmds=$lt_old_archive_cmds
66249
66250# A language specific compiler.
66251CC=$lt_compiler
66252
66253# Is the compiler the GNU compiler?
66254with_gcc=$GCC
66255
66256# Compiler flag to turn off builtin functions.
66257no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
66258
66259# Additional compiler flags for building library objects.
66260pic_flag=$lt_lt_prog_compiler_pic
66261
66262# How to pass a linker flag through the compiler.
66263wl=$lt_lt_prog_compiler_wl
66264
66265# Compiler flag to prevent dynamic linking.
66266link_static_flag=$lt_lt_prog_compiler_static
66267
66268# Does compiler simultaneously support -c and -o options?
66269compiler_c_o=$lt_lt_cv_prog_compiler_c_o
66270
66271# Whether or not to add -lc for building shared libraries.
66272build_libtool_need_lc=$archive_cmds_need_lc
66273
66274# Whether or not to disallow shared libs when runtime libs are static.
66275allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
66276
66277# Compiler flag to allow reflexive dlopens.
66278export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
66279
66280# Compiler flag to generate shared objects directly from archives.
66281whole_archive_flag_spec=$lt_whole_archive_flag_spec
66282
66283# Whether the compiler copes with passing no objects directly.
66284compiler_needs_object=$lt_compiler_needs_object
66285
66286# Create an old-style archive from a shared archive.
66287old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
66288
66289# Create a temporary old-style archive to link instead of a shared archive.
66290old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
66291
66292# Commands used to build a shared archive.
66293archive_cmds=$lt_archive_cmds
66294archive_expsym_cmds=$lt_archive_expsym_cmds
66295
66296# Commands used to build a loadable module if different from building
66297# a shared archive.
66298module_cmds=$lt_module_cmds
66299module_expsym_cmds=$lt_module_expsym_cmds
66300
66301# Whether we are building with GNU ld or not.
66302with_gnu_ld=$lt_with_gnu_ld
66303
66304# Flag that allows shared libraries with undefined symbols to be built.
66305allow_undefined_flag=$lt_allow_undefined_flag
66306
66307# Flag that enforces no undefined symbols.
66308no_undefined_flag=$lt_no_undefined_flag
66309
66310# Flag to hardcode \$libdir into a binary during linking.
66311# This must work even if \$libdir does not exist
66312hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
66313
66314# Whether we need a single "-rpath" flag with a separated argument.
66315hardcode_libdir_separator=$lt_hardcode_libdir_separator
66316
66317# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
66318# DIR into the resulting binary.
66319hardcode_direct=$hardcode_direct
66320
66321# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
66322# DIR into the resulting binary and the resulting library dependency is
66323# "absolute",i.e impossible to change by setting \$shlibpath_var if the
66324# library is relocated.
66325hardcode_direct_absolute=$hardcode_direct_absolute
66326
66327# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
66328# into the resulting binary.
66329hardcode_minus_L=$hardcode_minus_L
66330
66331# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
66332# into the resulting binary.
66333hardcode_shlibpath_var=$hardcode_shlibpath_var
66334
66335# Set to "yes" if building a shared library automatically hardcodes DIR
66336# into the library and all subsequent libraries and executables linked
66337# against it.
66338hardcode_automatic=$hardcode_automatic
66339
66340# Set to yes if linker adds runtime paths of dependent libraries
66341# to runtime path list.
66342inherit_rpath=$inherit_rpath
66343
66344# Whether libtool must link a program against all its dependency libraries.
66345link_all_deplibs=$link_all_deplibs
66346
66347# Set to "yes" if exported symbols are required.
66348always_export_symbols=$always_export_symbols
66349
66350# The commands to list exported symbols.
66351export_symbols_cmds=$lt_export_symbols_cmds
66352
66353# Symbols that should not be listed in the preloaded symbols.
66354exclude_expsyms=$lt_exclude_expsyms
66355
66356# Symbols that must always be exported.
66357include_expsyms=$lt_include_expsyms
66358
66359# Commands necessary for linking programs (against libraries) with templates.
66360prelink_cmds=$lt_prelink_cmds
66361
66362# Commands necessary for finishing linking programs.
66363postlink_cmds=$lt_postlink_cmds
66364
66365# Specify filename containing input files.
66366file_list_spec=$lt_file_list_spec
66367
66368# How to hardcode a shared library path into an executable.
66369hardcode_action=$hardcode_action
66370
66371# ### END LIBTOOL CONFIG
66372
66373_LT_EOF
66374
66375    cat <<'_LT_EOF' >> "$cfgfile"
66376
66377# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
66378
66379# func_munge_path_list VARIABLE PATH
66380# -----------------------------------
66381# VARIABLE is name of variable containing _space_ separated list of
66382# directories to be munged by the contents of PATH, which is string
66383# having a format:
66384# "DIR[:DIR]:"
66385#       string "DIR[ DIR]" will be prepended to VARIABLE
66386# ":DIR[:DIR]"
66387#       string "DIR[ DIR]" will be appended to VARIABLE
66388# "DIRP[:DIRP]::[DIRA:]DIRA"
66389#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
66390#       "DIRA[ DIRA]" will be appended to VARIABLE
66391# "DIR[:DIR]"
66392#       VARIABLE will be replaced by "DIR[ DIR]"
66393func_munge_path_list ()
66394{
66395    case x$2 in
66396    x)
66397        ;;
66398    *:)
66399        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
66400        ;;
66401    x:*)
66402        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
66403        ;;
66404    *::*)
66405        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
66406        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
66407        ;;
66408    *)
66409        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
66410        ;;
66411    esac
66412}
66413
66414
66415# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
66416func_cc_basename ()
66417{
66418    for cc_temp in $*""; do
66419      case $cc_temp in
66420        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
66421        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
66422        \-*) ;;
66423        *) break;;
66424      esac
66425    done
66426    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
66427}
66428
66429
66430# ### END FUNCTIONS SHARED WITH CONFIGURE
66431
66432_LT_EOF
66433
66434  case $host_os in
66435  aix3*)
66436    cat <<\_LT_EOF >> "$cfgfile"
66437# AIX sometimes has problems with the GCC collect2 program.  For some
66438# reason, if we set the COLLECT_NAMES environment variable, the problems
66439# vanish in a puff of smoke.
66440if test set != "${COLLECT_NAMES+set}"; then
66441  COLLECT_NAMES=
66442  export COLLECT_NAMES
66443fi
66444_LT_EOF
66445    ;;
66446  esac
66447
66448
66449ltmain=$ac_aux_dir/ltmain.sh
66450
66451
66452  # We use sed instead of cat because bash on DJGPP gets confused if
66453  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
66454  # text mode, it properly converts lines to CR/LF.  This bash problem
66455  # is reportedly fixed, but why not run on old versions too?
66456  sed '$q' "$ltmain" >> "$cfgfile" \
66457     || (rm -f "$cfgfile"; exit 1)
66458
66459   mv -f "$cfgfile" "$ofile" ||
66460    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
66461  chmod +x "$ofile"
66462
66463 ;;
66464
66465  esac
66466done # for ac_tag
66467
66468
66469as_fn_exit 0
66470_ACEOF
66471ac_clean_files=$ac_clean_files_save
66472
66473test $ac_write_fail = 0 ||
66474  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
66475
66476
66477# configure is writing to config.log, and then calls config.status.
66478# config.status does its own redirection, appending to config.log.
66479# Unfortunately, on DOS this fails, as config.log is still kept open
66480# by configure, so config.status won't be able to write to it; its
66481# output is simply discarded.  So we exec the FD to /dev/null,
66482# effectively closing config.log, so it can be properly (re)opened and
66483# appended to by config.status.  When coming back to configure, we
66484# need to make the FD available again.
66485if test "$no_create" != yes; then
66486  ac_cs_success=:
66487  ac_config_status_args=
66488  test "$silent" = yes &&
66489    ac_config_status_args="$ac_config_status_args --quiet"
66490  exec 5>/dev/null
66491  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
66492  exec 5>>config.log
66493  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
66494  # would make configure fail if this is the last instruction.
66495  $ac_cs_success || as_fn_exit 1
66496fi
66497if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
66498  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
66499$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
66500fi
66501
66502
66503
66504
66505
66506    # Is the private index set?  If not, set it.
66507    if test "x$pmix_scope_index" = "x"; then
66508        pmix_scope_index=1
66509    fi
66510
66511    # First, check to see if any of these variables are already set.
66512    # This is a simple sanity check to ensure we're not already
66513    # overwriting pre-existing variables (that have a non-empty
66514    # value).  It's not a perfect check, but at least it's something.
66515    for pmix_var in pmix_summary_section pmix_summary_section_name; do
66516        pmix_str="pmix_str=\"\$$pmix_var\""
66517        eval $pmix_str
66518
66519        if test "x$pmix_str" != "x"; then
66520            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Found configure shell variable clash!" >&5
66521$as_echo "$as_me: WARNING: Found configure shell variable clash!" >&2;}
66522            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&5
66523$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_PUSH called on \"$pmix_var\"," >&2;}
66524            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but it is already defined with value \"$pmix_str\"" >&5
66525$as_echo "$as_me: WARNING: but it is already defined with value \"$pmix_str\"" >&2;}
66526            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
66527$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
66528            as_fn_error $? "Cannot continue" "$LINENO" 5
66529        fi
66530    done
66531
66532    # Ok, we passed the simple sanity check.  Save all these names so
66533    # that we can unset them at the end of the scope.
66534    pmix_str="pmix_scope_$pmix_scope_index=\"pmix_summary_section pmix_summary_section_name\""
66535    eval $pmix_str
66536    unset pmix_str
66537
66538    env | grep pmix_scope
66539    pmix_scope_index=`expr $pmix_scope_index + 1`
66540
66541    cat <<EOF
66542
66543PMIx configuration:
66544-----------------------
66545Version: $PMIX_MAJOR_VERSION.$PMIX_MINOR_VERSION.$PMIX_RELEASE_VERSION$PMIX_GREEK_VERSION
66546EOF
66547
66548    if test $WANT_DEBUG = 0 ; then
66549        echo "Debug build: no"
66550    else
66551        echo "Debug build: yes"
66552    fi
66553
66554    if test ! -z $with_platform ; then
66555        echo "Platform file: $with_platform"
66556    else
66557        echo "Platform file: (none)"
66558    fi
66559
66560    echo
66561
66562    for pmix_summary_section in $(echo $pmix_summary_sections) ; do
66563        pmix_summary_section_name=$(echo $pmix_summary_section | tr '_' ' ')
66564        echo "$pmix_summary_section_name"
66565        echo "-----------------------"
66566        echo "$(eval echo \$pmix_summary_values_$pmix_summary_section)" | tr ',' $'\n' | sort -f
66567        echo " "
66568    done
66569
66570    if test $WANT_DEBUG = 1 ; then
66571        cat <<EOF
66572*****************************************************************************
66573 THIS IS A DEBUG BUILD!  DO NOT USE THIS BUILD FOR PERFORMANCE MEASUREMENTS!
66574*****************************************************************************
66575
66576EOF
66577    fi
66578
66579
66580    # Unwind the index
66581    pmix_scope_index=`expr $pmix_scope_index - 1`
66582    pmix_scope_test=`expr $pmix_scope_index \> 0`
66583    if test "$pmix_scope_test" = "0"; then
66584        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&5
66585$as_echo "$as_me: WARNING: PMIX_VAR_SCOPE_POP popped too many PMIX configure scopes." >&2;}
66586        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This usually indicates an error in configure." >&5
66587$as_echo "$as_me: WARNING: This usually indicates an error in configure." >&2;}
66588        as_fn_error $? "Cannot continue" "$LINENO" 5
66589    fi
66590
66591    # Get the variable names from that index
66592    pmix_str="pmix_str=\"\$pmix_scope_$pmix_scope_index\""
66593    eval $pmix_str
66594
66595    # Iterate over all the variables and unset them all
66596    for pmix_var in $pmix_str; do
66597        unset $pmix_var
66598    done
66599
66600
66601