1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for MPL 0.1.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='MPL'
589PACKAGE_TARNAME='mpl'
590PACKAGE_VERSION='0.1'
591PACKAGE_STRING='MPL 0.1'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="src/str/mpl_str.c"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636MPL_HAVE_ZE_FALSE
637MPL_HAVE_ZE_TRUE
638MPL_HAVE_CUDA_FALSE
639MPL_HAVE_CUDA_TRUE
640libmpl_so_versionflags
641MPL_TIMER_TYPE
642MPL_TIMER_KIND
643BUILD_COVERAGE_FALSE
644BUILD_COVERAGE_TRUE
645GCOV
646MPL_EMBEDDED_MODE_FALSE
647MPL_EMBEDDED_MODE_TRUE
648libmpl_so_version
649MPLLIBNAME
650LT_SYS_LIBRARY_PATH
651OTOOL64
652OTOOL
653LIPO
654NMEDIT
655DSYMUTIL
656MANIFEST_TOOL
657RANLIB
658DLLTOOL
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666SED
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675LIBTOOL
676ac_ct_AR
677AR
678EGREP
679GREP
680CPP
681am__fastdepCC_FALSE
682am__fastdepCC_TRUE
683CCDEPMODE
684am__nodep
685AMDEPBACKSLASH
686AMDEP_FALSE
687AMDEP_TRUE
688am__quote
689am__include
690DEPDIR
691OBJEXT
692EXEEXT
693ac_ct_CC
694CPPFLAGS
695LDFLAGS
696CFLAGS
697CC
698AM_BACKSLASH
699AM_DEFAULT_VERBOSITY
700AM_DEFAULT_V
701AM_V
702am__untar
703am__tar
704AMTAR
705am__leading_dot
706SET_MAKE
707AWK
708mkdir_p
709MKDIR_P
710INSTALL_STRIP_PROGRAM
711STRIP
712install_sh
713MAKEINFO
714AUTOHEADER
715AUTOMAKE
716AUTOCONF
717ACLOCAL
718VERSION
719PACKAGE
720CYGPATH_W
721am__isrc
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
755PACKAGE_URL
756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
763ac_subst_files=''
764ac_user_opts='
765enable_option_checking
766enable_silent_rules
767enable_dependency_tracking
768enable_shared
769enable_static
770with_pic
771enable_fast_install
772with_aix_soname
773with_gnu_ld
774with_sysroot
775enable_libtool_lock
776enable_embedded
777enable_g
778enable_coverage
779enable_fast
780with_valgrind
781enable_timer_type
782enable_yield
783with_thread_package
784with_posix_mutex
785with_uti
786with_uti_include
787with_uti_lib
788with_argobots
789with_argobots_include
790with_argobots_lib
791with_proc_mutex_package
792with_mpl_atomic_primitives
793with_shared_memory
794enable_versioning
795with_cuda
796with_cuda_include
797with_cuda_lib
798with_ze
799with_ze_include
800with_ze_lib
801with_cacheline
802'
803      ac_precious_vars='build_alias
804host_alias
805target_alias
806CC
807CFLAGS
808LDFLAGS
809LIBS
810CPPFLAGS
811CPP
812LT_SYS_LIBRARY_PATH
813MPLLIBNAME
814GCOV'
815
816
817# Initialize some variables set by options.
818ac_init_help=
819ac_init_version=false
820ac_unrecognized_opts=
821ac_unrecognized_sep=
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
844# (The list follows the same order as the GNU Coding Standards.)
845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
853includedir='${prefix}/include'
854oldincludedir='/usr/include'
855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
864
865ac_prev=
866ac_dashdash=
867for ac_option
868do
869  # If the previous option needs an argument, assign it.
870  if test -n "$ac_prev"; then
871    eval $ac_prev=\$ac_option
872    ac_prev=
873    continue
874  fi
875
876  case $ac_option in
877  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878  *=)   ac_optarg= ;;
879  *)    ac_optarg=yes ;;
880  esac
881
882  # Accept the important Cygnus configure options, so we can diagnose typos.
883
884  case $ac_dashdash$ac_option in
885  --)
886    ac_dashdash=yes ;;
887
888  -bindir | --bindir | --bindi | --bind | --bin | --bi)
889    ac_prev=bindir ;;
890  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891    bindir=$ac_optarg ;;
892
893  -build | --build | --buil | --bui | --bu)
894    ac_prev=build_alias ;;
895  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896    build_alias=$ac_optarg ;;
897
898  -cache-file | --cache-file | --cache-fil | --cache-fi \
899  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900    ac_prev=cache_file ;;
901  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903    cache_file=$ac_optarg ;;
904
905  --config-cache | -C)
906    cache_file=config.cache ;;
907
908  -datadir | --datadir | --datadi | --datad)
909    ac_prev=datadir ;;
910  -datadir=* | --datadir=* | --datadi=* | --datad=*)
911    datadir=$ac_optarg ;;
912
913  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914  | --dataroo | --dataro | --datar)
915    ac_prev=datarootdir ;;
916  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918    datarootdir=$ac_optarg ;;
919
920  -disable-* | --disable-*)
921    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922    # Reject names that are not valid shell variable names.
923    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924      as_fn_error $? "invalid feature name: $ac_useropt"
925    ac_useropt_orig=$ac_useropt
926    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927    case $ac_user_opts in
928      *"
929"enable_$ac_useropt"
930"*) ;;
931      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932	 ac_unrecognized_sep=', ';;
933    esac
934    eval enable_$ac_useropt=no ;;
935
936  -docdir | --docdir | --docdi | --doc | --do)
937    ac_prev=docdir ;;
938  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939    docdir=$ac_optarg ;;
940
941  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942    ac_prev=dvidir ;;
943  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944    dvidir=$ac_optarg ;;
945
946  -enable-* | --enable-*)
947    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948    # Reject names that are not valid shell variable names.
949    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950      as_fn_error $? "invalid feature name: $ac_useropt"
951    ac_useropt_orig=$ac_useropt
952    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953    case $ac_user_opts in
954      *"
955"enable_$ac_useropt"
956"*) ;;
957      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958	 ac_unrecognized_sep=', ';;
959    esac
960    eval enable_$ac_useropt=\$ac_optarg ;;
961
962  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964  | --exec | --exe | --ex)
965    ac_prev=exec_prefix ;;
966  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968  | --exec=* | --exe=* | --ex=*)
969    exec_prefix=$ac_optarg ;;
970
971  -gas | --gas | --ga | --g)
972    # Obsolete; use --with-gas.
973    with_gas=yes ;;
974
975  -help | --help | --hel | --he | -h)
976    ac_init_help=long ;;
977  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978    ac_init_help=recursive ;;
979  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980    ac_init_help=short ;;
981
982  -host | --host | --hos | --ho)
983    ac_prev=host_alias ;;
984  -host=* | --host=* | --hos=* | --ho=*)
985    host_alias=$ac_optarg ;;
986
987  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988    ac_prev=htmldir ;;
989  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990  | --ht=*)
991    htmldir=$ac_optarg ;;
992
993  -includedir | --includedir | --includedi | --included | --include \
994  | --includ | --inclu | --incl | --inc)
995    ac_prev=includedir ;;
996  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997  | --includ=* | --inclu=* | --incl=* | --inc=*)
998    includedir=$ac_optarg ;;
999
1000  -infodir | --infodir | --infodi | --infod | --info | --inf)
1001    ac_prev=infodir ;;
1002  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003    infodir=$ac_optarg ;;
1004
1005  -libdir | --libdir | --libdi | --libd)
1006    ac_prev=libdir ;;
1007  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008    libdir=$ac_optarg ;;
1009
1010  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011  | --libexe | --libex | --libe)
1012    ac_prev=libexecdir ;;
1013  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014  | --libexe=* | --libex=* | --libe=*)
1015    libexecdir=$ac_optarg ;;
1016
1017  -localedir | --localedir | --localedi | --localed | --locale)
1018    ac_prev=localedir ;;
1019  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020    localedir=$ac_optarg ;;
1021
1022  -localstatedir | --localstatedir | --localstatedi | --localstated \
1023  | --localstate | --localstat | --localsta | --localst | --locals)
1024    ac_prev=localstatedir ;;
1025  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027    localstatedir=$ac_optarg ;;
1028
1029  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030    ac_prev=mandir ;;
1031  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032    mandir=$ac_optarg ;;
1033
1034  -nfp | --nfp | --nf)
1035    # Obsolete; use --without-fp.
1036    with_fp=no ;;
1037
1038  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039  | --no-cr | --no-c | -n)
1040    no_create=yes ;;
1041
1042  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044    no_recursion=yes ;;
1045
1046  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048  | --oldin | --oldi | --old | --ol | --o)
1049    ac_prev=oldincludedir ;;
1050  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053    oldincludedir=$ac_optarg ;;
1054
1055  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056    ac_prev=prefix ;;
1057  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058    prefix=$ac_optarg ;;
1059
1060  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061  | --program-pre | --program-pr | --program-p)
1062    ac_prev=program_prefix ;;
1063  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065    program_prefix=$ac_optarg ;;
1066
1067  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068  | --program-suf | --program-su | --program-s)
1069    ac_prev=program_suffix ;;
1070  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072    program_suffix=$ac_optarg ;;
1073
1074  -program-transform-name | --program-transform-name \
1075  | --program-transform-nam | --program-transform-na \
1076  | --program-transform-n | --program-transform- \
1077  | --program-transform | --program-transfor \
1078  | --program-transfo | --program-transf \
1079  | --program-trans | --program-tran \
1080  | --progr-tra | --program-tr | --program-t)
1081    ac_prev=program_transform_name ;;
1082  -program-transform-name=* | --program-transform-name=* \
1083  | --program-transform-nam=* | --program-transform-na=* \
1084  | --program-transform-n=* | --program-transform-=* \
1085  | --program-transform=* | --program-transfor=* \
1086  | --program-transfo=* | --program-transf=* \
1087  | --program-trans=* | --program-tran=* \
1088  | --progr-tra=* | --program-tr=* | --program-t=*)
1089    program_transform_name=$ac_optarg ;;
1090
1091  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092    ac_prev=pdfdir ;;
1093  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094    pdfdir=$ac_optarg ;;
1095
1096  -psdir | --psdir | --psdi | --psd | --ps)
1097    ac_prev=psdir ;;
1098  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099    psdir=$ac_optarg ;;
1100
1101  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102  | -silent | --silent | --silen | --sile | --sil)
1103    silent=yes ;;
1104
1105  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106    ac_prev=sbindir ;;
1107  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108  | --sbi=* | --sb=*)
1109    sbindir=$ac_optarg ;;
1110
1111  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113  | --sharedst | --shareds | --shared | --share | --shar \
1114  | --sha | --sh)
1115    ac_prev=sharedstatedir ;;
1116  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119  | --sha=* | --sh=*)
1120    sharedstatedir=$ac_optarg ;;
1121
1122  -site | --site | --sit)
1123    ac_prev=site ;;
1124  -site=* | --site=* | --sit=*)
1125    site=$ac_optarg ;;
1126
1127  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128    ac_prev=srcdir ;;
1129  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130    srcdir=$ac_optarg ;;
1131
1132  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133  | --syscon | --sysco | --sysc | --sys | --sy)
1134    ac_prev=sysconfdir ;;
1135  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137    sysconfdir=$ac_optarg ;;
1138
1139  -target | --target | --targe | --targ | --tar | --ta | --t)
1140    ac_prev=target_alias ;;
1141  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142    target_alias=$ac_optarg ;;
1143
1144  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145    verbose=yes ;;
1146
1147  -version | --version | --versio | --versi | --vers | -V)
1148    ac_init_version=: ;;
1149
1150  -with-* | --with-*)
1151    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152    # Reject names that are not valid shell variable names.
1153    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154      as_fn_error $? "invalid package name: $ac_useropt"
1155    ac_useropt_orig=$ac_useropt
1156    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157    case $ac_user_opts in
1158      *"
1159"with_$ac_useropt"
1160"*) ;;
1161      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162	 ac_unrecognized_sep=', ';;
1163    esac
1164    eval with_$ac_useropt=\$ac_optarg ;;
1165
1166  -without-* | --without-*)
1167    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168    # Reject names that are not valid shell variable names.
1169    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170      as_fn_error $? "invalid package name: $ac_useropt"
1171    ac_useropt_orig=$ac_useropt
1172    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173    case $ac_user_opts in
1174      *"
1175"with_$ac_useropt"
1176"*) ;;
1177      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178	 ac_unrecognized_sep=', ';;
1179    esac
1180    eval with_$ac_useropt=no ;;
1181
1182  --x)
1183    # Obsolete; use --with-x.
1184    with_x=yes ;;
1185
1186  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187  | --x-incl | --x-inc | --x-in | --x-i)
1188    ac_prev=x_includes ;;
1189  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191    x_includes=$ac_optarg ;;
1192
1193  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195    ac_prev=x_libraries ;;
1196  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198    x_libraries=$ac_optarg ;;
1199
1200  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201Try \`$0 --help' for more information"
1202    ;;
1203
1204  *=*)
1205    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206    # Reject names that are not valid shell variable names.
1207    case $ac_envvar in #(
1208      '' | [0-9]* | *[!_$as_cr_alnum]* )
1209      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210    esac
1211    eval $ac_envvar=\$ac_optarg
1212    export $ac_envvar ;;
1213
1214  *)
1215    # FIXME: should be removed in autoconf 3.0.
1216    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220    ;;
1221
1222  esac
1223done
1224
1225if test -n "$ac_prev"; then
1226  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227  as_fn_error $? "missing argument to $ac_option"
1228fi
1229
1230if test -n "$ac_unrecognized_opts"; then
1231  case $enable_option_checking in
1232    no) ;;
1233    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235  esac
1236fi
1237
1238# Check all directory arguments for consistency.
1239for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240		datadir sysconfdir sharedstatedir localstatedir includedir \
1241		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242		libdir localedir mandir
1243do
1244  eval ac_val=\$$ac_var
1245  # Remove trailing slashes.
1246  case $ac_val in
1247    */ )
1248      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249      eval $ac_var=\$ac_val;;
1250  esac
1251  # Be sure to have absolute directory names.
1252  case $ac_val in
1253    [\\/$]* | ?:[\\/]* )  continue;;
1254    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255  esac
1256  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257done
1258
1259# There might be people who depend on the old broken behavior: `$host'
1260# used to hold the argument of --host etc.
1261# FIXME: To remove some day.
1262build=$build_alias
1263host=$host_alias
1264target=$target_alias
1265
1266# FIXME: To remove some day.
1267if test "x$host_alias" != x; then
1268  if test "x$build_alias" = x; then
1269    cross_compiling=maybe
1270  elif test "x$build_alias" != "x$host_alias"; then
1271    cross_compiling=yes
1272  fi
1273fi
1274
1275ac_tool_prefix=
1276test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278test "$silent" = yes && exec 6>/dev/null
1279
1280
1281ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282ac_ls_di=`ls -di .` &&
1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284  as_fn_error $? "working directory cannot be determined"
1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286  as_fn_error $? "pwd does not report name of working directory"
1287
1288
1289# Find the source files, if location was not specified.
1290if test -z "$srcdir"; then
1291  ac_srcdir_defaulted=yes
1292  # Try the directory containing this script, then the parent directory.
1293  ac_confdir=`$as_dirname -- "$as_myself" ||
1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295	 X"$as_myself" : 'X\(//\)[^/]' \| \
1296	 X"$as_myself" : 'X\(//\)$' \| \
1297	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298$as_echo X"$as_myself" |
1299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\/\)[^/].*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)$/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\).*/{
1312	    s//\1/
1313	    q
1314	  }
1315	  s/.*/./; q'`
1316  srcdir=$ac_confdir
1317  if test ! -r "$srcdir/$ac_unique_file"; then
1318    srcdir=..
1319  fi
1320else
1321  ac_srcdir_defaulted=no
1322fi
1323if test ! -r "$srcdir/$ac_unique_file"; then
1324  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326fi
1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328ac_abs_confdir=`(
1329	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330	pwd)`
1331# When building in place, set srcdir=.
1332if test "$ac_abs_confdir" = "$ac_pwd"; then
1333  srcdir=.
1334fi
1335# Remove unnecessary trailing slashes from srcdir.
1336# Double slashes in file names in object file debugging info
1337# mess up M-x gdb in Emacs.
1338case $srcdir in
1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340esac
1341for ac_var in $ac_precious_vars; do
1342  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343  eval ac_env_${ac_var}_value=\$${ac_var}
1344  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346done
1347
1348#
1349# Report the --help message.
1350#
1351if test "$ac_init_help" = "long"; then
1352  # Omit some internal or obsolete options to make the list less imposing.
1353  # This message is too long to be a string in the A/UX 3.1 sh.
1354  cat <<_ACEOF
1355\`configure' configures MPL 0.1 to adapt to many kinds of systems.
1356
1357Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360VAR=VALUE.  See below for descriptions of some of the useful variables.
1361
1362Defaults for the options are specified in brackets.
1363
1364Configuration:
1365  -h, --help              display this help and exit
1366      --help=short        display options specific to this package
1367      --help=recursive    display the short help of all the included packages
1368  -V, --version           display version information and exit
1369  -q, --quiet, --silent   do not print \`checking ...' messages
1370      --cache-file=FILE   cache test results in FILE [disabled]
1371  -C, --config-cache      alias for \`--cache-file=config.cache'
1372  -n, --no-create         do not create output files
1373      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1374
1375Installation directories:
1376  --prefix=PREFIX         install architecture-independent files in PREFIX
1377                          [$ac_default_prefix]
1378  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1379                          [PREFIX]
1380
1381By default, \`make install' will install all the files in
1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1383an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384for instance \`--prefix=\$HOME'.
1385
1386For better control, use the options below.
1387
1388Fine tuning of the installation directories:
1389  --bindir=DIR            user executables [EPREFIX/bin]
1390  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1391  --libexecdir=DIR        program executables [EPREFIX/libexec]
1392  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1393  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1394  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1395  --libdir=DIR            object code libraries [EPREFIX/lib]
1396  --includedir=DIR        C header files [PREFIX/include]
1397  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1398  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1399  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1400  --infodir=DIR           info documentation [DATAROOTDIR/info]
1401  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1402  --mandir=DIR            man documentation [DATAROOTDIR/man]
1403  --docdir=DIR            documentation root [DATAROOTDIR/doc/mpl]
1404  --htmldir=DIR           html documentation [DOCDIR]
1405  --dvidir=DIR            dvi documentation [DOCDIR]
1406  --pdfdir=DIR            pdf documentation [DOCDIR]
1407  --psdir=DIR             ps documentation [DOCDIR]
1408_ACEOF
1409
1410  cat <<\_ACEOF
1411
1412Program names:
1413  --program-prefix=PREFIX            prepend PREFIX to installed program names
1414  --program-suffix=SUFFIX            append SUFFIX to installed program names
1415  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1416
1417System types:
1418  --build=BUILD     configure for building on BUILD [guessed]
1419  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1420_ACEOF
1421fi
1422
1423if test -n "$ac_init_help"; then
1424  case $ac_init_help in
1425     short | recursive ) echo "Configuration of MPL 0.1:";;
1426   esac
1427  cat <<\_ACEOF
1428
1429Optional Features:
1430  --disable-option-checking  ignore unrecognized --enable/--with options
1431  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1432  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1433  --enable-silent-rules   less verbose build output (undo: "make V=1")
1434  --disable-silent-rules  verbose build output (undo: "make V=0")
1435  --enable-dependency-tracking
1436                          do not reject slow dependency extractors
1437  --disable-dependency-tracking
1438                          speeds up one-time build
1439  --enable-shared[=PKGS]  build shared libraries [default=yes]
1440  --enable-static[=PKGS]  build static libraries [default=yes]
1441  --enable-fast-install[=PKGS]
1442                          optimize for fast installation [default=yes]
1443  --disable-libtool-lock  avoid locking (might break parallel builds)
1444  --enable-embedded       Build MPL in embedded mode (default is no)
1445  --enable-g=option       Control the level of debugging support in MPL.
1446                          "option" is a list of comma separated names. Default
1447                          is "all". none|no - No debugging log - Enable debug
1448                          event logging mem - Enable memory tracing
1449                          most|yes|all - All of the above choices (except
1450                          "none", obviously)
1451  --enable-coverage       Turn on coverage analysis using gcc and gcov
1452  --enable-fast=option - Control the level of fast execution supported by MPL.
1453        alwaysinline   - Force compiler to always inline functions with MPL_STATIC_INLINE_PREFIX|SUFFIX
1454        all|yes  - Same as "alwaysinline"
1455        none     - Disable alwaysinline (default)
1456
1457  --enable-timer-type=name - Select the timer to use for MPI_Wtime and
1458                             internal timestamps.
1459        ppc64_cycle        - Powerpc-64bit; returns cycle counts using timebase register
1460        gethrtime          - Solaris timer (Solaris systems only)
1461        clock_gettime      - Posix timer (where available)
1462        gettimeofday       - Most Unix systems
1463        linux86_cycle      - Linux x86; returns cycle counts, not time in seconds*
1464        gcc_ia64_cycle     - IPF ar.itc timer*
1465	mach_absolute_time - Mach absolute time (alternative to clock_gettime
1466                             for OSX)
1467
1468        *Note that the cycle timers are intended to be used by
1469        developers for internal low-level timing.  Normal users should
1470        not use these as they are not guaranteed to be accurate in
1471        certain situations.
1472
1473  --enable-yield          choose a method to yield the processor in busy
1474                          loops. Available methods are: sched_yield, yield,
1475                          select, usleep, sleep, nothing
1476  --enable-versioning     Enable library versioning
1477
1478Optional Packages:
1479  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1482                          both]
1483  --with-aix-soname=aix|svr4|both
1484                          shared library versioning (aka "SONAME") variant to
1485                          provide on AIX, [default=aix].
1486  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1487  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1488                          compiler's sysroot if not specified).
1489  --without-valgrind      to disable valgrind support (such as because of
1490                          version issues)
1491  --with-valgrind=PATH    use valgrind headers installed in PATH (default is
1492                          "yes", use no special path)
1493  --with-thread-package=package     Thread package to use. Supported thread packages include:
1494        posix or pthreads - POSIX threads (default, if required)
1495        solaris - Solaris threads (Solaris OS only)
1496        abt or argobots - Argobots threads
1497        win - windows threads
1498        uti - POSIX threads plus Utility Thread Offloading library
1499        none - no threads
1500
1501  --with-posix-mutex=option     Posix thread mutex to use. Supported options include:
1502        native - pthread mutex (default)
1503        ticketlock - use ticketlock, a fair lock based on atomics and busyloop
1504
1505  --with-uti=[PATH]       specify path where uti include directory and lib
1506                          directory can be found. Having this option
1507                          explicitly requires the library. When PATH is not
1508                          given, it checks the library from system paths.
1509  --with-uti-include=PATH specify path where uti include directory can be
1510                          found
1511  --with-uti-lib=PATH     specify path where uti lib directory can be found
1512  --with-argobots=[PATH]  specify path where argobots include directory and
1513                          lib directory can be found. Having this option
1514                          explicitly requires the library. When PATH is not
1515                          given, it checks the library from system paths.
1516  --with-argobots-include=PATH
1517                          specify path where argobots include directory can be
1518                          found
1519  --with-argobots-lib=PATH
1520                          specify path where argobots lib directory can be
1521                          found
1522  --with-proc-mutex-package=package     Interprocess mutex package to use. Supported packages include:
1523        posix or pthreads - POSIX threads (default, if required)
1524        none - no interprocess mutex support
1525
1526  --with-mpl-atomic-primitives=package  Atomic primitives to use. The following is include:
1527        auto - Automatically choose the best one (default)
1528        c11 - C11 atomics
1529        gcc_atomic - GCC atomic builtins
1530        gcc_sync - GCC sync builtins
1531        win - Windows builtins
1532        lock - Mutex-based synchronization
1533        no|none - atomic operations are performed without synchronization
1534
1535  --with-shared-memory=auto|sysv|mmap
1536                          create shared memory using sysv or mmap (default is
1537                          auto)
1538  --with-cuda=[PATH]      specify path where cuda include directory and lib
1539                          directory can be found. Having this option
1540                          explicitly requires the library. When PATH is not
1541                          given, it checks the library from system paths.
1542  --with-cuda-include=PATH
1543                          specify path where cuda include directory can be
1544                          found
1545  --with-cuda-lib=PATH    specify path where cuda lib directory can be found
1546  --with-ze=[PATH]        specify path where ze include directory and lib
1547                          directory can be found. Having this option
1548                          explicitly requires the library. When PATH is not
1549                          given, it checks the library from system paths.
1550  --with-ze-include=PATH  specify path where ze include directory can be found
1551  --with-ze-lib=PATH      specify path where ze lib directory can be found
1552--with-cacheline=<N>
1553   Define cacheline size (default is 64)
1554
1555Some influential environment variables:
1556  CC          C compiler command
1557  CFLAGS      C compiler flags
1558  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1559              nonstandard directory <lib dir>
1560  LIBS        libraries to pass to the linker, e.g. -l<library>
1561  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1562              you have headers in a nonstandard directory <include dir>
1563  CPP         C preprocessor
1564  LT_SYS_LIBRARY_PATH
1565              User-defined run-time library search path.
1566  MPLLIBNAME  can be used to override the name of the MPL library (default:
1567              "mpl")
1568  GCOV        name/path for the gcov utility
1569
1570Use these variables to override the choices made by `configure' or to help
1571it to find libraries and programs with nonstandard names/locations.
1572
1573Report bugs to the package provider.
1574_ACEOF
1575ac_status=$?
1576fi
1577
1578if test "$ac_init_help" = "recursive"; then
1579  # If there are subdirs, report their specific --help.
1580  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581    test -d "$ac_dir" ||
1582      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583      continue
1584    ac_builddir=.
1585
1586case "$ac_dir" in
1587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588*)
1589  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590  # A ".." for each directory in $ac_dir_suffix.
1591  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592  case $ac_top_builddir_sub in
1593  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595  esac ;;
1596esac
1597ac_abs_top_builddir=$ac_pwd
1598ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599# for backward compatibility:
1600ac_top_builddir=$ac_top_build_prefix
1601
1602case $srcdir in
1603  .)  # We are building in place.
1604    ac_srcdir=.
1605    ac_top_srcdir=$ac_top_builddir_sub
1606    ac_abs_top_srcdir=$ac_pwd ;;
1607  [\\/]* | ?:[\\/]* )  # Absolute name.
1608    ac_srcdir=$srcdir$ac_dir_suffix;
1609    ac_top_srcdir=$srcdir
1610    ac_abs_top_srcdir=$srcdir ;;
1611  *) # Relative name.
1612    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613    ac_top_srcdir=$ac_top_build_prefix$srcdir
1614    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615esac
1616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618    cd "$ac_dir" || { ac_status=$?; continue; }
1619    # Check for guested configure.
1620    if test -f "$ac_srcdir/configure.gnu"; then
1621      echo &&
1622      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623    elif test -f "$ac_srcdir/configure"; then
1624      echo &&
1625      $SHELL "$ac_srcdir/configure" --help=recursive
1626    else
1627      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628    fi || ac_status=$?
1629    cd "$ac_pwd" || { ac_status=$?; break; }
1630  done
1631fi
1632
1633test -n "$ac_init_help" && exit $ac_status
1634if $ac_init_version; then
1635  cat <<\_ACEOF
1636MPL configure 0.1
1637generated by GNU Autoconf 2.69
1638
1639Copyright (C) 2012 Free Software Foundation, Inc.
1640This configure script is free software; the Free Software Foundation
1641gives unlimited permission to copy, distribute and modify it.
1642_ACEOF
1643  exit
1644fi
1645
1646## ------------------------ ##
1647## Autoconf initialization. ##
1648## ------------------------ ##
1649
1650# ac_fn_c_try_compile LINENO
1651# --------------------------
1652# Try to compile conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_c_try_compile ()
1654{
1655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656  rm -f conftest.$ac_objext
1657  if { { ac_try="$ac_compile"
1658case "(($ac_try" in
1659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660  *) ac_try_echo=$ac_try;;
1661esac
1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663$as_echo "$ac_try_echo"; } >&5
1664  (eval "$ac_compile") 2>conftest.err
1665  ac_status=$?
1666  if test -s conftest.err; then
1667    grep -v '^ *+' conftest.err >conftest.er1
1668    cat conftest.er1 >&5
1669    mv -f conftest.er1 conftest.err
1670  fi
1671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672  test $ac_status = 0; } && {
1673	 test -z "$ac_c_werror_flag" ||
1674	 test ! -s conftest.err
1675       } && test -s conftest.$ac_objext; then :
1676  ac_retval=0
1677else
1678  $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
1681	ac_retval=1
1682fi
1683  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684  as_fn_set_status $ac_retval
1685
1686} # ac_fn_c_try_compile
1687
1688# ac_fn_c_try_cpp LINENO
1689# ----------------------
1690# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691ac_fn_c_try_cpp ()
1692{
1693  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694  if { { ac_try="$ac_cpp conftest.$ac_ext"
1695case "(($ac_try" in
1696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697  *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702  ac_status=$?
1703  if test -s conftest.err; then
1704    grep -v '^ *+' conftest.err >conftest.er1
1705    cat conftest.er1 >&5
1706    mv -f conftest.er1 conftest.err
1707  fi
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; } > conftest.i && {
1710	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711	 test ! -s conftest.err
1712       }; then :
1713  ac_retval=0
1714else
1715  $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718    ac_retval=1
1719fi
1720  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721  as_fn_set_status $ac_retval
1722
1723} # ac_fn_c_try_cpp
1724
1725# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726# -------------------------------------------------------
1727# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728# the include files in INCLUDES and setting the cache variable VAR
1729# accordingly.
1730ac_fn_c_check_header_mongrel ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  if eval \${$3+:} false; then :
1734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if eval \${$3+:} false; then :
1737  $as_echo_n "(cached) " >&6
1738fi
1739eval ac_res=\$$3
1740	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742else
1743  # Is the header compilable?
1744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745$as_echo_n "checking $2 usability... " >&6; }
1746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747/* end confdefs.h.  */
1748$4
1749#include <$2>
1750_ACEOF
1751if ac_fn_c_try_compile "$LINENO"; then :
1752  ac_header_compiler=yes
1753else
1754  ac_header_compiler=no
1755fi
1756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758$as_echo "$ac_header_compiler" >&6; }
1759
1760# Is the header present?
1761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762$as_echo_n "checking $2 presence... " >&6; }
1763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h.  */
1765#include <$2>
1766_ACEOF
1767if ac_fn_c_try_cpp "$LINENO"; then :
1768  ac_header_preproc=yes
1769else
1770  ac_header_preproc=no
1771fi
1772rm -f conftest.err conftest.i conftest.$ac_ext
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774$as_echo "$ac_header_preproc" >&6; }
1775
1776# So?  What about this header?
1777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778  yes:no: )
1779    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783    ;;
1784  no:yes:* )
1785    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1788$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1792$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795    ;;
1796esac
1797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798$as_echo_n "checking for $2... " >&6; }
1799if eval \${$3+:} false; then :
1800  $as_echo_n "(cached) " >&6
1801else
1802  eval "$3=\$ac_header_compiler"
1803fi
1804eval ac_res=\$$3
1805	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807fi
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810} # ac_fn_c_check_header_mongrel
1811
1812# ac_fn_c_try_run LINENO
1813# ----------------------
1814# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815# that executables *can* be run.
1816ac_fn_c_try_run ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  if { { ac_try="$ac_link"
1820case "(($ac_try" in
1821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822  *) ac_try_echo=$ac_try;;
1823esac
1824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825$as_echo "$ac_try_echo"; } >&5
1826  (eval "$ac_link") 2>&5
1827  ac_status=$?
1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830  { { case "(($ac_try" in
1831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832  *) ac_try_echo=$ac_try;;
1833esac
1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835$as_echo "$ac_try_echo"; } >&5
1836  (eval "$ac_try") 2>&5
1837  ac_status=$?
1838  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839  test $ac_status = 0; }; }; then :
1840  ac_retval=0
1841else
1842  $as_echo "$as_me: program exited with status $ac_status" >&5
1843       $as_echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846       ac_retval=$ac_status
1847fi
1848  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850  as_fn_set_status $ac_retval
1851
1852} # ac_fn_c_try_run
1853
1854# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855# -------------------------------------------------------
1856# Tests whether HEADER exists and can be compiled using the include files in
1857# INCLUDES, setting the cache variable VAR accordingly.
1858ac_fn_c_check_header_compile ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if eval \${$3+:} false; then :
1864  $as_echo_n "(cached) " >&6
1865else
1866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867/* end confdefs.h.  */
1868$4
1869#include <$2>
1870_ACEOF
1871if ac_fn_c_try_compile "$LINENO"; then :
1872  eval "$3=yes"
1873else
1874  eval "$3=no"
1875fi
1876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877fi
1878eval ac_res=\$$3
1879	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883} # ac_fn_c_check_header_compile
1884
1885# ac_fn_c_try_link LINENO
1886# -----------------------
1887# Try to link conftest.$ac_ext, and return whether this succeeded.
1888ac_fn_c_try_link ()
1889{
1890  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891  rm -f conftest.$ac_objext conftest$ac_exeext
1892  if { { ac_try="$ac_link"
1893case "(($ac_try" in
1894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895  *) ac_try_echo=$ac_try;;
1896esac
1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898$as_echo "$ac_try_echo"; } >&5
1899  (eval "$ac_link") 2>conftest.err
1900  ac_status=$?
1901  if test -s conftest.err; then
1902    grep -v '^ *+' conftest.err >conftest.er1
1903    cat conftest.er1 >&5
1904    mv -f conftest.er1 conftest.err
1905  fi
1906  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907  test $ac_status = 0; } && {
1908	 test -z "$ac_c_werror_flag" ||
1909	 test ! -s conftest.err
1910       } && test -s conftest$ac_exeext && {
1911	 test "$cross_compiling" = yes ||
1912	 test -x conftest$ac_exeext
1913       }; then :
1914  ac_retval=0
1915else
1916  $as_echo "$as_me: failed program was:" >&5
1917sed 's/^/| /' conftest.$ac_ext >&5
1918
1919	ac_retval=1
1920fi
1921  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923  # interfere with the next link command; also delete a directory that is
1924  # left behind by Apple's compiler.  We do this before executing the actions.
1925  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927  as_fn_set_status $ac_retval
1928
1929} # ac_fn_c_try_link
1930
1931# ac_fn_c_check_func LINENO FUNC VAR
1932# ----------------------------------
1933# Tests whether FUNC exists, setting the cache variable VAR accordingly
1934ac_fn_c_check_func ()
1935{
1936  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938$as_echo_n "checking for $2... " >&6; }
1939if eval \${$3+:} false; then :
1940  $as_echo_n "(cached) " >&6
1941else
1942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1946#define $2 innocuous_$2
1947
1948/* System header to define __stub macros and hopefully few prototypes,
1949    which can conflict with char $2 (); below.
1950    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1951    <limits.h> exists even on freestanding compilers.  */
1952
1953#ifdef __STDC__
1954# include <limits.h>
1955#else
1956# include <assert.h>
1957#endif
1958
1959#undef $2
1960
1961/* Override any GCC internal prototype to avoid an error.
1962   Use char because int might match the return type of a GCC
1963   builtin and then its argument prototype would still apply.  */
1964#ifdef __cplusplus
1965extern "C"
1966#endif
1967char $2 ();
1968/* The GNU C library defines this for functions which it implements
1969    to always fail with ENOSYS.  Some functions are actually named
1970    something starting with __ and the normal name is an alias.  */
1971#if defined __stub_$2 || defined __stub___$2
1972choke me
1973#endif
1974
1975int
1976main ()
1977{
1978return $2 ();
1979  ;
1980  return 0;
1981}
1982_ACEOF
1983if ac_fn_c_try_link "$LINENO"; then :
1984  eval "$3=yes"
1985else
1986  eval "$3=no"
1987fi
1988rm -f core conftest.err conftest.$ac_objext \
1989    conftest$ac_exeext conftest.$ac_ext
1990fi
1991eval ac_res=\$$3
1992	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993$as_echo "$ac_res" >&6; }
1994  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996} # ac_fn_c_check_func
1997
1998# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1999# -------------------------------------------
2000# Tests whether TYPE exists after having included INCLUDES, setting cache
2001# variable VAR accordingly.
2002ac_fn_c_check_type ()
2003{
2004  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006$as_echo_n "checking for $2... " >&6; }
2007if eval \${$3+:} false; then :
2008  $as_echo_n "(cached) " >&6
2009else
2010  eval "$3=no"
2011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h.  */
2013$4
2014int
2015main ()
2016{
2017if (sizeof ($2))
2018	 return 0;
2019  ;
2020  return 0;
2021}
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h.  */
2026$4
2027int
2028main ()
2029{
2030if (sizeof (($2)))
2031	    return 0;
2032  ;
2033  return 0;
2034}
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037
2038else
2039  eval "$3=yes"
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042fi
2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044fi
2045eval ac_res=\$$3
2046	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047$as_echo "$ac_res" >&6; }
2048  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050} # ac_fn_c_check_type
2051
2052# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2053# ---------------------------------------------
2054# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2055# accordingly.
2056ac_fn_c_check_decl ()
2057{
2058  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059  as_decl_name=`echo $2|sed 's/ *(.*//'`
2060  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2062$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2063if eval \${$3+:} false; then :
2064  $as_echo_n "(cached) " >&6
2065else
2066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h.  */
2068$4
2069int
2070main ()
2071{
2072#ifndef $as_decl_name
2073#ifdef __cplusplus
2074  (void) $as_decl_use;
2075#else
2076  (void) $as_decl_name;
2077#endif
2078#endif
2079
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_compile "$LINENO"; then :
2085  eval "$3=yes"
2086else
2087  eval "$3=no"
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090fi
2091eval ac_res=\$$3
2092	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093$as_echo "$ac_res" >&6; }
2094  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095
2096} # ac_fn_c_check_decl
2097
2098# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2099# --------------------------------------------
2100# Tries to find the compile-time value of EXPR in a program that includes
2101# INCLUDES, setting VAR accordingly. Returns whether the value could be
2102# computed
2103ac_fn_c_compute_int ()
2104{
2105  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106  if test "$cross_compiling" = yes; then
2107    # Depending upon the size, compute the lo and hi bounds.
2108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h.  */
2110$4
2111int
2112main ()
2113{
2114static int test_array [1 - 2 * !(($2) >= 0)];
2115test_array [0] = 0;
2116return test_array [0];
2117
2118  ;
2119  return 0;
2120}
2121_ACEOF
2122if ac_fn_c_try_compile "$LINENO"; then :
2123  ac_lo=0 ac_mid=0
2124  while :; do
2125    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126/* end confdefs.h.  */
2127$4
2128int
2129main ()
2130{
2131static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2132test_array [0] = 0;
2133return test_array [0];
2134
2135  ;
2136  return 0;
2137}
2138_ACEOF
2139if ac_fn_c_try_compile "$LINENO"; then :
2140  ac_hi=$ac_mid; break
2141else
2142  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2143			if test $ac_lo -le $ac_mid; then
2144			  ac_lo= ac_hi=
2145			  break
2146			fi
2147			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2148fi
2149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150  done
2151else
2152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h.  */
2154$4
2155int
2156main ()
2157{
2158static int test_array [1 - 2 * !(($2) < 0)];
2159test_array [0] = 0;
2160return test_array [0];
2161
2162  ;
2163  return 0;
2164}
2165_ACEOF
2166if ac_fn_c_try_compile "$LINENO"; then :
2167  ac_hi=-1 ac_mid=-1
2168  while :; do
2169    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170/* end confdefs.h.  */
2171$4
2172int
2173main ()
2174{
2175static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2176test_array [0] = 0;
2177return test_array [0];
2178
2179  ;
2180  return 0;
2181}
2182_ACEOF
2183if ac_fn_c_try_compile "$LINENO"; then :
2184  ac_lo=$ac_mid; break
2185else
2186  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2187			if test $ac_mid -le $ac_hi; then
2188			  ac_lo= ac_hi=
2189			  break
2190			fi
2191			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2192fi
2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194  done
2195else
2196  ac_lo= ac_hi=
2197fi
2198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199fi
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201# Binary search between lo and hi bounds.
2202while test "x$ac_lo" != "x$ac_hi"; do
2203  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h.  */
2206$4
2207int
2208main ()
2209{
2210static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2211test_array [0] = 0;
2212return test_array [0];
2213
2214  ;
2215  return 0;
2216}
2217_ACEOF
2218if ac_fn_c_try_compile "$LINENO"; then :
2219  ac_hi=$ac_mid
2220else
2221  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2222fi
2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224done
2225case $ac_lo in #((
2226?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2227'') ac_retval=1 ;;
2228esac
2229  else
2230    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231/* end confdefs.h.  */
2232$4
2233static long int longval () { return $2; }
2234static unsigned long int ulongval () { return $2; }
2235#include <stdio.h>
2236#include <stdlib.h>
2237int
2238main ()
2239{
2240
2241  FILE *f = fopen ("conftest.val", "w");
2242  if (! f)
2243    return 1;
2244  if (($2) < 0)
2245    {
2246      long int i = longval ();
2247      if (i != ($2))
2248	return 1;
2249      fprintf (f, "%ld", i);
2250    }
2251  else
2252    {
2253      unsigned long int i = ulongval ();
2254      if (i != ($2))
2255	return 1;
2256      fprintf (f, "%lu", i);
2257    }
2258  /* Do not output a trailing newline, as this causes \r\n confusion
2259     on some platforms.  */
2260  return ferror (f) || fclose (f) != 0;
2261
2262  ;
2263  return 0;
2264}
2265_ACEOF
2266if ac_fn_c_try_run "$LINENO"; then :
2267  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2268else
2269  ac_retval=1
2270fi
2271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2272  conftest.$ac_objext conftest.beam conftest.$ac_ext
2273rm -f conftest.val
2274
2275  fi
2276  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277  as_fn_set_status $ac_retval
2278
2279} # ac_fn_c_compute_int
2280cat >config.log <<_ACEOF
2281This file contains any messages produced by compilers while
2282running configure, to aid debugging if configure makes a mistake.
2283
2284It was created by MPL $as_me 0.1, which was
2285generated by GNU Autoconf 2.69.  Invocation command line was
2286
2287  $ $0 $@
2288
2289_ACEOF
2290exec 5>>config.log
2291{
2292cat <<_ASUNAME
2293## --------- ##
2294## Platform. ##
2295## --------- ##
2296
2297hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2298uname -m = `(uname -m) 2>/dev/null || echo unknown`
2299uname -r = `(uname -r) 2>/dev/null || echo unknown`
2300uname -s = `(uname -s) 2>/dev/null || echo unknown`
2301uname -v = `(uname -v) 2>/dev/null || echo unknown`
2302
2303/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2304/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2305
2306/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2307/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2308/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2309/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2310/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2311/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2312/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2313
2314_ASUNAME
2315
2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317for as_dir in $PATH
2318do
2319  IFS=$as_save_IFS
2320  test -z "$as_dir" && as_dir=.
2321    $as_echo "PATH: $as_dir"
2322  done
2323IFS=$as_save_IFS
2324
2325} >&5
2326
2327cat >&5 <<_ACEOF
2328
2329
2330## ----------- ##
2331## Core tests. ##
2332## ----------- ##
2333
2334_ACEOF
2335
2336
2337# Keep a trace of the command line.
2338# Strip out --no-create and --no-recursion so they do not pile up.
2339# Strip out --silent because we don't want to record it for future runs.
2340# Also quote any args containing shell meta-characters.
2341# Make two passes to allow for proper duplicate-argument suppression.
2342ac_configure_args=
2343ac_configure_args0=
2344ac_configure_args1=
2345ac_must_keep_next=false
2346for ac_pass in 1 2
2347do
2348  for ac_arg
2349  do
2350    case $ac_arg in
2351    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2352    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2353    | -silent | --silent | --silen | --sile | --sil)
2354      continue ;;
2355    *\'*)
2356      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2357    esac
2358    case $ac_pass in
2359    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2360    2)
2361      as_fn_append ac_configure_args1 " '$ac_arg'"
2362      if test $ac_must_keep_next = true; then
2363	ac_must_keep_next=false # Got value, back to normal.
2364      else
2365	case $ac_arg in
2366	  *=* | --config-cache | -C | -disable-* | --disable-* \
2367	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2368	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2369	  | -with-* | --with-* | -without-* | --without-* | --x)
2370	    case "$ac_configure_args0 " in
2371	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2372	    esac
2373	    ;;
2374	  -* ) ac_must_keep_next=true ;;
2375	esac
2376      fi
2377      as_fn_append ac_configure_args " '$ac_arg'"
2378      ;;
2379    esac
2380  done
2381done
2382{ ac_configure_args0=; unset ac_configure_args0;}
2383{ ac_configure_args1=; unset ac_configure_args1;}
2384
2385# When interrupted or exit'd, cleanup temporary files, and complete
2386# config.log.  We remove comments because anyway the quotes in there
2387# would cause problems or look ugly.
2388# WARNING: Use '\'' to represent an apostrophe within the trap.
2389# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2390trap 'exit_status=$?
2391  # Save into config.log some information that might help in debugging.
2392  {
2393    echo
2394
2395    $as_echo "## ---------------- ##
2396## Cache variables. ##
2397## ---------------- ##"
2398    echo
2399    # The following way of writing the cache mishandles newlines in values,
2400(
2401  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2402    eval ac_val=\$$ac_var
2403    case $ac_val in #(
2404    *${as_nl}*)
2405      case $ac_var in #(
2406      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2407$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2408      esac
2409      case $ac_var in #(
2410      _ | IFS | as_nl) ;; #(
2411      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2412      *) { eval $ac_var=; unset $ac_var;} ;;
2413      esac ;;
2414    esac
2415  done
2416  (set) 2>&1 |
2417    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2418    *${as_nl}ac_space=\ *)
2419      sed -n \
2420	"s/'\''/'\''\\\\'\'''\''/g;
2421	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2422      ;; #(
2423    *)
2424      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2425      ;;
2426    esac |
2427    sort
2428)
2429    echo
2430
2431    $as_echo "## ----------------- ##
2432## Output variables. ##
2433## ----------------- ##"
2434    echo
2435    for ac_var in $ac_subst_vars
2436    do
2437      eval ac_val=\$$ac_var
2438      case $ac_val in
2439      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440      esac
2441      $as_echo "$ac_var='\''$ac_val'\''"
2442    done | sort
2443    echo
2444
2445    if test -n "$ac_subst_files"; then
2446      $as_echo "## ------------------- ##
2447## File substitutions. ##
2448## ------------------- ##"
2449      echo
2450      for ac_var in $ac_subst_files
2451      do
2452	eval ac_val=\$$ac_var
2453	case $ac_val in
2454	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2455	esac
2456	$as_echo "$ac_var='\''$ac_val'\''"
2457      done | sort
2458      echo
2459    fi
2460
2461    if test -s confdefs.h; then
2462      $as_echo "## ----------- ##
2463## confdefs.h. ##
2464## ----------- ##"
2465      echo
2466      cat confdefs.h
2467      echo
2468    fi
2469    test "$ac_signal" != 0 &&
2470      $as_echo "$as_me: caught signal $ac_signal"
2471    $as_echo "$as_me: exit $exit_status"
2472  } >&5
2473  rm -f core *.core core.conftest.* &&
2474    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2475    exit $exit_status
2476' 0
2477for ac_signal in 1 2 13 15; do
2478  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2479done
2480ac_signal=0
2481
2482# confdefs.h avoids OS command line length limits that DEFS can exceed.
2483rm -f -r conftest* confdefs.h
2484
2485$as_echo "/* confdefs.h */" > confdefs.h
2486
2487# Predefined preprocessor variables.
2488
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_NAME "$PACKAGE_NAME"
2491_ACEOF
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2495_ACEOF
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_VERSION "$PACKAGE_VERSION"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_STRING "$PACKAGE_STRING"
2503_ACEOF
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2507_ACEOF
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_URL "$PACKAGE_URL"
2511_ACEOF
2512
2513
2514# Let the site file select an alternate cache file if it wants to.
2515# Prefer an explicitly selected file to automatically selected ones.
2516ac_site_file1=NONE
2517ac_site_file2=NONE
2518if test -n "$CONFIG_SITE"; then
2519  # We do not want a PATH search for config.site.
2520  case $CONFIG_SITE in #((
2521    -*)  ac_site_file1=./$CONFIG_SITE;;
2522    */*) ac_site_file1=$CONFIG_SITE;;
2523    *)   ac_site_file1=./$CONFIG_SITE;;
2524  esac
2525elif test "x$prefix" != xNONE; then
2526  ac_site_file1=$prefix/share/config.site
2527  ac_site_file2=$prefix/etc/config.site
2528else
2529  ac_site_file1=$ac_default_prefix/share/config.site
2530  ac_site_file2=$ac_default_prefix/etc/config.site
2531fi
2532for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2533do
2534  test "x$ac_site_file" = xNONE && continue
2535  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2536    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2537$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2538    sed 's/^/| /' "$ac_site_file" >&5
2539    . "$ac_site_file" \
2540      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542as_fn_error $? "failed to load site script $ac_site_file
2543See \`config.log' for more details" "$LINENO" 5; }
2544  fi
2545done
2546
2547if test -r "$cache_file"; then
2548  # Some versions of bash will fail to source /dev/null (special files
2549  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2550  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2551    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2552$as_echo "$as_me: loading cache $cache_file" >&6;}
2553    case $cache_file in
2554      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2555      *)                      . "./$cache_file";;
2556    esac
2557  fi
2558else
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2560$as_echo "$as_me: creating cache $cache_file" >&6;}
2561  >$cache_file
2562fi
2563
2564# Check that the precious variables saved in the cache have kept the same
2565# value.
2566ac_cache_corrupted=false
2567for ac_var in $ac_precious_vars; do
2568  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2569  eval ac_new_set=\$ac_env_${ac_var}_set
2570  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2571  eval ac_new_val=\$ac_env_${ac_var}_value
2572  case $ac_old_set,$ac_new_set in
2573    set,)
2574      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2575$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2576      ac_cache_corrupted=: ;;
2577    ,set)
2578      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2579$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2580      ac_cache_corrupted=: ;;
2581    ,);;
2582    *)
2583      if test "x$ac_old_val" != "x$ac_new_val"; then
2584	# differences in whitespace do not lead to failure.
2585	ac_old_val_w=`echo x $ac_old_val`
2586	ac_new_val_w=`echo x $ac_new_val`
2587	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2588	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2589$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2590	  ac_cache_corrupted=:
2591	else
2592	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2593$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2594	  eval $ac_var=\$ac_old_val
2595	fi
2596	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2597$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2598	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2599$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2600      fi;;
2601  esac
2602  # Pass precious variables to config.status.
2603  if test "$ac_new_set" = set; then
2604    case $ac_new_val in
2605    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2606    *) ac_arg=$ac_var=$ac_new_val ;;
2607    esac
2608    case " $ac_configure_args " in
2609      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2610      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2611    esac
2612  fi
2613done
2614if $ac_cache_corrupted; then
2615  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2618$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2619  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2620fi
2621## -------------------- ##
2622## Main body of script. ##
2623## -------------------- ##
2624
2625ac_ext=c
2626ac_cpp='$CPP $CPPFLAGS'
2627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630
2631
2632
2633# sanity check that --srcdir was specified correctly
2634
2635
2636ac_aux_dir=
2637for ac_dir in confdb "$srcdir"/confdb; do
2638  if test -f "$ac_dir/install-sh"; then
2639    ac_aux_dir=$ac_dir
2640    ac_install_sh="$ac_aux_dir/install-sh -c"
2641    break
2642  elif test -f "$ac_dir/install.sh"; then
2643    ac_aux_dir=$ac_dir
2644    ac_install_sh="$ac_aux_dir/install.sh -c"
2645    break
2646  elif test -f "$ac_dir/shtool"; then
2647    ac_aux_dir=$ac_dir
2648    ac_install_sh="$ac_aux_dir/shtool install -c"
2649    break
2650  fi
2651done
2652if test -z "$ac_aux_dir"; then
2653  as_fn_error $? "cannot find install-sh, install.sh, or shtool in confdb \"$srcdir\"/confdb" "$LINENO" 5
2654fi
2655
2656# These three variables are undocumented and unsupported,
2657# and are intended to be withdrawn in a future Autoconf release.
2658# They can cause serious problems if a builder's source tree is in a directory
2659# whose full name contains unusual characters.
2660ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2661ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2662ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2663
2664
2665
2666am__api_version='1.15'
2667
2668# Find a good install program.  We prefer a C program (faster),
2669# so one script is as good as another.  But avoid the broken or
2670# incompatible versions:
2671# SysV /etc/install, /usr/sbin/install
2672# SunOS /usr/etc/install
2673# IRIX /sbin/install
2674# AIX /bin/install
2675# AmigaOS /C/install, which installs bootblocks on floppy discs
2676# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2677# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2678# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2679# OS/2's system install, which has a completely different semantic
2680# ./install, which can be erroneously created by make from ./install.sh.
2681# Reject install programs that cannot install multiple files.
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2683$as_echo_n "checking for a BSD-compatible install... " >&6; }
2684if test -z "$INSTALL"; then
2685if ${ac_cv_path_install+:} false; then :
2686  $as_echo_n "(cached) " >&6
2687else
2688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691  IFS=$as_save_IFS
2692  test -z "$as_dir" && as_dir=.
2693    # Account for people who put trailing slashes in PATH elements.
2694case $as_dir/ in #((
2695  ./ | .// | /[cC]/* | \
2696  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2697  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2698  /usr/ucb/* ) ;;
2699  *)
2700    # OSF1 and SCO ODT 3.0 have their own names for install.
2701    # Don't use installbsd from OSF since it installs stuff as root
2702    # by default.
2703    for ac_prog in ginstall scoinst install; do
2704      for ac_exec_ext in '' $ac_executable_extensions; do
2705	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2706	  if test $ac_prog = install &&
2707	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708	    # AIX install.  It has an incompatible calling convention.
2709	    :
2710	  elif test $ac_prog = install &&
2711	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712	    # program-specific install script used by HP pwplus--don't use.
2713	    :
2714	  else
2715	    rm -rf conftest.one conftest.two conftest.dir
2716	    echo one > conftest.one
2717	    echo two > conftest.two
2718	    mkdir conftest.dir
2719	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2720	      test -s conftest.one && test -s conftest.two &&
2721	      test -s conftest.dir/conftest.one &&
2722	      test -s conftest.dir/conftest.two
2723	    then
2724	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2725	      break 3
2726	    fi
2727	  fi
2728	fi
2729      done
2730    done
2731    ;;
2732esac
2733
2734  done
2735IFS=$as_save_IFS
2736
2737rm -rf conftest.one conftest.two conftest.dir
2738
2739fi
2740  if test "${ac_cv_path_install+set}" = set; then
2741    INSTALL=$ac_cv_path_install
2742  else
2743    # As a last resort, use the slow shell script.  Don't cache a
2744    # value for INSTALL within a source directory, because that will
2745    # break other packages using the cache if that directory is
2746    # removed, or if the value is a relative name.
2747    INSTALL=$ac_install_sh
2748  fi
2749fi
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2751$as_echo "$INSTALL" >&6; }
2752
2753# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754# It thinks the first close brace ends the variable substitution.
2755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2756
2757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2758
2759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2760
2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2762$as_echo_n "checking whether build environment is sane... " >&6; }
2763# Reject unsafe characters in $srcdir or the absolute working directory
2764# name.  Accept space and tab only in the latter.
2765am_lf='
2766'
2767case `pwd` in
2768  *[\\\"\#\$\&\'\`$am_lf]*)
2769    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2770esac
2771case $srcdir in
2772  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2773    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2774esac
2775
2776# Do 'set' in a subshell so we don't clobber the current shell's
2777# arguments.  Must try -L first in case configure is actually a
2778# symlink; some systems play weird games with the mod time of symlinks
2779# (eg FreeBSD returns the mod time of the symlink's containing
2780# directory).
2781if (
2782   am_has_slept=no
2783   for am_try in 1 2; do
2784     echo "timestamp, slept: $am_has_slept" > conftest.file
2785     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2786     if test "$*" = "X"; then
2787	# -L didn't work.
2788	set X `ls -t "$srcdir/configure" conftest.file`
2789     fi
2790     if test "$*" != "X $srcdir/configure conftest.file" \
2791	&& test "$*" != "X conftest.file $srcdir/configure"; then
2792
2793	# If neither matched, then we have a broken ls.  This can happen
2794	# if, for instance, CONFIG_SHELL is bash and it inherits a
2795	# broken ls alias from the environment.  This has actually
2796	# happened.  Such a system could not be considered "sane".
2797	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2798  alias in your environment" "$LINENO" 5
2799     fi
2800     if test "$2" = conftest.file || test $am_try -eq 2; then
2801       break
2802     fi
2803     # Just in case.
2804     sleep 1
2805     am_has_slept=yes
2806   done
2807   test "$2" = conftest.file
2808   )
2809then
2810   # Ok.
2811   :
2812else
2813   as_fn_error $? "newly created file is older than distributed files!
2814Check your system clock" "$LINENO" 5
2815fi
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2817$as_echo "yes" >&6; }
2818# If we didn't sleep, we still need to ensure time stamps of config.status and
2819# generated files are strictly newer.
2820am_sleep_pid=
2821if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2822  ( sleep 1 ) &
2823  am_sleep_pid=$!
2824fi
2825
2826rm -f conftest.file
2827
2828test "$program_prefix" != NONE &&
2829  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2830# Use a double $ so make ignores it.
2831test "$program_suffix" != NONE &&
2832  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2833# Double any \ or $.
2834# By default was `s,x,x', remove it if useless.
2835ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2836program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2837
2838# Expand $ac_aux_dir to an absolute path.
2839am_aux_dir=`cd "$ac_aux_dir" && pwd`
2840
2841if test x"${MISSING+set}" != xset; then
2842  case $am_aux_dir in
2843  *\ * | *\	*)
2844    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2845  *)
2846    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2847  esac
2848fi
2849# Use eval to expand $SHELL
2850if eval "$MISSING --is-lightweight"; then
2851  am_missing_run="$MISSING "
2852else
2853  am_missing_run=
2854  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2855$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2856fi
2857
2858if test x"${install_sh+set}" != xset; then
2859  case $am_aux_dir in
2860  *\ * | *\	*)
2861    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2862  *)
2863    install_sh="\${SHELL} $am_aux_dir/install-sh"
2864  esac
2865fi
2866
2867# Installed binaries are usually stripped using 'strip' when the user
2868# run "make install-strip".  However 'strip' might not be the right
2869# tool to use in cross-compilation environments, therefore Automake
2870# will honor the 'STRIP' environment variable to overrule this program.
2871if test "$cross_compiling" != no; then
2872  if test -n "$ac_tool_prefix"; then
2873  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2874set dummy ${ac_tool_prefix}strip; ac_word=$2
2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876$as_echo_n "checking for $ac_word... " >&6; }
2877if ${ac_cv_prog_STRIP+:} false; then :
2878  $as_echo_n "(cached) " >&6
2879else
2880  if test -n "$STRIP"; then
2881  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2882else
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884for as_dir in $PATH
2885do
2886  IFS=$as_save_IFS
2887  test -z "$as_dir" && as_dir=.
2888    for ac_exec_ext in '' $ac_executable_extensions; do
2889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892    break 2
2893  fi
2894done
2895  done
2896IFS=$as_save_IFS
2897
2898fi
2899fi
2900STRIP=$ac_cv_prog_STRIP
2901if test -n "$STRIP"; then
2902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2903$as_echo "$STRIP" >&6; }
2904else
2905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906$as_echo "no" >&6; }
2907fi
2908
2909
2910fi
2911if test -z "$ac_cv_prog_STRIP"; then
2912  ac_ct_STRIP=$STRIP
2913  # Extract the first word of "strip", so it can be a program name with args.
2914set dummy strip; ac_word=$2
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916$as_echo_n "checking for $ac_word... " >&6; }
2917if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2918  $as_echo_n "(cached) " >&6
2919else
2920  if test -n "$ac_ct_STRIP"; then
2921  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2922else
2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH
2925do
2926  IFS=$as_save_IFS
2927  test -z "$as_dir" && as_dir=.
2928    for ac_exec_ext in '' $ac_executable_extensions; do
2929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930    ac_cv_prog_ac_ct_STRIP="strip"
2931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932    break 2
2933  fi
2934done
2935  done
2936IFS=$as_save_IFS
2937
2938fi
2939fi
2940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2941if test -n "$ac_ct_STRIP"; then
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2943$as_echo "$ac_ct_STRIP" >&6; }
2944else
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946$as_echo "no" >&6; }
2947fi
2948
2949  if test "x$ac_ct_STRIP" = x; then
2950    STRIP=":"
2951  else
2952    case $cross_compiling:$ac_tool_warned in
2953yes:)
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956ac_tool_warned=yes ;;
2957esac
2958    STRIP=$ac_ct_STRIP
2959  fi
2960else
2961  STRIP="$ac_cv_prog_STRIP"
2962fi
2963
2964fi
2965INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2966
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2968$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2969if test -z "$MKDIR_P"; then
2970  if ${ac_cv_path_mkdir+:} false; then :
2971  $as_echo_n "(cached) " >&6
2972else
2973  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978    for ac_prog in mkdir gmkdir; do
2979	 for ac_exec_ext in '' $ac_executable_extensions; do
2980	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2981	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2982	     'mkdir (GNU coreutils) '* | \
2983	     'mkdir (coreutils) '* | \
2984	     'mkdir (fileutils) '4.1*)
2985	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2986	       break 3;;
2987	   esac
2988	 done
2989       done
2990  done
2991IFS=$as_save_IFS
2992
2993fi
2994
2995  test -d ./--version && rmdir ./--version
2996  if test "${ac_cv_path_mkdir+set}" = set; then
2997    MKDIR_P="$ac_cv_path_mkdir -p"
2998  else
2999    # As a last resort, use the slow shell script.  Don't cache a
3000    # value for MKDIR_P within a source directory, because that will
3001    # break other packages using the cache if that directory is
3002    # removed, or if the value is a relative name.
3003    MKDIR_P="$ac_install_sh -d"
3004  fi
3005fi
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3007$as_echo "$MKDIR_P" >&6; }
3008
3009for ac_prog in gawk mawk nawk awk
3010do
3011  # Extract the first word of "$ac_prog", so it can be a program name with args.
3012set dummy $ac_prog; ac_word=$2
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014$as_echo_n "checking for $ac_word... " >&6; }
3015if ${ac_cv_prog_AWK+:} false; then :
3016  $as_echo_n "(cached) " >&6
3017else
3018  if test -n "$AWK"; then
3019  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3020else
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024  IFS=$as_save_IFS
3025  test -z "$as_dir" && as_dir=.
3026    for ac_exec_ext in '' $ac_executable_extensions; do
3027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028    ac_cv_prog_AWK="$ac_prog"
3029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030    break 2
3031  fi
3032done
3033  done
3034IFS=$as_save_IFS
3035
3036fi
3037fi
3038AWK=$ac_cv_prog_AWK
3039if test -n "$AWK"; then
3040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3041$as_echo "$AWK" >&6; }
3042else
3043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044$as_echo "no" >&6; }
3045fi
3046
3047
3048  test -n "$AWK" && break
3049done
3050
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3052$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3053set x ${MAKE-make}
3054ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3055if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3056  $as_echo_n "(cached) " >&6
3057else
3058  cat >conftest.make <<\_ACEOF
3059SHELL = /bin/sh
3060all:
3061	@echo '@@@%%%=$(MAKE)=@@@%%%'
3062_ACEOF
3063# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3064case `${MAKE-make} -f conftest.make 2>/dev/null` in
3065  *@@@%%%=?*=@@@%%%*)
3066    eval ac_cv_prog_make_${ac_make}_set=yes;;
3067  *)
3068    eval ac_cv_prog_make_${ac_make}_set=no;;
3069esac
3070rm -f conftest.make
3071fi
3072if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074$as_echo "yes" >&6; }
3075  SET_MAKE=
3076else
3077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078$as_echo "no" >&6; }
3079  SET_MAKE="MAKE=${MAKE-make}"
3080fi
3081
3082rm -rf .tst 2>/dev/null
3083mkdir .tst 2>/dev/null
3084if test -d .tst; then
3085  am__leading_dot=.
3086else
3087  am__leading_dot=_
3088fi
3089rmdir .tst 2>/dev/null
3090
3091# Check whether --enable-silent-rules was given.
3092if test "${enable_silent_rules+set}" = set; then :
3093  enableval=$enable_silent_rules;
3094fi
3095
3096case $enable_silent_rules in # (((
3097  yes) AM_DEFAULT_VERBOSITY=0;;
3098   no) AM_DEFAULT_VERBOSITY=1;;
3099    *) AM_DEFAULT_VERBOSITY=1;;
3100esac
3101am_make=${MAKE-make}
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3103$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3104if ${am_cv_make_support_nested_variables+:} false; then :
3105  $as_echo_n "(cached) " >&6
3106else
3107  if $as_echo 'TRUE=$(BAR$(V))
3108BAR0=false
3109BAR1=true
3110V=1
3111am__doit:
3112	@$(TRUE)
3113.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3114  am_cv_make_support_nested_variables=yes
3115else
3116  am_cv_make_support_nested_variables=no
3117fi
3118fi
3119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3120$as_echo "$am_cv_make_support_nested_variables" >&6; }
3121if test $am_cv_make_support_nested_variables = yes; then
3122    AM_V='$(V)'
3123  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3124else
3125  AM_V=$AM_DEFAULT_VERBOSITY
3126  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3127fi
3128AM_BACKSLASH='\'
3129
3130if test "`cd $srcdir && pwd`" != "`pwd`"; then
3131  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3132  # is not polluted with repeated "-I."
3133  am__isrc=' -I$(srcdir)'
3134  # test to see if srcdir already configured
3135  if test -f $srcdir/config.status; then
3136    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3137  fi
3138fi
3139
3140# test whether we have cygpath
3141if test -z "$CYGPATH_W"; then
3142  if (cygpath --version) >/dev/null 2>/dev/null; then
3143    CYGPATH_W='cygpath -w'
3144  else
3145    CYGPATH_W=echo
3146  fi
3147fi
3148
3149
3150# Define the identity of the package.
3151 PACKAGE='mpl'
3152 VERSION='0.1'
3153
3154
3155cat >>confdefs.h <<_ACEOF
3156#define PACKAGE "$PACKAGE"
3157_ACEOF
3158
3159
3160cat >>confdefs.h <<_ACEOF
3161#define VERSION "$VERSION"
3162_ACEOF
3163
3164# Some tools Automake needs.
3165
3166ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3167
3168
3169AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3170
3171
3172AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3173
3174
3175AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3176
3177
3178MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3179
3180# For better backward compatibility.  To be removed once Automake 1.9.x
3181# dies out for good.  For more background, see:
3182# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3183# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3184mkdir_p='$(MKDIR_P)'
3185
3186# We need awk for the "check" target (and possibly the TAP driver).  The
3187# system "awk" is bad on some platforms.
3188# Always define AMTAR for backward compatibility.  Yes, it's still used
3189# in the wild :-(  We should find a proper way to deprecate it ...
3190AMTAR='$${TAR-tar}'
3191
3192
3193# We'll loop over all known methods to create a tar archive until one works.
3194_am_tools='gnutar  pax cpio none'
3195
3196am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3197
3198
3199
3200
3201
3202
3203# POSIX will say in a future version that running "rm -f" with no argument
3204# is OK; and we want to be able to make that assumption in our Makefile
3205# recipes.  So use an aggressive probe to check that the usage we want is
3206# actually supported "in the wild" to an acceptable degree.
3207# See automake bug#10828.
3208# To make any issue more visible, cause the running configure to be aborted
3209# by default if the 'rm' program in use doesn't match our expectations; the
3210# user can still override this though.
3211if rm -f && rm -fr && rm -rf; then : OK; else
3212  cat >&2 <<'END'
3213Oops!
3214
3215Your 'rm' program seems unable to run without file operands specified
3216on the command line, even when the '-f' option is present.  This is contrary
3217to the behaviour of most rm programs out there, and not conforming with
3218the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3219
3220Please tell bug-automake@gnu.org about your system, including the value
3221of your $PATH and any error possibly output before this message.  This
3222can help us improve future automake versions.
3223
3224END
3225  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3226    echo 'Configuration will proceed anyway, since you have set the' >&2
3227    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3228    echo >&2
3229  else
3230    cat >&2 <<'END'
3231Aborting the configuration process, to ensure you take notice of the issue.
3232
3233You can download and install GNU coreutils to get an 'rm' implementation
3234that behaves properly: <http://www.gnu.org/software/coreutils/>.
3235
3236If you want to complete the configuration process using your problematic
3237'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3238to "yes", and re-run configure.
3239
3240END
3241    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3242  fi
3243fi
3244
3245
3246ac_ext=c
3247ac_cpp='$CPP $CPPFLAGS'
3248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251if test -n "$ac_tool_prefix"; then
3252  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3253set dummy ${ac_tool_prefix}gcc; ac_word=$2
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255$as_echo_n "checking for $ac_word... " >&6; }
3256if ${ac_cv_prog_CC+:} false; then :
3257  $as_echo_n "(cached) " >&6
3258else
3259  if test -n "$CC"; then
3260  ac_cv_prog_CC="$CC" # Let the user override the test.
3261else
3262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263for as_dir in $PATH
3264do
3265  IFS=$as_save_IFS
3266  test -z "$as_dir" && as_dir=.
3267    for ac_exec_ext in '' $ac_executable_extensions; do
3268  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271    break 2
3272  fi
3273done
3274  done
3275IFS=$as_save_IFS
3276
3277fi
3278fi
3279CC=$ac_cv_prog_CC
3280if test -n "$CC"; then
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3282$as_echo "$CC" >&6; }
3283else
3284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285$as_echo "no" >&6; }
3286fi
3287
3288
3289fi
3290if test -z "$ac_cv_prog_CC"; then
3291  ac_ct_CC=$CC
3292  # Extract the first word of "gcc", so it can be a program name with args.
3293set dummy gcc; ac_word=$2
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295$as_echo_n "checking for $ac_word... " >&6; }
3296if ${ac_cv_prog_ac_ct_CC+:} false; then :
3297  $as_echo_n "(cached) " >&6
3298else
3299  if test -n "$ac_ct_CC"; then
3300  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305  IFS=$as_save_IFS
3306  test -z "$as_dir" && as_dir=.
3307    for ac_exec_ext in '' $ac_executable_extensions; do
3308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309    ac_cv_prog_ac_ct_CC="gcc"
3310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311    break 2
3312  fi
3313done
3314  done
3315IFS=$as_save_IFS
3316
3317fi
3318fi
3319ac_ct_CC=$ac_cv_prog_ac_ct_CC
3320if test -n "$ac_ct_CC"; then
3321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3322$as_echo "$ac_ct_CC" >&6; }
3323else
3324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325$as_echo "no" >&6; }
3326fi
3327
3328  if test "x$ac_ct_CC" = x; then
3329    CC=""
3330  else
3331    case $cross_compiling:$ac_tool_warned in
3332yes:)
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3335ac_tool_warned=yes ;;
3336esac
3337    CC=$ac_ct_CC
3338  fi
3339else
3340  CC="$ac_cv_prog_CC"
3341fi
3342
3343if test -z "$CC"; then
3344          if test -n "$ac_tool_prefix"; then
3345    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3346set dummy ${ac_tool_prefix}cc; ac_word=$2
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348$as_echo_n "checking for $ac_word... " >&6; }
3349if ${ac_cv_prog_CC+:} false; then :
3350  $as_echo_n "(cached) " >&6
3351else
3352  if test -n "$CC"; then
3353  ac_cv_prog_CC="$CC" # Let the user override the test.
3354else
3355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358  IFS=$as_save_IFS
3359  test -z "$as_dir" && as_dir=.
3360    for ac_exec_ext in '' $ac_executable_extensions; do
3361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362    ac_cv_prog_CC="${ac_tool_prefix}cc"
3363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364    break 2
3365  fi
3366done
3367  done
3368IFS=$as_save_IFS
3369
3370fi
3371fi
3372CC=$ac_cv_prog_CC
3373if test -n "$CC"; then
3374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375$as_echo "$CC" >&6; }
3376else
3377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378$as_echo "no" >&6; }
3379fi
3380
3381
3382  fi
3383fi
3384if test -z "$CC"; then
3385  # Extract the first word of "cc", so it can be a program name with args.
3386set dummy cc; ac_word=$2
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388$as_echo_n "checking for $ac_word... " >&6; }
3389if ${ac_cv_prog_CC+:} false; then :
3390  $as_echo_n "(cached) " >&6
3391else
3392  if test -n "$CC"; then
3393  ac_cv_prog_CC="$CC" # Let the user override the test.
3394else
3395  ac_prog_rejected=no
3396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397for as_dir in $PATH
3398do
3399  IFS=$as_save_IFS
3400  test -z "$as_dir" && as_dir=.
3401    for ac_exec_ext in '' $ac_executable_extensions; do
3402  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3404       ac_prog_rejected=yes
3405       continue
3406     fi
3407    ac_cv_prog_CC="cc"
3408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409    break 2
3410  fi
3411done
3412  done
3413IFS=$as_save_IFS
3414
3415if test $ac_prog_rejected = yes; then
3416  # We found a bogon in the path, so make sure we never use it.
3417  set dummy $ac_cv_prog_CC
3418  shift
3419  if test $# != 0; then
3420    # We chose a different compiler from the bogus one.
3421    # However, it has the same basename, so the bogon will be chosen
3422    # first if we set CC to just the basename; use the full file name.
3423    shift
3424    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3425  fi
3426fi
3427fi
3428fi
3429CC=$ac_cv_prog_CC
3430if test -n "$CC"; then
3431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432$as_echo "$CC" >&6; }
3433else
3434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435$as_echo "no" >&6; }
3436fi
3437
3438
3439fi
3440if test -z "$CC"; then
3441  if test -n "$ac_tool_prefix"; then
3442  for ac_prog in cl.exe
3443  do
3444    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3445set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447$as_echo_n "checking for $ac_word... " >&6; }
3448if ${ac_cv_prog_CC+:} false; then :
3449  $as_echo_n "(cached) " >&6
3450else
3451  if test -n "$CC"; then
3452  ac_cv_prog_CC="$CC" # Let the user override the test.
3453else
3454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455for as_dir in $PATH
3456do
3457  IFS=$as_save_IFS
3458  test -z "$as_dir" && as_dir=.
3459    for ac_exec_ext in '' $ac_executable_extensions; do
3460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3461    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463    break 2
3464  fi
3465done
3466  done
3467IFS=$as_save_IFS
3468
3469fi
3470fi
3471CC=$ac_cv_prog_CC
3472if test -n "$CC"; then
3473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3474$as_echo "$CC" >&6; }
3475else
3476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477$as_echo "no" >&6; }
3478fi
3479
3480
3481    test -n "$CC" && break
3482  done
3483fi
3484if test -z "$CC"; then
3485  ac_ct_CC=$CC
3486  for ac_prog in cl.exe
3487do
3488  # Extract the first word of "$ac_prog", so it can be a program name with args.
3489set dummy $ac_prog; ac_word=$2
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491$as_echo_n "checking for $ac_word... " >&6; }
3492if ${ac_cv_prog_ac_ct_CC+:} false; then :
3493  $as_echo_n "(cached) " >&6
3494else
3495  if test -n "$ac_ct_CC"; then
3496  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3497else
3498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH
3500do
3501  IFS=$as_save_IFS
3502  test -z "$as_dir" && as_dir=.
3503    for ac_exec_ext in '' $ac_executable_extensions; do
3504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505    ac_cv_prog_ac_ct_CC="$ac_prog"
3506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3507    break 2
3508  fi
3509done
3510  done
3511IFS=$as_save_IFS
3512
3513fi
3514fi
3515ac_ct_CC=$ac_cv_prog_ac_ct_CC
3516if test -n "$ac_ct_CC"; then
3517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3518$as_echo "$ac_ct_CC" >&6; }
3519else
3520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521$as_echo "no" >&6; }
3522fi
3523
3524
3525  test -n "$ac_ct_CC" && break
3526done
3527
3528  if test "x$ac_ct_CC" = x; then
3529    CC=""
3530  else
3531    case $cross_compiling:$ac_tool_warned in
3532yes:)
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535ac_tool_warned=yes ;;
3536esac
3537    CC=$ac_ct_CC
3538  fi
3539fi
3540
3541fi
3542
3543
3544test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546as_fn_error $? "no acceptable C compiler found in \$PATH
3547See \`config.log' for more details" "$LINENO" 5; }
3548
3549# Provide some information about the compiler.
3550$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3551set X $ac_compile
3552ac_compiler=$2
3553for ac_option in --version -v -V -qversion; do
3554  { { ac_try="$ac_compiler $ac_option >&5"
3555case "(($ac_try" in
3556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557  *) ac_try_echo=$ac_try;;
3558esac
3559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560$as_echo "$ac_try_echo"; } >&5
3561  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3562  ac_status=$?
3563  if test -s conftest.err; then
3564    sed '10a\
3565... rest of stderr output deleted ...
3566         10q' conftest.err >conftest.er1
3567    cat conftest.er1 >&5
3568  fi
3569  rm -f conftest.er1 conftest.err
3570  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3571  test $ac_status = 0; }
3572done
3573
3574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575/* end confdefs.h.  */
3576
3577int
3578main ()
3579{
3580
3581  ;
3582  return 0;
3583}
3584_ACEOF
3585ac_clean_files_save=$ac_clean_files
3586ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3587# Try to create an executable without -o first, disregard a.out.
3588# It will help us diagnose broken compilers, and finding out an intuition
3589# of exeext.
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3591$as_echo_n "checking whether the C compiler works... " >&6; }
3592ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3593
3594# The possible output files:
3595ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3596
3597ac_rmfiles=
3598for ac_file in $ac_files
3599do
3600  case $ac_file in
3601    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3602    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3603  esac
3604done
3605rm -f $ac_rmfiles
3606
3607if { { ac_try="$ac_link_default"
3608case "(($ac_try" in
3609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610  *) ac_try_echo=$ac_try;;
3611esac
3612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613$as_echo "$ac_try_echo"; } >&5
3614  (eval "$ac_link_default") 2>&5
3615  ac_status=$?
3616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617  test $ac_status = 0; }; then :
3618  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3619# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3620# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3621# so that the user can short-circuit this test for compilers unknown to
3622# Autoconf.
3623for ac_file in $ac_files ''
3624do
3625  test -f "$ac_file" || continue
3626  case $ac_file in
3627    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3628	;;
3629    [ab].out )
3630	# We found the default executable, but exeext='' is most
3631	# certainly right.
3632	break;;
3633    *.* )
3634	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3635	then :; else
3636	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3637	fi
3638	# We set ac_cv_exeext here because the later test for it is not
3639	# safe: cross compilers may not add the suffix if given an `-o'
3640	# argument, so we may need to know it at that point already.
3641	# Even if this section looks crufty: it has the advantage of
3642	# actually working.
3643	break;;
3644    * )
3645	break;;
3646  esac
3647done
3648test "$ac_cv_exeext" = no && ac_cv_exeext=
3649
3650else
3651  ac_file=''
3652fi
3653if test -z "$ac_file"; then :
3654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655$as_echo "no" >&6; }
3656$as_echo "$as_me: failed program was:" >&5
3657sed 's/^/| /' conftest.$ac_ext >&5
3658
3659{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3661as_fn_error 77 "C compiler cannot create executables
3662See \`config.log' for more details" "$LINENO" 5; }
3663else
3664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3665$as_echo "yes" >&6; }
3666fi
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3668$as_echo_n "checking for C compiler default output file name... " >&6; }
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3670$as_echo "$ac_file" >&6; }
3671ac_exeext=$ac_cv_exeext
3672
3673rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3674ac_clean_files=$ac_clean_files_save
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3676$as_echo_n "checking for suffix of executables... " >&6; }
3677if { { ac_try="$ac_link"
3678case "(($ac_try" in
3679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680  *) ac_try_echo=$ac_try;;
3681esac
3682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683$as_echo "$ac_try_echo"; } >&5
3684  (eval "$ac_link") 2>&5
3685  ac_status=$?
3686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687  test $ac_status = 0; }; then :
3688  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3689# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3690# work properly (i.e., refer to `conftest.exe'), while it won't with
3691# `rm'.
3692for ac_file in conftest.exe conftest conftest.*; do
3693  test -f "$ac_file" || continue
3694  case $ac_file in
3695    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3696    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3697	  break;;
3698    * ) break;;
3699  esac
3700done
3701else
3702  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3705See \`config.log' for more details" "$LINENO" 5; }
3706fi
3707rm -f conftest conftest$ac_cv_exeext
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3709$as_echo "$ac_cv_exeext" >&6; }
3710
3711rm -f conftest.$ac_ext
3712EXEEXT=$ac_cv_exeext
3713ac_exeext=$EXEEXT
3714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715/* end confdefs.h.  */
3716#include <stdio.h>
3717int
3718main ()
3719{
3720FILE *f = fopen ("conftest.out", "w");
3721 return ferror (f) || fclose (f) != 0;
3722
3723  ;
3724  return 0;
3725}
3726_ACEOF
3727ac_clean_files="$ac_clean_files conftest.out"
3728# Check that the compiler produces executables we can run.  If not, either
3729# the compiler is broken, or we cross compile.
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3731$as_echo_n "checking whether we are cross compiling... " >&6; }
3732if test "$cross_compiling" != yes; then
3733  { { ac_try="$ac_link"
3734case "(($ac_try" in
3735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736  *) ac_try_echo=$ac_try;;
3737esac
3738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739$as_echo "$ac_try_echo"; } >&5
3740  (eval "$ac_link") 2>&5
3741  ac_status=$?
3742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743  test $ac_status = 0; }
3744  if { ac_try='./conftest$ac_cv_exeext'
3745  { { case "(($ac_try" in
3746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747  *) ac_try_echo=$ac_try;;
3748esac
3749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750$as_echo "$ac_try_echo"; } >&5
3751  (eval "$ac_try") 2>&5
3752  ac_status=$?
3753  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754  test $ac_status = 0; }; }; then
3755    cross_compiling=no
3756  else
3757    if test "$cross_compiling" = maybe; then
3758	cross_compiling=yes
3759    else
3760	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3762as_fn_error $? "cannot run C compiled programs.
3763If you meant to cross compile, use \`--host'.
3764See \`config.log' for more details" "$LINENO" 5; }
3765    fi
3766  fi
3767fi
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3769$as_echo "$cross_compiling" >&6; }
3770
3771rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3772ac_clean_files=$ac_clean_files_save
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3774$as_echo_n "checking for suffix of object files... " >&6; }
3775if ${ac_cv_objext+:} false; then :
3776  $as_echo_n "(cached) " >&6
3777else
3778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779/* end confdefs.h.  */
3780
3781int
3782main ()
3783{
3784
3785  ;
3786  return 0;
3787}
3788_ACEOF
3789rm -f conftest.o conftest.obj
3790if { { ac_try="$ac_compile"
3791case "(($ac_try" in
3792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793  *) ac_try_echo=$ac_try;;
3794esac
3795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796$as_echo "$ac_try_echo"; } >&5
3797  (eval "$ac_compile") 2>&5
3798  ac_status=$?
3799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800  test $ac_status = 0; }; then :
3801  for ac_file in conftest.o conftest.obj conftest.*; do
3802  test -f "$ac_file" || continue;
3803  case $ac_file in
3804    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3805    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3806       break;;
3807  esac
3808done
3809else
3810  $as_echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3815as_fn_error $? "cannot compute suffix of object files: cannot compile
3816See \`config.log' for more details" "$LINENO" 5; }
3817fi
3818rm -f conftest.$ac_cv_objext conftest.$ac_ext
3819fi
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3821$as_echo "$ac_cv_objext" >&6; }
3822OBJEXT=$ac_cv_objext
3823ac_objext=$OBJEXT
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3825$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3826if ${ac_cv_c_compiler_gnu+:} false; then :
3827  $as_echo_n "(cached) " >&6
3828else
3829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830/* end confdefs.h.  */
3831
3832int
3833main ()
3834{
3835#ifndef __GNUC__
3836       choke me
3837#endif
3838
3839  ;
3840  return 0;
3841}
3842_ACEOF
3843if ac_fn_c_try_compile "$LINENO"; then :
3844  ac_compiler_gnu=yes
3845else
3846  ac_compiler_gnu=no
3847fi
3848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849ac_cv_c_compiler_gnu=$ac_compiler_gnu
3850
3851fi
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3853$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3854if test $ac_compiler_gnu = yes; then
3855  GCC=yes
3856else
3857  GCC=
3858fi
3859ac_test_CFLAGS=${CFLAGS+set}
3860ac_save_CFLAGS=$CFLAGS
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3862$as_echo_n "checking whether $CC accepts -g... " >&6; }
3863if ${ac_cv_prog_cc_g+:} false; then :
3864  $as_echo_n "(cached) " >&6
3865else
3866  ac_save_c_werror_flag=$ac_c_werror_flag
3867   ac_c_werror_flag=yes
3868   ac_cv_prog_cc_g=no
3869   CFLAGS="-g"
3870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h.  */
3872
3873int
3874main ()
3875{
3876
3877  ;
3878  return 0;
3879}
3880_ACEOF
3881if ac_fn_c_try_compile "$LINENO"; then :
3882  ac_cv_prog_cc_g=yes
3883else
3884  CFLAGS=""
3885      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886/* end confdefs.h.  */
3887
3888int
3889main ()
3890{
3891
3892  ;
3893  return 0;
3894}
3895_ACEOF
3896if ac_fn_c_try_compile "$LINENO"; then :
3897
3898else
3899  ac_c_werror_flag=$ac_save_c_werror_flag
3900	 CFLAGS="-g"
3901	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902/* end confdefs.h.  */
3903
3904int
3905main ()
3906{
3907
3908  ;
3909  return 0;
3910}
3911_ACEOF
3912if ac_fn_c_try_compile "$LINENO"; then :
3913  ac_cv_prog_cc_g=yes
3914fi
3915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916fi
3917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918fi
3919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920   ac_c_werror_flag=$ac_save_c_werror_flag
3921fi
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3923$as_echo "$ac_cv_prog_cc_g" >&6; }
3924if test "$ac_test_CFLAGS" = set; then
3925  CFLAGS=$ac_save_CFLAGS
3926elif test $ac_cv_prog_cc_g = yes; then
3927  if test "$GCC" = yes; then
3928    CFLAGS="-g -O2"
3929  else
3930    CFLAGS="-g"
3931  fi
3932else
3933  if test "$GCC" = yes; then
3934    CFLAGS="-O2"
3935  else
3936    CFLAGS=
3937  fi
3938fi
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3940$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3941if ${ac_cv_prog_cc_c89+:} false; then :
3942  $as_echo_n "(cached) " >&6
3943else
3944  ac_cv_prog_cc_c89=no
3945ac_save_CC=$CC
3946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947/* end confdefs.h.  */
3948#include <stdarg.h>
3949#include <stdio.h>
3950struct stat;
3951/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3952struct buf { int x; };
3953FILE * (*rcsopen) (struct buf *, struct stat *, int);
3954static char *e (p, i)
3955     char **p;
3956     int i;
3957{
3958  return p[i];
3959}
3960static char *f (char * (*g) (char **, int), char **p, ...)
3961{
3962  char *s;
3963  va_list v;
3964  va_start (v,p);
3965  s = g (p, va_arg (v,int));
3966  va_end (v);
3967  return s;
3968}
3969
3970/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3971   function prototypes and stuff, but not '\xHH' hex character constants.
3972   These don't provoke an error unfortunately, instead are silently treated
3973   as 'x'.  The following induces an error, until -std is added to get
3974   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3975   array size at least.  It's necessary to write '\x00'==0 to get something
3976   that's true only with -std.  */
3977int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3978
3979/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3980   inside strings and character constants.  */
3981#define FOO(x) 'x'
3982int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3983
3984int test (int i, double x);
3985struct s1 {int (*f) (int a);};
3986struct s2 {int (*f) (double a);};
3987int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3988int argc;
3989char **argv;
3990int
3991main ()
3992{
3993return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3994  ;
3995  return 0;
3996}
3997_ACEOF
3998for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3999	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4000do
4001  CC="$ac_save_CC $ac_arg"
4002  if ac_fn_c_try_compile "$LINENO"; then :
4003  ac_cv_prog_cc_c89=$ac_arg
4004fi
4005rm -f core conftest.err conftest.$ac_objext
4006  test "x$ac_cv_prog_cc_c89" != "xno" && break
4007done
4008rm -f conftest.$ac_ext
4009CC=$ac_save_CC
4010
4011fi
4012# AC_CACHE_VAL
4013case "x$ac_cv_prog_cc_c89" in
4014  x)
4015    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4016$as_echo "none needed" >&6; } ;;
4017  xno)
4018    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4019$as_echo "unsupported" >&6; } ;;
4020  *)
4021    CC="$CC $ac_cv_prog_cc_c89"
4022    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4023$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4024esac
4025if test "x$ac_cv_prog_cc_c89" != xno; then :
4026
4027fi
4028
4029ac_ext=c
4030ac_cpp='$CPP $CPPFLAGS'
4031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4033ac_compiler_gnu=$ac_cv_c_compiler_gnu
4034
4035ac_ext=c
4036ac_cpp='$CPP $CPPFLAGS'
4037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4041$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4042if ${am_cv_prog_cc_c_o+:} false; then :
4043  $as_echo_n "(cached) " >&6
4044else
4045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046/* end confdefs.h.  */
4047
4048int
4049main ()
4050{
4051
4052  ;
4053  return 0;
4054}
4055_ACEOF
4056  # Make sure it works both with $CC and with simple cc.
4057  # Following AC_PROG_CC_C_O, we do the test twice because some
4058  # compilers refuse to overwrite an existing .o file with -o,
4059  # though they will create one.
4060  am_cv_prog_cc_c_o=yes
4061  for am_i in 1 2; do
4062    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4063   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); } \
4067         && test -f conftest2.$ac_objext; then
4068      : OK
4069    else
4070      am_cv_prog_cc_c_o=no
4071      break
4072    fi
4073  done
4074  rm -f core conftest*
4075  unset am_i
4076fi
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4078$as_echo "$am_cv_prog_cc_c_o" >&6; }
4079if test "$am_cv_prog_cc_c_o" != yes; then
4080   # Losing compiler, so override with the script.
4081   # FIXME: It is wrong to rewrite CC.
4082   # But if we don't then we get into trouble of one sort or another.
4083   # A longer-term fix would be to have automake use am__CC in this case,
4084   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4085   CC="$am_aux_dir/compile $CC"
4086fi
4087ac_ext=c
4088ac_cpp='$CPP $CPPFLAGS'
4089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092
4093DEPDIR="${am__leading_dot}deps"
4094
4095ac_config_commands="$ac_config_commands depfiles"
4096
4097
4098am_make=${MAKE-make}
4099cat > confinc << 'END'
4100am__doit:
4101	@echo this is the am__doit target
4102.PHONY: am__doit
4103END
4104# If we don't find an include directive, just comment out the code.
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4106$as_echo_n "checking for style of include used by $am_make... " >&6; }
4107am__include="#"
4108am__quote=
4109_am_result=none
4110# First try GNU make style include.
4111echo "include confinc" > confmf
4112# Ignore all kinds of additional output from 'make'.
4113case `$am_make -s -f confmf 2> /dev/null` in #(
4114*the\ am__doit\ target*)
4115  am__include=include
4116  am__quote=
4117  _am_result=GNU
4118  ;;
4119esac
4120# Now try BSD make style include.
4121if test "$am__include" = "#"; then
4122   echo '.include "confinc"' > confmf
4123   case `$am_make -s -f confmf 2> /dev/null` in #(
4124   *the\ am__doit\ target*)
4125     am__include=.include
4126     am__quote="\""
4127     _am_result=BSD
4128     ;;
4129   esac
4130fi
4131
4132
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4134$as_echo "$_am_result" >&6; }
4135rm -f confinc confmf
4136
4137# Check whether --enable-dependency-tracking was given.
4138if test "${enable_dependency_tracking+set}" = set; then :
4139  enableval=$enable_dependency_tracking;
4140fi
4141
4142if test "x$enable_dependency_tracking" != xno; then
4143  am_depcomp="$ac_aux_dir/depcomp"
4144  AMDEPBACKSLASH='\'
4145  am__nodep='_no'
4146fi
4147 if test "x$enable_dependency_tracking" != xno; then
4148  AMDEP_TRUE=
4149  AMDEP_FALSE='#'
4150else
4151  AMDEP_TRUE='#'
4152  AMDEP_FALSE=
4153fi
4154
4155
4156
4157depcc="$CC"   am_compiler_list=
4158
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4160$as_echo_n "checking dependency style of $depcc... " >&6; }
4161if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4162  $as_echo_n "(cached) " >&6
4163else
4164  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4165  # We make a subdir and do the tests there.  Otherwise we can end up
4166  # making bogus files that we don't know about and never remove.  For
4167  # instance it was reported that on HP-UX the gcc test will end up
4168  # making a dummy file named 'D' -- because '-MD' means "put the output
4169  # in D".
4170  rm -rf conftest.dir
4171  mkdir conftest.dir
4172  # Copy depcomp to subdir because otherwise we won't find it if we're
4173  # using a relative directory.
4174  cp "$am_depcomp" conftest.dir
4175  cd conftest.dir
4176  # We will build objects and dependencies in a subdirectory because
4177  # it helps to detect inapplicable dependency modes.  For instance
4178  # both Tru64's cc and ICC support -MD to output dependencies as a
4179  # side effect of compilation, but ICC will put the dependencies in
4180  # the current directory while Tru64 will put them in the object
4181  # directory.
4182  mkdir sub
4183
4184  am_cv_CC_dependencies_compiler_type=none
4185  if test "$am_compiler_list" = ""; then
4186     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4187  fi
4188  am__universal=false
4189  case " $depcc " in #(
4190     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4191     esac
4192
4193  for depmode in $am_compiler_list; do
4194    # Setup a source with many dependencies, because some compilers
4195    # like to wrap large dependency lists on column 80 (with \), and
4196    # we should not choose a depcomp mode which is confused by this.
4197    #
4198    # We need to recreate these files for each test, as the compiler may
4199    # overwrite some of them when testing with obscure command lines.
4200    # This happens at least with the AIX C compiler.
4201    : > sub/conftest.c
4202    for i in 1 2 3 4 5 6; do
4203      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4204      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4205      # Solaris 10 /bin/sh.
4206      echo '/* dummy */' > sub/conftst$i.h
4207    done
4208    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4209
4210    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4211    # mode.  It turns out that the SunPro C++ compiler does not properly
4212    # handle '-M -o', and we need to detect this.  Also, some Intel
4213    # versions had trouble with output in subdirs.
4214    am__obj=sub/conftest.${OBJEXT-o}
4215    am__minus_obj="-o $am__obj"
4216    case $depmode in
4217    gcc)
4218      # This depmode causes a compiler race in universal mode.
4219      test "$am__universal" = false || continue
4220      ;;
4221    nosideeffect)
4222      # After this tag, mechanisms are not by side-effect, so they'll
4223      # only be used when explicitly requested.
4224      if test "x$enable_dependency_tracking" = xyes; then
4225	continue
4226      else
4227	break
4228      fi
4229      ;;
4230    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4231      # This compiler won't grok '-c -o', but also, the minuso test has
4232      # not run yet.  These depmodes are late enough in the game, and
4233      # so weak that their functioning should not be impacted.
4234      am__obj=conftest.${OBJEXT-o}
4235      am__minus_obj=
4236      ;;
4237    none) break ;;
4238    esac
4239    if depmode=$depmode \
4240       source=sub/conftest.c object=$am__obj \
4241       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4242       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4243         >/dev/null 2>conftest.err &&
4244       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4245       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4246       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4247       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4248      # icc doesn't choke on unknown options, it will just issue warnings
4249      # or remarks (even with -Werror).  So we grep stderr for any message
4250      # that says an option was ignored or not supported.
4251      # When given -MP, icc 7.0 and 7.1 complain thusly:
4252      #   icc: Command line warning: ignoring option '-M'; no argument required
4253      # The diagnosis changed in icc 8.0:
4254      #   icc: Command line remark: option '-MP' not supported
4255      if (grep 'ignoring option' conftest.err ||
4256          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4257        am_cv_CC_dependencies_compiler_type=$depmode
4258        break
4259      fi
4260    fi
4261  done
4262
4263  cd ..
4264  rm -rf conftest.dir
4265else
4266  am_cv_CC_dependencies_compiler_type=none
4267fi
4268
4269fi
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4271$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4272CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4273
4274 if
4275  test "x$enable_dependency_tracking" != xno \
4276  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4277  am__fastdepCC_TRUE=
4278  am__fastdepCC_FALSE='#'
4279else
4280  am__fastdepCC_TRUE='#'
4281  am__fastdepCC_FALSE=
4282fi
4283
4284
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4286$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4287if ${ac_cv_prog_cc_c99+:} false; then :
4288  $as_echo_n "(cached) " >&6
4289else
4290  ac_cv_prog_cc_c99=no
4291ac_save_CC=$CC
4292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h.  */
4294#include <stdarg.h>
4295#include <stdbool.h>
4296#include <stdlib.h>
4297#include <wchar.h>
4298#include <stdio.h>
4299
4300// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4301#define debug(...) fprintf (stderr, __VA_ARGS__)
4302#define showlist(...) puts (#__VA_ARGS__)
4303#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4304static void
4305test_varargs_macros (void)
4306{
4307  int x = 1234;
4308  int y = 5678;
4309  debug ("Flag");
4310  debug ("X = %d\n", x);
4311  showlist (The first, second, and third items.);
4312  report (x>y, "x is %d but y is %d", x, y);
4313}
4314
4315// Check long long types.
4316#define BIG64 18446744073709551615ull
4317#define BIG32 4294967295ul
4318#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4319#if !BIG_OK
4320  your preprocessor is broken;
4321#endif
4322#if BIG_OK
4323#else
4324  your preprocessor is broken;
4325#endif
4326static long long int bignum = -9223372036854775807LL;
4327static unsigned long long int ubignum = BIG64;
4328
4329struct incomplete_array
4330{
4331  int datasize;
4332  double data[];
4333};
4334
4335struct named_init {
4336  int number;
4337  const wchar_t *name;
4338  double average;
4339};
4340
4341typedef const char *ccp;
4342
4343static inline int
4344test_restrict (ccp restrict text)
4345{
4346  // See if C++-style comments work.
4347  // Iterate through items via the restricted pointer.
4348  // Also check for declarations in for loops.
4349  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4350    continue;
4351  return 0;
4352}
4353
4354// Check varargs and va_copy.
4355static void
4356test_varargs (const char *format, ...)
4357{
4358  va_list args;
4359  va_start (args, format);
4360  va_list args_copy;
4361  va_copy (args_copy, args);
4362
4363  const char *str;
4364  int number;
4365  float fnumber;
4366
4367  while (*format)
4368    {
4369      switch (*format++)
4370	{
4371	case 's': // string
4372	  str = va_arg (args_copy, const char *);
4373	  break;
4374	case 'd': // int
4375	  number = va_arg (args_copy, int);
4376	  break;
4377	case 'f': // float
4378	  fnumber = va_arg (args_copy, double);
4379	  break;
4380	default:
4381	  break;
4382	}
4383    }
4384  va_end (args_copy);
4385  va_end (args);
4386}
4387
4388int
4389main ()
4390{
4391
4392  // Check bool.
4393  _Bool success = false;
4394
4395  // Check restrict.
4396  if (test_restrict ("String literal") == 0)
4397    success = true;
4398  char *restrict newvar = "Another string";
4399
4400  // Check varargs.
4401  test_varargs ("s, d' f .", "string", 65, 34.234);
4402  test_varargs_macros ();
4403
4404  // Check flexible array members.
4405  struct incomplete_array *ia =
4406    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4407  ia->datasize = 10;
4408  for (int i = 0; i < ia->datasize; ++i)
4409    ia->data[i] = i * 1.234;
4410
4411  // Check named initializers.
4412  struct named_init ni = {
4413    .number = 34,
4414    .name = L"Test wide string",
4415    .average = 543.34343,
4416  };
4417
4418  ni.number = 58;
4419
4420  int dynamic_array[ni.number];
4421  dynamic_array[ni.number - 1] = 543;
4422
4423  // work around unused variable warnings
4424  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4425	  || dynamic_array[ni.number - 1] != 543);
4426
4427  ;
4428  return 0;
4429}
4430_ACEOF
4431for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4432do
4433  CC="$ac_save_CC $ac_arg"
4434  if ac_fn_c_try_compile "$LINENO"; then :
4435  ac_cv_prog_cc_c99=$ac_arg
4436fi
4437rm -f core conftest.err conftest.$ac_objext
4438  test "x$ac_cv_prog_cc_c99" != "xno" && break
4439done
4440rm -f conftest.$ac_ext
4441CC=$ac_save_CC
4442
4443fi
4444# AC_CACHE_VAL
4445case "x$ac_cv_prog_cc_c99" in
4446  x)
4447    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4448$as_echo "none needed" >&6; } ;;
4449  xno)
4450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4451$as_echo "unsupported" >&6; } ;;
4452  *)
4453    CC="$CC $ac_cv_prog_cc_c99"
4454    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4455$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4456esac
4457if test "x$ac_cv_prog_cc_c99" != xno; then :
4458
4459fi
4460
4461
4462
4463
4464
4465ac_ext=c
4466ac_cpp='$CPP $CPPFLAGS'
4467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4471$as_echo_n "checking how to run the C preprocessor... " >&6; }
4472# On Suns, sometimes $CPP names a directory.
4473if test -n "$CPP" && test -d "$CPP"; then
4474  CPP=
4475fi
4476if test -z "$CPP"; then
4477  if ${ac_cv_prog_CPP+:} false; then :
4478  $as_echo_n "(cached) " >&6
4479else
4480      # Double quotes because CPP needs to be expanded
4481    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4482    do
4483      ac_preproc_ok=false
4484for ac_c_preproc_warn_flag in '' yes
4485do
4486  # Use a header file that comes with gcc, so configuring glibc
4487  # with a fresh cross-compiler works.
4488  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4489  # <limits.h> exists even on freestanding compilers.
4490  # On the NeXT, cc -E runs the code through the compiler's parser,
4491  # not just through cpp. "Syntax error" is here to catch this case.
4492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493/* end confdefs.h.  */
4494#ifdef __STDC__
4495# include <limits.h>
4496#else
4497# include <assert.h>
4498#endif
4499		     Syntax error
4500_ACEOF
4501if ac_fn_c_try_cpp "$LINENO"; then :
4502
4503else
4504  # Broken: fails on valid input.
4505continue
4506fi
4507rm -f conftest.err conftest.i conftest.$ac_ext
4508
4509  # OK, works on sane cases.  Now check whether nonexistent headers
4510  # can be detected and how.
4511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512/* end confdefs.h.  */
4513#include <ac_nonexistent.h>
4514_ACEOF
4515if ac_fn_c_try_cpp "$LINENO"; then :
4516  # Broken: success on invalid input.
4517continue
4518else
4519  # Passes both tests.
4520ac_preproc_ok=:
4521break
4522fi
4523rm -f conftest.err conftest.i conftest.$ac_ext
4524
4525done
4526# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4527rm -f conftest.i conftest.err conftest.$ac_ext
4528if $ac_preproc_ok; then :
4529  break
4530fi
4531
4532    done
4533    ac_cv_prog_CPP=$CPP
4534
4535fi
4536  CPP=$ac_cv_prog_CPP
4537else
4538  ac_cv_prog_CPP=$CPP
4539fi
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4541$as_echo "$CPP" >&6; }
4542ac_preproc_ok=false
4543for ac_c_preproc_warn_flag in '' yes
4544do
4545  # Use a header file that comes with gcc, so configuring glibc
4546  # with a fresh cross-compiler works.
4547  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4548  # <limits.h> exists even on freestanding compilers.
4549  # On the NeXT, cc -E runs the code through the compiler's parser,
4550  # not just through cpp. "Syntax error" is here to catch this case.
4551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552/* end confdefs.h.  */
4553#ifdef __STDC__
4554# include <limits.h>
4555#else
4556# include <assert.h>
4557#endif
4558		     Syntax error
4559_ACEOF
4560if ac_fn_c_try_cpp "$LINENO"; then :
4561
4562else
4563  # Broken: fails on valid input.
4564continue
4565fi
4566rm -f conftest.err conftest.i conftest.$ac_ext
4567
4568  # OK, works on sane cases.  Now check whether nonexistent headers
4569  # can be detected and how.
4570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571/* end confdefs.h.  */
4572#include <ac_nonexistent.h>
4573_ACEOF
4574if ac_fn_c_try_cpp "$LINENO"; then :
4575  # Broken: success on invalid input.
4576continue
4577else
4578  # Passes both tests.
4579ac_preproc_ok=:
4580break
4581fi
4582rm -f conftest.err conftest.i conftest.$ac_ext
4583
4584done
4585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4586rm -f conftest.i conftest.err conftest.$ac_ext
4587if $ac_preproc_ok; then :
4588
4589else
4590  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4592as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4593See \`config.log' for more details" "$LINENO" 5; }
4594fi
4595
4596ac_ext=c
4597ac_cpp='$CPP $CPPFLAGS'
4598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600ac_compiler_gnu=$ac_cv_c_compiler_gnu
4601
4602
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4604$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4605if ${ac_cv_path_GREP+:} false; then :
4606  $as_echo_n "(cached) " >&6
4607else
4608  if test -z "$GREP"; then
4609  ac_path_GREP_found=false
4610  # Loop through the user's path and test for each of PROGNAME-LIST
4611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4613do
4614  IFS=$as_save_IFS
4615  test -z "$as_dir" && as_dir=.
4616    for ac_prog in grep ggrep; do
4617    for ac_exec_ext in '' $ac_executable_extensions; do
4618      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4619      as_fn_executable_p "$ac_path_GREP" || continue
4620# Check for GNU ac_path_GREP and select it if it is found.
4621  # Check for GNU $ac_path_GREP
4622case `"$ac_path_GREP" --version 2>&1` in
4623*GNU*)
4624  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4625*)
4626  ac_count=0
4627  $as_echo_n 0123456789 >"conftest.in"
4628  while :
4629  do
4630    cat "conftest.in" "conftest.in" >"conftest.tmp"
4631    mv "conftest.tmp" "conftest.in"
4632    cp "conftest.in" "conftest.nl"
4633    $as_echo 'GREP' >> "conftest.nl"
4634    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4635    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4636    as_fn_arith $ac_count + 1 && ac_count=$as_val
4637    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4638      # Best one so far, save it but keep looking for a better one
4639      ac_cv_path_GREP="$ac_path_GREP"
4640      ac_path_GREP_max=$ac_count
4641    fi
4642    # 10*(2^10) chars as input seems more than enough
4643    test $ac_count -gt 10 && break
4644  done
4645  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4646esac
4647
4648      $ac_path_GREP_found && break 3
4649    done
4650  done
4651  done
4652IFS=$as_save_IFS
4653  if test -z "$ac_cv_path_GREP"; then
4654    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4655  fi
4656else
4657  ac_cv_path_GREP=$GREP
4658fi
4659
4660fi
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4662$as_echo "$ac_cv_path_GREP" >&6; }
4663 GREP="$ac_cv_path_GREP"
4664
4665
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4667$as_echo_n "checking for egrep... " >&6; }
4668if ${ac_cv_path_EGREP+:} false; then :
4669  $as_echo_n "(cached) " >&6
4670else
4671  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4672   then ac_cv_path_EGREP="$GREP -E"
4673   else
4674     if test -z "$EGREP"; then
4675  ac_path_EGREP_found=false
4676  # Loop through the user's path and test for each of PROGNAME-LIST
4677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4679do
4680  IFS=$as_save_IFS
4681  test -z "$as_dir" && as_dir=.
4682    for ac_prog in egrep; do
4683    for ac_exec_ext in '' $ac_executable_extensions; do
4684      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4685      as_fn_executable_p "$ac_path_EGREP" || continue
4686# Check for GNU ac_path_EGREP and select it if it is found.
4687  # Check for GNU $ac_path_EGREP
4688case `"$ac_path_EGREP" --version 2>&1` in
4689*GNU*)
4690  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4691*)
4692  ac_count=0
4693  $as_echo_n 0123456789 >"conftest.in"
4694  while :
4695  do
4696    cat "conftest.in" "conftest.in" >"conftest.tmp"
4697    mv "conftest.tmp" "conftest.in"
4698    cp "conftest.in" "conftest.nl"
4699    $as_echo 'EGREP' >> "conftest.nl"
4700    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4701    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4702    as_fn_arith $ac_count + 1 && ac_count=$as_val
4703    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4704      # Best one so far, save it but keep looking for a better one
4705      ac_cv_path_EGREP="$ac_path_EGREP"
4706      ac_path_EGREP_max=$ac_count
4707    fi
4708    # 10*(2^10) chars as input seems more than enough
4709    test $ac_count -gt 10 && break
4710  done
4711  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4712esac
4713
4714      $ac_path_EGREP_found && break 3
4715    done
4716  done
4717  done
4718IFS=$as_save_IFS
4719  if test -z "$ac_cv_path_EGREP"; then
4720    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4721  fi
4722else
4723  ac_cv_path_EGREP=$EGREP
4724fi
4725
4726   fi
4727fi
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4729$as_echo "$ac_cv_path_EGREP" >&6; }
4730 EGREP="$ac_cv_path_EGREP"
4731
4732
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4734$as_echo_n "checking for ANSI C header files... " >&6; }
4735if ${ac_cv_header_stdc+:} false; then :
4736  $as_echo_n "(cached) " >&6
4737else
4738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h.  */
4740#include <stdlib.h>
4741#include <stdarg.h>
4742#include <string.h>
4743#include <float.h>
4744
4745int
4746main ()
4747{
4748
4749  ;
4750  return 0;
4751}
4752_ACEOF
4753if ac_fn_c_try_compile "$LINENO"; then :
4754  ac_cv_header_stdc=yes
4755else
4756  ac_cv_header_stdc=no
4757fi
4758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759
4760if test $ac_cv_header_stdc = yes; then
4761  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763/* end confdefs.h.  */
4764#include <string.h>
4765
4766_ACEOF
4767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768  $EGREP "memchr" >/dev/null 2>&1; then :
4769
4770else
4771  ac_cv_header_stdc=no
4772fi
4773rm -f conftest*
4774
4775fi
4776
4777if test $ac_cv_header_stdc = yes; then
4778  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h.  */
4781#include <stdlib.h>
4782
4783_ACEOF
4784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785  $EGREP "free" >/dev/null 2>&1; then :
4786
4787else
4788  ac_cv_header_stdc=no
4789fi
4790rm -f conftest*
4791
4792fi
4793
4794if test $ac_cv_header_stdc = yes; then
4795  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4796  if test "$cross_compiling" = yes; then :
4797  :
4798else
4799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800/* end confdefs.h.  */
4801#include <ctype.h>
4802#include <stdlib.h>
4803#if ((' ' & 0x0FF) == 0x020)
4804# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4805# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4806#else
4807# define ISLOWER(c) \
4808		   (('a' <= (c) && (c) <= 'i') \
4809		     || ('j' <= (c) && (c) <= 'r') \
4810		     || ('s' <= (c) && (c) <= 'z'))
4811# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4812#endif
4813
4814#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4815int
4816main ()
4817{
4818  int i;
4819  for (i = 0; i < 256; i++)
4820    if (XOR (islower (i), ISLOWER (i))
4821	|| toupper (i) != TOUPPER (i))
4822      return 2;
4823  return 0;
4824}
4825_ACEOF
4826if ac_fn_c_try_run "$LINENO"; then :
4827
4828else
4829  ac_cv_header_stdc=no
4830fi
4831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4832  conftest.$ac_objext conftest.beam conftest.$ac_ext
4833fi
4834
4835fi
4836fi
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4838$as_echo "$ac_cv_header_stdc" >&6; }
4839if test $ac_cv_header_stdc = yes; then
4840
4841$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4842
4843fi
4844
4845# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4846for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4847		  inttypes.h stdint.h unistd.h
4848do :
4849  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4850ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4851"
4852if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4853  cat >>confdefs.h <<_ACEOF
4854#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4855_ACEOF
4856
4857fi
4858
4859done
4860
4861
4862
4863  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4864if test "x$ac_cv_header_minix_config_h" = xyes; then :
4865  MINIX=yes
4866else
4867  MINIX=
4868fi
4869
4870
4871  if test "$MINIX" = yes; then
4872
4873$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4874
4875
4876$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4877
4878
4879$as_echo "#define _MINIX 1" >>confdefs.h
4880
4881  fi
4882
4883
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4885$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4886if ${ac_cv_safe_to_define___extensions__+:} false; then :
4887  $as_echo_n "(cached) " >&6
4888else
4889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890/* end confdefs.h.  */
4891
4892#         define __EXTENSIONS__ 1
4893          $ac_includes_default
4894int
4895main ()
4896{
4897
4898  ;
4899  return 0;
4900}
4901_ACEOF
4902if ac_fn_c_try_compile "$LINENO"; then :
4903  ac_cv_safe_to_define___extensions__=yes
4904else
4905  ac_cv_safe_to_define___extensions__=no
4906fi
4907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908fi
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4910$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4911  test $ac_cv_safe_to_define___extensions__ = yes &&
4912    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4913
4914  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4915
4916  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4917
4918  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4919
4920  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4921
4922
4923
4924if test -n "$ac_tool_prefix"; then
4925  for ac_prog in ar lib "link -lib"
4926  do
4927    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4928set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930$as_echo_n "checking for $ac_word... " >&6; }
4931if ${ac_cv_prog_AR+:} false; then :
4932  $as_echo_n "(cached) " >&6
4933else
4934  if test -n "$AR"; then
4935  ac_cv_prog_AR="$AR" # Let the user override the test.
4936else
4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940  IFS=$as_save_IFS
4941  test -z "$as_dir" && as_dir=.
4942    for ac_exec_ext in '' $ac_executable_extensions; do
4943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946    break 2
4947  fi
4948done
4949  done
4950IFS=$as_save_IFS
4951
4952fi
4953fi
4954AR=$ac_cv_prog_AR
4955if test -n "$AR"; then
4956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4957$as_echo "$AR" >&6; }
4958else
4959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960$as_echo "no" >&6; }
4961fi
4962
4963
4964    test -n "$AR" && break
4965  done
4966fi
4967if test -z "$AR"; then
4968  ac_ct_AR=$AR
4969  for ac_prog in ar lib "link -lib"
4970do
4971  # Extract the first word of "$ac_prog", so it can be a program name with args.
4972set dummy $ac_prog; ac_word=$2
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974$as_echo_n "checking for $ac_word... " >&6; }
4975if ${ac_cv_prog_ac_ct_AR+:} false; then :
4976  $as_echo_n "(cached) " >&6
4977else
4978  if test -n "$ac_ct_AR"; then
4979  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4980else
4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982for as_dir in $PATH
4983do
4984  IFS=$as_save_IFS
4985  test -z "$as_dir" && as_dir=.
4986    for ac_exec_ext in '' $ac_executable_extensions; do
4987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988    ac_cv_prog_ac_ct_AR="$ac_prog"
4989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990    break 2
4991  fi
4992done
4993  done
4994IFS=$as_save_IFS
4995
4996fi
4997fi
4998ac_ct_AR=$ac_cv_prog_ac_ct_AR
4999if test -n "$ac_ct_AR"; then
5000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5001$as_echo "$ac_ct_AR" >&6; }
5002else
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004$as_echo "no" >&6; }
5005fi
5006
5007
5008  test -n "$ac_ct_AR" && break
5009done
5010
5011  if test "x$ac_ct_AR" = x; then
5012    AR="false"
5013  else
5014    case $cross_compiling:$ac_tool_warned in
5015yes:)
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5018ac_tool_warned=yes ;;
5019esac
5020    AR=$ac_ct_AR
5021  fi
5022fi
5023
5024: ${AR=ar}
5025
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5027$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5028if ${am_cv_ar_interface+:} false; then :
5029  $as_echo_n "(cached) " >&6
5030else
5031  ac_ext=c
5032ac_cpp='$CPP $CPPFLAGS'
5033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035ac_compiler_gnu=$ac_cv_c_compiler_gnu
5036
5037   am_cv_ar_interface=ar
5038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039/* end confdefs.h.  */
5040int some_variable = 0;
5041_ACEOF
5042if ac_fn_c_try_compile "$LINENO"; then :
5043  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5044      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5045  (eval $am_ar_try) 2>&5
5046  ac_status=$?
5047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048  test $ac_status = 0; }
5049      if test "$ac_status" -eq 0; then
5050        am_cv_ar_interface=ar
5051      else
5052        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5053        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5054  (eval $am_ar_try) 2>&5
5055  ac_status=$?
5056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5057  test $ac_status = 0; }
5058        if test "$ac_status" -eq 0; then
5059          am_cv_ar_interface=lib
5060        else
5061          am_cv_ar_interface=unknown
5062        fi
5063      fi
5064      rm -f conftest.lib libconftest.a
5065
5066fi
5067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5068   ac_ext=c
5069ac_cpp='$CPP $CPPFLAGS'
5070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073
5074fi
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5076$as_echo "$am_cv_ar_interface" >&6; }
5077
5078case $am_cv_ar_interface in
5079ar)
5080  ;;
5081lib)
5082  # Microsoft lib, so override with the ar-lib wrapper script.
5083  # FIXME: It is wrong to rewrite AR.
5084  # But if we don't then we get into trouble of one sort or another.
5085  # A longer-term fix would be to have automake use am__AR in this case,
5086  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5087  # similar.
5088  AR="$am_aux_dir/ar-lib $AR"
5089  ;;
5090unknown)
5091  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5092  ;;
5093esac
5094
5095
5096
5097
5098# Bug in libtool adds -O2 and -g by default
5099
5100	if test -z "${pac_save_CFLAGS_nesting}" ; then
5101	   pac_save_CFLAGS_nesting=0
5102	fi
5103	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
5104	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
5105
5106case `pwd` in
5107  *\ * | *\	*)
5108    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5109$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5110esac
5111
5112
5113
5114macro_version='2.4.6'
5115macro_revision='2.4.6'
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129ltmain=$ac_aux_dir/ltmain.sh
5130
5131# Make sure we can run config.sub.
5132$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5133  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5134
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5136$as_echo_n "checking build system type... " >&6; }
5137if ${ac_cv_build+:} false; then :
5138  $as_echo_n "(cached) " >&6
5139else
5140  ac_build_alias=$build_alias
5141test "x$ac_build_alias" = x &&
5142  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5143test "x$ac_build_alias" = x &&
5144  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5145ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5146  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5147
5148fi
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5150$as_echo "$ac_cv_build" >&6; }
5151case $ac_cv_build in
5152*-*-*) ;;
5153*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5154esac
5155build=$ac_cv_build
5156ac_save_IFS=$IFS; IFS='-'
5157set x $ac_cv_build
5158shift
5159build_cpu=$1
5160build_vendor=$2
5161shift; shift
5162# Remember, the first character of IFS is used to create $*,
5163# except with old shells:
5164build_os=$*
5165IFS=$ac_save_IFS
5166case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5167
5168
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5170$as_echo_n "checking host system type... " >&6; }
5171if ${ac_cv_host+:} false; then :
5172  $as_echo_n "(cached) " >&6
5173else
5174  if test "x$host_alias" = x; then
5175  ac_cv_host=$ac_cv_build
5176else
5177  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5178    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5179fi
5180
5181fi
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5183$as_echo "$ac_cv_host" >&6; }
5184case $ac_cv_host in
5185*-*-*) ;;
5186*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5187esac
5188host=$ac_cv_host
5189ac_save_IFS=$IFS; IFS='-'
5190set x $ac_cv_host
5191shift
5192host_cpu=$1
5193host_vendor=$2
5194shift; shift
5195# Remember, the first character of IFS is used to create $*,
5196# except with old shells:
5197host_os=$*
5198IFS=$ac_save_IFS
5199case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5200
5201
5202# Backslashify metacharacters that are still active within
5203# double-quoted strings.
5204sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5205
5206# Same as above, but do not quote variable references.
5207double_quote_subst='s/\(["`\\]\)/\\\1/g'
5208
5209# Sed substitution to delay expansion of an escaped shell variable in a
5210# double_quote_subst'ed string.
5211delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5212
5213# Sed substitution to delay expansion of an escaped single quote.
5214delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5215
5216# Sed substitution to avoid accidental globbing in evaled expressions
5217no_glob_subst='s/\*/\\\*/g'
5218
5219ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5220ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5221ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5222
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5224$as_echo_n "checking how to print strings... " >&6; }
5225# Test print first, because it will be a builtin if present.
5226if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5227   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5228  ECHO='print -r --'
5229elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5230  ECHO='printf %s\n'
5231else
5232  # Use this function as a fallback that always works.
5233  func_fallback_echo ()
5234  {
5235    eval 'cat <<_LTECHO_EOF
5236$1
5237_LTECHO_EOF'
5238  }
5239  ECHO='func_fallback_echo'
5240fi
5241
5242# func_echo_all arg...
5243# Invoke $ECHO with all args, space-separated.
5244func_echo_all ()
5245{
5246    $ECHO ""
5247}
5248
5249case $ECHO in
5250  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5251$as_echo "printf" >&6; } ;;
5252  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5253$as_echo "print -r" >&6; } ;;
5254  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5255$as_echo "cat" >&6; } ;;
5256esac
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5272$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5273if ${ac_cv_path_SED+:} false; then :
5274  $as_echo_n "(cached) " >&6
5275else
5276            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5277     for ac_i in 1 2 3 4 5 6 7; do
5278       ac_script="$ac_script$as_nl$ac_script"
5279     done
5280     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5281     { ac_script=; unset ac_script;}
5282     if test -z "$SED"; then
5283  ac_path_SED_found=false
5284  # Loop through the user's path and test for each of PROGNAME-LIST
5285  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286for as_dir in $PATH
5287do
5288  IFS=$as_save_IFS
5289  test -z "$as_dir" && as_dir=.
5290    for ac_prog in sed gsed; do
5291    for ac_exec_ext in '' $ac_executable_extensions; do
5292      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5293      as_fn_executable_p "$ac_path_SED" || continue
5294# Check for GNU ac_path_SED and select it if it is found.
5295  # Check for GNU $ac_path_SED
5296case `"$ac_path_SED" --version 2>&1` in
5297*GNU*)
5298  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5299*)
5300  ac_count=0
5301  $as_echo_n 0123456789 >"conftest.in"
5302  while :
5303  do
5304    cat "conftest.in" "conftest.in" >"conftest.tmp"
5305    mv "conftest.tmp" "conftest.in"
5306    cp "conftest.in" "conftest.nl"
5307    $as_echo '' >> "conftest.nl"
5308    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5309    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5310    as_fn_arith $ac_count + 1 && ac_count=$as_val
5311    if test $ac_count -gt ${ac_path_SED_max-0}; then
5312      # Best one so far, save it but keep looking for a better one
5313      ac_cv_path_SED="$ac_path_SED"
5314      ac_path_SED_max=$ac_count
5315    fi
5316    # 10*(2^10) chars as input seems more than enough
5317    test $ac_count -gt 10 && break
5318  done
5319  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5320esac
5321
5322      $ac_path_SED_found && break 3
5323    done
5324  done
5325  done
5326IFS=$as_save_IFS
5327  if test -z "$ac_cv_path_SED"; then
5328    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5329  fi
5330else
5331  ac_cv_path_SED=$SED
5332fi
5333
5334fi
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5336$as_echo "$ac_cv_path_SED" >&6; }
5337 SED="$ac_cv_path_SED"
5338  rm -f conftest.sed
5339
5340test -z "$SED" && SED=sed
5341Xsed="$SED -e 1s/^X//"
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5354$as_echo_n "checking for fgrep... " >&6; }
5355if ${ac_cv_path_FGREP+:} false; then :
5356  $as_echo_n "(cached) " >&6
5357else
5358  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5359   then ac_cv_path_FGREP="$GREP -F"
5360   else
5361     if test -z "$FGREP"; then
5362  ac_path_FGREP_found=false
5363  # Loop through the user's path and test for each of PROGNAME-LIST
5364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5366do
5367  IFS=$as_save_IFS
5368  test -z "$as_dir" && as_dir=.
5369    for ac_prog in fgrep; do
5370    for ac_exec_ext in '' $ac_executable_extensions; do
5371      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5372      as_fn_executable_p "$ac_path_FGREP" || continue
5373# Check for GNU ac_path_FGREP and select it if it is found.
5374  # Check for GNU $ac_path_FGREP
5375case `"$ac_path_FGREP" --version 2>&1` in
5376*GNU*)
5377  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5378*)
5379  ac_count=0
5380  $as_echo_n 0123456789 >"conftest.in"
5381  while :
5382  do
5383    cat "conftest.in" "conftest.in" >"conftest.tmp"
5384    mv "conftest.tmp" "conftest.in"
5385    cp "conftest.in" "conftest.nl"
5386    $as_echo 'FGREP' >> "conftest.nl"
5387    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5388    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5389    as_fn_arith $ac_count + 1 && ac_count=$as_val
5390    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5391      # Best one so far, save it but keep looking for a better one
5392      ac_cv_path_FGREP="$ac_path_FGREP"
5393      ac_path_FGREP_max=$ac_count
5394    fi
5395    # 10*(2^10) chars as input seems more than enough
5396    test $ac_count -gt 10 && break
5397  done
5398  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5399esac
5400
5401      $ac_path_FGREP_found && break 3
5402    done
5403  done
5404  done
5405IFS=$as_save_IFS
5406  if test -z "$ac_cv_path_FGREP"; then
5407    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5408  fi
5409else
5410  ac_cv_path_FGREP=$FGREP
5411fi
5412
5413   fi
5414fi
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5416$as_echo "$ac_cv_path_FGREP" >&6; }
5417 FGREP="$ac_cv_path_FGREP"
5418
5419
5420test -z "$GREP" && GREP=grep
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440# Check whether --with-gnu-ld was given.
5441if test "${with_gnu_ld+set}" = set; then :
5442  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5443else
5444  with_gnu_ld=no
5445fi
5446
5447ac_prog=ld
5448if test yes = "$GCC"; then
5449  # Check if gcc -print-prog-name=ld gives a path.
5450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5451$as_echo_n "checking for ld used by $CC... " >&6; }
5452  case $host in
5453  *-*-mingw*)
5454    # gcc leaves a trailing carriage return, which upsets mingw
5455    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5456  *)
5457    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5458  esac
5459  case $ac_prog in
5460    # Accept absolute paths.
5461    [\\/]* | ?:[\\/]*)
5462      re_direlt='/[^/][^/]*/\.\./'
5463      # Canonicalize the pathname of ld
5464      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5465      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5466	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5467      done
5468      test -z "$LD" && LD=$ac_prog
5469      ;;
5470  "")
5471    # If it fails, then pretend we aren't using GCC.
5472    ac_prog=ld
5473    ;;
5474  *)
5475    # If it is relative, then search for the first ld in PATH.
5476    with_gnu_ld=unknown
5477    ;;
5478  esac
5479elif test yes = "$with_gnu_ld"; then
5480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5481$as_echo_n "checking for GNU ld... " >&6; }
5482else
5483  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5484$as_echo_n "checking for non-GNU ld... " >&6; }
5485fi
5486if ${lt_cv_path_LD+:} false; then :
5487  $as_echo_n "(cached) " >&6
5488else
5489  if test -z "$LD"; then
5490  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5491  for ac_dir in $PATH; do
5492    IFS=$lt_save_ifs
5493    test -z "$ac_dir" && ac_dir=.
5494    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5495      lt_cv_path_LD=$ac_dir/$ac_prog
5496      # Check to see if the program is GNU ld.  I'd rather use --version,
5497      # but apparently some variants of GNU ld only accept -v.
5498      # Break only if it was the GNU/non-GNU ld that we prefer.
5499      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5500      *GNU* | *'with BFD'*)
5501	test no != "$with_gnu_ld" && break
5502	;;
5503      *)
5504	test yes != "$with_gnu_ld" && break
5505	;;
5506      esac
5507    fi
5508  done
5509  IFS=$lt_save_ifs
5510else
5511  lt_cv_path_LD=$LD # Let the user override the test with a path.
5512fi
5513fi
5514
5515LD=$lt_cv_path_LD
5516if test -n "$LD"; then
5517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5518$as_echo "$LD" >&6; }
5519else
5520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521$as_echo "no" >&6; }
5522fi
5523test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5525$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5526if ${lt_cv_prog_gnu_ld+:} false; then :
5527  $as_echo_n "(cached) " >&6
5528else
5529  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5530case `$LD -v 2>&1 </dev/null` in
5531*GNU* | *'with BFD'*)
5532  lt_cv_prog_gnu_ld=yes
5533  ;;
5534*)
5535  lt_cv_prog_gnu_ld=no
5536  ;;
5537esac
5538fi
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5540$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5541with_gnu_ld=$lt_cv_prog_gnu_ld
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5552$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5553if ${lt_cv_path_NM+:} false; then :
5554  $as_echo_n "(cached) " >&6
5555else
5556  if test -n "$NM"; then
5557  # Let the user override the test.
5558  lt_cv_path_NM=$NM
5559else
5560  lt_nm_to_check=${ac_tool_prefix}nm
5561  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5562    lt_nm_to_check="$lt_nm_to_check nm"
5563  fi
5564  for lt_tmp_nm in $lt_nm_to_check; do
5565    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5566    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5567      IFS=$lt_save_ifs
5568      test -z "$ac_dir" && ac_dir=.
5569      tmp_nm=$ac_dir/$lt_tmp_nm
5570      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5571	# Check to see if the nm accepts a BSD-compat flag.
5572	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5573	#   nm: unknown option "B" ignored
5574	# Tru64's nm complains that /dev/null is an invalid object file
5575	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5576	case $build_os in
5577	mingw*) lt_bad_file=conftest.nm/nofile ;;
5578	*) lt_bad_file=/dev/null ;;
5579	esac
5580	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5581	*$lt_bad_file* | *'Invalid file or object type'*)
5582	  lt_cv_path_NM="$tmp_nm -B"
5583	  break 2
5584	  ;;
5585	*)
5586	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5587	  */dev/null*)
5588	    lt_cv_path_NM="$tmp_nm -p"
5589	    break 2
5590	    ;;
5591	  *)
5592	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5593	    continue # so that we can try to find one that supports BSD flags
5594	    ;;
5595	  esac
5596	  ;;
5597	esac
5598      fi
5599    done
5600    IFS=$lt_save_ifs
5601  done
5602  : ${lt_cv_path_NM=no}
5603fi
5604fi
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5606$as_echo "$lt_cv_path_NM" >&6; }
5607if test no != "$lt_cv_path_NM"; then
5608  NM=$lt_cv_path_NM
5609else
5610  # Didn't find any BSD compatible name lister, look for dumpbin.
5611  if test -n "$DUMPBIN"; then :
5612    # Let the user override the test.
5613  else
5614    if test -n "$ac_tool_prefix"; then
5615  for ac_prog in dumpbin "link -dump"
5616  do
5617    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5618set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620$as_echo_n "checking for $ac_word... " >&6; }
5621if ${ac_cv_prog_DUMPBIN+:} false; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  if test -n "$DUMPBIN"; then
5625  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5626else
5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628for as_dir in $PATH
5629do
5630  IFS=$as_save_IFS
5631  test -z "$as_dir" && as_dir=.
5632    for ac_exec_ext in '' $ac_executable_extensions; do
5633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636    break 2
5637  fi
5638done
5639  done
5640IFS=$as_save_IFS
5641
5642fi
5643fi
5644DUMPBIN=$ac_cv_prog_DUMPBIN
5645if test -n "$DUMPBIN"; then
5646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5647$as_echo "$DUMPBIN" >&6; }
5648else
5649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650$as_echo "no" >&6; }
5651fi
5652
5653
5654    test -n "$DUMPBIN" && break
5655  done
5656fi
5657if test -z "$DUMPBIN"; then
5658  ac_ct_DUMPBIN=$DUMPBIN
5659  for ac_prog in dumpbin "link -dump"
5660do
5661  # Extract the first word of "$ac_prog", so it can be a program name with args.
5662set dummy $ac_prog; ac_word=$2
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664$as_echo_n "checking for $ac_word... " >&6; }
5665if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5666  $as_echo_n "(cached) " >&6
5667else
5668  if test -n "$ac_ct_DUMPBIN"; then
5669  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674  IFS=$as_save_IFS
5675  test -z "$as_dir" && as_dir=.
5676    for ac_exec_ext in '' $ac_executable_extensions; do
5677  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5679    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680    break 2
5681  fi
5682done
5683  done
5684IFS=$as_save_IFS
5685
5686fi
5687fi
5688ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5689if test -n "$ac_ct_DUMPBIN"; then
5690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5691$as_echo "$ac_ct_DUMPBIN" >&6; }
5692else
5693  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694$as_echo "no" >&6; }
5695fi
5696
5697
5698  test -n "$ac_ct_DUMPBIN" && break
5699done
5700
5701  if test "x$ac_ct_DUMPBIN" = x; then
5702    DUMPBIN=":"
5703  else
5704    case $cross_compiling:$ac_tool_warned in
5705yes:)
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5708ac_tool_warned=yes ;;
5709esac
5710    DUMPBIN=$ac_ct_DUMPBIN
5711  fi
5712fi
5713
5714    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5715    *COFF*)
5716      DUMPBIN="$DUMPBIN -symbols -headers"
5717      ;;
5718    *)
5719      DUMPBIN=:
5720      ;;
5721    esac
5722  fi
5723
5724  if test : != "$DUMPBIN"; then
5725    NM=$DUMPBIN
5726  fi
5727fi
5728test -z "$NM" && NM=nm
5729
5730
5731
5732
5733
5734
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5736$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5737if ${lt_cv_nm_interface+:} false; then :
5738  $as_echo_n "(cached) " >&6
5739else
5740  lt_cv_nm_interface="BSD nm"
5741  echo "int some_variable = 0;" > conftest.$ac_ext
5742  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5743  (eval "$ac_compile" 2>conftest.err)
5744  cat conftest.err >&5
5745  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5746  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5747  cat conftest.err >&5
5748  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5749  cat conftest.out >&5
5750  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5751    lt_cv_nm_interface="MS dumpbin"
5752  fi
5753  rm -f conftest*
5754fi
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5756$as_echo "$lt_cv_nm_interface" >&6; }
5757
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5759$as_echo_n "checking whether ln -s works... " >&6; }
5760LN_S=$as_ln_s
5761if test "$LN_S" = "ln -s"; then
5762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5763$as_echo "yes" >&6; }
5764else
5765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5766$as_echo "no, using $LN_S" >&6; }
5767fi
5768
5769# find the maximum length of command line arguments
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5771$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5772if ${lt_cv_sys_max_cmd_len+:} false; then :
5773  $as_echo_n "(cached) " >&6
5774else
5775    i=0
5776  teststring=ABCD
5777
5778  case $build_os in
5779  msdosdjgpp*)
5780    # On DJGPP, this test can blow up pretty badly due to problems in libc
5781    # (any single argument exceeding 2000 bytes causes a buffer overrun
5782    # during glob expansion).  Even if it were fixed, the result of this
5783    # check would be larger than it should be.
5784    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5785    ;;
5786
5787  gnu*)
5788    # Under GNU Hurd, this test is not required because there is
5789    # no limit to the length of command line arguments.
5790    # Libtool will interpret -1 as no limit whatsoever
5791    lt_cv_sys_max_cmd_len=-1;
5792    ;;
5793
5794  cygwin* | mingw* | cegcc*)
5795    # On Win9x/ME, this test blows up -- it succeeds, but takes
5796    # about 5 minutes as the teststring grows exponentially.
5797    # Worse, since 9x/ME are not pre-emptively multitasking,
5798    # you end up with a "frozen" computer, even though with patience
5799    # the test eventually succeeds (with a max line length of 256k).
5800    # Instead, let's just punt: use the minimum linelength reported by
5801    # all of the supported platforms: 8192 (on NT/2K/XP).
5802    lt_cv_sys_max_cmd_len=8192;
5803    ;;
5804
5805  mint*)
5806    # On MiNT this can take a long time and run out of memory.
5807    lt_cv_sys_max_cmd_len=8192;
5808    ;;
5809
5810  amigaos*)
5811    # On AmigaOS with pdksh, this test takes hours, literally.
5812    # So we just punt and use a minimum line length of 8192.
5813    lt_cv_sys_max_cmd_len=8192;
5814    ;;
5815
5816  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5817    # This has been around since 386BSD, at least.  Likely further.
5818    if test -x /sbin/sysctl; then
5819      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5820    elif test -x /usr/sbin/sysctl; then
5821      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5822    else
5823      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5824    fi
5825    # And add a safety zone
5826    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5827    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5828    ;;
5829
5830  interix*)
5831    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5832    lt_cv_sys_max_cmd_len=196608
5833    ;;
5834
5835  os2*)
5836    # The test takes a long time on OS/2.
5837    lt_cv_sys_max_cmd_len=8192
5838    ;;
5839
5840  osf*)
5841    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5842    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5843    # nice to cause kernel panics so lets avoid the loop below.
5844    # First set a reasonable default.
5845    lt_cv_sys_max_cmd_len=16384
5846    #
5847    if test -x /sbin/sysconfig; then
5848      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5849        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5850      esac
5851    fi
5852    ;;
5853  sco3.2v5*)
5854    lt_cv_sys_max_cmd_len=102400
5855    ;;
5856  sysv5* | sco5v6* | sysv4.2uw2*)
5857    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5858    if test -n "$kargmax"; then
5859      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5860    else
5861      lt_cv_sys_max_cmd_len=32768
5862    fi
5863    ;;
5864  *)
5865    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5866    if test -n "$lt_cv_sys_max_cmd_len" && \
5867       test undefined != "$lt_cv_sys_max_cmd_len"; then
5868      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5869      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5870    else
5871      # Make teststring a little bigger before we do anything with it.
5872      # a 1K string should be a reasonable start.
5873      for i in 1 2 3 4 5 6 7 8; do
5874        teststring=$teststring$teststring
5875      done
5876      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5877      # If test is not a shell built-in, we'll probably end up computing a
5878      # maximum length that is only half of the actual maximum length, but
5879      # we can't tell.
5880      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5881	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5882	      test 17 != "$i" # 1/2 MB should be enough
5883      do
5884        i=`expr $i + 1`
5885        teststring=$teststring$teststring
5886      done
5887      # Only check the string length outside the loop.
5888      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5889      teststring=
5890      # Add a significant safety factor because C++ compilers can tack on
5891      # massive amounts of additional arguments before passing them to the
5892      # linker.  It appears as though 1/2 is a usable value.
5893      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5894    fi
5895    ;;
5896  esac
5897
5898fi
5899
5900if test -n "$lt_cv_sys_max_cmd_len"; then
5901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5902$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5903else
5904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5905$as_echo "none" >&6; }
5906fi
5907max_cmd_len=$lt_cv_sys_max_cmd_len
5908
5909
5910
5911
5912
5913
5914: ${CP="cp -f"}
5915: ${MV="mv -f"}
5916: ${RM="rm -f"}
5917
5918if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5919  lt_unset=unset
5920else
5921  lt_unset=false
5922fi
5923
5924
5925
5926
5927
5928# test EBCDIC or ASCII
5929case `echo X|tr X '\101'` in
5930 A) # ASCII based system
5931    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5932  lt_SP2NL='tr \040 \012'
5933  lt_NL2SP='tr \015\012 \040\040'
5934  ;;
5935 *) # EBCDIC based system
5936  lt_SP2NL='tr \100 \n'
5937  lt_NL2SP='tr \r\n \100\100'
5938  ;;
5939esac
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5950$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5951if ${lt_cv_to_host_file_cmd+:} false; then :
5952  $as_echo_n "(cached) " >&6
5953else
5954  case $host in
5955  *-*-mingw* )
5956    case $build in
5957      *-*-mingw* ) # actually msys
5958        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5959        ;;
5960      *-*-cygwin* )
5961        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5962        ;;
5963      * ) # otherwise, assume *nix
5964        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5965        ;;
5966    esac
5967    ;;
5968  *-*-cygwin* )
5969    case $build in
5970      *-*-mingw* ) # actually msys
5971        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5972        ;;
5973      *-*-cygwin* )
5974        lt_cv_to_host_file_cmd=func_convert_file_noop
5975        ;;
5976      * ) # otherwise, assume *nix
5977        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5978        ;;
5979    esac
5980    ;;
5981  * ) # unhandled hosts (and "normal" native builds)
5982    lt_cv_to_host_file_cmd=func_convert_file_noop
5983    ;;
5984esac
5985
5986fi
5987
5988to_host_file_cmd=$lt_cv_to_host_file_cmd
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5990$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5991
5992
5993
5994
5995
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5997$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5998if ${lt_cv_to_tool_file_cmd+:} false; then :
5999  $as_echo_n "(cached) " >&6
6000else
6001  #assume ordinary cross tools, or native build.
6002lt_cv_to_tool_file_cmd=func_convert_file_noop
6003case $host in
6004  *-*-mingw* )
6005    case $build in
6006      *-*-mingw* ) # actually msys
6007        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6008        ;;
6009    esac
6010    ;;
6011esac
6012
6013fi
6014
6015to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6017$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6018
6019
6020
6021
6022
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6024$as_echo_n "checking for $LD option to reload object files... " >&6; }
6025if ${lt_cv_ld_reload_flag+:} false; then :
6026  $as_echo_n "(cached) " >&6
6027else
6028  lt_cv_ld_reload_flag='-r'
6029fi
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6031$as_echo "$lt_cv_ld_reload_flag" >&6; }
6032reload_flag=$lt_cv_ld_reload_flag
6033case $reload_flag in
6034"" | " "*) ;;
6035*) reload_flag=" $reload_flag" ;;
6036esac
6037reload_cmds='$LD$reload_flag -o $output$reload_objs'
6038case $host_os in
6039  cygwin* | mingw* | pw32* | cegcc*)
6040    if test yes != "$GCC"; then
6041      reload_cmds=false
6042    fi
6043    ;;
6044  darwin*)
6045    if test yes = "$GCC"; then
6046      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6047    else
6048      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6049    fi
6050    ;;
6051esac
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061if test -n "$ac_tool_prefix"; then
6062  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6063set dummy ${ac_tool_prefix}objdump; ac_word=$2
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065$as_echo_n "checking for $ac_word... " >&6; }
6066if ${ac_cv_prog_OBJDUMP+:} false; then :
6067  $as_echo_n "(cached) " >&6
6068else
6069  if test -n "$OBJDUMP"; then
6070  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6071else
6072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073for as_dir in $PATH
6074do
6075  IFS=$as_save_IFS
6076  test -z "$as_dir" && as_dir=.
6077    for ac_exec_ext in '' $ac_executable_extensions; do
6078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081    break 2
6082  fi
6083done
6084  done
6085IFS=$as_save_IFS
6086
6087fi
6088fi
6089OBJDUMP=$ac_cv_prog_OBJDUMP
6090if test -n "$OBJDUMP"; then
6091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6092$as_echo "$OBJDUMP" >&6; }
6093else
6094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095$as_echo "no" >&6; }
6096fi
6097
6098
6099fi
6100if test -z "$ac_cv_prog_OBJDUMP"; then
6101  ac_ct_OBJDUMP=$OBJDUMP
6102  # Extract the first word of "objdump", so it can be a program name with args.
6103set dummy objdump; ac_word=$2
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105$as_echo_n "checking for $ac_word... " >&6; }
6106if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6107  $as_echo_n "(cached) " >&6
6108else
6109  if test -n "$ac_ct_OBJDUMP"; then
6110  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6111else
6112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113for as_dir in $PATH
6114do
6115  IFS=$as_save_IFS
6116  test -z "$as_dir" && as_dir=.
6117    for ac_exec_ext in '' $ac_executable_extensions; do
6118  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6120    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121    break 2
6122  fi
6123done
6124  done
6125IFS=$as_save_IFS
6126
6127fi
6128fi
6129ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6130if test -n "$ac_ct_OBJDUMP"; then
6131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6132$as_echo "$ac_ct_OBJDUMP" >&6; }
6133else
6134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135$as_echo "no" >&6; }
6136fi
6137
6138  if test "x$ac_ct_OBJDUMP" = x; then
6139    OBJDUMP="false"
6140  else
6141    case $cross_compiling:$ac_tool_warned in
6142yes:)
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6145ac_tool_warned=yes ;;
6146esac
6147    OBJDUMP=$ac_ct_OBJDUMP
6148  fi
6149else
6150  OBJDUMP="$ac_cv_prog_OBJDUMP"
6151fi
6152
6153test -z "$OBJDUMP" && OBJDUMP=objdump
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6164$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6165if ${lt_cv_deplibs_check_method+:} false; then :
6166  $as_echo_n "(cached) " >&6
6167else
6168  lt_cv_file_magic_cmd='$MAGIC_CMD'
6169lt_cv_file_magic_test_file=
6170lt_cv_deplibs_check_method='unknown'
6171# Need to set the preceding variable on all platforms that support
6172# interlibrary dependencies.
6173# 'none' -- dependencies not supported.
6174# 'unknown' -- same as none, but documents that we really don't know.
6175# 'pass_all' -- all dependencies passed with no checks.
6176# 'test_compile' -- check by making test program.
6177# 'file_magic [[regex]]' -- check by looking for files in library path
6178# that responds to the $file_magic_cmd with a given extended regex.
6179# If you have 'file' or equivalent on your system and you're not sure
6180# whether 'pass_all' will *always* work, you probably want this one.
6181
6182case $host_os in
6183aix[4-9]*)
6184  lt_cv_deplibs_check_method=pass_all
6185  ;;
6186
6187beos*)
6188  lt_cv_deplibs_check_method=pass_all
6189  ;;
6190
6191bsdi[45]*)
6192  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6193  lt_cv_file_magic_cmd='/usr/bin/file -L'
6194  lt_cv_file_magic_test_file=/shlib/libc.so
6195  ;;
6196
6197cygwin*)
6198  # func_win32_libid is a shell function defined in ltmain.sh
6199  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6200  lt_cv_file_magic_cmd='func_win32_libid'
6201  ;;
6202
6203mingw* | pw32*)
6204  # Base MSYS/MinGW do not provide the 'file' command needed by
6205  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6206  # unless we find 'file', for example because we are cross-compiling.
6207  if ( file / ) >/dev/null 2>&1; then
6208    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6209    lt_cv_file_magic_cmd='func_win32_libid'
6210  else
6211    # Keep this pattern in sync with the one in func_win32_libid.
6212    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6213    lt_cv_file_magic_cmd='$OBJDUMP -f'
6214  fi
6215  ;;
6216
6217cegcc*)
6218  # use the weaker test based on 'objdump'. See mingw*.
6219  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6220  lt_cv_file_magic_cmd='$OBJDUMP -f'
6221  ;;
6222
6223darwin* | rhapsody*)
6224  lt_cv_deplibs_check_method=pass_all
6225  ;;
6226
6227freebsd* | dragonfly*)
6228  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6229    case $host_cpu in
6230    i*86 )
6231      # Not sure whether the presence of OpenBSD here was a mistake.
6232      # Let's accept both of them until this is cleared up.
6233      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6234      lt_cv_file_magic_cmd=/usr/bin/file
6235      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6236      ;;
6237    esac
6238  else
6239    lt_cv_deplibs_check_method=pass_all
6240  fi
6241  ;;
6242
6243haiku*)
6244  lt_cv_deplibs_check_method=pass_all
6245  ;;
6246
6247hpux10.20* | hpux11*)
6248  lt_cv_file_magic_cmd=/usr/bin/file
6249  case $host_cpu in
6250  ia64*)
6251    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6252    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6253    ;;
6254  hppa*64*)
6255    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]'
6256    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6257    ;;
6258  *)
6259    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6260    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6261    ;;
6262  esac
6263  ;;
6264
6265interix[3-9]*)
6266  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6267  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6268  ;;
6269
6270irix5* | irix6* | nonstopux*)
6271  case $LD in
6272  *-32|*"-32 ") libmagic=32-bit;;
6273  *-n32|*"-n32 ") libmagic=N32;;
6274  *-64|*"-64 ") libmagic=64-bit;;
6275  *) libmagic=never-match;;
6276  esac
6277  lt_cv_deplibs_check_method=pass_all
6278  ;;
6279
6280# This must be glibc/ELF.
6281linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6282  lt_cv_deplibs_check_method=pass_all
6283  ;;
6284
6285netbsd*)
6286  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6287    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6288  else
6289    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6290  fi
6291  ;;
6292
6293newos6*)
6294  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6295  lt_cv_file_magic_cmd=/usr/bin/file
6296  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6297  ;;
6298
6299*nto* | *qnx*)
6300  lt_cv_deplibs_check_method=pass_all
6301  ;;
6302
6303openbsd* | bitrig*)
6304  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6305    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6306  else
6307    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6308  fi
6309  ;;
6310
6311osf3* | osf4* | osf5*)
6312  lt_cv_deplibs_check_method=pass_all
6313  ;;
6314
6315rdos*)
6316  lt_cv_deplibs_check_method=pass_all
6317  ;;
6318
6319solaris*)
6320  lt_cv_deplibs_check_method=pass_all
6321  ;;
6322
6323sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6324  lt_cv_deplibs_check_method=pass_all
6325  ;;
6326
6327sysv4 | sysv4.3*)
6328  case $host_vendor in
6329  motorola)
6330    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]'
6331    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6332    ;;
6333  ncr)
6334    lt_cv_deplibs_check_method=pass_all
6335    ;;
6336  sequent)
6337    lt_cv_file_magic_cmd='/bin/file'
6338    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6339    ;;
6340  sni)
6341    lt_cv_file_magic_cmd='/bin/file'
6342    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6343    lt_cv_file_magic_test_file=/lib/libc.so
6344    ;;
6345  siemens)
6346    lt_cv_deplibs_check_method=pass_all
6347    ;;
6348  pc)
6349    lt_cv_deplibs_check_method=pass_all
6350    ;;
6351  esac
6352  ;;
6353
6354tpf*)
6355  lt_cv_deplibs_check_method=pass_all
6356  ;;
6357os2*)
6358  lt_cv_deplibs_check_method=pass_all
6359  ;;
6360esac
6361
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6364$as_echo "$lt_cv_deplibs_check_method" >&6; }
6365
6366file_magic_glob=
6367want_nocaseglob=no
6368if test "$build" = "$host"; then
6369  case $host_os in
6370  mingw* | pw32*)
6371    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6372      want_nocaseglob=yes
6373    else
6374      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6375    fi
6376    ;;
6377  esac
6378fi
6379
6380file_magic_cmd=$lt_cv_file_magic_cmd
6381deplibs_check_method=$lt_cv_deplibs_check_method
6382test -z "$deplibs_check_method" && deplibs_check_method=unknown
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405if test -n "$ac_tool_prefix"; then
6406  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6407set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409$as_echo_n "checking for $ac_word... " >&6; }
6410if ${ac_cv_prog_DLLTOOL+:} false; then :
6411  $as_echo_n "(cached) " >&6
6412else
6413  if test -n "$DLLTOOL"; then
6414  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6415else
6416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419  IFS=$as_save_IFS
6420  test -z "$as_dir" && as_dir=.
6421    for ac_exec_ext in '' $ac_executable_extensions; do
6422  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425    break 2
6426  fi
6427done
6428  done
6429IFS=$as_save_IFS
6430
6431fi
6432fi
6433DLLTOOL=$ac_cv_prog_DLLTOOL
6434if test -n "$DLLTOOL"; then
6435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6436$as_echo "$DLLTOOL" >&6; }
6437else
6438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439$as_echo "no" >&6; }
6440fi
6441
6442
6443fi
6444if test -z "$ac_cv_prog_DLLTOOL"; then
6445  ac_ct_DLLTOOL=$DLLTOOL
6446  # Extract the first word of "dlltool", so it can be a program name with args.
6447set dummy dlltool; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  if test -n "$ac_ct_DLLTOOL"; then
6454  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459  IFS=$as_save_IFS
6460  test -z "$as_dir" && as_dir=.
6461    for ac_exec_ext in '' $ac_executable_extensions; do
6462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465    break 2
6466  fi
6467done
6468  done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6474if test -n "$ac_ct_DLLTOOL"; then
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6476$as_echo "$ac_ct_DLLTOOL" >&6; }
6477else
6478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482  if test "x$ac_ct_DLLTOOL" = x; then
6483    DLLTOOL="false"
6484  else
6485    case $cross_compiling:$ac_tool_warned in
6486yes:)
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6489ac_tool_warned=yes ;;
6490esac
6491    DLLTOOL=$ac_ct_DLLTOOL
6492  fi
6493else
6494  DLLTOOL="$ac_cv_prog_DLLTOOL"
6495fi
6496
6497test -z "$DLLTOOL" && DLLTOOL=dlltool
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6509$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6510if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6511  $as_echo_n "(cached) " >&6
6512else
6513  lt_cv_sharedlib_from_linklib_cmd='unknown'
6514
6515case $host_os in
6516cygwin* | mingw* | pw32* | cegcc*)
6517  # two different shell functions defined in ltmain.sh;
6518  # decide which one to use based on capabilities of $DLLTOOL
6519  case `$DLLTOOL --help 2>&1` in
6520  *--identify-strict*)
6521    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6522    ;;
6523  *)
6524    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6525    ;;
6526  esac
6527  ;;
6528*)
6529  # fallback: assume linklib IS sharedlib
6530  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6531  ;;
6532esac
6533
6534fi
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6536$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6537sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6538test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6539
6540
6541
6542
6543
6544
6545
6546if test -n "$ac_tool_prefix"; then
6547  for ac_prog in ar
6548  do
6549    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6550set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552$as_echo_n "checking for $ac_word... " >&6; }
6553if ${ac_cv_prog_AR+:} false; then :
6554  $as_echo_n "(cached) " >&6
6555else
6556  if test -n "$AR"; then
6557  ac_cv_prog_AR="$AR" # Let the user override the test.
6558else
6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560for as_dir in $PATH
6561do
6562  IFS=$as_save_IFS
6563  test -z "$as_dir" && as_dir=.
6564    for ac_exec_ext in '' $ac_executable_extensions; do
6565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568    break 2
6569  fi
6570done
6571  done
6572IFS=$as_save_IFS
6573
6574fi
6575fi
6576AR=$ac_cv_prog_AR
6577if test -n "$AR"; then
6578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6579$as_echo "$AR" >&6; }
6580else
6581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582$as_echo "no" >&6; }
6583fi
6584
6585
6586    test -n "$AR" && break
6587  done
6588fi
6589if test -z "$AR"; then
6590  ac_ct_AR=$AR
6591  for ac_prog in ar
6592do
6593  # Extract the first word of "$ac_prog", so it can be a program name with args.
6594set dummy $ac_prog; ac_word=$2
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596$as_echo_n "checking for $ac_word... " >&6; }
6597if ${ac_cv_prog_ac_ct_AR+:} false; then :
6598  $as_echo_n "(cached) " >&6
6599else
6600  if test -n "$ac_ct_AR"; then
6601  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6602else
6603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604for as_dir in $PATH
6605do
6606  IFS=$as_save_IFS
6607  test -z "$as_dir" && as_dir=.
6608    for ac_exec_ext in '' $ac_executable_extensions; do
6609  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610    ac_cv_prog_ac_ct_AR="$ac_prog"
6611    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612    break 2
6613  fi
6614done
6615  done
6616IFS=$as_save_IFS
6617
6618fi
6619fi
6620ac_ct_AR=$ac_cv_prog_ac_ct_AR
6621if test -n "$ac_ct_AR"; then
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6623$as_echo "$ac_ct_AR" >&6; }
6624else
6625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626$as_echo "no" >&6; }
6627fi
6628
6629
6630  test -n "$ac_ct_AR" && break
6631done
6632
6633  if test "x$ac_ct_AR" = x; then
6634    AR="false"
6635  else
6636    case $cross_compiling:$ac_tool_warned in
6637yes:)
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6640ac_tool_warned=yes ;;
6641esac
6642    AR=$ac_ct_AR
6643  fi
6644fi
6645
6646: ${AR=ar}
6647: ${AR_FLAGS=cru}
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6660$as_echo_n "checking for archiver @FILE support... " >&6; }
6661if ${lt_cv_ar_at_file+:} false; then :
6662  $as_echo_n "(cached) " >&6
6663else
6664  lt_cv_ar_at_file=no
6665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666/* end confdefs.h.  */
6667
6668int
6669main ()
6670{
6671
6672  ;
6673  return 0;
6674}
6675_ACEOF
6676if ac_fn_c_try_compile "$LINENO"; then :
6677  echo conftest.$ac_objext > conftest.lst
6678      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6679      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6680  (eval $lt_ar_try) 2>&5
6681  ac_status=$?
6682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6683  test $ac_status = 0; }
6684      if test 0 -eq "$ac_status"; then
6685	# Ensure the archiver fails upon bogus file names.
6686	rm -f conftest.$ac_objext libconftest.a
6687	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6688  (eval $lt_ar_try) 2>&5
6689  ac_status=$?
6690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6691  test $ac_status = 0; }
6692	if test 0 -ne "$ac_status"; then
6693          lt_cv_ar_at_file=@
6694        fi
6695      fi
6696      rm -f conftest.* libconftest.a
6697
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700
6701fi
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6703$as_echo "$lt_cv_ar_at_file" >&6; }
6704
6705if test no = "$lt_cv_ar_at_file"; then
6706  archiver_list_spec=
6707else
6708  archiver_list_spec=$lt_cv_ar_at_file
6709fi
6710
6711
6712
6713
6714
6715
6716
6717if test -n "$ac_tool_prefix"; then
6718  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6719set dummy ${ac_tool_prefix}strip; ac_word=$2
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721$as_echo_n "checking for $ac_word... " >&6; }
6722if ${ac_cv_prog_STRIP+:} false; then :
6723  $as_echo_n "(cached) " >&6
6724else
6725  if test -n "$STRIP"; then
6726  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6727else
6728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731  IFS=$as_save_IFS
6732  test -z "$as_dir" && as_dir=.
6733    for ac_exec_ext in '' $ac_executable_extensions; do
6734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6737    break 2
6738  fi
6739done
6740  done
6741IFS=$as_save_IFS
6742
6743fi
6744fi
6745STRIP=$ac_cv_prog_STRIP
6746if test -n "$STRIP"; then
6747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6748$as_echo "$STRIP" >&6; }
6749else
6750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751$as_echo "no" >&6; }
6752fi
6753
6754
6755fi
6756if test -z "$ac_cv_prog_STRIP"; then
6757  ac_ct_STRIP=$STRIP
6758  # Extract the first word of "strip", so it can be a program name with args.
6759set dummy strip; ac_word=$2
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761$as_echo_n "checking for $ac_word... " >&6; }
6762if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6763  $as_echo_n "(cached) " >&6
6764else
6765  if test -n "$ac_ct_STRIP"; then
6766  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6767else
6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769for as_dir in $PATH
6770do
6771  IFS=$as_save_IFS
6772  test -z "$as_dir" && as_dir=.
6773    for ac_exec_ext in '' $ac_executable_extensions; do
6774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775    ac_cv_prog_ac_ct_STRIP="strip"
6776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777    break 2
6778  fi
6779done
6780  done
6781IFS=$as_save_IFS
6782
6783fi
6784fi
6785ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6786if test -n "$ac_ct_STRIP"; then
6787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6788$as_echo "$ac_ct_STRIP" >&6; }
6789else
6790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791$as_echo "no" >&6; }
6792fi
6793
6794  if test "x$ac_ct_STRIP" = x; then
6795    STRIP=":"
6796  else
6797    case $cross_compiling:$ac_tool_warned in
6798yes:)
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6801ac_tool_warned=yes ;;
6802esac
6803    STRIP=$ac_ct_STRIP
6804  fi
6805else
6806  STRIP="$ac_cv_prog_STRIP"
6807fi
6808
6809test -z "$STRIP" && STRIP=:
6810
6811
6812
6813
6814
6815
6816if test -n "$ac_tool_prefix"; then
6817  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6818set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820$as_echo_n "checking for $ac_word... " >&6; }
6821if ${ac_cv_prog_RANLIB+:} false; then :
6822  $as_echo_n "(cached) " >&6
6823else
6824  if test -n "$RANLIB"; then
6825  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6826else
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830  IFS=$as_save_IFS
6831  test -z "$as_dir" && as_dir=.
6832    for ac_exec_ext in '' $ac_executable_extensions; do
6833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6834    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836    break 2
6837  fi
6838done
6839  done
6840IFS=$as_save_IFS
6841
6842fi
6843fi
6844RANLIB=$ac_cv_prog_RANLIB
6845if test -n "$RANLIB"; then
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6847$as_echo "$RANLIB" >&6; }
6848else
6849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850$as_echo "no" >&6; }
6851fi
6852
6853
6854fi
6855if test -z "$ac_cv_prog_RANLIB"; then
6856  ac_ct_RANLIB=$RANLIB
6857  # Extract the first word of "ranlib", so it can be a program name with args.
6858set dummy ranlib; ac_word=$2
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860$as_echo_n "checking for $ac_word... " >&6; }
6861if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6862  $as_echo_n "(cached) " >&6
6863else
6864  if test -n "$ac_ct_RANLIB"; then
6865  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870  IFS=$as_save_IFS
6871  test -z "$as_dir" && as_dir=.
6872    for ac_exec_ext in '' $ac_executable_extensions; do
6873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6874    ac_cv_prog_ac_ct_RANLIB="ranlib"
6875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876    break 2
6877  fi
6878done
6879  done
6880IFS=$as_save_IFS
6881
6882fi
6883fi
6884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6885if test -n "$ac_ct_RANLIB"; then
6886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6887$as_echo "$ac_ct_RANLIB" >&6; }
6888else
6889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890$as_echo "no" >&6; }
6891fi
6892
6893  if test "x$ac_ct_RANLIB" = x; then
6894    RANLIB=":"
6895  else
6896    case $cross_compiling:$ac_tool_warned in
6897yes:)
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900ac_tool_warned=yes ;;
6901esac
6902    RANLIB=$ac_ct_RANLIB
6903  fi
6904else
6905  RANLIB="$ac_cv_prog_RANLIB"
6906fi
6907
6908test -z "$RANLIB" && RANLIB=:
6909
6910
6911
6912
6913
6914
6915# Determine commands to create old-style static archives.
6916old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6917old_postinstall_cmds='chmod 644 $oldlib'
6918old_postuninstall_cmds=
6919
6920if test -n "$RANLIB"; then
6921  case $host_os in
6922  bitrig* | openbsd*)
6923    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6924    ;;
6925  *)
6926    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6927    ;;
6928  esac
6929  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6930fi
6931
6932case $host_os in
6933  darwin*)
6934    lock_old_archive_extraction=yes ;;
6935  *)
6936    lock_old_archive_extraction=no ;;
6937esac
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977# If no C compiler was specified, use CC.
6978LTCC=${LTCC-"$CC"}
6979
6980# If no C compiler flags were specified, use CFLAGS.
6981LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6982
6983# Allow CC to be a program name with arguments.
6984compiler=$CC
6985
6986
6987# Check for command to grab the raw symbol name followed by C symbol from nm.
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6989$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6990if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6991  $as_echo_n "(cached) " >&6
6992else
6993
6994# These are sane defaults that work on at least a few old systems.
6995# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6996
6997# Character class describing NM global symbol codes.
6998symcode='[BCDEGRST]'
6999
7000# Regexp to match symbols that can be accessed directly from C.
7001sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7002
7003# Define system-specific variables.
7004case $host_os in
7005aix*)
7006  symcode='[BCDT]'
7007  ;;
7008cygwin* | mingw* | pw32* | cegcc*)
7009  symcode='[ABCDGISTW]'
7010  ;;
7011hpux*)
7012  if test ia64 = "$host_cpu"; then
7013    symcode='[ABCDEGRST]'
7014  fi
7015  ;;
7016irix* | nonstopux*)
7017  symcode='[BCDEGRST]'
7018  ;;
7019osf*)
7020  symcode='[BCDEGQRST]'
7021  ;;
7022solaris*)
7023  symcode='[BDRT]'
7024  ;;
7025sco3.2v5*)
7026  symcode='[DT]'
7027  ;;
7028sysv4.2uw2*)
7029  symcode='[DT]'
7030  ;;
7031sysv5* | sco5v6* | unixware* | OpenUNIX*)
7032  symcode='[ABDT]'
7033  ;;
7034sysv4)
7035  symcode='[DFNSTU]'
7036  ;;
7037esac
7038
7039# If we're using GNU nm, then use its standard symbol codes.
7040case `$NM -V 2>&1` in
7041*GNU* | *'with BFD'*)
7042  symcode='[ABCDGIRSTW]' ;;
7043esac
7044
7045if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7046  # Gets list of data symbols to import.
7047  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7048  # Adjust the below global symbol transforms to fixup imported variables.
7049  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7050  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7051  lt_c_name_lib_hook="\
7052  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7053  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7054else
7055  # Disable hooks by default.
7056  lt_cv_sys_global_symbol_to_import=
7057  lt_cdecl_hook=
7058  lt_c_name_hook=
7059  lt_c_name_lib_hook=
7060fi
7061
7062# Transform an extracted symbol line into a proper C declaration.
7063# Some systems (esp. on ia64) link data and code symbols differently,
7064# so use this general approach.
7065lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7066$lt_cdecl_hook\
7067" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7068" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7069
7070# Transform an extracted symbol line into symbol name and symbol address
7071lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7072$lt_c_name_hook\
7073" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7074" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7075
7076# Transform an extracted symbol line into symbol name with lib prefix and
7077# symbol address.
7078lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7079$lt_c_name_lib_hook\
7080" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7081" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7082" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7083
7084# Handle CRLF in mingw tool chain
7085opt_cr=
7086case $build_os in
7087mingw*)
7088  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7089  ;;
7090esac
7091
7092# Try without a prefix underscore, then with it.
7093for ac_symprfx in "" "_"; do
7094
7095  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7096  symxfrm="\\1 $ac_symprfx\\2 \\2"
7097
7098  # Write the raw and C identifiers.
7099  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7100    # Fake it for dumpbin and say T for any non-static function,
7101    # D for any global variable and I for any imported variable.
7102    # Also find C++ and __fastcall symbols from MSVC++,
7103    # which start with @ or ?.
7104    lt_cv_sys_global_symbol_pipe="$AWK '"\
7105"     {last_section=section; section=\$ 3};"\
7106"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7107"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7108"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7109"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7110"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7111"     \$ 0!~/External *\|/{next};"\
7112"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7113"     {if(hide[section]) next};"\
7114"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7115"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7116"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7117"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7118"     ' prfx=^$ac_symprfx"
7119  else
7120    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7121  fi
7122  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7123
7124  # Check to see that the pipe works correctly.
7125  pipe_works=no
7126
7127  rm -f conftest*
7128  cat > conftest.$ac_ext <<_LT_EOF
7129#ifdef __cplusplus
7130extern "C" {
7131#endif
7132char nm_test_var;
7133void nm_test_func(void);
7134void nm_test_func(void){}
7135#ifdef __cplusplus
7136}
7137#endif
7138int main(){nm_test_var='a';nm_test_func();return(0);}
7139_LT_EOF
7140
7141  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7142  (eval $ac_compile) 2>&5
7143  ac_status=$?
7144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145  test $ac_status = 0; }; then
7146    # Now try to grab the symbols.
7147    nlist=conftest.nm
7148    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7149  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7150  ac_status=$?
7151  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7152  test $ac_status = 0; } && test -s "$nlist"; then
7153      # Try sorting and uniquifying the output.
7154      if sort "$nlist" | uniq > "$nlist"T; then
7155	mv -f "$nlist"T "$nlist"
7156      else
7157	rm -f "$nlist"T
7158      fi
7159
7160      # Make sure that we snagged all the symbols we need.
7161      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7162	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7163	  cat <<_LT_EOF > conftest.$ac_ext
7164/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7165#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7166/* DATA imports from DLLs on WIN32 can't be const, because runtime
7167   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7168# define LT_DLSYM_CONST
7169#elif defined __osf__
7170/* This system does not cope well with relocations in const data.  */
7171# define LT_DLSYM_CONST
7172#else
7173# define LT_DLSYM_CONST const
7174#endif
7175
7176#ifdef __cplusplus
7177extern "C" {
7178#endif
7179
7180_LT_EOF
7181	  # Now generate the symbol file.
7182	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7183
7184	  cat <<_LT_EOF >> conftest.$ac_ext
7185
7186/* The mapping between symbol names and symbols.  */
7187LT_DLSYM_CONST struct {
7188  const char *name;
7189  void       *address;
7190}
7191lt__PROGRAM__LTX_preloaded_symbols[] =
7192{
7193  { "@PROGRAM@", (void *) 0 },
7194_LT_EOF
7195	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7196	  cat <<\_LT_EOF >> conftest.$ac_ext
7197  {0, (void *) 0}
7198};
7199
7200/* This works around a problem in FreeBSD linker */
7201#ifdef FREEBSD_WORKAROUND
7202static const void *lt_preloaded_setup() {
7203  return lt__PROGRAM__LTX_preloaded_symbols;
7204}
7205#endif
7206
7207#ifdef __cplusplus
7208}
7209#endif
7210_LT_EOF
7211	  # Now try linking the two files.
7212	  mv conftest.$ac_objext conftstm.$ac_objext
7213	  lt_globsym_save_LIBS=$LIBS
7214	  lt_globsym_save_CFLAGS=$CFLAGS
7215	  LIBS=conftstm.$ac_objext
7216	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7217	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7218  (eval $ac_link) 2>&5
7219  ac_status=$?
7220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7221  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7222	    pipe_works=yes
7223	  fi
7224	  LIBS=$lt_globsym_save_LIBS
7225	  CFLAGS=$lt_globsym_save_CFLAGS
7226	else
7227	  echo "cannot find nm_test_func in $nlist" >&5
7228	fi
7229      else
7230	echo "cannot find nm_test_var in $nlist" >&5
7231      fi
7232    else
7233      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7234    fi
7235  else
7236    echo "$progname: failed program was:" >&5
7237    cat conftest.$ac_ext >&5
7238  fi
7239  rm -rf conftest* conftst*
7240
7241  # Do not use the global_symbol_pipe unless it works.
7242  if test yes = "$pipe_works"; then
7243    break
7244  else
7245    lt_cv_sys_global_symbol_pipe=
7246  fi
7247done
7248
7249fi
7250
7251if test -z "$lt_cv_sys_global_symbol_pipe"; then
7252  lt_cv_sys_global_symbol_to_cdecl=
7253fi
7254if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7256$as_echo "failed" >&6; }
7257else
7258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7259$as_echo "ok" >&6; }
7260fi
7261
7262# Response file support.
7263if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7264  nm_file_list_spec='@'
7265elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7266  nm_file_list_spec='@'
7267fi
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7306$as_echo_n "checking for sysroot... " >&6; }
7307
7308# Check whether --with-sysroot was given.
7309if test "${with_sysroot+set}" = set; then :
7310  withval=$with_sysroot;
7311else
7312  with_sysroot=no
7313fi
7314
7315
7316lt_sysroot=
7317case $with_sysroot in #(
7318 yes)
7319   if test yes = "$GCC"; then
7320     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7321   fi
7322   ;; #(
7323 /*)
7324   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7325   ;; #(
7326 no|'')
7327   ;; #(
7328 *)
7329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7330$as_echo "$with_sysroot" >&6; }
7331   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7332   ;;
7333esac
7334
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7336$as_echo "${lt_sysroot:-no}" >&6; }
7337
7338
7339
7340
7341
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7343$as_echo_n "checking for a working dd... " >&6; }
7344if ${ac_cv_path_lt_DD+:} false; then :
7345  $as_echo_n "(cached) " >&6
7346else
7347  printf 0123456789abcdef0123456789abcdef >conftest.i
7348cat conftest.i conftest.i >conftest2.i
7349: ${lt_DD:=$DD}
7350if test -z "$lt_DD"; then
7351  ac_path_lt_DD_found=false
7352  # Loop through the user's path and test for each of PROGNAME-LIST
7353  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356  IFS=$as_save_IFS
7357  test -z "$as_dir" && as_dir=.
7358    for ac_prog in dd; do
7359    for ac_exec_ext in '' $ac_executable_extensions; do
7360      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7361      as_fn_executable_p "$ac_path_lt_DD" || continue
7362if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7363  cmp -s conftest.i conftest.out \
7364  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7365fi
7366      $ac_path_lt_DD_found && break 3
7367    done
7368  done
7369  done
7370IFS=$as_save_IFS
7371  if test -z "$ac_cv_path_lt_DD"; then
7372    :
7373  fi
7374else
7375  ac_cv_path_lt_DD=$lt_DD
7376fi
7377
7378rm -f conftest.i conftest2.i conftest.out
7379fi
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7381$as_echo "$ac_cv_path_lt_DD" >&6; }
7382
7383
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7385$as_echo_n "checking how to truncate binary pipes... " >&6; }
7386if ${lt_cv_truncate_bin+:} false; then :
7387  $as_echo_n "(cached) " >&6
7388else
7389  printf 0123456789abcdef0123456789abcdef >conftest.i
7390cat conftest.i conftest.i >conftest2.i
7391lt_cv_truncate_bin=
7392if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7393  cmp -s conftest.i conftest.out \
7394  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7395fi
7396rm -f conftest.i conftest2.i conftest.out
7397test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7398fi
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7400$as_echo "$lt_cv_truncate_bin" >&6; }
7401
7402
7403
7404
7405
7406
7407
7408# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7409func_cc_basename ()
7410{
7411    for cc_temp in $*""; do
7412      case $cc_temp in
7413        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7414        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7415        \-*) ;;
7416        *) break;;
7417      esac
7418    done
7419    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7420}
7421
7422# Check whether --enable-libtool-lock was given.
7423if test "${enable_libtool_lock+set}" = set; then :
7424  enableval=$enable_libtool_lock;
7425fi
7426
7427test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7428
7429# Some flags need to be propagated to the compiler or linker for good
7430# libtool support.
7431case $host in
7432ia64-*-hpux*)
7433  # Find out what ABI is being produced by ac_compile, and set mode
7434  # options accordingly.
7435  echo 'int i;' > conftest.$ac_ext
7436  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7437  (eval $ac_compile) 2>&5
7438  ac_status=$?
7439  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7440  test $ac_status = 0; }; then
7441    case `/usr/bin/file conftest.$ac_objext` in
7442      *ELF-32*)
7443	HPUX_IA64_MODE=32
7444	;;
7445      *ELF-64*)
7446	HPUX_IA64_MODE=64
7447	;;
7448    esac
7449  fi
7450  rm -rf conftest*
7451  ;;
7452*-*-irix6*)
7453  # Find out what ABI is being produced by ac_compile, and set linker
7454  # options accordingly.
7455  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7456  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7457  (eval $ac_compile) 2>&5
7458  ac_status=$?
7459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7460  test $ac_status = 0; }; then
7461    if test yes = "$lt_cv_prog_gnu_ld"; then
7462      case `/usr/bin/file conftest.$ac_objext` in
7463	*32-bit*)
7464	  LD="${LD-ld} -melf32bsmip"
7465	  ;;
7466	*N32*)
7467	  LD="${LD-ld} -melf32bmipn32"
7468	  ;;
7469	*64-bit*)
7470	  LD="${LD-ld} -melf64bmip"
7471	;;
7472      esac
7473    else
7474      case `/usr/bin/file conftest.$ac_objext` in
7475	*32-bit*)
7476	  LD="${LD-ld} -32"
7477	  ;;
7478	*N32*)
7479	  LD="${LD-ld} -n32"
7480	  ;;
7481	*64-bit*)
7482	  LD="${LD-ld} -64"
7483	  ;;
7484      esac
7485    fi
7486  fi
7487  rm -rf conftest*
7488  ;;
7489
7490mips64*-*linux*)
7491  # Find out what ABI is being produced by ac_compile, and set linker
7492  # options accordingly.
7493  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7494  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7495  (eval $ac_compile) 2>&5
7496  ac_status=$?
7497  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7498  test $ac_status = 0; }; then
7499    emul=elf
7500    case `/usr/bin/file conftest.$ac_objext` in
7501      *32-bit*)
7502	emul="${emul}32"
7503	;;
7504      *64-bit*)
7505	emul="${emul}64"
7506	;;
7507    esac
7508    case `/usr/bin/file conftest.$ac_objext` in
7509      *MSB*)
7510	emul="${emul}btsmip"
7511	;;
7512      *LSB*)
7513	emul="${emul}ltsmip"
7514	;;
7515    esac
7516    case `/usr/bin/file conftest.$ac_objext` in
7517      *N32*)
7518	emul="${emul}n32"
7519	;;
7520    esac
7521    LD="${LD-ld} -m $emul"
7522  fi
7523  rm -rf conftest*
7524  ;;
7525
7526x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7527s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7528  # Find out what ABI is being produced by ac_compile, and set linker
7529  # options accordingly.  Note that the listed cases only cover the
7530  # situations where additional linker options are needed (such as when
7531  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7532  # vice versa); the common cases where no linker options are needed do
7533  # not appear in the list.
7534  echo 'int i;' > conftest.$ac_ext
7535  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7536  (eval $ac_compile) 2>&5
7537  ac_status=$?
7538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7539  test $ac_status = 0; }; then
7540    case `/usr/bin/file conftest.o` in
7541      *32-bit*)
7542	case $host in
7543	  x86_64-*kfreebsd*-gnu)
7544	    LD="${LD-ld} -m elf_i386_fbsd"
7545	    ;;
7546	  x86_64-*linux*)
7547	    case `/usr/bin/file conftest.o` in
7548	      *x86-64*)
7549		LD="${LD-ld} -m elf32_x86_64"
7550		;;
7551	      *)
7552		LD="${LD-ld} -m elf_i386"
7553		;;
7554	    esac
7555	    ;;
7556	  powerpc64le-*linux*)
7557	    LD="${LD-ld} -m elf32lppclinux"
7558	    ;;
7559	  powerpc64-*linux*)
7560	    LD="${LD-ld} -m elf32ppclinux"
7561	    ;;
7562	  s390x-*linux*)
7563	    LD="${LD-ld} -m elf_s390"
7564	    ;;
7565	  sparc64-*linux*)
7566	    LD="${LD-ld} -m elf32_sparc"
7567	    ;;
7568	esac
7569	;;
7570      *64-bit*)
7571	case $host in
7572	  x86_64-*kfreebsd*-gnu)
7573	    LD="${LD-ld} -m elf_x86_64_fbsd"
7574	    ;;
7575	  x86_64-*linux*)
7576	    LD="${LD-ld} -m elf_x86_64"
7577	    ;;
7578	  powerpcle-*linux*)
7579	    LD="${LD-ld} -m elf64lppc"
7580	    ;;
7581	  powerpc-*linux*)
7582	    LD="${LD-ld} -m elf64ppc"
7583	    ;;
7584	  s390*-*linux*|s390*-*tpf*)
7585	    LD="${LD-ld} -m elf64_s390"
7586	    ;;
7587	  sparc*-*linux*)
7588	    LD="${LD-ld} -m elf64_sparc"
7589	    ;;
7590	esac
7591	;;
7592    esac
7593  fi
7594  rm -rf conftest*
7595  ;;
7596
7597*-*-sco3.2v5*)
7598  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7599  SAVE_CFLAGS=$CFLAGS
7600  CFLAGS="$CFLAGS -belf"
7601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7602$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7603if ${lt_cv_cc_needs_belf+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  ac_ext=c
7607ac_cpp='$CPP $CPPFLAGS'
7608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610ac_compiler_gnu=$ac_cv_c_compiler_gnu
7611
7612     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613/* end confdefs.h.  */
7614
7615int
7616main ()
7617{
7618
7619  ;
7620  return 0;
7621}
7622_ACEOF
7623if ac_fn_c_try_link "$LINENO"; then :
7624  lt_cv_cc_needs_belf=yes
7625else
7626  lt_cv_cc_needs_belf=no
7627fi
7628rm -f core conftest.err conftest.$ac_objext \
7629    conftest$ac_exeext conftest.$ac_ext
7630     ac_ext=c
7631ac_cpp='$CPP $CPPFLAGS'
7632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634ac_compiler_gnu=$ac_cv_c_compiler_gnu
7635
7636fi
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7638$as_echo "$lt_cv_cc_needs_belf" >&6; }
7639  if test yes != "$lt_cv_cc_needs_belf"; then
7640    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7641    CFLAGS=$SAVE_CFLAGS
7642  fi
7643  ;;
7644*-*solaris*)
7645  # Find out what ABI is being produced by ac_compile, and set linker
7646  # options accordingly.
7647  echo 'int i;' > conftest.$ac_ext
7648  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7649  (eval $ac_compile) 2>&5
7650  ac_status=$?
7651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7652  test $ac_status = 0; }; then
7653    case `/usr/bin/file conftest.o` in
7654    *64-bit*)
7655      case $lt_cv_prog_gnu_ld in
7656      yes*)
7657        case $host in
7658        i?86-*-solaris*|x86_64-*-solaris*)
7659          LD="${LD-ld} -m elf_x86_64"
7660          ;;
7661        sparc*-*-solaris*)
7662          LD="${LD-ld} -m elf64_sparc"
7663          ;;
7664        esac
7665        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7666        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7667          LD=${LD-ld}_sol2
7668        fi
7669        ;;
7670      *)
7671	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7672	  LD="${LD-ld} -64"
7673	fi
7674	;;
7675      esac
7676      ;;
7677    esac
7678  fi
7679  rm -rf conftest*
7680  ;;
7681esac
7682
7683need_locks=$enable_libtool_lock
7684
7685if test -n "$ac_tool_prefix"; then
7686  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7687set dummy ${ac_tool_prefix}mt; ac_word=$2
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7689$as_echo_n "checking for $ac_word... " >&6; }
7690if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7691  $as_echo_n "(cached) " >&6
7692else
7693  if test -n "$MANIFEST_TOOL"; then
7694  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7695else
7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697for as_dir in $PATH
7698do
7699  IFS=$as_save_IFS
7700  test -z "$as_dir" && as_dir=.
7701    for ac_exec_ext in '' $ac_executable_extensions; do
7702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7703    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705    break 2
7706  fi
7707done
7708  done
7709IFS=$as_save_IFS
7710
7711fi
7712fi
7713MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7714if test -n "$MANIFEST_TOOL"; then
7715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7716$as_echo "$MANIFEST_TOOL" >&6; }
7717else
7718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719$as_echo "no" >&6; }
7720fi
7721
7722
7723fi
7724if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7725  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7726  # Extract the first word of "mt", so it can be a program name with args.
7727set dummy mt; ac_word=$2
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729$as_echo_n "checking for $ac_word... " >&6; }
7730if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7731  $as_echo_n "(cached) " >&6
7732else
7733  if test -n "$ac_ct_MANIFEST_TOOL"; then
7734  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7735else
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739  IFS=$as_save_IFS
7740  test -z "$as_dir" && as_dir=.
7741    for ac_exec_ext in '' $ac_executable_extensions; do
7742  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745    break 2
7746  fi
7747done
7748  done
7749IFS=$as_save_IFS
7750
7751fi
7752fi
7753ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7754if test -n "$ac_ct_MANIFEST_TOOL"; then
7755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7756$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7757else
7758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759$as_echo "no" >&6; }
7760fi
7761
7762  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7763    MANIFEST_TOOL=":"
7764  else
7765    case $cross_compiling:$ac_tool_warned in
7766yes:)
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7769ac_tool_warned=yes ;;
7770esac
7771    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7772  fi
7773else
7774  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7775fi
7776
7777test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7779$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7780if ${lt_cv_path_mainfest_tool+:} false; then :
7781  $as_echo_n "(cached) " >&6
7782else
7783  lt_cv_path_mainfest_tool=no
7784  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7785  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7786  cat conftest.err >&5
7787  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7788    lt_cv_path_mainfest_tool=yes
7789  fi
7790  rm -f conftest*
7791fi
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7793$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7794if test yes != "$lt_cv_path_mainfest_tool"; then
7795  MANIFEST_TOOL=:
7796fi
7797
7798
7799
7800
7801
7802
7803  case $host_os in
7804    rhapsody* | darwin*)
7805    if test -n "$ac_tool_prefix"; then
7806  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7807set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809$as_echo_n "checking for $ac_word... " >&6; }
7810if ${ac_cv_prog_DSYMUTIL+:} false; then :
7811  $as_echo_n "(cached) " >&6
7812else
7813  if test -n "$DSYMUTIL"; then
7814  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7815else
7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819  IFS=$as_save_IFS
7820  test -z "$as_dir" && as_dir=.
7821    for ac_exec_ext in '' $ac_executable_extensions; do
7822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7823    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7825    break 2
7826  fi
7827done
7828  done
7829IFS=$as_save_IFS
7830
7831fi
7832fi
7833DSYMUTIL=$ac_cv_prog_DSYMUTIL
7834if test -n "$DSYMUTIL"; then
7835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7836$as_echo "$DSYMUTIL" >&6; }
7837else
7838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839$as_echo "no" >&6; }
7840fi
7841
7842
7843fi
7844if test -z "$ac_cv_prog_DSYMUTIL"; then
7845  ac_ct_DSYMUTIL=$DSYMUTIL
7846  # Extract the first word of "dsymutil", so it can be a program name with args.
7847set dummy dsymutil; ac_word=$2
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849$as_echo_n "checking for $ac_word... " >&6; }
7850if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7851  $as_echo_n "(cached) " >&6
7852else
7853  if test -n "$ac_ct_DSYMUTIL"; then
7854  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7855else
7856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857for as_dir in $PATH
7858do
7859  IFS=$as_save_IFS
7860  test -z "$as_dir" && as_dir=.
7861    for ac_exec_ext in '' $ac_executable_extensions; do
7862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7863    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865    break 2
7866  fi
7867done
7868  done
7869IFS=$as_save_IFS
7870
7871fi
7872fi
7873ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7874if test -n "$ac_ct_DSYMUTIL"; then
7875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7876$as_echo "$ac_ct_DSYMUTIL" >&6; }
7877else
7878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879$as_echo "no" >&6; }
7880fi
7881
7882  if test "x$ac_ct_DSYMUTIL" = x; then
7883    DSYMUTIL=":"
7884  else
7885    case $cross_compiling:$ac_tool_warned in
7886yes:)
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7889ac_tool_warned=yes ;;
7890esac
7891    DSYMUTIL=$ac_ct_DSYMUTIL
7892  fi
7893else
7894  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7895fi
7896
7897    if test -n "$ac_tool_prefix"; then
7898  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7899set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901$as_echo_n "checking for $ac_word... " >&6; }
7902if ${ac_cv_prog_NMEDIT+:} false; then :
7903  $as_echo_n "(cached) " >&6
7904else
7905  if test -n "$NMEDIT"; then
7906  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7907else
7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911  IFS=$as_save_IFS
7912  test -z "$as_dir" && as_dir=.
7913    for ac_exec_ext in '' $ac_executable_extensions; do
7914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917    break 2
7918  fi
7919done
7920  done
7921IFS=$as_save_IFS
7922
7923fi
7924fi
7925NMEDIT=$ac_cv_prog_NMEDIT
7926if test -n "$NMEDIT"; then
7927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7928$as_echo "$NMEDIT" >&6; }
7929else
7930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931$as_echo "no" >&6; }
7932fi
7933
7934
7935fi
7936if test -z "$ac_cv_prog_NMEDIT"; then
7937  ac_ct_NMEDIT=$NMEDIT
7938  # Extract the first word of "nmedit", so it can be a program name with args.
7939set dummy nmedit; ac_word=$2
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941$as_echo_n "checking for $ac_word... " >&6; }
7942if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7943  $as_echo_n "(cached) " >&6
7944else
7945  if test -n "$ac_ct_NMEDIT"; then
7946  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7947else
7948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949for as_dir in $PATH
7950do
7951  IFS=$as_save_IFS
7952  test -z "$as_dir" && as_dir=.
7953    for ac_exec_ext in '' $ac_executable_extensions; do
7954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957    break 2
7958  fi
7959done
7960  done
7961IFS=$as_save_IFS
7962
7963fi
7964fi
7965ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7966if test -n "$ac_ct_NMEDIT"; then
7967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7968$as_echo "$ac_ct_NMEDIT" >&6; }
7969else
7970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971$as_echo "no" >&6; }
7972fi
7973
7974  if test "x$ac_ct_NMEDIT" = x; then
7975    NMEDIT=":"
7976  else
7977    case $cross_compiling:$ac_tool_warned in
7978yes:)
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981ac_tool_warned=yes ;;
7982esac
7983    NMEDIT=$ac_ct_NMEDIT
7984  fi
7985else
7986  NMEDIT="$ac_cv_prog_NMEDIT"
7987fi
7988
7989    if test -n "$ac_tool_prefix"; then
7990  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7991set dummy ${ac_tool_prefix}lipo; ac_word=$2
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993$as_echo_n "checking for $ac_word... " >&6; }
7994if ${ac_cv_prog_LIPO+:} false; then :
7995  $as_echo_n "(cached) " >&6
7996else
7997  if test -n "$LIPO"; then
7998  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7999else
8000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001for as_dir in $PATH
8002do
8003  IFS=$as_save_IFS
8004  test -z "$as_dir" && as_dir=.
8005    for ac_exec_ext in '' $ac_executable_extensions; do
8006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8007    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009    break 2
8010  fi
8011done
8012  done
8013IFS=$as_save_IFS
8014
8015fi
8016fi
8017LIPO=$ac_cv_prog_LIPO
8018if test -n "$LIPO"; then
8019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8020$as_echo "$LIPO" >&6; }
8021else
8022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023$as_echo "no" >&6; }
8024fi
8025
8026
8027fi
8028if test -z "$ac_cv_prog_LIPO"; then
8029  ac_ct_LIPO=$LIPO
8030  # Extract the first word of "lipo", so it can be a program name with args.
8031set dummy lipo; ac_word=$2
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033$as_echo_n "checking for $ac_word... " >&6; }
8034if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8035  $as_echo_n "(cached) " >&6
8036else
8037  if test -n "$ac_ct_LIPO"; then
8038  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8039else
8040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8041for as_dir in $PATH
8042do
8043  IFS=$as_save_IFS
8044  test -z "$as_dir" && as_dir=.
8045    for ac_exec_ext in '' $ac_executable_extensions; do
8046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8047    ac_cv_prog_ac_ct_LIPO="lipo"
8048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8049    break 2
8050  fi
8051done
8052  done
8053IFS=$as_save_IFS
8054
8055fi
8056fi
8057ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8058if test -n "$ac_ct_LIPO"; then
8059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8060$as_echo "$ac_ct_LIPO" >&6; }
8061else
8062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063$as_echo "no" >&6; }
8064fi
8065
8066  if test "x$ac_ct_LIPO" = x; then
8067    LIPO=":"
8068  else
8069    case $cross_compiling:$ac_tool_warned in
8070yes:)
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8073ac_tool_warned=yes ;;
8074esac
8075    LIPO=$ac_ct_LIPO
8076  fi
8077else
8078  LIPO="$ac_cv_prog_LIPO"
8079fi
8080
8081    if test -n "$ac_tool_prefix"; then
8082  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8083set dummy ${ac_tool_prefix}otool; ac_word=$2
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8085$as_echo_n "checking for $ac_word... " >&6; }
8086if ${ac_cv_prog_OTOOL+:} false; then :
8087  $as_echo_n "(cached) " >&6
8088else
8089  if test -n "$OTOOL"; then
8090  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8091else
8092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8093for as_dir in $PATH
8094do
8095  IFS=$as_save_IFS
8096  test -z "$as_dir" && as_dir=.
8097    for ac_exec_ext in '' $ac_executable_extensions; do
8098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8099    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8101    break 2
8102  fi
8103done
8104  done
8105IFS=$as_save_IFS
8106
8107fi
8108fi
8109OTOOL=$ac_cv_prog_OTOOL
8110if test -n "$OTOOL"; then
8111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8112$as_echo "$OTOOL" >&6; }
8113else
8114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115$as_echo "no" >&6; }
8116fi
8117
8118
8119fi
8120if test -z "$ac_cv_prog_OTOOL"; then
8121  ac_ct_OTOOL=$OTOOL
8122  # Extract the first word of "otool", so it can be a program name with args.
8123set dummy otool; ac_word=$2
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125$as_echo_n "checking for $ac_word... " >&6; }
8126if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8127  $as_echo_n "(cached) " >&6
8128else
8129  if test -n "$ac_ct_OTOOL"; then
8130  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8131else
8132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133for as_dir in $PATH
8134do
8135  IFS=$as_save_IFS
8136  test -z "$as_dir" && as_dir=.
8137    for ac_exec_ext in '' $ac_executable_extensions; do
8138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8139    ac_cv_prog_ac_ct_OTOOL="otool"
8140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141    break 2
8142  fi
8143done
8144  done
8145IFS=$as_save_IFS
8146
8147fi
8148fi
8149ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8150if test -n "$ac_ct_OTOOL"; then
8151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8152$as_echo "$ac_ct_OTOOL" >&6; }
8153else
8154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155$as_echo "no" >&6; }
8156fi
8157
8158  if test "x$ac_ct_OTOOL" = x; then
8159    OTOOL=":"
8160  else
8161    case $cross_compiling:$ac_tool_warned in
8162yes:)
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8165ac_tool_warned=yes ;;
8166esac
8167    OTOOL=$ac_ct_OTOOL
8168  fi
8169else
8170  OTOOL="$ac_cv_prog_OTOOL"
8171fi
8172
8173    if test -n "$ac_tool_prefix"; then
8174  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8175set dummy ${ac_tool_prefix}otool64; ac_word=$2
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177$as_echo_n "checking for $ac_word... " >&6; }
8178if ${ac_cv_prog_OTOOL64+:} false; then :
8179  $as_echo_n "(cached) " >&6
8180else
8181  if test -n "$OTOOL64"; then
8182  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8183else
8184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185for as_dir in $PATH
8186do
8187  IFS=$as_save_IFS
8188  test -z "$as_dir" && as_dir=.
8189    for ac_exec_ext in '' $ac_executable_extensions; do
8190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8191    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193    break 2
8194  fi
8195done
8196  done
8197IFS=$as_save_IFS
8198
8199fi
8200fi
8201OTOOL64=$ac_cv_prog_OTOOL64
8202if test -n "$OTOOL64"; then
8203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8204$as_echo "$OTOOL64" >&6; }
8205else
8206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207$as_echo "no" >&6; }
8208fi
8209
8210
8211fi
8212if test -z "$ac_cv_prog_OTOOL64"; then
8213  ac_ct_OTOOL64=$OTOOL64
8214  # Extract the first word of "otool64", so it can be a program name with args.
8215set dummy otool64; ac_word=$2
8216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217$as_echo_n "checking for $ac_word... " >&6; }
8218if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8219  $as_echo_n "(cached) " >&6
8220else
8221  if test -n "$ac_ct_OTOOL64"; then
8222  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8223else
8224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225for as_dir in $PATH
8226do
8227  IFS=$as_save_IFS
8228  test -z "$as_dir" && as_dir=.
8229    for ac_exec_ext in '' $ac_executable_extensions; do
8230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231    ac_cv_prog_ac_ct_OTOOL64="otool64"
8232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233    break 2
8234  fi
8235done
8236  done
8237IFS=$as_save_IFS
8238
8239fi
8240fi
8241ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8242if test -n "$ac_ct_OTOOL64"; then
8243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8244$as_echo "$ac_ct_OTOOL64" >&6; }
8245else
8246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247$as_echo "no" >&6; }
8248fi
8249
8250  if test "x$ac_ct_OTOOL64" = x; then
8251    OTOOL64=":"
8252  else
8253    case $cross_compiling:$ac_tool_warned in
8254yes:)
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8257ac_tool_warned=yes ;;
8258esac
8259    OTOOL64=$ac_ct_OTOOL64
8260  fi
8261else
8262  OTOOL64="$ac_cv_prog_OTOOL64"
8263fi
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8292$as_echo_n "checking for -single_module linker flag... " >&6; }
8293if ${lt_cv_apple_cc_single_mod+:} false; then :
8294  $as_echo_n "(cached) " >&6
8295else
8296  lt_cv_apple_cc_single_mod=no
8297      if test -z "$LT_MULTI_MODULE"; then
8298	# By default we will add the -single_module flag. You can override
8299	# by either setting the environment variable LT_MULTI_MODULE
8300	# non-empty at configure time, or by adding -multi_module to the
8301	# link flags.
8302	rm -rf libconftest.dylib*
8303	echo "int foo(void){return 1;}" > conftest.c
8304	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8305-dynamiclib -Wl,-single_module conftest.c" >&5
8306	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8307	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8308        _lt_result=$?
8309	# If there is a non-empty error log, and "single_module"
8310	# appears in it, assume the flag caused a linker warning
8311        if test -s conftest.err && $GREP single_module conftest.err; then
8312	  cat conftest.err >&5
8313	# Otherwise, if the output was created with a 0 exit code from
8314	# the compiler, it worked.
8315	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8316	  lt_cv_apple_cc_single_mod=yes
8317	else
8318	  cat conftest.err >&5
8319	fi
8320	rm -rf libconftest.dylib*
8321	rm -f conftest.*
8322      fi
8323fi
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8325$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8326
8327    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8328$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8329if ${lt_cv_ld_exported_symbols_list+:} false; then :
8330  $as_echo_n "(cached) " >&6
8331else
8332  lt_cv_ld_exported_symbols_list=no
8333      save_LDFLAGS=$LDFLAGS
8334      echo "_main" > conftest.sym
8335      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8336      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h.  */
8338
8339int
8340main ()
8341{
8342
8343  ;
8344  return 0;
8345}
8346_ACEOF
8347if ac_fn_c_try_link "$LINENO"; then :
8348  lt_cv_ld_exported_symbols_list=yes
8349else
8350  lt_cv_ld_exported_symbols_list=no
8351fi
8352rm -f core conftest.err conftest.$ac_objext \
8353    conftest$ac_exeext conftest.$ac_ext
8354	LDFLAGS=$save_LDFLAGS
8355
8356fi
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8358$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8359
8360    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8361$as_echo_n "checking for -force_load linker flag... " >&6; }
8362if ${lt_cv_ld_force_load+:} false; then :
8363  $as_echo_n "(cached) " >&6
8364else
8365  lt_cv_ld_force_load=no
8366      cat > conftest.c << _LT_EOF
8367int forced_loaded() { return 2;}
8368_LT_EOF
8369      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8370      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8371      echo "$AR cru libconftest.a conftest.o" >&5
8372      $AR cru libconftest.a conftest.o 2>&5
8373      echo "$RANLIB libconftest.a" >&5
8374      $RANLIB libconftest.a 2>&5
8375      cat > conftest.c << _LT_EOF
8376int main() { return 0;}
8377_LT_EOF
8378      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8379      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8380      _lt_result=$?
8381      if test -s conftest.err && $GREP force_load conftest.err; then
8382	cat conftest.err >&5
8383      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8384	lt_cv_ld_force_load=yes
8385      else
8386	cat conftest.err >&5
8387      fi
8388        rm -f conftest.err libconftest.a conftest conftest.c
8389        rm -rf conftest.dSYM
8390
8391fi
8392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8393$as_echo "$lt_cv_ld_force_load" >&6; }
8394    case $host_os in
8395    rhapsody* | darwin1.[012])
8396      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8397    darwin1.*)
8398      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8399    darwin*) # darwin 5.x on
8400      # if running on 10.5 or later, the deployment target defaults
8401      # to the OS version, if on x86, and 10.4, the deployment
8402      # target defaults to 10.4. Don't you love it?
8403      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8404	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8405	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8406	10.[012][,.]*)
8407	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8408	10.*)
8409	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8410      esac
8411    ;;
8412  esac
8413    if test yes = "$lt_cv_apple_cc_single_mod"; then
8414      _lt_dar_single_mod='$single_module'
8415    fi
8416    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8417      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8418    else
8419      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8420    fi
8421    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8422      _lt_dsymutil='~$DSYMUTIL $lib || :'
8423    else
8424      _lt_dsymutil=
8425    fi
8426    ;;
8427  esac
8428
8429# func_munge_path_list VARIABLE PATH
8430# -----------------------------------
8431# VARIABLE is name of variable containing _space_ separated list of
8432# directories to be munged by the contents of PATH, which is string
8433# having a format:
8434# "DIR[:DIR]:"
8435#       string "DIR[ DIR]" will be prepended to VARIABLE
8436# ":DIR[:DIR]"
8437#       string "DIR[ DIR]" will be appended to VARIABLE
8438# "DIRP[:DIRP]::[DIRA:]DIRA"
8439#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8440#       "DIRA[ DIRA]" will be appended to VARIABLE
8441# "DIR[:DIR]"
8442#       VARIABLE will be replaced by "DIR[ DIR]"
8443func_munge_path_list ()
8444{
8445    case x$2 in
8446    x)
8447        ;;
8448    *:)
8449        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8450        ;;
8451    x:*)
8452        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8453        ;;
8454    *::*)
8455        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8456        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8457        ;;
8458    *)
8459        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8460        ;;
8461    esac
8462}
8463
8464for ac_header in dlfcn.h
8465do :
8466  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8467"
8468if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8469  cat >>confdefs.h <<_ACEOF
8470#define HAVE_DLFCN_H 1
8471_ACEOF
8472
8473fi
8474
8475done
8476
8477
8478
8479
8480
8481# Set options
8482
8483
8484
8485        enable_dlopen=no
8486
8487
8488  enable_win32_dll=no
8489
8490
8491            # Check whether --enable-shared was given.
8492if test "${enable_shared+set}" = set; then :
8493  enableval=$enable_shared; p=${PACKAGE-default}
8494    case $enableval in
8495    yes) enable_shared=yes ;;
8496    no) enable_shared=no ;;
8497    *)
8498      enable_shared=no
8499      # Look at the argument we got.  We use all the common list separators.
8500      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8501      for pkg in $enableval; do
8502	IFS=$lt_save_ifs
8503	if test "X$pkg" = "X$p"; then
8504	  enable_shared=yes
8505	fi
8506      done
8507      IFS=$lt_save_ifs
8508      ;;
8509    esac
8510else
8511  enable_shared=yes
8512fi
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522  # Check whether --enable-static was given.
8523if test "${enable_static+set}" = set; then :
8524  enableval=$enable_static; p=${PACKAGE-default}
8525    case $enableval in
8526    yes) enable_static=yes ;;
8527    no) enable_static=no ;;
8528    *)
8529     enable_static=no
8530      # Look at the argument we got.  We use all the common list separators.
8531      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8532      for pkg in $enableval; do
8533	IFS=$lt_save_ifs
8534	if test "X$pkg" = "X$p"; then
8535	  enable_static=yes
8536	fi
8537      done
8538      IFS=$lt_save_ifs
8539      ;;
8540    esac
8541else
8542  enable_static=yes
8543fi
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554# Check whether --with-pic was given.
8555if test "${with_pic+set}" = set; then :
8556  withval=$with_pic; lt_p=${PACKAGE-default}
8557    case $withval in
8558    yes|no) pic_mode=$withval ;;
8559    *)
8560      pic_mode=default
8561      # Look at the argument we got.  We use all the common list separators.
8562      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8563      for lt_pkg in $withval; do
8564	IFS=$lt_save_ifs
8565	if test "X$lt_pkg" = "X$lt_p"; then
8566	  pic_mode=yes
8567	fi
8568      done
8569      IFS=$lt_save_ifs
8570      ;;
8571    esac
8572else
8573  pic_mode=default
8574fi
8575
8576
8577
8578
8579
8580
8581
8582
8583  # Check whether --enable-fast-install was given.
8584if test "${enable_fast_install+set}" = set; then :
8585  enableval=$enable_fast_install; p=${PACKAGE-default}
8586    case $enableval in
8587    yes) enable_fast_install=yes ;;
8588    no) enable_fast_install=no ;;
8589    *)
8590      enable_fast_install=no
8591      # Look at the argument we got.  We use all the common list separators.
8592      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8593      for pkg in $enableval; do
8594	IFS=$lt_save_ifs
8595	if test "X$pkg" = "X$p"; then
8596	  enable_fast_install=yes
8597	fi
8598      done
8599      IFS=$lt_save_ifs
8600      ;;
8601    esac
8602else
8603  enable_fast_install=yes
8604fi
8605
8606
8607
8608
8609
8610
8611
8612
8613  shared_archive_member_spec=
8614case $host,$enable_shared in
8615power*-*-aix[5-9]*,yes)
8616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8617$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8618
8619# Check whether --with-aix-soname was given.
8620if test "${with_aix_soname+set}" = set; then :
8621  withval=$with_aix_soname; case $withval in
8622    aix|svr4|both)
8623      ;;
8624    *)
8625      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8626      ;;
8627    esac
8628    lt_cv_with_aix_soname=$with_aix_soname
8629else
8630  if ${lt_cv_with_aix_soname+:} false; then :
8631  $as_echo_n "(cached) " >&6
8632else
8633  lt_cv_with_aix_soname=aix
8634fi
8635
8636    with_aix_soname=$lt_cv_with_aix_soname
8637fi
8638
8639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8640$as_echo "$with_aix_soname" >&6; }
8641  if test aix != "$with_aix_soname"; then
8642    # For the AIX way of multilib, we name the shared archive member
8643    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8644    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8645    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8646    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8647    if test 64 = "${OBJECT_MODE-32}"; then
8648      shared_archive_member_spec=shr_64
8649    else
8650      shared_archive_member_spec=shr
8651    fi
8652  fi
8653  ;;
8654*)
8655  with_aix_soname=aix
8656  ;;
8657esac
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668# This can be used to rebuild libtool when needed
8669LIBTOOL_DEPS=$ltmain
8670
8671# Always use our own libtool.
8672LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703test -z "$LN_S" && LN_S="ln -s"
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718if test -n "${ZSH_VERSION+set}"; then
8719   setopt NO_GLOB_SUBST
8720fi
8721
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8723$as_echo_n "checking for objdir... " >&6; }
8724if ${lt_cv_objdir+:} false; then :
8725  $as_echo_n "(cached) " >&6
8726else
8727  rm -f .libs 2>/dev/null
8728mkdir .libs 2>/dev/null
8729if test -d .libs; then
8730  lt_cv_objdir=.libs
8731else
8732  # MS-DOS does not allow filenames that begin with a dot.
8733  lt_cv_objdir=_libs
8734fi
8735rmdir .libs 2>/dev/null
8736fi
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8738$as_echo "$lt_cv_objdir" >&6; }
8739objdir=$lt_cv_objdir
8740
8741
8742
8743
8744
8745cat >>confdefs.h <<_ACEOF
8746#define LT_OBJDIR "$lt_cv_objdir/"
8747_ACEOF
8748
8749
8750
8751
8752case $host_os in
8753aix3*)
8754  # AIX sometimes has problems with the GCC collect2 program.  For some
8755  # reason, if we set the COLLECT_NAMES environment variable, the problems
8756  # vanish in a puff of smoke.
8757  if test set != "${COLLECT_NAMES+set}"; then
8758    COLLECT_NAMES=
8759    export COLLECT_NAMES
8760  fi
8761  ;;
8762esac
8763
8764# Global variables:
8765ofile=libtool
8766can_build_shared=yes
8767
8768# All known linkers require a '.a' archive for static linking (except MSVC,
8769# which needs '.lib').
8770libext=a
8771
8772with_gnu_ld=$lt_cv_prog_gnu_ld
8773
8774old_CC=$CC
8775old_CFLAGS=$CFLAGS
8776
8777# Set sane defaults for various variables
8778test -z "$CC" && CC=cc
8779test -z "$LTCC" && LTCC=$CC
8780test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8781test -z "$LD" && LD=ld
8782test -z "$ac_objext" && ac_objext=o
8783
8784func_cc_basename $compiler
8785cc_basename=$func_cc_basename_result
8786
8787
8788# Only perform the check for file, if the check method requires it
8789test -z "$MAGIC_CMD" && MAGIC_CMD=file
8790case $deplibs_check_method in
8791file_magic*)
8792  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8793    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8794$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8795if ${lt_cv_path_MAGIC_CMD+:} false; then :
8796  $as_echo_n "(cached) " >&6
8797else
8798  case $MAGIC_CMD in
8799[\\/*] |  ?:[\\/]*)
8800  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8801  ;;
8802*)
8803  lt_save_MAGIC_CMD=$MAGIC_CMD
8804  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8805  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8806  for ac_dir in $ac_dummy; do
8807    IFS=$lt_save_ifs
8808    test -z "$ac_dir" && ac_dir=.
8809    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8810      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8811      if test -n "$file_magic_test_file"; then
8812	case $deplibs_check_method in
8813	"file_magic "*)
8814	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8815	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8816	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8817	    $EGREP "$file_magic_regex" > /dev/null; then
8818	    :
8819	  else
8820	    cat <<_LT_EOF 1>&2
8821
8822*** Warning: the command libtool uses to detect shared libraries,
8823*** $file_magic_cmd, produces output that libtool cannot recognize.
8824*** The result is that libtool may fail to recognize shared libraries
8825*** as such.  This will affect the creation of libtool libraries that
8826*** depend on shared libraries, but programs linked with such libtool
8827*** libraries will work regardless of this problem.  Nevertheless, you
8828*** may want to report the problem to your system manager and/or to
8829*** bug-libtool@gnu.org
8830
8831_LT_EOF
8832	  fi ;;
8833	esac
8834      fi
8835      break
8836    fi
8837  done
8838  IFS=$lt_save_ifs
8839  MAGIC_CMD=$lt_save_MAGIC_CMD
8840  ;;
8841esac
8842fi
8843
8844MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8845if test -n "$MAGIC_CMD"; then
8846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8847$as_echo "$MAGIC_CMD" >&6; }
8848else
8849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850$as_echo "no" >&6; }
8851fi
8852
8853
8854
8855
8856
8857if test -z "$lt_cv_path_MAGIC_CMD"; then
8858  if test -n "$ac_tool_prefix"; then
8859    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8860$as_echo_n "checking for file... " >&6; }
8861if ${lt_cv_path_MAGIC_CMD+:} false; then :
8862  $as_echo_n "(cached) " >&6
8863else
8864  case $MAGIC_CMD in
8865[\\/*] |  ?:[\\/]*)
8866  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8867  ;;
8868*)
8869  lt_save_MAGIC_CMD=$MAGIC_CMD
8870  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8871  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8872  for ac_dir in $ac_dummy; do
8873    IFS=$lt_save_ifs
8874    test -z "$ac_dir" && ac_dir=.
8875    if test -f "$ac_dir/file"; then
8876      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8877      if test -n "$file_magic_test_file"; then
8878	case $deplibs_check_method in
8879	"file_magic "*)
8880	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8881	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8882	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8883	    $EGREP "$file_magic_regex" > /dev/null; then
8884	    :
8885	  else
8886	    cat <<_LT_EOF 1>&2
8887
8888*** Warning: the command libtool uses to detect shared libraries,
8889*** $file_magic_cmd, produces output that libtool cannot recognize.
8890*** The result is that libtool may fail to recognize shared libraries
8891*** as such.  This will affect the creation of libtool libraries that
8892*** depend on shared libraries, but programs linked with such libtool
8893*** libraries will work regardless of this problem.  Nevertheless, you
8894*** may want to report the problem to your system manager and/or to
8895*** bug-libtool@gnu.org
8896
8897_LT_EOF
8898	  fi ;;
8899	esac
8900      fi
8901      break
8902    fi
8903  done
8904  IFS=$lt_save_ifs
8905  MAGIC_CMD=$lt_save_MAGIC_CMD
8906  ;;
8907esac
8908fi
8909
8910MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8911if test -n "$MAGIC_CMD"; then
8912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8913$as_echo "$MAGIC_CMD" >&6; }
8914else
8915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916$as_echo "no" >&6; }
8917fi
8918
8919
8920  else
8921    MAGIC_CMD=:
8922  fi
8923fi
8924
8925  fi
8926  ;;
8927esac
8928
8929# Use C for the default configuration in the libtool script
8930
8931lt_save_CC=$CC
8932ac_ext=c
8933ac_cpp='$CPP $CPPFLAGS'
8934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8936ac_compiler_gnu=$ac_cv_c_compiler_gnu
8937
8938
8939# Source file extension for C test sources.
8940ac_ext=c
8941
8942# Object file extension for compiled C test sources.
8943objext=o
8944objext=$objext
8945
8946# Code to be used in simple compile tests
8947lt_simple_compile_test_code="int some_variable = 0;"
8948
8949# Code to be used in simple link tests
8950lt_simple_link_test_code='int main(){return(0);}'
8951
8952
8953
8954
8955
8956
8957
8958# If no C compiler was specified, use CC.
8959LTCC=${LTCC-"$CC"}
8960
8961# If no C compiler flags were specified, use CFLAGS.
8962LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8963
8964# Allow CC to be a program name with arguments.
8965compiler=$CC
8966
8967# Save the default compiler, since it gets overwritten when the other
8968# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8969compiler_DEFAULT=$CC
8970
8971# save warnings/boilerplate of simple test code
8972ac_outfile=conftest.$ac_objext
8973echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8974eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8975_lt_compiler_boilerplate=`cat conftest.err`
8976$RM conftest*
8977
8978ac_outfile=conftest.$ac_objext
8979echo "$lt_simple_link_test_code" >conftest.$ac_ext
8980eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8981_lt_linker_boilerplate=`cat conftest.err`
8982$RM -r conftest*
8983
8984
8985## CAVEAT EMPTOR:
8986## There is no encapsulation within the following macros, do not change
8987## the running order or otherwise move them around unless you know exactly
8988## what you are doing...
8989if test -n "$compiler"; then
8990
8991lt_prog_compiler_no_builtin_flag=
8992
8993if test yes = "$GCC"; then
8994  case $cc_basename in
8995  nvcc*)
8996    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8997  *)
8998    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8999  esac
9000
9001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9002$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9003if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9004  $as_echo_n "(cached) " >&6
9005else
9006  lt_cv_prog_compiler_rtti_exceptions=no
9007   ac_outfile=conftest.$ac_objext
9008   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9009   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9010   # Insert the option either (1) after the last *FLAGS variable, or
9011   # (2) before a word containing "conftest.", or (3) at the end.
9012   # Note that $ac_compile itself does not contain backslashes and begins
9013   # with a dollar sign (not a hyphen), so the echo should work correctly.
9014   # The option is referenced via a variable to avoid confusing sed.
9015   lt_compile=`echo "$ac_compile" | $SED \
9016   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9017   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9018   -e 's:$: $lt_compiler_flag:'`
9019   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9020   (eval "$lt_compile" 2>conftest.err)
9021   ac_status=$?
9022   cat conftest.err >&5
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   if (exit $ac_status) && test -s "$ac_outfile"; then
9025     # The compiler can only warn and ignore the option if not recognized
9026     # So say no if there are warnings other than the usual output.
9027     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9028     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9029     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9030       lt_cv_prog_compiler_rtti_exceptions=yes
9031     fi
9032   fi
9033   $RM conftest*
9034
9035fi
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9037$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9038
9039if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9040    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9041else
9042    :
9043fi
9044
9045fi
9046
9047
9048
9049
9050
9051
9052  lt_prog_compiler_wl=
9053lt_prog_compiler_pic=
9054lt_prog_compiler_static=
9055
9056
9057  if test yes = "$GCC"; then
9058    lt_prog_compiler_wl='-Wl,'
9059    lt_prog_compiler_static='-static'
9060
9061    case $host_os in
9062      aix*)
9063      # All AIX code is PIC.
9064      if test ia64 = "$host_cpu"; then
9065	# AIX 5 now supports IA64 processor
9066	lt_prog_compiler_static='-Bstatic'
9067      fi
9068      lt_prog_compiler_pic='-fPIC'
9069      ;;
9070
9071    amigaos*)
9072      case $host_cpu in
9073      powerpc)
9074            # see comment about AmigaOS4 .so support
9075            lt_prog_compiler_pic='-fPIC'
9076        ;;
9077      m68k)
9078            # FIXME: we need at least 68020 code to build shared libraries, but
9079            # adding the '-m68020' flag to GCC prevents building anything better,
9080            # like '-m68040'.
9081            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9082        ;;
9083      esac
9084      ;;
9085
9086    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9087      # PIC is the default for these OSes.
9088      ;;
9089
9090    mingw* | cygwin* | pw32* | os2* | cegcc*)
9091      # This hack is so that the source file can tell whether it is being
9092      # built for inclusion in a dll (and should export symbols for example).
9093      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9094      # (--disable-auto-import) libraries
9095      lt_prog_compiler_pic='-DDLL_EXPORT'
9096      case $host_os in
9097      os2*)
9098	lt_prog_compiler_static='$wl-static'
9099	;;
9100      esac
9101      ;;
9102
9103    darwin* | rhapsody*)
9104      # PIC is the default on this platform
9105      # Common symbols not allowed in MH_DYLIB files
9106      lt_prog_compiler_pic='-fno-common'
9107      ;;
9108
9109    haiku*)
9110      # PIC is the default for Haiku.
9111      # The "-static" flag exists, but is broken.
9112      lt_prog_compiler_static=
9113      ;;
9114
9115    hpux*)
9116      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9117      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9118      # sets the default TLS model and affects inlining.
9119      case $host_cpu in
9120      hppa*64*)
9121	# +Z the default
9122	;;
9123      *)
9124	lt_prog_compiler_pic='-fPIC'
9125	;;
9126      esac
9127      ;;
9128
9129    interix[3-9]*)
9130      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9131      # Instead, we relocate shared libraries at runtime.
9132      ;;
9133
9134    msdosdjgpp*)
9135      # Just because we use GCC doesn't mean we suddenly get shared libraries
9136      # on systems that don't support them.
9137      lt_prog_compiler_can_build_shared=no
9138      enable_shared=no
9139      ;;
9140
9141    *nto* | *qnx*)
9142      # QNX uses GNU C++, but need to define -shared option too, otherwise
9143      # it will coredump.
9144      lt_prog_compiler_pic='-fPIC -shared'
9145      ;;
9146
9147    sysv4*MP*)
9148      if test -d /usr/nec; then
9149	lt_prog_compiler_pic=-Kconform_pic
9150      fi
9151      ;;
9152
9153    *)
9154      lt_prog_compiler_pic='-fPIC'
9155      ;;
9156    esac
9157
9158    case $cc_basename in
9159    nvcc*) # Cuda Compiler Driver 2.2
9160      lt_prog_compiler_wl='-Xlinker '
9161      if test -n "$lt_prog_compiler_pic"; then
9162        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9163      fi
9164      ;;
9165    esac
9166  else
9167    # PORTME Check for flag to pass linker flags through the system compiler.
9168    case $host_os in
9169    aix*)
9170      lt_prog_compiler_wl='-Wl,'
9171      if test ia64 = "$host_cpu"; then
9172	# AIX 5 now supports IA64 processor
9173	lt_prog_compiler_static='-Bstatic'
9174      else
9175	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9176      fi
9177      ;;
9178
9179    darwin* | rhapsody*)
9180      # PIC is the default on this platform
9181      # Common symbols not allowed in MH_DYLIB files
9182      lt_prog_compiler_pic='-fno-common'
9183      case $cc_basename in
9184      nagfor*)
9185        # NAG Fortran compiler
9186        lt_prog_compiler_wl='-Wl,-Wl,,'
9187        lt_prog_compiler_pic='-PIC'
9188        lt_prog_compiler_static='-Bstatic'
9189        ;;
9190      esac
9191      ;;
9192
9193    mingw* | cygwin* | pw32* | os2* | cegcc*)
9194      # This hack is so that the source file can tell whether it is being
9195      # built for inclusion in a dll (and should export symbols for example).
9196      lt_prog_compiler_pic='-DDLL_EXPORT'
9197      case $host_os in
9198      os2*)
9199	lt_prog_compiler_static='$wl-static'
9200	;;
9201      esac
9202      ;;
9203
9204    hpux9* | hpux10* | hpux11*)
9205      lt_prog_compiler_wl='-Wl,'
9206      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9207      # not for PA HP-UX.
9208      case $host_cpu in
9209      hppa*64*|ia64*)
9210	# +Z the default
9211	;;
9212      *)
9213	lt_prog_compiler_pic='+Z'
9214	;;
9215      esac
9216      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9217      lt_prog_compiler_static='$wl-a ${wl}archive'
9218      ;;
9219
9220    irix5* | irix6* | nonstopux*)
9221      lt_prog_compiler_wl='-Wl,'
9222      # PIC (with -KPIC) is the default.
9223      lt_prog_compiler_static='-non_shared'
9224      ;;
9225
9226    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9227      case $cc_basename in
9228      # old Intel for x86_64, which still supported -KPIC.
9229      ecc*)
9230	lt_prog_compiler_wl='-Wl,'
9231	lt_prog_compiler_pic='-KPIC'
9232	lt_prog_compiler_static='-static'
9233        ;;
9234      # icc used to be incompatible with GCC.
9235      # ICC 10 doesn't accept -KPIC any more.
9236      icc* | ifort*)
9237	lt_prog_compiler_wl='-Wl,'
9238	lt_prog_compiler_pic='-fPIC'
9239	lt_prog_compiler_static='-static'
9240        ;;
9241      # Lahey Fortran 8.1.
9242      lf95*)
9243	lt_prog_compiler_wl='-Wl,'
9244	lt_prog_compiler_pic='--shared'
9245	lt_prog_compiler_static='--static'
9246	;;
9247      nagfor*)
9248	# NAG Fortran compiler
9249	lt_prog_compiler_wl='-Wl,-Wl,,'
9250	lt_prog_compiler_pic='-PIC'
9251	lt_prog_compiler_static='-Bstatic'
9252	;;
9253      tcc*)
9254	# Fabrice Bellard et al's Tiny C Compiler
9255	lt_prog_compiler_wl='-Wl,'
9256	lt_prog_compiler_pic='-fPIC'
9257	lt_prog_compiler_static='-static'
9258	;;
9259      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9260        # Portland Group compilers (*not* the Pentium gcc compiler,
9261	# which looks to be a dead project)
9262	lt_prog_compiler_wl='-Wl,'
9263	lt_prog_compiler_pic='-fpic'
9264	lt_prog_compiler_static='-Bstatic'
9265        ;;
9266      ccc*)
9267        lt_prog_compiler_wl='-Wl,'
9268        # All Alpha code is PIC.
9269        lt_prog_compiler_static='-non_shared'
9270        ;;
9271      xl* | bgxl* | bgf* | mpixl*)
9272	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9273	lt_prog_compiler_wl='-Wl,'
9274	lt_prog_compiler_pic='-qpic'
9275	lt_prog_compiler_static='-qstaticlink'
9276	;;
9277      *)
9278	case `$CC -V 2>&1 | sed 5q` in
9279	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9280	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9281	  lt_prog_compiler_pic='-KPIC'
9282	  lt_prog_compiler_static='-Bstatic'
9283	  lt_prog_compiler_wl=''
9284	  ;;
9285	*Sun\ F* | *Sun*Fortran*)
9286	  lt_prog_compiler_pic='-KPIC'
9287	  lt_prog_compiler_static='-Bstatic'
9288	  lt_prog_compiler_wl='-Qoption ld '
9289	  ;;
9290	*Sun\ C*)
9291	  # Sun C 5.9
9292	  lt_prog_compiler_pic='-KPIC'
9293	  lt_prog_compiler_static='-Bstatic'
9294	  lt_prog_compiler_wl='-Wl,'
9295	  ;;
9296        *Intel*\ [CF]*Compiler*)
9297	  lt_prog_compiler_wl='-Wl,'
9298	  lt_prog_compiler_pic='-fPIC'
9299	  lt_prog_compiler_static='-static'
9300	  ;;
9301	*Portland\ Group*)
9302	  lt_prog_compiler_wl='-Wl,'
9303	  lt_prog_compiler_pic='-fpic'
9304	  lt_prog_compiler_static='-Bstatic'
9305	  ;;
9306	esac
9307	;;
9308      esac
9309      ;;
9310
9311    newsos6)
9312      lt_prog_compiler_pic='-KPIC'
9313      lt_prog_compiler_static='-Bstatic'
9314      ;;
9315
9316    *nto* | *qnx*)
9317      # QNX uses GNU C++, but need to define -shared option too, otherwise
9318      # it will coredump.
9319      lt_prog_compiler_pic='-fPIC -shared'
9320      ;;
9321
9322    osf3* | osf4* | osf5*)
9323      lt_prog_compiler_wl='-Wl,'
9324      # All OSF/1 code is PIC.
9325      lt_prog_compiler_static='-non_shared'
9326      ;;
9327
9328    rdos*)
9329      lt_prog_compiler_static='-non_shared'
9330      ;;
9331
9332    solaris*)
9333      lt_prog_compiler_pic='-KPIC'
9334      lt_prog_compiler_static='-Bstatic'
9335      case $cc_basename in
9336      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9337	lt_prog_compiler_wl='-Qoption ld ';;
9338      *)
9339	lt_prog_compiler_wl='-Wl,';;
9340      esac
9341      ;;
9342
9343    sunos4*)
9344      lt_prog_compiler_wl='-Qoption ld '
9345      lt_prog_compiler_pic='-PIC'
9346      lt_prog_compiler_static='-Bstatic'
9347      ;;
9348
9349    sysv4 | sysv4.2uw2* | sysv4.3*)
9350      lt_prog_compiler_wl='-Wl,'
9351      lt_prog_compiler_pic='-KPIC'
9352      lt_prog_compiler_static='-Bstatic'
9353      ;;
9354
9355    sysv4*MP*)
9356      if test -d /usr/nec; then
9357	lt_prog_compiler_pic='-Kconform_pic'
9358	lt_prog_compiler_static='-Bstatic'
9359      fi
9360      ;;
9361
9362    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9363      lt_prog_compiler_wl='-Wl,'
9364      lt_prog_compiler_pic='-KPIC'
9365      lt_prog_compiler_static='-Bstatic'
9366      ;;
9367
9368    unicos*)
9369      lt_prog_compiler_wl='-Wl,'
9370      lt_prog_compiler_can_build_shared=no
9371      ;;
9372
9373    uts4*)
9374      lt_prog_compiler_pic='-pic'
9375      lt_prog_compiler_static='-Bstatic'
9376      ;;
9377
9378    *)
9379      lt_prog_compiler_can_build_shared=no
9380      ;;
9381    esac
9382  fi
9383
9384case $host_os in
9385  # For platforms that do not support PIC, -DPIC is meaningless:
9386  *djgpp*)
9387    lt_prog_compiler_pic=
9388    ;;
9389  *)
9390    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9391    ;;
9392esac
9393
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9395$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9396if ${lt_cv_prog_compiler_pic+:} false; then :
9397  $as_echo_n "(cached) " >&6
9398else
9399  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9400fi
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9402$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9403lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9404
9405#
9406# Check to make sure the PIC flag actually works.
9407#
9408if test -n "$lt_prog_compiler_pic"; then
9409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9410$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9411if ${lt_cv_prog_compiler_pic_works+:} false; then :
9412  $as_echo_n "(cached) " >&6
9413else
9414  lt_cv_prog_compiler_pic_works=no
9415   ac_outfile=conftest.$ac_objext
9416   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9417   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9418   # Insert the option either (1) after the last *FLAGS variable, or
9419   # (2) before a word containing "conftest.", or (3) at the end.
9420   # Note that $ac_compile itself does not contain backslashes and begins
9421   # with a dollar sign (not a hyphen), so the echo should work correctly.
9422   # The option is referenced via a variable to avoid confusing sed.
9423   lt_compile=`echo "$ac_compile" | $SED \
9424   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9425   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9426   -e 's:$: $lt_compiler_flag:'`
9427   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9428   (eval "$lt_compile" 2>conftest.err)
9429   ac_status=$?
9430   cat conftest.err >&5
9431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432   if (exit $ac_status) && test -s "$ac_outfile"; then
9433     # The compiler can only warn and ignore the option if not recognized
9434     # So say no if there are warnings other than the usual output.
9435     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9436     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9437     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9438       lt_cv_prog_compiler_pic_works=yes
9439     fi
9440   fi
9441   $RM conftest*
9442
9443fi
9444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9445$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9446
9447if test yes = "$lt_cv_prog_compiler_pic_works"; then
9448    case $lt_prog_compiler_pic in
9449     "" | " "*) ;;
9450     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9451     esac
9452else
9453    lt_prog_compiler_pic=
9454     lt_prog_compiler_can_build_shared=no
9455fi
9456
9457fi
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469#
9470# Check to make sure the static flag actually works.
9471#
9472wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9474$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9475if ${lt_cv_prog_compiler_static_works+:} false; then :
9476  $as_echo_n "(cached) " >&6
9477else
9478  lt_cv_prog_compiler_static_works=no
9479   save_LDFLAGS=$LDFLAGS
9480   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9481   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9482   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9483     # The linker can only warn and ignore the option if not recognized
9484     # So say no if there are warnings
9485     if test -s conftest.err; then
9486       # Append any errors to the config.log.
9487       cat conftest.err 1>&5
9488       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9489       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9490       if diff conftest.exp conftest.er2 >/dev/null; then
9491         lt_cv_prog_compiler_static_works=yes
9492       fi
9493     else
9494       lt_cv_prog_compiler_static_works=yes
9495     fi
9496   fi
9497   $RM -r conftest*
9498   LDFLAGS=$save_LDFLAGS
9499
9500fi
9501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9502$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9503
9504if test yes = "$lt_cv_prog_compiler_static_works"; then
9505    :
9506else
9507    lt_prog_compiler_static=
9508fi
9509
9510
9511
9512
9513
9514
9515
9516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9517$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9518if ${lt_cv_prog_compiler_c_o+:} false; then :
9519  $as_echo_n "(cached) " >&6
9520else
9521  lt_cv_prog_compiler_c_o=no
9522   $RM -r conftest 2>/dev/null
9523   mkdir conftest
9524   cd conftest
9525   mkdir out
9526   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9527
9528   lt_compiler_flag="-o out/conftest2.$ac_objext"
9529   # Insert the option either (1) after the last *FLAGS variable, or
9530   # (2) before a word containing "conftest.", or (3) at the end.
9531   # Note that $ac_compile itself does not contain backslashes and begins
9532   # with a dollar sign (not a hyphen), so the echo should work correctly.
9533   lt_compile=`echo "$ac_compile" | $SED \
9534   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9535   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9536   -e 's:$: $lt_compiler_flag:'`
9537   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9538   (eval "$lt_compile" 2>out/conftest.err)
9539   ac_status=$?
9540   cat out/conftest.err >&5
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9543   then
9544     # The compiler can only warn and ignore the option if not recognized
9545     # So say no if there are warnings
9546     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9547     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9548     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9549       lt_cv_prog_compiler_c_o=yes
9550     fi
9551   fi
9552   chmod u+w . 2>&5
9553   $RM conftest*
9554   # SGI C++ compiler will create directory out/ii_files/ for
9555   # template instantiation
9556   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9557   $RM out/* && rmdir out
9558   cd ..
9559   $RM -r conftest
9560   $RM conftest*
9561
9562fi
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9564$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9565
9566
9567
9568
9569
9570
9571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9572$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9573if ${lt_cv_prog_compiler_c_o+:} false; then :
9574  $as_echo_n "(cached) " >&6
9575else
9576  lt_cv_prog_compiler_c_o=no
9577   $RM -r conftest 2>/dev/null
9578   mkdir conftest
9579   cd conftest
9580   mkdir out
9581   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9582
9583   lt_compiler_flag="-o out/conftest2.$ac_objext"
9584   # Insert the option either (1) after the last *FLAGS variable, or
9585   # (2) before a word containing "conftest.", or (3) at the end.
9586   # Note that $ac_compile itself does not contain backslashes and begins
9587   # with a dollar sign (not a hyphen), so the echo should work correctly.
9588   lt_compile=`echo "$ac_compile" | $SED \
9589   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9590   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9591   -e 's:$: $lt_compiler_flag:'`
9592   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9593   (eval "$lt_compile" 2>out/conftest.err)
9594   ac_status=$?
9595   cat out/conftest.err >&5
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9598   then
9599     # The compiler can only warn and ignore the option if not recognized
9600     # So say no if there are warnings
9601     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9602     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9603     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9604       lt_cv_prog_compiler_c_o=yes
9605     fi
9606   fi
9607   chmod u+w . 2>&5
9608   $RM conftest*
9609   # SGI C++ compiler will create directory out/ii_files/ for
9610   # template instantiation
9611   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9612   $RM out/* && rmdir out
9613   cd ..
9614   $RM -r conftest
9615   $RM conftest*
9616
9617fi
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9619$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9620
9621
9622
9623
9624hard_links=nottested
9625if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9626  # do not overwrite the value of need_locks provided by the user
9627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9628$as_echo_n "checking if we can lock with hard links... " >&6; }
9629  hard_links=yes
9630  $RM conftest*
9631  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9632  touch conftest.a
9633  ln conftest.a conftest.b 2>&5 || hard_links=no
9634  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9636$as_echo "$hard_links" >&6; }
9637  if test no = "$hard_links"; then
9638    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9639$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9640    need_locks=warn
9641  fi
9642else
9643  need_locks=no
9644fi
9645
9646
9647
9648
9649
9650
9651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9652$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9653
9654  runpath_var=
9655  allow_undefined_flag=
9656  always_export_symbols=no
9657  archive_cmds=
9658  archive_expsym_cmds=
9659  compiler_needs_object=no
9660  enable_shared_with_static_runtimes=no
9661  export_dynamic_flag_spec=
9662  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9663  hardcode_automatic=no
9664  hardcode_direct=no
9665  hardcode_direct_absolute=no
9666  hardcode_libdir_flag_spec=
9667  hardcode_libdir_separator=
9668  hardcode_minus_L=no
9669  hardcode_shlibpath_var=unsupported
9670  inherit_rpath=no
9671  link_all_deplibs=unknown
9672  module_cmds=
9673  module_expsym_cmds=
9674  old_archive_from_new_cmds=
9675  old_archive_from_expsyms_cmds=
9676  thread_safe_flag_spec=
9677  whole_archive_flag_spec=
9678  # include_expsyms should be a list of space-separated symbols to be *always*
9679  # included in the symbol list
9680  include_expsyms=
9681  # exclude_expsyms can be an extended regexp of symbols to exclude
9682  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9683  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9684  # as well as any symbol that contains 'd'.
9685  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9686  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9687  # platforms (ab)use it in PIC code, but their linkers get confused if
9688  # the symbol is explicitly referenced.  Since portable code cannot
9689  # rely on this symbol name, it's probably fine to never include it in
9690  # preloaded symbol tables.
9691  # Exclude shared library initialization/finalization symbols.
9692  extract_expsyms_cmds=
9693
9694  case $host_os in
9695  cygwin* | mingw* | pw32* | cegcc*)
9696    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9697    # When not using gcc, we currently assume that we are using
9698    # Microsoft Visual C++.
9699    if test yes != "$GCC"; then
9700      with_gnu_ld=no
9701    fi
9702    ;;
9703  interix*)
9704    # we just hope/assume this is gcc and not c89 (= MSVC++)
9705    with_gnu_ld=yes
9706    ;;
9707  openbsd* | bitrig*)
9708    with_gnu_ld=no
9709    ;;
9710  esac
9711
9712  ld_shlibs=yes
9713
9714  # On some targets, GNU ld is compatible enough with the native linker
9715  # that we're better off using the native interface for both.
9716  lt_use_gnu_ld_interface=no
9717  if test yes = "$with_gnu_ld"; then
9718    case $host_os in
9719      aix*)
9720	# The AIX port of GNU ld has always aspired to compatibility
9721	# with the native linker.  However, as the warning in the GNU ld
9722	# block says, versions before 2.19.5* couldn't really create working
9723	# shared libraries, regardless of the interface used.
9724	case `$LD -v 2>&1` in
9725	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9726	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9727	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9728	  *)
9729	    lt_use_gnu_ld_interface=yes
9730	    ;;
9731	esac
9732	;;
9733      *)
9734	lt_use_gnu_ld_interface=yes
9735	;;
9736    esac
9737  fi
9738
9739  if test yes = "$lt_use_gnu_ld_interface"; then
9740    # If archive_cmds runs LD, not CC, wlarc should be empty
9741    wlarc='$wl'
9742
9743    # Set some defaults for GNU ld with shared library support. These
9744    # are reset later if shared libraries are not supported. Putting them
9745    # here allows them to be overridden if necessary.
9746    runpath_var=LD_RUN_PATH
9747    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9748    export_dynamic_flag_spec='$wl--export-dynamic'
9749    # ancient GNU ld didn't support --whole-archive et. al.
9750    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9751      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9752    else
9753      whole_archive_flag_spec=
9754    fi
9755    supports_anon_versioning=no
9756    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9757      *GNU\ gold*) supports_anon_versioning=yes ;;
9758      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9759      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9760      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9761      *\ 2.11.*) ;; # other 2.11 versions
9762      *) supports_anon_versioning=yes ;;
9763    esac
9764
9765    # See if GNU ld supports shared libraries.
9766    case $host_os in
9767    aix[3-9]*)
9768      # On AIX/PPC, the GNU linker is very broken
9769      if test ia64 != "$host_cpu"; then
9770	ld_shlibs=no
9771	cat <<_LT_EOF 1>&2
9772
9773*** Warning: the GNU linker, at least up to release 2.19, is reported
9774*** to be unable to reliably create shared libraries on AIX.
9775*** Therefore, libtool is disabling shared libraries support.  If you
9776*** really care for shared libraries, you may want to install binutils
9777*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9778*** You will then need to restart the configuration process.
9779
9780_LT_EOF
9781      fi
9782      ;;
9783
9784    amigaos*)
9785      case $host_cpu in
9786      powerpc)
9787            # see comment about AmigaOS4 .so support
9788            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9789            archive_expsym_cmds=''
9790        ;;
9791      m68k)
9792            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)'
9793            hardcode_libdir_flag_spec='-L$libdir'
9794            hardcode_minus_L=yes
9795        ;;
9796      esac
9797      ;;
9798
9799    beos*)
9800      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9801	allow_undefined_flag=unsupported
9802	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9803	# support --undefined.  This deserves some investigation.  FIXME
9804	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9805      else
9806	ld_shlibs=no
9807      fi
9808      ;;
9809
9810    cygwin* | mingw* | pw32* | cegcc*)
9811      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9812      # as there is no search path for DLLs.
9813      hardcode_libdir_flag_spec='-L$libdir'
9814      export_dynamic_flag_spec='$wl--export-all-symbols'
9815      allow_undefined_flag=unsupported
9816      always_export_symbols=no
9817      enable_shared_with_static_runtimes=yes
9818      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'
9819      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9820
9821      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9822        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9823	# If the export-symbols file already is a .def file, use it as
9824	# is; otherwise, prepend EXPORTS...
9825	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9826          cp $export_symbols $output_objdir/$soname.def;
9827        else
9828          echo EXPORTS > $output_objdir/$soname.def;
9829          cat $export_symbols >> $output_objdir/$soname.def;
9830        fi~
9831        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9832      else
9833	ld_shlibs=no
9834      fi
9835      ;;
9836
9837    haiku*)
9838      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9839      link_all_deplibs=yes
9840      ;;
9841
9842    os2*)
9843      hardcode_libdir_flag_spec='-L$libdir'
9844      hardcode_minus_L=yes
9845      allow_undefined_flag=unsupported
9846      shrext_cmds=.dll
9847      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9848	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9849	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9850	$ECHO EXPORTS >> $output_objdir/$libname.def~
9851	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9852	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9853	emximp -o $lib $output_objdir/$libname.def'
9854      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9855	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9856	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9857	$ECHO EXPORTS >> $output_objdir/$libname.def~
9858	prefix_cmds="$SED"~
9859	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9860	  prefix_cmds="$prefix_cmds -e 1d";
9861	fi~
9862	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9863	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9864	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9865	emximp -o $lib $output_objdir/$libname.def'
9866      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9867      enable_shared_with_static_runtimes=yes
9868      ;;
9869
9870    interix[3-9]*)
9871      hardcode_direct=no
9872      hardcode_shlibpath_var=no
9873      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9874      export_dynamic_flag_spec='$wl-E'
9875      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9876      # Instead, shared libraries are loaded at an image base (0x10000000 by
9877      # default) and relocated if they conflict, which is a slow very memory
9878      # consuming and fragmenting process.  To avoid this, we pick a random,
9879      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9880      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9881      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9882      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'
9883      ;;
9884
9885    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9886      tmp_diet=no
9887      if test linux-dietlibc = "$host_os"; then
9888	case $cc_basename in
9889	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9890	esac
9891      fi
9892      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9893	 && test no = "$tmp_diet"
9894      then
9895	tmp_addflag=' $pic_flag'
9896	tmp_sharedflag='-shared'
9897	case $cc_basename,$host_cpu in
9898        pgcc*)				# Portland Group C compiler
9899	  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'
9900	  tmp_addflag=' $pic_flag'
9901	  ;;
9902	pgf77* | pgf90* | pgf95* | pgfortran*)
9903					# Portland Group f77 and f90 compilers
9904	  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'
9905	  tmp_addflag=' $pic_flag -Mnomain' ;;
9906	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9907	  tmp_addflag=' -i_dynamic' ;;
9908	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9909	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9910	ifc* | ifort*)			# Intel Fortran compiler
9911	  tmp_addflag=' -nofor_main' ;;
9912	lf95*)				# Lahey Fortran 8.1
9913	  whole_archive_flag_spec=
9914	  tmp_sharedflag='--shared' ;;
9915        nagfor*)                        # NAGFOR 5.3
9916          tmp_sharedflag='-Wl,-shared' ;;
9917	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9918	  tmp_sharedflag='-qmkshrobj'
9919	  tmp_addflag= ;;
9920	nvcc*)	# Cuda Compiler Driver 2.2
9921	  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'
9922	  compiler_needs_object=yes
9923	  ;;
9924	esac
9925	case `$CC -V 2>&1 | sed 5q` in
9926	*Sun\ C*)			# Sun C 5.9
9927	  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'
9928	  compiler_needs_object=yes
9929	  tmp_sharedflag='-G' ;;
9930	*Sun\ F*)			# Sun Fortran 8.3
9931	  tmp_sharedflag='-G' ;;
9932	esac
9933	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9934
9935        if test yes = "$supports_anon_versioning"; then
9936          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9937            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9938            echo "local: *; };" >> $output_objdir/$libname.ver~
9939            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9940        fi
9941
9942	case $cc_basename in
9943	tcc*)
9944	  export_dynamic_flag_spec='-rdynamic'
9945	  ;;
9946	xlf* | bgf* | bgxlf* | mpixlf*)
9947	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9948	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9949	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9950	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9951	  if test yes = "$supports_anon_versioning"; then
9952	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9953              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9954              echo "local: *; };" >> $output_objdir/$libname.ver~
9955              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9956	  fi
9957	  ;;
9958	esac
9959      else
9960        ld_shlibs=no
9961      fi
9962      ;;
9963
9964    netbsd*)
9965      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9966	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9967	wlarc=
9968      else
9969	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9970	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9971      fi
9972      ;;
9973
9974    solaris*)
9975      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9976	ld_shlibs=no
9977	cat <<_LT_EOF 1>&2
9978
9979*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9980*** create shared libraries on Solaris systems.  Therefore, libtool
9981*** is disabling shared libraries support.  We urge you to upgrade GNU
9982*** binutils to release 2.9.1 or newer.  Another option is to modify
9983*** your PATH or compiler configuration so that the native linker is
9984*** used, and then restart.
9985
9986_LT_EOF
9987      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9988	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9989	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9990      else
9991	ld_shlibs=no
9992      fi
9993      ;;
9994
9995    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9996      case `$LD -v 2>&1` in
9997        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9998	ld_shlibs=no
9999	cat <<_LT_EOF 1>&2
10000
10001*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10002*** reliably create shared libraries on SCO systems.  Therefore, libtool
10003*** is disabling shared libraries support.  We urge you to upgrade GNU
10004*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10005*** your PATH or compiler configuration so that the native linker is
10006*** used, and then restart.
10007
10008_LT_EOF
10009	;;
10010	*)
10011	  # For security reasons, it is highly recommended that you always
10012	  # use absolute paths for naming shared libraries, and exclude the
10013	  # DT_RUNPATH tag from executables and libraries.  But doing so
10014	  # requires that you compile everything twice, which is a pain.
10015	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10016	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10017	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10018	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10019	  else
10020	    ld_shlibs=no
10021	  fi
10022	;;
10023      esac
10024      ;;
10025
10026    sunos4*)
10027      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10028      wlarc=
10029      hardcode_direct=yes
10030      hardcode_shlibpath_var=no
10031      ;;
10032
10033    *)
10034      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10035	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10036	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10037      else
10038	ld_shlibs=no
10039      fi
10040      ;;
10041    esac
10042
10043    if test no = "$ld_shlibs"; then
10044      runpath_var=
10045      hardcode_libdir_flag_spec=
10046      export_dynamic_flag_spec=
10047      whole_archive_flag_spec=
10048    fi
10049  else
10050    # PORTME fill in a description of your system's linker (not GNU ld)
10051    case $host_os in
10052    aix3*)
10053      allow_undefined_flag=unsupported
10054      always_export_symbols=yes
10055      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'
10056      # Note: this linker hardcodes the directories in LIBPATH if there
10057      # are no directories specified by -L.
10058      hardcode_minus_L=yes
10059      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10060	# Neither direct hardcoding nor static linking is supported with a
10061	# broken collect2.
10062	hardcode_direct=unsupported
10063      fi
10064      ;;
10065
10066    aix[4-9]*)
10067      if test ia64 = "$host_cpu"; then
10068	# On IA64, the linker does run time linking by default, so we don't
10069	# have to do anything special.
10070	aix_use_runtimelinking=no
10071	exp_sym_flag='-Bexport'
10072	no_entry_flag=
10073      else
10074	# If we're using GNU nm, then we don't want the "-C" option.
10075	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10076	# Without the "-l" option, or with the "-B" option, AIX nm treats
10077	# weak defined symbols like other global defined symbols, whereas
10078	# GNU nm marks them as "W".
10079	# While the 'weak' keyword is ignored in the Export File, we need
10080	# it in the Import File for the 'aix-soname' feature, so we have
10081	# to replace the "-B" option with "-P" for AIX nm.
10082	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10083	  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'
10084	else
10085	  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'
10086	fi
10087	aix_use_runtimelinking=no
10088
10089	# Test if we are trying to use run time linking or normal
10090	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10091	# have runtime linking enabled, and use it for executables.
10092	# For shared libraries, we enable/disable runtime linking
10093	# depending on the kind of the shared library created -
10094	# when "with_aix_soname,aix_use_runtimelinking" is:
10095	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10096	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10097	#            lib.a           static archive
10098	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10099	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10100	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10101	#            lib.a(lib.so.V) shared, rtl:no
10102	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10103	#            lib.a           static archive
10104	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10105	  for ld_flag in $LDFLAGS; do
10106	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10107	    aix_use_runtimelinking=yes
10108	    break
10109	  fi
10110	  done
10111	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10112	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10113	    # so we don't have lib.a shared libs to link our executables.
10114	    # We have to force runtime linking in this case.
10115	    aix_use_runtimelinking=yes
10116	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10117	  fi
10118	  ;;
10119	esac
10120
10121	exp_sym_flag='-bexport'
10122	no_entry_flag='-bnoentry'
10123      fi
10124
10125      # When large executables or shared objects are built, AIX ld can
10126      # have problems creating the table of contents.  If linking a library
10127      # or program results in "error TOC overflow" add -mminimal-toc to
10128      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10129      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10130
10131      archive_cmds=''
10132      hardcode_direct=yes
10133      hardcode_direct_absolute=yes
10134      hardcode_libdir_separator=':'
10135      link_all_deplibs=yes
10136      file_list_spec='$wl-f,'
10137      case $with_aix_soname,$aix_use_runtimelinking in
10138      aix,*) ;; # traditional, no import file
10139      svr4,* | *,yes) # use import file
10140	# The Import File defines what to hardcode.
10141	hardcode_direct=no
10142	hardcode_direct_absolute=no
10143	;;
10144      esac
10145
10146      if test yes = "$GCC"; then
10147	case $host_os in aix4.[012]|aix4.[012].*)
10148	# We only want to do this on AIX 4.2 and lower, the check
10149	# below for broken collect2 doesn't work under 4.3+
10150	  collect2name=`$CC -print-prog-name=collect2`
10151	  if test -f "$collect2name" &&
10152	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10153	  then
10154	  # We have reworked collect2
10155	  :
10156	  else
10157	  # We have old collect2
10158	  hardcode_direct=unsupported
10159	  # It fails to find uninstalled libraries when the uninstalled
10160	  # path is not listed in the libpath.  Setting hardcode_minus_L
10161	  # to unsupported forces relinking
10162	  hardcode_minus_L=yes
10163	  hardcode_libdir_flag_spec='-L$libdir'
10164	  hardcode_libdir_separator=
10165	  fi
10166	  ;;
10167	esac
10168	shared_flag='-shared'
10169	if test yes = "$aix_use_runtimelinking"; then
10170	  shared_flag="$shared_flag "'$wl-G'
10171	fi
10172	# Need to ensure runtime linking is disabled for the traditional
10173	# shared library, or the linker may eventually find shared libraries
10174	# /with/ Import File - we do not want to mix them.
10175	shared_flag_aix='-shared'
10176	shared_flag_svr4='-shared $wl-G'
10177      else
10178	# not using gcc
10179	if test ia64 = "$host_cpu"; then
10180	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10181	# chokes on -Wl,-G. The following line is correct:
10182	  shared_flag='-G'
10183	else
10184	  if test yes = "$aix_use_runtimelinking"; then
10185	    shared_flag='$wl-G'
10186	  else
10187	    shared_flag='$wl-bM:SRE'
10188	  fi
10189	  shared_flag_aix='$wl-bM:SRE'
10190	  shared_flag_svr4='$wl-G'
10191	fi
10192      fi
10193
10194      export_dynamic_flag_spec='$wl-bexpall'
10195      # It seems that -bexpall does not export symbols beginning with
10196      # underscore (_), so it is better to generate a list of symbols to export.
10197      always_export_symbols=yes
10198      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10199	# Warning - without using the other runtime loading flags (-brtl),
10200	# -berok will link without error, but may produce a broken library.
10201	allow_undefined_flag='-berok'
10202        # Determine the default libpath from the value encoded in an
10203        # empty executable.
10204        if test set = "${lt_cv_aix_libpath+set}"; then
10205  aix_libpath=$lt_cv_aix_libpath
10206else
10207  if ${lt_cv_aix_libpath_+:} false; then :
10208  $as_echo_n "(cached) " >&6
10209else
10210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211/* end confdefs.h.  */
10212
10213int
10214main ()
10215{
10216
10217  ;
10218  return 0;
10219}
10220_ACEOF
10221if ac_fn_c_try_link "$LINENO"; then :
10222
10223  lt_aix_libpath_sed='
10224      /Import File Strings/,/^$/ {
10225	  /^0/ {
10226	      s/^0  *\([^ ]*\) *$/\1/
10227	      p
10228	  }
10229      }'
10230  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10231  # Check for a 64-bit object if we didn't find anything.
10232  if test -z "$lt_cv_aix_libpath_"; then
10233    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10234  fi
10235fi
10236rm -f core conftest.err conftest.$ac_objext \
10237    conftest$ac_exeext conftest.$ac_ext
10238  if test -z "$lt_cv_aix_libpath_"; then
10239    lt_cv_aix_libpath_=/usr/lib:/lib
10240  fi
10241
10242fi
10243
10244  aix_libpath=$lt_cv_aix_libpath_
10245fi
10246
10247        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10248        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
10249      else
10250	if test ia64 = "$host_cpu"; then
10251	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10252	  allow_undefined_flag="-z nodefs"
10253	  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"
10254	else
10255	 # Determine the default libpath from the value encoded in an
10256	 # empty executable.
10257	 if test set = "${lt_cv_aix_libpath+set}"; then
10258  aix_libpath=$lt_cv_aix_libpath
10259else
10260  if ${lt_cv_aix_libpath_+:} false; then :
10261  $as_echo_n "(cached) " >&6
10262else
10263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264/* end confdefs.h.  */
10265
10266int
10267main ()
10268{
10269
10270  ;
10271  return 0;
10272}
10273_ACEOF
10274if ac_fn_c_try_link "$LINENO"; then :
10275
10276  lt_aix_libpath_sed='
10277      /Import File Strings/,/^$/ {
10278	  /^0/ {
10279	      s/^0  *\([^ ]*\) *$/\1/
10280	      p
10281	  }
10282      }'
10283  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10284  # Check for a 64-bit object if we didn't find anything.
10285  if test -z "$lt_cv_aix_libpath_"; then
10286    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10287  fi
10288fi
10289rm -f core conftest.err conftest.$ac_objext \
10290    conftest$ac_exeext conftest.$ac_ext
10291  if test -z "$lt_cv_aix_libpath_"; then
10292    lt_cv_aix_libpath_=/usr/lib:/lib
10293  fi
10294
10295fi
10296
10297  aix_libpath=$lt_cv_aix_libpath_
10298fi
10299
10300	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10301	  # Warning - without using the other run time loading flags,
10302	  # -berok will link without error, but may produce a broken library.
10303	  no_undefined_flag=' $wl-bernotok'
10304	  allow_undefined_flag=' $wl-berok'
10305	  if test yes = "$with_gnu_ld"; then
10306	    # We only use this code for GNU lds that support --whole-archive.
10307	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10308	  else
10309	    # Exported symbols can be pulled into shared objects from archives
10310	    whole_archive_flag_spec='$convenience'
10311	  fi
10312	  archive_cmds_need_lc=yes
10313	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10314	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10315	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10316	  if test svr4 != "$with_aix_soname"; then
10317	    # This is similar to how AIX traditionally builds its shared libraries.
10318	    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'
10319	  fi
10320	  if test aix != "$with_aix_soname"; then
10321	    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'
10322	  else
10323	    # used by -dlpreopen to get the symbols
10324	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10325	  fi
10326	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10327	fi
10328      fi
10329      ;;
10330
10331    amigaos*)
10332      case $host_cpu in
10333      powerpc)
10334            # see comment about AmigaOS4 .so support
10335            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10336            archive_expsym_cmds=''
10337        ;;
10338      m68k)
10339            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)'
10340            hardcode_libdir_flag_spec='-L$libdir'
10341            hardcode_minus_L=yes
10342        ;;
10343      esac
10344      ;;
10345
10346    bsdi[45]*)
10347      export_dynamic_flag_spec=-rdynamic
10348      ;;
10349
10350    cygwin* | mingw* | pw32* | cegcc*)
10351      # When not using gcc, we currently assume that we are using
10352      # Microsoft Visual C++.
10353      # hardcode_libdir_flag_spec is actually meaningless, as there is
10354      # no search path for DLLs.
10355      case $cc_basename in
10356      cl*)
10357	# Native MSVC
10358	hardcode_libdir_flag_spec=' '
10359	allow_undefined_flag=unsupported
10360	always_export_symbols=yes
10361	file_list_spec='@'
10362	# Tell ltmain to make .lib files, not .a files.
10363	libext=lib
10364	# Tell ltmain to make .dll files, not .so files.
10365	shrext_cmds=.dll
10366	# FIXME: Setting linknames here is a bad hack.
10367	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10368	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10369            cp "$export_symbols" "$output_objdir/$soname.def";
10370            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10371          else
10372            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10373          fi~
10374          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10375          linknames='
10376	# The linker will not automatically build a static lib if we build a DLL.
10377	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10378	enable_shared_with_static_runtimes=yes
10379	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10380	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10381	# Don't use ranlib
10382	old_postinstall_cmds='chmod 644 $oldlib'
10383	postlink_cmds='lt_outputfile="@OUTPUT@"~
10384          lt_tool_outputfile="@TOOL_OUTPUT@"~
10385          case $lt_outputfile in
10386            *.exe|*.EXE) ;;
10387            *)
10388              lt_outputfile=$lt_outputfile.exe
10389              lt_tool_outputfile=$lt_tool_outputfile.exe
10390              ;;
10391          esac~
10392          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10393            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10394            $RM "$lt_outputfile.manifest";
10395          fi'
10396	;;
10397      *)
10398	# Assume MSVC wrapper
10399	hardcode_libdir_flag_spec=' '
10400	allow_undefined_flag=unsupported
10401	# Tell ltmain to make .lib files, not .a files.
10402	libext=lib
10403	# Tell ltmain to make .dll files, not .so files.
10404	shrext_cmds=.dll
10405	# FIXME: Setting linknames here is a bad hack.
10406	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10407	# The linker will automatically build a .lib file if we build a DLL.
10408	old_archive_from_new_cmds='true'
10409	# FIXME: Should let the user specify the lib program.
10410	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10411	enable_shared_with_static_runtimes=yes
10412	;;
10413      esac
10414      ;;
10415
10416    darwin* | rhapsody*)
10417
10418
10419  archive_cmds_need_lc=no
10420  hardcode_direct=no
10421  hardcode_automatic=yes
10422  hardcode_shlibpath_var=unsupported
10423  if test yes = "$lt_cv_ld_force_load"; then
10424    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\"`'
10425
10426  else
10427    whole_archive_flag_spec=''
10428  fi
10429  link_all_deplibs=yes
10430  allow_undefined_flag=$_lt_dar_allow_undefined
10431  case $cc_basename in
10432     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10433     *) _lt_dar_can_shared=$GCC ;;
10434  esac
10435  if test yes = "$_lt_dar_can_shared"; then
10436    output_verbose_link_cmd=func_echo_all
10437    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10438    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10439    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"
10440    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"
10441
10442  else
10443  ld_shlibs=no
10444  fi
10445
10446      ;;
10447
10448    dgux*)
10449      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10450      hardcode_libdir_flag_spec='-L$libdir'
10451      hardcode_shlibpath_var=no
10452      ;;
10453
10454    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10455    # support.  Future versions do this automatically, but an explicit c++rt0.o
10456    # does not break anything, and helps significantly (at the cost of a little
10457    # extra space).
10458    freebsd2.2*)
10459      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10460      hardcode_libdir_flag_spec='-R$libdir'
10461      hardcode_direct=yes
10462      hardcode_shlibpath_var=no
10463      ;;
10464
10465    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10466    freebsd2.*)
10467      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10468      hardcode_direct=yes
10469      hardcode_minus_L=yes
10470      hardcode_shlibpath_var=no
10471      ;;
10472
10473    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10474    freebsd* | dragonfly*)
10475      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10476      hardcode_libdir_flag_spec='-R$libdir'
10477      hardcode_direct=yes
10478      hardcode_shlibpath_var=no
10479      ;;
10480
10481    hpux9*)
10482      if test yes = "$GCC"; then
10483	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'
10484      else
10485	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'
10486      fi
10487      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10488      hardcode_libdir_separator=:
10489      hardcode_direct=yes
10490
10491      # hardcode_minus_L: Not really in the search PATH,
10492      # but as the default location of the library.
10493      hardcode_minus_L=yes
10494      export_dynamic_flag_spec='$wl-E'
10495      ;;
10496
10497    hpux10*)
10498      if test yes,no = "$GCC,$with_gnu_ld"; then
10499	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10500      else
10501	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10502      fi
10503      if test no = "$with_gnu_ld"; then
10504	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10505	hardcode_libdir_separator=:
10506	hardcode_direct=yes
10507	hardcode_direct_absolute=yes
10508	export_dynamic_flag_spec='$wl-E'
10509	# hardcode_minus_L: Not really in the search PATH,
10510	# but as the default location of the library.
10511	hardcode_minus_L=yes
10512      fi
10513      ;;
10514
10515    hpux11*)
10516      if test yes,no = "$GCC,$with_gnu_ld"; then
10517	case $host_cpu in
10518	hppa*64*)
10519	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10520	  ;;
10521	ia64*)
10522	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10523	  ;;
10524	*)
10525	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10526	  ;;
10527	esac
10528      else
10529	case $host_cpu in
10530	hppa*64*)
10531	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10532	  ;;
10533	ia64*)
10534	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10535	  ;;
10536	*)
10537
10538	  # Older versions of the 11.00 compiler do not understand -b yet
10539	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10540	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10541$as_echo_n "checking if $CC understands -b... " >&6; }
10542if ${lt_cv_prog_compiler__b+:} false; then :
10543  $as_echo_n "(cached) " >&6
10544else
10545  lt_cv_prog_compiler__b=no
10546   save_LDFLAGS=$LDFLAGS
10547   LDFLAGS="$LDFLAGS -b"
10548   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10549   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10550     # The linker can only warn and ignore the option if not recognized
10551     # So say no if there are warnings
10552     if test -s conftest.err; then
10553       # Append any errors to the config.log.
10554       cat conftest.err 1>&5
10555       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10556       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10557       if diff conftest.exp conftest.er2 >/dev/null; then
10558         lt_cv_prog_compiler__b=yes
10559       fi
10560     else
10561       lt_cv_prog_compiler__b=yes
10562     fi
10563   fi
10564   $RM -r conftest*
10565   LDFLAGS=$save_LDFLAGS
10566
10567fi
10568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10569$as_echo "$lt_cv_prog_compiler__b" >&6; }
10570
10571if test yes = "$lt_cv_prog_compiler__b"; then
10572    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10573else
10574    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10575fi
10576
10577	  ;;
10578	esac
10579      fi
10580      if test no = "$with_gnu_ld"; then
10581	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10582	hardcode_libdir_separator=:
10583
10584	case $host_cpu in
10585	hppa*64*|ia64*)
10586	  hardcode_direct=no
10587	  hardcode_shlibpath_var=no
10588	  ;;
10589	*)
10590	  hardcode_direct=yes
10591	  hardcode_direct_absolute=yes
10592	  export_dynamic_flag_spec='$wl-E'
10593
10594	  # hardcode_minus_L: Not really in the search PATH,
10595	  # but as the default location of the library.
10596	  hardcode_minus_L=yes
10597	  ;;
10598	esac
10599      fi
10600      ;;
10601
10602    irix5* | irix6* | nonstopux*)
10603      if test yes = "$GCC"; then
10604	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'
10605	# Try to use the -exported_symbol ld option, if it does not
10606	# work, assume that -exports_file does not work either and
10607	# implicitly export all symbols.
10608	# This should be the same for all languages, so no per-tag cache variable.
10609	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10610$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10611if ${lt_cv_irix_exported_symbol+:} false; then :
10612  $as_echo_n "(cached) " >&6
10613else
10614  save_LDFLAGS=$LDFLAGS
10615	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10616	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617/* end confdefs.h.  */
10618int foo (void) { return 0; }
10619_ACEOF
10620if ac_fn_c_try_link "$LINENO"; then :
10621  lt_cv_irix_exported_symbol=yes
10622else
10623  lt_cv_irix_exported_symbol=no
10624fi
10625rm -f core conftest.err conftest.$ac_objext \
10626    conftest$ac_exeext conftest.$ac_ext
10627           LDFLAGS=$save_LDFLAGS
10628fi
10629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10630$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10631	if test yes = "$lt_cv_irix_exported_symbol"; then
10632          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'
10633	fi
10634      else
10635	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'
10636	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'
10637      fi
10638      archive_cmds_need_lc='no'
10639      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10640      hardcode_libdir_separator=:
10641      inherit_rpath=yes
10642      link_all_deplibs=yes
10643      ;;
10644
10645    linux*)
10646      case $cc_basename in
10647      tcc*)
10648	# Fabrice Bellard et al's Tiny C Compiler
10649	ld_shlibs=yes
10650	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10651	;;
10652      esac
10653      ;;
10654
10655    netbsd*)
10656      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10657	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10658      else
10659	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10660      fi
10661      hardcode_libdir_flag_spec='-R$libdir'
10662      hardcode_direct=yes
10663      hardcode_shlibpath_var=no
10664      ;;
10665
10666    newsos6)
10667      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10668      hardcode_direct=yes
10669      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10670      hardcode_libdir_separator=:
10671      hardcode_shlibpath_var=no
10672      ;;
10673
10674    *nto* | *qnx*)
10675      ;;
10676
10677    openbsd* | bitrig*)
10678      if test -f /usr/libexec/ld.so; then
10679	hardcode_direct=yes
10680	hardcode_shlibpath_var=no
10681	hardcode_direct_absolute=yes
10682	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10683	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10684	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10685	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10686	  export_dynamic_flag_spec='$wl-E'
10687	else
10688	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10689	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10690	fi
10691      else
10692	ld_shlibs=no
10693      fi
10694      ;;
10695
10696    os2*)
10697      hardcode_libdir_flag_spec='-L$libdir'
10698      hardcode_minus_L=yes
10699      allow_undefined_flag=unsupported
10700      shrext_cmds=.dll
10701      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10702	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10703	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10704	$ECHO EXPORTS >> $output_objdir/$libname.def~
10705	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10706	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10707	emximp -o $lib $output_objdir/$libname.def'
10708      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10709	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10710	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10711	$ECHO EXPORTS >> $output_objdir/$libname.def~
10712	prefix_cmds="$SED"~
10713	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10714	  prefix_cmds="$prefix_cmds -e 1d";
10715	fi~
10716	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10717	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10718	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10719	emximp -o $lib $output_objdir/$libname.def'
10720      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10721      enable_shared_with_static_runtimes=yes
10722      ;;
10723
10724    osf3*)
10725      if test yes = "$GCC"; then
10726	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10727	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'
10728      else
10729	allow_undefined_flag=' -expect_unresolved \*'
10730	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'
10731      fi
10732      archive_cmds_need_lc='no'
10733      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10734      hardcode_libdir_separator=:
10735      ;;
10736
10737    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10738      if test yes = "$GCC"; then
10739	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10740	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'
10741	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10742      else
10743	allow_undefined_flag=' -expect_unresolved \*'
10744	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'
10745	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~
10746          $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'
10747
10748	# Both c and cxx compiler support -rpath directly
10749	hardcode_libdir_flag_spec='-rpath $libdir'
10750      fi
10751      archive_cmds_need_lc='no'
10752      hardcode_libdir_separator=:
10753      ;;
10754
10755    solaris*)
10756      no_undefined_flag=' -z defs'
10757      if test yes = "$GCC"; then
10758	wlarc='$wl'
10759	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10760	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10761          $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'
10762      else
10763	case `$CC -V 2>&1` in
10764	*"Compilers 5.0"*)
10765	  wlarc=''
10766	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10767	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10768            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10769	  ;;
10770	*)
10771	  wlarc='$wl'
10772	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10773	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10774            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10775	  ;;
10776	esac
10777      fi
10778      hardcode_libdir_flag_spec='-R$libdir'
10779      hardcode_shlibpath_var=no
10780      case $host_os in
10781      solaris2.[0-5] | solaris2.[0-5].*) ;;
10782      *)
10783	# The compiler driver will combine and reorder linker options,
10784	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10785	# but is careful enough not to reorder.
10786	# Supported since Solaris 2.6 (maybe 2.5.1?)
10787	if test yes = "$GCC"; then
10788	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10789	else
10790	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10791	fi
10792	;;
10793      esac
10794      link_all_deplibs=yes
10795      ;;
10796
10797    sunos4*)
10798      if test sequent = "$host_vendor"; then
10799	# Use $CC to link under sequent, because it throws in some extra .o
10800	# files that make .init and .fini sections work.
10801	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10802      else
10803	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10804      fi
10805      hardcode_libdir_flag_spec='-L$libdir'
10806      hardcode_direct=yes
10807      hardcode_minus_L=yes
10808      hardcode_shlibpath_var=no
10809      ;;
10810
10811    sysv4)
10812      case $host_vendor in
10813	sni)
10814	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10815	  hardcode_direct=yes # is this really true???
10816	;;
10817	siemens)
10818	  ## LD is ld it makes a PLAMLIB
10819	  ## CC just makes a GrossModule.
10820	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10821	  reload_cmds='$CC -r -o $output$reload_objs'
10822	  hardcode_direct=no
10823        ;;
10824	motorola)
10825	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10827	;;
10828      esac
10829      runpath_var='LD_RUN_PATH'
10830      hardcode_shlibpath_var=no
10831      ;;
10832
10833    sysv4.3*)
10834      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10835      hardcode_shlibpath_var=no
10836      export_dynamic_flag_spec='-Bexport'
10837      ;;
10838
10839    sysv4*MP*)
10840      if test -d /usr/nec; then
10841	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10842	hardcode_shlibpath_var=no
10843	runpath_var=LD_RUN_PATH
10844	hardcode_runpath_var=yes
10845	ld_shlibs=yes
10846      fi
10847      ;;
10848
10849    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10850      no_undefined_flag='$wl-z,text'
10851      archive_cmds_need_lc=no
10852      hardcode_shlibpath_var=no
10853      runpath_var='LD_RUN_PATH'
10854
10855      if test yes = "$GCC"; then
10856	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10857	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10858      else
10859	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10860	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10861      fi
10862      ;;
10863
10864    sysv5* | sco3.2v5* | sco5v6*)
10865      # Note: We CANNOT use -z defs as we might desire, because we do not
10866      # link with -lc, and that would cause any symbols used from libc to
10867      # always be unresolved, which means just about no library would
10868      # ever link correctly.  If we're not using GNU ld we use -z text
10869      # though, which does catch some bad symbols but isn't as heavy-handed
10870      # as -z defs.
10871      no_undefined_flag='$wl-z,text'
10872      allow_undefined_flag='$wl-z,nodefs'
10873      archive_cmds_need_lc=no
10874      hardcode_shlibpath_var=no
10875      hardcode_libdir_flag_spec='$wl-R,$libdir'
10876      hardcode_libdir_separator=':'
10877      link_all_deplibs=yes
10878      export_dynamic_flag_spec='$wl-Bexport'
10879      runpath_var='LD_RUN_PATH'
10880
10881      if test yes = "$GCC"; then
10882	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10883	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10884      else
10885	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10886	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10887      fi
10888      ;;
10889
10890    uts4*)
10891      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10892      hardcode_libdir_flag_spec='-L$libdir'
10893      hardcode_shlibpath_var=no
10894      ;;
10895
10896    *)
10897      ld_shlibs=no
10898      ;;
10899    esac
10900
10901    if test sni = "$host_vendor"; then
10902      case $host in
10903      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10904	export_dynamic_flag_spec='$wl-Blargedynsym'
10905	;;
10906      esac
10907    fi
10908  fi
10909
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10911$as_echo "$ld_shlibs" >&6; }
10912test no = "$ld_shlibs" && can_build_shared=no
10913
10914with_gnu_ld=$with_gnu_ld
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930#
10931# Do we need to explicitly link libc?
10932#
10933case "x$archive_cmds_need_lc" in
10934x|xyes)
10935  # Assume -lc should be added
10936  archive_cmds_need_lc=yes
10937
10938  if test yes,yes = "$GCC,$enable_shared"; then
10939    case $archive_cmds in
10940    *'~'*)
10941      # FIXME: we may have to deal with multi-command sequences.
10942      ;;
10943    '$CC '*)
10944      # Test whether the compiler implicitly links with -lc since on some
10945      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10946      # to ld, don't add -lc before -lgcc.
10947      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10948$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10949if ${lt_cv_archive_cmds_need_lc+:} false; then :
10950  $as_echo_n "(cached) " >&6
10951else
10952  $RM conftest*
10953	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10954
10955	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10956  (eval $ac_compile) 2>&5
10957  ac_status=$?
10958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10959  test $ac_status = 0; } 2>conftest.err; then
10960	  soname=conftest
10961	  lib=conftest
10962	  libobjs=conftest.$ac_objext
10963	  deplibs=
10964	  wl=$lt_prog_compiler_wl
10965	  pic_flag=$lt_prog_compiler_pic
10966	  compiler_flags=-v
10967	  linker_flags=-v
10968	  verstring=
10969	  output_objdir=.
10970	  libname=conftest
10971	  lt_save_allow_undefined_flag=$allow_undefined_flag
10972	  allow_undefined_flag=
10973	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10974  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10975  ac_status=$?
10976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10977  test $ac_status = 0; }
10978	  then
10979	    lt_cv_archive_cmds_need_lc=no
10980	  else
10981	    lt_cv_archive_cmds_need_lc=yes
10982	  fi
10983	  allow_undefined_flag=$lt_save_allow_undefined_flag
10984	else
10985	  cat conftest.err 1>&5
10986	fi
10987	$RM conftest*
10988
10989fi
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10991$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10992      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10993      ;;
10994    esac
10995  fi
10996  ;;
10997esac
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11151$as_echo_n "checking dynamic linker characteristics... " >&6; }
11152
11153if test yes = "$GCC"; then
11154  case $host_os in
11155    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11156    *) lt_awk_arg='/^libraries:/' ;;
11157  esac
11158  case $host_os in
11159    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11160    *) lt_sed_strip_eq='s|=/|/|g' ;;
11161  esac
11162  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11163  case $lt_search_path_spec in
11164  *\;*)
11165    # if the path contains ";" then we assume it to be the separator
11166    # otherwise default to the standard path separator (i.e. ":") - it is
11167    # assumed that no part of a normal pathname contains ";" but that should
11168    # okay in the real world where ";" in dirpaths is itself problematic.
11169    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11170    ;;
11171  *)
11172    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11173    ;;
11174  esac
11175  # Ok, now we have the path, separated by spaces, we can step through it
11176  # and add multilib dir if necessary...
11177  lt_tmp_lt_search_path_spec=
11178  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11179  # ...but if some path component already ends with the multilib dir we assume
11180  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11181  case "$lt_multi_os_dir; $lt_search_path_spec " in
11182  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11183    lt_multi_os_dir=
11184    ;;
11185  esac
11186  for lt_sys_path in $lt_search_path_spec; do
11187    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11188      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11189    elif test -n "$lt_multi_os_dir"; then
11190      test -d "$lt_sys_path" && \
11191	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11192    fi
11193  done
11194  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11195BEGIN {RS = " "; FS = "/|\n";} {
11196  lt_foo = "";
11197  lt_count = 0;
11198  for (lt_i = NF; lt_i > 0; lt_i--) {
11199    if ($lt_i != "" && $lt_i != ".") {
11200      if ($lt_i == "..") {
11201        lt_count++;
11202      } else {
11203        if (lt_count == 0) {
11204          lt_foo = "/" $lt_i lt_foo;
11205        } else {
11206          lt_count--;
11207        }
11208      }
11209    }
11210  }
11211  if (lt_foo != "") { lt_freq[lt_foo]++; }
11212  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11213}'`
11214  # AWK program above erroneously prepends '/' to C:/dos/paths
11215  # for these hosts.
11216  case $host_os in
11217    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11218      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11219  esac
11220  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11221else
11222  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11223fi
11224library_names_spec=
11225libname_spec='lib$name'
11226soname_spec=
11227shrext_cmds=.so
11228postinstall_cmds=
11229postuninstall_cmds=
11230finish_cmds=
11231finish_eval=
11232shlibpath_var=
11233shlibpath_overrides_runpath=unknown
11234version_type=none
11235dynamic_linker="$host_os ld.so"
11236sys_lib_dlsearch_path_spec="/lib /usr/lib"
11237need_lib_prefix=unknown
11238hardcode_into_libs=no
11239
11240# when you set need_version to no, make sure it does not cause -set_version
11241# flags to be left without arguments
11242need_version=unknown
11243
11244
11245
11246case $host_os in
11247aix3*)
11248  version_type=linux # correct to gnu/linux during the next big refactor
11249  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11250  shlibpath_var=LIBPATH
11251
11252  # AIX 3 has no versioning support, so we append a major version to the name.
11253  soname_spec='$libname$release$shared_ext$major'
11254  ;;
11255
11256aix[4-9]*)
11257  version_type=linux # correct to gnu/linux during the next big refactor
11258  need_lib_prefix=no
11259  need_version=no
11260  hardcode_into_libs=yes
11261  if test ia64 = "$host_cpu"; then
11262    # AIX 5 supports IA64
11263    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11264    shlibpath_var=LD_LIBRARY_PATH
11265  else
11266    # With GCC up to 2.95.x, collect2 would create an import file
11267    # for dependence libraries.  The import file would start with
11268    # the line '#! .'.  This would cause the generated library to
11269    # depend on '.', always an invalid library.  This was fixed in
11270    # development snapshots of GCC prior to 3.0.
11271    case $host_os in
11272      aix4 | aix4.[01] | aix4.[01].*)
11273      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11274	   echo ' yes '
11275	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11276	:
11277      else
11278	can_build_shared=no
11279      fi
11280      ;;
11281    esac
11282    # Using Import Files as archive members, it is possible to support
11283    # filename-based versioning of shared library archives on AIX. While
11284    # this would work for both with and without runtime linking, it will
11285    # prevent static linking of such archives. So we do filename-based
11286    # shared library versioning with .so extension only, which is used
11287    # when both runtime linking and shared linking is enabled.
11288    # Unfortunately, runtime linking may impact performance, so we do
11289    # not want this to be the default eventually. Also, we use the
11290    # versioned .so libs for executables only if there is the -brtl
11291    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11292    # To allow for filename-based versioning support, we need to create
11293    # libNAME.so.V as an archive file, containing:
11294    # *) an Import File, referring to the versioned filename of the
11295    #    archive as well as the shared archive member, telling the
11296    #    bitwidth (32 or 64) of that shared object, and providing the
11297    #    list of exported symbols of that shared object, eventually
11298    #    decorated with the 'weak' keyword
11299    # *) the shared object with the F_LOADONLY flag set, to really avoid
11300    #    it being seen by the linker.
11301    # At run time we better use the real file rather than another symlink,
11302    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11303
11304    case $with_aix_soname,$aix_use_runtimelinking in
11305    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11306    # soname into executable. Probably we can add versioning support to
11307    # collect2, so additional links can be useful in future.
11308    aix,yes) # traditional libtool
11309      dynamic_linker='AIX unversionable lib.so'
11310      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11311      # instead of lib<name>.a to let people know that these are not
11312      # typical AIX shared libraries.
11313      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11314      ;;
11315    aix,no) # traditional AIX only
11316      dynamic_linker='AIX lib.a(lib.so.V)'
11317      # We preserve .a as extension for shared libraries through AIX4.2
11318      # and later when we are not doing run time linking.
11319      library_names_spec='$libname$release.a $libname.a'
11320      soname_spec='$libname$release$shared_ext$major'
11321      ;;
11322    svr4,*) # full svr4 only
11323      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11324      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11325      # We do not specify a path in Import Files, so LIBPATH fires.
11326      shlibpath_overrides_runpath=yes
11327      ;;
11328    *,yes) # both, prefer svr4
11329      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11330      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11331      # unpreferred sharedlib libNAME.a needs extra handling
11332      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"'
11333      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"'
11334      # We do not specify a path in Import Files, so LIBPATH fires.
11335      shlibpath_overrides_runpath=yes
11336      ;;
11337    *,no) # both, prefer aix
11338      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11339      library_names_spec='$libname$release.a $libname.a'
11340      soname_spec='$libname$release$shared_ext$major'
11341      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11342      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)'
11343      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"'
11344      ;;
11345    esac
11346    shlibpath_var=LIBPATH
11347  fi
11348  ;;
11349
11350amigaos*)
11351  case $host_cpu in
11352  powerpc)
11353    # Since July 2007 AmigaOS4 officially supports .so libraries.
11354    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11355    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11356    ;;
11357  m68k)
11358    library_names_spec='$libname.ixlibrary $libname.a'
11359    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11360    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'
11361    ;;
11362  esac
11363  ;;
11364
11365beos*)
11366  library_names_spec='$libname$shared_ext'
11367  dynamic_linker="$host_os ld.so"
11368  shlibpath_var=LIBRARY_PATH
11369  ;;
11370
11371bsdi[45]*)
11372  version_type=linux # correct to gnu/linux during the next big refactor
11373  need_version=no
11374  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11375  soname_spec='$libname$release$shared_ext$major'
11376  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11377  shlibpath_var=LD_LIBRARY_PATH
11378  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11379  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11380  # the default ld.so.conf also contains /usr/contrib/lib and
11381  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11382  # libtool to hard-code these into programs
11383  ;;
11384
11385cygwin* | mingw* | pw32* | cegcc*)
11386  version_type=windows
11387  shrext_cmds=.dll
11388  need_version=no
11389  need_lib_prefix=no
11390
11391  case $GCC,$cc_basename in
11392  yes,*)
11393    # gcc
11394    library_names_spec='$libname.dll.a'
11395    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11396    postinstall_cmds='base_file=`basename \$file`~
11397      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11398      dldir=$destdir/`dirname \$dlpath`~
11399      test -d \$dldir || mkdir -p \$dldir~
11400      $install_prog $dir/$dlname \$dldir/$dlname~
11401      chmod a+x \$dldir/$dlname~
11402      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11403        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11404      fi'
11405    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11406      dlpath=$dir/\$dldll~
11407       $RM \$dlpath'
11408    shlibpath_overrides_runpath=yes
11409
11410    case $host_os in
11411    cygwin*)
11412      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11413      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11414
11415      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11416      ;;
11417    mingw* | cegcc*)
11418      # MinGW DLLs use traditional 'lib' prefix
11419      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11420      ;;
11421    pw32*)
11422      # pw32 DLLs use 'pw' prefix rather than 'lib'
11423      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11424      ;;
11425    esac
11426    dynamic_linker='Win32 ld.exe'
11427    ;;
11428
11429  *,cl*)
11430    # Native MSVC
11431    libname_spec='$name'
11432    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11433    library_names_spec='$libname.dll.lib'
11434
11435    case $build_os in
11436    mingw*)
11437      sys_lib_search_path_spec=
11438      lt_save_ifs=$IFS
11439      IFS=';'
11440      for lt_path in $LIB
11441      do
11442        IFS=$lt_save_ifs
11443        # Let DOS variable expansion print the short 8.3 style file name.
11444        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11445        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11446      done
11447      IFS=$lt_save_ifs
11448      # Convert to MSYS style.
11449      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11450      ;;
11451    cygwin*)
11452      # Convert to unix form, then to dos form, then back to unix form
11453      # but this time dos style (no spaces!) so that the unix form looks
11454      # like /cygdrive/c/PROGRA~1:/cygdr...
11455      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11456      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11457      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11458      ;;
11459    *)
11460      sys_lib_search_path_spec=$LIB
11461      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11462        # It is most probably a Windows format PATH.
11463        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11464      else
11465        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11466      fi
11467      # FIXME: find the short name or the path components, as spaces are
11468      # common. (e.g. "Program Files" -> "PROGRA~1")
11469      ;;
11470    esac
11471
11472    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11473    postinstall_cmds='base_file=`basename \$file`~
11474      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11475      dldir=$destdir/`dirname \$dlpath`~
11476      test -d \$dldir || mkdir -p \$dldir~
11477      $install_prog $dir/$dlname \$dldir/$dlname'
11478    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11479      dlpath=$dir/\$dldll~
11480       $RM \$dlpath'
11481    shlibpath_overrides_runpath=yes
11482    dynamic_linker='Win32 link.exe'
11483    ;;
11484
11485  *)
11486    # Assume MSVC wrapper
11487    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11488    dynamic_linker='Win32 ld.exe'
11489    ;;
11490  esac
11491  # FIXME: first we should search . and the directory the executable is in
11492  shlibpath_var=PATH
11493  ;;
11494
11495darwin* | rhapsody*)
11496  dynamic_linker="$host_os dyld"
11497  version_type=darwin
11498  need_lib_prefix=no
11499  need_version=no
11500  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11501  soname_spec='$libname$release$major$shared_ext'
11502  shlibpath_overrides_runpath=yes
11503  shlibpath_var=DYLD_LIBRARY_PATH
11504  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11505
11506  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11507  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11508  ;;
11509
11510dgux*)
11511  version_type=linux # correct to gnu/linux during the next big refactor
11512  need_lib_prefix=no
11513  need_version=no
11514  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11515  soname_spec='$libname$release$shared_ext$major'
11516  shlibpath_var=LD_LIBRARY_PATH
11517  ;;
11518
11519freebsd* | dragonfly*)
11520  # DragonFly does not have aout.  When/if they implement a new
11521  # versioning mechanism, adjust this.
11522  if test -x /usr/bin/objformat; then
11523    objformat=`/usr/bin/objformat`
11524  else
11525    case $host_os in
11526    freebsd[23].*) objformat=aout ;;
11527    *) objformat=elf ;;
11528    esac
11529  fi
11530  version_type=freebsd-$objformat
11531  case $version_type in
11532    freebsd-elf*)
11533      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11534      soname_spec='$libname$release$shared_ext$major'
11535      need_version=no
11536      need_lib_prefix=no
11537      ;;
11538    freebsd-*)
11539      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11540      need_version=yes
11541      ;;
11542  esac
11543  shlibpath_var=LD_LIBRARY_PATH
11544  case $host_os in
11545  freebsd2.*)
11546    shlibpath_overrides_runpath=yes
11547    ;;
11548  freebsd3.[01]* | freebsdelf3.[01]*)
11549    shlibpath_overrides_runpath=yes
11550    hardcode_into_libs=yes
11551    ;;
11552  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11553  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11554    shlibpath_overrides_runpath=no
11555    hardcode_into_libs=yes
11556    ;;
11557  *) # from 4.6 on, and DragonFly
11558    shlibpath_overrides_runpath=yes
11559    hardcode_into_libs=yes
11560    ;;
11561  esac
11562  ;;
11563
11564haiku*)
11565  version_type=linux # correct to gnu/linux during the next big refactor
11566  need_lib_prefix=no
11567  need_version=no
11568  dynamic_linker="$host_os runtime_loader"
11569  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11570  soname_spec='$libname$release$shared_ext$major'
11571  shlibpath_var=LIBRARY_PATH
11572  shlibpath_overrides_runpath=no
11573  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11574  hardcode_into_libs=yes
11575  ;;
11576
11577hpux9* | hpux10* | hpux11*)
11578  # Give a soname corresponding to the major version so that dld.sl refuses to
11579  # link against other versions.
11580  version_type=sunos
11581  need_lib_prefix=no
11582  need_version=no
11583  case $host_cpu in
11584  ia64*)
11585    shrext_cmds='.so'
11586    hardcode_into_libs=yes
11587    dynamic_linker="$host_os dld.so"
11588    shlibpath_var=LD_LIBRARY_PATH
11589    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11590    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11591    soname_spec='$libname$release$shared_ext$major'
11592    if test 32 = "$HPUX_IA64_MODE"; then
11593      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11594      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11595    else
11596      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11597      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11598    fi
11599    ;;
11600  hppa*64*)
11601    shrext_cmds='.sl'
11602    hardcode_into_libs=yes
11603    dynamic_linker="$host_os dld.sl"
11604    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11605    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11606    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11607    soname_spec='$libname$release$shared_ext$major'
11608    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11609    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11610    ;;
11611  *)
11612    shrext_cmds='.sl'
11613    dynamic_linker="$host_os dld.sl"
11614    shlibpath_var=SHLIB_PATH
11615    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11616    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11617    soname_spec='$libname$release$shared_ext$major'
11618    ;;
11619  esac
11620  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11621  postinstall_cmds='chmod 555 $lib'
11622  # or fails outright, so override atomically:
11623  install_override_mode=555
11624  ;;
11625
11626interix[3-9]*)
11627  version_type=linux # correct to gnu/linux during the next big refactor
11628  need_lib_prefix=no
11629  need_version=no
11630  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11631  soname_spec='$libname$release$shared_ext$major'
11632  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11633  shlibpath_var=LD_LIBRARY_PATH
11634  shlibpath_overrides_runpath=no
11635  hardcode_into_libs=yes
11636  ;;
11637
11638irix5* | irix6* | nonstopux*)
11639  case $host_os in
11640    nonstopux*) version_type=nonstopux ;;
11641    *)
11642	if test yes = "$lt_cv_prog_gnu_ld"; then
11643		version_type=linux # correct to gnu/linux during the next big refactor
11644	else
11645		version_type=irix
11646	fi ;;
11647  esac
11648  need_lib_prefix=no
11649  need_version=no
11650  soname_spec='$libname$release$shared_ext$major'
11651  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11652  case $host_os in
11653  irix5* | nonstopux*)
11654    libsuff= shlibsuff=
11655    ;;
11656  *)
11657    case $LD in # libtool.m4 will add one of these switches to LD
11658    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11659      libsuff= shlibsuff= libmagic=32-bit;;
11660    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11661      libsuff=32 shlibsuff=N32 libmagic=N32;;
11662    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11663      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11664    *) libsuff= shlibsuff= libmagic=never-match;;
11665    esac
11666    ;;
11667  esac
11668  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11669  shlibpath_overrides_runpath=no
11670  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11671  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11672  hardcode_into_libs=yes
11673  ;;
11674
11675# No shared lib support for Linux oldld, aout, or coff.
11676linux*oldld* | linux*aout* | linux*coff*)
11677  dynamic_linker=no
11678  ;;
11679
11680linux*android*)
11681  version_type=none # Android doesn't support versioned libraries.
11682  need_lib_prefix=no
11683  need_version=no
11684  library_names_spec='$libname$release$shared_ext'
11685  soname_spec='$libname$release$shared_ext'
11686  finish_cmds=
11687  shlibpath_var=LD_LIBRARY_PATH
11688  shlibpath_overrides_runpath=yes
11689
11690  # This implies no fast_install, which is unacceptable.
11691  # Some rework will be needed to allow for fast_install
11692  # before this can be enabled.
11693  hardcode_into_libs=yes
11694
11695  dynamic_linker='Android linker'
11696  # Don't embed -rpath directories since the linker doesn't support them.
11697  hardcode_libdir_flag_spec='-L$libdir'
11698  ;;
11699
11700# This must be glibc/ELF.
11701linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11702  version_type=linux # correct to gnu/linux during the next big refactor
11703  need_lib_prefix=no
11704  need_version=no
11705  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11706  soname_spec='$libname$release$shared_ext$major'
11707  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11708  shlibpath_var=LD_LIBRARY_PATH
11709  shlibpath_overrides_runpath=no
11710
11711  # Some binutils ld are patched to set DT_RUNPATH
11712  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11713  $as_echo_n "(cached) " >&6
11714else
11715  lt_cv_shlibpath_overrides_runpath=no
11716    save_LDFLAGS=$LDFLAGS
11717    save_libdir=$libdir
11718    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11719	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11720    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721/* end confdefs.h.  */
11722
11723int
11724main ()
11725{
11726
11727  ;
11728  return 0;
11729}
11730_ACEOF
11731if ac_fn_c_try_link "$LINENO"; then :
11732  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11733  lt_cv_shlibpath_overrides_runpath=yes
11734fi
11735fi
11736rm -f core conftest.err conftest.$ac_objext \
11737    conftest$ac_exeext conftest.$ac_ext
11738    LDFLAGS=$save_LDFLAGS
11739    libdir=$save_libdir
11740
11741fi
11742
11743  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11744
11745  # This implies no fast_install, which is unacceptable.
11746  # Some rework will be needed to allow for fast_install
11747  # before this can be enabled.
11748  hardcode_into_libs=yes
11749
11750  # Ideally, we could use ldconfig to report *all* directores which are
11751  # searched for libraries, however this is still not possible.  Aside from not
11752  # being certain /sbin/ldconfig is available, command
11753  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11754  # even though it is searched at run-time.  Try to do the best guess by
11755  # appending ld.so.conf contents (and includes) to the search path.
11756  if test -f /etc/ld.so.conf; then
11757    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' ' '`
11758    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11759  fi
11760
11761  # We used to test for /lib/ld.so.1 and disable shared libraries on
11762  # powerpc, because MkLinux only supported shared libraries with the
11763  # GNU dynamic linker.  Since this was broken with cross compilers,
11764  # most powerpc-linux boxes support dynamic linking these days and
11765  # people can always --disable-shared, the test was removed, and we
11766  # assume the GNU/Linux dynamic linker is in use.
11767  dynamic_linker='GNU/Linux ld.so'
11768  ;;
11769
11770netbsd*)
11771  version_type=sunos
11772  need_lib_prefix=no
11773  need_version=no
11774  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11775    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11776    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11777    dynamic_linker='NetBSD (a.out) ld.so'
11778  else
11779    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11780    soname_spec='$libname$release$shared_ext$major'
11781    dynamic_linker='NetBSD ld.elf_so'
11782  fi
11783  shlibpath_var=LD_LIBRARY_PATH
11784  shlibpath_overrides_runpath=yes
11785  hardcode_into_libs=yes
11786  ;;
11787
11788newsos6)
11789  version_type=linux # correct to gnu/linux during the next big refactor
11790  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11791  shlibpath_var=LD_LIBRARY_PATH
11792  shlibpath_overrides_runpath=yes
11793  ;;
11794
11795*nto* | *qnx*)
11796  version_type=qnx
11797  need_lib_prefix=no
11798  need_version=no
11799  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11800  soname_spec='$libname$release$shared_ext$major'
11801  shlibpath_var=LD_LIBRARY_PATH
11802  shlibpath_overrides_runpath=no
11803  hardcode_into_libs=yes
11804  dynamic_linker='ldqnx.so'
11805  ;;
11806
11807openbsd* | bitrig*)
11808  version_type=sunos
11809  sys_lib_dlsearch_path_spec=/usr/lib
11810  need_lib_prefix=no
11811  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11812    need_version=no
11813  else
11814    need_version=yes
11815  fi
11816  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11817  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11818  shlibpath_var=LD_LIBRARY_PATH
11819  shlibpath_overrides_runpath=yes
11820  ;;
11821
11822os2*)
11823  libname_spec='$name'
11824  version_type=windows
11825  shrext_cmds=.dll
11826  need_version=no
11827  need_lib_prefix=no
11828  # OS/2 can only load a DLL with a base name of 8 characters or less.
11829  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11830    v=$($ECHO $release$versuffix | tr -d .-);
11831    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11832    $ECHO $n$v`$shared_ext'
11833  library_names_spec='${libname}_dll.$libext'
11834  dynamic_linker='OS/2 ld.exe'
11835  shlibpath_var=BEGINLIBPATH
11836  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11837  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11838  postinstall_cmds='base_file=`basename \$file`~
11839    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11840    dldir=$destdir/`dirname \$dlpath`~
11841    test -d \$dldir || mkdir -p \$dldir~
11842    $install_prog $dir/$dlname \$dldir/$dlname~
11843    chmod a+x \$dldir/$dlname~
11844    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11845      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11846    fi'
11847  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11848    dlpath=$dir/\$dldll~
11849    $RM \$dlpath'
11850  ;;
11851
11852osf3* | osf4* | osf5*)
11853  version_type=osf
11854  need_lib_prefix=no
11855  need_version=no
11856  soname_spec='$libname$release$shared_ext$major'
11857  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11858  shlibpath_var=LD_LIBRARY_PATH
11859  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11860  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11861  ;;
11862
11863rdos*)
11864  dynamic_linker=no
11865  ;;
11866
11867solaris*)
11868  version_type=linux # correct to gnu/linux during the next big refactor
11869  need_lib_prefix=no
11870  need_version=no
11871  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872  soname_spec='$libname$release$shared_ext$major'
11873  shlibpath_var=LD_LIBRARY_PATH
11874  shlibpath_overrides_runpath=yes
11875  hardcode_into_libs=yes
11876  # ldd complains unless libraries are executable
11877  postinstall_cmds='chmod +x $lib'
11878  ;;
11879
11880sunos4*)
11881  version_type=sunos
11882  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11883  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11884  shlibpath_var=LD_LIBRARY_PATH
11885  shlibpath_overrides_runpath=yes
11886  if test yes = "$with_gnu_ld"; then
11887    need_lib_prefix=no
11888  fi
11889  need_version=yes
11890  ;;
11891
11892sysv4 | sysv4.3*)
11893  version_type=linux # correct to gnu/linux during the next big refactor
11894  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11895  soname_spec='$libname$release$shared_ext$major'
11896  shlibpath_var=LD_LIBRARY_PATH
11897  case $host_vendor in
11898    sni)
11899      shlibpath_overrides_runpath=no
11900      need_lib_prefix=no
11901      runpath_var=LD_RUN_PATH
11902      ;;
11903    siemens)
11904      need_lib_prefix=no
11905      ;;
11906    motorola)
11907      need_lib_prefix=no
11908      need_version=no
11909      shlibpath_overrides_runpath=no
11910      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11911      ;;
11912  esac
11913  ;;
11914
11915sysv4*MP*)
11916  if test -d /usr/nec; then
11917    version_type=linux # correct to gnu/linux during the next big refactor
11918    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11919    soname_spec='$libname$shared_ext.$major'
11920    shlibpath_var=LD_LIBRARY_PATH
11921  fi
11922  ;;
11923
11924sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11925  version_type=sco
11926  need_lib_prefix=no
11927  need_version=no
11928  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11929  soname_spec='$libname$release$shared_ext$major'
11930  shlibpath_var=LD_LIBRARY_PATH
11931  shlibpath_overrides_runpath=yes
11932  hardcode_into_libs=yes
11933  if test yes = "$with_gnu_ld"; then
11934    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11935  else
11936    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11937    case $host_os in
11938      sco3.2v5*)
11939        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11940	;;
11941    esac
11942  fi
11943  sys_lib_dlsearch_path_spec='/usr/lib'
11944  ;;
11945
11946tpf*)
11947  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11948  version_type=linux # correct to gnu/linux during the next big refactor
11949  need_lib_prefix=no
11950  need_version=no
11951  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11952  shlibpath_var=LD_LIBRARY_PATH
11953  shlibpath_overrides_runpath=no
11954  hardcode_into_libs=yes
11955  ;;
11956
11957uts4*)
11958  version_type=linux # correct to gnu/linux during the next big refactor
11959  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11960  soname_spec='$libname$release$shared_ext$major'
11961  shlibpath_var=LD_LIBRARY_PATH
11962  ;;
11963
11964*)
11965  dynamic_linker=no
11966  ;;
11967esac
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11969$as_echo "$dynamic_linker" >&6; }
11970test no = "$dynamic_linker" && can_build_shared=no
11971
11972variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11973if test yes = "$GCC"; then
11974  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11975fi
11976
11977if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11978  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11979fi
11980
11981if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11982  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11983fi
11984
11985# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11986configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11987
11988# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11989func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11990
11991# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11992configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12091$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12092hardcode_action=
12093if test -n "$hardcode_libdir_flag_spec" ||
12094   test -n "$runpath_var" ||
12095   test yes = "$hardcode_automatic"; then
12096
12097  # We can hardcode non-existent directories.
12098  if test no != "$hardcode_direct" &&
12099     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12100     # have to relink, otherwise we might link with an installed library
12101     # when we should be linking with a yet-to-be-installed one
12102     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12103     test no != "$hardcode_minus_L"; then
12104    # Linking always hardcodes the temporary library directory.
12105    hardcode_action=relink
12106  else
12107    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12108    hardcode_action=immediate
12109  fi
12110else
12111  # We cannot hardcode anything, or else we can only hardcode existing
12112  # directories.
12113  hardcode_action=unsupported
12114fi
12115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12116$as_echo "$hardcode_action" >&6; }
12117
12118if test relink = "$hardcode_action" ||
12119   test yes = "$inherit_rpath"; then
12120  # Fast installation is not supported
12121  enable_fast_install=no
12122elif test yes = "$shlibpath_overrides_runpath" ||
12123     test no = "$enable_shared"; then
12124  # Fast installation is not necessary
12125  enable_fast_install=needless
12126fi
12127
12128
12129
12130
12131
12132
12133  if test yes != "$enable_dlopen"; then
12134  enable_dlopen=unknown
12135  enable_dlopen_self=unknown
12136  enable_dlopen_self_static=unknown
12137else
12138  lt_cv_dlopen=no
12139  lt_cv_dlopen_libs=
12140
12141  case $host_os in
12142  beos*)
12143    lt_cv_dlopen=load_add_on
12144    lt_cv_dlopen_libs=
12145    lt_cv_dlopen_self=yes
12146    ;;
12147
12148  mingw* | pw32* | cegcc*)
12149    lt_cv_dlopen=LoadLibrary
12150    lt_cv_dlopen_libs=
12151    ;;
12152
12153  cygwin*)
12154    lt_cv_dlopen=dlopen
12155    lt_cv_dlopen_libs=
12156    ;;
12157
12158  darwin*)
12159    # if libdl is installed we need to link against it
12160    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12161$as_echo_n "checking for dlopen in -ldl... " >&6; }
12162if ${ac_cv_lib_dl_dlopen+:} false; then :
12163  $as_echo_n "(cached) " >&6
12164else
12165  ac_check_lib_save_LIBS=$LIBS
12166LIBS="-ldl  $LIBS"
12167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168/* end confdefs.h.  */
12169
12170/* Override any GCC internal prototype to avoid an error.
12171   Use char because int might match the return type of a GCC
12172   builtin and then its argument prototype would still apply.  */
12173#ifdef __cplusplus
12174extern "C"
12175#endif
12176char dlopen ();
12177int
12178main ()
12179{
12180return dlopen ();
12181  ;
12182  return 0;
12183}
12184_ACEOF
12185if ac_fn_c_try_link "$LINENO"; then :
12186  ac_cv_lib_dl_dlopen=yes
12187else
12188  ac_cv_lib_dl_dlopen=no
12189fi
12190rm -f core conftest.err conftest.$ac_objext \
12191    conftest$ac_exeext conftest.$ac_ext
12192LIBS=$ac_check_lib_save_LIBS
12193fi
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12195$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12196if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12197  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12198else
12199
12200    lt_cv_dlopen=dyld
12201    lt_cv_dlopen_libs=
12202    lt_cv_dlopen_self=yes
12203
12204fi
12205
12206    ;;
12207
12208  tpf*)
12209    # Don't try to run any link tests for TPF.  We know it's impossible
12210    # because TPF is a cross-compiler, and we know how we open DSOs.
12211    lt_cv_dlopen=dlopen
12212    lt_cv_dlopen_libs=
12213    lt_cv_dlopen_self=no
12214    ;;
12215
12216  *)
12217    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12218if test "x$ac_cv_func_shl_load" = xyes; then :
12219  lt_cv_dlopen=shl_load
12220else
12221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12222$as_echo_n "checking for shl_load in -ldld... " >&6; }
12223if ${ac_cv_lib_dld_shl_load+:} false; then :
12224  $as_echo_n "(cached) " >&6
12225else
12226  ac_check_lib_save_LIBS=$LIBS
12227LIBS="-ldld  $LIBS"
12228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12229/* end confdefs.h.  */
12230
12231/* Override any GCC internal prototype to avoid an error.
12232   Use char because int might match the return type of a GCC
12233   builtin and then its argument prototype would still apply.  */
12234#ifdef __cplusplus
12235extern "C"
12236#endif
12237char shl_load ();
12238int
12239main ()
12240{
12241return shl_load ();
12242  ;
12243  return 0;
12244}
12245_ACEOF
12246if ac_fn_c_try_link "$LINENO"; then :
12247  ac_cv_lib_dld_shl_load=yes
12248else
12249  ac_cv_lib_dld_shl_load=no
12250fi
12251rm -f core conftest.err conftest.$ac_objext \
12252    conftest$ac_exeext conftest.$ac_ext
12253LIBS=$ac_check_lib_save_LIBS
12254fi
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12256$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12257if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12258  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12259else
12260  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12261if test "x$ac_cv_func_dlopen" = xyes; then :
12262  lt_cv_dlopen=dlopen
12263else
12264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12265$as_echo_n "checking for dlopen in -ldl... " >&6; }
12266if ${ac_cv_lib_dl_dlopen+:} false; then :
12267  $as_echo_n "(cached) " >&6
12268else
12269  ac_check_lib_save_LIBS=$LIBS
12270LIBS="-ldl  $LIBS"
12271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272/* end confdefs.h.  */
12273
12274/* Override any GCC internal prototype to avoid an error.
12275   Use char because int might match the return type of a GCC
12276   builtin and then its argument prototype would still apply.  */
12277#ifdef __cplusplus
12278extern "C"
12279#endif
12280char dlopen ();
12281int
12282main ()
12283{
12284return dlopen ();
12285  ;
12286  return 0;
12287}
12288_ACEOF
12289if ac_fn_c_try_link "$LINENO"; then :
12290  ac_cv_lib_dl_dlopen=yes
12291else
12292  ac_cv_lib_dl_dlopen=no
12293fi
12294rm -f core conftest.err conftest.$ac_objext \
12295    conftest$ac_exeext conftest.$ac_ext
12296LIBS=$ac_check_lib_save_LIBS
12297fi
12298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12299$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12300if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12301  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12302else
12303  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12304$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12305if ${ac_cv_lib_svld_dlopen+:} false; then :
12306  $as_echo_n "(cached) " >&6
12307else
12308  ac_check_lib_save_LIBS=$LIBS
12309LIBS="-lsvld  $LIBS"
12310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311/* end confdefs.h.  */
12312
12313/* Override any GCC internal prototype to avoid an error.
12314   Use char because int might match the return type of a GCC
12315   builtin and then its argument prototype would still apply.  */
12316#ifdef __cplusplus
12317extern "C"
12318#endif
12319char dlopen ();
12320int
12321main ()
12322{
12323return dlopen ();
12324  ;
12325  return 0;
12326}
12327_ACEOF
12328if ac_fn_c_try_link "$LINENO"; then :
12329  ac_cv_lib_svld_dlopen=yes
12330else
12331  ac_cv_lib_svld_dlopen=no
12332fi
12333rm -f core conftest.err conftest.$ac_objext \
12334    conftest$ac_exeext conftest.$ac_ext
12335LIBS=$ac_check_lib_save_LIBS
12336fi
12337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12338$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12339if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12340  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12341else
12342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12343$as_echo_n "checking for dld_link in -ldld... " >&6; }
12344if ${ac_cv_lib_dld_dld_link+:} false; then :
12345  $as_echo_n "(cached) " >&6
12346else
12347  ac_check_lib_save_LIBS=$LIBS
12348LIBS="-ldld  $LIBS"
12349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350/* end confdefs.h.  */
12351
12352/* Override any GCC internal prototype to avoid an error.
12353   Use char because int might match the return type of a GCC
12354   builtin and then its argument prototype would still apply.  */
12355#ifdef __cplusplus
12356extern "C"
12357#endif
12358char dld_link ();
12359int
12360main ()
12361{
12362return dld_link ();
12363  ;
12364  return 0;
12365}
12366_ACEOF
12367if ac_fn_c_try_link "$LINENO"; then :
12368  ac_cv_lib_dld_dld_link=yes
12369else
12370  ac_cv_lib_dld_dld_link=no
12371fi
12372rm -f core conftest.err conftest.$ac_objext \
12373    conftest$ac_exeext conftest.$ac_ext
12374LIBS=$ac_check_lib_save_LIBS
12375fi
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12377$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12378if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12379  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12380fi
12381
12382
12383fi
12384
12385
12386fi
12387
12388
12389fi
12390
12391
12392fi
12393
12394
12395fi
12396
12397    ;;
12398  esac
12399
12400  if test no = "$lt_cv_dlopen"; then
12401    enable_dlopen=no
12402  else
12403    enable_dlopen=yes
12404  fi
12405
12406  case $lt_cv_dlopen in
12407  dlopen)
12408    save_CPPFLAGS=$CPPFLAGS
12409    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12410
12411    save_LDFLAGS=$LDFLAGS
12412    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12413
12414    save_LIBS=$LIBS
12415    LIBS="$lt_cv_dlopen_libs $LIBS"
12416
12417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12418$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12419if ${lt_cv_dlopen_self+:} false; then :
12420  $as_echo_n "(cached) " >&6
12421else
12422  	  if test yes = "$cross_compiling"; then :
12423  lt_cv_dlopen_self=cross
12424else
12425  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12426  lt_status=$lt_dlunknown
12427  cat > conftest.$ac_ext <<_LT_EOF
12428#line $LINENO "configure"
12429#include "confdefs.h"
12430
12431#if HAVE_DLFCN_H
12432#include <dlfcn.h>
12433#endif
12434
12435#include <stdio.h>
12436
12437#ifdef RTLD_GLOBAL
12438#  define LT_DLGLOBAL		RTLD_GLOBAL
12439#else
12440#  ifdef DL_GLOBAL
12441#    define LT_DLGLOBAL		DL_GLOBAL
12442#  else
12443#    define LT_DLGLOBAL		0
12444#  endif
12445#endif
12446
12447/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12448   find out it does not work in some platform. */
12449#ifndef LT_DLLAZY_OR_NOW
12450#  ifdef RTLD_LAZY
12451#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12452#  else
12453#    ifdef DL_LAZY
12454#      define LT_DLLAZY_OR_NOW		DL_LAZY
12455#    else
12456#      ifdef RTLD_NOW
12457#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12458#      else
12459#        ifdef DL_NOW
12460#          define LT_DLLAZY_OR_NOW	DL_NOW
12461#        else
12462#          define LT_DLLAZY_OR_NOW	0
12463#        endif
12464#      endif
12465#    endif
12466#  endif
12467#endif
12468
12469/* When -fvisibility=hidden is used, assume the code has been annotated
12470   correspondingly for the symbols needed.  */
12471#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12472int fnord () __attribute__((visibility("default")));
12473#endif
12474
12475int fnord () { return 42; }
12476int main ()
12477{
12478  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12479  int status = $lt_dlunknown;
12480
12481  if (self)
12482    {
12483      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12484      else
12485        {
12486	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12487          else puts (dlerror ());
12488	}
12489      /* dlclose (self); */
12490    }
12491  else
12492    puts (dlerror ());
12493
12494  return status;
12495}
12496_LT_EOF
12497  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12498  (eval $ac_link) 2>&5
12499  ac_status=$?
12500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12501  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12502    (./conftest; exit; ) >&5 2>/dev/null
12503    lt_status=$?
12504    case x$lt_status in
12505      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12506      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12507      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12508    esac
12509  else :
12510    # compilation failed
12511    lt_cv_dlopen_self=no
12512  fi
12513fi
12514rm -fr conftest*
12515
12516
12517fi
12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12519$as_echo "$lt_cv_dlopen_self" >&6; }
12520
12521    if test yes = "$lt_cv_dlopen_self"; then
12522      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12523      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12524$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12525if ${lt_cv_dlopen_self_static+:} false; then :
12526  $as_echo_n "(cached) " >&6
12527else
12528  	  if test yes = "$cross_compiling"; then :
12529  lt_cv_dlopen_self_static=cross
12530else
12531  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12532  lt_status=$lt_dlunknown
12533  cat > conftest.$ac_ext <<_LT_EOF
12534#line $LINENO "configure"
12535#include "confdefs.h"
12536
12537#if HAVE_DLFCN_H
12538#include <dlfcn.h>
12539#endif
12540
12541#include <stdio.h>
12542
12543#ifdef RTLD_GLOBAL
12544#  define LT_DLGLOBAL		RTLD_GLOBAL
12545#else
12546#  ifdef DL_GLOBAL
12547#    define LT_DLGLOBAL		DL_GLOBAL
12548#  else
12549#    define LT_DLGLOBAL		0
12550#  endif
12551#endif
12552
12553/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12554   find out it does not work in some platform. */
12555#ifndef LT_DLLAZY_OR_NOW
12556#  ifdef RTLD_LAZY
12557#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12558#  else
12559#    ifdef DL_LAZY
12560#      define LT_DLLAZY_OR_NOW		DL_LAZY
12561#    else
12562#      ifdef RTLD_NOW
12563#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12564#      else
12565#        ifdef DL_NOW
12566#          define LT_DLLAZY_OR_NOW	DL_NOW
12567#        else
12568#          define LT_DLLAZY_OR_NOW	0
12569#        endif
12570#      endif
12571#    endif
12572#  endif
12573#endif
12574
12575/* When -fvisibility=hidden is used, assume the code has been annotated
12576   correspondingly for the symbols needed.  */
12577#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12578int fnord () __attribute__((visibility("default")));
12579#endif
12580
12581int fnord () { return 42; }
12582int main ()
12583{
12584  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12585  int status = $lt_dlunknown;
12586
12587  if (self)
12588    {
12589      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12590      else
12591        {
12592	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12593          else puts (dlerror ());
12594	}
12595      /* dlclose (self); */
12596    }
12597  else
12598    puts (dlerror ());
12599
12600  return status;
12601}
12602_LT_EOF
12603  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12604  (eval $ac_link) 2>&5
12605  ac_status=$?
12606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12607  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12608    (./conftest; exit; ) >&5 2>/dev/null
12609    lt_status=$?
12610    case x$lt_status in
12611      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12612      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12613      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12614    esac
12615  else :
12616    # compilation failed
12617    lt_cv_dlopen_self_static=no
12618  fi
12619fi
12620rm -fr conftest*
12621
12622
12623fi
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12625$as_echo "$lt_cv_dlopen_self_static" >&6; }
12626    fi
12627
12628    CPPFLAGS=$save_CPPFLAGS
12629    LDFLAGS=$save_LDFLAGS
12630    LIBS=$save_LIBS
12631    ;;
12632  esac
12633
12634  case $lt_cv_dlopen_self in
12635  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12636  *) enable_dlopen_self=unknown ;;
12637  esac
12638
12639  case $lt_cv_dlopen_self_static in
12640  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12641  *) enable_dlopen_self_static=unknown ;;
12642  esac
12643fi
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661striplib=
12662old_striplib=
12663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12664$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12665if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12666  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12667  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12669$as_echo "yes" >&6; }
12670else
12671# FIXME - insert some real tests, host_os isn't really good enough
12672  case $host_os in
12673  darwin*)
12674    if test -n "$STRIP"; then
12675      striplib="$STRIP -x"
12676      old_striplib="$STRIP -S"
12677      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12678$as_echo "yes" >&6; }
12679    else
12680      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
12682    fi
12683    ;;
12684  *)
12685    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686$as_echo "no" >&6; }
12687    ;;
12688  esac
12689fi
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702  # Report what library types will actually be built
12703  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12704$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12706$as_echo "$can_build_shared" >&6; }
12707
12708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12709$as_echo_n "checking whether to build shared libraries... " >&6; }
12710  test no = "$can_build_shared" && enable_shared=no
12711
12712  # On AIX, shared libraries and static libraries use the same namespace, and
12713  # are all built from PIC.
12714  case $host_os in
12715  aix3*)
12716    test yes = "$enable_shared" && enable_static=no
12717    if test -n "$RANLIB"; then
12718      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12719      postinstall_cmds='$RANLIB $lib'
12720    fi
12721    ;;
12722
12723  aix[4-9]*)
12724    if test ia64 != "$host_cpu"; then
12725      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12726      yes,aix,yes) ;;			# shared object as lib.so file only
12727      yes,svr4,*) ;;			# shared object as lib.so archive member only
12728      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12729      esac
12730    fi
12731    ;;
12732  esac
12733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12734$as_echo "$enable_shared" >&6; }
12735
12736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12737$as_echo_n "checking whether to build static libraries... " >&6; }
12738  # Make sure either enable_shared or enable_static is yes.
12739  test yes = "$enable_shared" || enable_static=yes
12740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12741$as_echo "$enable_static" >&6; }
12742
12743
12744
12745
12746fi
12747ac_ext=c
12748ac_cpp='$CPP $CPPFLAGS'
12749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12751ac_compiler_gnu=$ac_cv_c_compiler_gnu
12752
12753CC=$lt_save_CC
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769        ac_config_commands="$ac_config_commands libtool"
12770
12771
12772
12773
12774# Only expand once:
12775
12776
12777
12778	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
12779	eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
12780	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
12781
12782
12783# ----------------------------------------------------------------------------
12784# Set default library names if names haven't already been provided
12785
12786MPLLIBNAME=${MPLLIBNAME:-"mpl"}
12787
12788export MPLLIBNAME
12789
12790if test -s "$srcdir/VERSION" ; then
12791   . $srcdir/VERSION
12792
12793else
12794   as_fn_error $? "Version information not found. Configuration aborted." "$LINENO" 5
12795fi
12796
12797ac_config_headers="$ac_config_headers include/config.h"
12798
12799ac_config_commands="$ac_config_commands prefix-config"
12800
12801
12802# Non-verbose make
12803# Check whether --enable-silent-rules was given.
12804if test "${enable_silent_rules+set}" = set; then :
12805  enableval=$enable_silent_rules;
12806fi
12807
12808case $enable_silent_rules in # (((
12809  yes) AM_DEFAULT_VERBOSITY=0;;
12810   no) AM_DEFAULT_VERBOSITY=1;;
12811    *) AM_DEFAULT_VERBOSITY=0;;
12812esac
12813am_make=${MAKE-make}
12814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12815$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12816if ${am_cv_make_support_nested_variables+:} false; then :
12817  $as_echo_n "(cached) " >&6
12818else
12819  if $as_echo 'TRUE=$(BAR$(V))
12820BAR0=false
12821BAR1=true
12822V=1
12823am__doit:
12824	@$(TRUE)
12825.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12826  am_cv_make_support_nested_variables=yes
12827else
12828  am_cv_make_support_nested_variables=no
12829fi
12830fi
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12832$as_echo "$am_cv_make_support_nested_variables" >&6; }
12833if test $am_cv_make_support_nested_variables = yes; then
12834    AM_V='$(V)'
12835  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12836else
12837  AM_V=$AM_DEFAULT_VERBOSITY
12838  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12839fi
12840AM_BACKSLASH='\'
12841
12842
12843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12844$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12845if ${ac_cv_c_const+:} false; then :
12846  $as_echo_n "(cached) " >&6
12847else
12848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12849/* end confdefs.h.  */
12850
12851int
12852main ()
12853{
12854
12855#ifndef __cplusplus
12856  /* Ultrix mips cc rejects this sort of thing.  */
12857  typedef int charset[2];
12858  const charset cs = { 0, 0 };
12859  /* SunOS 4.1.1 cc rejects this.  */
12860  char const *const *pcpcc;
12861  char **ppc;
12862  /* NEC SVR4.0.2 mips cc rejects this.  */
12863  struct point {int x, y;};
12864  static struct point const zero = {0,0};
12865  /* AIX XL C 1.02.0.0 rejects this.
12866     It does not let you subtract one const X* pointer from another in
12867     an arm of an if-expression whose if-part is not a constant
12868     expression */
12869  const char *g = "string";
12870  pcpcc = &g + (g ? g-g : 0);
12871  /* HPUX 7.0 cc rejects these. */
12872  ++pcpcc;
12873  ppc = (char**) pcpcc;
12874  pcpcc = (char const *const *) ppc;
12875  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12876    char tx;
12877    char *t = &tx;
12878    char const *s = 0 ? (char *) 0 : (char const *) 0;
12879
12880    *t++ = 0;
12881    if (s) return 0;
12882  }
12883  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12884    int x[] = {25, 17};
12885    const int *foo = &x[0];
12886    ++foo;
12887  }
12888  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12889    typedef const int *iptr;
12890    iptr p = 0;
12891    ++p;
12892  }
12893  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12894       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12895    struct s { int j; const int *ap[3]; } bx;
12896    struct s *b = &bx; b->j = 5;
12897  }
12898  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12899    const int foo = 10;
12900    if (!foo) return 0;
12901  }
12902  return !cs[0] && !zero.x;
12903#endif
12904
12905  ;
12906  return 0;
12907}
12908_ACEOF
12909if ac_fn_c_try_compile "$LINENO"; then :
12910  ac_cv_c_const=yes
12911else
12912  ac_cv_c_const=no
12913fi
12914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915fi
12916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12917$as_echo "$ac_cv_c_const" >&6; }
12918if test $ac_cv_c_const = no; then
12919
12920$as_echo "#define const /**/" >>confdefs.h
12921
12922fi
12923
12924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
12925$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
12926if ${ac_cv_c_restrict+:} false; then :
12927  $as_echo_n "(cached) " >&6
12928else
12929  ac_cv_c_restrict=no
12930   # The order here caters to the fact that C++ does not require restrict.
12931   for ac_kw in __restrict __restrict__ _Restrict restrict; do
12932     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12933/* end confdefs.h.  */
12934typedef int * int_ptr;
12935	int foo (int_ptr $ac_kw ip) {
12936	return ip[0];
12937       }
12938int
12939main ()
12940{
12941int s[1];
12942	int * $ac_kw t = s;
12943	t[0] = 0;
12944	return foo(t)
12945  ;
12946  return 0;
12947}
12948_ACEOF
12949if ac_fn_c_try_compile "$LINENO"; then :
12950  ac_cv_c_restrict=$ac_kw
12951fi
12952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953     test "$ac_cv_c_restrict" != no && break
12954   done
12955
12956fi
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
12958$as_echo "$ac_cv_c_restrict" >&6; }
12959
12960 case $ac_cv_c_restrict in
12961   restrict) ;;
12962   no) $as_echo "#define restrict /**/" >>confdefs.h
12963 ;;
12964   *)  cat >>confdefs.h <<_ACEOF
12965#define restrict $ac_cv_c_restrict
12966_ACEOF
12967 ;;
12968 esac
12969
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12971$as_echo_n "checking for inline... " >&6; }
12972if ${ac_cv_c_inline+:} false; then :
12973  $as_echo_n "(cached) " >&6
12974else
12975  ac_cv_c_inline=no
12976for ac_kw in inline __inline__ __inline; do
12977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978/* end confdefs.h.  */
12979#ifndef __cplusplus
12980typedef int foo_t;
12981static $ac_kw foo_t static_foo () {return 0; }
12982$ac_kw foo_t foo () {return 0; }
12983#endif
12984
12985_ACEOF
12986if ac_fn_c_try_compile "$LINENO"; then :
12987  ac_cv_c_inline=$ac_kw
12988fi
12989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12990  test "$ac_cv_c_inline" != no && break
12991done
12992
12993fi
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12995$as_echo "$ac_cv_c_inline" >&6; }
12996
12997case $ac_cv_c_inline in
12998  inline | yes) ;;
12999  *)
13000    case $ac_cv_c_inline in
13001      no) ac_val=;;
13002      *) ac_val=$ac_cv_c_inline;;
13003    esac
13004    cat >>confdefs.h <<_ACEOF
13005#ifndef __cplusplus
13006#define inline $ac_val
13007#endif
13008_ACEOF
13009    ;;
13010esac
13011
13012
13013
13014    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable argument list macro functionality" >&5
13015$as_echo_n "checking for variable argument list macro functionality... " >&6; }
13016    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017/* end confdefs.h.  */
13018
13019        #include <stdio.h>
13020        #define conftest_va_arg_macro(...) printf(__VA_ARGS__)
13021
13022int
13023main ()
13024{
13025conftest_va_arg_macro("a test %d", 3);
13026  ;
13027  return 0;
13028}
13029_ACEOF
13030if ac_fn_c_try_link "$LINENO"; then :
13031
13032$as_echo "#define HAVE_MACRO_VA_ARGS 1" >>confdefs.h
13033
13034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13035$as_echo "yes" >&6; }
13036else
13037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038$as_echo "no" >&6; }
13039fi
13040rm -f core conftest.err conftest.$ac_objext \
13041    conftest$ac_exeext conftest.$ac_ext
13042
13043
13044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports __builtin_expect" >&5
13045$as_echo_n "checking if C compiler supports __builtin_expect... " >&6; }
13046
13047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048/* end confdefs.h.  */
13049
13050int
13051main ()
13052{
13053
13054    return __builtin_expect(1, 1) ? 1 : 0
13055
13056  ;
13057  return 0;
13058}
13059_ACEOF
13060if ac_fn_c_try_link "$LINENO"; then :
13061
13062    have_builtin_expect=yes
13063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13064$as_echo "yes" >&6; }
13065
13066else
13067
13068    have_builtin_expect=no
13069    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
13071
13072fi
13073rm -f core conftest.err conftest.$ac_objext \
13074    conftest$ac_exeext conftest.$ac_ext
13075if test x$have_builtin_expect = xyes ; then
13076
13077$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
13078
13079fi
13080
13081
13082    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C11 _Static_assert functionality" >&5
13083$as_echo_n "checking for C11 _Static_assert functionality... " >&6; }
13084    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085/* end confdefs.h.  */
13086
13087    int main(){
13088        _Static_assert(1, "The impossible happened!");
13089        return 0;
13090    }
13091
13092_ACEOF
13093if ac_fn_c_try_link "$LINENO"; then :
13094
13095
13096$as_echo "#define HAVE_C11__STATIC_ASSERT 1" >>confdefs.h
13097
13098    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13099$as_echo "yes" >&6; }
13100
13101else
13102
13103    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104$as_echo "no" >&6; }
13105
13106fi
13107rm -f core conftest.err conftest.$ac_objext \
13108    conftest$ac_exeext conftest.$ac_ext
13109
13110
13111# Check whether --enable-embedded was given.
13112if test "${enable_embedded+set}" = set; then :
13113  enableval=$enable_embedded; embedded=yes
13114else
13115  embedded=no
13116fi
13117
13118 if test "x${embedded}" = "xyes"; then
13119  MPL_EMBEDDED_MODE_TRUE=
13120  MPL_EMBEDDED_MODE_FALSE='#'
13121else
13122  MPL_EMBEDDED_MODE_TRUE='#'
13123  MPL_EMBEDDED_MODE_FALSE=
13124fi
13125
13126
13127# Check whether --enable-g was given.
13128if test "${enable_g+set}" = set; then :
13129  enableval=$enable_g;
13130else
13131  enable_g=none
13132fi
13133
13134
13135# enable-g
13136# strip off multiple options, separated by commas
13137
13138	if test -z "${pac_save_IFS_nesting}" ; then
13139	   pac_save_IFS_nesting=0
13140	fi
13141	eval pac_save_IFS_${pac_save_IFS_nesting}='"$IFS"'
13142	pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} + 1`
13143
13144# Change IFS to process enable_g values; save for use after AC_MSG_WARN
13145# below to provide single point of maintenance
13146enable_g_IFS=","
13147IFS="$enable_g_IFS"
13148for option in $enable_g ; do
13149    case "$option" in
13150	 log)
13151	 enable_g_log=yes
13152	 ;;
13153
13154	 mem|memarena)
13155	 enable_g_mem=yes
13156	 ;;
13157
13158	 most|yes|all)
13159	 enable_g_log=yes
13160	 enable_g_mem=yes
13161	 ;;
13162
13163	 no|none)
13164	 ;;
13165
13166	 *)
13167	 # Default IFS required by AC_MSG_WARN
13168
13169	pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} - 1`
13170	eval IFS="\$pac_save_IFS_${pac_save_IFS_nesting}"
13171	eval pac_save_IFS_${pac_save_IFS_nesting}=""
13172
13173	 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown value $option for enable-g" >&5
13174$as_echo "$as_me: WARNING: Unknown value $option for enable-g" >&2;}
13175	 # Restore previous IFS to process any remaining enable_g values
13176
13177	if test -z "${pac_save_IFS_nesting}" ; then
13178	   pac_save_IFS_nesting=0
13179	fi
13180	eval pac_save_IFS_${pac_save_IFS_nesting}='"$IFS"'
13181	pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} + 1`
13182
13183	 IFS="$enable_g_IFS"
13184	 ;;
13185    esac
13186done
13187
13188	pac_save_IFS_nesting=`expr ${pac_save_IFS_nesting} - 1`
13189	eval IFS="\$pac_save_IFS_${pac_save_IFS_nesting}"
13190	eval pac_save_IFS_${pac_save_IFS_nesting}=""
13191
13192
13193if test "$enable_g_log" = "yes" ; then
13194
13195$as_echo "#define USE_DBG_LOGGING 1" >>confdefs.h
13196
13197fi
13198
13199if test "$enable_g_mem" = "yes" ; then
13200
13201$as_echo "#define USE_MEMORY_TRACING 1" >>confdefs.h
13202
13203fi
13204
13205
13206# support gcov test coverage information
13207
13208
13209
13210for ac_prog in gcov
13211do
13212  # Extract the first word of "$ac_prog", so it can be a program name with args.
13213set dummy $ac_prog; ac_word=$2
13214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13215$as_echo_n "checking for $ac_word... " >&6; }
13216if ${ac_cv_prog_GCOV+:} false; then :
13217  $as_echo_n "(cached) " >&6
13218else
13219  if test -n "$GCOV"; then
13220  ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
13221else
13222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223for as_dir in $PATH
13224do
13225  IFS=$as_save_IFS
13226  test -z "$as_dir" && as_dir=.
13227    for ac_exec_ext in '' $ac_executable_extensions; do
13228  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13229    ac_cv_prog_GCOV="$ac_prog"
13230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13231    break 2
13232  fi
13233done
13234  done
13235IFS=$as_save_IFS
13236
13237fi
13238fi
13239GCOV=$ac_cv_prog_GCOV
13240if test -n "$GCOV"; then
13241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
13242$as_echo "$GCOV" >&6; }
13243else
13244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245$as_echo "no" >&6; }
13246fi
13247
13248
13249  test -n "$GCOV" && break
13250done
13251
13252
13253# Check whether --enable-coverage was given.
13254if test "${enable_coverage+set}" = set; then :
13255  enableval=$enable_coverage;
13256else
13257  enable_coverage=no
13258fi
13259
13260
13261if test "$enable_coverage" = "yes" ; then
13262    if test "$ac_cv_c_compiler_gnu" = "yes" ; then
13263        CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
13264        LIBS="$LIBS -lgcov"
13265        if test ${WRAPPER_CFLAGS+set} = set ; then
13266            WRAPPER_CFLAGS="$WRAPPER_CFLAGS -fprofile-arcs -ftest-coverage"
13267        fi
13268    else
13269        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for GCC" >&5
13270$as_echo "$as_me: WARNING: --enable-coverage only supported for GCC" >&2;}
13271    fi
13272    if test "$enable_cxx" = "yes" ; then
13273        if test "$ac_cv_cxx_compiler_gnu" = "yes" ; then
13274            CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
13275            LIBS="$LIBS -lgcov"
13276            if test ${WRAPPER_CXXFLAGS+set} = set ; then
13277                WRAPPER_CXXFLAGS="$WRAPPER_CXXFLAGS -fprofile-arcs -ftest-coverage"
13278            fi
13279        else
13280            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for GCC" >&5
13281$as_echo "$as_me: WARNING: --enable-coverage only supported for GCC" >&2;}
13282        fi
13283    fi
13284    # Add similar options for g77 so that the Fortran tests will also
13285    #
13286    if test "$enable_f77" = yes ; then
13287        if test "$ac_cv_f77_compiler_gnu" = "yes" ; then
13288             FFLAGS="$FFLAGS -fprofile-arcs -ftest-coverage"
13289             LIBS="$LIBS -lgcov"
13290             if test ${WRAPPER_FFLAGS+set} = set ; then
13291                 WRAPPER_FFLAGS="$WRAPPER_FFLAGS -fprofile-arcs -ftest-coverage"
13292             fi
13293        else
13294            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for G77/GFORTRAN" >&5
13295$as_echo "$as_me: WARNING: --enable-coverage only supported for G77/GFORTRAN" >&2;}
13296        fi
13297    fi
13298    if test "$enable_fc" = yes ; then
13299        if test "$ac_cv_fc_compiler_gnu" = "yes" ; then
13300             FCFLAGS="$FCFLAGS -fprofile-arcs -ftest-coverage"
13301             LIBS="$LIBS -lgcov"
13302             if test ${WRAPPER_FCFLAGS+set} = set ; then
13303                 WRAPPER_FCFLAGS="$WRAPPER_FCFLAGS -fprofile-arcs -ftest-coverage"
13304             fi
13305        else
13306            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-coverage only supported for GFORTRAN" >&5
13307$as_echo "$as_me: WARNING: --enable-coverage only supported for GFORTRAN" >&2;}
13308        fi
13309    fi
13310    # On some platforms (e.g., Mac Darwin), we must also *link*
13311    # with the -fprofile-args -ftest-coverage option.
13312    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compilation with coverage analysis enabled works" >&5
13313$as_echo_n "checking whether compilation with coverage analysis enabled works... " >&6; }
13314    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315/* end confdefs.h.  */
13316int main(int argc, char **argv){return 1;}
13317_ACEOF
13318if ac_fn_c_try_link "$LINENO"; then :
13319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13320$as_echo "yes" >&6; }
13321else
13322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323$as_echo "no" >&6; }
13324                    as_fn_error $? "Unable to link programs when coverage analysis enabled" "$LINENO" 5
13325fi
13326rm -f core conftest.err conftest.$ac_objext \
13327    conftest$ac_exeext conftest.$ac_ext
13328
13329    # Test for the routines that we need to use to ensure that the
13330    # data files are (usually) written out
13331    # FIXME: Some versions of Linux provide usleep, but it rounds times
13332    # up to the next second (!)
13333    for ac_func in usleep
13334do :
13335  ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13336if test "x$ac_cv_func_usleep" = xyes; then :
13337  cat >>confdefs.h <<_ACEOF
13338#define HAVE_USLEEP 1
13339_ACEOF
13340
13341fi
13342done
13343
13344
13345    # NOTE: using a "pac_cv_" prefix but not caching because of xFLAGS "side effects"
13346    pac_cv_use_coverage=yes
13347
13348$as_echo "#define USE_COVERAGE 1" >>confdefs.h
13349
13350fi
13351 if test "X$pac_cv_use_coverage" = "Xyes"; then
13352  BUILD_COVERAGE_TRUE=
13353  BUILD_COVERAGE_FALSE='#'
13354else
13355  BUILD_COVERAGE_TRUE='#'
13356  BUILD_COVERAGE_FALSE=
13357fi
13358
13359
13360
13361# check for compiler support for the __typeof() extension
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __typeof(variable)" >&5
13363$as_echo_n "checking whether the compiler supports __typeof(variable)... " >&6; }
13364if ${pac_cv_have___typeof+:} false; then :
13365  $as_echo_n "(cached) " >&6
13366else
13367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368/* end confdefs.h.  */
13369
13370int
13371main ()
13372{
13373double foo = 0.0; __typeof(foo) bar = 1.0;
13374  ;
13375  return 0;
13376}
13377_ACEOF
13378if ac_fn_c_try_compile "$LINENO"; then :
13379  pac_cv_have___typeof=yes
13380else
13381  pac_cv_have___typeof=no
13382fi
13383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13384
13385fi
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have___typeof" >&5
13387$as_echo "$pac_cv_have___typeof" >&6; }
13388if test "$pac_cv_have___typeof" = "yes" ; then
13389
13390$as_echo "#define HAVE___TYPEOF 1" >>confdefs.h
13391
13392fi
13393
13394for ac_header in stdio.h stdlib.h string.h stdarg.h ctype.h sys/types.h sys/uio.h execinfo.h unistd.h errno.h windows.h sys/mman.h
13395do :
13396  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13397ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13398if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13399  cat >>confdefs.h <<_ACEOF
13400#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13401_ACEOF
13402
13403fi
13404
13405done
13406
13407
13408# A C99 compliant compiler should have inttypes.h for fixed-size int types
13409for ac_header in inttypes.h stdint.h
13410do :
13411  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13412ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13413if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13414  cat >>confdefs.h <<_ACEOF
13415#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13416_ACEOF
13417
13418fi
13419
13420done
13421
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13423$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13424if ${ac_cv_header_stdbool_h+:} false; then :
13425  $as_echo_n "(cached) " >&6
13426else
13427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428/* end confdefs.h.  */
13429
13430             #include <stdbool.h>
13431             #ifndef bool
13432              "error: bool is not defined"
13433             #endif
13434             #ifndef false
13435              "error: false is not defined"
13436             #endif
13437             #if false
13438              "error: false is not 0"
13439             #endif
13440             #ifndef true
13441              "error: true is not defined"
13442             #endif
13443             #if true != 1
13444              "error: true is not 1"
13445             #endif
13446             #ifndef __bool_true_false_are_defined
13447              "error: __bool_true_false_are_defined is not defined"
13448             #endif
13449
13450             struct s { _Bool s: 1; _Bool t; } s;
13451
13452             char a[true == 1 ? 1 : -1];
13453             char b[false == 0 ? 1 : -1];
13454             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13455             char d[(bool) 0.5 == true ? 1 : -1];
13456             /* See body of main program for 'e'.  */
13457             char f[(_Bool) 0.0 == false ? 1 : -1];
13458             char g[true];
13459             char h[sizeof (_Bool)];
13460             char i[sizeof s.t];
13461             enum { j = false, k = true, l = false * true, m = true * 256 };
13462             /* The following fails for
13463                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13464             _Bool n[m];
13465             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13466             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13467             /* Catch a bug in an HP-UX C compiler.  See
13468                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13469                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13470              */
13471             _Bool q = true;
13472             _Bool *pq = &q;
13473
13474int
13475main ()
13476{
13477
13478             bool e = &s;
13479             *pq |= q;
13480             *pq |= ! q;
13481             /* Refer to every declared value, to avoid compiler optimizations.  */
13482             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13483                     + !m + !n + !o + !p + !q + !pq);
13484
13485  ;
13486  return 0;
13487}
13488_ACEOF
13489if ac_fn_c_try_compile "$LINENO"; then :
13490  ac_cv_header_stdbool_h=yes
13491else
13492  ac_cv_header_stdbool_h=no
13493fi
13494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13495fi
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13497$as_echo "$ac_cv_header_stdbool_h" >&6; }
13498   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13499if test "x$ac_cv_type__Bool" = xyes; then :
13500
13501cat >>confdefs.h <<_ACEOF
13502#define HAVE__BOOL 1
13503_ACEOF
13504
13505
13506fi
13507
13508
13509if test $ac_cv_header_stdbool_h = yes; then
13510
13511$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
13512
13513fi
13514
13515
13516# Check whether --enable-fast was given.
13517if test "${enable_fast+set}" = set; then :
13518  enableval=$enable_fast;
13519else
13520  enable_fast=none
13521fi
13522
13523
13524# enable-fast
13525# only alwaysinline option is valid but still need break down multiple options
13526# transferred from MPICH separated by commas
13527enable_fast_alwaysinline=no
13528save_IFS="$IFS"
13529IFS=","
13530for option in $enable_fast ; do
13531    case "$option" in
13532        alwaysinline)
13533        enable_fast_alwaysinline=yes
13534        ;;
13535        all|yes)
13536        enable_fast_alwaysinline=yes
13537        ;;
13538        *) # do not change default value (no) for other fast options
13539        ;;
13540    esac
13541done
13542IFS="$save_IFS"
13543
13544if test "$enable_fast_alwaysinline" = "yes"; then
13545
13546$as_echo "#define ENABLE_ALWAYS_INLINE 1" >>confdefs.h
13547
13548fi
13549
13550#######################################################################
13551# valgrind support
13552
13553# Check whether --with-valgrind was given.
13554if test "${with_valgrind+set}" = set; then :
13555  withval=$with_valgrind;
13556else
13557  with_valgrind=yes
13558fi
13559
13560if test "$with_valgrind" != "no" ; then
13561    savedCPPFLAGS="$CPPFLAGS"
13562    if test "$with_valgrind" != "yes" ; then
13563        # Clients of MPL will either need to respect the localdefs file (as in
13564        # MPICH) or add this entry to their own CPPFLAGS-equivalent.
13565        # (TODO: a pkg-config file would help with this)
13566
13567
13568	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_valgrind}\>" >/dev/null 2>&1; then :
13569  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_valgrind}', not appending" >&5
13570else
13571  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_valgrind}', appending" >&5
13572		CPPFLAGS="$CPPFLAGS -I${with_valgrind}"
13573
13574fi
13575
13576    fi
13577    # headers for valgrind client requests
13578    for ac_header in valgrind.h memcheck.h valgrind/valgrind.h valgrind/memcheck.h
13579do :
13580  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13581ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13582if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13583  cat >>confdefs.h <<_ACEOF
13584#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13585_ACEOF
13586
13587fi
13588
13589done
13590
13591    # headers for valgrind-based thread checking tools
13592    # TODO: incorporate ThreadSanitizer as well (include dynamic_annotations.h,
13593    # link with dynamic_annotations.c)
13594    for ac_header in helgrind.h valgrind/helgrind.h
13595do :
13596  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13597ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13598if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13599  cat >>confdefs.h <<_ACEOF
13600#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13601_ACEOF
13602
13603fi
13604
13605done
13606
13607    for ac_header in drd.h valgrind/drd.h
13608do :
13609  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13610ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13611if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13612  cat >>confdefs.h <<_ACEOF
13613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13614_ACEOF
13615
13616fi
13617
13618done
13619
13620
13621    # ensure that we have a new enough valgrind with all the client macros
13622    # a preproc test would probably be sufficient, but the LINK_IFELSE helps us
13623    # double-check that we aren't accidentally grabbing the headers for some
13624    # other platform
13625    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the valgrind headers are broken or too old" >&5
13626$as_echo_n "checking whether the valgrind headers are broken or too old... " >&6; }
13627if ${pac_cv_have_broken_valgrind+:} false; then :
13628  $as_echo_n "(cached) " >&6
13629else
13630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631/* end confdefs.h.  */
13632
13633#if defined(HAVE_VALGRIND_H) && defined(HAVE_MEMCHECK_H)
13634#  include <valgrind.h>
13635#  include <memcheck.h>
13636#elif defined(HAVE_VALGRIND_VALGRIND_H) && defined(HAVE_VALGRIND_MEMCHECK_H)
13637#  include <valgrind/valgrind.h>
13638#  include <valgrind/memcheck.h>
13639#else
13640#  error unexpected valgrind header error
13641#endif
13642int foo = 10;
13643char mempool_obj;
13644
13645int
13646main ()
13647{
13648
13649#if defined(VALGRIND_MAKE_MEM_DEFINED)
13650    VALGRIND_MAKE_MEM_NOACCESS(&foo,sizeof(foo));
13651    VALGRIND_MAKE_MEM_UNDEFINED(&foo,sizeof(foo));
13652    VALGRIND_MAKE_MEM_DEFINED(&foo,sizeof(foo));
13653    VALGRIND_CHECK_MEM_IS_DEFINED(&foo,sizeof(foo));
13654    VALGRIND_CHECK_MEM_IS_ADDRESSABLE(&foo,sizeof(foo));
13655#elif defined(VALGRIND_MAKE_READABLE)
13656/* older (pre-3.2.0), but still supported style */
13657    VALGRIND_MAKE_READABLE(&foo,sizeof(foo));
13658    VALGRIND_MAKE_NOACCESS(&foo,sizeof(foo));
13659    VALGRIND_MAKE_UNDEFINED(&foo,sizeof(foo));
13660    VALGRIND_CHECK_READABLE(&foo,sizeof(foo));
13661    VALGRIND_CHECK_WRITEABLE(&foo,sizeof(foo));
13662#else
13663#error missing essential valgrind client macros
13664#endif
13665    VALGRIND_CREATE_BLOCK(&foo,sizeof(foo),"description");
13666    if (RUNNING_ON_VALGRIND) ++foo;
13667    VALGRIND_PRINTF_BACKTRACE("testing: %s","valgrind support");
13668    VALGRIND_CREATE_MEMPOOL(&mempool_obj,0,0);
13669    VALGRIND_MEMPOOL_ALLOC(&mempool_obj,&foo,sizeof(foo));
13670    VALGRIND_MEMPOOL_FREE(&mempool_obj,&foo);
13671    VALGRIND_DESTROY_MEMPOOL(&mempool_obj);
13672
13673  ;
13674  return 0;
13675}
13676_ACEOF
13677if ac_fn_c_try_link "$LINENO"; then :
13678  pac_cv_have_broken_valgrind=no
13679else
13680                         pac_cv_have_broken_valgrind=yes
13681fi
13682rm -f core conftest.err conftest.$ac_objext \
13683    conftest$ac_exeext conftest.$ac_ext
13684fi
13685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_have_broken_valgrind" >&5
13686$as_echo "$pac_cv_have_broken_valgrind" >&6; }
13687    if test "$pac_cv_have_broken_valgrind" = "yes" ; then
13688
13689$as_echo "#define HAVE_BROKEN_VALGRIND 1" >>confdefs.h
13690
13691        CPPFLAGS="$savedCPPFLAGS"
13692    fi
13693fi
13694
13695
13696#######################################################################
13697## TIMER CODE
13698#######################################################################
13699
13700# ----------------------------------------------------------------------------
13701# Support for timers.  The following code processes the
13702#  --enable-timer-type=name argument and selects the timer based on
13703# both that field and what configure is able to determine is available.
13704# The file src/include/mpl_timer.h is also created.
13705# ----------------------------------------------------------------------------
13706
13707# clock_gettime is the POSIX gettimeofday
13708# gethrtime is the Solaris high-resolution timer
13709# Check whether --enable-timer-type was given.
13710if test "${enable_timer_type+set}" = set; then :
13711  enableval=$enable_timer_type; timer_type=$enable_timer_type
13712fi
13713
13714
13715## The user did not specify a timer type.  Try to find a sane option
13716## that is supported by the platform.
13717if test -z "$timer_type" ; then
13718    # Try to pick a timer based on what is available
13719    for ac_func in clock_gettime clock_getres gethrtime mach_absolute_time gettimeofday
13720do :
13721  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13722ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13723if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13724  cat >>confdefs.h <<_ACEOF
13725#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13726_ACEOF
13727
13728fi
13729done
13730
13731    if test "$ac_cv_func_gethrtime" = "yes" ; then
13732        # Sigh.  The Solaris include files do not define hrtime_t
13733	# Before we accept this choice, make sure that we can
13734	# do arithmetic with hrtime_t .
13735        { $as_echo "$as_me:${as_lineno-$LINENO}: checking that hrtime_t is properly defined for gethrtime" >&5
13736$as_echo_n "checking that hrtime_t is properly defined for gethrtime... " >&6; }
13737if ${pac_cv_hrtime_works+:} false; then :
13738  $as_echo_n "(cached) " >&6
13739else
13740
13741	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742/* end confdefs.h.  */
13743
13744#include <sys/time.h>
13745
13746int
13747main ()
13748{
13749hrtime_t t1, t2; t1 = 1; t2 = 2; t1 = t1 + t2;
13750  ;
13751  return 0;
13752}
13753_ACEOF
13754if ac_fn_c_try_compile "$LINENO"; then :
13755  pac_cv_hrtime_works=yes
13756else
13757  pac_cv_hrtime_works=no
13758fi
13759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760fi
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_hrtime_works" >&5
13762$as_echo "$pac_cv_hrtime_works" >&6; }
13763	# A more ambitious test would look to see if casting an
13764	# hrtime_t to int64_t works, and even more ambitious
13765	# would check whether long or long long was 64 bits (or even
13766	# better, the sizeof hrtime_t).
13767
13768        # AC_CHECK_FUNCS has false positive when checking whether gethrtime is
13769        # available on Solaris with strict configuration. We must use
13770        # AC_CHECK_DECL to confirm it.
13771        ac_fn_c_check_decl "$LINENO" "gethrtime" "ac_cv_have_decl_gethrtime" "$ac_includes_default"
13772if test "x$ac_cv_have_decl_gethrtime" = xyes; then :
13773
13774fi
13775
13776    fi
13777    if test "$ac_cv_func_gethrtime" = "yes" -a \
13778            "$ac_cv_has_decl_gethrtime" = "yes" -a \
13779            "$pac_cv_hrtime_works" = "yes" ; then
13780        timer_type=gethrtime
13781    elif test "$ac_cv_func_clock_gettime" = "yes" -a \
13782              "$ac_cv_func_clock_getres" = "yes" ; then
13783	 # Test on both because some systems (e.g., cygwin) provide
13784	 # clock_gettime but not clock_getres
13785        timer_type=clock_gettime
13786    elif test "$ac_cv_func_mach_absolute_time" = "yes" ; then
13787        timer_type=mach_absolute_time
13788    elif test "$ac_cv_func_gettimeofday" = "yes" ; then
13789        timer_type=gettimeofday
13790    fi
13791fi
13792if test -z "$timer_type" ; then
13793    as_fn_error $? "No timer found" "$LINENO" 5
13794fi
13795
13796# Check for valid timer and select datatypes for the time stamp
13797case "$timer_type" in
13798
13799    gethrtime)
13800    MPL_TIMER_TYPE=hrtime_t
13801    ac_fn_c_check_func "$LINENO" "gethrtime" "ac_cv_func_gethrtime"
13802if test "x$ac_cv_func_gethrtime" = xyes; then :
13803
13804else
13805
13806         as_fn_error $? "Requested timer gethrtime is not available" "$LINENO" 5
13807
13808fi
13809
13810    ;;
13811
13812    clock_gettime)
13813    missing_function=no
13814    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13815$as_echo_n "checking for library containing clock_gettime... " >&6; }
13816if ${ac_cv_search_clock_gettime+:} false; then :
13817  $as_echo_n "(cached) " >&6
13818else
13819  ac_func_search_save_LIBS=$LIBS
13820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13821/* end confdefs.h.  */
13822
13823/* Override any GCC internal prototype to avoid an error.
13824   Use char because int might match the return type of a GCC
13825   builtin and then its argument prototype would still apply.  */
13826#ifdef __cplusplus
13827extern "C"
13828#endif
13829char clock_gettime ();
13830int
13831main ()
13832{
13833return clock_gettime ();
13834  ;
13835  return 0;
13836}
13837_ACEOF
13838for ac_lib in '' rt; do
13839  if test -z "$ac_lib"; then
13840    ac_res="none required"
13841  else
13842    ac_res=-l$ac_lib
13843    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13844  fi
13845  if ac_fn_c_try_link "$LINENO"; then :
13846  ac_cv_search_clock_gettime=$ac_res
13847fi
13848rm -f core conftest.err conftest.$ac_objext \
13849    conftest$ac_exeext
13850  if ${ac_cv_search_clock_gettime+:} false; then :
13851  break
13852fi
13853done
13854if ${ac_cv_search_clock_gettime+:} false; then :
13855
13856else
13857  ac_cv_search_clock_gettime=no
13858fi
13859rm conftest.$ac_ext
13860LIBS=$ac_func_search_save_LIBS
13861fi
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13863$as_echo "$ac_cv_search_clock_gettime" >&6; }
13864ac_res=$ac_cv_search_clock_gettime
13865if test "$ac_res" != no; then :
13866  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13867
13868else
13869  as_fn_error $? "clock_gettime is not available" "$LINENO" 5
13870fi
13871
13872    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_getres" >&5
13873$as_echo_n "checking for library containing clock_getres... " >&6; }
13874if ${ac_cv_search_clock_getres+:} false; then :
13875  $as_echo_n "(cached) " >&6
13876else
13877  ac_func_search_save_LIBS=$LIBS
13878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879/* end confdefs.h.  */
13880
13881/* Override any GCC internal prototype to avoid an error.
13882   Use char because int might match the return type of a GCC
13883   builtin and then its argument prototype would still apply.  */
13884#ifdef __cplusplus
13885extern "C"
13886#endif
13887char clock_getres ();
13888int
13889main ()
13890{
13891return clock_getres ();
13892  ;
13893  return 0;
13894}
13895_ACEOF
13896for ac_lib in '' rt; do
13897  if test -z "$ac_lib"; then
13898    ac_res="none required"
13899  else
13900    ac_res=-l$ac_lib
13901    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13902  fi
13903  if ac_fn_c_try_link "$LINENO"; then :
13904  ac_cv_search_clock_getres=$ac_res
13905fi
13906rm -f core conftest.err conftest.$ac_objext \
13907    conftest$ac_exeext
13908  if ${ac_cv_search_clock_getres+:} false; then :
13909  break
13910fi
13911done
13912if ${ac_cv_search_clock_getres+:} false; then :
13913
13914else
13915  ac_cv_search_clock_getres=no
13916fi
13917rm conftest.$ac_ext
13918LIBS=$ac_func_search_save_LIBS
13919fi
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_getres" >&5
13921$as_echo "$ac_cv_search_clock_getres" >&6; }
13922ac_res=$ac_cv_search_clock_getres
13923if test "$ac_res" != no; then :
13924  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13925
13926else
13927  as_fn_error $? "clock_getres is not available" "$LINENO" 5
13928fi
13929
13930    MPL_TIMER_TYPE="struct timespec"
13931    # AIX does not always define struct timespec (!)
13932    # Make sure that we can use struct timespec
13933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct timespec is defined in time.h" >&5
13934$as_echo_n "checking whether struct timespec is defined in time.h... " >&6; }
13935if ${pac_cv_struct_timespec_defined+:} false; then :
13936  $as_echo_n "(cached) " >&6
13937else
13938
13939    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940/* end confdefs.h.  */
13941
13942#include <time.h>
13943int
13944main ()
13945{
13946
13947    struct timespec t;
13948  ;
13949  return 0;
13950}
13951_ACEOF
13952if ac_fn_c_try_compile "$LINENO"; then :
13953  pac_cv_struct_timespec_defined=yes
13954else
13955  pac_cv_struct_timespec_defined=no
13956fi
13957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958
13959fi
13960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_timespec_defined" >&5
13961$as_echo "$pac_cv_struct_timespec_defined" >&6; }
13962    if test "$pac_cv_struct_timespec_defined" != "yes" ; then
13963        # Try again, but with -D_XOPEN_SOURCE=500 (works for AIX)
13964        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct timespec is defined in time.h with _XOPEN_SOURCE=500" >&5
13965$as_echo_n "checking whether struct timespec is defined in time.h with _XOPEN_SOURCE=500... " >&6; }
13966if ${pac_cv_struct_timespec_defined_with_xopen500+:} false; then :
13967  $as_echo_n "(cached) " >&6
13968else
13969
13970        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971/* end confdefs.h.  */
13972
13973#define _XOPEN_SOURCE 500
13974#include <time.h>
13975int
13976main ()
13977{
13978
13979    struct timespec t;
13980  ;
13981  return 0;
13982}
13983_ACEOF
13984if ac_fn_c_try_compile "$LINENO"; then :
13985  pac_cv_struct_timespec_defined_with_xopen500=yes
13986else
13987  pac_cv_struct_timespec_defined_with_xopen500=no
13988fi
13989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13990
13991fi
13992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_struct_timespec_defined_with_xopen500" >&5
13993$as_echo "$pac_cv_struct_timespec_defined_with_xopen500" >&6; }
13994	if test "$pac_cv_struct_timespec_defined_with_xopen500" = "yes" ; then
13995	    # We need to define _XOPEN_SOURCE=500, but we need to ensure that
13996	    # this is done before any include files are loaded.  At
13997	    # this point it is really too late to add this definition,
13998	    # since it may make other tests incompatible.
13999	    as_fn_error $? "The available timer requires _XOPEN_SOURCE=500.  Add -D_XOPEN_SOURCE=500 to CFLAGS and rerun configure" "$LINENO" 5
14000        fi
14001    fi
14002    #
14003    # FreeBSD 4.3 incorrectly puts the header into sys/time.h;
14004    # time.h is required (see pages 45 and 46 in the POSIX standard).
14005    # See if we can compile
14006    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLOCK_REALTIME defined in time.h" >&5
14007$as_echo_n "checking for CLOCK_REALTIME defined in time.h... " >&6; }
14008if ${pac_cv_posix_clock_realtime+:} false; then :
14009  $as_echo_n "(cached) " >&6
14010else
14011
14012    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14013/* end confdefs.h.  */
14014
14015#include <time.h>
14016int
14017main ()
14018{
14019
14020    clockid_t cid = CLOCK_REALTIME;
14021  ;
14022  return 0;
14023}
14024_ACEOF
14025if ac_fn_c_try_compile "$LINENO"; then :
14026  pac_cv_posix_clock_realtime=yes
14027else
14028  pac_cv_posix_clock_realtime=no
14029fi
14030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14031fi
14032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_posix_clock_realtime" >&5
14033$as_echo "$pac_cv_posix_clock_realtime" >&6; }
14034    if test "$pac_cv_posix_clock_realtime" = "no" ; then
14035         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: POSIX timer requires definitions in time.h" >&5
14036$as_echo "$as_me: WARNING: POSIX timer requires definitions in time.h" >&2;}
14037	 # Check for the definition in sys/time.h, which is where
14038	 # OpenBSD and FreeBSD have put it by mistake
14039         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040/* end confdefs.h.  */
14041
14042#include <time.h>
14043#include <sys/time.h>
14044int
14045main ()
14046{
14047
14048    clockid_t cid = CLOCK_REALTIME;
14049  ;
14050  return 0;
14051}
14052_ACEOF
14053if ac_fn_c_try_compile "$LINENO"; then :
14054  pac_cv_posix_clock_realtime=yes
14055else
14056  pac_cv_posix_clock_realtime=no
14057fi
14058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14059	if test "$pac_cv_posix_clock_realtime" = yes ; then
14060	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sys/time.h required for POSIX timer" >&5
14061$as_echo "$as_me: WARNING: sys/time.h required for POSIX timer" >&2;}
14062
14063$as_echo "#define NEEDS_SYS_TIME_H 1" >>confdefs.h
14064
14065	else
14066	    as_fn_error $? "Cannot find the definition of CLOCK_REALTIME for the POSIX timer" "$LINENO" 5
14067	fi
14068    fi
14069    ;;
14070
14071    gettimeofday)
14072    MPL_TIMER_TYPE="struct timeval"
14073    # We may have already tested for gettimeofday.  If we got a "yes",
14074    # we're good to go
14075    if test "$ac_cv_func_gettimeofday" != "yes" ; then
14076        ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14077if test "x$ac_cv_func_gettimeofday" = xyes; then :
14078
14079else
14080
14081         as_fn_error $? "Requested timer gettimeofday is not available" "$LINENO" 5
14082
14083fi
14084
14085    fi
14086    ;;
14087
14088    linux86_cycle|linux86_cycle_2)
14089
14090# The following AC_TRY_RUN statements are needed because x86_64 compilers
14091# usually know about rdtscp but the cpu may or may not actually implement the
14092# feature.  This is not cross-compile safe, unfortunately.  In the long run we
14093# should allow the user to override this with a configure flag.
14094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking that linux86 cycle counter is available" >&5
14095$as_echo_n "checking that linux86 cycle counter is available... " >&6; }
14096if ${pac_cv_linux86_cycle+:} false; then :
14097  $as_echo_n "(cached) " >&6
14098else
14099  if test "$cross_compiling" = yes; then :
14100                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101/* end confdefs.h.  */
14102
14103int
14104main ()
14105{
14106
14107                    long long var, *var_ptr=&var;
14108                    __asm__ __volatile__("rdtscp; shl \$32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
14109
14110  ;
14111  return 0;
14112}
14113_ACEOF
14114if ac_fn_c_try_compile "$LINENO"; then :
14115  pac_cv_linux86_cycle=rdtscp
14116else
14117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118/* end confdefs.h.  */
14119
14120int
14121main ()
14122{
14123
14124                        long long var, *var_ptr=&var;
14125                        __asm__ __volatile__("push %%rbx ; cpuid ; rdtsc ; pop %%rbx ; shl $32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
14126
14127  ;
14128  return 0;
14129}
14130_ACEOF
14131if ac_fn_c_try_compile "$LINENO"; then :
14132  pac_cv_linux86_cycle=cpuid_rdtsc64
14133else
14134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135/* end confdefs.h.  */
14136
14137int
14138main ()
14139{
14140
14141                            long long var, *var_ptr=&var;
14142                            __asm__ __volatile__("push %%ebx ; cpuid ; rdtsc ; pop %%ebx" : "=A" (*var_ptr) : : "ecx");
14143
14144  ;
14145  return 0;
14146}
14147_ACEOF
14148if ac_fn_c_try_compile "$LINENO"; then :
14149  pac_cv_linux86_cycle=cpuid_rdtsc32
14150else
14151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152/* end confdefs.h.  */
14153
14154int
14155main ()
14156{
14157
14158                                long long var, *var_ptr=&var;
14159                                __asm__ __volatile__("rdtsc" : "=A" (*var_ptr));
14160
14161  ;
14162  return 0;
14163}
14164_ACEOF
14165if ac_fn_c_try_compile "$LINENO"; then :
14166  pac_cv_linux86_cycle=rdtsc
14167else
14168  pac_cv_linux86_cycle=no
14169fi
14170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171
14172fi
14173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14174
14175fi
14176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14177
14178fi
14179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180
14181else
14182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183/* end confdefs.h.  */
14184
14185int main()
14186{
14187    /* rdtscp */
14188    long long var, *var_ptr=&var;
14189    __asm__ __volatile__("rdtscp; shl \$32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
14190    return 0;
14191}
14192
14193_ACEOF
14194if ac_fn_c_try_run "$LINENO"; then :
14195  pac_cv_linux86_cycle=rdtscp
14196else
14197  if test "$cross_compiling" = yes; then :
14198  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14200as_fn_error $? "cannot run test program while cross compiling
14201See \`config.log' for more details" "$LINENO" 5; }
14202else
14203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204/* end confdefs.h.  */
14205
14206int main()
14207{
14208    /* cpuid 64 */
14209    long long var, *var_ptr=&var;
14210    __asm__ __volatile__("push %%rbx ; cpuid ; rdtsc ; pop %%rbx ; shl $32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
14211    return 0;
14212}
14213
14214_ACEOF
14215if ac_fn_c_try_run "$LINENO"; then :
14216  pac_cv_linux86_cycle=cpuid_rdtsc64
14217else
14218  if test "$cross_compiling" = yes; then :
14219  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14221as_fn_error $? "cannot run test program while cross compiling
14222See \`config.log' for more details" "$LINENO" 5; }
14223else
14224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225/* end confdefs.h.  */
14226
14227int main()
14228{
14229    /* cpuid 32 */
14230    long long var, *var_ptr=&var;
14231    __asm__ __volatile__("push %%ebx ; cpuid ; rdtsc ; pop %%ebx" : "=A" (*var_ptr) : : "ecx");
14232    return 0;
14233}
14234
14235_ACEOF
14236if ac_fn_c_try_run "$LINENO"; then :
14237  pac_cv_linux86_cycle=cpuid_rdtsc32
14238else
14239  if test "$cross_compiling" = yes; then :
14240  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14242as_fn_error $? "cannot run test program while cross compiling
14243See \`config.log' for more details" "$LINENO" 5; }
14244else
14245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246/* end confdefs.h.  */
14247
14248int main()
14249{
14250    /* simple */
14251    long long var, *var_ptr=&var;
14252    __asm__ __volatile__("rdtsc" : "=A" (*var_ptr));
14253    return 0;
14254}
14255
14256_ACEOF
14257if ac_fn_c_try_run "$LINENO"; then :
14258  pac_cv_linux86_cycle=rdtsc
14259else
14260  pac_cv_linux86_cycle=no
14261fi
14262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14263  conftest.$ac_objext conftest.beam conftest.$ac_ext
14264fi
14265
14266
14267fi
14268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14269  conftest.$ac_objext conftest.beam conftest.$ac_ext
14270fi
14271
14272
14273fi
14274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14275  conftest.$ac_objext conftest.beam conftest.$ac_ext
14276fi
14277
14278fi
14279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14280  conftest.$ac_objext conftest.beam conftest.$ac_ext
14281fi
14282
14283
14284fi
14285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_linux86_cycle" >&5
14286$as_echo "$pac_cv_linux86_cycle" >&6; }
14287
14288    case "$pac_cv_linux86_cycle" in
14289        "rdtscp")
14290
14291$as_echo "#define LINUX86_CYCLE_RDTSCP 1" >>confdefs.h
14292
14293	    ;;
14294        "cpuid_rdtsc64")
14295
14296$as_echo "#define LINUX86_CYCLE_CPUID_RDTSC64 1" >>confdefs.h
14297
14298            ;;
14299        "cpuid_rdtsc32")
14300
14301$as_echo "#define LINUX86_CYCLE_CPUID_RDTSC32 1" >>confdefs.h
14302
14303	    ;;
14304        "rdtsc")
14305
14306$as_echo "#define LINUX86_CYCLE_RDTSC 1" >>confdefs.h
14307
14308	    ;;
14309        *)
14310            cpu_gcc_x86_cycle=no
14311	    ;;
14312    esac
14313
14314    if test "$cpu_gcc_x86_cycle" = "no" ; then
14315        as_fn_error $? "Linux86 cycle counter is not available on this system and or with the $CC compiler" "$LINENO" 5
14316    fi
14317    MPL_TIMER_TYPE="long long"
14318    ;;
14319
14320    gcc_ia64_cycle)
14321    { $as_echo "$as_me:${as_lineno-$LINENO}: checking that IPF timer is available" >&5
14322$as_echo_n "checking that IPF timer is available... " >&6; }
14323if ${pac_cv_ia64_cycle+:} false; then :
14324  $as_echo_n "(cached) " >&6
14325else
14326
14327    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328/* end confdefs.h.  */
14329
14330int
14331main ()
14332{
14333
14334    long var, *var_ptr=&var;
14335#ifdef __INTEL_COMPILER
14336#include "ia64regs.h"
14337    var=__getReg(_IA64_REG_AR_ITC);
14338#else
14339    __asm__ __volatile__("mov %0=ar.itc" : "=r" (var_ptr));
14340#endif
14341
14342  ;
14343  return 0;
14344}
14345_ACEOF
14346if ac_fn_c_try_compile "$LINENO"; then :
14347  pac_cv_gcc_ia64_cycle=yes
14348else
14349  pac_cv_gcc_ia64_cycle=no
14350fi
14351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352fi
14353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_ia64_cycle" >&5
14354$as_echo "$pac_cv_ia64_cycle" >&6; }
14355    if test "$pac_cv_gcc_ia64_cycle" != "yes" ; then
14356        as_fn_error $? "IPF cycle counter is not available on this system and or with the $CC compiler" "$LINENO" 5
14357     fi
14358     MPL_TIMER_TYPE="long"
14359     ;;
14360
14361    mach_absolute_time)
14362    ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
14363if test "x$ac_cv_func_mach_absolute_time" = xyes; then :
14364
14365else
14366  as_fn_error $? "mach_absolute_time is not available" "$LINENO" 5
14367fi
14368
14369    ac_fn_c_check_func "$LINENO" "mach_timebase_info" "ac_cv_func_mach_timebase_info"
14370if test "x$ac_cv_func_mach_timebase_info" = xyes; then :
14371
14372else
14373  as_fn_error $? "mach_timebase_info is not available" "$LINENO" 5
14374fi
14375
14376    MPL_TIMER_TYPE="uint64_t"
14377    ;;
14378
14379    ppc64_cycle)
14380    { $as_echo "$as_me:${as_lineno-$LINENO}: checking that ppc64 timebase cycle counter is available" >&5
14381$as_echo_n "checking that ppc64 timebase cycle counter is available... " >&6; }
14382if ${pac_cv_ppc64_cycle+:} false; then :
14383  $as_echo_n "(cached) " >&6
14384else
14385
14386    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387/* end confdefs.h.  */
14388
14389
14390int
14391main ()
14392{
14393
14394        unsigned temp;
14395        asm volatile ("mfspr %0,%1" : "=r" (temp)        : "i" (0x10D));
14396
14397  ;
14398  return 0;
14399}
14400_ACEOF
14401if ac_fn_c_try_compile "$LINENO"; then :
14402  pac_cv_ppc64_cycle=yes
14403else
14404  pac_cv_ppc64_cycle=no
14405fi
14406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407
14408fi
14409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_ppc64_cycle" >&5
14410$as_echo "$pac_cv_ppc64_cycle" >&6; }
14411    if test "$pac_cv_ppc64_cycle" != "yes" ; then
14412        as_fn_error $? "The PPC64 cycle counter is not available on this system and or with the $CC compiler" "$LINENO" 5
14413    fi
14414    MPL_TIMER_TYPE="uint64_t"
14415    ;;
14416    *)
14417    as_fn_error $? "Invalid timer type $timer_type" "$LINENO" 5
14418    ;;
14419esac
14420# Convert timer type to upper case
14421timer_type=`echo $timer_type | \
14422    tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14423MPL_TIMER_KIND=MPL_TIMER_KIND__$timer_type
14424
14425
14426{ $as_echo "$as_me:${as_lineno-$LINENO}: Timer type selected is $timer_type" >&5
14427$as_echo "$as_me: Timer type selected is $timer_type" >&6;}
14428
14429#######################################################################
14430## END OF TIMER CODE
14431#######################################################################
14432
14433
14434#######################################################################
14435## START OF PROCESSOR YIELD CODE
14436#######################################################################
14437# If the user specified a method to use, we check if it's available.
14438# If a method was not specified, we make a guess based on the OS.  The
14439# default is to use sched_yield() or yield() if one is available,
14440# otherwise, default to nothing.  After that we define the appropriate
14441# macro.
14442
14443for ac_header in sched.h
14444do :
14445  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
14446if test "x$ac_cv_header_sched_h" = xyes; then :
14447  cat >>confdefs.h <<_ACEOF
14448#define HAVE_SCHED_H 1
14449_ACEOF
14450
14451fi
14452
14453done
14454
14455for ac_header in unistd.h
14456do :
14457  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14458if test "x$ac_cv_header_unistd_h" = xyes; then :
14459  cat >>confdefs.h <<_ACEOF
14460#define HAVE_UNISTD_H 1
14461_ACEOF
14462
14463fi
14464
14465done
14466
14467for ac_header in sys/select.h
14468do :
14469  ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14470if test "x$ac_cv_header_sys_select_h" = xyes; then :
14471  cat >>confdefs.h <<_ACEOF
14472#define HAVE_SYS_SELECT_H 1
14473_ACEOF
14474
14475fi
14476
14477done
14478
14479for ac_func in sched_yield yield usleep sleep select
14480do :
14481  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14482ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14483if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14484  cat >>confdefs.h <<_ACEOF
14485#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14486_ACEOF
14487
14488fi
14489done
14490
14491
14492if test "$ac_cv_func_usleep" = "yes" ; then
14493
14494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep needs a declaration" >&5
14495$as_echo_n "checking whether usleep needs a declaration... " >&6; }
14496if ${pac_cv_func_decl_usleep+:} false; then :
14497  $as_echo_n "(cached) " >&6
14498else
14499
14500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501/* end confdefs.h.  */
14502#include <unistd.h>
14503void (*fptr)(void) = (void(*)(void))usleep;
14504int
14505main ()
14506{
14507
14508  ;
14509  return 0;
14510}
14511_ACEOF
14512if ac_fn_c_try_compile "$LINENO"; then :
14513  pac_cv_func_decl_usleep=no
14514else
14515  pac_cv_func_decl_usleep=yes
14516fi
14517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518fi
14519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_usleep" >&5
14520$as_echo "$pac_cv_func_decl_usleep" >&6; }
14521if test "$pac_cv_func_decl_usleep" = "yes" ; then
14522
14523cat >>confdefs.h <<_ACEOF
14524#define NEEDS_USLEEP_DECL 1
14525_ACEOF
14526
14527
14528fi
14529
14530fi
14531
14532# Check whether --enable-yield was given.
14533if test "${enable_yield+set}" = set; then :
14534  enableval=$enable_yield; case $enableval in #(
14535  sched_yield) :
14536    if test "x$ac_cv_func_sched_yield" != "xyes"; then :
14537  enable_yield=unavail
14538fi ;; #(
14539  yield) :
14540    if test "x$ac_cv_func_yield"       != "xyes"; then :
14541  enable_yield=unavail
14542fi ;; #(
14543  select) :
14544    if test "x$ac_cv_func_select"      != "xyes"; then :
14545  enable_yield=unavail
14546fi ;; #(
14547  usleep) :
14548    if test "x$ac_cv_func_usleep"      != "xyes"; then :
14549  enable_yield=unavail
14550fi ;; #(
14551  sleep) :
14552    if test "x$ac_cv_func_sleep"       != "xyes"; then :
14553  enable_yield=unavail
14554fi ;; #(
14555  nothing|no|none) :
14556     ;; #(
14557  *) :
14558    as_fn_error $? "Invalid option $enableval for --enable-yield" "$LINENO" 5 ;;
14559esac
14560
14561     if test "x$enable_yield" = "xunavail"; then :
14562  as_fn_error $? "Yield method $enableval is not available on this platform." "$LINENO" 5
14563fi
14564
14565else
14566  # none specified by user; make a guess based on os
14567     case $host in #(
14568  *-*-darwin*) :
14569    # In Lion, sched_yield worked but none of the other options had any effect
14570             # In Mojave x86_64, sched_yield may yield to threads in thread_wait_barrier which is slow to yield back,
14571             #    usleep(0) seems work well.
14572             if test "x$ac_cv_func_usleep" = "xyes"; then :
14573  enable_yield=usleep
14574else
14575  enable_yield=nothing
14576fi ;; #(
14577  *-*-linux*) :
14578    # sched_yield() has been broken in linux since 2.6.23, and no good alternative exists.
14579             enable_yield=nothing ;; #(
14580  *) :
14581    # default: just use sched_yield() or yield()
14582         if test "x$ac_cv_func_sched_yield" = "xyes"; then :
14583  enable_yield=sched_yield
14584elif test "x$ac_cv_func_yield" = "xyes"; then :
14585  enable_yield=yield
14586else
14587  enable_yield=nothing
14588fi ;;
14589esac
14590
14591
14592fi
14593
14594
14595# set the appropriate macro
14596case $enable_yield in #(
14597  sched_yield) :
14598
14599$as_echo "#define USE_SCHED_YIELD_FOR_YIELD 1" >>confdefs.h
14600 ;; #(
14601  yield) :
14602
14603$as_echo "#define USE_YIELD_FOR_YIELD 1" >>confdefs.h
14604 ;; #(
14605  select) :
14606
14607$as_echo "#define USE_SELECT_FOR_YIELD 1" >>confdefs.h
14608 ;; #(
14609  usleep) :
14610
14611$as_echo "#define USE_USLEEP_FOR_YIELD 1" >>confdefs.h
14612 ;; #(
14613  sleep) :
14614
14615$as_echo "#define USE_SLEEP_FOR_YIELD 1" >>confdefs.h
14616 ;; #(
14617  nothing|no|none) :
14618
14619$as_echo "#define USE_NOTHING_FOR_YIELD 1" >>confdefs.h
14620 ;; #(
14621  *) :
14622    as_fn_error $? "Invalid value $enable_yield for enable_yield." "$LINENO" 5
14623 ;;
14624esac
14625
14626#######################################################################
14627## END OF PROCESSOR YIELD CODE
14628#######################################################################
14629
14630
14631#######################################################################
14632## START OF THREADS CODE
14633#######################################################################
14634
14635
14636
14637# Check whether --with-thread-package was given.
14638if test "${with_thread_package+set}" = set; then :
14639  withval=$with_thread_package;
14640else
14641  with_thread_package=posix
14642fi
14643
14644
14645
14646# Check whether --with-posix-mutex was given.
14647if test "${with_posix_mutex+set}" = set; then :
14648  withval=$with_posix_mutex;
14649else
14650  with_posix_mutex=native
14651fi
14652
14653
14654THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_INVALID
14655case $with_thread_package in
14656    yes|posix|pthreads)
14657	for ac_header in pthread.h
14658do :
14659  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14660if test "x$ac_cv_header_pthread_h" = xyes; then :
14661  cat >>confdefs.h <<_ACEOF
14662#define HAVE_PTHREAD_H 1
14663_ACEOF
14664
14665fi
14666
14667done
14668
14669
14670        # If pthreads library is found, just include it on the link line. We don't try
14671        # to test if the C compiler needs it or not, since the C++ or Fortran
14672        # compilers might need it even if the C compiler doesn't
14673        # (nvcc with gfortran, for example).
14674        #
14675        # OSF1 has __pthread_create but not pthread_create (because of
14676        # inconsistencies in the pthread spec).  Thus, we look for pthread_key_create
14677        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_key_create in -lpthread" >&5
14678$as_echo_n "checking for pthread_key_create in -lpthread... " >&6; }
14679if ${ac_cv_lib_pthread_pthread_key_create+:} false; then :
14680  $as_echo_n "(cached) " >&6
14681else
14682  ac_check_lib_save_LIBS=$LIBS
14683LIBS="-lpthread  $LIBS"
14684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14685/* end confdefs.h.  */
14686
14687/* Override any GCC internal prototype to avoid an error.
14688   Use char because int might match the return type of a GCC
14689   builtin and then its argument prototype would still apply.  */
14690#ifdef __cplusplus
14691extern "C"
14692#endif
14693char pthread_key_create ();
14694int
14695main ()
14696{
14697return pthread_key_create ();
14698  ;
14699  return 0;
14700}
14701_ACEOF
14702if ac_fn_c_try_link "$LINENO"; then :
14703  ac_cv_lib_pthread_pthread_key_create=yes
14704else
14705  ac_cv_lib_pthread_pthread_key_create=no
14706fi
14707rm -f core conftest.err conftest.$ac_objext \
14708    conftest$ac_exeext conftest.$ac_ext
14709LIBS=$ac_check_lib_save_LIBS
14710fi
14711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_key_create" >&5
14712$as_echo "$ac_cv_lib_pthread_pthread_key_create" >&6; }
14713if test "x$ac_cv_lib_pthread_pthread_key_create" = xyes; then :
14714  have_pthreads=yes
14715fi
14716
14717	if test "$have_pthreads" = "yes" ; then
14718
14719
14720        if echo "$LIBS" | $FGREP -e "\<-lpthread\>" >/dev/null 2>&1; then :
14721  echo "LIBS(='$LIBS') contains '-lpthread', not prepending" >&5
14722else
14723  echo "LIBS(='$LIBS') does not contain '-lpthread', prepending" >&5
14724                LIBS="-lpthread $LIBS"
14725
14726fi
14727
14728	fi
14729
14730        for ac_func in pthread_yield
14731do :
14732  ac_fn_c_check_func "$LINENO" "pthread_yield" "ac_cv_func_pthread_yield"
14733if test "x$ac_cv_func_pthread_yield" = xyes; then :
14734  cat >>confdefs.h <<_ACEOF
14735#define HAVE_PTHREAD_YIELD 1
14736_ACEOF
14737
14738fi
14739done
14740
14741
14742        # this check should come after the AC_CHECK_LIB for -lpthread
14743        ac_fn_c_check_func "$LINENO" "pthread_key_create" "ac_cv_func_pthread_key_create"
14744if test "x$ac_cv_func_pthread_key_create" = xyes; then :
14745
14746else
14747  as_fn_error $? "unable to find pthreads library" "$LINENO" 5
14748fi
14749
14750	THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_POSIX
14751	;;
14752    uti)
14753
14754
14755
14756# Check whether --with-uti was given.
14757if test "${with_uti+set}" = set; then :
14758  withval=$with_uti;
14759fi
14760
14761
14762
14763# Check whether --with-uti-include was given.
14764if test "${with_uti_include+set}" = set; then :
14765  withval=$with_uti_include; case "$withval" in #(
14766  yes|no|'') :
14767    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-uti-include=PATH expects a valid PATH" >&5
14768$as_echo "$as_me: WARNING: --without-uti-include=PATH expects a valid PATH" >&2;}
14769                          with_uti_include="" ;; #(
14770  *) :
14771     ;;
14772esac
14773fi
14774
14775
14776# Check whether --with-uti-lib was given.
14777if test "${with_uti_lib+set}" = set; then :
14778  withval=$with_uti_lib; case "$withval" in #(
14779  yes|no|'') :
14780    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-uti-lib=PATH expects a valid PATH" >&5
14781$as_echo "$as_me: WARNING: --without-uti-lib=PATH expects a valid PATH" >&2;}
14782                          with_uti_lib="" ;; #(
14783  *) :
14784     ;;
14785esac
14786fi
14787
14788
14789    # The args have been sanitized into empty/non-empty values above.
14790    # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
14791    # taking priority
14792
14793    case "${with_uti}" in
14794        embedded)
14795            as_fn_error $? "embedded uti is requested but we do not have the embedded version" "$LINENO" 5
14796            ;;
14797        yes|no)
14798            # skip
14799            ;;
14800        *)
14801    if test -n "${with_uti_include}"; then :
14802
14803
14804	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_uti_include}\>" >/dev/null 2>&1; then :
14805  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_uti_include}', not appending" >&5
14806else
14807  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_uti_include}', appending" >&5
14808		CPPFLAGS="$CPPFLAGS -I${with_uti_include}"
14809
14810fi
14811
14812else
14813  if test -n "${with_uti}"; then :
14814
14815
14816	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_uti}/include\>" >/dev/null 2>&1; then :
14817  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_uti}/include', not appending" >&5
14818else
14819  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_uti}/include', appending" >&5
14820		CPPFLAGS="$CPPFLAGS -I${with_uti}/include"
14821
14822fi
14823
14824fi
14825fi
14826
14827    if test -n "${with_uti_lib}"; then :
14828
14829
14830	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_uti_lib}\>" >/dev/null 2>&1; then :
14831  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_uti_lib}', not appending" >&5
14832else
14833  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_uti_lib}', appending" >&5
14834		LDFLAGS="$LDFLAGS -L${with_uti_lib}"
14835
14836fi
14837
14838else
14839  if test -n "${with_uti}"; then :
14840
14841
14842	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_uti}/lib\>" >/dev/null 2>&1; then :
14843  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_uti}/lib', not appending" >&5
14844else
14845  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_uti}/lib', appending" >&5
14846		LDFLAGS="$LDFLAGS -L${with_uti}/lib"
14847
14848fi
14849
14850                  if test -d "${with_uti}/lib64"; then :
14851
14852
14853	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_uti}/lib64\>" >/dev/null 2>&1; then :
14854  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_uti}/lib64', not appending" >&5
14855else
14856  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_uti}/lib64', appending" >&5
14857		LDFLAGS="$LDFLAGS -L${with_uti}/lib64"
14858
14859fi
14860
14861fi
14862
14863fi
14864
14865fi
14866            ;;
14867    esac
14868
14869
14870    failure=no
14871    ac_fn_c_check_header_mongrel "$LINENO" "uti.h" "ac_cv_header_uti_h" "$ac_includes_default"
14872if test "x$ac_cv_header_uti_h" = xyes; then :
14873
14874else
14875  failure=yes
14876fi
14877
14878
14879
14880	if test -z "${pac_save_LIBS_nesting}" ; then
14881	   pac_save_LIBS_nesting=0
14882	fi
14883	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
14884	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
14885
14886    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uti_attr_init in -luti" >&5
14887$as_echo_n "checking for uti_attr_init in -luti... " >&6; }
14888if ${ac_cv_lib_uti_uti_attr_init+:} false; then :
14889  $as_echo_n "(cached) " >&6
14890else
14891  ac_check_lib_save_LIBS=$LIBS
14892LIBS="-luti  $LIBS"
14893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894/* end confdefs.h.  */
14895
14896/* Override any GCC internal prototype to avoid an error.
14897   Use char because int might match the return type of a GCC
14898   builtin and then its argument prototype would still apply.  */
14899#ifdef __cplusplus
14900extern "C"
14901#endif
14902char uti_attr_init ();
14903int
14904main ()
14905{
14906return uti_attr_init ();
14907  ;
14908  return 0;
14909}
14910_ACEOF
14911if ac_fn_c_try_link "$LINENO"; then :
14912  ac_cv_lib_uti_uti_attr_init=yes
14913else
14914  ac_cv_lib_uti_uti_attr_init=no
14915fi
14916rm -f core conftest.err conftest.$ac_objext \
14917    conftest$ac_exeext conftest.$ac_ext
14918LIBS=$ac_check_lib_save_LIBS
14919fi
14920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uti_uti_attr_init" >&5
14921$as_echo "$ac_cv_lib_uti_uti_attr_init" >&6; }
14922if test "x$ac_cv_lib_uti_uti_attr_init" = xyes; then :
14923  cat >>confdefs.h <<_ACEOF
14924#define HAVE_LIBUTI 1
14925_ACEOF
14926
14927  LIBS="-luti $LIBS"
14928
14929else
14930  failure=yes
14931fi
14932
14933
14934	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
14935	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
14936	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
14937
14938    if test "$failure" = "no" ; then
14939       success=yes
14940    else
14941       success=no
14942    fi
14943
14944    if test "$success" = "no" ; then
14945        as_fn_error $? "uti.h or libuti library not found. Did you specify --with-uti= or --with-uti-include= or --with-uti-lib=?" "$LINENO" 5
14946    fi
14947
14948
14949
14950	if echo "$LIBS" | $FGREP -e "\<-luti\>" >/dev/null 2>&1; then :
14951  echo "LIBS(='$LIBS') contains '-luti', not appending" >&5
14952else
14953  echo "LIBS(='$LIBS') does not contain '-luti', appending" >&5
14954		LIBS="$LIBS -luti"
14955
14956fi
14957
14958
14959
14960	THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_UTI
14961	;;
14962    solaris)
14963	for ac_header in thread.h
14964do :
14965  ac_fn_c_check_header_mongrel "$LINENO" "thread.h" "ac_cv_header_thread_h" "$ac_includes_default"
14966if test "x$ac_cv_header_thread_h" = xyes; then :
14967  cat >>confdefs.h <<_ACEOF
14968#define HAVE_THREAD_H 1
14969_ACEOF
14970
14971fi
14972
14973done
14974
14975	for ac_func in thr_yield
14976do :
14977  ac_fn_c_check_func "$LINENO" "thr_yield" "ac_cv_func_thr_yield"
14978if test "x$ac_cv_func_thr_yield" = xyes; then :
14979  cat >>confdefs.h <<_ACEOF
14980#define HAVE_THR_YIELD 1
14981_ACEOF
14982
14983fi
14984done
14985
14986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing thr_create" >&5
14987$as_echo_n "checking for library containing thr_create... " >&6; }
14988if ${ac_cv_search_thr_create+:} false; then :
14989  $as_echo_n "(cached) " >&6
14990else
14991  ac_func_search_save_LIBS=$LIBS
14992cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993/* end confdefs.h.  */
14994
14995/* Override any GCC internal prototype to avoid an error.
14996   Use char because int might match the return type of a GCC
14997   builtin and then its argument prototype would still apply.  */
14998#ifdef __cplusplus
14999extern "C"
15000#endif
15001char thr_create ();
15002int
15003main ()
15004{
15005return thr_create ();
15006  ;
15007  return 0;
15008}
15009_ACEOF
15010for ac_lib in '' thread; do
15011  if test -z "$ac_lib"; then
15012    ac_res="none required"
15013  else
15014    ac_res=-l$ac_lib
15015    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15016  fi
15017  if ac_fn_c_try_link "$LINENO"; then :
15018  ac_cv_search_thr_create=$ac_res
15019fi
15020rm -f core conftest.err conftest.$ac_objext \
15021    conftest$ac_exeext
15022  if ${ac_cv_search_thr_create+:} false; then :
15023  break
15024fi
15025done
15026if ${ac_cv_search_thr_create+:} false; then :
15027
15028else
15029  ac_cv_search_thr_create=no
15030fi
15031rm conftest.$ac_ext
15032LIBS=$ac_func_search_save_LIBS
15033fi
15034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_thr_create" >&5
15035$as_echo "$ac_cv_search_thr_create" >&6; }
15036ac_res=$ac_cv_search_thr_create
15037if test "$ac_res" != no; then :
15038  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15039  found=yes
15040else
15041  found=no
15042fi
15043
15044	if test "$found" != "yes" ; then
15045	   as_fn_error $? "unable to find Solaris threads library" "$LINENO" 5
15046	fi
15047	# FIXME: need to add -mt if using solaris compilers
15048        THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_SOLARIS
15049	;;
15050    win|windows)
15051        with_thread_package=win
15052        THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_WIN
15053        as_fn_error $? "The 'win' thread package is not supported via autoconf builds at this time." "$LINENO" 5
15054        ;;
15055    abt|argobots)
15056        with_thread_package=argobots
15057
15058
15059
15060# Check whether --with-argobots was given.
15061if test "${with_argobots+set}" = set; then :
15062  withval=$with_argobots;
15063fi
15064
15065
15066
15067# Check whether --with-argobots-include was given.
15068if test "${with_argobots_include+set}" = set; then :
15069  withval=$with_argobots_include; case "$withval" in #(
15070  yes|no|'') :
15071    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-argobots-include=PATH expects a valid PATH" >&5
15072$as_echo "$as_me: WARNING: --without-argobots-include=PATH expects a valid PATH" >&2;}
15073                          with_argobots_include="" ;; #(
15074  *) :
15075     ;;
15076esac
15077fi
15078
15079
15080# Check whether --with-argobots-lib was given.
15081if test "${with_argobots_lib+set}" = set; then :
15082  withval=$with_argobots_lib; case "$withval" in #(
15083  yes|no|'') :
15084    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-argobots-lib=PATH expects a valid PATH" >&5
15085$as_echo "$as_me: WARNING: --without-argobots-lib=PATH expects a valid PATH" >&2;}
15086                          with_argobots_lib="" ;; #(
15087  *) :
15088     ;;
15089esac
15090fi
15091
15092
15093    # The args have been sanitized into empty/non-empty values above.
15094    # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
15095    # taking priority
15096
15097    case "${with_argobots}" in
15098        embedded)
15099            as_fn_error $? "embedded argobots is requested but we do not have the embedded version" "$LINENO" 5
15100            ;;
15101        yes|no)
15102            # skip
15103            ;;
15104        *)
15105    if test -n "${with_argobots_include}"; then :
15106
15107
15108	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_argobots_include}\>" >/dev/null 2>&1; then :
15109  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_argobots_include}', not appending" >&5
15110else
15111  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_argobots_include}', appending" >&5
15112		CPPFLAGS="$CPPFLAGS -I${with_argobots_include}"
15113
15114fi
15115
15116else
15117  if test -n "${with_argobots}"; then :
15118
15119
15120	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_argobots}/include\>" >/dev/null 2>&1; then :
15121  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_argobots}/include', not appending" >&5
15122else
15123  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_argobots}/include', appending" >&5
15124		CPPFLAGS="$CPPFLAGS -I${with_argobots}/include"
15125
15126fi
15127
15128fi
15129fi
15130
15131    if test -n "${with_argobots_lib}"; then :
15132
15133
15134	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_argobots_lib}\>" >/dev/null 2>&1; then :
15135  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_argobots_lib}', not appending" >&5
15136else
15137  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_argobots_lib}', appending" >&5
15138		LDFLAGS="$LDFLAGS -L${with_argobots_lib}"
15139
15140fi
15141
15142else
15143  if test -n "${with_argobots}"; then :
15144
15145
15146	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_argobots}/lib\>" >/dev/null 2>&1; then :
15147  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_argobots}/lib', not appending" >&5
15148else
15149  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_argobots}/lib', appending" >&5
15150		LDFLAGS="$LDFLAGS -L${with_argobots}/lib"
15151
15152fi
15153
15154                  if test -d "${with_argobots}/lib64"; then :
15155
15156
15157	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_argobots}/lib64\>" >/dev/null 2>&1; then :
15158  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_argobots}/lib64', not appending" >&5
15159else
15160  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_argobots}/lib64', appending" >&5
15161		LDFLAGS="$LDFLAGS -L${with_argobots}/lib64"
15162
15163fi
15164
15165fi
15166
15167fi
15168
15169fi
15170            ;;
15171    esac
15172
15173
15174    failure=no
15175    ac_fn_c_check_header_mongrel "$LINENO" "abt.h" "ac_cv_header_abt_h" "$ac_includes_default"
15176if test "x$ac_cv_header_abt_h" = xyes; then :
15177
15178else
15179  failure=yes
15180fi
15181
15182
15183
15184	if test -z "${pac_save_LIBS_nesting}" ; then
15185	   pac_save_LIBS_nesting=0
15186	fi
15187	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
15188	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
15189
15190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABT_key_create in -labt" >&5
15191$as_echo_n "checking for ABT_key_create in -labt... " >&6; }
15192if ${ac_cv_lib_abt_ABT_key_create+:} false; then :
15193  $as_echo_n "(cached) " >&6
15194else
15195  ac_check_lib_save_LIBS=$LIBS
15196LIBS="-labt  $LIBS"
15197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198/* end confdefs.h.  */
15199
15200/* Override any GCC internal prototype to avoid an error.
15201   Use char because int might match the return type of a GCC
15202   builtin and then its argument prototype would still apply.  */
15203#ifdef __cplusplus
15204extern "C"
15205#endif
15206char ABT_key_create ();
15207int
15208main ()
15209{
15210return ABT_key_create ();
15211  ;
15212  return 0;
15213}
15214_ACEOF
15215if ac_fn_c_try_link "$LINENO"; then :
15216  ac_cv_lib_abt_ABT_key_create=yes
15217else
15218  ac_cv_lib_abt_ABT_key_create=no
15219fi
15220rm -f core conftest.err conftest.$ac_objext \
15221    conftest$ac_exeext conftest.$ac_ext
15222LIBS=$ac_check_lib_save_LIBS
15223fi
15224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_abt_ABT_key_create" >&5
15225$as_echo "$ac_cv_lib_abt_ABT_key_create" >&6; }
15226if test "x$ac_cv_lib_abt_ABT_key_create" = xyes; then :
15227  cat >>confdefs.h <<_ACEOF
15228#define HAVE_LIBABT 1
15229_ACEOF
15230
15231  LIBS="-labt $LIBS"
15232
15233else
15234  failure=yes
15235fi
15236
15237
15238	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
15239	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
15240	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
15241
15242    if test "$failure" = "no" ; then
15243       success=yes
15244    else
15245       success=no
15246    fi
15247
15248    if test "$success" = "no" ; then
15249        as_fn_error $? "abt.h or libabt library not found. Did you specify --with-argobots= or --with-argobots-include= or --with-argobots-lib=?" "$LINENO" 5
15250    fi
15251
15252
15253
15254	if echo "$LIBS" | $FGREP -e "\<-labt\>" >/dev/null 2>&1; then :
15255  echo "LIBS(='$LIBS') contains '-labt', not appending" >&5
15256else
15257  echo "LIBS(='$LIBS') does not contain '-labt', appending" >&5
15258		LIBS="$LIBS -labt"
15259
15260fi
15261
15262
15263
15264        THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_ARGOBOTS
15265        ;;
15266    no|none)
15267	with_thread_package=none
15268        THREAD_PACKAGE_NAME=MPL_THREAD_PACKAGE_NONE
15269	;;
15270    *)
15271	as_fn_error $? "The specified thread package, $with_thread_package, is not supported." "$LINENO" 5
15272	;;
15273esac
15274
15275case $with_posix_mutex in
15276    ticketlock)
15277        POSIX_MUTEX_NAME=MPL_POSIX_MUTEX_TICKETLOCK
15278        ;;
15279    *)
15280        POSIX_MUTEX_NAME=MPL_POSIX_MUTEX_NATIVE
15281        ;;
15282esac
15283
15284
15285cat >>confdefs.h <<_ACEOF
15286#define THREAD_PACKAGE_NAME $THREAD_PACKAGE_NAME
15287_ACEOF
15288
15289
15290cat >>confdefs.h <<_ACEOF
15291#define POSIX_MUTEX_NAME $POSIX_MUTEX_NAME
15292_ACEOF
15293
15294
15295# check for compiler-support for thread-local storage (MPL_TLS)
15296
15297    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage" >&5
15298$as_echo_n "checking for thread local storage... " >&6; }
15299if ${pac_cv_tls+:} false; then :
15300  $as_echo_n "(cached) " >&6
15301else
15302
15303    if test -z $pac_cv_tls ; then
15304        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305/* end confdefs.h.  */
15306_Thread_local int foo=0;
15307int
15308main ()
15309{
15310foo=1
15311  ;
15312  return 0;
15313}
15314_ACEOF
15315if ac_fn_c_try_link "$LINENO"; then :
15316  pac_cv_tls=_Thread_local
15317fi
15318rm -f core conftest.err conftest.$ac_objext \
15319    conftest$ac_exeext conftest.$ac_ext
15320    fi
15321    if test -z $pac_cv_tls ; then
15322        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323/* end confdefs.h.  */
15324__thread int foo=0;
15325int
15326main ()
15327{
15328foo=1
15329  ;
15330  return 0;
15331}
15332_ACEOF
15333if ac_fn_c_try_link "$LINENO"; then :
15334  pac_cv_tls=__thread
15335fi
15336rm -f core conftest.err conftest.$ac_objext \
15337    conftest$ac_exeext conftest.$ac_ext
15338    fi
15339    if test -z $pac_cv_tls ; then
15340        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341/* end confdefs.h.  */
15342__declspec(thread) int foo=0;
15343int
15344main ()
15345{
15346foo=1
15347  ;
15348  return 0;
15349}
15350_ACEOF
15351if ac_fn_c_try_link "$LINENO"; then :
15352  pac_cv_tls="__declspec(thread)"
15353fi
15354rm -f core conftest.err conftest.$ac_objext \
15355    conftest$ac_exeext conftest.$ac_ext
15356    fi
15357fi
15358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_tls" >&5
15359$as_echo "$pac_cv_tls" >&6; }
15360    if test -z $pac_cv_tls ; then
15361        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler does not support thread local storage" >&5
15362$as_echo "$as_me: WARNING: Compiler does not support thread local storage" >&2;}
15363    else
15364
15365cat >>confdefs.h <<_ACEOF
15366#define COMPILER_TLS $pac_cv_tls
15367_ACEOF
15368
15369    fi
15370
15371
15372#######################################################################
15373## END OF THREADS CODE
15374#######################################################################
15375
15376#######################################################################
15377## START OF PROCESS MUTEX CODE
15378#######################################################################
15379
15380
15381# Check whether --with-proc-mutex-package was given.
15382if test "${with_proc_mutex_package+set}" = set; then :
15383  withval=$with_proc_mutex_package;
15384else
15385  with_proc_mutex_package=posix
15386fi
15387
15388
15389if test "${with_proc_mutex_package}" = "no" ; then
15390   with_proc_mutex_package=none
15391fi
15392if test "${with_proc_mutex_package}" = "yes" ; then
15393   with_proc_mutex_package=posix
15394fi
15395
15396PROC_MUTEX_PACKAGE_NAME=MPL_PROC_MUTEX_PACKAGE_INVALID
15397case $with_proc_mutex_package in
15398  posix|pthreads)
15399    if test "${with_proc_mutex_package}" = "pthreads" ; then
15400        with_proc_mutex_package=posix
15401    fi
15402
15403    # Do not prepend -lpthread again if already checked by thread package
15404    if test "${with_thread_package}" != "posix" ; then
15405        for ac_header in pthread.h
15406do :
15407  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15408if test "x$ac_cv_header_pthread_h" = xyes; then :
15409  cat >>confdefs.h <<_ACEOF
15410#define HAVE_PTHREAD_H 1
15411_ACEOF
15412
15413fi
15414
15415done
15416
15417
15418        # If pthreads library is found, just include it on the link line. We don't try
15419        # to test if the C compiler needs it or not, since the C++ or Fortran
15420        # compilers might need it even if the C compiler doesn't
15421        # (nvcc with gfortran, for example).
15422        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
15423$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
15424if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
15425  $as_echo_n "(cached) " >&6
15426else
15427  ac_check_lib_save_LIBS=$LIBS
15428LIBS="-lpthread  $LIBS"
15429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430/* end confdefs.h.  */
15431
15432/* Override any GCC internal prototype to avoid an error.
15433   Use char because int might match the return type of a GCC
15434   builtin and then its argument prototype would still apply.  */
15435#ifdef __cplusplus
15436extern "C"
15437#endif
15438char pthread_mutex_init ();
15439int
15440main ()
15441{
15442return pthread_mutex_init ();
15443  ;
15444  return 0;
15445}
15446_ACEOF
15447if ac_fn_c_try_link "$LINENO"; then :
15448  ac_cv_lib_pthread_pthread_mutex_init=yes
15449else
15450  ac_cv_lib_pthread_pthread_mutex_init=no
15451fi
15452rm -f core conftest.err conftest.$ac_objext \
15453    conftest$ac_exeext conftest.$ac_ext
15454LIBS=$ac_check_lib_save_LIBS
15455fi
15456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
15457$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
15458if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
15459  have_pthreads=yes
15460fi
15461
15462        if test "$have_pthreads" = "yes" ; then
15463
15464
15465        if echo "$LIBS" | $FGREP -e "\<-lpthread\>" >/dev/null 2>&1; then :
15466  echo "LIBS(='$LIBS') contains '-lpthread', not prepending" >&5
15467else
15468  echo "LIBS(='$LIBS') does not contain '-lpthread', prepending" >&5
15469                LIBS="-lpthread $LIBS"
15470
15471fi
15472
15473        fi
15474    fi
15475
15476    # this check should come after the AC_CHECK_LIB for -lpthread
15477    ac_fn_c_check_func "$LINENO" "pthread_mutex_init" "ac_cv_func_pthread_mutex_init"
15478if test "x$ac_cv_func_pthread_mutex_init" = xyes; then :
15479
15480else
15481  as_fn_error $? "unable to find pthreads library" "$LINENO" 5
15482fi
15483
15484    # pthread_mutexattr_setpshared is first released in Issue 5
15485    for ac_func in pthread_mutexattr_setpshared
15486do :
15487  ac_fn_c_check_func "$LINENO" "pthread_mutexattr_setpshared" "ac_cv_func_pthread_mutexattr_setpshared"
15488if test "x$ac_cv_func_pthread_mutexattr_setpshared" = xyes; then :
15489  cat >>confdefs.h <<_ACEOF
15490#define HAVE_PTHREAD_MUTEXATTR_SETPSHARED 1
15491_ACEOF
15492
15493fi
15494done
15495
15496
15497    { $as_echo "$as_me:${as_lineno-$LINENO}: POSIX will be used for interprocess mutex package." >&5
15498$as_echo "$as_me: POSIX will be used for interprocess mutex package." >&6;}
15499    PROC_MUTEX_PACKAGE_NAME=MPL_PROC_MUTEX_PACKAGE_POSIX
15500  ;;
15501  no|none)
15502    with_proc_mutex_package=none
15503    PROC_MUTEX_PACKAGE_NAME=MPL_PROC_MUTEX_PACKAGE_NONE
15504  ;;
15505  *)
15506    as_fn_error $? "The specified interprocess mutex package, $with_proc_mutex_package, is not supported." "$LINENO" 5
15507  ;;
15508esac
15509
15510# Define and export the selected interprocess mutex package so that other packages
15511# know what's used in MPL
15512
15513cat >>confdefs.h <<_ACEOF
15514#define PROC_MUTEX_PACKAGE_NAME $PROC_MUTEX_PACKAGE_NAME
15515_ACEOF
15516
15517#######################################################################
15518## END OF PROCESS MUTEX CODE
15519#######################################################################
15520
15521#######################################################################
15522## START OF PTHREAD MUTEX COMMON CHECK
15523#######################################################################
15524if test "${with_thread_package}" = "pthreads" -o "${with_proc_mutex_package}" = "pthreads"; then
15525  # Check for PTHREAD_MUTEX_ERRORCHECK_NP and PTHREAD_MUTEX_ERRORCHECK
15526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread.h defines PTHREAD_MUTEX_ERRORCHECK_NP" >&5
15527$as_echo_n "checking whether pthread.h defines PTHREAD_MUTEX_ERRORCHECK_NP... " >&6; }
15528if ${pac_cv_has_pthread_mutex_errorcheck_np+:} false; then :
15529  $as_echo_n "(cached) " >&6
15530else
15531
15532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15533/* end confdefs.h.  */
15534#include <pthread.h>
15535int
15536main ()
15537{
15538int a=PTHREAD_MUTEX_ERRORCHECK_NP;
15539  ;
15540  return 0;
15541}
15542_ACEOF
15543if ac_fn_c_try_compile "$LINENO"; then :
15544  pac_cv_has_pthread_mutex_errorcheck_np=yes
15545else
15546  pac_cv_has_pthread_mutex_errorcheck_np=no
15547fi
15548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549fi
15550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_pthread_mutex_errorcheck_np" >&5
15551$as_echo "$pac_cv_has_pthread_mutex_errorcheck_np" >&6; }
15552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread.h defines PTHREAD_MUTEX_ERRORCHECK" >&5
15553$as_echo_n "checking whether pthread.h defines PTHREAD_MUTEX_ERRORCHECK... " >&6; }
15554if ${pac_cv_has_pthread_mutex_errorcheck+:} false; then :
15555  $as_echo_n "(cached) " >&6
15556else
15557
15558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559/* end confdefs.h.  */
15560#include <pthread.h>
15561int
15562main ()
15563{
15564int a=PTHREAD_MUTEX_ERRORCHECK;
15565  ;
15566  return 0;
15567}
15568_ACEOF
15569if ac_fn_c_try_compile "$LINENO"; then :
15570  pac_cv_has_pthread_mutex_errorcheck=yes
15571else
15572  pac_cv_has_pthread_mutex_errorcheck=no
15573fi
15574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15575fi
15576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_has_pthread_mutex_errorcheck" >&5
15577$as_echo "$pac_cv_has_pthread_mutex_errorcheck" >&6; }
15578
15579  if test "$pac_cv_has_pthread_mutex_errorcheck" = yes ; then
15580
15581$as_echo "#define PTHREAD_MUTEX_ERRORCHECK_VALUE PTHREAD_MUTEX_ERRORCHECK" >>confdefs.h
15582
15583  elif test "$pac_cv_has_pthread_mutex_errorcheck_np" = yes ; then
15584
15585$as_echo "#define PTHREAD_MUTEX_ERRORCHECK_VALUE PTHREAD_MUTEX_ERRORCHECK_NP" >>confdefs.h
15586
15587  fi
15588
15589
15590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_mutexattr_settype needs a declaration" >&5
15591$as_echo_n "checking whether pthread_mutexattr_settype needs a declaration... " >&6; }
15592if ${pac_cv_func_decl_pthread_mutexattr_settype+:} false; then :
15593  $as_echo_n "(cached) " >&6
15594else
15595
15596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597/* end confdefs.h.  */
15598#include <pthread.h>
15599void (*fptr)(void) = (void(*)(void))pthread_mutexattr_settype;
15600int
15601main ()
15602{
15603
15604  ;
15605  return 0;
15606}
15607_ACEOF
15608if ac_fn_c_try_compile "$LINENO"; then :
15609  pac_cv_func_decl_pthread_mutexattr_settype=no
15610else
15611  pac_cv_func_decl_pthread_mutexattr_settype=yes
15612fi
15613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614fi
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_pthread_mutexattr_settype" >&5
15616$as_echo "$pac_cv_func_decl_pthread_mutexattr_settype" >&6; }
15617if test "$pac_cv_func_decl_pthread_mutexattr_settype" = "yes" ; then
15618
15619cat >>confdefs.h <<_ACEOF
15620#define NEEDS_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
15621_ACEOF
15622
15623
15624fi
15625
15626fi
15627#######################################################################
15628## END OF PTHREAD MUTEX COMMON CHECK
15629#######################################################################
15630
15631#######################################################################
15632## START OF ATOMIC CODE
15633#######################################################################
15634
15635
15636
15637# Check whether --with-mpl-atomic-primitives was given.
15638if test "${with_mpl_atomic_primitives+set}" = set; then :
15639  withval=$with_mpl_atomic_primitives;
15640else
15641  with_mpl_atomic_primitives=auto
15642fi
15643
15644
15645
15646
15647
15648
15649# The cast to long int works around a bug in the HP C Compiler
15650# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15651# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15652# This bug is HP SR number 8606223364.
15653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15654$as_echo_n "checking size of void *... " >&6; }
15655if ${ac_cv_sizeof_void_p+:} false; then :
15656  $as_echo_n "(cached) " >&6
15657else
15658  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15659
15660else
15661  if test "$ac_cv_type_void_p" = yes; then
15662     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15664as_fn_error 77 "cannot compute sizeof (void *)
15665See \`config.log' for more details" "$LINENO" 5; }
15666   else
15667     ac_cv_sizeof_void_p=0
15668   fi
15669fi
15670
15671fi
15672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15673$as_echo "$ac_cv_sizeof_void_p" >&6; }
15674
15675
15676
15677cat >>confdefs.h <<_ACEOF
15678#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15679_ACEOF
15680
15681
15682
15683
15684	if test -z "${pac_save_CFLAGS_nesting}" ; then
15685	   pac_save_CFLAGS_nesting=0
15686	fi
15687	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
15688	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
15689
15690CFLAGS="$CFLAGS -I${srcdir}/include"
15691# Add -Werror to favor the option that does not result in warnings.
15692# Do not add the flag if the compiler doesn't accept -Werror
15693
15694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts option -Werror" >&5
15695$as_echo_n "checking whether C compiler accepts option -Werror... " >&6; }
15696pac_opt="-Werror"
15697ac_ext=c
15698ac_cpp='$CPP $CPPFLAGS'
15699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15701ac_compiler_gnu=$ac_cv_c_compiler_gnu
15702
15703CFLAGS_orig="$CFLAGS"
15704CFLAGS_opt="$pac_opt $CFLAGS"
15705pac_result="unknown"
15706
15707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708/* end confdefs.h.  */
15709
15710	#include <stdio.h>
15711                          const char hw[] = "Hello, World\n";
15712int
15713main ()
15714{
15715fputs (hw, stdout);
15716  ;
15717  return 0;
15718}
15719
15720_ACEOF
15721CFLAGS="$CFLAGS_orig"
15722rm -f pac_test1.log
15723
15724
15725# START of PUSHVAL
15726
15727if ${pac_stk_ac_link_level+:} false; then :
15728
15729    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
15730
15731else
15732
15733    pac_stk_ac_link_level=0
15734
15735fi
15736eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
15737if test "x$pac_stk_ac_link_level" = x0; then :
15738
15739        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15740
15741fi
15742
15743        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15744
15745
15746# END of PUSHVAL
15747
15748ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test1.log 2>\&1|g'`"
15749if ac_fn_c_try_link "$LINENO"; then :
15750
15751
15752    CFLAGS="$CFLAGS_opt"
15753    rm -f pac_test2.log
15754
15755
15756# START of PUSHVAL
15757
15758if ${pac_stk_ac_link_level+:} false; then :
15759
15760    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
15761
15762else
15763
15764    pac_stk_ac_link_level=0
15765
15766fi
15767eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
15768if test "x$pac_stk_ac_link_level" = x0; then :
15769
15770        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15771
15772fi
15773
15774        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15775
15776
15777# END of PUSHVAL
15778
15779ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test2.log 2>\&1|g'`"
15780if ac_fn_c_try_link "$LINENO"; then :
15781
15782
15783
15784pac_TESTLOG="pac_test.log"
15785rm -f $pac_TESTLOG
15786
15787if
15788{ $as_echo "$as_me:$LINENO: diff -b pac_test1.log pac_test2.log > $pac_TESTLOG" >&5
15789  (eval diff -b pac_test1.log pac_test2.log > $pac_TESTLOG) 2>&5
15790  ac_status=$?
15791  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792  test $ac_status = 0; }; then :
15793
15794
15795    pac_result=yes
15796
15797
15798else
15799
15800    $as_echo "$as_me: program exited with status $ac_status" >&5
15801
15802        (exit $ac_status)
15803
15804    $as_echo "*** diff -b pac_test1.log pac_test2.log :" >&5
15805    cat $pac_TESTLOG >&5
15806    pac_result=no
15807
15808
15809
15810
15811fi
15812
15813rm -f $pac_TESTLOG
15814
15815
15816
15817else
15818
15819
15820        pac_result=no
15821
15822
15823fi
15824rm -f core conftest.err conftest.$ac_objext \
15825    conftest$ac_exeext
15826
15827# START of POPVAL
15828
15829if ${pac_stk_ac_link_level+:} false; then :
15830
15831    if test "x$pac_stk_ac_link_level" = x-1; then :
15832
15833        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
15834$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
15835
15836else
15837
15838                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15839                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
15840
15841fi
15842
15843else
15844
15845    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
15846$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
15847
15848fi
15849
15850# END of POPVAL
15851
15852
15853
15854
15855else
15856
15857
15858    pac_result=no
15859
15860
15861fi
15862rm -f core conftest.err conftest.$ac_objext \
15863    conftest$ac_exeext
15864
15865# START of POPVAL
15866
15867if ${pac_stk_ac_link_level+:} false; then :
15868
15869    if test "x$pac_stk_ac_link_level" = x-1; then :
15870
15871        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
15872$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
15873
15874else
15875
15876                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15877                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
15878
15879fi
15880
15881else
15882
15883    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
15884$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
15885
15886fi
15887
15888# END of POPVAL
15889
15890
15891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
15892$as_echo "$pac_result" >&6; }
15893rm -f conftest.$ac_ext
15894
15895if test "$pac_result" = "yes" ; then
15896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt" >&5
15897$as_echo_n "checking whether routines compiled with $pac_opt can be linked with ones compiled without $pac_opt... " >&6; }
15898    pac_result=unknown
15899    CFLAGS="$CFLAGS_orig"
15900    rm -f pac_test3.log
15901
15902
15903# START of PUSHVAL
15904
15905if ${pac_stk_ac_compile_level+:} false; then :
15906
15907    as_fn_arith $pac_stk_ac_compile_level + 1 && pac_stk_ac_compile_level=$as_val
15908
15909else
15910
15911    pac_stk_ac_compile_level=0
15912
15913fi
15914eval "pac_stk_ac_compile_$pac_stk_ac_compile_level=\$ac_compile"
15915if test "x$pac_stk_ac_compile_level" = x0; then :
15916
15917        eval pac_FirstSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
15918
15919fi
15920
15921        eval pac_LastSavedValueOf_ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
15922
15923
15924# END of PUSHVAL
15925
15926ac_compile="`echo $pac_FirstSavedValueOf_ac_compile | sed -e 's|>.*$|> pac_test3.log 2>\&1|g'`"
15927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928/* end confdefs.h.  */
15929
15930
15931            int foo(void);
15932            int foo(void){return 0;}
15933
15934
15935_ACEOF
15936if ac_fn_c_try_compile "$LINENO"; then :
15937
15938
15939
15940{ $as_echo "$as_me:$LINENO: mv conftest.$OBJEXT pac_conftest.$OBJEXT" >&5
15941  (eval mv conftest.$OBJEXT pac_conftest.$OBJEXT) 2>&5
15942  ac_status=$?
15943  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944  test $ac_status = 0; }
15945        saved_LIBS="$LIBS"
15946        LIBS="pac_conftest.$OBJEXT $LIBS"
15947
15948        rm -f pac_test4.log
15949
15950
15951# START of PUSHVAL
15952
15953if ${pac_stk_ac_link_level+:} false; then :
15954
15955    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
15956
15957else
15958
15959    pac_stk_ac_link_level=0
15960
15961fi
15962eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
15963if test "x$pac_stk_ac_link_level" = x0; then :
15964
15965        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15966
15967fi
15968
15969        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
15970
15971
15972# END of PUSHVAL
15973
15974ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test4.log 2>\&1|g'`"
15975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976/* end confdefs.h.  */
15977
15978int
15979main ()
15980{
15981
15982  ;
15983  return 0;
15984}
15985_ACEOF
15986if ac_fn_c_try_link "$LINENO"; then :
15987
15988
15989            CFLAGS="$CFLAGS_opt"
15990            rm -f pac_test5.log
15991
15992
15993# START of PUSHVAL
15994
15995if ${pac_stk_ac_link_level+:} false; then :
15996
15997    as_fn_arith $pac_stk_ac_link_level + 1 && pac_stk_ac_link_level=$as_val
15998
15999else
16000
16001    pac_stk_ac_link_level=0
16002
16003fi
16004eval "pac_stk_ac_link_$pac_stk_ac_link_level=\$ac_link"
16005if test "x$pac_stk_ac_link_level" = x0; then :
16006
16007        eval pac_FirstSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
16008
16009fi
16010
16011        eval pac_LastSavedValueOf_ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
16012
16013
16014# END of PUSHVAL
16015
16016ac_link="`echo $pac_FirstSavedValueOf_ac_link | sed -e 's|>.*$|> pac_test5.log 2>\&1|g'`"
16017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018/* end confdefs.h.  */
16019
16020int
16021main ()
16022{
16023
16024  ;
16025  return 0;
16026}
16027_ACEOF
16028if ac_fn_c_try_link "$LINENO"; then :
16029
16030
16031
16032pac_TESTLOG="pac_test.log"
16033rm -f $pac_TESTLOG
16034
16035if
16036{ $as_echo "$as_me:$LINENO: diff -b pac_test4.log pac_test5.log > $pac_TESTLOG" >&5
16037  (eval diff -b pac_test4.log pac_test5.log > $pac_TESTLOG) 2>&5
16038  ac_status=$?
16039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040  test $ac_status = 0; }; then :
16041
16042
16043    pac_result=yes
16044
16045
16046else
16047
16048    $as_echo "$as_me: program exited with status $ac_status" >&5
16049
16050        (exit $ac_status)
16051
16052    $as_echo "*** diff -b pac_test4.log pac_test5.log :" >&5
16053    cat $pac_TESTLOG >&5
16054    pac_result=no
16055
16056
16057
16058
16059fi
16060
16061rm -f $pac_TESTLOG
16062
16063
16064
16065else
16066
16067
16068                pac_result=no
16069
16070
16071fi
16072rm -f core conftest.err conftest.$ac_objext \
16073    conftest$ac_exeext conftest.$ac_ext
16074
16075# START of POPVAL
16076
16077if ${pac_stk_ac_link_level+:} false; then :
16078
16079    if test "x$pac_stk_ac_link_level" = x-1; then :
16080
16081        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
16082$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
16083
16084else
16085
16086                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
16087                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
16088
16089fi
16090
16091else
16092
16093    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
16094$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
16095
16096fi
16097
16098# END of POPVAL
16099
16100
16101
16102
16103else
16104
16105
16106            pac_result=no
16107
16108
16109fi
16110rm -f core conftest.err conftest.$ac_objext \
16111    conftest$ac_exeext conftest.$ac_ext
16112
16113# START of POPVAL
16114
16115if ${pac_stk_ac_link_level+:} false; then :
16116
16117    if test "x$pac_stk_ac_link_level" = x-1; then :
16118
16119        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&5
16120$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_link\"" >&2;}
16121
16122else
16123
16124                eval ac_link=\$pac_stk_ac_link_$pac_stk_ac_link_level
16125                as_fn_arith  $pac_stk_ac_link_level - 1  && pac_stk_ac_link_level=$as_val
16126
16127fi
16128
16129else
16130
16131    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&5
16132$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_link\"" >&2;}
16133
16134fi
16135
16136# END of POPVAL
16137
16138
16139        LIBS="$saved_LIBS"
16140        rm -f pac_conftest.$OBJEXT
16141
16142
16143else
16144
16145
16146        pac_result=no
16147
16148
16149fi
16150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16151
16152# START of POPVAL
16153
16154if ${pac_stk_ac_compile_level+:} false; then :
16155
16156    if test "x$pac_stk_ac_compile_level" = x-1; then :
16157
16158        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&5
16159$as_echo "$as_me: WARNING: \"Imbalance of PUSHVAL/POPVAL of ac_compile\"" >&2;}
16160
16161else
16162
16163                eval ac_compile=\$pac_stk_ac_compile_$pac_stk_ac_compile_level
16164                as_fn_arith  $pac_stk_ac_compile_level - 1  && pac_stk_ac_compile_level=$as_val
16165
16166fi
16167
16168else
16169
16170    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&5
16171$as_echo "$as_me: WARNING: \"Uninitialized PUSHVAL/POPVAL of ac_compile\"" >&2;}
16172
16173fi
16174
16175# END of POPVAL
16176
16177
16178    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_result" >&5
16179$as_echo "$pac_result" >&6; }
16180    rm -f pac_test3.log pac_test4.log pac_test5.log
16181fi
16182rm -f pac_test1.log pac_test2.log
16183
16184CFLAGS="$CFLAGS_orig"
16185if test "$pac_result" = "yes" ; then
16186     CFLAGS="$CFLAGS -Werror"
16187else
16188     :
16189fi
16190ac_ext=c
16191ac_cpp='$CPP $CPPFLAGS'
16192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16194ac_compiler_gnu=$ac_cv_c_compiler_gnu
16195
16196
16197mpl_atomic_primitives_set=false
16198if test "$with_mpl_atomic_primitives" = "auto" \
16199        -o "$with_mpl_atomic_primitives" = "gcc_sync"; then
16200
16201    checked_specified_primitive=yes
16202    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for support for gcc __sync intrinsics" >&5
16203$as_echo_n "checking for support for gcc __sync intrinsics... " >&6; }
16204
16205    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16206/* end confdefs.h.  */
16207
16208    #include "mpl_atomic_gcc_sync.h"
16209    int main()
16210    {
16211        struct MPL_atomic_int_t a, b;
16212        int c;
16213
16214        MPL_atomic_relaxed_store_int(&a, 0);
16215        MPL_atomic_relaxed_store_int(&b, 1);
16216        c = MPL_atomic_relaxed_load_int(&a);
16217
16218        MPL_atomic_release_store_int(&a, 0);
16219        MPL_atomic_release_store_int(&b, 1);
16220        c = MPL_atomic_acquire_load_int(&a);
16221
16222        MPL_atomic_fetch_add_int(&a, 10);
16223        MPL_atomic_fetch_sub_int(&a, 10);
16224
16225        c = MPL_atomic_cas_int(&a, 10, 11);
16226        c = MPL_atomic_swap_int(&a, 10);
16227
16228        MPL_atomic_write_barrier();
16229        MPL_atomic_read_barrier();
16230        MPL_atomic_read_write_barrier();
16231
16232        return c;
16233    }
16234
16235
16236_ACEOF
16237if ac_fn_c_try_link "$LINENO"; then :
16238
16239$as_echo "#define HAVE_GCC_INTRINSIC_SYNC 1" >>confdefs.h
16240
16241        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16242$as_echo "yes" >&6; }
16243        mpl_atomic_primitives_set=true
16244
16245else
16246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16247$as_echo "no" >&6; }
16248
16249fi
16250rm -f core conftest.err conftest.$ac_objext \
16251    conftest$ac_exeext conftest.$ac_ext
16252
16253fi
16254if test "$with_mpl_atomic_primitives" = "auto" \
16255        -o "$with_mpl_atomic_primitives" = "gcc_atomic"; then
16256
16257    checked_specified_primitive=yes
16258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for support for gcc __atomic intrinsics" >&5
16259$as_echo_n "checking for support for gcc __atomic intrinsics... " >&6; }
16260
16261    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262/* end confdefs.h.  */
16263
16264    #include "mpl_atomic_gcc_atomic.h"
16265    int main()
16266    {
16267        struct MPL_atomic_int_t a, b;
16268        int c;
16269
16270        MPL_atomic_relaxed_store_int(&a, 0);
16271        MPL_atomic_relaxed_store_int(&b, 1);
16272        c = MPL_atomic_relaxed_load_int(&a);
16273
16274        MPL_atomic_release_store_int(&a, 0);
16275        MPL_atomic_release_store_int(&b, 1);
16276        c = MPL_atomic_acquire_load_int(&a);
16277
16278        MPL_atomic_fetch_add_int(&a, 10);
16279        MPL_atomic_fetch_sub_int(&a, 10);
16280
16281        c = MPL_atomic_cas_int(&a, 10, 11);
16282        c = MPL_atomic_swap_int(&a, 10);
16283
16284        MPL_atomic_write_barrier();
16285        MPL_atomic_read_barrier();
16286        MPL_atomic_read_write_barrier();
16287
16288        return c;
16289    }
16290
16291
16292_ACEOF
16293if ac_fn_c_try_link "$LINENO"; then :
16294
16295$as_echo "#define HAVE_GCC_INTRINSIC_ATOMIC 1" >>confdefs.h
16296
16297        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16298$as_echo "yes" >&6; }
16299        mpl_atomic_primitives_set=true
16300
16301else
16302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16303$as_echo "no" >&6; }
16304
16305fi
16306rm -f core conftest.err conftest.$ac_objext \
16307    conftest$ac_exeext conftest.$ac_ext
16308
16309fi
16310if test "$with_mpl_atomic_primitives" = "auto" \
16311        -o "$with_mpl_atomic_primitives" = "c11"; then
16312
16313    checked_specified_primitive=yes
16314    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for support for C11 atomic intrinsics" >&5
16315$as_echo_n "checking for support for C11 atomic intrinsics... " >&6; }
16316
16317    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318/* end confdefs.h.  */
16319
16320    #include "mpl_atomic_c11.h"
16321    int main()
16322    {
16323        struct MPL_atomic_int_t a, b;
16324        int c;
16325
16326        MPL_atomic_relaxed_store_int(&a, 0);
16327        MPL_atomic_relaxed_store_int(&b, 1);
16328        c = MPL_atomic_relaxed_load_int(&a);
16329
16330        MPL_atomic_release_store_int(&a, 0);
16331        MPL_atomic_release_store_int(&b, 1);
16332        c = MPL_atomic_acquire_load_int(&a);
16333
16334        MPL_atomic_fetch_add_int(&a, 10);
16335        MPL_atomic_fetch_sub_int(&a, 10);
16336
16337        c = MPL_atomic_cas_int(&a, 10, 11);
16338        c = MPL_atomic_swap_int(&a, 10);
16339
16340        MPL_atomic_write_barrier();
16341        MPL_atomic_read_barrier();
16342        MPL_atomic_read_write_barrier();
16343
16344        return c;
16345    }
16346
16347
16348_ACEOF
16349if ac_fn_c_try_link "$LINENO"; then :
16350
16351$as_echo "#define HAVE_C11_ATOMICS 1" >>confdefs.h
16352
16353        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16354$as_echo "yes" >&6; }
16355        mpl_atomic_primitives_set=true
16356
16357else
16358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16359$as_echo "no" >&6; }
16360
16361fi
16362rm -f core conftest.err conftest.$ac_objext \
16363    conftest$ac_exeext conftest.$ac_ext
16364
16365fi
16366if test "$with_mpl_atomic_primitives" = "auto" \
16367        -o "$with_mpl_atomic_primitives" = "windows"; then
16368
16369    checked_specified_primitive=yes
16370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for support for Windows NT atomic intrinsics" >&5
16371$as_echo_n "checking for support for Windows NT atomic intrinsics... " >&6; }
16372
16373    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374/* end confdefs.h.  */
16375
16376    #include "mpl_atomic_nt_intrinsics.h"
16377    int main()
16378    {
16379        struct MPL_atomic_int_t a, b;
16380        int c;
16381
16382        MPL_atomic_relaxed_store_int(&a, 0);
16383        MPL_atomic_relaxed_store_int(&b, 1);
16384        c = MPL_atomic_relaxed_load_int(&a);
16385
16386        MPL_atomic_release_store_int(&a, 0);
16387        MPL_atomic_release_store_int(&b, 1);
16388        c = MPL_atomic_acquire_load_int(&a);
16389
16390        MPL_atomic_fetch_add_int(&a, 10);
16391        MPL_atomic_fetch_sub_int(&a, 10);
16392
16393        c = MPL_atomic_cas_int(&a, 10, 11);
16394        c = MPL_atomic_swap_int(&a, 10);
16395
16396        MPL_atomic_write_barrier();
16397        MPL_atomic_read_barrier();
16398        MPL_atomic_read_write_barrier();
16399
16400        return c;
16401    }
16402
16403
16404_ACEOF
16405if ac_fn_c_try_link "$LINENO"; then :
16406
16407$as_echo "#define HAVE_NT_INTRINSICS 1" >>confdefs.h
16408
16409        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16410$as_echo "yes" >&6; }
16411        mpl_atomic_primitives_set=true
16412
16413else
16414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16415$as_echo "no" >&6; }
16416
16417fi
16418rm -f core conftest.err conftest.$ac_objext \
16419    conftest$ac_exeext conftest.$ac_ext
16420
16421fi
16422
16423	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
16424	eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
16425	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
16426
16427
16428if test "$mpl_atomic_primitives_set" = "true" ; then
16429    : # got native atomic support already
16430elif test "$with_mpl_atomic_primitives" = "auto" \
16431        -o "$with_mpl_atomic_primitives" = "lock" ; then
16432
16433$as_echo "#define USE_LOCK_BASED_PRIMITIVES 1" >>confdefs.h
16434
16435    mpl_atomic_primitives_set=true
16436elif test "$with_mpl_atomic_primitives" = "no" \
16437          -o "$with_mpl_atomic_primitives" = "none" ; then
16438
16439$as_echo "#define USE_NO_ATOMIC_PRIMITIVES 1" >>confdefs.h
16440
16441    mpl_atomic_primitives_set=true
16442fi
16443
16444if test "$mpl_atomic_primitives_set" = "false"; then
16445    as_fn_error $? "cannot support atomic primitives (argument: \
16446\`--with-mpl-atomic-primitives=$with_mpl_atomic_primitives\`)" "$LINENO" 5
16447fi
16448
16449#######################################################################
16450## END OF ATOMIC CODE
16451#######################################################################
16452
16453#######################################################################
16454## START OF DBG CODE
16455#######################################################################
16456
16457# mkstemp() is a better replacement for mktemp()
16458for ac_func in mkstemp
16459do :
16460  ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
16461if test "x$ac_cv_func_mkstemp" = xyes; then :
16462  cat >>confdefs.h <<_ACEOF
16463#define HAVE_MKSTEMP 1
16464_ACEOF
16465
16466fi
16467done
16468
16469if test "$ac_cv_func_mkstemp" = "yes" ; then
16470
16471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkstemp needs a declaration" >&5
16472$as_echo_n "checking whether mkstemp needs a declaration... " >&6; }
16473if ${pac_cv_func_decl_mkstemp+:} false; then :
16474  $as_echo_n "(cached) " >&6
16475else
16476
16477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478/* end confdefs.h.  */
16479#include <stdlib.h>
16480void (*fptr)(void) = (void(*)(void))mkstemp;
16481int
16482main ()
16483{
16484
16485  ;
16486  return 0;
16487}
16488_ACEOF
16489if ac_fn_c_try_compile "$LINENO"; then :
16490  pac_cv_func_decl_mkstemp=no
16491else
16492  pac_cv_func_decl_mkstemp=yes
16493fi
16494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16495fi
16496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_mkstemp" >&5
16497$as_echo "$pac_cv_func_decl_mkstemp" >&6; }
16498if test "$pac_cv_func_decl_mkstemp" = "yes" ; then
16499
16500cat >>confdefs.h <<_ACEOF
16501#define NEEDS_MKSTEMP_DECL 1
16502_ACEOF
16503
16504
16505fi
16506
16507fi
16508# fdopen() converts from an fd to a FILE*
16509for ac_func in fdopen
16510do :
16511  ac_fn_c_check_func "$LINENO" "fdopen" "ac_cv_func_fdopen"
16512if test "x$ac_cv_func_fdopen" = xyes; then :
16513  cat >>confdefs.h <<_ACEOF
16514#define HAVE_FDOPEN 1
16515_ACEOF
16516
16517fi
16518done
16519
16520if test "$ac_cv_func_fdopen" = "yes" ; then
16521
16522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen needs a declaration" >&5
16523$as_echo_n "checking whether fdopen needs a declaration... " >&6; }
16524if ${pac_cv_func_decl_fdopen+:} false; then :
16525  $as_echo_n "(cached) " >&6
16526else
16527
16528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529/* end confdefs.h.  */
16530#include <stdio.h>
16531void (*fptr)(void) = (void(*)(void))fdopen;
16532int
16533main ()
16534{
16535
16536  ;
16537  return 0;
16538}
16539_ACEOF
16540if ac_fn_c_try_compile "$LINENO"; then :
16541  pac_cv_func_decl_fdopen=no
16542else
16543  pac_cv_func_decl_fdopen=yes
16544fi
16545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16546fi
16547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_fdopen" >&5
16548$as_echo "$pac_cv_func_decl_fdopen" >&6; }
16549if test "$pac_cv_func_decl_fdopen" = "yes" ; then
16550
16551cat >>confdefs.h <<_ACEOF
16552#define NEEDS_FDOPEN_DECL 1
16553_ACEOF
16554
16555
16556fi
16557
16558fi
16559
16560for ac_func in getpid
16561do :
16562  ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
16563if test "x$ac_cv_func_getpid" = xyes; then :
16564  cat >>confdefs.h <<_ACEOF
16565#define HAVE_GETPID 1
16566_ACEOF
16567
16568fi
16569done
16570
16571
16572#######################################################################
16573## END OF DBG CODE
16574#######################################################################
16575
16576#######################################################################
16577## START OF SHM CODE
16578#######################################################################
16579
16580
16581
16582# check how to allocate shared memory
16583
16584# Check whether --with-shared-memory was given.
16585if test "${with_shared_memory+set}" = set; then :
16586  withval=$with_shared_memory;
16587else
16588  with_shared_memory=auto
16589fi
16590
16591
16592if test "$with_shared_memory" = auto -o "$with_shared_memory" = mmap; then
16593    found_mmap_funcs=yes
16594    for ac_func in mmap munmap
16595do :
16596  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16597ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16598if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16599  cat >>confdefs.h <<_ACEOF
16600#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16601_ACEOF
16602
16603else
16604  found_mmap_funcs=no
16605fi
16606done
16607
16608    if test "$found_mmap_funcs" = yes ; then
16609        with_shared_memory=mmap
16610
16611$as_echo "#define USE_MMAP_SHM 1" >>confdefs.h
16612
16613        { $as_echo "$as_me:${as_lineno-$LINENO}: Using a memory-mapped file for shared memory" >&5
16614$as_echo "$as_me: Using a memory-mapped file for shared memory" >&6;}
16615    elif test "$with_shared_memory" = mmap ; then
16616        as_fn_error $? "cannot support shared memory:  mmap() or munmap() not found" "$LINENO" 5
16617    fi
16618fi
16619if test "$with_shared_memory" = auto -o "$with_shared_memory" = sysv; then
16620    found_sysv_shm_funcs=yes
16621    for ac_func in shmget shmat shmctl shmdt
16622do :
16623  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16624ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16625if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16626  cat >>confdefs.h <<_ACEOF
16627#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16628_ACEOF
16629
16630else
16631  found_sysv_shm_funcs=no
16632fi
16633done
16634
16635    if test "$found_sysv_shm_funcs" = yes ; then
16636        with_shared_memory=sysv
16637
16638$as_echo "#define USE_SYSV_SHM 1" >>confdefs.h
16639
16640        { $as_echo "$as_me:${as_lineno-$LINENO}: Using SYSV shared memory" >&5
16641$as_echo "$as_me: Using SYSV shared memory" >&6;}
16642    elif test "$with_shared_memory" = sysv ; then
16643        as_fn_error $? "cannot support shared memory:  sysv shared memory functions functions not found" "$LINENO" 5
16644    fi
16645fi
16646if test "$with_shared_memory" = nt ; then
16647
16648$as_echo "#define USE_NT_SHM 1" >>confdefs.h
16649
16650fi
16651
16652if test "$with_shared_memory" = "auto" ; then
16653    as_fn_error $? "cannot support shared memory:  need either sysv shared memory functions or mmap in order to support shared memory" "$LINENO" 5
16654fi
16655
16656
16657#######################################################################
16658## END OF SHM CODE
16659#######################################################################
16660
16661## Enable creation of libtool-style versioning or no versioning
16662# Check whether --enable-versioning was given.
16663if test "${enable_versioning+set}" = set; then :
16664  enableval=$enable_versioning;
16665else
16666  enable_versioning=yes
16667fi
16668
16669
16670if test "$enable_versioning" = "yes" ; then
16671   libmpl_so_versionflags="-version-info \$(libmpl_so_version)"
16672else
16673   libmpl_so_versionflags="-avoid-version"
16674fi
16675export libmpl_so_versionflags
16676
16677
16678#######################################################################
16679
16680#######################################################################
16681## START OF GPU CODE
16682#######################################################################
16683have_gpu="no"
16684# Check CUDA availability
16685
16686
16687
16688# Check whether --with-cuda was given.
16689if test "${with_cuda+set}" = set; then :
16690  withval=$with_cuda;
16691fi
16692
16693
16694
16695# Check whether --with-cuda-include was given.
16696if test "${with_cuda_include+set}" = set; then :
16697  withval=$with_cuda_include; case "$withval" in #(
16698  yes|no|'') :
16699    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-cuda-include=PATH expects a valid PATH" >&5
16700$as_echo "$as_me: WARNING: --without-cuda-include=PATH expects a valid PATH" >&2;}
16701                          with_cuda_include="" ;; #(
16702  *) :
16703     ;;
16704esac
16705fi
16706
16707
16708# Check whether --with-cuda-lib was given.
16709if test "${with_cuda_lib+set}" = set; then :
16710  withval=$with_cuda_lib; case "$withval" in #(
16711  yes|no|'') :
16712    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-cuda-lib=PATH expects a valid PATH" >&5
16713$as_echo "$as_me: WARNING: --without-cuda-lib=PATH expects a valid PATH" >&2;}
16714                          with_cuda_lib="" ;; #(
16715  *) :
16716     ;;
16717esac
16718fi
16719
16720
16721    # The args have been sanitized into empty/non-empty values above.
16722    # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
16723    # taking priority
16724
16725    case "${with_cuda}" in
16726        embedded)
16727            as_fn_error $? "embedded cuda is requested but we do not have the embedded version" "$LINENO" 5
16728            ;;
16729        yes|no)
16730            # skip
16731            ;;
16732        *)
16733    if test -n "${with_cuda_include}"; then :
16734
16735
16736	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_cuda_include}\>" >/dev/null 2>&1; then :
16737  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_cuda_include}', not appending" >&5
16738else
16739  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_cuda_include}', appending" >&5
16740		CPPFLAGS="$CPPFLAGS -I${with_cuda_include}"
16741
16742fi
16743
16744else
16745  if test -n "${with_cuda}"; then :
16746
16747
16748	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_cuda}/include\>" >/dev/null 2>&1; then :
16749  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_cuda}/include', not appending" >&5
16750else
16751  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_cuda}/include', appending" >&5
16752		CPPFLAGS="$CPPFLAGS -I${with_cuda}/include"
16753
16754fi
16755
16756fi
16757fi
16758
16759    if test -n "${with_cuda_lib}"; then :
16760
16761
16762	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_cuda_lib}\>" >/dev/null 2>&1; then :
16763  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_cuda_lib}', not appending" >&5
16764else
16765  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_cuda_lib}', appending" >&5
16766		LDFLAGS="$LDFLAGS -L${with_cuda_lib}"
16767
16768fi
16769
16770else
16771  if test -n "${with_cuda}"; then :
16772
16773
16774	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_cuda}/lib\>" >/dev/null 2>&1; then :
16775  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_cuda}/lib', not appending" >&5
16776else
16777  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_cuda}/lib', appending" >&5
16778		LDFLAGS="$LDFLAGS -L${with_cuda}/lib"
16779
16780fi
16781
16782                  if test -d "${with_cuda}/lib64"; then :
16783
16784
16785	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_cuda}/lib64\>" >/dev/null 2>&1; then :
16786  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_cuda}/lib64', not appending" >&5
16787else
16788  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_cuda}/lib64', appending" >&5
16789		LDFLAGS="$LDFLAGS -L${with_cuda}/lib64"
16790
16791fi
16792
16793fi
16794
16795fi
16796
16797fi
16798            ;;
16799    esac
16800
16801    if test "${with_cuda}" = "embedded" ; then
16802                pac_have_cuda=yes
16803    elif test "${with_cuda}" = "no" ; then
16804        pac_have_cuda=no
16805    else
16806
16807    failure=no
16808    ac_fn_c_check_header_mongrel "$LINENO" "cuda_runtime_api.h" "ac_cv_header_cuda_runtime_api_h" "$ac_includes_default"
16809if test "x$ac_cv_header_cuda_runtime_api_h" = xyes; then :
16810
16811else
16812  failure=yes
16813fi
16814
16815
16816
16817	if test -z "${pac_save_LIBS_nesting}" ; then
16818	   pac_save_LIBS_nesting=0
16819	fi
16820	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
16821	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
16822
16823    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cudaStreamSynchronize in -lcudart" >&5
16824$as_echo_n "checking for cudaStreamSynchronize in -lcudart... " >&6; }
16825if ${ac_cv_lib_cudart_cudaStreamSynchronize+:} false; then :
16826  $as_echo_n "(cached) " >&6
16827else
16828  ac_check_lib_save_LIBS=$LIBS
16829LIBS="-lcudart  $LIBS"
16830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16831/* end confdefs.h.  */
16832
16833/* Override any GCC internal prototype to avoid an error.
16834   Use char because int might match the return type of a GCC
16835   builtin and then its argument prototype would still apply.  */
16836#ifdef __cplusplus
16837extern "C"
16838#endif
16839char cudaStreamSynchronize ();
16840int
16841main ()
16842{
16843return cudaStreamSynchronize ();
16844  ;
16845  return 0;
16846}
16847_ACEOF
16848if ac_fn_c_try_link "$LINENO"; then :
16849  ac_cv_lib_cudart_cudaStreamSynchronize=yes
16850else
16851  ac_cv_lib_cudart_cudaStreamSynchronize=no
16852fi
16853rm -f core conftest.err conftest.$ac_objext \
16854    conftest$ac_exeext conftest.$ac_ext
16855LIBS=$ac_check_lib_save_LIBS
16856fi
16857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cudart_cudaStreamSynchronize" >&5
16858$as_echo "$ac_cv_lib_cudart_cudaStreamSynchronize" >&6; }
16859if test "x$ac_cv_lib_cudart_cudaStreamSynchronize" = xyes; then :
16860  cat >>confdefs.h <<_ACEOF
16861#define HAVE_LIBCUDART 1
16862_ACEOF
16863
16864  LIBS="-lcudart $LIBS"
16865
16866else
16867  failure=yes
16868fi
16869
16870
16871	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
16872	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
16873	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
16874
16875    if test "$failure" = "no" ; then
16876       pac_have_cuda=yes
16877    else
16878       pac_have_cuda=no
16879    fi
16880
16881        if test "${pac_have_cuda}" = "no" -a -n "${with_cuda}" ; then
16882                        as_fn_error $? "--with-cuda is given but not found" "$LINENO" 5
16883        fi
16884        if test "${pac_have_cuda}" = "yes" ; then
16885
16886
16887
16888	if echo "$LIBS" | $FGREP -e "\<-lcudart\>" >/dev/null 2>&1; then :
16889  echo "LIBS(='$LIBS') contains '-lcudart', not appending" >&5
16890else
16891  echo "LIBS(='$LIBS') does not contain '-lcudart', appending" >&5
16892		LIBS="$LIBS -lcudart"
16893
16894fi
16895
16896
16897        fi
16898    fi
16899
16900if test "$pac_have_cuda" = "yes" ; then
16901    # also require -lcuda (in addition to -lcudart)
16902
16903    failure=no
16904    ac_fn_c_check_header_mongrel "$LINENO" "cuda.h" "ac_cv_header_cuda_h" "$ac_includes_default"
16905if test "x$ac_cv_header_cuda_h" = xyes; then :
16906
16907else
16908  failure=yes
16909fi
16910
16911
16912
16913	if test -z "${pac_save_LIBS_nesting}" ; then
16914	   pac_save_LIBS_nesting=0
16915	fi
16916	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
16917	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
16918
16919    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cuMemGetAddressRange in -lcuda" >&5
16920$as_echo_n "checking for cuMemGetAddressRange in -lcuda... " >&6; }
16921if ${ac_cv_lib_cuda_cuMemGetAddressRange+:} false; then :
16922  $as_echo_n "(cached) " >&6
16923else
16924  ac_check_lib_save_LIBS=$LIBS
16925LIBS="-lcuda  $LIBS"
16926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927/* end confdefs.h.  */
16928
16929/* Override any GCC internal prototype to avoid an error.
16930   Use char because int might match the return type of a GCC
16931   builtin and then its argument prototype would still apply.  */
16932#ifdef __cplusplus
16933extern "C"
16934#endif
16935char cuMemGetAddressRange ();
16936int
16937main ()
16938{
16939return cuMemGetAddressRange ();
16940  ;
16941  return 0;
16942}
16943_ACEOF
16944if ac_fn_c_try_link "$LINENO"; then :
16945  ac_cv_lib_cuda_cuMemGetAddressRange=yes
16946else
16947  ac_cv_lib_cuda_cuMemGetAddressRange=no
16948fi
16949rm -f core conftest.err conftest.$ac_objext \
16950    conftest$ac_exeext conftest.$ac_ext
16951LIBS=$ac_check_lib_save_LIBS
16952fi
16953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cuda_cuMemGetAddressRange" >&5
16954$as_echo "$ac_cv_lib_cuda_cuMemGetAddressRange" >&6; }
16955if test "x$ac_cv_lib_cuda_cuMemGetAddressRange" = xyes; then :
16956  cat >>confdefs.h <<_ACEOF
16957#define HAVE_LIBCUDA 1
16958_ACEOF
16959
16960  LIBS="-lcuda $LIBS"
16961
16962else
16963  failure=yes
16964fi
16965
16966
16967	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
16968	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
16969	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
16970
16971    if test "$failure" = "no" ; then
16972       pac_have_cuda=yes
16973    else
16974       pac_have_cuda=no
16975    fi
16976
16977fi
16978if test "X${pac_have_cuda}" = "Xyes" ; then
16979
16980
16981
16982	if echo "$LIBS" | $FGREP -e "\<-lcuda\>" >/dev/null 2>&1; then :
16983  echo "LIBS(='$LIBS') contains '-lcuda', not appending" >&5
16984else
16985  echo "LIBS(='$LIBS') does not contain '-lcuda', appending" >&5
16986		LIBS="$LIBS -lcuda"
16987
16988fi
16989
16990
16991
16992$as_echo "#define HAVE_CUDA 1" >>confdefs.h
16993
16994    have_gpu="yes"
16995fi
16996 if test "X${pac_have_cuda}" = "Xyes"; then
16997  MPL_HAVE_CUDA_TRUE=
16998  MPL_HAVE_CUDA_FALSE='#'
16999else
17000  MPL_HAVE_CUDA_TRUE='#'
17001  MPL_HAVE_CUDA_FALSE=
17002fi
17003
17004
17005if test "$have_gpu" = "no" ; then
17006    # Check Level Zero availability when no other GPU library is available
17007
17008
17009
17010# Check whether --with-ze was given.
17011if test "${with_ze+set}" = set; then :
17012  withval=$with_ze;
17013fi
17014
17015
17016
17017# Check whether --with-ze-include was given.
17018if test "${with_ze_include+set}" = set; then :
17019  withval=$with_ze_include; case "$withval" in #(
17020  yes|no|'') :
17021    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ze-include=PATH expects a valid PATH" >&5
17022$as_echo "$as_me: WARNING: --without-ze-include=PATH expects a valid PATH" >&2;}
17023                          with_ze_include="" ;; #(
17024  *) :
17025     ;;
17026esac
17027fi
17028
17029
17030# Check whether --with-ze-lib was given.
17031if test "${with_ze_lib+set}" = set; then :
17032  withval=$with_ze_lib; case "$withval" in #(
17033  yes|no|'') :
17034    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --without-ze-lib=PATH expects a valid PATH" >&5
17035$as_echo "$as_me: WARNING: --without-ze-lib=PATH expects a valid PATH" >&2;}
17036                          with_ze_lib="" ;; #(
17037  *) :
17038     ;;
17039esac
17040fi
17041
17042
17043    # The args have been sanitized into empty/non-empty values above.
17044    # Now append -I/-L args to CPPFLAGS/LDFLAGS, with more specific options
17045    # taking priority
17046
17047    case "${with_ze}" in
17048        embedded)
17049            as_fn_error $? "embedded ze is requested but we do not have the embedded version" "$LINENO" 5
17050            ;;
17051        yes|no)
17052            # skip
17053            ;;
17054        *)
17055    if test -n "${with_ze_include}"; then :
17056
17057
17058	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ze_include}\>" >/dev/null 2>&1; then :
17059  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ze_include}', not appending" >&5
17060else
17061  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ze_include}', appending" >&5
17062		CPPFLAGS="$CPPFLAGS -I${with_ze_include}"
17063
17064fi
17065
17066else
17067  if test -n "${with_ze}"; then :
17068
17069
17070	if echo "$CPPFLAGS" | $FGREP -e "\<-I${with_ze}/include\>" >/dev/null 2>&1; then :
17071  echo "CPPFLAGS(='$CPPFLAGS') contains '-I${with_ze}/include', not appending" >&5
17072else
17073  echo "CPPFLAGS(='$CPPFLAGS') does not contain '-I${with_ze}/include', appending" >&5
17074		CPPFLAGS="$CPPFLAGS -I${with_ze}/include"
17075
17076fi
17077
17078fi
17079fi
17080
17081    if test -n "${with_ze_lib}"; then :
17082
17083
17084	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ze_lib}\>" >/dev/null 2>&1; then :
17085  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ze_lib}', not appending" >&5
17086else
17087  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ze_lib}', appending" >&5
17088		LDFLAGS="$LDFLAGS -L${with_ze_lib}"
17089
17090fi
17091
17092else
17093  if test -n "${with_ze}"; then :
17094
17095
17096	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ze}/lib\>" >/dev/null 2>&1; then :
17097  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ze}/lib', not appending" >&5
17098else
17099  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ze}/lib', appending" >&5
17100		LDFLAGS="$LDFLAGS -L${with_ze}/lib"
17101
17102fi
17103
17104                  if test -d "${with_ze}/lib64"; then :
17105
17106
17107	if echo "$LDFLAGS" | $FGREP -e "\<-L${with_ze}/lib64\>" >/dev/null 2>&1; then :
17108  echo "LDFLAGS(='$LDFLAGS') contains '-L${with_ze}/lib64', not appending" >&5
17109else
17110  echo "LDFLAGS(='$LDFLAGS') does not contain '-L${with_ze}/lib64', appending" >&5
17111		LDFLAGS="$LDFLAGS -L${with_ze}/lib64"
17112
17113fi
17114
17115fi
17116
17117fi
17118
17119fi
17120            ;;
17121    esac
17122
17123    if test "${with_ze}" = "embedded" ; then
17124                pac_have_ze=yes
17125    elif test "${with_ze}" = "no" ; then
17126        pac_have_ze=no
17127    else
17128
17129    failure=no
17130    ac_fn_c_check_header_mongrel "$LINENO" "level_zero/ze_api.h" "ac_cv_header_level_zero_ze_api_h" "$ac_includes_default"
17131if test "x$ac_cv_header_level_zero_ze_api_h" = xyes; then :
17132
17133else
17134  failure=yes
17135fi
17136
17137
17138
17139	if test -z "${pac_save_LIBS_nesting}" ; then
17140	   pac_save_LIBS_nesting=0
17141	fi
17142	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
17143	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
17144
17145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zeInit in -lze_loader" >&5
17146$as_echo_n "checking for zeInit in -lze_loader... " >&6; }
17147if ${ac_cv_lib_ze_loader_zeInit+:} false; then :
17148  $as_echo_n "(cached) " >&6
17149else
17150  ac_check_lib_save_LIBS=$LIBS
17151LIBS="-lze_loader  $LIBS"
17152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153/* end confdefs.h.  */
17154
17155/* Override any GCC internal prototype to avoid an error.
17156   Use char because int might match the return type of a GCC
17157   builtin and then its argument prototype would still apply.  */
17158#ifdef __cplusplus
17159extern "C"
17160#endif
17161char zeInit ();
17162int
17163main ()
17164{
17165return zeInit ();
17166  ;
17167  return 0;
17168}
17169_ACEOF
17170if ac_fn_c_try_link "$LINENO"; then :
17171  ac_cv_lib_ze_loader_zeInit=yes
17172else
17173  ac_cv_lib_ze_loader_zeInit=no
17174fi
17175rm -f core conftest.err conftest.$ac_objext \
17176    conftest$ac_exeext conftest.$ac_ext
17177LIBS=$ac_check_lib_save_LIBS
17178fi
17179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ze_loader_zeInit" >&5
17180$as_echo "$ac_cv_lib_ze_loader_zeInit" >&6; }
17181if test "x$ac_cv_lib_ze_loader_zeInit" = xyes; then :
17182  cat >>confdefs.h <<_ACEOF
17183#define HAVE_LIBZE_LOADER 1
17184_ACEOF
17185
17186  LIBS="-lze_loader $LIBS"
17187
17188else
17189  failure=yes
17190fi
17191
17192
17193	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
17194	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
17195	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
17196
17197    if test "$failure" = "no" ; then
17198       pac_have_ze=yes
17199    else
17200       pac_have_ze=no
17201    fi
17202
17203        if test "${pac_have_ze}" = "no" -a -n "${with_ze}" ; then
17204                        as_fn_error $? "--with-ze is given but not found" "$LINENO" 5
17205        fi
17206        if test "${pac_have_ze}" = "yes" ; then
17207
17208
17209
17210	if echo "$LIBS" | $FGREP -e "\<-lze_loader\>" >/dev/null 2>&1; then :
17211  echo "LIBS(='$LIBS') contains '-lze_loader', not appending" >&5
17212else
17213  echo "LIBS(='$LIBS') does not contain '-lze_loader', appending" >&5
17214		LIBS="$LIBS -lze_loader"
17215
17216fi
17217
17218
17219        fi
17220    fi
17221
17222    if test "X${pac_have_ze}" = "Xyes" ; then
17223
17224$as_echo "#define HAVE_ZE 1" >>confdefs.h
17225
17226        have_gpu="yes"
17227    fi
17228fi
17229 if test "X${pac_have_ze}" = "Xyes"; then
17230  MPL_HAVE_ZE_TRUE=
17231  MPL_HAVE_ZE_FALSE='#'
17232else
17233  MPL_HAVE_ZE_TRUE='#'
17234  MPL_HAVE_ZE_FALSE=
17235fi
17236
17237#######################################################################
17238## END OF GPU CODE
17239#######################################################################
17240
17241# Check for strdup
17242for ac_func in strdup
17243do :
17244  ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
17245if test "x$ac_cv_func_strdup" = xyes; then :
17246  cat >>confdefs.h <<_ACEOF
17247#define HAVE_STRDUP 1
17248_ACEOF
17249
17250fi
17251done
17252
17253if test "$ac_cv_func_strdup" = "yes" ; then
17254
17255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strdup needs a declaration" >&5
17256$as_echo_n "checking whether strdup needs a declaration... " >&6; }
17257if ${pac_cv_func_decl_strdup+:} false; then :
17258  $as_echo_n "(cached) " >&6
17259else
17260
17261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17262/* end confdefs.h.  */
17263#include <string.h>
17264void (*fptr)(void) = (void(*)(void))strdup;
17265int
17266main ()
17267{
17268
17269  ;
17270  return 0;
17271}
17272_ACEOF
17273if ac_fn_c_try_compile "$LINENO"; then :
17274  pac_cv_func_decl_strdup=no
17275else
17276  pac_cv_func_decl_strdup=yes
17277fi
17278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17279fi
17280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_strdup" >&5
17281$as_echo "$pac_cv_func_decl_strdup" >&6; }
17282if test "$pac_cv_func_decl_strdup" = "yes" ; then
17283
17284cat >>confdefs.h <<_ACEOF
17285#define NEEDS_STRDUP_DECL 1
17286_ACEOF
17287
17288
17289fi
17290
17291fi
17292
17293# Check for snprintf
17294for ac_func in snprintf
17295do :
17296  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
17297if test "x$ac_cv_func_snprintf" = xyes; then :
17298  cat >>confdefs.h <<_ACEOF
17299#define HAVE_SNPRINTF 1
17300_ACEOF
17301
17302fi
17303done
17304
17305if test "$ac_cv_func_snprintf" = "yes" ; then
17306
17307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf needs a declaration" >&5
17308$as_echo_n "checking whether snprintf needs a declaration... " >&6; }
17309if ${pac_cv_func_decl_snprintf+:} false; then :
17310  $as_echo_n "(cached) " >&6
17311else
17312
17313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314/* end confdefs.h.  */
17315#include <stdio.h>
17316void (*fptr)(void) = (void(*)(void))snprintf;
17317int
17318main ()
17319{
17320
17321  ;
17322  return 0;
17323}
17324_ACEOF
17325if ac_fn_c_try_compile "$LINENO"; then :
17326  pac_cv_func_decl_snprintf=no
17327else
17328  pac_cv_func_decl_snprintf=yes
17329fi
17330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17331fi
17332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_snprintf" >&5
17333$as_echo "$pac_cv_func_decl_snprintf" >&6; }
17334if test "$pac_cv_func_decl_snprintf" = "yes" ; then
17335
17336cat >>confdefs.h <<_ACEOF
17337#define NEEDS_SNPRINTF_DECL 1
17338_ACEOF
17339
17340
17341fi
17342
17343fi
17344
17345# Check for putenv
17346for ac_func in putenv
17347do :
17348  ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
17349if test "x$ac_cv_func_putenv" = xyes; then :
17350  cat >>confdefs.h <<_ACEOF
17351#define HAVE_PUTENV 1
17352_ACEOF
17353
17354fi
17355done
17356
17357if test "$ac_cv_func_putenv" = "yes" ; then
17358
17359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv needs a declaration" >&5
17360$as_echo_n "checking whether putenv needs a declaration... " >&6; }
17361if ${pac_cv_func_decl_putenv+:} false; then :
17362  $as_echo_n "(cached) " >&6
17363else
17364
17365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17366/* end confdefs.h.  */
17367#include <stdlib.h>
17368void (*fptr)(void) = (void(*)(void))putenv;
17369int
17370main ()
17371{
17372
17373  ;
17374  return 0;
17375}
17376_ACEOF
17377if ac_fn_c_try_compile "$LINENO"; then :
17378  pac_cv_func_decl_putenv=no
17379else
17380  pac_cv_func_decl_putenv=yes
17381fi
17382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17383fi
17384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_putenv" >&5
17385$as_echo "$pac_cv_func_decl_putenv" >&6; }
17386if test "$pac_cv_func_decl_putenv" = "yes" ; then
17387
17388cat >>confdefs.h <<_ACEOF
17389#define NEEDS_PUTENV_DECL 1
17390_ACEOF
17391
17392
17393fi
17394
17395fi
17396
17397# Check for strerror
17398for ac_func in strerror
17399do :
17400  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
17401if test "x$ac_cv_func_strerror" = xyes; then :
17402  cat >>confdefs.h <<_ACEOF
17403#define HAVE_STRERROR 1
17404_ACEOF
17405
17406fi
17407done
17408
17409if test "$ac_cv_func_strerror" = "yes" ; then
17410
17411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror needs a declaration" >&5
17412$as_echo_n "checking whether strerror needs a declaration... " >&6; }
17413if ${pac_cv_func_decl_strerror+:} false; then :
17414  $as_echo_n "(cached) " >&6
17415else
17416
17417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17418/* end confdefs.h.  */
17419#include <string.h>
17420void (*fptr)(void) = (void(*)(void))strerror;
17421int
17422main ()
17423{
17424
17425  ;
17426  return 0;
17427}
17428_ACEOF
17429if ac_fn_c_try_compile "$LINENO"; then :
17430  pac_cv_func_decl_strerror=no
17431else
17432  pac_cv_func_decl_strerror=yes
17433fi
17434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17435fi
17436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_strerror" >&5
17437$as_echo "$pac_cv_func_decl_strerror" >&6; }
17438if test "$pac_cv_func_decl_strerror" = "yes" ; then
17439
17440cat >>confdefs.h <<_ACEOF
17441#define NEEDS_STRERROR_DECL 1
17442_ACEOF
17443
17444
17445fi
17446
17447fi
17448
17449# Check for usleep
17450for ac_func in usleep
17451do :
17452  ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
17453if test "x$ac_cv_func_usleep" = xyes; then :
17454  cat >>confdefs.h <<_ACEOF
17455#define HAVE_USLEEP 1
17456_ACEOF
17457
17458fi
17459done
17460
17461if test "$ac_cv_func_usleep" = "yes" ; then
17462
17463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep needs a declaration" >&5
17464$as_echo_n "checking whether usleep needs a declaration... " >&6; }
17465if ${pac_cv_func_decl_usleep+:} false; then :
17466  $as_echo_n "(cached) " >&6
17467else
17468
17469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470/* end confdefs.h.  */
17471#include <unistd.h>
17472void (*fptr)(void) = (void(*)(void))usleep;
17473int
17474main ()
17475{
17476
17477  ;
17478  return 0;
17479}
17480_ACEOF
17481if ac_fn_c_try_compile "$LINENO"; then :
17482  pac_cv_func_decl_usleep=no
17483else
17484  pac_cv_func_decl_usleep=yes
17485fi
17486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17487fi
17488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_usleep" >&5
17489$as_echo "$pac_cv_func_decl_usleep" >&6; }
17490if test "$pac_cv_func_decl_usleep" = "yes" ; then
17491
17492cat >>confdefs.h <<_ACEOF
17493#define NEEDS_USLEEP_DECL 1
17494_ACEOF
17495
17496
17497fi
17498
17499fi
17500
17501# Check if we can implement MPL_aligned_alloc
17502for ac_func in posix_memalign
17503do :
17504  ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
17505if test "x$ac_cv_func_posix_memalign" = xyes; then :
17506  cat >>confdefs.h <<_ACEOF
17507#define HAVE_POSIX_MEMALIGN 1
17508_ACEOF
17509
17510fi
17511done
17512
17513for ac_func in aligned_alloc
17514do :
17515  ac_fn_c_check_func "$LINENO" "aligned_alloc" "ac_cv_func_aligned_alloc"
17516if test "x$ac_cv_func_aligned_alloc" = xyes; then :
17517  cat >>confdefs.h <<_ACEOF
17518#define HAVE_ALIGNED_ALLOC 1
17519_ACEOF
17520
17521fi
17522done
17523
17524if test "$ac_cv_func_aligned_alloc" = "yes" ; then
17525
17526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether aligned_alloc needs a declaration" >&5
17527$as_echo_n "checking whether aligned_alloc needs a declaration... " >&6; }
17528if ${pac_cv_func_decl_aligned_alloc+:} false; then :
17529  $as_echo_n "(cached) " >&6
17530else
17531
17532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533/* end confdefs.h.  */
17534#include <stdlib.h>
17535void (*fptr)(void) = (void(*)(void))aligned_alloc;
17536int
17537main ()
17538{
17539
17540  ;
17541  return 0;
17542}
17543_ACEOF
17544if ac_fn_c_try_compile "$LINENO"; then :
17545  pac_cv_func_decl_aligned_alloc=no
17546else
17547  pac_cv_func_decl_aligned_alloc=yes
17548fi
17549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17550fi
17551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_func_decl_aligned_alloc" >&5
17552$as_echo "$pac_cv_func_decl_aligned_alloc" >&6; }
17553if test "$pac_cv_func_decl_aligned_alloc" = "yes" ; then
17554
17555cat >>confdefs.h <<_ACEOF
17556#define NEEDS_ALIGNED_ALLOC_DECL 1
17557_ACEOF
17558
17559
17560fi
17561
17562fi
17563if test "$ac_cv_func_posix_memalign" = "yes" -o "$ac_cv_func_aligned_alloc" = "yes"; then
17564
17565$as_echo "#define DEFINE_ALIGNED_ALLOC 1" >>confdefs.h
17566
17567fi
17568
17569# Define some configurable constants
17570
17571# Check whether --with-cacheline was given.
17572if test "${with_cacheline+set}" = set; then :
17573  withval=$with_cacheline;
17574else
17575  with_cacheline=64
17576fi
17577
17578if test $with_cacheline -le 0 ; then
17579    as_fn_error $? "Cache line size must be greater than 0" "$LINENO" 5
17580fi
17581
17582cat >>confdefs.h <<_ACEOF
17583#define CACHELINE_SIZE $with_cacheline
17584_ACEOF
17585
17586
17587# Check for execinfo backtrace support
17588for ac_header in execinfo.h
17589do :
17590  ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
17591if test "x$ac_cv_header_execinfo_h" = xyes; then :
17592  cat >>confdefs.h <<_ACEOF
17593#define HAVE_EXECINFO_H 1
17594_ACEOF
17595
17596fi
17597
17598done
17599
17600   if test x"$ac_cv_header_execinfo_h" = xyes; then :
17601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking size parameter type for backtrace()" >&5
17602$as_echo_n "checking size parameter type for backtrace()... " >&6; }
17603if ${ax_cv_proto_backtrace_type+:} false; then :
17604  $as_echo_n "(cached) " >&6
17605else
17606  ac_ext=c
17607ac_cpp='$CPP $CPPFLAGS'
17608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17610ac_compiler_gnu=$ac_cv_c_compiler_gnu
17611
17612	 for ax_cv_proto_backtrace_type in size_t int none; do
17613	   if test "${ax_cv_proto_backtrace_type}" = none; then :
17614  ax_cv_proto_backtrace_type= ; break
17615fi
17616	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617/* end confdefs.h.  */
17618
17619#include <execinfo.h>
17620extern
17621${ax_cv_proto_backtrace_type} backtrace(void **addrlist, ${ax_cv_proto_backtrace_type} len);
17622char **backtrace_symbols(void *const *buffer, ${ax_cv_proto_backtrace_type} size);
17623
17624int
17625main ()
17626{
17627
17628  ;
17629  return 0;
17630}
17631_ACEOF
17632if ac_fn_c_try_compile "$LINENO"; then :
17633  break
17634fi
17635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17636	 done
17637	 ac_ext=c
17638ac_cpp='$CPP $CPPFLAGS'
17639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17641ac_compiler_gnu=$ac_cv_c_compiler_gnu
17642
17643fi
17644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_proto_backtrace_type" >&5
17645$as_echo "$ax_cv_proto_backtrace_type" >&6; }
17646fi
17647   if test x${ax_cv_proto_backtrace_type} != x; then :
17648
17649cat >>confdefs.h <<_ACEOF
17650#define backtrace_size_t $ax_cv_proto_backtrace_type
17651_ACEOF
17652
17653fi
17654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
17655$as_echo_n "checking for library containing backtrace... " >&6; }
17656if ${ac_cv_search_backtrace+:} false; then :
17657  $as_echo_n "(cached) " >&6
17658else
17659  ac_func_search_save_LIBS=$LIBS
17660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661/* end confdefs.h.  */
17662
17663/* Override any GCC internal prototype to avoid an error.
17664   Use char because int might match the return type of a GCC
17665   builtin and then its argument prototype would still apply.  */
17666#ifdef __cplusplus
17667extern "C"
17668#endif
17669char backtrace ();
17670int
17671main ()
17672{
17673return backtrace ();
17674  ;
17675  return 0;
17676}
17677_ACEOF
17678for ac_lib in '' execinfo; do
17679  if test -z "$ac_lib"; then
17680    ac_res="none required"
17681  else
17682    ac_res=-l$ac_lib
17683    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17684  fi
17685  if ac_fn_c_try_link "$LINENO"; then :
17686  ac_cv_search_backtrace=$ac_res
17687fi
17688rm -f core conftest.err conftest.$ac_objext \
17689    conftest$ac_exeext
17690  if ${ac_cv_search_backtrace+:} false; then :
17691  break
17692fi
17693done
17694if ${ac_cv_search_backtrace+:} false; then :
17695
17696else
17697  ac_cv_search_backtrace=no
17698fi
17699rm conftest.$ac_ext
17700LIBS=$ac_func_search_save_LIBS
17701fi
17702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
17703$as_echo "$ac_cv_search_backtrace" >&6; }
17704ac_res=$ac_cv_search_backtrace
17705if test "$ac_res" != no; then :
17706  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17707
17708fi
17709
17710   if test x"${ax_cv_proto_backtrace_type}" != x -a x"$ac_cv_header_execinfo_h" = xyes -a x"$ac_cv_search_backtrace" != xno; then :
17711
17712$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
17713
17714
17715fi
17716
17717
17718	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
17719$as_echo_n "checking for library containing gethostbyname... " >&6; }
17720if ${ac_cv_search_gethostbyname+:} false; then :
17721  $as_echo_n "(cached) " >&6
17722else
17723  ac_func_search_save_LIBS=$LIBS
17724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725/* end confdefs.h.  */
17726
17727/* Override any GCC internal prototype to avoid an error.
17728   Use char because int might match the return type of a GCC
17729   builtin and then its argument prototype would still apply.  */
17730#ifdef __cplusplus
17731extern "C"
17732#endif
17733char gethostbyname ();
17734int
17735main ()
17736{
17737return gethostbyname ();
17738  ;
17739  return 0;
17740}
17741_ACEOF
17742for ac_lib in '' nsl; do
17743  if test -z "$ac_lib"; then
17744    ac_res="none required"
17745  else
17746    ac_res=-l$ac_lib
17747    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17748  fi
17749  if ac_fn_c_try_link "$LINENO"; then :
17750  ac_cv_search_gethostbyname=$ac_res
17751fi
17752rm -f core conftest.err conftest.$ac_objext \
17753    conftest$ac_exeext
17754  if ${ac_cv_search_gethostbyname+:} false; then :
17755  break
17756fi
17757done
17758if ${ac_cv_search_gethostbyname+:} false; then :
17759
17760else
17761  ac_cv_search_gethostbyname=no
17762fi
17763rm conftest.$ac_ext
17764LIBS=$ac_func_search_save_LIBS
17765fi
17766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
17767$as_echo "$ac_cv_search_gethostbyname" >&6; }
17768ac_res=$ac_cv_search_gethostbyname
17769if test "$ac_res" != no; then :
17770  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17771
17772fi
17773
17774	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
17775$as_echo_n "checking for library containing socket... " >&6; }
17776if ${ac_cv_search_socket+:} false; then :
17777  $as_echo_n "(cached) " >&6
17778else
17779  ac_func_search_save_LIBS=$LIBS
17780cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17781/* end confdefs.h.  */
17782
17783/* Override any GCC internal prototype to avoid an error.
17784   Use char because int might match the return type of a GCC
17785   builtin and then its argument prototype would still apply.  */
17786#ifdef __cplusplus
17787extern "C"
17788#endif
17789char socket ();
17790int
17791main ()
17792{
17793return socket ();
17794  ;
17795  return 0;
17796}
17797_ACEOF
17798for ac_lib in '' socket; do
17799  if test -z "$ac_lib"; then
17800    ac_res="none required"
17801  else
17802    ac_res=-l$ac_lib
17803    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17804  fi
17805  if ac_fn_c_try_link "$LINENO"; then :
17806  ac_cv_search_socket=$ac_res
17807fi
17808rm -f core conftest.err conftest.$ac_objext \
17809    conftest$ac_exeext
17810  if ${ac_cv_search_socket+:} false; then :
17811  break
17812fi
17813done
17814if ${ac_cv_search_socket+:} false; then :
17815
17816else
17817  ac_cv_search_socket=no
17818fi
17819rm conftest.$ac_ext
17820LIBS=$ac_func_search_save_LIBS
17821fi
17822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
17823$as_echo "$ac_cv_search_socket" >&6; }
17824ac_res=$ac_cv_search_socket
17825if test "$ac_res" != no; then :
17826  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17827
17828else
17829
17830		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17831$as_echo_n "checking for socket in -lsocket... " >&6; }
17832if ${ac_cv_lib_socket_socket+:} false; then :
17833  $as_echo_n "(cached) " >&6
17834else
17835  ac_check_lib_save_LIBS=$LIBS
17836LIBS="-lsocket -lnsl $LIBS"
17837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838/* end confdefs.h.  */
17839
17840/* Override any GCC internal prototype to avoid an error.
17841   Use char because int might match the return type of a GCC
17842   builtin and then its argument prototype would still apply.  */
17843#ifdef __cplusplus
17844extern "C"
17845#endif
17846char socket ();
17847int
17848main ()
17849{
17850return socket ();
17851  ;
17852  return 0;
17853}
17854_ACEOF
17855if ac_fn_c_try_link "$LINENO"; then :
17856  ac_cv_lib_socket_socket=yes
17857else
17858  ac_cv_lib_socket_socket=no
17859fi
17860rm -f core conftest.err conftest.$ac_objext \
17861    conftest$ac_exeext conftest.$ac_ext
17862LIBS=$ac_check_lib_save_LIBS
17863fi
17864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17865$as_echo "$ac_cv_lib_socket_socket" >&6; }
17866if test "x$ac_cv_lib_socket_socket" = xyes; then :
17867  LIBS="-lsocket -lnsl $LIBS"
17868fi
17869
17870fi
17871
17872
17873for ac_header in ifaddrs.h arpa/inet.h
17874do :
17875  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17876ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17877if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17878  cat >>confdefs.h <<_ACEOF
17879#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17880_ACEOF
17881
17882fi
17883
17884done
17885
17886for ac_func in inet_ntop getifaddrs
17887do :
17888  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17889ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17890if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17891  cat >>confdefs.h <<_ACEOF
17892#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17893_ACEOF
17894
17895fi
17896done
17897
17898
17899
17900
17901
17902if test "$ac_cv_c_compiler_gnu" = "yes" ; then
17903    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ allowed" >&5
17904$as_echo_n "checking whether __attribute__ allowed... " >&6; }
17905if ${pac_cv_gnu_attr_pure+:} false; then :
17906  $as_echo_n "(cached) " >&6
17907else
17908
17909cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17910/* end confdefs.h.  */
17911int foo(int) __attribute__ ((pure));
17912int
17913main ()
17914{
17915int a;
17916  ;
17917  return 0;
17918}
17919_ACEOF
17920if ac_fn_c_try_compile "$LINENO"; then :
17921  pac_cv_gnu_attr_pure=yes
17922else
17923  pac_cv_gnu_attr_pure=no
17924fi
17925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17926fi
17927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_pure" >&5
17928$as_echo "$pac_cv_gnu_attr_pure" >&6; }
17929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((format)) allowed" >&5
17930$as_echo_n "checking whether __attribute__((format)) allowed... " >&6; }
17931if ${pac_cv_gnu_attr_format+:} false; then :
17932  $as_echo_n "(cached) " >&6
17933else
17934
17935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936/* end confdefs.h.  */
17937int foo(char *,...) __attribute__ ((format(printf,1,2)));
17938int
17939main ()
17940{
17941int a;
17942  ;
17943  return 0;
17944}
17945_ACEOF
17946if ac_fn_c_try_compile "$LINENO"; then :
17947  pac_cv_gnu_attr_format=yes
17948else
17949  pac_cv_gnu_attr_format=no
17950fi
17951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17952fi
17953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pac_cv_gnu_attr_format" >&5
17954$as_echo "$pac_cv_gnu_attr_format" >&6; }
17955    if test "$pac_cv_gnu_attr_pure" = "yes" -a "$pac_cv_gnu_attr_format" = "yes" ; then
17956
17957$as_echo "#define HAVE_GCC_ATTRIBUTE 1" >>confdefs.h
17958
17959    fi
17960fi
17961
17962
17963
17964
17965    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((aligned))" >&5
17966$as_echo_n "checking for __attribute__((aligned))... " >&6; }
17967if ${ax_cv_have_var_attribute_aligned+:} false; then :
17968  $as_echo_n "(cached) " >&6
17969else
17970
17971        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17972/* end confdefs.h.  */
17973
17974
17975                    int foo __attribute__((aligned(32)));
17976
17977int
17978main ()
17979{
17980
17981
17982
17983  ;
17984  return 0;
17985}
17986
17987_ACEOF
17988if ac_fn_c_try_link "$LINENO"; then :
17989                                      if test -s conftest.err; then :
17990  ax_cv_have_var_attribute_aligned=no
17991else
17992  ax_cv_have_var_attribute_aligned=yes
17993fi
17994else
17995  ax_cv_have_var_attribute_aligned=no
17996fi
17997rm -f core conftest.err conftest.$ac_objext \
17998    conftest$ac_exeext conftest.$ac_ext
17999
18000fi
18001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_var_attribute_aligned" >&5
18002$as_echo "$ax_cv_have_var_attribute_aligned" >&6; }
18003
18004    if test yes = $ax_cv_have_var_attribute_aligned; then :
18005
18006cat >>confdefs.h <<_ACEOF
18007#define HAVE_VAR_ATTRIBUTE_ALIGNED 1
18008_ACEOF
18009
18010fi
18011
18012
18013
18014
18015
18016
18017    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((used))" >&5
18018$as_echo_n "checking for __attribute__((used))... " >&6; }
18019if ${ax_cv_have_var_attribute_used+:} false; then :
18020  $as_echo_n "(cached) " >&6
18021else
18022
18023        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18024/* end confdefs.h.  */
18025
18026
18027                    int foo __attribute__((used));
18028
18029int
18030main ()
18031{
18032
18033
18034
18035  ;
18036  return 0;
18037}
18038
18039_ACEOF
18040if ac_fn_c_try_link "$LINENO"; then :
18041                                      if test -s conftest.err; then :
18042  ax_cv_have_var_attribute_used=no
18043else
18044  ax_cv_have_var_attribute_used=yes
18045fi
18046else
18047  ax_cv_have_var_attribute_used=no
18048fi
18049rm -f core conftest.err conftest.$ac_objext \
18050    conftest$ac_exeext conftest.$ac_ext
18051
18052fi
18053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_var_attribute_used" >&5
18054$as_echo "$ax_cv_have_var_attribute_used" >&6; }
18055
18056    if test yes = $ax_cv_have_var_attribute_used; then :
18057
18058cat >>confdefs.h <<_ACEOF
18059#define HAVE_VAR_ATTRIBUTE_USED 1
18060_ACEOF
18061
18062fi
18063
18064
18065
18066
18067
18068
18069	if test -z "${pac_save_CFLAGS_nesting}" ; then
18070	   pac_save_CFLAGS_nesting=0
18071	fi
18072	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}='"$CFLAGS"'
18073	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} + 1`
18074
18075
18076	if test -z "${pac_save_CPPFLAGS_nesting}" ; then
18077	   pac_save_CPPFLAGS_nesting=0
18078	fi
18079	eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}='"$CPPFLAGS"'
18080	pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} + 1`
18081
18082
18083	if test -z "${pac_save_CXXFLAGS_nesting}" ; then
18084	   pac_save_CXXFLAGS_nesting=0
18085	fi
18086	eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}='"$CXXFLAGS"'
18087	pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} + 1`
18088
18089
18090	if test -z "${pac_save_FFLAGS_nesting}" ; then
18091	   pac_save_FFLAGS_nesting=0
18092	fi
18093	eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}='"$FFLAGS"'
18094	pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} + 1`
18095
18096
18097	if test -z "${pac_save_FCFLAGS_nesting}" ; then
18098	   pac_save_FCFLAGS_nesting=0
18099	fi
18100	eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}='"$FCFLAGS"'
18101	pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} + 1`
18102
18103
18104	if test -z "${pac_save_LDFLAGS_nesting}" ; then
18105	   pac_save_LDFLAGS_nesting=0
18106	fi
18107	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}='"$LDFLAGS"'
18108	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} + 1`
18109
18110
18111	if test -z "${pac_save_LIBS_nesting}" ; then
18112	   pac_save_LIBS_nesting=0
18113	fi
18114	eval pac_save_LIBS_${pac_save_LIBS_nesting}='"$LIBS"'
18115	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} + 1`
18116
18117
18118CFLAGS=""
18119
18120
18121
18122    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((fallthrough))" >&5
18123$as_echo_n "checking for __attribute__((fallthrough))... " >&6; }
18124if ${ax_cv_have_func_attribute_fallthrough+:} false; then :
18125  $as_echo_n "(cached) " >&6
18126else
18127
18128        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129/* end confdefs.h.  */
18130
18131
18132                    int foo( void ) {switch (0) { case 1: __attribute__((fallthrough)); case 2: break ; }};
18133
18134int
18135main ()
18136{
18137
18138  ;
18139  return 0;
18140}
18141
18142_ACEOF
18143if ac_fn_c_try_link "$LINENO"; then :
18144                                      if test -s conftest.err; then :
18145  ax_cv_have_func_attribute_fallthrough=no
18146else
18147  ax_cv_have_func_attribute_fallthrough=yes
18148fi
18149else
18150  ax_cv_have_func_attribute_fallthrough=no
18151fi
18152rm -f core conftest.err conftest.$ac_objext \
18153    conftest$ac_exeext conftest.$ac_ext
18154
18155fi
18156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_fallthrough" >&5
18157$as_echo "$ax_cv_have_func_attribute_fallthrough" >&6; }
18158
18159    if test yes = $ax_cv_have_func_attribute_fallthrough; then :
18160
18161cat >>confdefs.h <<_ACEOF
18162#define HAVE_FUNC_ATTRIBUTE_FALLTHROUGH 1
18163_ACEOF
18164
18165fi
18166
18167
18168
18169
18170
18171	pac_save_CFLAGS_nesting=`expr ${pac_save_CFLAGS_nesting} - 1`
18172	eval CFLAGS="\$pac_save_CFLAGS_${pac_save_CFLAGS_nesting}"
18173	eval pac_save_CFLAGS_${pac_save_CFLAGS_nesting}=""
18174
18175
18176	pac_save_CPPFLAGS_nesting=`expr ${pac_save_CPPFLAGS_nesting} - 1`
18177	eval CPPFLAGS="\$pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}"
18178	eval pac_save_CPPFLAGS_${pac_save_CPPFLAGS_nesting}=""
18179
18180
18181	pac_save_CXXFLAGS_nesting=`expr ${pac_save_CXXFLAGS_nesting} - 1`
18182	eval CXXFLAGS="\$pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}"
18183	eval pac_save_CXXFLAGS_${pac_save_CXXFLAGS_nesting}=""
18184
18185
18186	pac_save_FFLAGS_nesting=`expr ${pac_save_FFLAGS_nesting} - 1`
18187	eval FFLAGS="\$pac_save_FFLAGS_${pac_save_FFLAGS_nesting}"
18188	eval pac_save_FFLAGS_${pac_save_FFLAGS_nesting}=""
18189
18190
18191	pac_save_FCFLAGS_nesting=`expr ${pac_save_FCFLAGS_nesting} - 1`
18192	eval FCFLAGS="\$pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}"
18193	eval pac_save_FCFLAGS_${pac_save_FCFLAGS_nesting}=""
18194
18195
18196	pac_save_LDFLAGS_nesting=`expr ${pac_save_LDFLAGS_nesting} - 1`
18197	eval LDFLAGS="\$pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}"
18198	eval pac_save_LDFLAGS_${pac_save_LDFLAGS_nesting}=""
18199
18200
18201	pac_save_LIBS_nesting=`expr ${pac_save_LIBS_nesting} - 1`
18202	eval LIBS="\$pac_save_LIBS_${pac_save_LIBS_nesting}"
18203	eval pac_save_LIBS_${pac_save_LIBS_nesting}=""
18204
18205
18206
18207ac_config_files="$ac_config_files Makefile localdefs include/mpl_timer.h"
18208
18209cat >confcache <<\_ACEOF
18210# This file is a shell script that caches the results of configure
18211# tests run on this system so they can be shared between configure
18212# scripts and configure runs, see configure's option --config-cache.
18213# It is not useful on other systems.  If it contains results you don't
18214# want to keep, you may remove or edit it.
18215#
18216# config.status only pays attention to the cache file if you give it
18217# the --recheck option to rerun configure.
18218#
18219# `ac_cv_env_foo' variables (set or unset) will be overridden when
18220# loading this file, other *unset* `ac_cv_foo' will be assigned the
18221# following values.
18222
18223_ACEOF
18224
18225# The following way of writing the cache mishandles newlines in values,
18226# but we know of no workaround that is simple, portable, and efficient.
18227# So, we kill variables containing newlines.
18228# Ultrix sh set writes to stderr and can't be redirected directly,
18229# and sets the high bit in the cache file unless we assign to the vars.
18230(
18231  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18232    eval ac_val=\$$ac_var
18233    case $ac_val in #(
18234    *${as_nl}*)
18235      case $ac_var in #(
18236      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18237$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18238      esac
18239      case $ac_var in #(
18240      _ | IFS | as_nl) ;; #(
18241      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18242      *) { eval $ac_var=; unset $ac_var;} ;;
18243      esac ;;
18244    esac
18245  done
18246
18247  (set) 2>&1 |
18248    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18249    *${as_nl}ac_space=\ *)
18250      # `set' does not quote correctly, so add quotes: double-quote
18251      # substitution turns \\\\ into \\, and sed turns \\ into \.
18252      sed -n \
18253	"s/'/'\\\\''/g;
18254	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18255      ;; #(
18256    *)
18257      # `set' quotes correctly as required by POSIX, so do not add quotes.
18258      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18259      ;;
18260    esac |
18261    sort
18262) |
18263  sed '
18264     /^ac_cv_env_/b end
18265     t clear
18266     :clear
18267     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18268     t end
18269     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18270     :end' >>confcache
18271if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18272  if test -w "$cache_file"; then
18273    if test "x$cache_file" != "x/dev/null"; then
18274      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18275$as_echo "$as_me: updating cache $cache_file" >&6;}
18276      if test ! -f "$cache_file" || test -h "$cache_file"; then
18277	cat confcache >"$cache_file"
18278      else
18279        case $cache_file in #(
18280        */* | ?:*)
18281	  mv -f confcache "$cache_file"$$ &&
18282	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18283        *)
18284	  mv -f confcache "$cache_file" ;;
18285	esac
18286      fi
18287    fi
18288  else
18289    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18290$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18291  fi
18292fi
18293rm -f confcache
18294
18295test "x$prefix" = xNONE && prefix=$ac_default_prefix
18296# Let make expand exec_prefix.
18297test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18298
18299DEFS=-DHAVE_CONFIG_H
18300
18301ac_libobjs=
18302ac_ltlibobjs=
18303U=
18304for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18305  # 1. Remove the extension, and $U if already installed.
18306  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18307  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18308  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18309  #    will be set to the directory where LIBOBJS objects are built.
18310  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18311  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18312done
18313LIBOBJS=$ac_libobjs
18314
18315LTLIBOBJS=$ac_ltlibobjs
18316
18317
18318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18319$as_echo_n "checking that generated files are newer than configure... " >&6; }
18320   if test -n "$am_sleep_pid"; then
18321     # Hide warnings about reused PIDs.
18322     wait $am_sleep_pid 2>/dev/null
18323   fi
18324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18325$as_echo "done" >&6; }
18326 if test -n "$EXEEXT"; then
18327  am__EXEEXT_TRUE=
18328  am__EXEEXT_FALSE='#'
18329else
18330  am__EXEEXT_TRUE='#'
18331  am__EXEEXT_FALSE=
18332fi
18333
18334if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18335  as_fn_error $? "conditional \"AMDEP\" was never defined.
18336Usually this means the macro was only invoked conditionally." "$LINENO" 5
18337fi
18338if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18339  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18340Usually this means the macro was only invoked conditionally." "$LINENO" 5
18341fi
18342if test -z "${MPL_EMBEDDED_MODE_TRUE}" && test -z "${MPL_EMBEDDED_MODE_FALSE}"; then
18343  as_fn_error $? "conditional \"MPL_EMBEDDED_MODE\" was never defined.
18344Usually this means the macro was only invoked conditionally." "$LINENO" 5
18345fi
18346if test -z "${BUILD_COVERAGE_TRUE}" && test -z "${BUILD_COVERAGE_FALSE}"; then
18347  as_fn_error $? "conditional \"BUILD_COVERAGE\" was never defined.
18348Usually this means the macro was only invoked conditionally." "$LINENO" 5
18349fi
18350if test -z "${MPL_HAVE_CUDA_TRUE}" && test -z "${MPL_HAVE_CUDA_FALSE}"; then
18351  as_fn_error $? "conditional \"MPL_HAVE_CUDA\" was never defined.
18352Usually this means the macro was only invoked conditionally." "$LINENO" 5
18353fi
18354if test -z "${MPL_HAVE_ZE_TRUE}" && test -z "${MPL_HAVE_ZE_FALSE}"; then
18355  as_fn_error $? "conditional \"MPL_HAVE_ZE\" was never defined.
18356Usually this means the macro was only invoked conditionally." "$LINENO" 5
18357fi
18358
18359: "${CONFIG_STATUS=./config.status}"
18360ac_write_fail=0
18361ac_clean_files_save=$ac_clean_files
18362ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18363{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18364$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18365as_write_fail=0
18366cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18367#! $SHELL
18368# Generated by $as_me.
18369# Run this file to recreate the current configuration.
18370# Compiler output produced by configure, useful for debugging
18371# configure, is in config.log if it exists.
18372
18373debug=false
18374ac_cs_recheck=false
18375ac_cs_silent=false
18376
18377SHELL=\${CONFIG_SHELL-$SHELL}
18378export SHELL
18379_ASEOF
18380cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18381## -------------------- ##
18382## M4sh Initialization. ##
18383## -------------------- ##
18384
18385# Be more Bourne compatible
18386DUALCASE=1; export DUALCASE # for MKS sh
18387if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18388  emulate sh
18389  NULLCMD=:
18390  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18391  # is contrary to our usage.  Disable this feature.
18392  alias -g '${1+"$@"}'='"$@"'
18393  setopt NO_GLOB_SUBST
18394else
18395  case `(set -o) 2>/dev/null` in #(
18396  *posix*) :
18397    set -o posix ;; #(
18398  *) :
18399     ;;
18400esac
18401fi
18402
18403
18404as_nl='
18405'
18406export as_nl
18407# Printing a long string crashes Solaris 7 /usr/bin/printf.
18408as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18409as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18410as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18411# Prefer a ksh shell builtin over an external printf program on Solaris,
18412# but without wasting forks for bash or zsh.
18413if test -z "$BASH_VERSION$ZSH_VERSION" \
18414    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18415  as_echo='print -r --'
18416  as_echo_n='print -rn --'
18417elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18418  as_echo='printf %s\n'
18419  as_echo_n='printf %s'
18420else
18421  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18422    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18423    as_echo_n='/usr/ucb/echo -n'
18424  else
18425    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18426    as_echo_n_body='eval
18427      arg=$1;
18428      case $arg in #(
18429      *"$as_nl"*)
18430	expr "X$arg" : "X\\(.*\\)$as_nl";
18431	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18432      esac;
18433      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18434    '
18435    export as_echo_n_body
18436    as_echo_n='sh -c $as_echo_n_body as_echo'
18437  fi
18438  export as_echo_body
18439  as_echo='sh -c $as_echo_body as_echo'
18440fi
18441
18442# The user is always right.
18443if test "${PATH_SEPARATOR+set}" != set; then
18444  PATH_SEPARATOR=:
18445  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18446    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18447      PATH_SEPARATOR=';'
18448  }
18449fi
18450
18451
18452# IFS
18453# We need space, tab and new line, in precisely that order.  Quoting is
18454# there to prevent editors from complaining about space-tab.
18455# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18456# splitting by setting IFS to empty value.)
18457IFS=" ""	$as_nl"
18458
18459# Find who we are.  Look in the path if we contain no directory separator.
18460as_myself=
18461case $0 in #((
18462  *[\\/]* ) as_myself=$0 ;;
18463  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18464for as_dir in $PATH
18465do
18466  IFS=$as_save_IFS
18467  test -z "$as_dir" && as_dir=.
18468    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18469  done
18470IFS=$as_save_IFS
18471
18472     ;;
18473esac
18474# We did not find ourselves, most probably we were run as `sh COMMAND'
18475# in which case we are not to be found in the path.
18476if test "x$as_myself" = x; then
18477  as_myself=$0
18478fi
18479if test ! -f "$as_myself"; then
18480  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18481  exit 1
18482fi
18483
18484# Unset variables that we do not need and which cause bugs (e.g. in
18485# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18486# suppresses any "Segmentation fault" message there.  '((' could
18487# trigger a bug in pdksh 5.2.14.
18488for as_var in BASH_ENV ENV MAIL MAILPATH
18489do eval test x\${$as_var+set} = xset \
18490  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18491done
18492PS1='$ '
18493PS2='> '
18494PS4='+ '
18495
18496# NLS nuisances.
18497LC_ALL=C
18498export LC_ALL
18499LANGUAGE=C
18500export LANGUAGE
18501
18502# CDPATH.
18503(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18504
18505
18506# as_fn_error STATUS ERROR [LINENO LOG_FD]
18507# ----------------------------------------
18508# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18509# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18510# script with STATUS, using 1 if that was 0.
18511as_fn_error ()
18512{
18513  as_status=$1; test $as_status -eq 0 && as_status=1
18514  if test "$4"; then
18515    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18516    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18517  fi
18518  $as_echo "$as_me: error: $2" >&2
18519  as_fn_exit $as_status
18520} # as_fn_error
18521
18522
18523# as_fn_set_status STATUS
18524# -----------------------
18525# Set $? to STATUS, without forking.
18526as_fn_set_status ()
18527{
18528  return $1
18529} # as_fn_set_status
18530
18531# as_fn_exit STATUS
18532# -----------------
18533# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18534as_fn_exit ()
18535{
18536  set +e
18537  as_fn_set_status $1
18538  exit $1
18539} # as_fn_exit
18540
18541# as_fn_unset VAR
18542# ---------------
18543# Portably unset VAR.
18544as_fn_unset ()
18545{
18546  { eval $1=; unset $1;}
18547}
18548as_unset=as_fn_unset
18549# as_fn_append VAR VALUE
18550# ----------------------
18551# Append the text in VALUE to the end of the definition contained in VAR. Take
18552# advantage of any shell optimizations that allow amortized linear growth over
18553# repeated appends, instead of the typical quadratic growth present in naive
18554# implementations.
18555if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18556  eval 'as_fn_append ()
18557  {
18558    eval $1+=\$2
18559  }'
18560else
18561  as_fn_append ()
18562  {
18563    eval $1=\$$1\$2
18564  }
18565fi # as_fn_append
18566
18567# as_fn_arith ARG...
18568# ------------------
18569# Perform arithmetic evaluation on the ARGs, and store the result in the
18570# global $as_val. Take advantage of shells that can avoid forks. The arguments
18571# must be portable across $(()) and expr.
18572if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18573  eval 'as_fn_arith ()
18574  {
18575    as_val=$(( $* ))
18576  }'
18577else
18578  as_fn_arith ()
18579  {
18580    as_val=`expr "$@" || test $? -eq 1`
18581  }
18582fi # as_fn_arith
18583
18584
18585if expr a : '\(a\)' >/dev/null 2>&1 &&
18586   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18587  as_expr=expr
18588else
18589  as_expr=false
18590fi
18591
18592if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18593  as_basename=basename
18594else
18595  as_basename=false
18596fi
18597
18598if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18599  as_dirname=dirname
18600else
18601  as_dirname=false
18602fi
18603
18604as_me=`$as_basename -- "$0" ||
18605$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18606	 X"$0" : 'X\(//\)$' \| \
18607	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18608$as_echo X/"$0" |
18609    sed '/^.*\/\([^/][^/]*\)\/*$/{
18610	    s//\1/
18611	    q
18612	  }
18613	  /^X\/\(\/\/\)$/{
18614	    s//\1/
18615	    q
18616	  }
18617	  /^X\/\(\/\).*/{
18618	    s//\1/
18619	    q
18620	  }
18621	  s/.*/./; q'`
18622
18623# Avoid depending upon Character Ranges.
18624as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18625as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18626as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18627as_cr_digits='0123456789'
18628as_cr_alnum=$as_cr_Letters$as_cr_digits
18629
18630ECHO_C= ECHO_N= ECHO_T=
18631case `echo -n x` in #(((((
18632-n*)
18633  case `echo 'xy\c'` in
18634  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18635  xy)  ECHO_C='\c';;
18636  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18637       ECHO_T='	';;
18638  esac;;
18639*)
18640  ECHO_N='-n';;
18641esac
18642
18643rm -f conf$$ conf$$.exe conf$$.file
18644if test -d conf$$.dir; then
18645  rm -f conf$$.dir/conf$$.file
18646else
18647  rm -f conf$$.dir
18648  mkdir conf$$.dir 2>/dev/null
18649fi
18650if (echo >conf$$.file) 2>/dev/null; then
18651  if ln -s conf$$.file conf$$ 2>/dev/null; then
18652    as_ln_s='ln -s'
18653    # ... but there are two gotchas:
18654    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18655    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18656    # In both cases, we have to default to `cp -pR'.
18657    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18658      as_ln_s='cp -pR'
18659  elif ln conf$$.file conf$$ 2>/dev/null; then
18660    as_ln_s=ln
18661  else
18662    as_ln_s='cp -pR'
18663  fi
18664else
18665  as_ln_s='cp -pR'
18666fi
18667rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18668rmdir conf$$.dir 2>/dev/null
18669
18670
18671# as_fn_mkdir_p
18672# -------------
18673# Create "$as_dir" as a directory, including parents if necessary.
18674as_fn_mkdir_p ()
18675{
18676
18677  case $as_dir in #(
18678  -*) as_dir=./$as_dir;;
18679  esac
18680  test -d "$as_dir" || eval $as_mkdir_p || {
18681    as_dirs=
18682    while :; do
18683      case $as_dir in #(
18684      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18685      *) as_qdir=$as_dir;;
18686      esac
18687      as_dirs="'$as_qdir' $as_dirs"
18688      as_dir=`$as_dirname -- "$as_dir" ||
18689$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18690	 X"$as_dir" : 'X\(//\)[^/]' \| \
18691	 X"$as_dir" : 'X\(//\)$' \| \
18692	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18693$as_echo X"$as_dir" |
18694    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18695	    s//\1/
18696	    q
18697	  }
18698	  /^X\(\/\/\)[^/].*/{
18699	    s//\1/
18700	    q
18701	  }
18702	  /^X\(\/\/\)$/{
18703	    s//\1/
18704	    q
18705	  }
18706	  /^X\(\/\).*/{
18707	    s//\1/
18708	    q
18709	  }
18710	  s/.*/./; q'`
18711      test -d "$as_dir" && break
18712    done
18713    test -z "$as_dirs" || eval "mkdir $as_dirs"
18714  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18715
18716
18717} # as_fn_mkdir_p
18718if mkdir -p . 2>/dev/null; then
18719  as_mkdir_p='mkdir -p "$as_dir"'
18720else
18721  test -d ./-p && rmdir ./-p
18722  as_mkdir_p=false
18723fi
18724
18725
18726# as_fn_executable_p FILE
18727# -----------------------
18728# Test if FILE is an executable regular file.
18729as_fn_executable_p ()
18730{
18731  test -f "$1" && test -x "$1"
18732} # as_fn_executable_p
18733as_test_x='test -x'
18734as_executable_p=as_fn_executable_p
18735
18736# Sed expression to map a string onto a valid CPP name.
18737as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18738
18739# Sed expression to map a string onto a valid variable name.
18740as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18741
18742
18743exec 6>&1
18744## ----------------------------------- ##
18745## Main body of $CONFIG_STATUS script. ##
18746## ----------------------------------- ##
18747_ASEOF
18748test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18749
18750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18751# Save the log message, to keep $0 and so on meaningful, and to
18752# report actual input values of CONFIG_FILES etc. instead of their
18753# values after options handling.
18754ac_log="
18755This file was extended by MPL $as_me 0.1, which was
18756generated by GNU Autoconf 2.69.  Invocation command line was
18757
18758  CONFIG_FILES    = $CONFIG_FILES
18759  CONFIG_HEADERS  = $CONFIG_HEADERS
18760  CONFIG_LINKS    = $CONFIG_LINKS
18761  CONFIG_COMMANDS = $CONFIG_COMMANDS
18762  $ $0 $@
18763
18764on `(hostname || uname -n) 2>/dev/null | sed 1q`
18765"
18766
18767_ACEOF
18768
18769case $ac_config_files in *"
18770"*) set x $ac_config_files; shift; ac_config_files=$*;;
18771esac
18772
18773case $ac_config_headers in *"
18774"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18775esac
18776
18777
18778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18779# Files that config.status was made for.
18780config_files="$ac_config_files"
18781config_headers="$ac_config_headers"
18782config_commands="$ac_config_commands"
18783
18784_ACEOF
18785
18786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18787ac_cs_usage="\
18788\`$as_me' instantiates files and other configuration actions
18789from templates according to the current configuration.  Unless the files
18790and actions are specified as TAGs, all are instantiated by default.
18791
18792Usage: $0 [OPTION]... [TAG]...
18793
18794  -h, --help       print this help, then exit
18795  -V, --version    print version number and configuration settings, then exit
18796      --config     print configuration, then exit
18797  -q, --quiet, --silent
18798                   do not print progress messages
18799  -d, --debug      don't remove temporary files
18800      --recheck    update $as_me by reconfiguring in the same conditions
18801      --file=FILE[:TEMPLATE]
18802                   instantiate the configuration file FILE
18803      --header=FILE[:TEMPLATE]
18804                   instantiate the configuration header FILE
18805
18806Configuration files:
18807$config_files
18808
18809Configuration headers:
18810$config_headers
18811
18812Configuration commands:
18813$config_commands
18814
18815Report bugs to the package provider."
18816
18817_ACEOF
18818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18819ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18820ac_cs_version="\\
18821MPL config.status 0.1
18822configured by $0, generated by GNU Autoconf 2.69,
18823  with options \\"\$ac_cs_config\\"
18824
18825Copyright (C) 2012 Free Software Foundation, Inc.
18826This config.status script is free software; the Free Software Foundation
18827gives unlimited permission to copy, distribute and modify it."
18828
18829ac_pwd='$ac_pwd'
18830srcdir='$srcdir'
18831INSTALL='$INSTALL'
18832MKDIR_P='$MKDIR_P'
18833AWK='$AWK'
18834test -n "\$AWK" || AWK=awk
18835_ACEOF
18836
18837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18838# The default lists apply if the user does not specify any file.
18839ac_need_defaults=:
18840while test $# != 0
18841do
18842  case $1 in
18843  --*=?*)
18844    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18845    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18846    ac_shift=:
18847    ;;
18848  --*=)
18849    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18850    ac_optarg=
18851    ac_shift=:
18852    ;;
18853  *)
18854    ac_option=$1
18855    ac_optarg=$2
18856    ac_shift=shift
18857    ;;
18858  esac
18859
18860  case $ac_option in
18861  # Handling of the options.
18862  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18863    ac_cs_recheck=: ;;
18864  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18865    $as_echo "$ac_cs_version"; exit ;;
18866  --config | --confi | --conf | --con | --co | --c )
18867    $as_echo "$ac_cs_config"; exit ;;
18868  --debug | --debu | --deb | --de | --d | -d )
18869    debug=: ;;
18870  --file | --fil | --fi | --f )
18871    $ac_shift
18872    case $ac_optarg in
18873    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18874    '') as_fn_error $? "missing file argument" ;;
18875    esac
18876    as_fn_append CONFIG_FILES " '$ac_optarg'"
18877    ac_need_defaults=false;;
18878  --header | --heade | --head | --hea )
18879    $ac_shift
18880    case $ac_optarg in
18881    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18882    esac
18883    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18884    ac_need_defaults=false;;
18885  --he | --h)
18886    # Conflict between --help and --header
18887    as_fn_error $? "ambiguous option: \`$1'
18888Try \`$0 --help' for more information.";;
18889  --help | --hel | -h )
18890    $as_echo "$ac_cs_usage"; exit ;;
18891  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18892  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18893    ac_cs_silent=: ;;
18894
18895  # This is an error.
18896  -*) as_fn_error $? "unrecognized option: \`$1'
18897Try \`$0 --help' for more information." ;;
18898
18899  *) as_fn_append ac_config_targets " $1"
18900     ac_need_defaults=false ;;
18901
18902  esac
18903  shift
18904done
18905
18906ac_configure_extra_args=
18907
18908if $ac_cs_silent; then
18909  exec 6>/dev/null
18910  ac_configure_extra_args="$ac_configure_extra_args --silent"
18911fi
18912
18913_ACEOF
18914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18915if \$ac_cs_recheck; then
18916  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18917  shift
18918  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18919  CONFIG_SHELL='$SHELL'
18920  export CONFIG_SHELL
18921  exec "\$@"
18922fi
18923
18924_ACEOF
18925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18926exec 5>>config.log
18927{
18928  echo
18929  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18930## Running $as_me. ##
18931_ASBOX
18932  $as_echo "$ac_log"
18933} >&5
18934
18935_ACEOF
18936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18937#
18938# INIT-COMMANDS
18939#
18940AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18941
18942
18943# The HP-UX ksh and POSIX shell print the target directory to stdout
18944# if CDPATH is set.
18945(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18946
18947sed_quote_subst='$sed_quote_subst'
18948double_quote_subst='$double_quote_subst'
18949delay_variable_subst='$delay_variable_subst'
18950macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18951macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18952enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18953enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18954pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18955enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18956shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18957SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18958ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18959PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18960host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18961host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18962host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18963build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18964build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18965build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18966SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18967Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18968GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18969EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18970FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18971LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18972NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18973LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18974max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18975ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18976exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18977lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18978lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18979lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18980lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18981lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18982reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18983reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18984OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18985deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18986file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18987file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18988want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18989DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18990sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18991AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18992AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18993archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18994STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18995RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18996old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18997old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18998old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18999lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19000CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19001CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19002compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19003GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19004lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19005lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19006lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19007lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19008lt_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"`'
19009lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19010nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19011lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19012lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19013objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19014MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19015lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19016lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19017lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19018lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19019lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19020need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19021MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19022DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19023NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19024LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19025OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19026OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19027libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19028shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19029extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19030archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19031enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19032export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19033whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19034compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19035old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19036old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19037archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19038archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19039module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19040module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19041with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19042allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19043no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19044hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19045hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19046hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19047hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19048hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19049hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19050hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19051inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19052link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19053always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19054export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19055exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19056include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19057prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19058postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19059file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19060variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19061need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19062need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19063version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19064runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19065shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19066shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19067libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19068library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19069soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19070install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19071postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19072postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19073finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19074finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19075hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19076sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19077configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19078configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19079hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19080enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19081enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19082enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19083old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19084striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19085
19086LTCC='$LTCC'
19087LTCFLAGS='$LTCFLAGS'
19088compiler='$compiler_DEFAULT'
19089
19090# A function that is used when there is no print builtin or printf.
19091func_fallback_echo ()
19092{
19093  eval 'cat <<_LTECHO_EOF
19094\$1
19095_LTECHO_EOF'
19096}
19097
19098# Quote evaled strings.
19099for var in SHELL \
19100ECHO \
19101PATH_SEPARATOR \
19102SED \
19103GREP \
19104EGREP \
19105FGREP \
19106LD \
19107NM \
19108LN_S \
19109lt_SP2NL \
19110lt_NL2SP \
19111reload_flag \
19112OBJDUMP \
19113deplibs_check_method \
19114file_magic_cmd \
19115file_magic_glob \
19116want_nocaseglob \
19117DLLTOOL \
19118sharedlib_from_linklib_cmd \
19119AR \
19120AR_FLAGS \
19121archiver_list_spec \
19122STRIP \
19123RANLIB \
19124CC \
19125CFLAGS \
19126compiler \
19127lt_cv_sys_global_symbol_pipe \
19128lt_cv_sys_global_symbol_to_cdecl \
19129lt_cv_sys_global_symbol_to_import \
19130lt_cv_sys_global_symbol_to_c_name_address \
19131lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19132lt_cv_nm_interface \
19133nm_file_list_spec \
19134lt_cv_truncate_bin \
19135lt_prog_compiler_no_builtin_flag \
19136lt_prog_compiler_pic \
19137lt_prog_compiler_wl \
19138lt_prog_compiler_static \
19139lt_cv_prog_compiler_c_o \
19140need_locks \
19141MANIFEST_TOOL \
19142DSYMUTIL \
19143NMEDIT \
19144LIPO \
19145OTOOL \
19146OTOOL64 \
19147shrext_cmds \
19148export_dynamic_flag_spec \
19149whole_archive_flag_spec \
19150compiler_needs_object \
19151with_gnu_ld \
19152allow_undefined_flag \
19153no_undefined_flag \
19154hardcode_libdir_flag_spec \
19155hardcode_libdir_separator \
19156exclude_expsyms \
19157include_expsyms \
19158file_list_spec \
19159variables_saved_for_relink \
19160libname_spec \
19161library_names_spec \
19162soname_spec \
19163install_override_mode \
19164finish_eval \
19165old_striplib \
19166striplib; do
19167    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19168    *[\\\\\\\`\\"\\\$]*)
19169      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19170      ;;
19171    *)
19172      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19173      ;;
19174    esac
19175done
19176
19177# Double-quote double-evaled strings.
19178for var in reload_cmds \
19179old_postinstall_cmds \
19180old_postuninstall_cmds \
19181old_archive_cmds \
19182extract_expsyms_cmds \
19183old_archive_from_new_cmds \
19184old_archive_from_expsyms_cmds \
19185archive_cmds \
19186archive_expsym_cmds \
19187module_cmds \
19188module_expsym_cmds \
19189export_symbols_cmds \
19190prelink_cmds \
19191postlink_cmds \
19192postinstall_cmds \
19193postuninstall_cmds \
19194finish_cmds \
19195sys_lib_search_path_spec \
19196configure_time_dlsearch_path \
19197configure_time_lt_sys_library_path; do
19198    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19199    *[\\\\\\\`\\"\\\$]*)
19200      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19201      ;;
19202    *)
19203      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19204      ;;
19205    esac
19206done
19207
19208ac_aux_dir='$ac_aux_dir'
19209
19210# See if we are running on zsh, and set the options that allow our
19211# commands through without removal of \ escapes INIT.
19212if test -n "\${ZSH_VERSION+set}"; then
19213   setopt NO_GLOB_SUBST
19214fi
19215
19216
19217    PACKAGE='$PACKAGE'
19218    VERSION='$VERSION'
19219    RM='$RM'
19220    ofile='$ofile'
19221
19222
19223
19224
19225_ACEOF
19226
19227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19228
19229# Handling of arguments.
19230for ac_config_target in $ac_config_targets
19231do
19232  case $ac_config_target in
19233    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19234    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19235    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
19236    "prefix-config") CONFIG_COMMANDS="$CONFIG_COMMANDS prefix-config" ;;
19237    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19238    "localdefs") CONFIG_FILES="$CONFIG_FILES localdefs" ;;
19239    "include/mpl_timer.h") CONFIG_FILES="$CONFIG_FILES include/mpl_timer.h" ;;
19240
19241  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19242  esac
19243done
19244
19245
19246# If the user did not use the arguments to specify the items to instantiate,
19247# then the envvar interface is used.  Set only those that are not.
19248# We use the long form for the default assignment because of an extremely
19249# bizarre bug on SunOS 4.1.3.
19250if $ac_need_defaults; then
19251  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19252  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19253  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19254fi
19255
19256# Have a temporary directory for convenience.  Make it in the build tree
19257# simply because there is no reason against having it here, and in addition,
19258# creating and moving files from /tmp can sometimes cause problems.
19259# Hook for its removal unless debugging.
19260# Note that there is a small window in which the directory will not be cleaned:
19261# after its creation but before its name has been assigned to `$tmp'.
19262$debug ||
19263{
19264  tmp= ac_tmp=
19265  trap 'exit_status=$?
19266  : "${ac_tmp:=$tmp}"
19267  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19268' 0
19269  trap 'as_fn_exit 1' 1 2 13 15
19270}
19271# Create a (secure) tmp directory for tmp files.
19272
19273{
19274  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19275  test -d "$tmp"
19276}  ||
19277{
19278  tmp=./conf$$-$RANDOM
19279  (umask 077 && mkdir "$tmp")
19280} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19281ac_tmp=$tmp
19282
19283# Set up the scripts for CONFIG_FILES section.
19284# No need to generate them if there are no CONFIG_FILES.
19285# This happens for instance with `./config.status config.h'.
19286if test -n "$CONFIG_FILES"; then
19287
19288
19289ac_cr=`echo X | tr X '\015'`
19290# On cygwin, bash can eat \r inside `` if the user requested igncr.
19291# But we know of no other shell where ac_cr would be empty at this
19292# point, so we can use a bashism as a fallback.
19293if test "x$ac_cr" = x; then
19294  eval ac_cr=\$\'\\r\'
19295fi
19296ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19297if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19298  ac_cs_awk_cr='\\r'
19299else
19300  ac_cs_awk_cr=$ac_cr
19301fi
19302
19303echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19304_ACEOF
19305
19306
19307{
19308  echo "cat >conf$$subs.awk <<_ACEOF" &&
19309  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19310  echo "_ACEOF"
19311} >conf$$subs.sh ||
19312  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19313ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19314ac_delim='%!_!# '
19315for ac_last_try in false false false false false :; do
19316  . ./conf$$subs.sh ||
19317    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19318
19319  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19320  if test $ac_delim_n = $ac_delim_num; then
19321    break
19322  elif $ac_last_try; then
19323    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19324  else
19325    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19326  fi
19327done
19328rm -f conf$$subs.sh
19329
19330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19331cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19332_ACEOF
19333sed -n '
19334h
19335s/^/S["/; s/!.*/"]=/
19336p
19337g
19338s/^[^!]*!//
19339:repl
19340t repl
19341s/'"$ac_delim"'$//
19342t delim
19343:nl
19344h
19345s/\(.\{148\}\)..*/\1/
19346t more1
19347s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19348p
19349n
19350b repl
19351:more1
19352s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19353p
19354g
19355s/.\{148\}//
19356t nl
19357:delim
19358h
19359s/\(.\{148\}\)..*/\1/
19360t more2
19361s/["\\]/\\&/g; s/^/"/; s/$/"/
19362p
19363b
19364:more2
19365s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19366p
19367g
19368s/.\{148\}//
19369t delim
19370' <conf$$subs.awk | sed '
19371/^[^""]/{
19372  N
19373  s/\n//
19374}
19375' >>$CONFIG_STATUS || ac_write_fail=1
19376rm -f conf$$subs.awk
19377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19378_ACAWK
19379cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19380  for (key in S) S_is_set[key] = 1
19381  FS = ""
19382
19383}
19384{
19385  line = $ 0
19386  nfields = split(line, field, "@")
19387  substed = 0
19388  len = length(field[1])
19389  for (i = 2; i < nfields; i++) {
19390    key = field[i]
19391    keylen = length(key)
19392    if (S_is_set[key]) {
19393      value = S[key]
19394      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19395      len += length(value) + length(field[++i])
19396      substed = 1
19397    } else
19398      len += 1 + keylen
19399  }
19400
19401  print line
19402}
19403
19404_ACAWK
19405_ACEOF
19406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19407if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19408  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19409else
19410  cat
19411fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19412  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19413_ACEOF
19414
19415# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19416# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19417# trailing colons and then remove the whole line if VPATH becomes empty
19418# (actually we leave an empty line to preserve line numbers).
19419if test "x$srcdir" = x.; then
19420  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19421h
19422s///
19423s/^/:/
19424s/[	 ]*$/:/
19425s/:\$(srcdir):/:/g
19426s/:\${srcdir}:/:/g
19427s/:@srcdir@:/:/g
19428s/^:*//
19429s/:*$//
19430x
19431s/\(=[	 ]*\).*/\1/
19432G
19433s/\n//
19434s/^[^=]*=[	 ]*$//
19435}'
19436fi
19437
19438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19439fi # test -n "$CONFIG_FILES"
19440
19441# Set up the scripts for CONFIG_HEADERS section.
19442# No need to generate them if there are no CONFIG_HEADERS.
19443# This happens for instance with `./config.status Makefile'.
19444if test -n "$CONFIG_HEADERS"; then
19445cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19446BEGIN {
19447_ACEOF
19448
19449# Transform confdefs.h into an awk script `defines.awk', embedded as
19450# here-document in config.status, that substitutes the proper values into
19451# config.h.in to produce config.h.
19452
19453# Create a delimiter string that does not exist in confdefs.h, to ease
19454# handling of long lines.
19455ac_delim='%!_!# '
19456for ac_last_try in false false :; do
19457  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19458  if test -z "$ac_tt"; then
19459    break
19460  elif $ac_last_try; then
19461    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19462  else
19463    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19464  fi
19465done
19466
19467# For the awk script, D is an array of macro values keyed by name,
19468# likewise P contains macro parameters if any.  Preserve backslash
19469# newline sequences.
19470
19471ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19472sed -n '
19473s/.\{148\}/&'"$ac_delim"'/g
19474t rset
19475:rset
19476s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19477t def
19478d
19479:def
19480s/\\$//
19481t bsnl
19482s/["\\]/\\&/g
19483s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19484D["\1"]=" \3"/p
19485s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19486d
19487:bsnl
19488s/["\\]/\\&/g
19489s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19490D["\1"]=" \3\\\\\\n"\\/p
19491t cont
19492s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19493t cont
19494d
19495:cont
19496n
19497s/.\{148\}/&'"$ac_delim"'/g
19498t clear
19499:clear
19500s/\\$//
19501t bsnlc
19502s/["\\]/\\&/g; s/^/"/; s/$/"/p
19503d
19504:bsnlc
19505s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19506b cont
19507' <confdefs.h | sed '
19508s/'"$ac_delim"'/"\\\
19509"/g' >>$CONFIG_STATUS || ac_write_fail=1
19510
19511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19512  for (key in D) D_is_set[key] = 1
19513  FS = ""
19514}
19515/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19516  line = \$ 0
19517  split(line, arg, " ")
19518  if (arg[1] == "#") {
19519    defundef = arg[2]
19520    mac1 = arg[3]
19521  } else {
19522    defundef = substr(arg[1], 2)
19523    mac1 = arg[2]
19524  }
19525  split(mac1, mac2, "(") #)
19526  macro = mac2[1]
19527  prefix = substr(line, 1, index(line, defundef) - 1)
19528  if (D_is_set[macro]) {
19529    # Preserve the white space surrounding the "#".
19530    print prefix "define", macro P[macro] D[macro]
19531    next
19532  } else {
19533    # Replace #undef with comments.  This is necessary, for example,
19534    # in the case of _POSIX_SOURCE, which is predefined and required
19535    # on some systems where configure will not decide to define it.
19536    if (defundef == "undef") {
19537      print "/*", prefix defundef, macro, "*/"
19538      next
19539    }
19540  }
19541}
19542{ print }
19543_ACAWK
19544_ACEOF
19545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19546  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19547fi # test -n "$CONFIG_HEADERS"
19548
19549
19550eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19551shift
19552for ac_tag
19553do
19554  case $ac_tag in
19555  :[FHLC]) ac_mode=$ac_tag; continue;;
19556  esac
19557  case $ac_mode$ac_tag in
19558  :[FHL]*:*);;
19559  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19560  :[FH]-) ac_tag=-:-;;
19561  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19562  esac
19563  ac_save_IFS=$IFS
19564  IFS=:
19565  set x $ac_tag
19566  IFS=$ac_save_IFS
19567  shift
19568  ac_file=$1
19569  shift
19570
19571  case $ac_mode in
19572  :L) ac_source=$1;;
19573  :[FH])
19574    ac_file_inputs=
19575    for ac_f
19576    do
19577      case $ac_f in
19578      -) ac_f="$ac_tmp/stdin";;
19579      *) # Look for the file first in the build tree, then in the source tree
19580	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19581	 # because $ac_f cannot contain `:'.
19582	 test -f "$ac_f" ||
19583	   case $ac_f in
19584	   [\\/$]*) false;;
19585	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19586	   esac ||
19587	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19588      esac
19589      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19590      as_fn_append ac_file_inputs " '$ac_f'"
19591    done
19592
19593    # Let's still pretend it is `configure' which instantiates (i.e., don't
19594    # use $as_me), people would be surprised to read:
19595    #    /* config.h.  Generated by config.status.  */
19596    configure_input='Generated from '`
19597	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19598	`' by configure.'
19599    if test x"$ac_file" != x-; then
19600      configure_input="$ac_file.  $configure_input"
19601      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19602$as_echo "$as_me: creating $ac_file" >&6;}
19603    fi
19604    # Neutralize special characters interpreted by sed in replacement strings.
19605    case $configure_input in #(
19606    *\&* | *\|* | *\\* )
19607       ac_sed_conf_input=`$as_echo "$configure_input" |
19608       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19609    *) ac_sed_conf_input=$configure_input;;
19610    esac
19611
19612    case $ac_tag in
19613    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19614      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19615    esac
19616    ;;
19617  esac
19618
19619  ac_dir=`$as_dirname -- "$ac_file" ||
19620$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19621	 X"$ac_file" : 'X\(//\)[^/]' \| \
19622	 X"$ac_file" : 'X\(//\)$' \| \
19623	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19624$as_echo X"$ac_file" |
19625    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19626	    s//\1/
19627	    q
19628	  }
19629	  /^X\(\/\/\)[^/].*/{
19630	    s//\1/
19631	    q
19632	  }
19633	  /^X\(\/\/\)$/{
19634	    s//\1/
19635	    q
19636	  }
19637	  /^X\(\/\).*/{
19638	    s//\1/
19639	    q
19640	  }
19641	  s/.*/./; q'`
19642  as_dir="$ac_dir"; as_fn_mkdir_p
19643  ac_builddir=.
19644
19645case "$ac_dir" in
19646.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19647*)
19648  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19649  # A ".." for each directory in $ac_dir_suffix.
19650  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19651  case $ac_top_builddir_sub in
19652  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19653  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19654  esac ;;
19655esac
19656ac_abs_top_builddir=$ac_pwd
19657ac_abs_builddir=$ac_pwd$ac_dir_suffix
19658# for backward compatibility:
19659ac_top_builddir=$ac_top_build_prefix
19660
19661case $srcdir in
19662  .)  # We are building in place.
19663    ac_srcdir=.
19664    ac_top_srcdir=$ac_top_builddir_sub
19665    ac_abs_top_srcdir=$ac_pwd ;;
19666  [\\/]* | ?:[\\/]* )  # Absolute name.
19667    ac_srcdir=$srcdir$ac_dir_suffix;
19668    ac_top_srcdir=$srcdir
19669    ac_abs_top_srcdir=$srcdir ;;
19670  *) # Relative name.
19671    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19672    ac_top_srcdir=$ac_top_build_prefix$srcdir
19673    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19674esac
19675ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19676
19677
19678  case $ac_mode in
19679  :F)
19680  #
19681  # CONFIG_FILE
19682  #
19683
19684  case $INSTALL in
19685  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19686  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19687  esac
19688  ac_MKDIR_P=$MKDIR_P
19689  case $MKDIR_P in
19690  [\\/$]* | ?:[\\/]* ) ;;
19691  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19692  esac
19693_ACEOF
19694
19695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19696# If the template does not know about datarootdir, expand it.
19697# FIXME: This hack should be removed a few years after 2.60.
19698ac_datarootdir_hack=; ac_datarootdir_seen=
19699ac_sed_dataroot='
19700/datarootdir/ {
19701  p
19702  q
19703}
19704/@datadir@/p
19705/@docdir@/p
19706/@infodir@/p
19707/@localedir@/p
19708/@mandir@/p'
19709case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19710*datarootdir*) ac_datarootdir_seen=yes;;
19711*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19712  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19713$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19714_ACEOF
19715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19716  ac_datarootdir_hack='
19717  s&@datadir@&$datadir&g
19718  s&@docdir@&$docdir&g
19719  s&@infodir@&$infodir&g
19720  s&@localedir@&$localedir&g
19721  s&@mandir@&$mandir&g
19722  s&\\\${datarootdir}&$datarootdir&g' ;;
19723esac
19724_ACEOF
19725
19726# Neutralize VPATH when `$srcdir' = `.'.
19727# Shell code in configure.ac might set extrasub.
19728# FIXME: do we really want to maintain this feature?
19729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19730ac_sed_extra="$ac_vpsub
19731$extrasub
19732_ACEOF
19733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19734:t
19735/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19736s|@configure_input@|$ac_sed_conf_input|;t t
19737s&@top_builddir@&$ac_top_builddir_sub&;t t
19738s&@top_build_prefix@&$ac_top_build_prefix&;t t
19739s&@srcdir@&$ac_srcdir&;t t
19740s&@abs_srcdir@&$ac_abs_srcdir&;t t
19741s&@top_srcdir@&$ac_top_srcdir&;t t
19742s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19743s&@builddir@&$ac_builddir&;t t
19744s&@abs_builddir@&$ac_abs_builddir&;t t
19745s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19746s&@INSTALL@&$ac_INSTALL&;t t
19747s&@MKDIR_P@&$ac_MKDIR_P&;t t
19748$ac_datarootdir_hack
19749"
19750eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19751  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19752
19753test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19754  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19755  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19756      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19757  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19758which seems to be undefined.  Please make sure it is defined" >&5
19759$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19760which seems to be undefined.  Please make sure it is defined" >&2;}
19761
19762  rm -f "$ac_tmp/stdin"
19763  case $ac_file in
19764  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19765  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19766  esac \
19767  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19768 ;;
19769  :H)
19770  #
19771  # CONFIG_HEADER
19772  #
19773  if test x"$ac_file" != x-; then
19774    {
19775      $as_echo "/* $configure_input  */" \
19776      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19777    } >"$ac_tmp/config.h" \
19778      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19779    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19780      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19781$as_echo "$as_me: $ac_file is unchanged" >&6;}
19782    else
19783      rm -f "$ac_file"
19784      mv "$ac_tmp/config.h" "$ac_file" \
19785	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19786    fi
19787  else
19788    $as_echo "/* $configure_input  */" \
19789      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19790      || as_fn_error $? "could not create -" "$LINENO" 5
19791  fi
19792# Compute "$ac_file"'s index in $config_headers.
19793_am_arg="$ac_file"
19794_am_stamp_count=1
19795for _am_header in $config_headers :; do
19796  case $_am_header in
19797    $_am_arg | $_am_arg:* )
19798      break ;;
19799    * )
19800      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19801  esac
19802done
19803echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19804$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19805	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19806	 X"$_am_arg" : 'X\(//\)$' \| \
19807	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19808$as_echo X"$_am_arg" |
19809    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19810	    s//\1/
19811	    q
19812	  }
19813	  /^X\(\/\/\)[^/].*/{
19814	    s//\1/
19815	    q
19816	  }
19817	  /^X\(\/\/\)$/{
19818	    s//\1/
19819	    q
19820	  }
19821	  /^X\(\/\).*/{
19822	    s//\1/
19823	    q
19824	  }
19825	  s/.*/./; q'`/stamp-h$_am_stamp_count
19826 ;;
19827
19828  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19829$as_echo "$as_me: executing $ac_file commands" >&6;}
19830 ;;
19831  esac
19832
19833
19834  case $ac_file$ac_mode in
19835    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19836  # Older Autoconf quotes --file arguments for eval, but not when files
19837  # are listed without --file.  Let's play safe and only enable the eval
19838  # if we detect the quoting.
19839  case $CONFIG_FILES in
19840  *\'*) eval set x "$CONFIG_FILES" ;;
19841  *)   set x $CONFIG_FILES ;;
19842  esac
19843  shift
19844  for mf
19845  do
19846    # Strip MF so we end up with the name of the file.
19847    mf=`echo "$mf" | sed -e 's/:.*$//'`
19848    # Check whether this is an Automake generated Makefile or not.
19849    # We used to match only the files named 'Makefile.in', but
19850    # some people rename them; so instead we look at the file content.
19851    # Grep'ing the first line is not enough: some people post-process
19852    # each Makefile.in and add a new line on top of each file to say so.
19853    # Grep'ing the whole file is not good either: AIX grep has a line
19854    # limit of 2048, but all sed's we know have understand at least 4000.
19855    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19856      dirpart=`$as_dirname -- "$mf" ||
19857$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19858	 X"$mf" : 'X\(//\)[^/]' \| \
19859	 X"$mf" : 'X\(//\)$' \| \
19860	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19861$as_echo X"$mf" |
19862    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19863	    s//\1/
19864	    q
19865	  }
19866	  /^X\(\/\/\)[^/].*/{
19867	    s//\1/
19868	    q
19869	  }
19870	  /^X\(\/\/\)$/{
19871	    s//\1/
19872	    q
19873	  }
19874	  /^X\(\/\).*/{
19875	    s//\1/
19876	    q
19877	  }
19878	  s/.*/./; q'`
19879    else
19880      continue
19881    fi
19882    # Extract the definition of DEPDIR, am__include, and am__quote
19883    # from the Makefile without running 'make'.
19884    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19885    test -z "$DEPDIR" && continue
19886    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19887    test -z "$am__include" && continue
19888    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19889    # Find all dependency output files, they are included files with
19890    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19891    # simplest approach to changing $(DEPDIR) to its actual value in the
19892    # expansion.
19893    for file in `sed -n "
19894      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19895	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19896      # Make sure the directory exists.
19897      test -f "$dirpart/$file" && continue
19898      fdir=`$as_dirname -- "$file" ||
19899$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19900	 X"$file" : 'X\(//\)[^/]' \| \
19901	 X"$file" : 'X\(//\)$' \| \
19902	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19903$as_echo X"$file" |
19904    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19905	    s//\1/
19906	    q
19907	  }
19908	  /^X\(\/\/\)[^/].*/{
19909	    s//\1/
19910	    q
19911	  }
19912	  /^X\(\/\/\)$/{
19913	    s//\1/
19914	    q
19915	  }
19916	  /^X\(\/\).*/{
19917	    s//\1/
19918	    q
19919	  }
19920	  s/.*/./; q'`
19921      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19922      # echo "creating $dirpart/$file"
19923      echo '# dummy' > "$dirpart/$file"
19924    done
19925  done
19926}
19927 ;;
19928    "libtool":C)
19929
19930    # See if we are running on zsh, and set the options that allow our
19931    # commands through without removal of \ escapes.
19932    if test -n "${ZSH_VERSION+set}"; then
19933      setopt NO_GLOB_SUBST
19934    fi
19935
19936    cfgfile=${ofile}T
19937    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19938    $RM "$cfgfile"
19939
19940    cat <<_LT_EOF >> "$cfgfile"
19941#! $SHELL
19942# Generated automatically by $as_me ($PACKAGE) $VERSION
19943# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19944# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19945
19946# Provide generalized library-building support services.
19947# Written by Gordon Matzigkeit, 1996
19948
19949# Copyright (C) 2014 Free Software Foundation, Inc.
19950# This is free software; see the source for copying conditions.  There is NO
19951# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19952
19953# GNU Libtool is free software; you can redistribute it and/or modify
19954# it under the terms of the GNU General Public License as published by
19955# the Free Software Foundation; either version 2 of of the License, or
19956# (at your option) any later version.
19957#
19958# As a special exception to the GNU General Public License, if you
19959# distribute this file as part of a program or library that is built
19960# using GNU Libtool, you may include this file under the  same
19961# distribution terms that you use for the rest of that program.
19962#
19963# GNU Libtool is distributed in the hope that it will be useful, but
19964# WITHOUT ANY WARRANTY; without even the implied warranty of
19965# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19966# GNU General Public License for more details.
19967#
19968# You should have received a copy of the GNU General Public License
19969# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19970
19971
19972# The names of the tagged configurations supported by this script.
19973available_tags=''
19974
19975# Configured defaults for sys_lib_dlsearch_path munging.
19976: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19977
19978# ### BEGIN LIBTOOL CONFIG
19979
19980# Which release of libtool.m4 was used?
19981macro_version=$macro_version
19982macro_revision=$macro_revision
19983
19984# Whether or not to build shared libraries.
19985build_libtool_libs=$enable_shared
19986
19987# Whether or not to build static libraries.
19988build_old_libs=$enable_static
19989
19990# What type of objects to build.
19991pic_mode=$pic_mode
19992
19993# Whether or not to optimize for fast installation.
19994fast_install=$enable_fast_install
19995
19996# Shared archive member basename,for filename based shared library versioning on AIX.
19997shared_archive_member_spec=$shared_archive_member_spec
19998
19999# Shell to use when invoking shell scripts.
20000SHELL=$lt_SHELL
20001
20002# An echo program that protects backslashes.
20003ECHO=$lt_ECHO
20004
20005# The PATH separator for the build system.
20006PATH_SEPARATOR=$lt_PATH_SEPARATOR
20007
20008# The host system.
20009host_alias=$host_alias
20010host=$host
20011host_os=$host_os
20012
20013# The build system.
20014build_alias=$build_alias
20015build=$build
20016build_os=$build_os
20017
20018# A sed program that does not truncate output.
20019SED=$lt_SED
20020
20021# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20022Xsed="\$SED -e 1s/^X//"
20023
20024# A grep program that handles long lines.
20025GREP=$lt_GREP
20026
20027# An ERE matcher.
20028EGREP=$lt_EGREP
20029
20030# A literal string matcher.
20031FGREP=$lt_FGREP
20032
20033# A BSD- or MS-compatible name lister.
20034NM=$lt_NM
20035
20036# Whether we need soft or hard links.
20037LN_S=$lt_LN_S
20038
20039# What is the maximum length of a command?
20040max_cmd_len=$max_cmd_len
20041
20042# Object file suffix (normally "o").
20043objext=$ac_objext
20044
20045# Executable file suffix (normally "").
20046exeext=$exeext
20047
20048# whether the shell understands "unset".
20049lt_unset=$lt_unset
20050
20051# turn spaces into newlines.
20052SP2NL=$lt_lt_SP2NL
20053
20054# turn newlines into spaces.
20055NL2SP=$lt_lt_NL2SP
20056
20057# convert \$build file names to \$host format.
20058to_host_file_cmd=$lt_cv_to_host_file_cmd
20059
20060# convert \$build files to toolchain format.
20061to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20062
20063# An object symbol dumper.
20064OBJDUMP=$lt_OBJDUMP
20065
20066# Method to check whether dependent libraries are shared objects.
20067deplibs_check_method=$lt_deplibs_check_method
20068
20069# Command to use when deplibs_check_method = "file_magic".
20070file_magic_cmd=$lt_file_magic_cmd
20071
20072# How to find potential files when deplibs_check_method = "file_magic".
20073file_magic_glob=$lt_file_magic_glob
20074
20075# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20076want_nocaseglob=$lt_want_nocaseglob
20077
20078# DLL creation program.
20079DLLTOOL=$lt_DLLTOOL
20080
20081# Command to associate shared and link libraries.
20082sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20083
20084# The archiver.
20085AR=$lt_AR
20086
20087# Flags to create an archive.
20088AR_FLAGS=$lt_AR_FLAGS
20089
20090# How to feed a file listing to the archiver.
20091archiver_list_spec=$lt_archiver_list_spec
20092
20093# A symbol stripping program.
20094STRIP=$lt_STRIP
20095
20096# Commands used to install an old-style archive.
20097RANLIB=$lt_RANLIB
20098old_postinstall_cmds=$lt_old_postinstall_cmds
20099old_postuninstall_cmds=$lt_old_postuninstall_cmds
20100
20101# Whether to use a lock for old archive extraction.
20102lock_old_archive_extraction=$lock_old_archive_extraction
20103
20104# A C compiler.
20105LTCC=$lt_CC
20106
20107# LTCC compiler flags.
20108LTCFLAGS=$lt_CFLAGS
20109
20110# Take the output of nm and produce a listing of raw symbols and C names.
20111global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20112
20113# Transform the output of nm in a proper C declaration.
20114global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20115
20116# Transform the output of nm into a list of symbols to manually relocate.
20117global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20118
20119# Transform the output of nm in a C name address pair.
20120global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20121
20122# Transform the output of nm in a C name address pair when lib prefix is needed.
20123global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20124
20125# The name lister interface.
20126nm_interface=$lt_lt_cv_nm_interface
20127
20128# Specify filename containing input files for \$NM.
20129nm_file_list_spec=$lt_nm_file_list_spec
20130
20131# The root where to search for dependent libraries,and where our libraries should be installed.
20132lt_sysroot=$lt_sysroot
20133
20134# Command to truncate a binary pipe.
20135lt_truncate_bin=$lt_lt_cv_truncate_bin
20136
20137# The name of the directory that contains temporary libtool files.
20138objdir=$objdir
20139
20140# Used to examine libraries when file_magic_cmd begins with "file".
20141MAGIC_CMD=$MAGIC_CMD
20142
20143# Must we lock files when doing compilation?
20144need_locks=$lt_need_locks
20145
20146# Manifest tool.
20147MANIFEST_TOOL=$lt_MANIFEST_TOOL
20148
20149# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20150DSYMUTIL=$lt_DSYMUTIL
20151
20152# Tool to change global to local symbols on Mac OS X.
20153NMEDIT=$lt_NMEDIT
20154
20155# Tool to manipulate fat objects and archives on Mac OS X.
20156LIPO=$lt_LIPO
20157
20158# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20159OTOOL=$lt_OTOOL
20160
20161# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20162OTOOL64=$lt_OTOOL64
20163
20164# Old archive suffix (normally "a").
20165libext=$libext
20166
20167# Shared library suffix (normally ".so").
20168shrext_cmds=$lt_shrext_cmds
20169
20170# The commands to extract the exported symbol list from a shared archive.
20171extract_expsyms_cmds=$lt_extract_expsyms_cmds
20172
20173# Variables whose values should be saved in libtool wrapper scripts and
20174# restored at link time.
20175variables_saved_for_relink=$lt_variables_saved_for_relink
20176
20177# Do we need the "lib" prefix for modules?
20178need_lib_prefix=$need_lib_prefix
20179
20180# Do we need a version for libraries?
20181need_version=$need_version
20182
20183# Library versioning type.
20184version_type=$version_type
20185
20186# Shared library runtime path variable.
20187runpath_var=$runpath_var
20188
20189# Shared library path variable.
20190shlibpath_var=$shlibpath_var
20191
20192# Is shlibpath searched before the hard-coded library search path?
20193shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20194
20195# Format of library name prefix.
20196libname_spec=$lt_libname_spec
20197
20198# List of archive names.  First name is the real one, the rest are links.
20199# The last name is the one that the linker finds with -lNAME
20200library_names_spec=$lt_library_names_spec
20201
20202# The coded name of the library, if different from the real name.
20203soname_spec=$lt_soname_spec
20204
20205# Permission mode override for installation of shared libraries.
20206install_override_mode=$lt_install_override_mode
20207
20208# Command to use after installation of a shared archive.
20209postinstall_cmds=$lt_postinstall_cmds
20210
20211# Command to use after uninstallation of a shared archive.
20212postuninstall_cmds=$lt_postuninstall_cmds
20213
20214# Commands used to finish a libtool library installation in a directory.
20215finish_cmds=$lt_finish_cmds
20216
20217# As "finish_cmds", except a single script fragment to be evaled but
20218# not shown.
20219finish_eval=$lt_finish_eval
20220
20221# Whether we should hardcode library paths into libraries.
20222hardcode_into_libs=$hardcode_into_libs
20223
20224# Compile-time system search path for libraries.
20225sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20226
20227# Detected run-time system search path for libraries.
20228sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20229
20230# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20231configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20232
20233# Whether dlopen is supported.
20234dlopen_support=$enable_dlopen
20235
20236# Whether dlopen of programs is supported.
20237dlopen_self=$enable_dlopen_self
20238
20239# Whether dlopen of statically linked programs is supported.
20240dlopen_self_static=$enable_dlopen_self_static
20241
20242# Commands to strip libraries.
20243old_striplib=$lt_old_striplib
20244striplib=$lt_striplib
20245
20246
20247# The linker used to build libraries.
20248LD=$lt_LD
20249
20250# How to create reloadable object files.
20251reload_flag=$lt_reload_flag
20252reload_cmds=$lt_reload_cmds
20253
20254# Commands used to build an old-style archive.
20255old_archive_cmds=$lt_old_archive_cmds
20256
20257# A language specific compiler.
20258CC=$lt_compiler
20259
20260# Is the compiler the GNU compiler?
20261with_gcc=$GCC
20262
20263# Compiler flag to turn off builtin functions.
20264no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20265
20266# Additional compiler flags for building library objects.
20267pic_flag=$lt_lt_prog_compiler_pic
20268
20269# How to pass a linker flag through the compiler.
20270wl=$lt_lt_prog_compiler_wl
20271
20272# Compiler flag to prevent dynamic linking.
20273link_static_flag=$lt_lt_prog_compiler_static
20274
20275# Does compiler simultaneously support -c and -o options?
20276compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20277
20278# Whether or not to add -lc for building shared libraries.
20279build_libtool_need_lc=$archive_cmds_need_lc
20280
20281# Whether or not to disallow shared libs when runtime libs are static.
20282allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20283
20284# Compiler flag to allow reflexive dlopens.
20285export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20286
20287# Compiler flag to generate shared objects directly from archives.
20288whole_archive_flag_spec=$lt_whole_archive_flag_spec
20289
20290# Whether the compiler copes with passing no objects directly.
20291compiler_needs_object=$lt_compiler_needs_object
20292
20293# Create an old-style archive from a shared archive.
20294old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20295
20296# Create a temporary old-style archive to link instead of a shared archive.
20297old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20298
20299# Commands used to build a shared archive.
20300archive_cmds=$lt_archive_cmds
20301archive_expsym_cmds=$lt_archive_expsym_cmds
20302
20303# Commands used to build a loadable module if different from building
20304# a shared archive.
20305module_cmds=$lt_module_cmds
20306module_expsym_cmds=$lt_module_expsym_cmds
20307
20308# Whether we are building with GNU ld or not.
20309with_gnu_ld=$lt_with_gnu_ld
20310
20311# Flag that allows shared libraries with undefined symbols to be built.
20312allow_undefined_flag=$lt_allow_undefined_flag
20313
20314# Flag that enforces no undefined symbols.
20315no_undefined_flag=$lt_no_undefined_flag
20316
20317# Flag to hardcode \$libdir into a binary during linking.
20318# This must work even if \$libdir does not exist
20319hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20320
20321# Whether we need a single "-rpath" flag with a separated argument.
20322hardcode_libdir_separator=$lt_hardcode_libdir_separator
20323
20324# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20325# DIR into the resulting binary.
20326hardcode_direct=$hardcode_direct
20327
20328# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20329# DIR into the resulting binary and the resulting library dependency is
20330# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20331# library is relocated.
20332hardcode_direct_absolute=$hardcode_direct_absolute
20333
20334# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20335# into the resulting binary.
20336hardcode_minus_L=$hardcode_minus_L
20337
20338# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20339# into the resulting binary.
20340hardcode_shlibpath_var=$hardcode_shlibpath_var
20341
20342# Set to "yes" if building a shared library automatically hardcodes DIR
20343# into the library and all subsequent libraries and executables linked
20344# against it.
20345hardcode_automatic=$hardcode_automatic
20346
20347# Set to yes if linker adds runtime paths of dependent libraries
20348# to runtime path list.
20349inherit_rpath=$inherit_rpath
20350
20351# Whether libtool must link a program against all its dependency libraries.
20352link_all_deplibs=$link_all_deplibs
20353
20354# Set to "yes" if exported symbols are required.
20355always_export_symbols=$always_export_symbols
20356
20357# The commands to list exported symbols.
20358export_symbols_cmds=$lt_export_symbols_cmds
20359
20360# Symbols that should not be listed in the preloaded symbols.
20361exclude_expsyms=$lt_exclude_expsyms
20362
20363# Symbols that must always be exported.
20364include_expsyms=$lt_include_expsyms
20365
20366# Commands necessary for linking programs (against libraries) with templates.
20367prelink_cmds=$lt_prelink_cmds
20368
20369# Commands necessary for finishing linking programs.
20370postlink_cmds=$lt_postlink_cmds
20371
20372# Specify filename containing input files.
20373file_list_spec=$lt_file_list_spec
20374
20375# How to hardcode a shared library path into an executable.
20376hardcode_action=$hardcode_action
20377
20378# ### END LIBTOOL CONFIG
20379
20380_LT_EOF
20381
20382    cat <<'_LT_EOF' >> "$cfgfile"
20383
20384# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20385
20386# func_munge_path_list VARIABLE PATH
20387# -----------------------------------
20388# VARIABLE is name of variable containing _space_ separated list of
20389# directories to be munged by the contents of PATH, which is string
20390# having a format:
20391# "DIR[:DIR]:"
20392#       string "DIR[ DIR]" will be prepended to VARIABLE
20393# ":DIR[:DIR]"
20394#       string "DIR[ DIR]" will be appended to VARIABLE
20395# "DIRP[:DIRP]::[DIRA:]DIRA"
20396#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20397#       "DIRA[ DIRA]" will be appended to VARIABLE
20398# "DIR[:DIR]"
20399#       VARIABLE will be replaced by "DIR[ DIR]"
20400func_munge_path_list ()
20401{
20402    case x$2 in
20403    x)
20404        ;;
20405    *:)
20406        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20407        ;;
20408    x:*)
20409        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20410        ;;
20411    *::*)
20412        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20413        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20414        ;;
20415    *)
20416        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20417        ;;
20418    esac
20419}
20420
20421
20422# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20423func_cc_basename ()
20424{
20425    for cc_temp in $*""; do
20426      case $cc_temp in
20427        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20428        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20429        \-*) ;;
20430        *) break;;
20431      esac
20432    done
20433    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20434}
20435
20436
20437# ### END FUNCTIONS SHARED WITH CONFIGURE
20438
20439_LT_EOF
20440
20441  case $host_os in
20442  aix3*)
20443    cat <<\_LT_EOF >> "$cfgfile"
20444# AIX sometimes has problems with the GCC collect2 program.  For some
20445# reason, if we set the COLLECT_NAMES environment variable, the problems
20446# vanish in a puff of smoke.
20447if test set != "${COLLECT_NAMES+set}"; then
20448  COLLECT_NAMES=
20449  export COLLECT_NAMES
20450fi
20451_LT_EOF
20452    ;;
20453  esac
20454
20455
20456ltmain=$ac_aux_dir/ltmain.sh
20457
20458
20459  # We use sed instead of cat because bash on DJGPP gets confused if
20460  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20461  # text mode, it properly converts lines to CR/LF.  This bash problem
20462  # is reportedly fixed, but why not run on old versions too?
20463  sed '$q' "$ltmain" >> "$cfgfile" \
20464     || (rm -f "$cfgfile"; exit 1)
20465
20466   mv -f "$cfgfile" "$ofile" ||
20467    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20468  chmod +x "$ofile"
20469
20470 ;;
20471    "prefix-config":C) perl $srcdir/confdb/cmd_prefix_config_h.pl MPL include/config.h include/mplconfig.h ;;
20472
20473  esac
20474done # for ac_tag
20475
20476
20477as_fn_exit 0
20478_ACEOF
20479ac_clean_files=$ac_clean_files_save
20480
20481test $ac_write_fail = 0 ||
20482  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20483
20484
20485# configure is writing to config.log, and then calls config.status.
20486# config.status does its own redirection, appending to config.log.
20487# Unfortunately, on DOS this fails, as config.log is still kept open
20488# by configure, so config.status won't be able to write to it; its
20489# output is simply discarded.  So we exec the FD to /dev/null,
20490# effectively closing config.log, so it can be properly (re)opened and
20491# appended to by config.status.  When coming back to configure, we
20492# need to make the FD available again.
20493if test "$no_create" != yes; then
20494  ac_cs_success=:
20495  ac_config_status_args=
20496  test "$silent" = yes &&
20497    ac_config_status_args="$ac_config_status_args --quiet"
20498  exec 5>/dev/null
20499  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20500  exec 5>>config.log
20501  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20502  # would make configure fail if this is the last instruction.
20503  $ac_cs_success || as_fn_exit 1
20504fi
20505if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20506  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20507$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20508fi
20509
20510