1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for iperf 3.6+.
4#
5# Report bugs to <https://github.com/esnet/iperf>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://github.com/esnet/iperf about your system,
279$0: including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='iperf'
592PACKAGE_TARNAME='iperf'
593PACKAGE_VERSION='3.6+'
594PACKAGE_STRING='iperf 3.6+'
595PACKAGE_BUGREPORT='https://github.com/esnet/iperf'
596PACKAGE_URL='https://software.es.net/iperf/'
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638OPENSSL_LDFLAGS
639OPENSSL_LIBS
640OPENSSL_INCLUDES
641PKG_CONFIG
642ENABLE_PROFILING_FALSE
643ENABLE_PROFILING_TRUE
644CPP
645LT_SYS_LIBRARY_PATH
646OTOOL64
647OTOOL
648LIPO
649NMEDIT
650DSYMUTIL
651MANIFEST_TOOL
652ac_ct_AR
653AR
654DLLTOOL
655OBJDUMP
656NM
657ac_ct_DUMPBIN
658DUMPBIN
659LD
660FGREP
661EGREP
662GREP
663SED
664LIBTOOL
665LN_S
666RANLIB
667am__fastdepCC_FALSE
668am__fastdepCC_TRUE
669CCDEPMODE
670am__nodep
671AMDEPBACKSLASH
672AMDEP_FALSE
673AMDEP_TRUE
674am__include
675DEPDIR
676OBJEXT
677EXEEXT
678ac_ct_CC
679CPPFLAGS
680LDFLAGS
681CFLAGS
682CC
683host_os
684host_vendor
685host_cpu
686host
687build_os
688build_vendor
689build_cpu
690build
691MAINT
692MAINTAINER_MODE_FALSE
693MAINTAINER_MODE_TRUE
694AM_BACKSLASH
695AM_DEFAULT_VERBOSITY
696AM_DEFAULT_V
697AM_V
698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703AWK
704mkdir_p
705MKDIR_P
706INSTALL_STRIP_PROGRAM
707STRIP
708install_sh
709MAKEINFO
710AUTOHEADER
711AUTOMAKE
712AUTOCONF
713ACLOCAL
714VERSION
715PACKAGE
716CYGPATH_W
717am__isrc
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
751PACKAGE_URL
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
758SHELL
759am__quote'
760ac_subst_files=''
761ac_user_opts='
762enable_option_checking
763enable_silent_rules
764enable_maintainer_mode
765enable_dependency_tracking
766enable_shared
767enable_static
768with_pic
769enable_fast_install
770with_aix_soname
771with_gnu_ld
772with_sysroot
773enable_libtool_lock
774enable_profiling
775with_openssl
776'
777      ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785LT_SYS_LIBRARY_PATH
786CPP'
787
788
789# Initialize some variables set by options.
790ac_init_help=
791ac_init_version=false
792ac_unrecognized_opts=
793ac_unrecognized_sep=
794# The variables have the same names as the options, with
795# dashes changed to underlines.
796cache_file=/dev/null
797exec_prefix=NONE
798no_create=
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
807verbose=
808x_includes=NONE
809x_libraries=NONE
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
816# (The list follows the same order as the GNU Coding Standards.)
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
836
837ac_prev=
838ac_dashdash=
839for ac_option
840do
841  # If the previous option needs an argument, assign it.
842  if test -n "$ac_prev"; then
843    eval $ac_prev=\$ac_option
844    ac_prev=
845    continue
846  fi
847
848  case $ac_option in
849  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850  *=)   ac_optarg= ;;
851  *)    ac_optarg=yes ;;
852  esac
853
854  # Accept the important Cygnus configure options, so we can diagnose typos.
855
856  case $ac_dashdash$ac_option in
857  --)
858    ac_dashdash=yes ;;
859
860  -bindir | --bindir | --bindi | --bind | --bin | --bi)
861    ac_prev=bindir ;;
862  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863    bindir=$ac_optarg ;;
864
865  -build | --build | --buil | --bui | --bu)
866    ac_prev=build_alias ;;
867  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868    build_alias=$ac_optarg ;;
869
870  -cache-file | --cache-file | --cache-fil | --cache-fi \
871  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872    ac_prev=cache_file ;;
873  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875    cache_file=$ac_optarg ;;
876
877  --config-cache | -C)
878    cache_file=config.cache ;;
879
880  -datadir | --datadir | --datadi | --datad)
881    ac_prev=datadir ;;
882  -datadir=* | --datadir=* | --datadi=* | --datad=*)
883    datadir=$ac_optarg ;;
884
885  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886  | --dataroo | --dataro | --datar)
887    ac_prev=datarootdir ;;
888  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890    datarootdir=$ac_optarg ;;
891
892  -disable-* | --disable-*)
893    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894    # Reject names that are not valid shell variable names.
895    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896      as_fn_error $? "invalid feature name: $ac_useropt"
897    ac_useropt_orig=$ac_useropt
898    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899    case $ac_user_opts in
900      *"
901"enable_$ac_useropt"
902"*) ;;
903      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904	 ac_unrecognized_sep=', ';;
905    esac
906    eval enable_$ac_useropt=no ;;
907
908  -docdir | --docdir | --docdi | --doc | --do)
909    ac_prev=docdir ;;
910  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911    docdir=$ac_optarg ;;
912
913  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914    ac_prev=dvidir ;;
915  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916    dvidir=$ac_optarg ;;
917
918  -enable-* | --enable-*)
919    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920    # Reject names that are not valid shell variable names.
921    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922      as_fn_error $? "invalid feature name: $ac_useropt"
923    ac_useropt_orig=$ac_useropt
924    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925    case $ac_user_opts in
926      *"
927"enable_$ac_useropt"
928"*) ;;
929      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930	 ac_unrecognized_sep=', ';;
931    esac
932    eval enable_$ac_useropt=\$ac_optarg ;;
933
934  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936  | --exec | --exe | --ex)
937    ac_prev=exec_prefix ;;
938  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940  | --exec=* | --exe=* | --ex=*)
941    exec_prefix=$ac_optarg ;;
942
943  -gas | --gas | --ga | --g)
944    # Obsolete; use --with-gas.
945    with_gas=yes ;;
946
947  -help | --help | --hel | --he | -h)
948    ac_init_help=long ;;
949  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950    ac_init_help=recursive ;;
951  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952    ac_init_help=short ;;
953
954  -host | --host | --hos | --ho)
955    ac_prev=host_alias ;;
956  -host=* | --host=* | --hos=* | --ho=*)
957    host_alias=$ac_optarg ;;
958
959  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960    ac_prev=htmldir ;;
961  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962  | --ht=*)
963    htmldir=$ac_optarg ;;
964
965  -includedir | --includedir | --includedi | --included | --include \
966  | --includ | --inclu | --incl | --inc)
967    ac_prev=includedir ;;
968  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969  | --includ=* | --inclu=* | --incl=* | --inc=*)
970    includedir=$ac_optarg ;;
971
972  -infodir | --infodir | --infodi | --infod | --info | --inf)
973    ac_prev=infodir ;;
974  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975    infodir=$ac_optarg ;;
976
977  -libdir | --libdir | --libdi | --libd)
978    ac_prev=libdir ;;
979  -libdir=* | --libdir=* | --libdi=* | --libd=*)
980    libdir=$ac_optarg ;;
981
982  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983  | --libexe | --libex | --libe)
984    ac_prev=libexecdir ;;
985  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986  | --libexe=* | --libex=* | --libe=*)
987    libexecdir=$ac_optarg ;;
988
989  -localedir | --localedir | --localedi | --localed | --locale)
990    ac_prev=localedir ;;
991  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992    localedir=$ac_optarg ;;
993
994  -localstatedir | --localstatedir | --localstatedi | --localstated \
995  | --localstate | --localstat | --localsta | --localst | --locals)
996    ac_prev=localstatedir ;;
997  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999    localstatedir=$ac_optarg ;;
1000
1001  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002    ac_prev=mandir ;;
1003  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004    mandir=$ac_optarg ;;
1005
1006  -nfp | --nfp | --nf)
1007    # Obsolete; use --without-fp.
1008    with_fp=no ;;
1009
1010  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011  | --no-cr | --no-c | -n)
1012    no_create=yes ;;
1013
1014  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1016    no_recursion=yes ;;
1017
1018  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020  | --oldin | --oldi | --old | --ol | --o)
1021    ac_prev=oldincludedir ;;
1022  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025    oldincludedir=$ac_optarg ;;
1026
1027  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028    ac_prev=prefix ;;
1029  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030    prefix=$ac_optarg ;;
1031
1032  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033  | --program-pre | --program-pr | --program-p)
1034    ac_prev=program_prefix ;;
1035  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037    program_prefix=$ac_optarg ;;
1038
1039  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040  | --program-suf | --program-su | --program-s)
1041    ac_prev=program_suffix ;;
1042  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044    program_suffix=$ac_optarg ;;
1045
1046  -program-transform-name | --program-transform-name \
1047  | --program-transform-nam | --program-transform-na \
1048  | --program-transform-n | --program-transform- \
1049  | --program-transform | --program-transfor \
1050  | --program-transfo | --program-transf \
1051  | --program-trans | --program-tran \
1052  | --progr-tra | --program-tr | --program-t)
1053    ac_prev=program_transform_name ;;
1054  -program-transform-name=* | --program-transform-name=* \
1055  | --program-transform-nam=* | --program-transform-na=* \
1056  | --program-transform-n=* | --program-transform-=* \
1057  | --program-transform=* | --program-transfor=* \
1058  | --program-transfo=* | --program-transf=* \
1059  | --program-trans=* | --program-tran=* \
1060  | --progr-tra=* | --program-tr=* | --program-t=*)
1061    program_transform_name=$ac_optarg ;;
1062
1063  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064    ac_prev=pdfdir ;;
1065  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066    pdfdir=$ac_optarg ;;
1067
1068  -psdir | --psdir | --psdi | --psd | --ps)
1069    ac_prev=psdir ;;
1070  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1071    psdir=$ac_optarg ;;
1072
1073  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074  | -silent | --silent | --silen | --sile | --sil)
1075    silent=yes ;;
1076
1077  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078    ac_prev=sbindir ;;
1079  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080  | --sbi=* | --sb=*)
1081    sbindir=$ac_optarg ;;
1082
1083  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085  | --sharedst | --shareds | --shared | --share | --shar \
1086  | --sha | --sh)
1087    ac_prev=sharedstatedir ;;
1088  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091  | --sha=* | --sh=*)
1092    sharedstatedir=$ac_optarg ;;
1093
1094  -site | --site | --sit)
1095    ac_prev=site ;;
1096  -site=* | --site=* | --sit=*)
1097    site=$ac_optarg ;;
1098
1099  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100    ac_prev=srcdir ;;
1101  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102    srcdir=$ac_optarg ;;
1103
1104  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105  | --syscon | --sysco | --sysc | --sys | --sy)
1106    ac_prev=sysconfdir ;;
1107  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109    sysconfdir=$ac_optarg ;;
1110
1111  -target | --target | --targe | --targ | --tar | --ta | --t)
1112    ac_prev=target_alias ;;
1113  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114    target_alias=$ac_optarg ;;
1115
1116  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1117    verbose=yes ;;
1118
1119  -version | --version | --versio | --versi | --vers | -V)
1120    ac_init_version=: ;;
1121
1122  -with-* | --with-*)
1123    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124    # Reject names that are not valid shell variable names.
1125    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126      as_fn_error $? "invalid package name: $ac_useropt"
1127    ac_useropt_orig=$ac_useropt
1128    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129    case $ac_user_opts in
1130      *"
1131"with_$ac_useropt"
1132"*) ;;
1133      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134	 ac_unrecognized_sep=', ';;
1135    esac
1136    eval with_$ac_useropt=\$ac_optarg ;;
1137
1138  -without-* | --without-*)
1139    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140    # Reject names that are not valid shell variable names.
1141    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142      as_fn_error $? "invalid package name: $ac_useropt"
1143    ac_useropt_orig=$ac_useropt
1144    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145    case $ac_user_opts in
1146      *"
1147"with_$ac_useropt"
1148"*) ;;
1149      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150	 ac_unrecognized_sep=', ';;
1151    esac
1152    eval with_$ac_useropt=no ;;
1153
1154  --x)
1155    # Obsolete; use --with-x.
1156    with_x=yes ;;
1157
1158  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159  | --x-incl | --x-inc | --x-in | --x-i)
1160    ac_prev=x_includes ;;
1161  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163    x_includes=$ac_optarg ;;
1164
1165  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167    ac_prev=x_libraries ;;
1168  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170    x_libraries=$ac_optarg ;;
1171
1172  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173Try \`$0 --help' for more information"
1174    ;;
1175
1176  *=*)
1177    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178    # Reject names that are not valid shell variable names.
1179    case $ac_envvar in #(
1180      '' | [0-9]* | *[!_$as_cr_alnum]* )
1181      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1182    esac
1183    eval $ac_envvar=\$ac_optarg
1184    export $ac_envvar ;;
1185
1186  *)
1187    # FIXME: should be removed in autoconf 3.0.
1188    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1192    ;;
1193
1194  esac
1195done
1196
1197if test -n "$ac_prev"; then
1198  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199  as_fn_error $? "missing argument to $ac_option"
1200fi
1201
1202if test -n "$ac_unrecognized_opts"; then
1203  case $enable_option_checking in
1204    no) ;;
1205    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207  esac
1208fi
1209
1210# Check all directory arguments for consistency.
1211for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212		datadir sysconfdir sharedstatedir localstatedir includedir \
1213		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214		libdir localedir mandir
1215do
1216  eval ac_val=\$$ac_var
1217  # Remove trailing slashes.
1218  case $ac_val in
1219    */ )
1220      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221      eval $ac_var=\$ac_val;;
1222  esac
1223  # Be sure to have absolute directory names.
1224  case $ac_val in
1225    [\\/$]* | ?:[\\/]* )  continue;;
1226    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227  esac
1228  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1229done
1230
1231# There might be people who depend on the old broken behavior: `$host'
1232# used to hold the argument of --host etc.
1233# FIXME: To remove some day.
1234build=$build_alias
1235host=$host_alias
1236target=$target_alias
1237
1238# FIXME: To remove some day.
1239if test "x$host_alias" != x; then
1240  if test "x$build_alias" = x; then
1241    cross_compiling=maybe
1242  elif test "x$build_alias" != "x$host_alias"; then
1243    cross_compiling=yes
1244  fi
1245fi
1246
1247ac_tool_prefix=
1248test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249
1250test "$silent" = yes && exec 6>/dev/null
1251
1252
1253ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254ac_ls_di=`ls -di .` &&
1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256  as_fn_error $? "working directory cannot be determined"
1257test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258  as_fn_error $? "pwd does not report name of working directory"
1259
1260
1261# Find the source files, if location was not specified.
1262if test -z "$srcdir"; then
1263  ac_srcdir_defaulted=yes
1264  # Try the directory containing this script, then the parent directory.
1265  ac_confdir=`$as_dirname -- "$as_myself" ||
1266$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267	 X"$as_myself" : 'X\(//\)[^/]' \| \
1268	 X"$as_myself" : 'X\(//\)$' \| \
1269	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270$as_echo X"$as_myself" |
1271    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272	    s//\1/
1273	    q
1274	  }
1275	  /^X\(\/\/\)[^/].*/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)$/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\).*/{
1284	    s//\1/
1285	    q
1286	  }
1287	  s/.*/./; q'`
1288  srcdir=$ac_confdir
1289  if test ! -r "$srcdir/$ac_unique_file"; then
1290    srcdir=..
1291  fi
1292else
1293  ac_srcdir_defaulted=no
1294fi
1295if test ! -r "$srcdir/$ac_unique_file"; then
1296  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298fi
1299ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300ac_abs_confdir=`(
1301	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302	pwd)`
1303# When building in place, set srcdir=.
1304if test "$ac_abs_confdir" = "$ac_pwd"; then
1305  srcdir=.
1306fi
1307# Remove unnecessary trailing slashes from srcdir.
1308# Double slashes in file names in object file debugging info
1309# mess up M-x gdb in Emacs.
1310case $srcdir in
1311*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312esac
1313for ac_var in $ac_precious_vars; do
1314  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315  eval ac_env_${ac_var}_value=\$${ac_var}
1316  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318done
1319
1320#
1321# Report the --help message.
1322#
1323if test "$ac_init_help" = "long"; then
1324  # Omit some internal or obsolete options to make the list less imposing.
1325  # This message is too long to be a string in the A/UX 3.1 sh.
1326  cat <<_ACEOF
1327\`configure' configures iperf 3.6+ to adapt to many kinds of systems.
1328
1329Usage: $0 [OPTION]... [VAR=VALUE]...
1330
1331To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332VAR=VALUE.  See below for descriptions of some of the useful variables.
1333
1334Defaults for the options are specified in brackets.
1335
1336Configuration:
1337  -h, --help              display this help and exit
1338      --help=short        display options specific to this package
1339      --help=recursive    display the short help of all the included packages
1340  -V, --version           display version information and exit
1341  -q, --quiet, --silent   do not print \`checking ...' messages
1342      --cache-file=FILE   cache test results in FILE [disabled]
1343  -C, --config-cache      alias for \`--cache-file=config.cache'
1344  -n, --no-create         do not create output files
1345      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1346
1347Installation directories:
1348  --prefix=PREFIX         install architecture-independent files in PREFIX
1349                          [$ac_default_prefix]
1350  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1351                          [PREFIX]
1352
1353By default, \`make install' will install all the files in
1354\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1355an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356for instance \`--prefix=\$HOME'.
1357
1358For better control, use the options below.
1359
1360Fine tuning of the installation directories:
1361  --bindir=DIR            user executables [EPREFIX/bin]
1362  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1363  --libexecdir=DIR        program executables [EPREFIX/libexec]
1364  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1365  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1366  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1367  --libdir=DIR            object code libraries [EPREFIX/lib]
1368  --includedir=DIR        C header files [PREFIX/include]
1369  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1370  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1371  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1372  --infodir=DIR           info documentation [DATAROOTDIR/info]
1373  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1374  --mandir=DIR            man documentation [DATAROOTDIR/man]
1375  --docdir=DIR            documentation root [DATAROOTDIR/doc/iperf]
1376  --htmldir=DIR           html documentation [DOCDIR]
1377  --dvidir=DIR            dvi documentation [DOCDIR]
1378  --pdfdir=DIR            pdf documentation [DOCDIR]
1379  --psdir=DIR             ps documentation [DOCDIR]
1380_ACEOF
1381
1382  cat <<\_ACEOF
1383
1384Program names:
1385  --program-prefix=PREFIX            prepend PREFIX to installed program names
1386  --program-suffix=SUFFIX            append SUFFIX to installed program names
1387  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1388
1389System types:
1390  --build=BUILD     configure for building on BUILD [guessed]
1391  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1392_ACEOF
1393fi
1394
1395if test -n "$ac_init_help"; then
1396  case $ac_init_help in
1397     short | recursive ) echo "Configuration of iperf 3.6+:";;
1398   esac
1399  cat <<\_ACEOF
1400
1401Optional Features:
1402  --disable-option-checking  ignore unrecognized --enable/--with options
1403  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405  --enable-silent-rules   less verbose build output (undo: "make V=1")
1406  --disable-silent-rules  verbose build output (undo: "make V=0")
1407  --enable-maintainer-mode
1408                          enable make rules and dependencies not useful (and
1409                          sometimes confusing) to the casual installer
1410  --enable-dependency-tracking
1411                          do not reject slow dependency extractors
1412  --disable-dependency-tracking
1413                          speeds up one-time build
1414  --enable-shared[=PKGS]  build shared libraries [default=yes]
1415  --enable-static[=PKGS]  build static libraries [default=yes]
1416  --enable-fast-install[=PKGS]
1417                          optimize for fast installation [default=yes]
1418  --disable-libtool-lock  avoid locking (might break parallel builds)
1419  --disable-profiling     Disable iperf profiling binary
1420
1421Optional Packages:
1422  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1423  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1424  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1425                          both]
1426  --with-aix-soname=aix|svr4|both
1427                          shared library versioning (aka "SONAME") variant to
1428                          provide on AIX, [default=aix].
1429  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1430  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1431                          compiler's sysroot if not specified).
1432  --with-openssl=DIR      root of the OpenSSL directory
1433
1434Some influential environment variables:
1435  CC          C compiler command
1436  CFLAGS      C compiler flags
1437  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1438              nonstandard directory <lib dir>
1439  LIBS        libraries to pass to the linker, e.g. -l<library>
1440  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441              you have headers in a nonstandard directory <include dir>
1442  LT_SYS_LIBRARY_PATH
1443              User-defined run-time library search path.
1444  CPP         C preprocessor
1445
1446Use these variables to override the choices made by `configure' or to help
1447it to find libraries and programs with nonstandard names/locations.
1448
1449Report bugs to <https://github.com/esnet/iperf>.
1450iperf home page: <https://software.es.net/iperf/>.
1451_ACEOF
1452ac_status=$?
1453fi
1454
1455if test "$ac_init_help" = "recursive"; then
1456  # If there are subdirs, report their specific --help.
1457  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458    test -d "$ac_dir" ||
1459      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460      continue
1461    ac_builddir=.
1462
1463case "$ac_dir" in
1464.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465*)
1466  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467  # A ".." for each directory in $ac_dir_suffix.
1468  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469  case $ac_top_builddir_sub in
1470  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472  esac ;;
1473esac
1474ac_abs_top_builddir=$ac_pwd
1475ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476# for backward compatibility:
1477ac_top_builddir=$ac_top_build_prefix
1478
1479case $srcdir in
1480  .)  # We are building in place.
1481    ac_srcdir=.
1482    ac_top_srcdir=$ac_top_builddir_sub
1483    ac_abs_top_srcdir=$ac_pwd ;;
1484  [\\/]* | ?:[\\/]* )  # Absolute name.
1485    ac_srcdir=$srcdir$ac_dir_suffix;
1486    ac_top_srcdir=$srcdir
1487    ac_abs_top_srcdir=$srcdir ;;
1488  *) # Relative name.
1489    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490    ac_top_srcdir=$ac_top_build_prefix$srcdir
1491    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492esac
1493ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494
1495    cd "$ac_dir" || { ac_status=$?; continue; }
1496    # Check for guested configure.
1497    if test -f "$ac_srcdir/configure.gnu"; then
1498      echo &&
1499      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500    elif test -f "$ac_srcdir/configure"; then
1501      echo &&
1502      $SHELL "$ac_srcdir/configure" --help=recursive
1503    else
1504      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505    fi || ac_status=$?
1506    cd "$ac_pwd" || { ac_status=$?; break; }
1507  done
1508fi
1509
1510test -n "$ac_init_help" && exit $ac_status
1511if $ac_init_version; then
1512  cat <<\_ACEOF
1513iperf configure 3.6+
1514generated by GNU Autoconf 2.69
1515
1516Copyright (C) 2012 Free Software Foundation, Inc.
1517This configure script is free software; the Free Software Foundation
1518gives unlimited permission to copy, distribute and modify it.
1519_ACEOF
1520  exit
1521fi
1522
1523## ------------------------ ##
1524## Autoconf initialization. ##
1525## ------------------------ ##
1526
1527# ac_fn_c_try_compile LINENO
1528# --------------------------
1529# Try to compile conftest.$ac_ext, and return whether this succeeded.
1530ac_fn_c_try_compile ()
1531{
1532  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533  rm -f conftest.$ac_objext
1534  if { { ac_try="$ac_compile"
1535case "(($ac_try" in
1536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537  *) ac_try_echo=$ac_try;;
1538esac
1539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540$as_echo "$ac_try_echo"; } >&5
1541  (eval "$ac_compile") 2>conftest.err
1542  ac_status=$?
1543  if test -s conftest.err; then
1544    grep -v '^ *+' conftest.err >conftest.er1
1545    cat conftest.er1 >&5
1546    mv -f conftest.er1 conftest.err
1547  fi
1548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549  test $ac_status = 0; } && {
1550	 test -z "$ac_c_werror_flag" ||
1551	 test ! -s conftest.err
1552       } && test -s conftest.$ac_objext; then :
1553  ac_retval=0
1554else
1555  $as_echo "$as_me: failed program was:" >&5
1556sed 's/^/| /' conftest.$ac_ext >&5
1557
1558	ac_retval=1
1559fi
1560  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561  as_fn_set_status $ac_retval
1562
1563} # ac_fn_c_try_compile
1564
1565# ac_fn_c_try_link LINENO
1566# -----------------------
1567# Try to link conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_link ()
1569{
1570  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571  rm -f conftest.$ac_objext conftest$ac_exeext
1572  if { { ac_try="$ac_link"
1573case "(($ac_try" in
1574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575  *) ac_try_echo=$ac_try;;
1576esac
1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578$as_echo "$ac_try_echo"; } >&5
1579  (eval "$ac_link") 2>conftest.err
1580  ac_status=$?
1581  if test -s conftest.err; then
1582    grep -v '^ *+' conftest.err >conftest.er1
1583    cat conftest.er1 >&5
1584    mv -f conftest.er1 conftest.err
1585  fi
1586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587  test $ac_status = 0; } && {
1588	 test -z "$ac_c_werror_flag" ||
1589	 test ! -s conftest.err
1590       } && test -s conftest$ac_exeext && {
1591	 test "$cross_compiling" = yes ||
1592	 test -x conftest$ac_exeext
1593       }; then :
1594  ac_retval=0
1595else
1596  $as_echo "$as_me: failed program was:" >&5
1597sed 's/^/| /' conftest.$ac_ext >&5
1598
1599	ac_retval=1
1600fi
1601  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1602  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1603  # interfere with the next link command; also delete a directory that is
1604  # left behind by Apple's compiler.  We do this before executing the actions.
1605  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607  as_fn_set_status $ac_retval
1608
1609} # ac_fn_c_try_link
1610
1611# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1612# -------------------------------------------------------
1613# Tests whether HEADER exists and can be compiled using the include files in
1614# INCLUDES, setting the cache variable VAR accordingly.
1615ac_fn_c_check_header_compile ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619$as_echo_n "checking for $2... " >&6; }
1620if eval \${$3+:} false; then :
1621  $as_echo_n "(cached) " >&6
1622else
1623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624/* end confdefs.h.  */
1625$4
1626#include <$2>
1627_ACEOF
1628if ac_fn_c_try_compile "$LINENO"; then :
1629  eval "$3=yes"
1630else
1631  eval "$3=no"
1632fi
1633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634fi
1635eval ac_res=\$$3
1636	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637$as_echo "$ac_res" >&6; }
1638  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639
1640} # ac_fn_c_check_header_compile
1641
1642# ac_fn_c_try_cpp LINENO
1643# ----------------------
1644# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_c_try_cpp ()
1646{
1647  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648  if { { ac_try="$ac_cpp conftest.$ac_ext"
1649case "(($ac_try" in
1650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651  *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656  ac_status=$?
1657  if test -s conftest.err; then
1658    grep -v '^ *+' conftest.err >conftest.er1
1659    cat conftest.er1 >&5
1660    mv -f conftest.er1 conftest.err
1661  fi
1662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663  test $ac_status = 0; } > conftest.i && {
1664	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665	 test ! -s conftest.err
1666       }; then :
1667  ac_retval=0
1668else
1669  $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
1671
1672    ac_retval=1
1673fi
1674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675  as_fn_set_status $ac_retval
1676
1677} # ac_fn_c_try_cpp
1678
1679# ac_fn_c_try_run LINENO
1680# ----------------------
1681# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682# that executables *can* be run.
1683ac_fn_c_try_run ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  if { { ac_try="$ac_link"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_link") 2>&5
1694  ac_status=$?
1695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697  { { case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_try") 2>&5
1704  ac_status=$?
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; }; }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: program exited with status $ac_status" >&5
1710       $as_echo "$as_me: failed program was:" >&5
1711sed 's/^/| /' conftest.$ac_ext >&5
1712
1713       ac_retval=$ac_status
1714fi
1715  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717  as_fn_set_status $ac_retval
1718
1719} # ac_fn_c_try_run
1720
1721# ac_fn_c_check_func LINENO FUNC VAR
1722# ----------------------------------
1723# Tests whether FUNC exists, setting the cache variable VAR accordingly
1724ac_fn_c_check_func ()
1725{
1726  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728$as_echo_n "checking for $2... " >&6; }
1729if eval \${$3+:} false; then :
1730  $as_echo_n "(cached) " >&6
1731else
1732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h.  */
1734/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1735   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1736#define $2 innocuous_$2
1737
1738/* System header to define __stub macros and hopefully few prototypes,
1739    which can conflict with char $2 (); below.
1740    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1741    <limits.h> exists even on freestanding compilers.  */
1742
1743#ifdef __STDC__
1744# include <limits.h>
1745#else
1746# include <assert.h>
1747#endif
1748
1749#undef $2
1750
1751/* Override any GCC internal prototype to avoid an error.
1752   Use char because int might match the return type of a GCC
1753   builtin and then its argument prototype would still apply.  */
1754#ifdef __cplusplus
1755extern "C"
1756#endif
1757char $2 ();
1758/* The GNU C library defines this for functions which it implements
1759    to always fail with ENOSYS.  Some functions are actually named
1760    something starting with __ and the normal name is an alias.  */
1761#if defined __stub_$2 || defined __stub___$2
1762choke me
1763#endif
1764
1765int
1766main ()
1767{
1768return $2 ();
1769  ;
1770  return 0;
1771}
1772_ACEOF
1773if ac_fn_c_try_link "$LINENO"; then :
1774  eval "$3=yes"
1775else
1776  eval "$3=no"
1777fi
1778rm -f core conftest.err conftest.$ac_objext \
1779    conftest$ac_exeext conftest.$ac_ext
1780fi
1781eval ac_res=\$$3
1782	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
1784  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786} # ac_fn_c_check_func
1787
1788# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789# -------------------------------------------------------
1790# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791# the include files in INCLUDES and setting the cache variable VAR
1792# accordingly.
1793ac_fn_c_check_header_mongrel ()
1794{
1795  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796  if eval \${$3+:} false; then :
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
1801fi
1802eval ac_res=\$$3
1803	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804$as_echo "$ac_res" >&6; }
1805else
1806  # Is the header compilable?
1807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808$as_echo_n "checking $2 usability... " >&6; }
1809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h.  */
1811$4
1812#include <$2>
1813_ACEOF
1814if ac_fn_c_try_compile "$LINENO"; then :
1815  ac_header_compiler=yes
1816else
1817  ac_header_compiler=no
1818fi
1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821$as_echo "$ac_header_compiler" >&6; }
1822
1823# Is the header present?
1824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825$as_echo_n "checking $2 presence... " >&6; }
1826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h.  */
1828#include <$2>
1829_ACEOF
1830if ac_fn_c_try_cpp "$LINENO"; then :
1831  ac_header_preproc=yes
1832else
1833  ac_header_preproc=no
1834fi
1835rm -f conftest.err conftest.i conftest.$ac_ext
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837$as_echo "$ac_header_preproc" >&6; }
1838
1839# So?  What about this header?
1840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1841  yes:no: )
1842    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846    ;;
1847  no:yes:* )
1848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1851$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1852    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1855$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858( $as_echo "## --------------------------------------------- ##
1859## Report this to https://github.com/esnet/iperf ##
1860## --------------------------------------------- ##"
1861     ) | sed "s/^/$as_me: WARNING:     /" >&2
1862    ;;
1863esac
1864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if eval \${$3+:} false; then :
1867  $as_echo_n "(cached) " >&6
1868else
1869  eval "$3=\$ac_header_compiler"
1870fi
1871eval ac_res=\$$3
1872	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874fi
1875  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877} # ac_fn_c_check_header_mongrel
1878cat >config.log <<_ACEOF
1879This file contains any messages produced by compilers while
1880running configure, to aid debugging if configure makes a mistake.
1881
1882It was created by iperf $as_me 3.6+, which was
1883generated by GNU Autoconf 2.69.  Invocation command line was
1884
1885  $ $0 $@
1886
1887_ACEOF
1888exec 5>>config.log
1889{
1890cat <<_ASUNAME
1891## --------- ##
1892## Platform. ##
1893## --------- ##
1894
1895hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900
1901/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1903
1904/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1905/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1906/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1907/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1908/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1909/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1910/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1911
1912_ASUNAME
1913
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917  IFS=$as_save_IFS
1918  test -z "$as_dir" && as_dir=.
1919    $as_echo "PATH: $as_dir"
1920  done
1921IFS=$as_save_IFS
1922
1923} >&5
1924
1925cat >&5 <<_ACEOF
1926
1927
1928## ----------- ##
1929## Core tests. ##
1930## ----------- ##
1931
1932_ACEOF
1933
1934
1935# Keep a trace of the command line.
1936# Strip out --no-create and --no-recursion so they do not pile up.
1937# Strip out --silent because we don't want to record it for future runs.
1938# Also quote any args containing shell meta-characters.
1939# Make two passes to allow for proper duplicate-argument suppression.
1940ac_configure_args=
1941ac_configure_args0=
1942ac_configure_args1=
1943ac_must_keep_next=false
1944for ac_pass in 1 2
1945do
1946  for ac_arg
1947  do
1948    case $ac_arg in
1949    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951    | -silent | --silent | --silen | --sile | --sil)
1952      continue ;;
1953    *\'*)
1954      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955    esac
1956    case $ac_pass in
1957    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1958    2)
1959      as_fn_append ac_configure_args1 " '$ac_arg'"
1960      if test $ac_must_keep_next = true; then
1961	ac_must_keep_next=false # Got value, back to normal.
1962      else
1963	case $ac_arg in
1964	  *=* | --config-cache | -C | -disable-* | --disable-* \
1965	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967	  | -with-* | --with-* | -without-* | --without-* | --x)
1968	    case "$ac_configure_args0 " in
1969	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970	    esac
1971	    ;;
1972	  -* ) ac_must_keep_next=true ;;
1973	esac
1974      fi
1975      as_fn_append ac_configure_args " '$ac_arg'"
1976      ;;
1977    esac
1978  done
1979done
1980{ ac_configure_args0=; unset ac_configure_args0;}
1981{ ac_configure_args1=; unset ac_configure_args1;}
1982
1983# When interrupted or exit'd, cleanup temporary files, and complete
1984# config.log.  We remove comments because anyway the quotes in there
1985# would cause problems or look ugly.
1986# WARNING: Use '\'' to represent an apostrophe within the trap.
1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1988trap 'exit_status=$?
1989  # Save into config.log some information that might help in debugging.
1990  {
1991    echo
1992
1993    $as_echo "## ---------------- ##
1994## Cache variables. ##
1995## ---------------- ##"
1996    echo
1997    # The following way of writing the cache mishandles newlines in values,
1998(
1999  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2000    eval ac_val=\$$ac_var
2001    case $ac_val in #(
2002    *${as_nl}*)
2003      case $ac_var in #(
2004      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2005$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006      esac
2007      case $ac_var in #(
2008      _ | IFS | as_nl) ;; #(
2009      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2010      *) { eval $ac_var=; unset $ac_var;} ;;
2011      esac ;;
2012    esac
2013  done
2014  (set) 2>&1 |
2015    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016    *${as_nl}ac_space=\ *)
2017      sed -n \
2018	"s/'\''/'\''\\\\'\'''\''/g;
2019	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020      ;; #(
2021    *)
2022      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2023      ;;
2024    esac |
2025    sort
2026)
2027    echo
2028
2029    $as_echo "## ----------------- ##
2030## Output variables. ##
2031## ----------------- ##"
2032    echo
2033    for ac_var in $ac_subst_vars
2034    do
2035      eval ac_val=\$$ac_var
2036      case $ac_val in
2037      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038      esac
2039      $as_echo "$ac_var='\''$ac_val'\''"
2040    done | sort
2041    echo
2042
2043    if test -n "$ac_subst_files"; then
2044      $as_echo "## ------------------- ##
2045## File substitutions. ##
2046## ------------------- ##"
2047      echo
2048      for ac_var in $ac_subst_files
2049      do
2050	eval ac_val=\$$ac_var
2051	case $ac_val in
2052	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053	esac
2054	$as_echo "$ac_var='\''$ac_val'\''"
2055      done | sort
2056      echo
2057    fi
2058
2059    if test -s confdefs.h; then
2060      $as_echo "## ----------- ##
2061## confdefs.h. ##
2062## ----------- ##"
2063      echo
2064      cat confdefs.h
2065      echo
2066    fi
2067    test "$ac_signal" != 0 &&
2068      $as_echo "$as_me: caught signal $ac_signal"
2069    $as_echo "$as_me: exit $exit_status"
2070  } >&5
2071  rm -f core *.core core.conftest.* &&
2072    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073    exit $exit_status
2074' 0
2075for ac_signal in 1 2 13 15; do
2076  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2077done
2078ac_signal=0
2079
2080# confdefs.h avoids OS command line length limits that DEFS can exceed.
2081rm -f -r conftest* confdefs.h
2082
2083$as_echo "/* confdefs.h */" > confdefs.h
2084
2085# Predefined preprocessor variables.
2086
2087cat >>confdefs.h <<_ACEOF
2088#define PACKAGE_NAME "$PACKAGE_NAME"
2089_ACEOF
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2093_ACEOF
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_VERSION "$PACKAGE_VERSION"
2097_ACEOF
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_STRING "$PACKAGE_STRING"
2101_ACEOF
2102
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2105_ACEOF
2106
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_URL "$PACKAGE_URL"
2109_ACEOF
2110
2111
2112# Let the site file select an alternate cache file if it wants to.
2113# Prefer an explicitly selected file to automatically selected ones.
2114ac_site_file1=NONE
2115ac_site_file2=NONE
2116if test -n "$CONFIG_SITE"; then
2117  # We do not want a PATH search for config.site.
2118  case $CONFIG_SITE in #((
2119    -*)  ac_site_file1=./$CONFIG_SITE;;
2120    */*) ac_site_file1=$CONFIG_SITE;;
2121    *)   ac_site_file1=./$CONFIG_SITE;;
2122  esac
2123elif test "x$prefix" != xNONE; then
2124  ac_site_file1=$prefix/share/config.site
2125  ac_site_file2=$prefix/etc/config.site
2126else
2127  ac_site_file1=$ac_default_prefix/share/config.site
2128  ac_site_file2=$ac_default_prefix/etc/config.site
2129fi
2130for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2131do
2132  test "x$ac_site_file" = xNONE && continue
2133  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2134    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2135$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2136    sed 's/^/| /' "$ac_site_file" >&5
2137    . "$ac_site_file" \
2138      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140as_fn_error $? "failed to load site script $ac_site_file
2141See \`config.log' for more details" "$LINENO" 5; }
2142  fi
2143done
2144
2145if test -r "$cache_file"; then
2146  # Some versions of bash will fail to source /dev/null (special files
2147  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2148  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2149    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150$as_echo "$as_me: loading cache $cache_file" >&6;}
2151    case $cache_file in
2152      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153      *)                      . "./$cache_file";;
2154    esac
2155  fi
2156else
2157  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158$as_echo "$as_me: creating cache $cache_file" >&6;}
2159  >$cache_file
2160fi
2161
2162# Check that the precious variables saved in the cache have kept the same
2163# value.
2164ac_cache_corrupted=false
2165for ac_var in $ac_precious_vars; do
2166  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167  eval ac_new_set=\$ac_env_${ac_var}_set
2168  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169  eval ac_new_val=\$ac_env_${ac_var}_value
2170  case $ac_old_set,$ac_new_set in
2171    set,)
2172      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174      ac_cache_corrupted=: ;;
2175    ,set)
2176      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178      ac_cache_corrupted=: ;;
2179    ,);;
2180    *)
2181      if test "x$ac_old_val" != "x$ac_new_val"; then
2182	# differences in whitespace do not lead to failure.
2183	ac_old_val_w=`echo x $ac_old_val`
2184	ac_new_val_w=`echo x $ac_new_val`
2185	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188	  ac_cache_corrupted=:
2189	else
2190	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192	  eval $ac_var=\$ac_old_val
2193	fi
2194	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2195$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2196	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2197$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2198      fi;;
2199  esac
2200  # Pass precious variables to config.status.
2201  if test "$ac_new_set" = set; then
2202    case $ac_new_val in
2203    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204    *) ac_arg=$ac_var=$ac_new_val ;;
2205    esac
2206    case " $ac_configure_args " in
2207      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2208      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209    esac
2210  fi
2211done
2212if $ac_cache_corrupted; then
2213  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2218fi
2219## -------------------- ##
2220## Main body of script. ##
2221## -------------------- ##
2222
2223ac_ext=c
2224ac_cpp='$CPP $CPPFLAGS'
2225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
2229
2230# ===========================================================================
2231#     https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
2232# ===========================================================================
2233#
2234# SYNOPSIS
2235#
2236#   AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2237#
2238# DESCRIPTION
2239#
2240#   Look for OpenSSL in a number of default spots, or in a user-selected
2241#   spot (via --with-openssl).  Sets
2242#
2243#     OPENSSL_INCLUDES to the include directives required
2244#     OPENSSL_LIBS to the -l directives required
2245#     OPENSSL_LDFLAGS to the -L or -R flags required
2246#
2247#   and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2248#
2249#   This macro sets OPENSSL_INCLUDES such that source files should use the
2250#   openssl/ directory in include directives:
2251#
2252#     #include <openssl/hmac.h>
2253#
2254# LICENSE
2255#
2256#   Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2257#   Copyright (c) 2009,2010 Dustin J. Mitchell <dustin@zmanda.com>
2258#
2259#   Copying and distribution of this file, with or without modification, are
2260#   permitted in any medium without royalty provided the copyright notice
2261#   and this notice are preserved. This file is offered as-is, without any
2262#   warranty.
2263
2264#serial 10
2265
2266# This is what autoupdate's m4 run will expand.  It fires
2267# the warning (with _au_warn_XXX), outputs it into the
2268# updated configure.ac (with AC_DIAGNOSE), and then outputs
2269# the replacement expansion.
2270
2271
2272# This is an auxiliary macro that is also run when
2273# autoupdate runs m4.  It simply calls m4_warning, but
2274# we need a wrapper so that each warning is emitted only
2275# once.  We break the quoting in m4_warning's argument in
2276# order to expand this macro's arguments, not AU_DEFUN's.
2277
2278
2279# Finally, this is the expansion that is picked up by
2280# autoconf.  It tells the user to run autoupdate, and
2281# then outputs the replacement expansion.  We do not care
2282# about autoupdate's warning because that contains
2283# information on what to do *after* running autoupdate.
2284
2285
2286
2287ac_ext=c
2288ac_cpp='$CPP $CPPFLAGS'
2289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
2293
2294# Specify where the auxiliary files created by configure should go. The config
2295# directory is picked so that they don't clutter up more useful directories.
2296ac_aux_dir=
2297for ac_dir in config "$srcdir"/config; do
2298  if test -f "$ac_dir/install-sh"; then
2299    ac_aux_dir=$ac_dir
2300    ac_install_sh="$ac_aux_dir/install-sh -c"
2301    break
2302  elif test -f "$ac_dir/install.sh"; then
2303    ac_aux_dir=$ac_dir
2304    ac_install_sh="$ac_aux_dir/install.sh -c"
2305    break
2306  elif test -f "$ac_dir/shtool"; then
2307    ac_aux_dir=$ac_dir
2308    ac_install_sh="$ac_aux_dir/shtool install -c"
2309    break
2310  fi
2311done
2312if test -z "$ac_aux_dir"; then
2313  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2314fi
2315
2316# These three variables are undocumented and unsupported,
2317# and are intended to be withdrawn in a future Autoconf release.
2318# They can cause serious problems if a builder's source tree is in a directory
2319# whose full name contains unusual characters.
2320ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2321ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2322ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2323
2324
2325
2326
2327# Initialize the automake system
2328am__api_version='1.16'
2329
2330# Find a good install program.  We prefer a C program (faster),
2331# so one script is as good as another.  But avoid the broken or
2332# incompatible versions:
2333# SysV /etc/install, /usr/sbin/install
2334# SunOS /usr/etc/install
2335# IRIX /sbin/install
2336# AIX /bin/install
2337# AmigaOS /C/install, which installs bootblocks on floppy discs
2338# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2339# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2340# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2341# OS/2's system install, which has a completely different semantic
2342# ./install, which can be erroneously created by make from ./install.sh.
2343# Reject install programs that cannot install multiple files.
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2345$as_echo_n "checking for a BSD-compatible install... " >&6; }
2346if test -z "$INSTALL"; then
2347if ${ac_cv_path_install+:} false; then :
2348  $as_echo_n "(cached) " >&6
2349else
2350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351for as_dir in $PATH
2352do
2353  IFS=$as_save_IFS
2354  test -z "$as_dir" && as_dir=.
2355    # Account for people who put trailing slashes in PATH elements.
2356case $as_dir/ in #((
2357  ./ | .// | /[cC]/* | \
2358  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2359  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2360  /usr/ucb/* ) ;;
2361  *)
2362    # OSF1 and SCO ODT 3.0 have their own names for install.
2363    # Don't use installbsd from OSF since it installs stuff as root
2364    # by default.
2365    for ac_prog in ginstall scoinst install; do
2366      for ac_exec_ext in '' $ac_executable_extensions; do
2367	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2368	  if test $ac_prog = install &&
2369	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2370	    # AIX install.  It has an incompatible calling convention.
2371	    :
2372	  elif test $ac_prog = install &&
2373	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2374	    # program-specific install script used by HP pwplus--don't use.
2375	    :
2376	  else
2377	    rm -rf conftest.one conftest.two conftest.dir
2378	    echo one > conftest.one
2379	    echo two > conftest.two
2380	    mkdir conftest.dir
2381	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2382	      test -s conftest.one && test -s conftest.two &&
2383	      test -s conftest.dir/conftest.one &&
2384	      test -s conftest.dir/conftest.two
2385	    then
2386	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2387	      break 3
2388	    fi
2389	  fi
2390	fi
2391      done
2392    done
2393    ;;
2394esac
2395
2396  done
2397IFS=$as_save_IFS
2398
2399rm -rf conftest.one conftest.two conftest.dir
2400
2401fi
2402  if test "${ac_cv_path_install+set}" = set; then
2403    INSTALL=$ac_cv_path_install
2404  else
2405    # As a last resort, use the slow shell script.  Don't cache a
2406    # value for INSTALL within a source directory, because that will
2407    # break other packages using the cache if that directory is
2408    # removed, or if the value is a relative name.
2409    INSTALL=$ac_install_sh
2410  fi
2411fi
2412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2413$as_echo "$INSTALL" >&6; }
2414
2415# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2416# It thinks the first close brace ends the variable substitution.
2417test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2418
2419test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2420
2421test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2422
2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2424$as_echo_n "checking whether build environment is sane... " >&6; }
2425# Reject unsafe characters in $srcdir or the absolute working directory
2426# name.  Accept space and tab only in the latter.
2427am_lf='
2428'
2429case `pwd` in
2430  *[\\\"\#\$\&\'\`$am_lf]*)
2431    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2432esac
2433case $srcdir in
2434  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2435    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2436esac
2437
2438# Do 'set' in a subshell so we don't clobber the current shell's
2439# arguments.  Must try -L first in case configure is actually a
2440# symlink; some systems play weird games with the mod time of symlinks
2441# (eg FreeBSD returns the mod time of the symlink's containing
2442# directory).
2443if (
2444   am_has_slept=no
2445   for am_try in 1 2; do
2446     echo "timestamp, slept: $am_has_slept" > conftest.file
2447     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2448     if test "$*" = "X"; then
2449	# -L didn't work.
2450	set X `ls -t "$srcdir/configure" conftest.file`
2451     fi
2452     if test "$*" != "X $srcdir/configure conftest.file" \
2453	&& test "$*" != "X conftest.file $srcdir/configure"; then
2454
2455	# If neither matched, then we have a broken ls.  This can happen
2456	# if, for instance, CONFIG_SHELL is bash and it inherits a
2457	# broken ls alias from the environment.  This has actually
2458	# happened.  Such a system could not be considered "sane".
2459	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2460  alias in your environment" "$LINENO" 5
2461     fi
2462     if test "$2" = conftest.file || test $am_try -eq 2; then
2463       break
2464     fi
2465     # Just in case.
2466     sleep 1
2467     am_has_slept=yes
2468   done
2469   test "$2" = conftest.file
2470   )
2471then
2472   # Ok.
2473   :
2474else
2475   as_fn_error $? "newly created file is older than distributed files!
2476Check your system clock" "$LINENO" 5
2477fi
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2479$as_echo "yes" >&6; }
2480# If we didn't sleep, we still need to ensure time stamps of config.status and
2481# generated files are strictly newer.
2482am_sleep_pid=
2483if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2484  ( sleep 1 ) &
2485  am_sleep_pid=$!
2486fi
2487
2488rm -f conftest.file
2489
2490test "$program_prefix" != NONE &&
2491  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2492# Use a double $ so make ignores it.
2493test "$program_suffix" != NONE &&
2494  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2495# Double any \ or $.
2496# By default was `s,x,x', remove it if useless.
2497ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2498program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2499
2500# Expand $ac_aux_dir to an absolute path.
2501am_aux_dir=`cd "$ac_aux_dir" && pwd`
2502
2503if test x"${MISSING+set}" != xset; then
2504  case $am_aux_dir in
2505  *\ * | *\	*)
2506    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2507  *)
2508    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2509  esac
2510fi
2511# Use eval to expand $SHELL
2512if eval "$MISSING --is-lightweight"; then
2513  am_missing_run="$MISSING "
2514else
2515  am_missing_run=
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2517$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2518fi
2519
2520if test x"${install_sh+set}" != xset; then
2521  case $am_aux_dir in
2522  *\ * | *\	*)
2523    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2524  *)
2525    install_sh="\${SHELL} $am_aux_dir/install-sh"
2526  esac
2527fi
2528
2529# Installed binaries are usually stripped using 'strip' when the user
2530# run "make install-strip".  However 'strip' might not be the right
2531# tool to use in cross-compilation environments, therefore Automake
2532# will honor the 'STRIP' environment variable to overrule this program.
2533if test "$cross_compiling" != no; then
2534  if test -n "$ac_tool_prefix"; then
2535  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2536set dummy ${ac_tool_prefix}strip; ac_word=$2
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2538$as_echo_n "checking for $ac_word... " >&6; }
2539if ${ac_cv_prog_STRIP+:} false; then :
2540  $as_echo_n "(cached) " >&6
2541else
2542  if test -n "$STRIP"; then
2543  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2544else
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548  IFS=$as_save_IFS
2549  test -z "$as_dir" && as_dir=.
2550    for ac_exec_ext in '' $ac_executable_extensions; do
2551  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2552    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2554    break 2
2555  fi
2556done
2557  done
2558IFS=$as_save_IFS
2559
2560fi
2561fi
2562STRIP=$ac_cv_prog_STRIP
2563if test -n "$STRIP"; then
2564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2565$as_echo "$STRIP" >&6; }
2566else
2567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568$as_echo "no" >&6; }
2569fi
2570
2571
2572fi
2573if test -z "$ac_cv_prog_STRIP"; then
2574  ac_ct_STRIP=$STRIP
2575  # Extract the first word of "strip", so it can be a program name with args.
2576set dummy strip; ac_word=$2
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578$as_echo_n "checking for $ac_word... " >&6; }
2579if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2580  $as_echo_n "(cached) " >&6
2581else
2582  if test -n "$ac_ct_STRIP"; then
2583  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2584else
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588  IFS=$as_save_IFS
2589  test -z "$as_dir" && as_dir=.
2590    for ac_exec_ext in '' $ac_executable_extensions; do
2591  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592    ac_cv_prog_ac_ct_STRIP="strip"
2593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594    break 2
2595  fi
2596done
2597  done
2598IFS=$as_save_IFS
2599
2600fi
2601fi
2602ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2603if test -n "$ac_ct_STRIP"; then
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2605$as_echo "$ac_ct_STRIP" >&6; }
2606else
2607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608$as_echo "no" >&6; }
2609fi
2610
2611  if test "x$ac_ct_STRIP" = x; then
2612    STRIP=":"
2613  else
2614    case $cross_compiling:$ac_tool_warned in
2615yes:)
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2618ac_tool_warned=yes ;;
2619esac
2620    STRIP=$ac_ct_STRIP
2621  fi
2622else
2623  STRIP="$ac_cv_prog_STRIP"
2624fi
2625
2626fi
2627INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2628
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2630$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2631if test -z "$MKDIR_P"; then
2632  if ${ac_cv_path_mkdir+:} false; then :
2633  $as_echo_n "(cached) " >&6
2634else
2635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2637do
2638  IFS=$as_save_IFS
2639  test -z "$as_dir" && as_dir=.
2640    for ac_prog in mkdir gmkdir; do
2641	 for ac_exec_ext in '' $ac_executable_extensions; do
2642	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2643	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2644	     'mkdir (GNU coreutils) '* | \
2645	     'mkdir (coreutils) '* | \
2646	     'mkdir (fileutils) '4.1*)
2647	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2648	       break 3;;
2649	   esac
2650	 done
2651       done
2652  done
2653IFS=$as_save_IFS
2654
2655fi
2656
2657  test -d ./--version && rmdir ./--version
2658  if test "${ac_cv_path_mkdir+set}" = set; then
2659    MKDIR_P="$ac_cv_path_mkdir -p"
2660  else
2661    # As a last resort, use the slow shell script.  Don't cache a
2662    # value for MKDIR_P within a source directory, because that will
2663    # break other packages using the cache if that directory is
2664    # removed, or if the value is a relative name.
2665    MKDIR_P="$ac_install_sh -d"
2666  fi
2667fi
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2669$as_echo "$MKDIR_P" >&6; }
2670
2671for ac_prog in gawk mawk nawk awk
2672do
2673  # Extract the first word of "$ac_prog", so it can be a program name with args.
2674set dummy $ac_prog; ac_word=$2
2675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676$as_echo_n "checking for $ac_word... " >&6; }
2677if ${ac_cv_prog_AWK+:} false; then :
2678  $as_echo_n "(cached) " >&6
2679else
2680  if test -n "$AWK"; then
2681  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686  IFS=$as_save_IFS
2687  test -z "$as_dir" && as_dir=.
2688    for ac_exec_ext in '' $ac_executable_extensions; do
2689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690    ac_cv_prog_AWK="$ac_prog"
2691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692    break 2
2693  fi
2694done
2695  done
2696IFS=$as_save_IFS
2697
2698fi
2699fi
2700AWK=$ac_cv_prog_AWK
2701if test -n "$AWK"; then
2702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2703$as_echo "$AWK" >&6; }
2704else
2705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2706$as_echo "no" >&6; }
2707fi
2708
2709
2710  test -n "$AWK" && break
2711done
2712
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2714$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2715set x ${MAKE-make}
2716ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2717if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2718  $as_echo_n "(cached) " >&6
2719else
2720  cat >conftest.make <<\_ACEOF
2721SHELL = /bin/sh
2722all:
2723	@echo '@@@%%%=$(MAKE)=@@@%%%'
2724_ACEOF
2725# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2726case `${MAKE-make} -f conftest.make 2>/dev/null` in
2727  *@@@%%%=?*=@@@%%%*)
2728    eval ac_cv_prog_make_${ac_make}_set=yes;;
2729  *)
2730    eval ac_cv_prog_make_${ac_make}_set=no;;
2731esac
2732rm -f conftest.make
2733fi
2734if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2736$as_echo "yes" >&6; }
2737  SET_MAKE=
2738else
2739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
2741  SET_MAKE="MAKE=${MAKE-make}"
2742fi
2743
2744rm -rf .tst 2>/dev/null
2745mkdir .tst 2>/dev/null
2746if test -d .tst; then
2747  am__leading_dot=.
2748else
2749  am__leading_dot=_
2750fi
2751rmdir .tst 2>/dev/null
2752
2753# Check whether --enable-silent-rules was given.
2754if test "${enable_silent_rules+set}" = set; then :
2755  enableval=$enable_silent_rules;
2756fi
2757
2758case $enable_silent_rules in # (((
2759  yes) AM_DEFAULT_VERBOSITY=0;;
2760   no) AM_DEFAULT_VERBOSITY=1;;
2761    *) AM_DEFAULT_VERBOSITY=1;;
2762esac
2763am_make=${MAKE-make}
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2765$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2766if ${am_cv_make_support_nested_variables+:} false; then :
2767  $as_echo_n "(cached) " >&6
2768else
2769  if $as_echo 'TRUE=$(BAR$(V))
2770BAR0=false
2771BAR1=true
2772V=1
2773am__doit:
2774	@$(TRUE)
2775.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2776  am_cv_make_support_nested_variables=yes
2777else
2778  am_cv_make_support_nested_variables=no
2779fi
2780fi
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2782$as_echo "$am_cv_make_support_nested_variables" >&6; }
2783if test $am_cv_make_support_nested_variables = yes; then
2784    AM_V='$(V)'
2785  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2786else
2787  AM_V=$AM_DEFAULT_VERBOSITY
2788  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2789fi
2790AM_BACKSLASH='\'
2791
2792if test "`cd $srcdir && pwd`" != "`pwd`"; then
2793  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2794  # is not polluted with repeated "-I."
2795  am__isrc=' -I$(srcdir)'
2796  # test to see if srcdir already configured
2797  if test -f $srcdir/config.status; then
2798    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2799  fi
2800fi
2801
2802# test whether we have cygpath
2803if test -z "$CYGPATH_W"; then
2804  if (cygpath --version) >/dev/null 2>/dev/null; then
2805    CYGPATH_W='cygpath -w'
2806  else
2807    CYGPATH_W=echo
2808  fi
2809fi
2810
2811
2812# Define the identity of the package.
2813 PACKAGE='iperf'
2814 VERSION='3.6+'
2815
2816
2817cat >>confdefs.h <<_ACEOF
2818#define PACKAGE "$PACKAGE"
2819_ACEOF
2820
2821
2822cat >>confdefs.h <<_ACEOF
2823#define VERSION "$VERSION"
2824_ACEOF
2825
2826# Some tools Automake needs.
2827
2828ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2829
2830
2831AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2832
2833
2834AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2835
2836
2837AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2838
2839
2840MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2841
2842# For better backward compatibility.  To be removed once Automake 1.9.x
2843# dies out for good.  For more background, see:
2844# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2845# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2846mkdir_p='$(MKDIR_P)'
2847
2848# We need awk for the "check" target (and possibly the TAP driver).  The
2849# system "awk" is bad on some platforms.
2850# Always define AMTAR for backward compatibility.  Yes, it's still used
2851# in the wild :-(  We should find a proper way to deprecate it ...
2852AMTAR='$${TAR-tar}'
2853
2854
2855# We'll loop over all known methods to create a tar archive until one works.
2856_am_tools='gnutar  pax cpio none'
2857
2858am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2859
2860
2861
2862
2863
2864
2865# POSIX will say in a future version that running "rm -f" with no argument
2866# is OK; and we want to be able to make that assumption in our Makefile
2867# recipes.  So use an aggressive probe to check that the usage we want is
2868# actually supported "in the wild" to an acceptable degree.
2869# See automake bug#10828.
2870# To make any issue more visible, cause the running configure to be aborted
2871# by default if the 'rm' program in use doesn't match our expectations; the
2872# user can still override this though.
2873if rm -f && rm -fr && rm -rf; then : OK; else
2874  cat >&2 <<'END'
2875Oops!
2876
2877Your 'rm' program seems unable to run without file operands specified
2878on the command line, even when the '-f' option is present.  This is contrary
2879to the behaviour of most rm programs out there, and not conforming with
2880the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2881
2882Please tell bug-automake@gnu.org about your system, including the value
2883of your $PATH and any error possibly output before this message.  This
2884can help us improve future automake versions.
2885
2886END
2887  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2888    echo 'Configuration will proceed anyway, since you have set the' >&2
2889    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2890    echo >&2
2891  else
2892    cat >&2 <<'END'
2893Aborting the configuration process, to ensure you take notice of the issue.
2894
2895You can download and install GNU coreutils to get an 'rm' implementation
2896that behaves properly: <https://www.gnu.org/software/coreutils/>.
2897
2898If you want to complete the configuration process using your problematic
2899'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2900to "yes", and re-run configure.
2901
2902END
2903    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2904  fi
2905fi
2906
2907
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2909$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2910    # Check whether --enable-maintainer-mode was given.
2911if test "${enable_maintainer_mode+set}" = set; then :
2912  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2913else
2914  USE_MAINTAINER_MODE=no
2915fi
2916
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2918$as_echo "$USE_MAINTAINER_MODE" >&6; }
2919   if test $USE_MAINTAINER_MODE = yes; then
2920  MAINTAINER_MODE_TRUE=
2921  MAINTAINER_MODE_FALSE='#'
2922else
2923  MAINTAINER_MODE_TRUE='#'
2924  MAINTAINER_MODE_FALSE=
2925fi
2926
2927  MAINT=$MAINTAINER_MODE_TRUE
2928
2929
2930ac_config_headers="$ac_config_headers src/iperf_config.h"
2931
2932
2933# Make sure we can run config.sub.
2934$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2935  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2936
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2938$as_echo_n "checking build system type... " >&6; }
2939if ${ac_cv_build+:} false; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  ac_build_alias=$build_alias
2943test "x$ac_build_alias" = x &&
2944  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2945test "x$ac_build_alias" = x &&
2946  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2947ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2948  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2949
2950fi
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2952$as_echo "$ac_cv_build" >&6; }
2953case $ac_cv_build in
2954*-*-*) ;;
2955*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2956esac
2957build=$ac_cv_build
2958ac_save_IFS=$IFS; IFS='-'
2959set x $ac_cv_build
2960shift
2961build_cpu=$1
2962build_vendor=$2
2963shift; shift
2964# Remember, the first character of IFS is used to create $*,
2965# except with old shells:
2966build_os=$*
2967IFS=$ac_save_IFS
2968case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2969
2970
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2972$as_echo_n "checking host system type... " >&6; }
2973if ${ac_cv_host+:} false; then :
2974  $as_echo_n "(cached) " >&6
2975else
2976  if test "x$host_alias" = x; then
2977  ac_cv_host=$ac_cv_build
2978else
2979  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2980    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2981fi
2982
2983fi
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2985$as_echo "$ac_cv_host" >&6; }
2986case $ac_cv_host in
2987*-*-*) ;;
2988*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2989esac
2990host=$ac_cv_host
2991ac_save_IFS=$IFS; IFS='-'
2992set x $ac_cv_host
2993shift
2994host_cpu=$1
2995host_vendor=$2
2996shift; shift
2997# Remember, the first character of IFS is used to create $*,
2998# except with old shells:
2999host_os=$*
3000IFS=$ac_save_IFS
3001case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3002
3003
3004
3005# Checks for tools: c compiler, ranlib (used for creating static libraries),
3006# symlinks and libtool
3007ac_ext=c
3008ac_cpp='$CPP $CPPFLAGS'
3009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012if test -n "$ac_tool_prefix"; then
3013  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3014set dummy ${ac_tool_prefix}gcc; ac_word=$2
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016$as_echo_n "checking for $ac_word... " >&6; }
3017if ${ac_cv_prog_CC+:} false; then :
3018  $as_echo_n "(cached) " >&6
3019else
3020  if test -n "$CC"; then
3021  ac_cv_prog_CC="$CC" # Let the user override the test.
3022else
3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024for as_dir in $PATH
3025do
3026  IFS=$as_save_IFS
3027  test -z "$as_dir" && as_dir=.
3028    for ac_exec_ext in '' $ac_executable_extensions; do
3029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032    break 2
3033  fi
3034done
3035  done
3036IFS=$as_save_IFS
3037
3038fi
3039fi
3040CC=$ac_cv_prog_CC
3041if test -n "$CC"; then
3042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043$as_echo "$CC" >&6; }
3044else
3045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046$as_echo "no" >&6; }
3047fi
3048
3049
3050fi
3051if test -z "$ac_cv_prog_CC"; then
3052  ac_ct_CC=$CC
3053  # Extract the first word of "gcc", so it can be a program name with args.
3054set dummy gcc; ac_word=$2
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056$as_echo_n "checking for $ac_word... " >&6; }
3057if ${ac_cv_prog_ac_ct_CC+:} false; then :
3058  $as_echo_n "(cached) " >&6
3059else
3060  if test -n "$ac_ct_CC"; then
3061  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3062else
3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066  IFS=$as_save_IFS
3067  test -z "$as_dir" && as_dir=.
3068    for ac_exec_ext in '' $ac_executable_extensions; do
3069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070    ac_cv_prog_ac_ct_CC="gcc"
3071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072    break 2
3073  fi
3074done
3075  done
3076IFS=$as_save_IFS
3077
3078fi
3079fi
3080ac_ct_CC=$ac_cv_prog_ac_ct_CC
3081if test -n "$ac_ct_CC"; then
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3083$as_echo "$ac_ct_CC" >&6; }
3084else
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086$as_echo "no" >&6; }
3087fi
3088
3089  if test "x$ac_ct_CC" = x; then
3090    CC=""
3091  else
3092    case $cross_compiling:$ac_tool_warned in
3093yes:)
3094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3096ac_tool_warned=yes ;;
3097esac
3098    CC=$ac_ct_CC
3099  fi
3100else
3101  CC="$ac_cv_prog_CC"
3102fi
3103
3104if test -z "$CC"; then
3105          if test -n "$ac_tool_prefix"; then
3106    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3107set dummy ${ac_tool_prefix}cc; ac_word=$2
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109$as_echo_n "checking for $ac_word... " >&6; }
3110if ${ac_cv_prog_CC+:} false; then :
3111  $as_echo_n "(cached) " >&6
3112else
3113  if test -n "$CC"; then
3114  ac_cv_prog_CC="$CC" # Let the user override the test.
3115else
3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117for as_dir in $PATH
3118do
3119  IFS=$as_save_IFS
3120  test -z "$as_dir" && as_dir=.
3121    for ac_exec_ext in '' $ac_executable_extensions; do
3122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123    ac_cv_prog_CC="${ac_tool_prefix}cc"
3124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125    break 2
3126  fi
3127done
3128  done
3129IFS=$as_save_IFS
3130
3131fi
3132fi
3133CC=$ac_cv_prog_CC
3134if test -n "$CC"; then
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136$as_echo "$CC" >&6; }
3137else
3138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139$as_echo "no" >&6; }
3140fi
3141
3142
3143  fi
3144fi
3145if test -z "$CC"; then
3146  # Extract the first word of "cc", so it can be a program name with args.
3147set dummy cc; ac_word=$2
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149$as_echo_n "checking for $ac_word... " >&6; }
3150if ${ac_cv_prog_CC+:} false; then :
3151  $as_echo_n "(cached) " >&6
3152else
3153  if test -n "$CC"; then
3154  ac_cv_prog_CC="$CC" # Let the user override the test.
3155else
3156  ac_prog_rejected=no
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162    for ac_exec_ext in '' $ac_executable_extensions; do
3163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3165       ac_prog_rejected=yes
3166       continue
3167     fi
3168    ac_cv_prog_CC="cc"
3169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170    break 2
3171  fi
3172done
3173  done
3174IFS=$as_save_IFS
3175
3176if test $ac_prog_rejected = yes; then
3177  # We found a bogon in the path, so make sure we never use it.
3178  set dummy $ac_cv_prog_CC
3179  shift
3180  if test $# != 0; then
3181    # We chose a different compiler from the bogus one.
3182    # However, it has the same basename, so the bogon will be chosen
3183    # first if we set CC to just the basename; use the full file name.
3184    shift
3185    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3186  fi
3187fi
3188fi
3189fi
3190CC=$ac_cv_prog_CC
3191if test -n "$CC"; then
3192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193$as_echo "$CC" >&6; }
3194else
3195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196$as_echo "no" >&6; }
3197fi
3198
3199
3200fi
3201if test -z "$CC"; then
3202  if test -n "$ac_tool_prefix"; then
3203  for ac_prog in cl.exe
3204  do
3205    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3206set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208$as_echo_n "checking for $ac_word... " >&6; }
3209if ${ac_cv_prog_CC+:} false; then :
3210  $as_echo_n "(cached) " >&6
3211else
3212  if test -n "$CC"; then
3213  ac_cv_prog_CC="$CC" # Let the user override the test.
3214else
3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216for as_dir in $PATH
3217do
3218  IFS=$as_save_IFS
3219  test -z "$as_dir" && as_dir=.
3220    for ac_exec_ext in '' $ac_executable_extensions; do
3221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3222    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224    break 2
3225  fi
3226done
3227  done
3228IFS=$as_save_IFS
3229
3230fi
3231fi
3232CC=$ac_cv_prog_CC
3233if test -n "$CC"; then
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235$as_echo "$CC" >&6; }
3236else
3237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238$as_echo "no" >&6; }
3239fi
3240
3241
3242    test -n "$CC" && break
3243  done
3244fi
3245if test -z "$CC"; then
3246  ac_ct_CC=$CC
3247  for ac_prog in cl.exe
3248do
3249  # Extract the first word of "$ac_prog", so it can be a program name with args.
3250set dummy $ac_prog; ac_word=$2
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3252$as_echo_n "checking for $ac_word... " >&6; }
3253if ${ac_cv_prog_ac_ct_CC+:} false; then :
3254  $as_echo_n "(cached) " >&6
3255else
3256  if test -n "$ac_ct_CC"; then
3257  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3258else
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262  IFS=$as_save_IFS
3263  test -z "$as_dir" && as_dir=.
3264    for ac_exec_ext in '' $ac_executable_extensions; do
3265  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266    ac_cv_prog_ac_ct_CC="$ac_prog"
3267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3268    break 2
3269  fi
3270done
3271  done
3272IFS=$as_save_IFS
3273
3274fi
3275fi
3276ac_ct_CC=$ac_cv_prog_ac_ct_CC
3277if test -n "$ac_ct_CC"; then
3278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3279$as_echo "$ac_ct_CC" >&6; }
3280else
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283fi
3284
3285
3286  test -n "$ac_ct_CC" && break
3287done
3288
3289  if test "x$ac_ct_CC" = x; then
3290    CC=""
3291  else
3292    case $cross_compiling:$ac_tool_warned in
3293yes:)
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3296ac_tool_warned=yes ;;
3297esac
3298    CC=$ac_ct_CC
3299  fi
3300fi
3301
3302fi
3303
3304
3305test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307as_fn_error $? "no acceptable C compiler found in \$PATH
3308See \`config.log' for more details" "$LINENO" 5; }
3309
3310# Provide some information about the compiler.
3311$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3312set X $ac_compile
3313ac_compiler=$2
3314for ac_option in --version -v -V -qversion; do
3315  { { ac_try="$ac_compiler $ac_option >&5"
3316case "(($ac_try" in
3317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318  *) ac_try_echo=$ac_try;;
3319esac
3320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
3322  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3323  ac_status=$?
3324  if test -s conftest.err; then
3325    sed '10a\
3326... rest of stderr output deleted ...
3327         10q' conftest.err >conftest.er1
3328    cat conftest.er1 >&5
3329  fi
3330  rm -f conftest.er1 conftest.err
3331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332  test $ac_status = 0; }
3333done
3334
3335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336/* end confdefs.h.  */
3337
3338int
3339main ()
3340{
3341
3342  ;
3343  return 0;
3344}
3345_ACEOF
3346ac_clean_files_save=$ac_clean_files
3347ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3348# Try to create an executable without -o first, disregard a.out.
3349# It will help us diagnose broken compilers, and finding out an intuition
3350# of exeext.
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3352$as_echo_n "checking whether the C compiler works... " >&6; }
3353ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3354
3355# The possible output files:
3356ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3357
3358ac_rmfiles=
3359for ac_file in $ac_files
3360do
3361  case $ac_file in
3362    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3363    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3364  esac
3365done
3366rm -f $ac_rmfiles
3367
3368if { { ac_try="$ac_link_default"
3369case "(($ac_try" in
3370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371  *) ac_try_echo=$ac_try;;
3372esac
3373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374$as_echo "$ac_try_echo"; } >&5
3375  (eval "$ac_link_default") 2>&5
3376  ac_status=$?
3377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378  test $ac_status = 0; }; then :
3379  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3380# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3381# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3382# so that the user can short-circuit this test for compilers unknown to
3383# Autoconf.
3384for ac_file in $ac_files ''
3385do
3386  test -f "$ac_file" || continue
3387  case $ac_file in
3388    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3389	;;
3390    [ab].out )
3391	# We found the default executable, but exeext='' is most
3392	# certainly right.
3393	break;;
3394    *.* )
3395	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3396	then :; else
3397	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3398	fi
3399	# We set ac_cv_exeext here because the later test for it is not
3400	# safe: cross compilers may not add the suffix if given an `-o'
3401	# argument, so we may need to know it at that point already.
3402	# Even if this section looks crufty: it has the advantage of
3403	# actually working.
3404	break;;
3405    * )
3406	break;;
3407  esac
3408done
3409test "$ac_cv_exeext" = no && ac_cv_exeext=
3410
3411else
3412  ac_file=''
3413fi
3414if test -z "$ac_file"; then :
3415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416$as_echo "no" >&6; }
3417$as_echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422as_fn_error 77 "C compiler cannot create executables
3423See \`config.log' for more details" "$LINENO" 5; }
3424else
3425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3426$as_echo "yes" >&6; }
3427fi
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3429$as_echo_n "checking for C compiler default output file name... " >&6; }
3430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3431$as_echo "$ac_file" >&6; }
3432ac_exeext=$ac_cv_exeext
3433
3434rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3435ac_clean_files=$ac_clean_files_save
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3437$as_echo_n "checking for suffix of executables... " >&6; }
3438if { { ac_try="$ac_link"
3439case "(($ac_try" in
3440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441  *) ac_try_echo=$ac_try;;
3442esac
3443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444$as_echo "$ac_try_echo"; } >&5
3445  (eval "$ac_link") 2>&5
3446  ac_status=$?
3447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448  test $ac_status = 0; }; then :
3449  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3450# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3451# work properly (i.e., refer to `conftest.exe'), while it won't with
3452# `rm'.
3453for ac_file in conftest.exe conftest conftest.*; do
3454  test -f "$ac_file" || continue
3455  case $ac_file in
3456    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3457    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3458	  break;;
3459    * ) break;;
3460  esac
3461done
3462else
3463  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3466See \`config.log' for more details" "$LINENO" 5; }
3467fi
3468rm -f conftest conftest$ac_cv_exeext
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3470$as_echo "$ac_cv_exeext" >&6; }
3471
3472rm -f conftest.$ac_ext
3473EXEEXT=$ac_cv_exeext
3474ac_exeext=$EXEEXT
3475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476/* end confdefs.h.  */
3477#include <stdio.h>
3478int
3479main ()
3480{
3481FILE *f = fopen ("conftest.out", "w");
3482 return ferror (f) || fclose (f) != 0;
3483
3484  ;
3485  return 0;
3486}
3487_ACEOF
3488ac_clean_files="$ac_clean_files conftest.out"
3489# Check that the compiler produces executables we can run.  If not, either
3490# the compiler is broken, or we cross compile.
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3492$as_echo_n "checking whether we are cross compiling... " >&6; }
3493if test "$cross_compiling" != yes; then
3494  { { ac_try="$ac_link"
3495case "(($ac_try" in
3496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497  *) ac_try_echo=$ac_try;;
3498esac
3499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500$as_echo "$ac_try_echo"; } >&5
3501  (eval "$ac_link") 2>&5
3502  ac_status=$?
3503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504  test $ac_status = 0; }
3505  if { ac_try='./conftest$ac_cv_exeext'
3506  { { case "(($ac_try" in
3507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508  *) ac_try_echo=$ac_try;;
3509esac
3510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511$as_echo "$ac_try_echo"; } >&5
3512  (eval "$ac_try") 2>&5
3513  ac_status=$?
3514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515  test $ac_status = 0; }; }; then
3516    cross_compiling=no
3517  else
3518    if test "$cross_compiling" = maybe; then
3519	cross_compiling=yes
3520    else
3521	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523as_fn_error $? "cannot run C compiled programs.
3524If you meant to cross compile, use \`--host'.
3525See \`config.log' for more details" "$LINENO" 5; }
3526    fi
3527  fi
3528fi
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3530$as_echo "$cross_compiling" >&6; }
3531
3532rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3533ac_clean_files=$ac_clean_files_save
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3535$as_echo_n "checking for suffix of object files... " >&6; }
3536if ${ac_cv_objext+:} false; then :
3537  $as_echo_n "(cached) " >&6
3538else
3539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540/* end confdefs.h.  */
3541
3542int
3543main ()
3544{
3545
3546  ;
3547  return 0;
3548}
3549_ACEOF
3550rm -f conftest.o conftest.obj
3551if { { ac_try="$ac_compile"
3552case "(($ac_try" in
3553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554  *) ac_try_echo=$ac_try;;
3555esac
3556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557$as_echo "$ac_try_echo"; } >&5
3558  (eval "$ac_compile") 2>&5
3559  ac_status=$?
3560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561  test $ac_status = 0; }; then :
3562  for ac_file in conftest.o conftest.obj conftest.*; do
3563  test -f "$ac_file" || continue;
3564  case $ac_file in
3565    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3566    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3567       break;;
3568  esac
3569done
3570else
3571  $as_echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576as_fn_error $? "cannot compute suffix of object files: cannot compile
3577See \`config.log' for more details" "$LINENO" 5; }
3578fi
3579rm -f conftest.$ac_cv_objext conftest.$ac_ext
3580fi
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3582$as_echo "$ac_cv_objext" >&6; }
3583OBJEXT=$ac_cv_objext
3584ac_objext=$OBJEXT
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3586$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3587if ${ac_cv_c_compiler_gnu+:} false; then :
3588  $as_echo_n "(cached) " >&6
3589else
3590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h.  */
3592
3593int
3594main ()
3595{
3596#ifndef __GNUC__
3597       choke me
3598#endif
3599
3600  ;
3601  return 0;
3602}
3603_ACEOF
3604if ac_fn_c_try_compile "$LINENO"; then :
3605  ac_compiler_gnu=yes
3606else
3607  ac_compiler_gnu=no
3608fi
3609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3610ac_cv_c_compiler_gnu=$ac_compiler_gnu
3611
3612fi
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3614$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3615if test $ac_compiler_gnu = yes; then
3616  GCC=yes
3617else
3618  GCC=
3619fi
3620ac_test_CFLAGS=${CFLAGS+set}
3621ac_save_CFLAGS=$CFLAGS
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3623$as_echo_n "checking whether $CC accepts -g... " >&6; }
3624if ${ac_cv_prog_cc_g+:} false; then :
3625  $as_echo_n "(cached) " >&6
3626else
3627  ac_save_c_werror_flag=$ac_c_werror_flag
3628   ac_c_werror_flag=yes
3629   ac_cv_prog_cc_g=no
3630   CFLAGS="-g"
3631   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633
3634int
3635main ()
3636{
3637
3638  ;
3639  return 0;
3640}
3641_ACEOF
3642if ac_fn_c_try_compile "$LINENO"; then :
3643  ac_cv_prog_cc_g=yes
3644else
3645  CFLAGS=""
3646      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647/* end confdefs.h.  */
3648
3649int
3650main ()
3651{
3652
3653  ;
3654  return 0;
3655}
3656_ACEOF
3657if ac_fn_c_try_compile "$LINENO"; then :
3658
3659else
3660  ac_c_werror_flag=$ac_save_c_werror_flag
3661	 CFLAGS="-g"
3662	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663/* end confdefs.h.  */
3664
3665int
3666main ()
3667{
3668
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673if ac_fn_c_try_compile "$LINENO"; then :
3674  ac_cv_prog_cc_g=yes
3675fi
3676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677fi
3678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679fi
3680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681   ac_c_werror_flag=$ac_save_c_werror_flag
3682fi
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3684$as_echo "$ac_cv_prog_cc_g" >&6; }
3685if test "$ac_test_CFLAGS" = set; then
3686  CFLAGS=$ac_save_CFLAGS
3687elif test $ac_cv_prog_cc_g = yes; then
3688  if test "$GCC" = yes; then
3689    CFLAGS="-g -O2"
3690  else
3691    CFLAGS="-g"
3692  fi
3693else
3694  if test "$GCC" = yes; then
3695    CFLAGS="-O2"
3696  else
3697    CFLAGS=
3698  fi
3699fi
3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3701$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3702if ${ac_cv_prog_cc_c89+:} false; then :
3703  $as_echo_n "(cached) " >&6
3704else
3705  ac_cv_prog_cc_c89=no
3706ac_save_CC=$CC
3707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h.  */
3709#include <stdarg.h>
3710#include <stdio.h>
3711struct stat;
3712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3713struct buf { int x; };
3714FILE * (*rcsopen) (struct buf *, struct stat *, int);
3715static char *e (p, i)
3716     char **p;
3717     int i;
3718{
3719  return p[i];
3720}
3721static char *f (char * (*g) (char **, int), char **p, ...)
3722{
3723  char *s;
3724  va_list v;
3725  va_start (v,p);
3726  s = g (p, va_arg (v,int));
3727  va_end (v);
3728  return s;
3729}
3730
3731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3732   function prototypes and stuff, but not '\xHH' hex character constants.
3733   These don't provoke an error unfortunately, instead are silently treated
3734   as 'x'.  The following induces an error, until -std is added to get
3735   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3736   array size at least.  It's necessary to write '\x00'==0 to get something
3737   that's true only with -std.  */
3738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3739
3740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3741   inside strings and character constants.  */
3742#define FOO(x) 'x'
3743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3744
3745int test (int i, double x);
3746struct s1 {int (*f) (int a);};
3747struct s2 {int (*f) (double a);};
3748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3749int argc;
3750char **argv;
3751int
3752main ()
3753{
3754return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3755  ;
3756  return 0;
3757}
3758_ACEOF
3759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3760	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3761do
3762  CC="$ac_save_CC $ac_arg"
3763  if ac_fn_c_try_compile "$LINENO"; then :
3764  ac_cv_prog_cc_c89=$ac_arg
3765fi
3766rm -f core conftest.err conftest.$ac_objext
3767  test "x$ac_cv_prog_cc_c89" != "xno" && break
3768done
3769rm -f conftest.$ac_ext
3770CC=$ac_save_CC
3771
3772fi
3773# AC_CACHE_VAL
3774case "x$ac_cv_prog_cc_c89" in
3775  x)
3776    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3777$as_echo "none needed" >&6; } ;;
3778  xno)
3779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3780$as_echo "unsupported" >&6; } ;;
3781  *)
3782    CC="$CC $ac_cv_prog_cc_c89"
3783    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3785esac
3786if test "x$ac_cv_prog_cc_c89" != xno; then :
3787
3788fi
3789
3790ac_ext=c
3791ac_cpp='$CPP $CPPFLAGS'
3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795
3796ac_ext=c
3797ac_cpp='$CPP $CPPFLAGS'
3798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3802$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3803if ${am_cv_prog_cc_c_o+:} false; then :
3804  $as_echo_n "(cached) " >&6
3805else
3806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808
3809int
3810main ()
3811{
3812
3813  ;
3814  return 0;
3815}
3816_ACEOF
3817  # Make sure it works both with $CC and with simple cc.
3818  # Following AC_PROG_CC_C_O, we do the test twice because some
3819  # compilers refuse to overwrite an existing .o file with -o,
3820  # though they will create one.
3821  am_cv_prog_cc_c_o=yes
3822  for am_i in 1 2; do
3823    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3824   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3825   ac_status=$?
3826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827   (exit $ac_status); } \
3828         && test -f conftest2.$ac_objext; then
3829      : OK
3830    else
3831      am_cv_prog_cc_c_o=no
3832      break
3833    fi
3834  done
3835  rm -f core conftest*
3836  unset am_i
3837fi
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3839$as_echo "$am_cv_prog_cc_c_o" >&6; }
3840if test "$am_cv_prog_cc_c_o" != yes; then
3841   # Losing compiler, so override with the script.
3842   # FIXME: It is wrong to rewrite CC.
3843   # But if we don't then we get into trouble of one sort or another.
3844   # A longer-term fix would be to have automake use am__CC in this case,
3845   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3846   CC="$am_aux_dir/compile $CC"
3847fi
3848ac_ext=c
3849ac_cpp='$CPP $CPPFLAGS'
3850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853
3854DEPDIR="${am__leading_dot}deps"
3855
3856ac_config_commands="$ac_config_commands depfiles"
3857
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3859$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3860cat > confinc.mk << 'END'
3861am__doit:
3862	@echo this is the am__doit target >confinc.out
3863.PHONY: am__doit
3864END
3865am__include="#"
3866am__quote=
3867# BSD make does it like this.
3868echo '.include "confinc.mk" # ignored' > confmf.BSD
3869# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3870echo 'include confinc.mk # ignored' > confmf.GNU
3871_am_result=no
3872for s in GNU BSD; do
3873  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3874   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }
3878  case $?:`cat confinc.out 2>/dev/null` in #(
3879  '0:this is the am__doit target') :
3880    case $s in #(
3881  BSD) :
3882    am__include='.include' am__quote='"' ;; #(
3883  *) :
3884    am__include='include' am__quote='' ;;
3885esac ;; #(
3886  *) :
3887     ;;
3888esac
3889  if test "$am__include" != "#"; then
3890    _am_result="yes ($s style)"
3891    break
3892  fi
3893done
3894rm -f confinc.* confmf.*
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3896$as_echo "${_am_result}" >&6; }
3897
3898# Check whether --enable-dependency-tracking was given.
3899if test "${enable_dependency_tracking+set}" = set; then :
3900  enableval=$enable_dependency_tracking;
3901fi
3902
3903if test "x$enable_dependency_tracking" != xno; then
3904  am_depcomp="$ac_aux_dir/depcomp"
3905  AMDEPBACKSLASH='\'
3906  am__nodep='_no'
3907fi
3908 if test "x$enable_dependency_tracking" != xno; then
3909  AMDEP_TRUE=
3910  AMDEP_FALSE='#'
3911else
3912  AMDEP_TRUE='#'
3913  AMDEP_FALSE=
3914fi
3915
3916
3917
3918depcc="$CC"   am_compiler_list=
3919
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3921$as_echo_n "checking dependency style of $depcc... " >&6; }
3922if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3923  $as_echo_n "(cached) " >&6
3924else
3925  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3926  # We make a subdir and do the tests there.  Otherwise we can end up
3927  # making bogus files that we don't know about and never remove.  For
3928  # instance it was reported that on HP-UX the gcc test will end up
3929  # making a dummy file named 'D' -- because '-MD' means "put the output
3930  # in D".
3931  rm -rf conftest.dir
3932  mkdir conftest.dir
3933  # Copy depcomp to subdir because otherwise we won't find it if we're
3934  # using a relative directory.
3935  cp "$am_depcomp" conftest.dir
3936  cd conftest.dir
3937  # We will build objects and dependencies in a subdirectory because
3938  # it helps to detect inapplicable dependency modes.  For instance
3939  # both Tru64's cc and ICC support -MD to output dependencies as a
3940  # side effect of compilation, but ICC will put the dependencies in
3941  # the current directory while Tru64 will put them in the object
3942  # directory.
3943  mkdir sub
3944
3945  am_cv_CC_dependencies_compiler_type=none
3946  if test "$am_compiler_list" = ""; then
3947     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3948  fi
3949  am__universal=false
3950  case " $depcc " in #(
3951     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3952     esac
3953
3954  for depmode in $am_compiler_list; do
3955    # Setup a source with many dependencies, because some compilers
3956    # like to wrap large dependency lists on column 80 (with \), and
3957    # we should not choose a depcomp mode which is confused by this.
3958    #
3959    # We need to recreate these files for each test, as the compiler may
3960    # overwrite some of them when testing with obscure command lines.
3961    # This happens at least with the AIX C compiler.
3962    : > sub/conftest.c
3963    for i in 1 2 3 4 5 6; do
3964      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3965      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3966      # Solaris 10 /bin/sh.
3967      echo '/* dummy */' > sub/conftst$i.h
3968    done
3969    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3970
3971    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3972    # mode.  It turns out that the SunPro C++ compiler does not properly
3973    # handle '-M -o', and we need to detect this.  Also, some Intel
3974    # versions had trouble with output in subdirs.
3975    am__obj=sub/conftest.${OBJEXT-o}
3976    am__minus_obj="-o $am__obj"
3977    case $depmode in
3978    gcc)
3979      # This depmode causes a compiler race in universal mode.
3980      test "$am__universal" = false || continue
3981      ;;
3982    nosideeffect)
3983      # After this tag, mechanisms are not by side-effect, so they'll
3984      # only be used when explicitly requested.
3985      if test "x$enable_dependency_tracking" = xyes; then
3986	continue
3987      else
3988	break
3989      fi
3990      ;;
3991    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3992      # This compiler won't grok '-c -o', but also, the minuso test has
3993      # not run yet.  These depmodes are late enough in the game, and
3994      # so weak that their functioning should not be impacted.
3995      am__obj=conftest.${OBJEXT-o}
3996      am__minus_obj=
3997      ;;
3998    none) break ;;
3999    esac
4000    if depmode=$depmode \
4001       source=sub/conftest.c object=$am__obj \
4002       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4003       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4004         >/dev/null 2>conftest.err &&
4005       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4006       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4007       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4008       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4009      # icc doesn't choke on unknown options, it will just issue warnings
4010      # or remarks (even with -Werror).  So we grep stderr for any message
4011      # that says an option was ignored or not supported.
4012      # When given -MP, icc 7.0 and 7.1 complain thusly:
4013      #   icc: Command line warning: ignoring option '-M'; no argument required
4014      # The diagnosis changed in icc 8.0:
4015      #   icc: Command line remark: option '-MP' not supported
4016      if (grep 'ignoring option' conftest.err ||
4017          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4018        am_cv_CC_dependencies_compiler_type=$depmode
4019        break
4020      fi
4021    fi
4022  done
4023
4024  cd ..
4025  rm -rf conftest.dir
4026else
4027  am_cv_CC_dependencies_compiler_type=none
4028fi
4029
4030fi
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4032$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4033CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4034
4035 if
4036  test "x$enable_dependency_tracking" != xno \
4037  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4038  am__fastdepCC_TRUE=
4039  am__fastdepCC_FALSE='#'
4040else
4041  am__fastdepCC_TRUE='#'
4042  am__fastdepCC_FALSE=
4043fi
4044
4045
4046if test -n "$ac_tool_prefix"; then
4047  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4048set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050$as_echo_n "checking for $ac_word... " >&6; }
4051if ${ac_cv_prog_RANLIB+:} false; then :
4052  $as_echo_n "(cached) " >&6
4053else
4054  if test -n "$RANLIB"; then
4055  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4056else
4057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058for as_dir in $PATH
4059do
4060  IFS=$as_save_IFS
4061  test -z "$as_dir" && as_dir=.
4062    for ac_exec_ext in '' $ac_executable_extensions; do
4063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4064    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4066    break 2
4067  fi
4068done
4069  done
4070IFS=$as_save_IFS
4071
4072fi
4073fi
4074RANLIB=$ac_cv_prog_RANLIB
4075if test -n "$RANLIB"; then
4076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4077$as_echo "$RANLIB" >&6; }
4078else
4079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080$as_echo "no" >&6; }
4081fi
4082
4083
4084fi
4085if test -z "$ac_cv_prog_RANLIB"; then
4086  ac_ct_RANLIB=$RANLIB
4087  # Extract the first word of "ranlib", so it can be a program name with args.
4088set dummy ranlib; ac_word=$2
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090$as_echo_n "checking for $ac_word... " >&6; }
4091if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4092  $as_echo_n "(cached) " >&6
4093else
4094  if test -n "$ac_ct_RANLIB"; then
4095  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4096else
4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098for as_dir in $PATH
4099do
4100  IFS=$as_save_IFS
4101  test -z "$as_dir" && as_dir=.
4102    for ac_exec_ext in '' $ac_executable_extensions; do
4103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104    ac_cv_prog_ac_ct_RANLIB="ranlib"
4105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106    break 2
4107  fi
4108done
4109  done
4110IFS=$as_save_IFS
4111
4112fi
4113fi
4114ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4115if test -n "$ac_ct_RANLIB"; then
4116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4117$as_echo "$ac_ct_RANLIB" >&6; }
4118else
4119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120$as_echo "no" >&6; }
4121fi
4122
4123  if test "x$ac_ct_RANLIB" = x; then
4124    RANLIB=":"
4125  else
4126    case $cross_compiling:$ac_tool_warned in
4127yes:)
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4130ac_tool_warned=yes ;;
4131esac
4132    RANLIB=$ac_ct_RANLIB
4133  fi
4134else
4135  RANLIB="$ac_cv_prog_RANLIB"
4136fi
4137
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4139$as_echo_n "checking whether ln -s works... " >&6; }
4140LN_S=$as_ln_s
4141if test "$LN_S" = "ln -s"; then
4142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4143$as_echo "yes" >&6; }
4144else
4145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4146$as_echo "no, using $LN_S" >&6; }
4147fi
4148
4149case `pwd` in
4150  *\ * | *\	*)
4151    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4152$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4153esac
4154
4155
4156
4157macro_version='2.4.6'
4158macro_revision='2.4.6'
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172ltmain=$ac_aux_dir/ltmain.sh
4173
4174# Backslashify metacharacters that are still active within
4175# double-quoted strings.
4176sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4177
4178# Same as above, but do not quote variable references.
4179double_quote_subst='s/\(["`\\]\)/\\\1/g'
4180
4181# Sed substitution to delay expansion of an escaped shell variable in a
4182# double_quote_subst'ed string.
4183delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4184
4185# Sed substitution to delay expansion of an escaped single quote.
4186delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4187
4188# Sed substitution to avoid accidental globbing in evaled expressions
4189no_glob_subst='s/\*/\\\*/g'
4190
4191ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4192ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4193ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4194
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4196$as_echo_n "checking how to print strings... " >&6; }
4197# Test print first, because it will be a builtin if present.
4198if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4199   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4200  ECHO='print -r --'
4201elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4202  ECHO='printf %s\n'
4203else
4204  # Use this function as a fallback that always works.
4205  func_fallback_echo ()
4206  {
4207    eval 'cat <<_LTECHO_EOF
4208$1
4209_LTECHO_EOF'
4210  }
4211  ECHO='func_fallback_echo'
4212fi
4213
4214# func_echo_all arg...
4215# Invoke $ECHO with all args, space-separated.
4216func_echo_all ()
4217{
4218    $ECHO ""
4219}
4220
4221case $ECHO in
4222  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4223$as_echo "printf" >&6; } ;;
4224  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4225$as_echo "print -r" >&6; } ;;
4226  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4227$as_echo "cat" >&6; } ;;
4228esac
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4244$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4245if ${ac_cv_path_SED+:} false; then :
4246  $as_echo_n "(cached) " >&6
4247else
4248            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4249     for ac_i in 1 2 3 4 5 6 7; do
4250       ac_script="$ac_script$as_nl$ac_script"
4251     done
4252     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4253     { ac_script=; unset ac_script;}
4254     if test -z "$SED"; then
4255  ac_path_SED_found=false
4256  # Loop through the user's path and test for each of PROGNAME-LIST
4257  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258for as_dir in $PATH
4259do
4260  IFS=$as_save_IFS
4261  test -z "$as_dir" && as_dir=.
4262    for ac_prog in sed gsed; do
4263    for ac_exec_ext in '' $ac_executable_extensions; do
4264      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4265      as_fn_executable_p "$ac_path_SED" || continue
4266# Check for GNU ac_path_SED and select it if it is found.
4267  # Check for GNU $ac_path_SED
4268case `"$ac_path_SED" --version 2>&1` in
4269*GNU*)
4270  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4271*)
4272  ac_count=0
4273  $as_echo_n 0123456789 >"conftest.in"
4274  while :
4275  do
4276    cat "conftest.in" "conftest.in" >"conftest.tmp"
4277    mv "conftest.tmp" "conftest.in"
4278    cp "conftest.in" "conftest.nl"
4279    $as_echo '' >> "conftest.nl"
4280    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4281    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4282    as_fn_arith $ac_count + 1 && ac_count=$as_val
4283    if test $ac_count -gt ${ac_path_SED_max-0}; then
4284      # Best one so far, save it but keep looking for a better one
4285      ac_cv_path_SED="$ac_path_SED"
4286      ac_path_SED_max=$ac_count
4287    fi
4288    # 10*(2^10) chars as input seems more than enough
4289    test $ac_count -gt 10 && break
4290  done
4291  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4292esac
4293
4294      $ac_path_SED_found && break 3
4295    done
4296  done
4297  done
4298IFS=$as_save_IFS
4299  if test -z "$ac_cv_path_SED"; then
4300    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4301  fi
4302else
4303  ac_cv_path_SED=$SED
4304fi
4305
4306fi
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4308$as_echo "$ac_cv_path_SED" >&6; }
4309 SED="$ac_cv_path_SED"
4310  rm -f conftest.sed
4311
4312test -z "$SED" && SED=sed
4313Xsed="$SED -e 1s/^X//"
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4326$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4327if ${ac_cv_path_GREP+:} false; then :
4328  $as_echo_n "(cached) " >&6
4329else
4330  if test -z "$GREP"; then
4331  ac_path_GREP_found=false
4332  # Loop through the user's path and test for each of PROGNAME-LIST
4333  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4335do
4336  IFS=$as_save_IFS
4337  test -z "$as_dir" && as_dir=.
4338    for ac_prog in grep ggrep; do
4339    for ac_exec_ext in '' $ac_executable_extensions; do
4340      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4341      as_fn_executable_p "$ac_path_GREP" || continue
4342# Check for GNU ac_path_GREP and select it if it is found.
4343  # Check for GNU $ac_path_GREP
4344case `"$ac_path_GREP" --version 2>&1` in
4345*GNU*)
4346  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4347*)
4348  ac_count=0
4349  $as_echo_n 0123456789 >"conftest.in"
4350  while :
4351  do
4352    cat "conftest.in" "conftest.in" >"conftest.tmp"
4353    mv "conftest.tmp" "conftest.in"
4354    cp "conftest.in" "conftest.nl"
4355    $as_echo 'GREP' >> "conftest.nl"
4356    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4357    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4358    as_fn_arith $ac_count + 1 && ac_count=$as_val
4359    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4360      # Best one so far, save it but keep looking for a better one
4361      ac_cv_path_GREP="$ac_path_GREP"
4362      ac_path_GREP_max=$ac_count
4363    fi
4364    # 10*(2^10) chars as input seems more than enough
4365    test $ac_count -gt 10 && break
4366  done
4367  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4368esac
4369
4370      $ac_path_GREP_found && break 3
4371    done
4372  done
4373  done
4374IFS=$as_save_IFS
4375  if test -z "$ac_cv_path_GREP"; then
4376    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4377  fi
4378else
4379  ac_cv_path_GREP=$GREP
4380fi
4381
4382fi
4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4384$as_echo "$ac_cv_path_GREP" >&6; }
4385 GREP="$ac_cv_path_GREP"
4386
4387
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4389$as_echo_n "checking for egrep... " >&6; }
4390if ${ac_cv_path_EGREP+:} false; then :
4391  $as_echo_n "(cached) " >&6
4392else
4393  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4394   then ac_cv_path_EGREP="$GREP -E"
4395   else
4396     if test -z "$EGREP"; then
4397  ac_path_EGREP_found=false
4398  # Loop through the user's path and test for each of PROGNAME-LIST
4399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4401do
4402  IFS=$as_save_IFS
4403  test -z "$as_dir" && as_dir=.
4404    for ac_prog in egrep; do
4405    for ac_exec_ext in '' $ac_executable_extensions; do
4406      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4407      as_fn_executable_p "$ac_path_EGREP" || continue
4408# Check for GNU ac_path_EGREP and select it if it is found.
4409  # Check for GNU $ac_path_EGREP
4410case `"$ac_path_EGREP" --version 2>&1` in
4411*GNU*)
4412  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4413*)
4414  ac_count=0
4415  $as_echo_n 0123456789 >"conftest.in"
4416  while :
4417  do
4418    cat "conftest.in" "conftest.in" >"conftest.tmp"
4419    mv "conftest.tmp" "conftest.in"
4420    cp "conftest.in" "conftest.nl"
4421    $as_echo 'EGREP' >> "conftest.nl"
4422    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4423    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4424    as_fn_arith $ac_count + 1 && ac_count=$as_val
4425    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4426      # Best one so far, save it but keep looking for a better one
4427      ac_cv_path_EGREP="$ac_path_EGREP"
4428      ac_path_EGREP_max=$ac_count
4429    fi
4430    # 10*(2^10) chars as input seems more than enough
4431    test $ac_count -gt 10 && break
4432  done
4433  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4434esac
4435
4436      $ac_path_EGREP_found && break 3
4437    done
4438  done
4439  done
4440IFS=$as_save_IFS
4441  if test -z "$ac_cv_path_EGREP"; then
4442    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4443  fi
4444else
4445  ac_cv_path_EGREP=$EGREP
4446fi
4447
4448   fi
4449fi
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4451$as_echo "$ac_cv_path_EGREP" >&6; }
4452 EGREP="$ac_cv_path_EGREP"
4453
4454
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4456$as_echo_n "checking for fgrep... " >&6; }
4457if ${ac_cv_path_FGREP+:} false; then :
4458  $as_echo_n "(cached) " >&6
4459else
4460  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4461   then ac_cv_path_FGREP="$GREP -F"
4462   else
4463     if test -z "$FGREP"; then
4464  ac_path_FGREP_found=false
4465  # Loop through the user's path and test for each of PROGNAME-LIST
4466  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4468do
4469  IFS=$as_save_IFS
4470  test -z "$as_dir" && as_dir=.
4471    for ac_prog in fgrep; do
4472    for ac_exec_ext in '' $ac_executable_extensions; do
4473      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4474      as_fn_executable_p "$ac_path_FGREP" || continue
4475# Check for GNU ac_path_FGREP and select it if it is found.
4476  # Check for GNU $ac_path_FGREP
4477case `"$ac_path_FGREP" --version 2>&1` in
4478*GNU*)
4479  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4480*)
4481  ac_count=0
4482  $as_echo_n 0123456789 >"conftest.in"
4483  while :
4484  do
4485    cat "conftest.in" "conftest.in" >"conftest.tmp"
4486    mv "conftest.tmp" "conftest.in"
4487    cp "conftest.in" "conftest.nl"
4488    $as_echo 'FGREP' >> "conftest.nl"
4489    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4490    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4491    as_fn_arith $ac_count + 1 && ac_count=$as_val
4492    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4493      # Best one so far, save it but keep looking for a better one
4494      ac_cv_path_FGREP="$ac_path_FGREP"
4495      ac_path_FGREP_max=$ac_count
4496    fi
4497    # 10*(2^10) chars as input seems more than enough
4498    test $ac_count -gt 10 && break
4499  done
4500  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4501esac
4502
4503      $ac_path_FGREP_found && break 3
4504    done
4505  done
4506  done
4507IFS=$as_save_IFS
4508  if test -z "$ac_cv_path_FGREP"; then
4509    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4510  fi
4511else
4512  ac_cv_path_FGREP=$FGREP
4513fi
4514
4515   fi
4516fi
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4518$as_echo "$ac_cv_path_FGREP" >&6; }
4519 FGREP="$ac_cv_path_FGREP"
4520
4521
4522test -z "$GREP" && GREP=grep
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542# Check whether --with-gnu-ld was given.
4543if test "${with_gnu_ld+set}" = set; then :
4544  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4545else
4546  with_gnu_ld=no
4547fi
4548
4549ac_prog=ld
4550if test yes = "$GCC"; then
4551  # Check if gcc -print-prog-name=ld gives a path.
4552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4553$as_echo_n "checking for ld used by $CC... " >&6; }
4554  case $host in
4555  *-*-mingw*)
4556    # gcc leaves a trailing carriage return, which upsets mingw
4557    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4558  *)
4559    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4560  esac
4561  case $ac_prog in
4562    # Accept absolute paths.
4563    [\\/]* | ?:[\\/]*)
4564      re_direlt='/[^/][^/]*/\.\./'
4565      # Canonicalize the pathname of ld
4566      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4567      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4568	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4569      done
4570      test -z "$LD" && LD=$ac_prog
4571      ;;
4572  "")
4573    # If it fails, then pretend we aren't using GCC.
4574    ac_prog=ld
4575    ;;
4576  *)
4577    # If it is relative, then search for the first ld in PATH.
4578    with_gnu_ld=unknown
4579    ;;
4580  esac
4581elif test yes = "$with_gnu_ld"; then
4582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4583$as_echo_n "checking for GNU ld... " >&6; }
4584else
4585  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4586$as_echo_n "checking for non-GNU ld... " >&6; }
4587fi
4588if ${lt_cv_path_LD+:} false; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  if test -z "$LD"; then
4592  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4593  for ac_dir in $PATH; do
4594    IFS=$lt_save_ifs
4595    test -z "$ac_dir" && ac_dir=.
4596    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4597      lt_cv_path_LD=$ac_dir/$ac_prog
4598      # Check to see if the program is GNU ld.  I'd rather use --version,
4599      # but apparently some variants of GNU ld only accept -v.
4600      # Break only if it was the GNU/non-GNU ld that we prefer.
4601      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4602      *GNU* | *'with BFD'*)
4603	test no != "$with_gnu_ld" && break
4604	;;
4605      *)
4606	test yes != "$with_gnu_ld" && break
4607	;;
4608      esac
4609    fi
4610  done
4611  IFS=$lt_save_ifs
4612else
4613  lt_cv_path_LD=$LD # Let the user override the test with a path.
4614fi
4615fi
4616
4617LD=$lt_cv_path_LD
4618if test -n "$LD"; then
4619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4620$as_echo "$LD" >&6; }
4621else
4622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623$as_echo "no" >&6; }
4624fi
4625test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4627$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4628if ${lt_cv_prog_gnu_ld+:} false; then :
4629  $as_echo_n "(cached) " >&6
4630else
4631  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4632case `$LD -v 2>&1 </dev/null` in
4633*GNU* | *'with BFD'*)
4634  lt_cv_prog_gnu_ld=yes
4635  ;;
4636*)
4637  lt_cv_prog_gnu_ld=no
4638  ;;
4639esac
4640fi
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4642$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4643with_gnu_ld=$lt_cv_prog_gnu_ld
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4654$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4655if ${lt_cv_path_NM+:} false; then :
4656  $as_echo_n "(cached) " >&6
4657else
4658  if test -n "$NM"; then
4659  # Let the user override the test.
4660  lt_cv_path_NM=$NM
4661else
4662  lt_nm_to_check=${ac_tool_prefix}nm
4663  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4664    lt_nm_to_check="$lt_nm_to_check nm"
4665  fi
4666  for lt_tmp_nm in $lt_nm_to_check; do
4667    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4668    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4669      IFS=$lt_save_ifs
4670      test -z "$ac_dir" && ac_dir=.
4671      tmp_nm=$ac_dir/$lt_tmp_nm
4672      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4673	# Check to see if the nm accepts a BSD-compat flag.
4674	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4675	#   nm: unknown option "B" ignored
4676	# Tru64's nm complains that /dev/null is an invalid object file
4677	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4678	case $build_os in
4679	mingw*) lt_bad_file=conftest.nm/nofile ;;
4680	*) lt_bad_file=/dev/null ;;
4681	esac
4682	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4683	*$lt_bad_file* | *'Invalid file or object type'*)
4684	  lt_cv_path_NM="$tmp_nm -B"
4685	  break 2
4686	  ;;
4687	*)
4688	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4689	  */dev/null*)
4690	    lt_cv_path_NM="$tmp_nm -p"
4691	    break 2
4692	    ;;
4693	  *)
4694	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4695	    continue # so that we can try to find one that supports BSD flags
4696	    ;;
4697	  esac
4698	  ;;
4699	esac
4700      fi
4701    done
4702    IFS=$lt_save_ifs
4703  done
4704  : ${lt_cv_path_NM=no}
4705fi
4706fi
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4708$as_echo "$lt_cv_path_NM" >&6; }
4709if test no != "$lt_cv_path_NM"; then
4710  NM=$lt_cv_path_NM
4711else
4712  # Didn't find any BSD compatible name lister, look for dumpbin.
4713  if test -n "$DUMPBIN"; then :
4714    # Let the user override the test.
4715  else
4716    if test -n "$ac_tool_prefix"; then
4717  for ac_prog in dumpbin "link -dump"
4718  do
4719    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4720set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722$as_echo_n "checking for $ac_word... " >&6; }
4723if ${ac_cv_prog_DUMPBIN+:} false; then :
4724  $as_echo_n "(cached) " >&6
4725else
4726  if test -n "$DUMPBIN"; then
4727  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4728else
4729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH
4731do
4732  IFS=$as_save_IFS
4733  test -z "$as_dir" && as_dir=.
4734    for ac_exec_ext in '' $ac_executable_extensions; do
4735  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4736    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738    break 2
4739  fi
4740done
4741  done
4742IFS=$as_save_IFS
4743
4744fi
4745fi
4746DUMPBIN=$ac_cv_prog_DUMPBIN
4747if test -n "$DUMPBIN"; then
4748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4749$as_echo "$DUMPBIN" >&6; }
4750else
4751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752$as_echo "no" >&6; }
4753fi
4754
4755
4756    test -n "$DUMPBIN" && break
4757  done
4758fi
4759if test -z "$DUMPBIN"; then
4760  ac_ct_DUMPBIN=$DUMPBIN
4761  for ac_prog in dumpbin "link -dump"
4762do
4763  # Extract the first word of "$ac_prog", so it can be a program name with args.
4764set dummy $ac_prog; ac_word=$2
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766$as_echo_n "checking for $ac_word... " >&6; }
4767if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4768  $as_echo_n "(cached) " >&6
4769else
4770  if test -n "$ac_ct_DUMPBIN"; then
4771  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4772else
4773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH
4775do
4776  IFS=$as_save_IFS
4777  test -z "$as_dir" && as_dir=.
4778    for ac_exec_ext in '' $ac_executable_extensions; do
4779  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782    break 2
4783  fi
4784done
4785  done
4786IFS=$as_save_IFS
4787
4788fi
4789fi
4790ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4791if test -n "$ac_ct_DUMPBIN"; then
4792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4793$as_echo "$ac_ct_DUMPBIN" >&6; }
4794else
4795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796$as_echo "no" >&6; }
4797fi
4798
4799
4800  test -n "$ac_ct_DUMPBIN" && break
4801done
4802
4803  if test "x$ac_ct_DUMPBIN" = x; then
4804    DUMPBIN=":"
4805  else
4806    case $cross_compiling:$ac_tool_warned in
4807yes:)
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4810ac_tool_warned=yes ;;
4811esac
4812    DUMPBIN=$ac_ct_DUMPBIN
4813  fi
4814fi
4815
4816    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4817    *COFF*)
4818      DUMPBIN="$DUMPBIN -symbols -headers"
4819      ;;
4820    *)
4821      DUMPBIN=:
4822      ;;
4823    esac
4824  fi
4825
4826  if test : != "$DUMPBIN"; then
4827    NM=$DUMPBIN
4828  fi
4829fi
4830test -z "$NM" && NM=nm
4831
4832
4833
4834
4835
4836
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4838$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4839if ${lt_cv_nm_interface+:} false; then :
4840  $as_echo_n "(cached) " >&6
4841else
4842  lt_cv_nm_interface="BSD nm"
4843  echo "int some_variable = 0;" > conftest.$ac_ext
4844  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4845  (eval "$ac_compile" 2>conftest.err)
4846  cat conftest.err >&5
4847  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4848  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4849  cat conftest.err >&5
4850  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4851  cat conftest.out >&5
4852  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4853    lt_cv_nm_interface="MS dumpbin"
4854  fi
4855  rm -f conftest*
4856fi
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4858$as_echo "$lt_cv_nm_interface" >&6; }
4859
4860# find the maximum length of command line arguments
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4862$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4863if ${lt_cv_sys_max_cmd_len+:} false; then :
4864  $as_echo_n "(cached) " >&6
4865else
4866    i=0
4867  teststring=ABCD
4868
4869  case $build_os in
4870  msdosdjgpp*)
4871    # On DJGPP, this test can blow up pretty badly due to problems in libc
4872    # (any single argument exceeding 2000 bytes causes a buffer overrun
4873    # during glob expansion).  Even if it were fixed, the result of this
4874    # check would be larger than it should be.
4875    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4876    ;;
4877
4878  gnu*)
4879    # Under GNU Hurd, this test is not required because there is
4880    # no limit to the length of command line arguments.
4881    # Libtool will interpret -1 as no limit whatsoever
4882    lt_cv_sys_max_cmd_len=-1;
4883    ;;
4884
4885  cygwin* | mingw* | cegcc*)
4886    # On Win9x/ME, this test blows up -- it succeeds, but takes
4887    # about 5 minutes as the teststring grows exponentially.
4888    # Worse, since 9x/ME are not pre-emptively multitasking,
4889    # you end up with a "frozen" computer, even though with patience
4890    # the test eventually succeeds (with a max line length of 256k).
4891    # Instead, let's just punt: use the minimum linelength reported by
4892    # all of the supported platforms: 8192 (on NT/2K/XP).
4893    lt_cv_sys_max_cmd_len=8192;
4894    ;;
4895
4896  mint*)
4897    # On MiNT this can take a long time and run out of memory.
4898    lt_cv_sys_max_cmd_len=8192;
4899    ;;
4900
4901  amigaos*)
4902    # On AmigaOS with pdksh, this test takes hours, literally.
4903    # So we just punt and use a minimum line length of 8192.
4904    lt_cv_sys_max_cmd_len=8192;
4905    ;;
4906
4907  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4908    # This has been around since 386BSD, at least.  Likely further.
4909    if test -x /sbin/sysctl; then
4910      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4911    elif test -x /usr/sbin/sysctl; then
4912      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4913    else
4914      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4915    fi
4916    # And add a safety zone
4917    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4918    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4919    ;;
4920
4921  interix*)
4922    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4923    lt_cv_sys_max_cmd_len=196608
4924    ;;
4925
4926  os2*)
4927    # The test takes a long time on OS/2.
4928    lt_cv_sys_max_cmd_len=8192
4929    ;;
4930
4931  osf*)
4932    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4933    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4934    # nice to cause kernel panics so lets avoid the loop below.
4935    # First set a reasonable default.
4936    lt_cv_sys_max_cmd_len=16384
4937    #
4938    if test -x /sbin/sysconfig; then
4939      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4940        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4941      esac
4942    fi
4943    ;;
4944  sco3.2v5*)
4945    lt_cv_sys_max_cmd_len=102400
4946    ;;
4947  sysv5* | sco5v6* | sysv4.2uw2*)
4948    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4949    if test -n "$kargmax"; then
4950      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4951    else
4952      lt_cv_sys_max_cmd_len=32768
4953    fi
4954    ;;
4955  *)
4956    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4957    if test -n "$lt_cv_sys_max_cmd_len" && \
4958       test undefined != "$lt_cv_sys_max_cmd_len"; then
4959      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4960      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4961    else
4962      # Make teststring a little bigger before we do anything with it.
4963      # a 1K string should be a reasonable start.
4964      for i in 1 2 3 4 5 6 7 8; do
4965        teststring=$teststring$teststring
4966      done
4967      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4968      # If test is not a shell built-in, we'll probably end up computing a
4969      # maximum length that is only half of the actual maximum length, but
4970      # we can't tell.
4971      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4972	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4973	      test 17 != "$i" # 1/2 MB should be enough
4974      do
4975        i=`expr $i + 1`
4976        teststring=$teststring$teststring
4977      done
4978      # Only check the string length outside the loop.
4979      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4980      teststring=
4981      # Add a significant safety factor because C++ compilers can tack on
4982      # massive amounts of additional arguments before passing them to the
4983      # linker.  It appears as though 1/2 is a usable value.
4984      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4985    fi
4986    ;;
4987  esac
4988
4989fi
4990
4991if test -n "$lt_cv_sys_max_cmd_len"; then
4992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4993$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4994else
4995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4996$as_echo "none" >&6; }
4997fi
4998max_cmd_len=$lt_cv_sys_max_cmd_len
4999
5000
5001
5002
5003
5004
5005: ${CP="cp -f"}
5006: ${MV="mv -f"}
5007: ${RM="rm -f"}
5008
5009if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5010  lt_unset=unset
5011else
5012  lt_unset=false
5013fi
5014
5015
5016
5017
5018
5019# test EBCDIC or ASCII
5020case `echo X|tr X '\101'` in
5021 A) # ASCII based system
5022    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5023  lt_SP2NL='tr \040 \012'
5024  lt_NL2SP='tr \015\012 \040\040'
5025  ;;
5026 *) # EBCDIC based system
5027  lt_SP2NL='tr \100 \n'
5028  lt_NL2SP='tr \r\n \100\100'
5029  ;;
5030esac
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5041$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5042if ${lt_cv_to_host_file_cmd+:} false; then :
5043  $as_echo_n "(cached) " >&6
5044else
5045  case $host in
5046  *-*-mingw* )
5047    case $build in
5048      *-*-mingw* ) # actually msys
5049        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5050        ;;
5051      *-*-cygwin* )
5052        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5053        ;;
5054      * ) # otherwise, assume *nix
5055        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5056        ;;
5057    esac
5058    ;;
5059  *-*-cygwin* )
5060    case $build in
5061      *-*-mingw* ) # actually msys
5062        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5063        ;;
5064      *-*-cygwin* )
5065        lt_cv_to_host_file_cmd=func_convert_file_noop
5066        ;;
5067      * ) # otherwise, assume *nix
5068        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5069        ;;
5070    esac
5071    ;;
5072  * ) # unhandled hosts (and "normal" native builds)
5073    lt_cv_to_host_file_cmd=func_convert_file_noop
5074    ;;
5075esac
5076
5077fi
5078
5079to_host_file_cmd=$lt_cv_to_host_file_cmd
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5081$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5082
5083
5084
5085
5086
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5088$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5089if ${lt_cv_to_tool_file_cmd+:} false; then :
5090  $as_echo_n "(cached) " >&6
5091else
5092  #assume ordinary cross tools, or native build.
5093lt_cv_to_tool_file_cmd=func_convert_file_noop
5094case $host in
5095  *-*-mingw* )
5096    case $build in
5097      *-*-mingw* ) # actually msys
5098        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5099        ;;
5100    esac
5101    ;;
5102esac
5103
5104fi
5105
5106to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5108$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5109
5110
5111
5112
5113
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5115$as_echo_n "checking for $LD option to reload object files... " >&6; }
5116if ${lt_cv_ld_reload_flag+:} false; then :
5117  $as_echo_n "(cached) " >&6
5118else
5119  lt_cv_ld_reload_flag='-r'
5120fi
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5122$as_echo "$lt_cv_ld_reload_flag" >&6; }
5123reload_flag=$lt_cv_ld_reload_flag
5124case $reload_flag in
5125"" | " "*) ;;
5126*) reload_flag=" $reload_flag" ;;
5127esac
5128reload_cmds='$LD$reload_flag -o $output$reload_objs'
5129case $host_os in
5130  cygwin* | mingw* | pw32* | cegcc*)
5131    if test yes != "$GCC"; then
5132      reload_cmds=false
5133    fi
5134    ;;
5135  darwin*)
5136    if test yes = "$GCC"; then
5137      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5138    else
5139      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5140    fi
5141    ;;
5142esac
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152if test -n "$ac_tool_prefix"; then
5153  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5154set dummy ${ac_tool_prefix}objdump; ac_word=$2
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156$as_echo_n "checking for $ac_word... " >&6; }
5157if ${ac_cv_prog_OBJDUMP+:} false; then :
5158  $as_echo_n "(cached) " >&6
5159else
5160  if test -n "$OBJDUMP"; then
5161  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5162else
5163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166  IFS=$as_save_IFS
5167  test -z "$as_dir" && as_dir=.
5168    for ac_exec_ext in '' $ac_executable_extensions; do
5169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172    break 2
5173  fi
5174done
5175  done
5176IFS=$as_save_IFS
5177
5178fi
5179fi
5180OBJDUMP=$ac_cv_prog_OBJDUMP
5181if test -n "$OBJDUMP"; then
5182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5183$as_echo "$OBJDUMP" >&6; }
5184else
5185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186$as_echo "no" >&6; }
5187fi
5188
5189
5190fi
5191if test -z "$ac_cv_prog_OBJDUMP"; then
5192  ac_ct_OBJDUMP=$OBJDUMP
5193  # Extract the first word of "objdump", so it can be a program name with args.
5194set dummy objdump; ac_word=$2
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196$as_echo_n "checking for $ac_word... " >&6; }
5197if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5198  $as_echo_n "(cached) " >&6
5199else
5200  if test -n "$ac_ct_OBJDUMP"; then
5201  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5202else
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206  IFS=$as_save_IFS
5207  test -z "$as_dir" && as_dir=.
5208    for ac_exec_ext in '' $ac_executable_extensions; do
5209  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5212    break 2
5213  fi
5214done
5215  done
5216IFS=$as_save_IFS
5217
5218fi
5219fi
5220ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5221if test -n "$ac_ct_OBJDUMP"; then
5222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5223$as_echo "$ac_ct_OBJDUMP" >&6; }
5224else
5225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227fi
5228
5229  if test "x$ac_ct_OBJDUMP" = x; then
5230    OBJDUMP="false"
5231  else
5232    case $cross_compiling:$ac_tool_warned in
5233yes:)
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236ac_tool_warned=yes ;;
5237esac
5238    OBJDUMP=$ac_ct_OBJDUMP
5239  fi
5240else
5241  OBJDUMP="$ac_cv_prog_OBJDUMP"
5242fi
5243
5244test -z "$OBJDUMP" && OBJDUMP=objdump
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5255$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5256if ${lt_cv_deplibs_check_method+:} false; then :
5257  $as_echo_n "(cached) " >&6
5258else
5259  lt_cv_file_magic_cmd='$MAGIC_CMD'
5260lt_cv_file_magic_test_file=
5261lt_cv_deplibs_check_method='unknown'
5262# Need to set the preceding variable on all platforms that support
5263# interlibrary dependencies.
5264# 'none' -- dependencies not supported.
5265# 'unknown' -- same as none, but documents that we really don't know.
5266# 'pass_all' -- all dependencies passed with no checks.
5267# 'test_compile' -- check by making test program.
5268# 'file_magic [[regex]]' -- check by looking for files in library path
5269# that responds to the $file_magic_cmd with a given extended regex.
5270# If you have 'file' or equivalent on your system and you're not sure
5271# whether 'pass_all' will *always* work, you probably want this one.
5272
5273case $host_os in
5274aix[4-9]*)
5275  lt_cv_deplibs_check_method=pass_all
5276  ;;
5277
5278beos*)
5279  lt_cv_deplibs_check_method=pass_all
5280  ;;
5281
5282bsdi[45]*)
5283  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5284  lt_cv_file_magic_cmd='/usr/bin/file -L'
5285  lt_cv_file_magic_test_file=/shlib/libc.so
5286  ;;
5287
5288cygwin*)
5289  # func_win32_libid is a shell function defined in ltmain.sh
5290  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5291  lt_cv_file_magic_cmd='func_win32_libid'
5292  ;;
5293
5294mingw* | pw32*)
5295  # Base MSYS/MinGW do not provide the 'file' command needed by
5296  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5297  # unless we find 'file', for example because we are cross-compiling.
5298  if ( file / ) >/dev/null 2>&1; then
5299    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5300    lt_cv_file_magic_cmd='func_win32_libid'
5301  else
5302    # Keep this pattern in sync with the one in func_win32_libid.
5303    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5304    lt_cv_file_magic_cmd='$OBJDUMP -f'
5305  fi
5306  ;;
5307
5308cegcc*)
5309  # use the weaker test based on 'objdump'. See mingw*.
5310  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5311  lt_cv_file_magic_cmd='$OBJDUMP -f'
5312  ;;
5313
5314darwin* | rhapsody*)
5315  lt_cv_deplibs_check_method=pass_all
5316  ;;
5317
5318freebsd* | dragonfly*)
5319  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5320    case $host_cpu in
5321    i*86 )
5322      # Not sure whether the presence of OpenBSD here was a mistake.
5323      # Let's accept both of them until this is cleared up.
5324      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5325      lt_cv_file_magic_cmd=/usr/bin/file
5326      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5327      ;;
5328    esac
5329  else
5330    lt_cv_deplibs_check_method=pass_all
5331  fi
5332  ;;
5333
5334haiku*)
5335  lt_cv_deplibs_check_method=pass_all
5336  ;;
5337
5338hpux10.20* | hpux11*)
5339  lt_cv_file_magic_cmd=/usr/bin/file
5340  case $host_cpu in
5341  ia64*)
5342    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5343    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5344    ;;
5345  hppa*64*)
5346    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]'
5347    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5348    ;;
5349  *)
5350    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5351    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5352    ;;
5353  esac
5354  ;;
5355
5356interix[3-9]*)
5357  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5358  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5359  ;;
5360
5361irix5* | irix6* | nonstopux*)
5362  case $LD in
5363  *-32|*"-32 ") libmagic=32-bit;;
5364  *-n32|*"-n32 ") libmagic=N32;;
5365  *-64|*"-64 ") libmagic=64-bit;;
5366  *) libmagic=never-match;;
5367  esac
5368  lt_cv_deplibs_check_method=pass_all
5369  ;;
5370
5371# This must be glibc/ELF.
5372linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5373  lt_cv_deplibs_check_method=pass_all
5374  ;;
5375
5376netbsd*)
5377  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5378    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5379  else
5380    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5381  fi
5382  ;;
5383
5384newos6*)
5385  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5386  lt_cv_file_magic_cmd=/usr/bin/file
5387  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5388  ;;
5389
5390*nto* | *qnx*)
5391  lt_cv_deplibs_check_method=pass_all
5392  ;;
5393
5394openbsd* | bitrig*)
5395  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5396    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5397  else
5398    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5399  fi
5400  ;;
5401
5402osf3* | osf4* | osf5*)
5403  lt_cv_deplibs_check_method=pass_all
5404  ;;
5405
5406rdos*)
5407  lt_cv_deplibs_check_method=pass_all
5408  ;;
5409
5410solaris*)
5411  lt_cv_deplibs_check_method=pass_all
5412  ;;
5413
5414sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5415  lt_cv_deplibs_check_method=pass_all
5416  ;;
5417
5418sysv4 | sysv4.3*)
5419  case $host_vendor in
5420  motorola)
5421    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]'
5422    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5423    ;;
5424  ncr)
5425    lt_cv_deplibs_check_method=pass_all
5426    ;;
5427  sequent)
5428    lt_cv_file_magic_cmd='/bin/file'
5429    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5430    ;;
5431  sni)
5432    lt_cv_file_magic_cmd='/bin/file'
5433    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5434    lt_cv_file_magic_test_file=/lib/libc.so
5435    ;;
5436  siemens)
5437    lt_cv_deplibs_check_method=pass_all
5438    ;;
5439  pc)
5440    lt_cv_deplibs_check_method=pass_all
5441    ;;
5442  esac
5443  ;;
5444
5445tpf*)
5446  lt_cv_deplibs_check_method=pass_all
5447  ;;
5448os2*)
5449  lt_cv_deplibs_check_method=pass_all
5450  ;;
5451esac
5452
5453fi
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5455$as_echo "$lt_cv_deplibs_check_method" >&6; }
5456
5457file_magic_glob=
5458want_nocaseglob=no
5459if test "$build" = "$host"; then
5460  case $host_os in
5461  mingw* | pw32*)
5462    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5463      want_nocaseglob=yes
5464    else
5465      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5466    fi
5467    ;;
5468  esac
5469fi
5470
5471file_magic_cmd=$lt_cv_file_magic_cmd
5472deplibs_check_method=$lt_cv_deplibs_check_method
5473test -z "$deplibs_check_method" && deplibs_check_method=unknown
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496if test -n "$ac_tool_prefix"; then
5497  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5498set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500$as_echo_n "checking for $ac_word... " >&6; }
5501if ${ac_cv_prog_DLLTOOL+:} false; then :
5502  $as_echo_n "(cached) " >&6
5503else
5504  if test -n "$DLLTOOL"; then
5505  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5506else
5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510  IFS=$as_save_IFS
5511  test -z "$as_dir" && as_dir=.
5512    for ac_exec_ext in '' $ac_executable_extensions; do
5513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516    break 2
5517  fi
5518done
5519  done
5520IFS=$as_save_IFS
5521
5522fi
5523fi
5524DLLTOOL=$ac_cv_prog_DLLTOOL
5525if test -n "$DLLTOOL"; then
5526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5527$as_echo "$DLLTOOL" >&6; }
5528else
5529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530$as_echo "no" >&6; }
5531fi
5532
5533
5534fi
5535if test -z "$ac_cv_prog_DLLTOOL"; then
5536  ac_ct_DLLTOOL=$DLLTOOL
5537  # Extract the first word of "dlltool", so it can be a program name with args.
5538set dummy dlltool; ac_word=$2
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540$as_echo_n "checking for $ac_word... " >&6; }
5541if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5542  $as_echo_n "(cached) " >&6
5543else
5544  if test -n "$ac_ct_DLLTOOL"; then
5545  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5546else
5547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550  IFS=$as_save_IFS
5551  test -z "$as_dir" && as_dir=.
5552    for ac_exec_ext in '' $ac_executable_extensions; do
5553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556    break 2
5557  fi
5558done
5559  done
5560IFS=$as_save_IFS
5561
5562fi
5563fi
5564ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5565if test -n "$ac_ct_DLLTOOL"; then
5566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5567$as_echo "$ac_ct_DLLTOOL" >&6; }
5568else
5569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570$as_echo "no" >&6; }
5571fi
5572
5573  if test "x$ac_ct_DLLTOOL" = x; then
5574    DLLTOOL="false"
5575  else
5576    case $cross_compiling:$ac_tool_warned in
5577yes:)
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580ac_tool_warned=yes ;;
5581esac
5582    DLLTOOL=$ac_ct_DLLTOOL
5583  fi
5584else
5585  DLLTOOL="$ac_cv_prog_DLLTOOL"
5586fi
5587
5588test -z "$DLLTOOL" && DLLTOOL=dlltool
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5600$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5601if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5602  $as_echo_n "(cached) " >&6
5603else
5604  lt_cv_sharedlib_from_linklib_cmd='unknown'
5605
5606case $host_os in
5607cygwin* | mingw* | pw32* | cegcc*)
5608  # two different shell functions defined in ltmain.sh;
5609  # decide which one to use based on capabilities of $DLLTOOL
5610  case `$DLLTOOL --help 2>&1` in
5611  *--identify-strict*)
5612    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5613    ;;
5614  *)
5615    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5616    ;;
5617  esac
5618  ;;
5619*)
5620  # fallback: assume linklib IS sharedlib
5621  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5622  ;;
5623esac
5624
5625fi
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5627$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5628sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5629test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5630
5631
5632
5633
5634
5635
5636
5637
5638if test -n "$ac_tool_prefix"; then
5639  for ac_prog in ar
5640  do
5641    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644$as_echo_n "checking for $ac_word... " >&6; }
5645if ${ac_cv_prog_AR+:} false; then :
5646  $as_echo_n "(cached) " >&6
5647else
5648  if test -n "$AR"; then
5649  ac_cv_prog_AR="$AR" # Let the user override the test.
5650else
5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654  IFS=$as_save_IFS
5655  test -z "$as_dir" && as_dir=.
5656    for ac_exec_ext in '' $ac_executable_extensions; do
5657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660    break 2
5661  fi
5662done
5663  done
5664IFS=$as_save_IFS
5665
5666fi
5667fi
5668AR=$ac_cv_prog_AR
5669if test -n "$AR"; then
5670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5671$as_echo "$AR" >&6; }
5672else
5673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674$as_echo "no" >&6; }
5675fi
5676
5677
5678    test -n "$AR" && break
5679  done
5680fi
5681if test -z "$AR"; then
5682  ac_ct_AR=$AR
5683  for ac_prog in ar
5684do
5685  # Extract the first word of "$ac_prog", so it can be a program name with args.
5686set dummy $ac_prog; ac_word=$2
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688$as_echo_n "checking for $ac_word... " >&6; }
5689if ${ac_cv_prog_ac_ct_AR+:} false; then :
5690  $as_echo_n "(cached) " >&6
5691else
5692  if test -n "$ac_ct_AR"; then
5693  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698  IFS=$as_save_IFS
5699  test -z "$as_dir" && as_dir=.
5700    for ac_exec_ext in '' $ac_executable_extensions; do
5701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702    ac_cv_prog_ac_ct_AR="$ac_prog"
5703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704    break 2
5705  fi
5706done
5707  done
5708IFS=$as_save_IFS
5709
5710fi
5711fi
5712ac_ct_AR=$ac_cv_prog_ac_ct_AR
5713if test -n "$ac_ct_AR"; then
5714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5715$as_echo "$ac_ct_AR" >&6; }
5716else
5717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718$as_echo "no" >&6; }
5719fi
5720
5721
5722  test -n "$ac_ct_AR" && break
5723done
5724
5725  if test "x$ac_ct_AR" = x; then
5726    AR="false"
5727  else
5728    case $cross_compiling:$ac_tool_warned in
5729yes:)
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5732ac_tool_warned=yes ;;
5733esac
5734    AR=$ac_ct_AR
5735  fi
5736fi
5737
5738: ${AR=ar}
5739: ${AR_FLAGS=cru}
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5752$as_echo_n "checking for archiver @FILE support... " >&6; }
5753if ${lt_cv_ar_at_file+:} false; then :
5754  $as_echo_n "(cached) " >&6
5755else
5756  lt_cv_ar_at_file=no
5757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758/* end confdefs.h.  */
5759
5760int
5761main ()
5762{
5763
5764  ;
5765  return 0;
5766}
5767_ACEOF
5768if ac_fn_c_try_compile "$LINENO"; then :
5769  echo conftest.$ac_objext > conftest.lst
5770      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5771      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5772  (eval $lt_ar_try) 2>&5
5773  ac_status=$?
5774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5775  test $ac_status = 0; }
5776      if test 0 -eq "$ac_status"; then
5777	# Ensure the archiver fails upon bogus file names.
5778	rm -f conftest.$ac_objext libconftest.a
5779	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5780  (eval $lt_ar_try) 2>&5
5781  ac_status=$?
5782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5783  test $ac_status = 0; }
5784	if test 0 -ne "$ac_status"; then
5785          lt_cv_ar_at_file=@
5786        fi
5787      fi
5788      rm -f conftest.* libconftest.a
5789
5790fi
5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792
5793fi
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5795$as_echo "$lt_cv_ar_at_file" >&6; }
5796
5797if test no = "$lt_cv_ar_at_file"; then
5798  archiver_list_spec=
5799else
5800  archiver_list_spec=$lt_cv_ar_at_file
5801fi
5802
5803
5804
5805
5806
5807
5808
5809if test -n "$ac_tool_prefix"; then
5810  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5811set dummy ${ac_tool_prefix}strip; ac_word=$2
5812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813$as_echo_n "checking for $ac_word... " >&6; }
5814if ${ac_cv_prog_STRIP+:} false; then :
5815  $as_echo_n "(cached) " >&6
5816else
5817  if test -n "$STRIP"; then
5818  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823  IFS=$as_save_IFS
5824  test -z "$as_dir" && as_dir=.
5825    for ac_exec_ext in '' $ac_executable_extensions; do
5826  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829    break 2
5830  fi
5831done
5832  done
5833IFS=$as_save_IFS
5834
5835fi
5836fi
5837STRIP=$ac_cv_prog_STRIP
5838if test -n "$STRIP"; then
5839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5840$as_echo "$STRIP" >&6; }
5841else
5842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843$as_echo "no" >&6; }
5844fi
5845
5846
5847fi
5848if test -z "$ac_cv_prog_STRIP"; then
5849  ac_ct_STRIP=$STRIP
5850  # Extract the first word of "strip", so it can be a program name with args.
5851set dummy strip; ac_word=$2
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853$as_echo_n "checking for $ac_word... " >&6; }
5854if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5855  $as_echo_n "(cached) " >&6
5856else
5857  if test -n "$ac_ct_STRIP"; then
5858  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5859else
5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861for as_dir in $PATH
5862do
5863  IFS=$as_save_IFS
5864  test -z "$as_dir" && as_dir=.
5865    for ac_exec_ext in '' $ac_executable_extensions; do
5866  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5867    ac_cv_prog_ac_ct_STRIP="strip"
5868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869    break 2
5870  fi
5871done
5872  done
5873IFS=$as_save_IFS
5874
5875fi
5876fi
5877ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5878if test -n "$ac_ct_STRIP"; then
5879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5880$as_echo "$ac_ct_STRIP" >&6; }
5881else
5882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883$as_echo "no" >&6; }
5884fi
5885
5886  if test "x$ac_ct_STRIP" = x; then
5887    STRIP=":"
5888  else
5889    case $cross_compiling:$ac_tool_warned in
5890yes:)
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5893ac_tool_warned=yes ;;
5894esac
5895    STRIP=$ac_ct_STRIP
5896  fi
5897else
5898  STRIP="$ac_cv_prog_STRIP"
5899fi
5900
5901test -z "$STRIP" && STRIP=:
5902
5903
5904
5905
5906
5907
5908if test -n "$ac_tool_prefix"; then
5909  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5910set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912$as_echo_n "checking for $ac_word... " >&6; }
5913if ${ac_cv_prog_RANLIB+:} false; then :
5914  $as_echo_n "(cached) " >&6
5915else
5916  if test -n "$RANLIB"; then
5917  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5918else
5919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920for as_dir in $PATH
5921do
5922  IFS=$as_save_IFS
5923  test -z "$as_dir" && as_dir=.
5924    for ac_exec_ext in '' $ac_executable_extensions; do
5925  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928    break 2
5929  fi
5930done
5931  done
5932IFS=$as_save_IFS
5933
5934fi
5935fi
5936RANLIB=$ac_cv_prog_RANLIB
5937if test -n "$RANLIB"; then
5938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5939$as_echo "$RANLIB" >&6; }
5940else
5941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942$as_echo "no" >&6; }
5943fi
5944
5945
5946fi
5947if test -z "$ac_cv_prog_RANLIB"; then
5948  ac_ct_RANLIB=$RANLIB
5949  # Extract the first word of "ranlib", so it can be a program name with args.
5950set dummy ranlib; ac_word=$2
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952$as_echo_n "checking for $ac_word... " >&6; }
5953if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5954  $as_echo_n "(cached) " >&6
5955else
5956  if test -n "$ac_ct_RANLIB"; then
5957  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962  IFS=$as_save_IFS
5963  test -z "$as_dir" && as_dir=.
5964    for ac_exec_ext in '' $ac_executable_extensions; do
5965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966    ac_cv_prog_ac_ct_RANLIB="ranlib"
5967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968    break 2
5969  fi
5970done
5971  done
5972IFS=$as_save_IFS
5973
5974fi
5975fi
5976ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5977if test -n "$ac_ct_RANLIB"; then
5978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5979$as_echo "$ac_ct_RANLIB" >&6; }
5980else
5981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982$as_echo "no" >&6; }
5983fi
5984
5985  if test "x$ac_ct_RANLIB" = x; then
5986    RANLIB=":"
5987  else
5988    case $cross_compiling:$ac_tool_warned in
5989yes:)
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5992ac_tool_warned=yes ;;
5993esac
5994    RANLIB=$ac_ct_RANLIB
5995  fi
5996else
5997  RANLIB="$ac_cv_prog_RANLIB"
5998fi
5999
6000test -z "$RANLIB" && RANLIB=:
6001
6002
6003
6004
6005
6006
6007# Determine commands to create old-style static archives.
6008old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6009old_postinstall_cmds='chmod 644 $oldlib'
6010old_postuninstall_cmds=
6011
6012if test -n "$RANLIB"; then
6013  case $host_os in
6014  bitrig* | openbsd*)
6015    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6016    ;;
6017  *)
6018    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6019    ;;
6020  esac
6021  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6022fi
6023
6024case $host_os in
6025  darwin*)
6026    lock_old_archive_extraction=yes ;;
6027  *)
6028    lock_old_archive_extraction=no ;;
6029esac
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069# If no C compiler was specified, use CC.
6070LTCC=${LTCC-"$CC"}
6071
6072# If no C compiler flags were specified, use CFLAGS.
6073LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6074
6075# Allow CC to be a program name with arguments.
6076compiler=$CC
6077
6078
6079# Check for command to grab the raw symbol name followed by C symbol from nm.
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6081$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6082if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6083  $as_echo_n "(cached) " >&6
6084else
6085
6086# These are sane defaults that work on at least a few old systems.
6087# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6088
6089# Character class describing NM global symbol codes.
6090symcode='[BCDEGRST]'
6091
6092# Regexp to match symbols that can be accessed directly from C.
6093sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6094
6095# Define system-specific variables.
6096case $host_os in
6097aix*)
6098  symcode='[BCDT]'
6099  ;;
6100cygwin* | mingw* | pw32* | cegcc*)
6101  symcode='[ABCDGISTW]'
6102  ;;
6103hpux*)
6104  if test ia64 = "$host_cpu"; then
6105    symcode='[ABCDEGRST]'
6106  fi
6107  ;;
6108irix* | nonstopux*)
6109  symcode='[BCDEGRST]'
6110  ;;
6111osf*)
6112  symcode='[BCDEGQRST]'
6113  ;;
6114solaris*)
6115  symcode='[BDRT]'
6116  ;;
6117sco3.2v5*)
6118  symcode='[DT]'
6119  ;;
6120sysv4.2uw2*)
6121  symcode='[DT]'
6122  ;;
6123sysv5* | sco5v6* | unixware* | OpenUNIX*)
6124  symcode='[ABDT]'
6125  ;;
6126sysv4)
6127  symcode='[DFNSTU]'
6128  ;;
6129esac
6130
6131# If we're using GNU nm, then use its standard symbol codes.
6132case `$NM -V 2>&1` in
6133*GNU* | *'with BFD'*)
6134  symcode='[ABCDGIRSTW]' ;;
6135esac
6136
6137if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6138  # Gets list of data symbols to import.
6139  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6140  # Adjust the below global symbol transforms to fixup imported variables.
6141  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6142  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6143  lt_c_name_lib_hook="\
6144  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6145  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6146else
6147  # Disable hooks by default.
6148  lt_cv_sys_global_symbol_to_import=
6149  lt_cdecl_hook=
6150  lt_c_name_hook=
6151  lt_c_name_lib_hook=
6152fi
6153
6154# Transform an extracted symbol line into a proper C declaration.
6155# Some systems (esp. on ia64) link data and code symbols differently,
6156# so use this general approach.
6157lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6158$lt_cdecl_hook\
6159" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6160" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6161
6162# Transform an extracted symbol line into symbol name and symbol address
6163lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6164$lt_c_name_hook\
6165" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6166" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6167
6168# Transform an extracted symbol line into symbol name with lib prefix and
6169# symbol address.
6170lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6171$lt_c_name_lib_hook\
6172" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6173" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6174" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6175
6176# Handle CRLF in mingw tool chain
6177opt_cr=
6178case $build_os in
6179mingw*)
6180  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6181  ;;
6182esac
6183
6184# Try without a prefix underscore, then with it.
6185for ac_symprfx in "" "_"; do
6186
6187  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6188  symxfrm="\\1 $ac_symprfx\\2 \\2"
6189
6190  # Write the raw and C identifiers.
6191  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6192    # Fake it for dumpbin and say T for any non-static function,
6193    # D for any global variable and I for any imported variable.
6194    # Also find C++ and __fastcall symbols from MSVC++,
6195    # which start with @ or ?.
6196    lt_cv_sys_global_symbol_pipe="$AWK '"\
6197"     {last_section=section; section=\$ 3};"\
6198"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6199"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6200"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6201"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6202"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6203"     \$ 0!~/External *\|/{next};"\
6204"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6205"     {if(hide[section]) next};"\
6206"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6207"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6208"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6209"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6210"     ' prfx=^$ac_symprfx"
6211  else
6212    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6213  fi
6214  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6215
6216  # Check to see that the pipe works correctly.
6217  pipe_works=no
6218
6219  rm -f conftest*
6220  cat > conftest.$ac_ext <<_LT_EOF
6221#ifdef __cplusplus
6222extern "C" {
6223#endif
6224char nm_test_var;
6225void nm_test_func(void);
6226void nm_test_func(void){}
6227#ifdef __cplusplus
6228}
6229#endif
6230int main(){nm_test_var='a';nm_test_func();return(0);}
6231_LT_EOF
6232
6233  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6234  (eval $ac_compile) 2>&5
6235  ac_status=$?
6236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6237  test $ac_status = 0; }; then
6238    # Now try to grab the symbols.
6239    nlist=conftest.nm
6240    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6241  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6242  ac_status=$?
6243  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6244  test $ac_status = 0; } && test -s "$nlist"; then
6245      # Try sorting and uniquifying the output.
6246      if sort "$nlist" | uniq > "$nlist"T; then
6247	mv -f "$nlist"T "$nlist"
6248      else
6249	rm -f "$nlist"T
6250      fi
6251
6252      # Make sure that we snagged all the symbols we need.
6253      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6254	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6255	  cat <<_LT_EOF > conftest.$ac_ext
6256/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6257#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6258/* DATA imports from DLLs on WIN32 can't be const, because runtime
6259   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6260# define LT_DLSYM_CONST
6261#elif defined __osf__
6262/* This system does not cope well with relocations in const data.  */
6263# define LT_DLSYM_CONST
6264#else
6265# define LT_DLSYM_CONST const
6266#endif
6267
6268#ifdef __cplusplus
6269extern "C" {
6270#endif
6271
6272_LT_EOF
6273	  # Now generate the symbol file.
6274	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6275
6276	  cat <<_LT_EOF >> conftest.$ac_ext
6277
6278/* The mapping between symbol names and symbols.  */
6279LT_DLSYM_CONST struct {
6280  const char *name;
6281  void       *address;
6282}
6283lt__PROGRAM__LTX_preloaded_symbols[] =
6284{
6285  { "@PROGRAM@", (void *) 0 },
6286_LT_EOF
6287	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6288	  cat <<\_LT_EOF >> conftest.$ac_ext
6289  {0, (void *) 0}
6290};
6291
6292/* This works around a problem in FreeBSD linker */
6293#ifdef FREEBSD_WORKAROUND
6294static const void *lt_preloaded_setup() {
6295  return lt__PROGRAM__LTX_preloaded_symbols;
6296}
6297#endif
6298
6299#ifdef __cplusplus
6300}
6301#endif
6302_LT_EOF
6303	  # Now try linking the two files.
6304	  mv conftest.$ac_objext conftstm.$ac_objext
6305	  lt_globsym_save_LIBS=$LIBS
6306	  lt_globsym_save_CFLAGS=$CFLAGS
6307	  LIBS=conftstm.$ac_objext
6308	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6309	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6310  (eval $ac_link) 2>&5
6311  ac_status=$?
6312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6314	    pipe_works=yes
6315	  fi
6316	  LIBS=$lt_globsym_save_LIBS
6317	  CFLAGS=$lt_globsym_save_CFLAGS
6318	else
6319	  echo "cannot find nm_test_func in $nlist" >&5
6320	fi
6321      else
6322	echo "cannot find nm_test_var in $nlist" >&5
6323      fi
6324    else
6325      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6326    fi
6327  else
6328    echo "$progname: failed program was:" >&5
6329    cat conftest.$ac_ext >&5
6330  fi
6331  rm -rf conftest* conftst*
6332
6333  # Do not use the global_symbol_pipe unless it works.
6334  if test yes = "$pipe_works"; then
6335    break
6336  else
6337    lt_cv_sys_global_symbol_pipe=
6338  fi
6339done
6340
6341fi
6342
6343if test -z "$lt_cv_sys_global_symbol_pipe"; then
6344  lt_cv_sys_global_symbol_to_cdecl=
6345fi
6346if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6348$as_echo "failed" >&6; }
6349else
6350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6351$as_echo "ok" >&6; }
6352fi
6353
6354# Response file support.
6355if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6356  nm_file_list_spec='@'
6357elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6358  nm_file_list_spec='@'
6359fi
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6398$as_echo_n "checking for sysroot... " >&6; }
6399
6400# Check whether --with-sysroot was given.
6401if test "${with_sysroot+set}" = set; then :
6402  withval=$with_sysroot;
6403else
6404  with_sysroot=no
6405fi
6406
6407
6408lt_sysroot=
6409case $with_sysroot in #(
6410 yes)
6411   if test yes = "$GCC"; then
6412     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6413   fi
6414   ;; #(
6415 /*)
6416   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6417   ;; #(
6418 no|'')
6419   ;; #(
6420 *)
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6422$as_echo "$with_sysroot" >&6; }
6423   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6424   ;;
6425esac
6426
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6428$as_echo "${lt_sysroot:-no}" >&6; }
6429
6430
6431
6432
6433
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6435$as_echo_n "checking for a working dd... " >&6; }
6436if ${ac_cv_path_lt_DD+:} false; then :
6437  $as_echo_n "(cached) " >&6
6438else
6439  printf 0123456789abcdef0123456789abcdef >conftest.i
6440cat conftest.i conftest.i >conftest2.i
6441: ${lt_DD:=$DD}
6442if test -z "$lt_DD"; then
6443  ac_path_lt_DD_found=false
6444  # Loop through the user's path and test for each of PROGNAME-LIST
6445  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446for as_dir in $PATH
6447do
6448  IFS=$as_save_IFS
6449  test -z "$as_dir" && as_dir=.
6450    for ac_prog in dd; do
6451    for ac_exec_ext in '' $ac_executable_extensions; do
6452      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6453      as_fn_executable_p "$ac_path_lt_DD" || continue
6454if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6455  cmp -s conftest.i conftest.out \
6456  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6457fi
6458      $ac_path_lt_DD_found && break 3
6459    done
6460  done
6461  done
6462IFS=$as_save_IFS
6463  if test -z "$ac_cv_path_lt_DD"; then
6464    :
6465  fi
6466else
6467  ac_cv_path_lt_DD=$lt_DD
6468fi
6469
6470rm -f conftest.i conftest2.i conftest.out
6471fi
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6473$as_echo "$ac_cv_path_lt_DD" >&6; }
6474
6475
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6477$as_echo_n "checking how to truncate binary pipes... " >&6; }
6478if ${lt_cv_truncate_bin+:} false; then :
6479  $as_echo_n "(cached) " >&6
6480else
6481  printf 0123456789abcdef0123456789abcdef >conftest.i
6482cat conftest.i conftest.i >conftest2.i
6483lt_cv_truncate_bin=
6484if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6485  cmp -s conftest.i conftest.out \
6486  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6487fi
6488rm -f conftest.i conftest2.i conftest.out
6489test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6490fi
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6492$as_echo "$lt_cv_truncate_bin" >&6; }
6493
6494
6495
6496
6497
6498
6499
6500# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6501func_cc_basename ()
6502{
6503    for cc_temp in $*""; do
6504      case $cc_temp in
6505        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6506        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6507        \-*) ;;
6508        *) break;;
6509      esac
6510    done
6511    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6512}
6513
6514# Check whether --enable-libtool-lock was given.
6515if test "${enable_libtool_lock+set}" = set; then :
6516  enableval=$enable_libtool_lock;
6517fi
6518
6519test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6520
6521# Some flags need to be propagated to the compiler or linker for good
6522# libtool support.
6523case $host in
6524ia64-*-hpux*)
6525  # Find out what ABI is being produced by ac_compile, and set mode
6526  # options accordingly.
6527  echo 'int i;' > conftest.$ac_ext
6528  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6529  (eval $ac_compile) 2>&5
6530  ac_status=$?
6531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532  test $ac_status = 0; }; then
6533    case `/usr/bin/file conftest.$ac_objext` in
6534      *ELF-32*)
6535	HPUX_IA64_MODE=32
6536	;;
6537      *ELF-64*)
6538	HPUX_IA64_MODE=64
6539	;;
6540    esac
6541  fi
6542  rm -rf conftest*
6543  ;;
6544*-*-irix6*)
6545  # Find out what ABI is being produced by ac_compile, and set linker
6546  # options accordingly.
6547  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6548  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6549  (eval $ac_compile) 2>&5
6550  ac_status=$?
6551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552  test $ac_status = 0; }; then
6553    if test yes = "$lt_cv_prog_gnu_ld"; then
6554      case `/usr/bin/file conftest.$ac_objext` in
6555	*32-bit*)
6556	  LD="${LD-ld} -melf32bsmip"
6557	  ;;
6558	*N32*)
6559	  LD="${LD-ld} -melf32bmipn32"
6560	  ;;
6561	*64-bit*)
6562	  LD="${LD-ld} -melf64bmip"
6563	;;
6564      esac
6565    else
6566      case `/usr/bin/file conftest.$ac_objext` in
6567	*32-bit*)
6568	  LD="${LD-ld} -32"
6569	  ;;
6570	*N32*)
6571	  LD="${LD-ld} -n32"
6572	  ;;
6573	*64-bit*)
6574	  LD="${LD-ld} -64"
6575	  ;;
6576      esac
6577    fi
6578  fi
6579  rm -rf conftest*
6580  ;;
6581
6582mips64*-*linux*)
6583  # Find out what ABI is being produced by ac_compile, and set linker
6584  # options accordingly.
6585  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6586  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6587  (eval $ac_compile) 2>&5
6588  ac_status=$?
6589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590  test $ac_status = 0; }; then
6591    emul=elf
6592    case `/usr/bin/file conftest.$ac_objext` in
6593      *32-bit*)
6594	emul="${emul}32"
6595	;;
6596      *64-bit*)
6597	emul="${emul}64"
6598	;;
6599    esac
6600    case `/usr/bin/file conftest.$ac_objext` in
6601      *MSB*)
6602	emul="${emul}btsmip"
6603	;;
6604      *LSB*)
6605	emul="${emul}ltsmip"
6606	;;
6607    esac
6608    case `/usr/bin/file conftest.$ac_objext` in
6609      *N32*)
6610	emul="${emul}n32"
6611	;;
6612    esac
6613    LD="${LD-ld} -m $emul"
6614  fi
6615  rm -rf conftest*
6616  ;;
6617
6618x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6619s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6620  # Find out what ABI is being produced by ac_compile, and set linker
6621  # options accordingly.  Note that the listed cases only cover the
6622  # situations where additional linker options are needed (such as when
6623  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6624  # vice versa); the common cases where no linker options are needed do
6625  # not appear in the list.
6626  echo 'int i;' > conftest.$ac_ext
6627  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6628  (eval $ac_compile) 2>&5
6629  ac_status=$?
6630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6631  test $ac_status = 0; }; then
6632    case `/usr/bin/file conftest.o` in
6633      *32-bit*)
6634	case $host in
6635	  x86_64-*kfreebsd*-gnu)
6636	    LD="${LD-ld} -m elf_i386_fbsd"
6637	    ;;
6638	  x86_64-*linux*)
6639	    case `/usr/bin/file conftest.o` in
6640	      *x86-64*)
6641		LD="${LD-ld} -m elf32_x86_64"
6642		;;
6643	      *)
6644		LD="${LD-ld} -m elf_i386"
6645		;;
6646	    esac
6647	    ;;
6648	  powerpc64le-*linux*)
6649	    LD="${LD-ld} -m elf32lppclinux"
6650	    ;;
6651	  powerpc64-*linux*)
6652	    LD="${LD-ld} -m elf32ppclinux"
6653	    ;;
6654	  s390x-*linux*)
6655	    LD="${LD-ld} -m elf_s390"
6656	    ;;
6657	  sparc64-*linux*)
6658	    LD="${LD-ld} -m elf32_sparc"
6659	    ;;
6660	esac
6661	;;
6662      *64-bit*)
6663	case $host in
6664	  x86_64-*kfreebsd*-gnu)
6665	    LD="${LD-ld} -m elf_x86_64_fbsd"
6666	    ;;
6667	  x86_64-*linux*)
6668	    LD="${LD-ld} -m elf_x86_64"
6669	    ;;
6670	  powerpcle-*linux*)
6671	    LD="${LD-ld} -m elf64lppc"
6672	    ;;
6673	  powerpc-*linux*)
6674	    LD="${LD-ld} -m elf64ppc"
6675	    ;;
6676	  s390*-*linux*|s390*-*tpf*)
6677	    LD="${LD-ld} -m elf64_s390"
6678	    ;;
6679	  sparc*-*linux*)
6680	    LD="${LD-ld} -m elf64_sparc"
6681	    ;;
6682	esac
6683	;;
6684    esac
6685  fi
6686  rm -rf conftest*
6687  ;;
6688
6689*-*-sco3.2v5*)
6690  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6691  SAVE_CFLAGS=$CFLAGS
6692  CFLAGS="$CFLAGS -belf"
6693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6694$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6695if ${lt_cv_cc_needs_belf+:} false; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  ac_ext=c
6699ac_cpp='$CPP $CPPFLAGS'
6700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6702ac_compiler_gnu=$ac_cv_c_compiler_gnu
6703
6704     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705/* end confdefs.h.  */
6706
6707int
6708main ()
6709{
6710
6711  ;
6712  return 0;
6713}
6714_ACEOF
6715if ac_fn_c_try_link "$LINENO"; then :
6716  lt_cv_cc_needs_belf=yes
6717else
6718  lt_cv_cc_needs_belf=no
6719fi
6720rm -f core conftest.err conftest.$ac_objext \
6721    conftest$ac_exeext conftest.$ac_ext
6722     ac_ext=c
6723ac_cpp='$CPP $CPPFLAGS'
6724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726ac_compiler_gnu=$ac_cv_c_compiler_gnu
6727
6728fi
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6730$as_echo "$lt_cv_cc_needs_belf" >&6; }
6731  if test yes != "$lt_cv_cc_needs_belf"; then
6732    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6733    CFLAGS=$SAVE_CFLAGS
6734  fi
6735  ;;
6736*-*solaris*)
6737  # Find out what ABI is being produced by ac_compile, and set linker
6738  # options accordingly.
6739  echo 'int i;' > conftest.$ac_ext
6740  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6741  (eval $ac_compile) 2>&5
6742  ac_status=$?
6743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6744  test $ac_status = 0; }; then
6745    case `/usr/bin/file conftest.o` in
6746    *64-bit*)
6747      case $lt_cv_prog_gnu_ld in
6748      yes*)
6749        case $host in
6750        i?86-*-solaris*|x86_64-*-solaris*)
6751          LD="${LD-ld} -m elf_x86_64"
6752          ;;
6753        sparc*-*-solaris*)
6754          LD="${LD-ld} -m elf64_sparc"
6755          ;;
6756        esac
6757        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6758        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6759          LD=${LD-ld}_sol2
6760        fi
6761        ;;
6762      *)
6763	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6764	  LD="${LD-ld} -64"
6765	fi
6766	;;
6767      esac
6768      ;;
6769    esac
6770  fi
6771  rm -rf conftest*
6772  ;;
6773esac
6774
6775need_locks=$enable_libtool_lock
6776
6777if test -n "$ac_tool_prefix"; then
6778  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6779set dummy ${ac_tool_prefix}mt; ac_word=$2
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6781$as_echo_n "checking for $ac_word... " >&6; }
6782if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6783  $as_echo_n "(cached) " >&6
6784else
6785  if test -n "$MANIFEST_TOOL"; then
6786  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6787else
6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791  IFS=$as_save_IFS
6792  test -z "$as_dir" && as_dir=.
6793    for ac_exec_ext in '' $ac_executable_extensions; do
6794  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6797    break 2
6798  fi
6799done
6800  done
6801IFS=$as_save_IFS
6802
6803fi
6804fi
6805MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6806if test -n "$MANIFEST_TOOL"; then
6807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6808$as_echo "$MANIFEST_TOOL" >&6; }
6809else
6810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811$as_echo "no" >&6; }
6812fi
6813
6814
6815fi
6816if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6817  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6818  # Extract the first word of "mt", so it can be a program name with args.
6819set dummy mt; ac_word=$2
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821$as_echo_n "checking for $ac_word... " >&6; }
6822if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6823  $as_echo_n "(cached) " >&6
6824else
6825  if test -n "$ac_ct_MANIFEST_TOOL"; then
6826  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6827else
6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831  IFS=$as_save_IFS
6832  test -z "$as_dir" && as_dir=.
6833    for ac_exec_ext in '' $ac_executable_extensions; do
6834  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6836    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837    break 2
6838  fi
6839done
6840  done
6841IFS=$as_save_IFS
6842
6843fi
6844fi
6845ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6846if test -n "$ac_ct_MANIFEST_TOOL"; then
6847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6848$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6849else
6850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851$as_echo "no" >&6; }
6852fi
6853
6854  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6855    MANIFEST_TOOL=":"
6856  else
6857    case $cross_compiling:$ac_tool_warned in
6858yes:)
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6861ac_tool_warned=yes ;;
6862esac
6863    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6864  fi
6865else
6866  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6867fi
6868
6869test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6871$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6872if ${lt_cv_path_mainfest_tool+:} false; then :
6873  $as_echo_n "(cached) " >&6
6874else
6875  lt_cv_path_mainfest_tool=no
6876  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6877  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6878  cat conftest.err >&5
6879  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6880    lt_cv_path_mainfest_tool=yes
6881  fi
6882  rm -f conftest*
6883fi
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6885$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6886if test yes != "$lt_cv_path_mainfest_tool"; then
6887  MANIFEST_TOOL=:
6888fi
6889
6890
6891
6892
6893
6894
6895  case $host_os in
6896    rhapsody* | darwin*)
6897    if test -n "$ac_tool_prefix"; then
6898  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6899set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901$as_echo_n "checking for $ac_word... " >&6; }
6902if ${ac_cv_prog_DSYMUTIL+:} false; then :
6903  $as_echo_n "(cached) " >&6
6904else
6905  if test -n "$DSYMUTIL"; then
6906  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6907else
6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911  IFS=$as_save_IFS
6912  test -z "$as_dir" && as_dir=.
6913    for ac_exec_ext in '' $ac_executable_extensions; do
6914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917    break 2
6918  fi
6919done
6920  done
6921IFS=$as_save_IFS
6922
6923fi
6924fi
6925DSYMUTIL=$ac_cv_prog_DSYMUTIL
6926if test -n "$DSYMUTIL"; then
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6928$as_echo "$DSYMUTIL" >&6; }
6929else
6930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931$as_echo "no" >&6; }
6932fi
6933
6934
6935fi
6936if test -z "$ac_cv_prog_DSYMUTIL"; then
6937  ac_ct_DSYMUTIL=$DSYMUTIL
6938  # Extract the first word of "dsymutil", so it can be a program name with args.
6939set dummy dsymutil; ac_word=$2
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941$as_echo_n "checking for $ac_word... " >&6; }
6942if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  if test -n "$ac_ct_DSYMUTIL"; then
6946  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6947else
6948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951  IFS=$as_save_IFS
6952  test -z "$as_dir" && as_dir=.
6953    for ac_exec_ext in '' $ac_executable_extensions; do
6954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957    break 2
6958  fi
6959done
6960  done
6961IFS=$as_save_IFS
6962
6963fi
6964fi
6965ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6966if test -n "$ac_ct_DSYMUTIL"; then
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6968$as_echo "$ac_ct_DSYMUTIL" >&6; }
6969else
6970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971$as_echo "no" >&6; }
6972fi
6973
6974  if test "x$ac_ct_DSYMUTIL" = x; then
6975    DSYMUTIL=":"
6976  else
6977    case $cross_compiling:$ac_tool_warned in
6978yes:)
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981ac_tool_warned=yes ;;
6982esac
6983    DSYMUTIL=$ac_ct_DSYMUTIL
6984  fi
6985else
6986  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6987fi
6988
6989    if test -n "$ac_tool_prefix"; then
6990  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6991set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993$as_echo_n "checking for $ac_word... " >&6; }
6994if ${ac_cv_prog_NMEDIT+:} false; then :
6995  $as_echo_n "(cached) " >&6
6996else
6997  if test -n "$NMEDIT"; then
6998  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6999else
7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003  IFS=$as_save_IFS
7004  test -z "$as_dir" && as_dir=.
7005    for ac_exec_ext in '' $ac_executable_extensions; do
7006  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7008    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009    break 2
7010  fi
7011done
7012  done
7013IFS=$as_save_IFS
7014
7015fi
7016fi
7017NMEDIT=$ac_cv_prog_NMEDIT
7018if test -n "$NMEDIT"; then
7019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7020$as_echo "$NMEDIT" >&6; }
7021else
7022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023$as_echo "no" >&6; }
7024fi
7025
7026
7027fi
7028if test -z "$ac_cv_prog_NMEDIT"; then
7029  ac_ct_NMEDIT=$NMEDIT
7030  # Extract the first word of "nmedit", so it can be a program name with args.
7031set dummy nmedit; ac_word=$2
7032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033$as_echo_n "checking for $ac_word... " >&6; }
7034if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7035  $as_echo_n "(cached) " >&6
7036else
7037  if test -n "$ac_ct_NMEDIT"; then
7038  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7039else
7040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041for as_dir in $PATH
7042do
7043  IFS=$as_save_IFS
7044  test -z "$as_dir" && as_dir=.
7045    for ac_exec_ext in '' $ac_executable_extensions; do
7046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049    break 2
7050  fi
7051done
7052  done
7053IFS=$as_save_IFS
7054
7055fi
7056fi
7057ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7058if test -n "$ac_ct_NMEDIT"; then
7059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7060$as_echo "$ac_ct_NMEDIT" >&6; }
7061else
7062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063$as_echo "no" >&6; }
7064fi
7065
7066  if test "x$ac_ct_NMEDIT" = x; then
7067    NMEDIT=":"
7068  else
7069    case $cross_compiling:$ac_tool_warned in
7070yes:)
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073ac_tool_warned=yes ;;
7074esac
7075    NMEDIT=$ac_ct_NMEDIT
7076  fi
7077else
7078  NMEDIT="$ac_cv_prog_NMEDIT"
7079fi
7080
7081    if test -n "$ac_tool_prefix"; then
7082  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7083set dummy ${ac_tool_prefix}lipo; ac_word=$2
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085$as_echo_n "checking for $ac_word... " >&6; }
7086if ${ac_cv_prog_LIPO+:} false; then :
7087  $as_echo_n "(cached) " >&6
7088else
7089  if test -n "$LIPO"; then
7090  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7091else
7092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093for as_dir in $PATH
7094do
7095  IFS=$as_save_IFS
7096  test -z "$as_dir" && as_dir=.
7097    for ac_exec_ext in '' $ac_executable_extensions; do
7098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7099    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101    break 2
7102  fi
7103done
7104  done
7105IFS=$as_save_IFS
7106
7107fi
7108fi
7109LIPO=$ac_cv_prog_LIPO
7110if test -n "$LIPO"; then
7111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7112$as_echo "$LIPO" >&6; }
7113else
7114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115$as_echo "no" >&6; }
7116fi
7117
7118
7119fi
7120if test -z "$ac_cv_prog_LIPO"; then
7121  ac_ct_LIPO=$LIPO
7122  # Extract the first word of "lipo", so it can be a program name with args.
7123set dummy lipo; ac_word=$2
7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125$as_echo_n "checking for $ac_word... " >&6; }
7126if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7127  $as_echo_n "(cached) " >&6
7128else
7129  if test -n "$ac_ct_LIPO"; then
7130  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7131else
7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135  IFS=$as_save_IFS
7136  test -z "$as_dir" && as_dir=.
7137    for ac_exec_ext in '' $ac_executable_extensions; do
7138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139    ac_cv_prog_ac_ct_LIPO="lipo"
7140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141    break 2
7142  fi
7143done
7144  done
7145IFS=$as_save_IFS
7146
7147fi
7148fi
7149ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7150if test -n "$ac_ct_LIPO"; then
7151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7152$as_echo "$ac_ct_LIPO" >&6; }
7153else
7154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155$as_echo "no" >&6; }
7156fi
7157
7158  if test "x$ac_ct_LIPO" = x; then
7159    LIPO=":"
7160  else
7161    case $cross_compiling:$ac_tool_warned in
7162yes:)
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7165ac_tool_warned=yes ;;
7166esac
7167    LIPO=$ac_ct_LIPO
7168  fi
7169else
7170  LIPO="$ac_cv_prog_LIPO"
7171fi
7172
7173    if test -n "$ac_tool_prefix"; then
7174  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7175set dummy ${ac_tool_prefix}otool; ac_word=$2
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177$as_echo_n "checking for $ac_word... " >&6; }
7178if ${ac_cv_prog_OTOOL+:} false; then :
7179  $as_echo_n "(cached) " >&6
7180else
7181  if test -n "$OTOOL"; then
7182  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7183else
7184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185for as_dir in $PATH
7186do
7187  IFS=$as_save_IFS
7188  test -z "$as_dir" && as_dir=.
7189    for ac_exec_ext in '' $ac_executable_extensions; do
7190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7191    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7193    break 2
7194  fi
7195done
7196  done
7197IFS=$as_save_IFS
7198
7199fi
7200fi
7201OTOOL=$ac_cv_prog_OTOOL
7202if test -n "$OTOOL"; then
7203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7204$as_echo "$OTOOL" >&6; }
7205else
7206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207$as_echo "no" >&6; }
7208fi
7209
7210
7211fi
7212if test -z "$ac_cv_prog_OTOOL"; then
7213  ac_ct_OTOOL=$OTOOL
7214  # Extract the first word of "otool", so it can be a program name with args.
7215set dummy otool; ac_word=$2
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7217$as_echo_n "checking for $ac_word... " >&6; }
7218if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7219  $as_echo_n "(cached) " >&6
7220else
7221  if test -n "$ac_ct_OTOOL"; then
7222  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7223else
7224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225for as_dir in $PATH
7226do
7227  IFS=$as_save_IFS
7228  test -z "$as_dir" && as_dir=.
7229    for ac_exec_ext in '' $ac_executable_extensions; do
7230  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231    ac_cv_prog_ac_ct_OTOOL="otool"
7232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233    break 2
7234  fi
7235done
7236  done
7237IFS=$as_save_IFS
7238
7239fi
7240fi
7241ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7242if test -n "$ac_ct_OTOOL"; then
7243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7244$as_echo "$ac_ct_OTOOL" >&6; }
7245else
7246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247$as_echo "no" >&6; }
7248fi
7249
7250  if test "x$ac_ct_OTOOL" = x; then
7251    OTOOL=":"
7252  else
7253    case $cross_compiling:$ac_tool_warned in
7254yes:)
7255{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7257ac_tool_warned=yes ;;
7258esac
7259    OTOOL=$ac_ct_OTOOL
7260  fi
7261else
7262  OTOOL="$ac_cv_prog_OTOOL"
7263fi
7264
7265    if test -n "$ac_tool_prefix"; then
7266  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7267set dummy ${ac_tool_prefix}otool64; ac_word=$2
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269$as_echo_n "checking for $ac_word... " >&6; }
7270if ${ac_cv_prog_OTOOL64+:} false; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  if test -n "$OTOOL64"; then
7274  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7275else
7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279  IFS=$as_save_IFS
7280  test -z "$as_dir" && as_dir=.
7281    for ac_exec_ext in '' $ac_executable_extensions; do
7282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285    break 2
7286  fi
7287done
7288  done
7289IFS=$as_save_IFS
7290
7291fi
7292fi
7293OTOOL64=$ac_cv_prog_OTOOL64
7294if test -n "$OTOOL64"; then
7295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7296$as_echo "$OTOOL64" >&6; }
7297else
7298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299$as_echo "no" >&6; }
7300fi
7301
7302
7303fi
7304if test -z "$ac_cv_prog_OTOOL64"; then
7305  ac_ct_OTOOL64=$OTOOL64
7306  # Extract the first word of "otool64", so it can be a program name with args.
7307set dummy otool64; ac_word=$2
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309$as_echo_n "checking for $ac_word... " >&6; }
7310if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  if test -n "$ac_ct_OTOOL64"; then
7314  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7315else
7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319  IFS=$as_save_IFS
7320  test -z "$as_dir" && as_dir=.
7321    for ac_exec_ext in '' $ac_executable_extensions; do
7322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323    ac_cv_prog_ac_ct_OTOOL64="otool64"
7324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325    break 2
7326  fi
7327done
7328  done
7329IFS=$as_save_IFS
7330
7331fi
7332fi
7333ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7334if test -n "$ac_ct_OTOOL64"; then
7335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7336$as_echo "$ac_ct_OTOOL64" >&6; }
7337else
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339$as_echo "no" >&6; }
7340fi
7341
7342  if test "x$ac_ct_OTOOL64" = x; then
7343    OTOOL64=":"
7344  else
7345    case $cross_compiling:$ac_tool_warned in
7346yes:)
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7349ac_tool_warned=yes ;;
7350esac
7351    OTOOL64=$ac_ct_OTOOL64
7352  fi
7353else
7354  OTOOL64="$ac_cv_prog_OTOOL64"
7355fi
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7384$as_echo_n "checking for -single_module linker flag... " >&6; }
7385if ${lt_cv_apple_cc_single_mod+:} false; then :
7386  $as_echo_n "(cached) " >&6
7387else
7388  lt_cv_apple_cc_single_mod=no
7389      if test -z "$LT_MULTI_MODULE"; then
7390	# By default we will add the -single_module flag. You can override
7391	# by either setting the environment variable LT_MULTI_MODULE
7392	# non-empty at configure time, or by adding -multi_module to the
7393	# link flags.
7394	rm -rf libconftest.dylib*
7395	echo "int foo(void){return 1;}" > conftest.c
7396	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7397-dynamiclib -Wl,-single_module conftest.c" >&5
7398	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7399	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7400        _lt_result=$?
7401	# If there is a non-empty error log, and "single_module"
7402	# appears in it, assume the flag caused a linker warning
7403        if test -s conftest.err && $GREP single_module conftest.err; then
7404	  cat conftest.err >&5
7405	# Otherwise, if the output was created with a 0 exit code from
7406	# the compiler, it worked.
7407	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7408	  lt_cv_apple_cc_single_mod=yes
7409	else
7410	  cat conftest.err >&5
7411	fi
7412	rm -rf libconftest.dylib*
7413	rm -f conftest.*
7414      fi
7415fi
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7417$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7418
7419    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7420$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7421if ${lt_cv_ld_exported_symbols_list+:} false; then :
7422  $as_echo_n "(cached) " >&6
7423else
7424  lt_cv_ld_exported_symbols_list=no
7425      save_LDFLAGS=$LDFLAGS
7426      echo "_main" > conftest.sym
7427      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7428      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429/* end confdefs.h.  */
7430
7431int
7432main ()
7433{
7434
7435  ;
7436  return 0;
7437}
7438_ACEOF
7439if ac_fn_c_try_link "$LINENO"; then :
7440  lt_cv_ld_exported_symbols_list=yes
7441else
7442  lt_cv_ld_exported_symbols_list=no
7443fi
7444rm -f core conftest.err conftest.$ac_objext \
7445    conftest$ac_exeext conftest.$ac_ext
7446	LDFLAGS=$save_LDFLAGS
7447
7448fi
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7450$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7451
7452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7453$as_echo_n "checking for -force_load linker flag... " >&6; }
7454if ${lt_cv_ld_force_load+:} false; then :
7455  $as_echo_n "(cached) " >&6
7456else
7457  lt_cv_ld_force_load=no
7458      cat > conftest.c << _LT_EOF
7459int forced_loaded() { return 2;}
7460_LT_EOF
7461      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7462      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7463      echo "$AR cru libconftest.a conftest.o" >&5
7464      $AR cru libconftest.a conftest.o 2>&5
7465      echo "$RANLIB libconftest.a" >&5
7466      $RANLIB libconftest.a 2>&5
7467      cat > conftest.c << _LT_EOF
7468int main() { return 0;}
7469_LT_EOF
7470      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7471      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7472      _lt_result=$?
7473      if test -s conftest.err && $GREP force_load conftest.err; then
7474	cat conftest.err >&5
7475      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7476	lt_cv_ld_force_load=yes
7477      else
7478	cat conftest.err >&5
7479      fi
7480        rm -f conftest.err libconftest.a conftest conftest.c
7481        rm -rf conftest.dSYM
7482
7483fi
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7485$as_echo "$lt_cv_ld_force_load" >&6; }
7486    case $host_os in
7487    rhapsody* | darwin1.[012])
7488      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7489    darwin1.*)
7490      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7491    darwin*) # darwin 5.x on
7492      # if running on 10.5 or later, the deployment target defaults
7493      # to the OS version, if on x86, and 10.4, the deployment
7494      # target defaults to 10.4. Don't you love it?
7495      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7496	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7497	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7498	10.[012][,.]*)
7499	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7500	10.*)
7501	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7502      esac
7503    ;;
7504  esac
7505    if test yes = "$lt_cv_apple_cc_single_mod"; then
7506      _lt_dar_single_mod='$single_module'
7507    fi
7508    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7509      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7510    else
7511      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7512    fi
7513    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7514      _lt_dsymutil='~$DSYMUTIL $lib || :'
7515    else
7516      _lt_dsymutil=
7517    fi
7518    ;;
7519  esac
7520
7521# func_munge_path_list VARIABLE PATH
7522# -----------------------------------
7523# VARIABLE is name of variable containing _space_ separated list of
7524# directories to be munged by the contents of PATH, which is string
7525# having a format:
7526# "DIR[:DIR]:"
7527#       string "DIR[ DIR]" will be prepended to VARIABLE
7528# ":DIR[:DIR]"
7529#       string "DIR[ DIR]" will be appended to VARIABLE
7530# "DIRP[:DIRP]::[DIRA:]DIRA"
7531#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7532#       "DIRA[ DIRA]" will be appended to VARIABLE
7533# "DIR[:DIR]"
7534#       VARIABLE will be replaced by "DIR[ DIR]"
7535func_munge_path_list ()
7536{
7537    case x$2 in
7538    x)
7539        ;;
7540    *:)
7541        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7542        ;;
7543    x:*)
7544        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7545        ;;
7546    *::*)
7547        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7548        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7549        ;;
7550    *)
7551        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7552        ;;
7553    esac
7554}
7555
7556ac_ext=c
7557ac_cpp='$CPP $CPPFLAGS'
7558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7560ac_compiler_gnu=$ac_cv_c_compiler_gnu
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7562$as_echo_n "checking how to run the C preprocessor... " >&6; }
7563# On Suns, sometimes $CPP names a directory.
7564if test -n "$CPP" && test -d "$CPP"; then
7565  CPP=
7566fi
7567if test -z "$CPP"; then
7568  if ${ac_cv_prog_CPP+:} false; then :
7569  $as_echo_n "(cached) " >&6
7570else
7571      # Double quotes because CPP needs to be expanded
7572    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7573    do
7574      ac_preproc_ok=false
7575for ac_c_preproc_warn_flag in '' yes
7576do
7577  # Use a header file that comes with gcc, so configuring glibc
7578  # with a fresh cross-compiler works.
7579  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7580  # <limits.h> exists even on freestanding compilers.
7581  # On the NeXT, cc -E runs the code through the compiler's parser,
7582  # not just through cpp. "Syntax error" is here to catch this case.
7583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584/* end confdefs.h.  */
7585#ifdef __STDC__
7586# include <limits.h>
7587#else
7588# include <assert.h>
7589#endif
7590		     Syntax error
7591_ACEOF
7592if ac_fn_c_try_cpp "$LINENO"; then :
7593
7594else
7595  # Broken: fails on valid input.
7596continue
7597fi
7598rm -f conftest.err conftest.i conftest.$ac_ext
7599
7600  # OK, works on sane cases.  Now check whether nonexistent headers
7601  # can be detected and how.
7602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603/* end confdefs.h.  */
7604#include <ac_nonexistent.h>
7605_ACEOF
7606if ac_fn_c_try_cpp "$LINENO"; then :
7607  # Broken: success on invalid input.
7608continue
7609else
7610  # Passes both tests.
7611ac_preproc_ok=:
7612break
7613fi
7614rm -f conftest.err conftest.i conftest.$ac_ext
7615
7616done
7617# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7618rm -f conftest.i conftest.err conftest.$ac_ext
7619if $ac_preproc_ok; then :
7620  break
7621fi
7622
7623    done
7624    ac_cv_prog_CPP=$CPP
7625
7626fi
7627  CPP=$ac_cv_prog_CPP
7628else
7629  ac_cv_prog_CPP=$CPP
7630fi
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7632$as_echo "$CPP" >&6; }
7633ac_preproc_ok=false
7634for ac_c_preproc_warn_flag in '' yes
7635do
7636  # Use a header file that comes with gcc, so configuring glibc
7637  # with a fresh cross-compiler works.
7638  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7639  # <limits.h> exists even on freestanding compilers.
7640  # On the NeXT, cc -E runs the code through the compiler's parser,
7641  # not just through cpp. "Syntax error" is here to catch this case.
7642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643/* end confdefs.h.  */
7644#ifdef __STDC__
7645# include <limits.h>
7646#else
7647# include <assert.h>
7648#endif
7649		     Syntax error
7650_ACEOF
7651if ac_fn_c_try_cpp "$LINENO"; then :
7652
7653else
7654  # Broken: fails on valid input.
7655continue
7656fi
7657rm -f conftest.err conftest.i conftest.$ac_ext
7658
7659  # OK, works on sane cases.  Now check whether nonexistent headers
7660  # can be detected and how.
7661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662/* end confdefs.h.  */
7663#include <ac_nonexistent.h>
7664_ACEOF
7665if ac_fn_c_try_cpp "$LINENO"; then :
7666  # Broken: success on invalid input.
7667continue
7668else
7669  # Passes both tests.
7670ac_preproc_ok=:
7671break
7672fi
7673rm -f conftest.err conftest.i conftest.$ac_ext
7674
7675done
7676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7677rm -f conftest.i conftest.err conftest.$ac_ext
7678if $ac_preproc_ok; then :
7679
7680else
7681  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7682$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7683as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7684See \`config.log' for more details" "$LINENO" 5; }
7685fi
7686
7687ac_ext=c
7688ac_cpp='$CPP $CPPFLAGS'
7689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691ac_compiler_gnu=$ac_cv_c_compiler_gnu
7692
7693
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7695$as_echo_n "checking for ANSI C header files... " >&6; }
7696if ${ac_cv_header_stdc+:} false; then :
7697  $as_echo_n "(cached) " >&6
7698else
7699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700/* end confdefs.h.  */
7701#include <stdlib.h>
7702#include <stdarg.h>
7703#include <string.h>
7704#include <float.h>
7705
7706int
7707main ()
7708{
7709
7710  ;
7711  return 0;
7712}
7713_ACEOF
7714if ac_fn_c_try_compile "$LINENO"; then :
7715  ac_cv_header_stdc=yes
7716else
7717  ac_cv_header_stdc=no
7718fi
7719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720
7721if test $ac_cv_header_stdc = yes; then
7722  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724/* end confdefs.h.  */
7725#include <string.h>
7726
7727_ACEOF
7728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7729  $EGREP "memchr" >/dev/null 2>&1; then :
7730
7731else
7732  ac_cv_header_stdc=no
7733fi
7734rm -f conftest*
7735
7736fi
7737
7738if test $ac_cv_header_stdc = yes; then
7739  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741/* end confdefs.h.  */
7742#include <stdlib.h>
7743
7744_ACEOF
7745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7746  $EGREP "free" >/dev/null 2>&1; then :
7747
7748else
7749  ac_cv_header_stdc=no
7750fi
7751rm -f conftest*
7752
7753fi
7754
7755if test $ac_cv_header_stdc = yes; then
7756  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7757  if test "$cross_compiling" = yes; then :
7758  :
7759else
7760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761/* end confdefs.h.  */
7762#include <ctype.h>
7763#include <stdlib.h>
7764#if ((' ' & 0x0FF) == 0x020)
7765# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7766# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7767#else
7768# define ISLOWER(c) \
7769		   (('a' <= (c) && (c) <= 'i') \
7770		     || ('j' <= (c) && (c) <= 'r') \
7771		     || ('s' <= (c) && (c) <= 'z'))
7772# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7773#endif
7774
7775#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7776int
7777main ()
7778{
7779  int i;
7780  for (i = 0; i < 256; i++)
7781    if (XOR (islower (i), ISLOWER (i))
7782	|| toupper (i) != TOUPPER (i))
7783      return 2;
7784  return 0;
7785}
7786_ACEOF
7787if ac_fn_c_try_run "$LINENO"; then :
7788
7789else
7790  ac_cv_header_stdc=no
7791fi
7792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7793  conftest.$ac_objext conftest.beam conftest.$ac_ext
7794fi
7795
7796fi
7797fi
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7799$as_echo "$ac_cv_header_stdc" >&6; }
7800if test $ac_cv_header_stdc = yes; then
7801
7802$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7803
7804fi
7805
7806# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7807for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7808		  inttypes.h stdint.h unistd.h
7809do :
7810  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7811ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7812"
7813if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7814  cat >>confdefs.h <<_ACEOF
7815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7816_ACEOF
7817
7818fi
7819
7820done
7821
7822
7823for ac_header in dlfcn.h
7824do :
7825  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7826"
7827if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7828  cat >>confdefs.h <<_ACEOF
7829#define HAVE_DLFCN_H 1
7830_ACEOF
7831
7832fi
7833
7834done
7835
7836
7837
7838
7839
7840# Set options
7841
7842
7843
7844        enable_dlopen=no
7845
7846
7847  enable_win32_dll=no
7848
7849
7850            # Check whether --enable-shared was given.
7851if test "${enable_shared+set}" = set; then :
7852  enableval=$enable_shared; p=${PACKAGE-default}
7853    case $enableval in
7854    yes) enable_shared=yes ;;
7855    no) enable_shared=no ;;
7856    *)
7857      enable_shared=no
7858      # Look at the argument we got.  We use all the common list separators.
7859      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7860      for pkg in $enableval; do
7861	IFS=$lt_save_ifs
7862	if test "X$pkg" = "X$p"; then
7863	  enable_shared=yes
7864	fi
7865      done
7866      IFS=$lt_save_ifs
7867      ;;
7868    esac
7869else
7870  enable_shared=yes
7871fi
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881  # Check whether --enable-static was given.
7882if test "${enable_static+set}" = set; then :
7883  enableval=$enable_static; p=${PACKAGE-default}
7884    case $enableval in
7885    yes) enable_static=yes ;;
7886    no) enable_static=no ;;
7887    *)
7888     enable_static=no
7889      # Look at the argument we got.  We use all the common list separators.
7890      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7891      for pkg in $enableval; do
7892	IFS=$lt_save_ifs
7893	if test "X$pkg" = "X$p"; then
7894	  enable_static=yes
7895	fi
7896      done
7897      IFS=$lt_save_ifs
7898      ;;
7899    esac
7900else
7901  enable_static=yes
7902fi
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913# Check whether --with-pic was given.
7914if test "${with_pic+set}" = set; then :
7915  withval=$with_pic; lt_p=${PACKAGE-default}
7916    case $withval in
7917    yes|no) pic_mode=$withval ;;
7918    *)
7919      pic_mode=default
7920      # Look at the argument we got.  We use all the common list separators.
7921      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7922      for lt_pkg in $withval; do
7923	IFS=$lt_save_ifs
7924	if test "X$lt_pkg" = "X$lt_p"; then
7925	  pic_mode=yes
7926	fi
7927      done
7928      IFS=$lt_save_ifs
7929      ;;
7930    esac
7931else
7932  pic_mode=default
7933fi
7934
7935
7936
7937
7938
7939
7940
7941
7942  # Check whether --enable-fast-install was given.
7943if test "${enable_fast_install+set}" = set; then :
7944  enableval=$enable_fast_install; p=${PACKAGE-default}
7945    case $enableval in
7946    yes) enable_fast_install=yes ;;
7947    no) enable_fast_install=no ;;
7948    *)
7949      enable_fast_install=no
7950      # Look at the argument we got.  We use all the common list separators.
7951      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7952      for pkg in $enableval; do
7953	IFS=$lt_save_ifs
7954	if test "X$pkg" = "X$p"; then
7955	  enable_fast_install=yes
7956	fi
7957      done
7958      IFS=$lt_save_ifs
7959      ;;
7960    esac
7961else
7962  enable_fast_install=yes
7963fi
7964
7965
7966
7967
7968
7969
7970
7971
7972  shared_archive_member_spec=
7973case $host,$enable_shared in
7974power*-*-aix[5-9]*,yes)
7975  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7976$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7977
7978# Check whether --with-aix-soname was given.
7979if test "${with_aix_soname+set}" = set; then :
7980  withval=$with_aix_soname; case $withval in
7981    aix|svr4|both)
7982      ;;
7983    *)
7984      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7985      ;;
7986    esac
7987    lt_cv_with_aix_soname=$with_aix_soname
7988else
7989  if ${lt_cv_with_aix_soname+:} false; then :
7990  $as_echo_n "(cached) " >&6
7991else
7992  lt_cv_with_aix_soname=aix
7993fi
7994
7995    with_aix_soname=$lt_cv_with_aix_soname
7996fi
7997
7998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7999$as_echo "$with_aix_soname" >&6; }
8000  if test aix != "$with_aix_soname"; then
8001    # For the AIX way of multilib, we name the shared archive member
8002    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8003    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8004    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8005    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8006    if test 64 = "${OBJECT_MODE-32}"; then
8007      shared_archive_member_spec=shr_64
8008    else
8009      shared_archive_member_spec=shr
8010    fi
8011  fi
8012  ;;
8013*)
8014  with_aix_soname=aix
8015  ;;
8016esac
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027# This can be used to rebuild libtool when needed
8028LIBTOOL_DEPS=$ltmain
8029
8030# Always use our own libtool.
8031LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062test -z "$LN_S" && LN_S="ln -s"
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077if test -n "${ZSH_VERSION+set}"; then
8078   setopt NO_GLOB_SUBST
8079fi
8080
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8082$as_echo_n "checking for objdir... " >&6; }
8083if ${lt_cv_objdir+:} false; then :
8084  $as_echo_n "(cached) " >&6
8085else
8086  rm -f .libs 2>/dev/null
8087mkdir .libs 2>/dev/null
8088if test -d .libs; then
8089  lt_cv_objdir=.libs
8090else
8091  # MS-DOS does not allow filenames that begin with a dot.
8092  lt_cv_objdir=_libs
8093fi
8094rmdir .libs 2>/dev/null
8095fi
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8097$as_echo "$lt_cv_objdir" >&6; }
8098objdir=$lt_cv_objdir
8099
8100
8101
8102
8103
8104cat >>confdefs.h <<_ACEOF
8105#define LT_OBJDIR "$lt_cv_objdir/"
8106_ACEOF
8107
8108
8109
8110
8111case $host_os in
8112aix3*)
8113  # AIX sometimes has problems with the GCC collect2 program.  For some
8114  # reason, if we set the COLLECT_NAMES environment variable, the problems
8115  # vanish in a puff of smoke.
8116  if test set != "${COLLECT_NAMES+set}"; then
8117    COLLECT_NAMES=
8118    export COLLECT_NAMES
8119  fi
8120  ;;
8121esac
8122
8123# Global variables:
8124ofile=libtool
8125can_build_shared=yes
8126
8127# All known linkers require a '.a' archive for static linking (except MSVC,
8128# which needs '.lib').
8129libext=a
8130
8131with_gnu_ld=$lt_cv_prog_gnu_ld
8132
8133old_CC=$CC
8134old_CFLAGS=$CFLAGS
8135
8136# Set sane defaults for various variables
8137test -z "$CC" && CC=cc
8138test -z "$LTCC" && LTCC=$CC
8139test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8140test -z "$LD" && LD=ld
8141test -z "$ac_objext" && ac_objext=o
8142
8143func_cc_basename $compiler
8144cc_basename=$func_cc_basename_result
8145
8146
8147# Only perform the check for file, if the check method requires it
8148test -z "$MAGIC_CMD" && MAGIC_CMD=file
8149case $deplibs_check_method in
8150file_magic*)
8151  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8153$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8154if ${lt_cv_path_MAGIC_CMD+:} false; then :
8155  $as_echo_n "(cached) " >&6
8156else
8157  case $MAGIC_CMD in
8158[\\/*] |  ?:[\\/]*)
8159  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8160  ;;
8161*)
8162  lt_save_MAGIC_CMD=$MAGIC_CMD
8163  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8164  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8165  for ac_dir in $ac_dummy; do
8166    IFS=$lt_save_ifs
8167    test -z "$ac_dir" && ac_dir=.
8168    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8169      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8170      if test -n "$file_magic_test_file"; then
8171	case $deplibs_check_method in
8172	"file_magic "*)
8173	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8174	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8175	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8176	    $EGREP "$file_magic_regex" > /dev/null; then
8177	    :
8178	  else
8179	    cat <<_LT_EOF 1>&2
8180
8181*** Warning: the command libtool uses to detect shared libraries,
8182*** $file_magic_cmd, produces output that libtool cannot recognize.
8183*** The result is that libtool may fail to recognize shared libraries
8184*** as such.  This will affect the creation of libtool libraries that
8185*** depend on shared libraries, but programs linked with such libtool
8186*** libraries will work regardless of this problem.  Nevertheless, you
8187*** may want to report the problem to your system manager and/or to
8188*** bug-libtool@gnu.org
8189
8190_LT_EOF
8191	  fi ;;
8192	esac
8193      fi
8194      break
8195    fi
8196  done
8197  IFS=$lt_save_ifs
8198  MAGIC_CMD=$lt_save_MAGIC_CMD
8199  ;;
8200esac
8201fi
8202
8203MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8204if test -n "$MAGIC_CMD"; then
8205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8206$as_echo "$MAGIC_CMD" >&6; }
8207else
8208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209$as_echo "no" >&6; }
8210fi
8211
8212
8213
8214
8215
8216if test -z "$lt_cv_path_MAGIC_CMD"; then
8217  if test -n "$ac_tool_prefix"; then
8218    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8219$as_echo_n "checking for file... " >&6; }
8220if ${lt_cv_path_MAGIC_CMD+:} false; then :
8221  $as_echo_n "(cached) " >&6
8222else
8223  case $MAGIC_CMD in
8224[\\/*] |  ?:[\\/]*)
8225  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8226  ;;
8227*)
8228  lt_save_MAGIC_CMD=$MAGIC_CMD
8229  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8230  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8231  for ac_dir in $ac_dummy; do
8232    IFS=$lt_save_ifs
8233    test -z "$ac_dir" && ac_dir=.
8234    if test -f "$ac_dir/file"; then
8235      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8236      if test -n "$file_magic_test_file"; then
8237	case $deplibs_check_method in
8238	"file_magic "*)
8239	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8240	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8241	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8242	    $EGREP "$file_magic_regex" > /dev/null; then
8243	    :
8244	  else
8245	    cat <<_LT_EOF 1>&2
8246
8247*** Warning: the command libtool uses to detect shared libraries,
8248*** $file_magic_cmd, produces output that libtool cannot recognize.
8249*** The result is that libtool may fail to recognize shared libraries
8250*** as such.  This will affect the creation of libtool libraries that
8251*** depend on shared libraries, but programs linked with such libtool
8252*** libraries will work regardless of this problem.  Nevertheless, you
8253*** may want to report the problem to your system manager and/or to
8254*** bug-libtool@gnu.org
8255
8256_LT_EOF
8257	  fi ;;
8258	esac
8259      fi
8260      break
8261    fi
8262  done
8263  IFS=$lt_save_ifs
8264  MAGIC_CMD=$lt_save_MAGIC_CMD
8265  ;;
8266esac
8267fi
8268
8269MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8270if test -n "$MAGIC_CMD"; then
8271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8272$as_echo "$MAGIC_CMD" >&6; }
8273else
8274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275$as_echo "no" >&6; }
8276fi
8277
8278
8279  else
8280    MAGIC_CMD=:
8281  fi
8282fi
8283
8284  fi
8285  ;;
8286esac
8287
8288# Use C for the default configuration in the libtool script
8289
8290lt_save_CC=$CC
8291ac_ext=c
8292ac_cpp='$CPP $CPPFLAGS'
8293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296
8297
8298# Source file extension for C test sources.
8299ac_ext=c
8300
8301# Object file extension for compiled C test sources.
8302objext=o
8303objext=$objext
8304
8305# Code to be used in simple compile tests
8306lt_simple_compile_test_code="int some_variable = 0;"
8307
8308# Code to be used in simple link tests
8309lt_simple_link_test_code='int main(){return(0);}'
8310
8311
8312
8313
8314
8315
8316
8317# If no C compiler was specified, use CC.
8318LTCC=${LTCC-"$CC"}
8319
8320# If no C compiler flags were specified, use CFLAGS.
8321LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8322
8323# Allow CC to be a program name with arguments.
8324compiler=$CC
8325
8326# Save the default compiler, since it gets overwritten when the other
8327# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8328compiler_DEFAULT=$CC
8329
8330# save warnings/boilerplate of simple test code
8331ac_outfile=conftest.$ac_objext
8332echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8333eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8334_lt_compiler_boilerplate=`cat conftest.err`
8335$RM conftest*
8336
8337ac_outfile=conftest.$ac_objext
8338echo "$lt_simple_link_test_code" >conftest.$ac_ext
8339eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8340_lt_linker_boilerplate=`cat conftest.err`
8341$RM -r conftest*
8342
8343
8344if test -n "$compiler"; then
8345
8346lt_prog_compiler_no_builtin_flag=
8347
8348if test yes = "$GCC"; then
8349  case $cc_basename in
8350  nvcc*)
8351    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8352  *)
8353    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8354  esac
8355
8356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8357$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8358if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8359  $as_echo_n "(cached) " >&6
8360else
8361  lt_cv_prog_compiler_rtti_exceptions=no
8362   ac_outfile=conftest.$ac_objext
8363   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8364   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8365   # Insert the option either (1) after the last *FLAGS variable, or
8366   # (2) before a word containing "conftest.", or (3) at the end.
8367   # Note that $ac_compile itself does not contain backslashes and begins
8368   # with a dollar sign (not a hyphen), so the echo should work correctly.
8369   # The option is referenced via a variable to avoid confusing sed.
8370   lt_compile=`echo "$ac_compile" | $SED \
8371   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8372   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8373   -e 's:$: $lt_compiler_flag:'`
8374   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8375   (eval "$lt_compile" 2>conftest.err)
8376   ac_status=$?
8377   cat conftest.err >&5
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   if (exit $ac_status) && test -s "$ac_outfile"; then
8380     # The compiler can only warn and ignore the option if not recognized
8381     # So say no if there are warnings other than the usual output.
8382     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8383     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8384     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8385       lt_cv_prog_compiler_rtti_exceptions=yes
8386     fi
8387   fi
8388   $RM conftest*
8389
8390fi
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8392$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8393
8394if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8395    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8396else
8397    :
8398fi
8399
8400fi
8401
8402
8403
8404
8405
8406
8407  lt_prog_compiler_wl=
8408lt_prog_compiler_pic=
8409lt_prog_compiler_static=
8410
8411
8412  if test yes = "$GCC"; then
8413    lt_prog_compiler_wl='-Wl,'
8414    lt_prog_compiler_static='-static'
8415
8416    case $host_os in
8417      aix*)
8418      # All AIX code is PIC.
8419      if test ia64 = "$host_cpu"; then
8420	# AIX 5 now supports IA64 processor
8421	lt_prog_compiler_static='-Bstatic'
8422      fi
8423      lt_prog_compiler_pic='-fPIC'
8424      ;;
8425
8426    amigaos*)
8427      case $host_cpu in
8428      powerpc)
8429            # see comment about AmigaOS4 .so support
8430            lt_prog_compiler_pic='-fPIC'
8431        ;;
8432      m68k)
8433            # FIXME: we need at least 68020 code to build shared libraries, but
8434            # adding the '-m68020' flag to GCC prevents building anything better,
8435            # like '-m68040'.
8436            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8437        ;;
8438      esac
8439      ;;
8440
8441    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8442      # PIC is the default for these OSes.
8443      ;;
8444
8445    mingw* | cygwin* | pw32* | os2* | cegcc*)
8446      # This hack is so that the source file can tell whether it is being
8447      # built for inclusion in a dll (and should export symbols for example).
8448      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8449      # (--disable-auto-import) libraries
8450      lt_prog_compiler_pic='-DDLL_EXPORT'
8451      case $host_os in
8452      os2*)
8453	lt_prog_compiler_static='$wl-static'
8454	;;
8455      esac
8456      ;;
8457
8458    darwin* | rhapsody*)
8459      # PIC is the default on this platform
8460      # Common symbols not allowed in MH_DYLIB files
8461      lt_prog_compiler_pic='-fno-common'
8462      ;;
8463
8464    haiku*)
8465      # PIC is the default for Haiku.
8466      # The "-static" flag exists, but is broken.
8467      lt_prog_compiler_static=
8468      ;;
8469
8470    hpux*)
8471      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8472      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8473      # sets the default TLS model and affects inlining.
8474      case $host_cpu in
8475      hppa*64*)
8476	# +Z the default
8477	;;
8478      *)
8479	lt_prog_compiler_pic='-fPIC'
8480	;;
8481      esac
8482      ;;
8483
8484    interix[3-9]*)
8485      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8486      # Instead, we relocate shared libraries at runtime.
8487      ;;
8488
8489    msdosdjgpp*)
8490      # Just because we use GCC doesn't mean we suddenly get shared libraries
8491      # on systems that don't support them.
8492      lt_prog_compiler_can_build_shared=no
8493      enable_shared=no
8494      ;;
8495
8496    *nto* | *qnx*)
8497      # QNX uses GNU C++, but need to define -shared option too, otherwise
8498      # it will coredump.
8499      lt_prog_compiler_pic='-fPIC -shared'
8500      ;;
8501
8502    sysv4*MP*)
8503      if test -d /usr/nec; then
8504	lt_prog_compiler_pic=-Kconform_pic
8505      fi
8506      ;;
8507
8508    *)
8509      lt_prog_compiler_pic='-fPIC'
8510      ;;
8511    esac
8512
8513    case $cc_basename in
8514    nvcc*) # Cuda Compiler Driver 2.2
8515      lt_prog_compiler_wl='-Xlinker '
8516      if test -n "$lt_prog_compiler_pic"; then
8517        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8518      fi
8519      ;;
8520    esac
8521  else
8522    # PORTME Check for flag to pass linker flags through the system compiler.
8523    case $host_os in
8524    aix*)
8525      lt_prog_compiler_wl='-Wl,'
8526      if test ia64 = "$host_cpu"; then
8527	# AIX 5 now supports IA64 processor
8528	lt_prog_compiler_static='-Bstatic'
8529      else
8530	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8531      fi
8532      ;;
8533
8534    darwin* | rhapsody*)
8535      # PIC is the default on this platform
8536      # Common symbols not allowed in MH_DYLIB files
8537      lt_prog_compiler_pic='-fno-common'
8538      case $cc_basename in
8539      nagfor*)
8540        # NAG Fortran compiler
8541        lt_prog_compiler_wl='-Wl,-Wl,,'
8542        lt_prog_compiler_pic='-PIC'
8543        lt_prog_compiler_static='-Bstatic'
8544        ;;
8545      esac
8546      ;;
8547
8548    mingw* | cygwin* | pw32* | os2* | cegcc*)
8549      # This hack is so that the source file can tell whether it is being
8550      # built for inclusion in a dll (and should export symbols for example).
8551      lt_prog_compiler_pic='-DDLL_EXPORT'
8552      case $host_os in
8553      os2*)
8554	lt_prog_compiler_static='$wl-static'
8555	;;
8556      esac
8557      ;;
8558
8559    hpux9* | hpux10* | hpux11*)
8560      lt_prog_compiler_wl='-Wl,'
8561      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8562      # not for PA HP-UX.
8563      case $host_cpu in
8564      hppa*64*|ia64*)
8565	# +Z the default
8566	;;
8567      *)
8568	lt_prog_compiler_pic='+Z'
8569	;;
8570      esac
8571      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8572      lt_prog_compiler_static='$wl-a ${wl}archive'
8573      ;;
8574
8575    irix5* | irix6* | nonstopux*)
8576      lt_prog_compiler_wl='-Wl,'
8577      # PIC (with -KPIC) is the default.
8578      lt_prog_compiler_static='-non_shared'
8579      ;;
8580
8581    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8582      case $cc_basename in
8583      # old Intel for x86_64, which still supported -KPIC.
8584      ecc*)
8585	lt_prog_compiler_wl='-Wl,'
8586	lt_prog_compiler_pic='-KPIC'
8587	lt_prog_compiler_static='-static'
8588        ;;
8589      # icc used to be incompatible with GCC.
8590      # ICC 10 doesn't accept -KPIC any more.
8591      icc* | ifort*)
8592	lt_prog_compiler_wl='-Wl,'
8593	lt_prog_compiler_pic='-fPIC'
8594	lt_prog_compiler_static='-static'
8595        ;;
8596      # Lahey Fortran 8.1.
8597      lf95*)
8598	lt_prog_compiler_wl='-Wl,'
8599	lt_prog_compiler_pic='--shared'
8600	lt_prog_compiler_static='--static'
8601	;;
8602      nagfor*)
8603	# NAG Fortran compiler
8604	lt_prog_compiler_wl='-Wl,-Wl,,'
8605	lt_prog_compiler_pic='-PIC'
8606	lt_prog_compiler_static='-Bstatic'
8607	;;
8608      tcc*)
8609	# Fabrice Bellard et al's Tiny C Compiler
8610	lt_prog_compiler_wl='-Wl,'
8611	lt_prog_compiler_pic='-fPIC'
8612	lt_prog_compiler_static='-static'
8613	;;
8614      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8615        # Portland Group compilers (*not* the Pentium gcc compiler,
8616	# which looks to be a dead project)
8617	lt_prog_compiler_wl='-Wl,'
8618	lt_prog_compiler_pic='-fpic'
8619	lt_prog_compiler_static='-Bstatic'
8620        ;;
8621      ccc*)
8622        lt_prog_compiler_wl='-Wl,'
8623        # All Alpha code is PIC.
8624        lt_prog_compiler_static='-non_shared'
8625        ;;
8626      xl* | bgxl* | bgf* | mpixl*)
8627	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8628	lt_prog_compiler_wl='-Wl,'
8629	lt_prog_compiler_pic='-qpic'
8630	lt_prog_compiler_static='-qstaticlink'
8631	;;
8632      *)
8633	case `$CC -V 2>&1 | sed 5q` in
8634	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8635	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8636	  lt_prog_compiler_pic='-KPIC'
8637	  lt_prog_compiler_static='-Bstatic'
8638	  lt_prog_compiler_wl=''
8639	  ;;
8640	*Sun\ F* | *Sun*Fortran*)
8641	  lt_prog_compiler_pic='-KPIC'
8642	  lt_prog_compiler_static='-Bstatic'
8643	  lt_prog_compiler_wl='-Qoption ld '
8644	  ;;
8645	*Sun\ C*)
8646	  # Sun C 5.9
8647	  lt_prog_compiler_pic='-KPIC'
8648	  lt_prog_compiler_static='-Bstatic'
8649	  lt_prog_compiler_wl='-Wl,'
8650	  ;;
8651        *Intel*\ [CF]*Compiler*)
8652	  lt_prog_compiler_wl='-Wl,'
8653	  lt_prog_compiler_pic='-fPIC'
8654	  lt_prog_compiler_static='-static'
8655	  ;;
8656	*Portland\ Group*)
8657	  lt_prog_compiler_wl='-Wl,'
8658	  lt_prog_compiler_pic='-fpic'
8659	  lt_prog_compiler_static='-Bstatic'
8660	  ;;
8661	esac
8662	;;
8663      esac
8664      ;;
8665
8666    newsos6)
8667      lt_prog_compiler_pic='-KPIC'
8668      lt_prog_compiler_static='-Bstatic'
8669      ;;
8670
8671    *nto* | *qnx*)
8672      # QNX uses GNU C++, but need to define -shared option too, otherwise
8673      # it will coredump.
8674      lt_prog_compiler_pic='-fPIC -shared'
8675      ;;
8676
8677    osf3* | osf4* | osf5*)
8678      lt_prog_compiler_wl='-Wl,'
8679      # All OSF/1 code is PIC.
8680      lt_prog_compiler_static='-non_shared'
8681      ;;
8682
8683    rdos*)
8684      lt_prog_compiler_static='-non_shared'
8685      ;;
8686
8687    solaris*)
8688      lt_prog_compiler_pic='-KPIC'
8689      lt_prog_compiler_static='-Bstatic'
8690      case $cc_basename in
8691      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8692	lt_prog_compiler_wl='-Qoption ld ';;
8693      *)
8694	lt_prog_compiler_wl='-Wl,';;
8695      esac
8696      ;;
8697
8698    sunos4*)
8699      lt_prog_compiler_wl='-Qoption ld '
8700      lt_prog_compiler_pic='-PIC'
8701      lt_prog_compiler_static='-Bstatic'
8702      ;;
8703
8704    sysv4 | sysv4.2uw2* | sysv4.3*)
8705      lt_prog_compiler_wl='-Wl,'
8706      lt_prog_compiler_pic='-KPIC'
8707      lt_prog_compiler_static='-Bstatic'
8708      ;;
8709
8710    sysv4*MP*)
8711      if test -d /usr/nec; then
8712	lt_prog_compiler_pic='-Kconform_pic'
8713	lt_prog_compiler_static='-Bstatic'
8714      fi
8715      ;;
8716
8717    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8718      lt_prog_compiler_wl='-Wl,'
8719      lt_prog_compiler_pic='-KPIC'
8720      lt_prog_compiler_static='-Bstatic'
8721      ;;
8722
8723    unicos*)
8724      lt_prog_compiler_wl='-Wl,'
8725      lt_prog_compiler_can_build_shared=no
8726      ;;
8727
8728    uts4*)
8729      lt_prog_compiler_pic='-pic'
8730      lt_prog_compiler_static='-Bstatic'
8731      ;;
8732
8733    *)
8734      lt_prog_compiler_can_build_shared=no
8735      ;;
8736    esac
8737  fi
8738
8739case $host_os in
8740  # For platforms that do not support PIC, -DPIC is meaningless:
8741  *djgpp*)
8742    lt_prog_compiler_pic=
8743    ;;
8744  *)
8745    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8746    ;;
8747esac
8748
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8750$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8751if ${lt_cv_prog_compiler_pic+:} false; then :
8752  $as_echo_n "(cached) " >&6
8753else
8754  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8755fi
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8757$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8758lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8759
8760#
8761# Check to make sure the PIC flag actually works.
8762#
8763if test -n "$lt_prog_compiler_pic"; then
8764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8765$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8766if ${lt_cv_prog_compiler_pic_works+:} false; then :
8767  $as_echo_n "(cached) " >&6
8768else
8769  lt_cv_prog_compiler_pic_works=no
8770   ac_outfile=conftest.$ac_objext
8771   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8772   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8773   # Insert the option either (1) after the last *FLAGS variable, or
8774   # (2) before a word containing "conftest.", or (3) at the end.
8775   # Note that $ac_compile itself does not contain backslashes and begins
8776   # with a dollar sign (not a hyphen), so the echo should work correctly.
8777   # The option is referenced via a variable to avoid confusing sed.
8778   lt_compile=`echo "$ac_compile" | $SED \
8779   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8780   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8781   -e 's:$: $lt_compiler_flag:'`
8782   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8783   (eval "$lt_compile" 2>conftest.err)
8784   ac_status=$?
8785   cat conftest.err >&5
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   if (exit $ac_status) && test -s "$ac_outfile"; then
8788     # The compiler can only warn and ignore the option if not recognized
8789     # So say no if there are warnings other than the usual output.
8790     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8791     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8792     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8793       lt_cv_prog_compiler_pic_works=yes
8794     fi
8795   fi
8796   $RM conftest*
8797
8798fi
8799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8800$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8801
8802if test yes = "$lt_cv_prog_compiler_pic_works"; then
8803    case $lt_prog_compiler_pic in
8804     "" | " "*) ;;
8805     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8806     esac
8807else
8808    lt_prog_compiler_pic=
8809     lt_prog_compiler_can_build_shared=no
8810fi
8811
8812fi
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824#
8825# Check to make sure the static flag actually works.
8826#
8827wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8829$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8830if ${lt_cv_prog_compiler_static_works+:} false; then :
8831  $as_echo_n "(cached) " >&6
8832else
8833  lt_cv_prog_compiler_static_works=no
8834   save_LDFLAGS=$LDFLAGS
8835   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8836   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8837   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8838     # The linker can only warn and ignore the option if not recognized
8839     # So say no if there are warnings
8840     if test -s conftest.err; then
8841       # Append any errors to the config.log.
8842       cat conftest.err 1>&5
8843       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8844       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8845       if diff conftest.exp conftest.er2 >/dev/null; then
8846         lt_cv_prog_compiler_static_works=yes
8847       fi
8848     else
8849       lt_cv_prog_compiler_static_works=yes
8850     fi
8851   fi
8852   $RM -r conftest*
8853   LDFLAGS=$save_LDFLAGS
8854
8855fi
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8857$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8858
8859if test yes = "$lt_cv_prog_compiler_static_works"; then
8860    :
8861else
8862    lt_prog_compiler_static=
8863fi
8864
8865
8866
8867
8868
8869
8870
8871  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8872$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8873if ${lt_cv_prog_compiler_c_o+:} false; then :
8874  $as_echo_n "(cached) " >&6
8875else
8876  lt_cv_prog_compiler_c_o=no
8877   $RM -r conftest 2>/dev/null
8878   mkdir conftest
8879   cd conftest
8880   mkdir out
8881   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8882
8883   lt_compiler_flag="-o out/conftest2.$ac_objext"
8884   # Insert the option either (1) after the last *FLAGS variable, or
8885   # (2) before a word containing "conftest.", or (3) at the end.
8886   # Note that $ac_compile itself does not contain backslashes and begins
8887   # with a dollar sign (not a hyphen), so the echo should work correctly.
8888   lt_compile=`echo "$ac_compile" | $SED \
8889   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8890   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8891   -e 's:$: $lt_compiler_flag:'`
8892   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8893   (eval "$lt_compile" 2>out/conftest.err)
8894   ac_status=$?
8895   cat out/conftest.err >&5
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8898   then
8899     # The compiler can only warn and ignore the option if not recognized
8900     # So say no if there are warnings
8901     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8902     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8903     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8904       lt_cv_prog_compiler_c_o=yes
8905     fi
8906   fi
8907   chmod u+w . 2>&5
8908   $RM conftest*
8909   # SGI C++ compiler will create directory out/ii_files/ for
8910   # template instantiation
8911   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8912   $RM out/* && rmdir out
8913   cd ..
8914   $RM -r conftest
8915   $RM conftest*
8916
8917fi
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8919$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8920
8921
8922
8923
8924
8925
8926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8927$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8928if ${lt_cv_prog_compiler_c_o+:} false; then :
8929  $as_echo_n "(cached) " >&6
8930else
8931  lt_cv_prog_compiler_c_o=no
8932   $RM -r conftest 2>/dev/null
8933   mkdir conftest
8934   cd conftest
8935   mkdir out
8936   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8937
8938   lt_compiler_flag="-o out/conftest2.$ac_objext"
8939   # Insert the option either (1) after the last *FLAGS variable, or
8940   # (2) before a word containing "conftest.", or (3) at the end.
8941   # Note that $ac_compile itself does not contain backslashes and begins
8942   # with a dollar sign (not a hyphen), so the echo should work correctly.
8943   lt_compile=`echo "$ac_compile" | $SED \
8944   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8945   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8946   -e 's:$: $lt_compiler_flag:'`
8947   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8948   (eval "$lt_compile" 2>out/conftest.err)
8949   ac_status=$?
8950   cat out/conftest.err >&5
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8953   then
8954     # The compiler can only warn and ignore the option if not recognized
8955     # So say no if there are warnings
8956     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8957     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8958     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8959       lt_cv_prog_compiler_c_o=yes
8960     fi
8961   fi
8962   chmod u+w . 2>&5
8963   $RM conftest*
8964   # SGI C++ compiler will create directory out/ii_files/ for
8965   # template instantiation
8966   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8967   $RM out/* && rmdir out
8968   cd ..
8969   $RM -r conftest
8970   $RM conftest*
8971
8972fi
8973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8974$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8975
8976
8977
8978
8979hard_links=nottested
8980if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8981  # do not overwrite the value of need_locks provided by the user
8982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8983$as_echo_n "checking if we can lock with hard links... " >&6; }
8984  hard_links=yes
8985  $RM conftest*
8986  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8987  touch conftest.a
8988  ln conftest.a conftest.b 2>&5 || hard_links=no
8989  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8991$as_echo "$hard_links" >&6; }
8992  if test no = "$hard_links"; then
8993    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8994$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8995    need_locks=warn
8996  fi
8997else
8998  need_locks=no
8999fi
9000
9001
9002
9003
9004
9005
9006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9007$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9008
9009  runpath_var=
9010  allow_undefined_flag=
9011  always_export_symbols=no
9012  archive_cmds=
9013  archive_expsym_cmds=
9014  compiler_needs_object=no
9015  enable_shared_with_static_runtimes=no
9016  export_dynamic_flag_spec=
9017  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9018  hardcode_automatic=no
9019  hardcode_direct=no
9020  hardcode_direct_absolute=no
9021  hardcode_libdir_flag_spec=
9022  hardcode_libdir_separator=
9023  hardcode_minus_L=no
9024  hardcode_shlibpath_var=unsupported
9025  inherit_rpath=no
9026  link_all_deplibs=unknown
9027  module_cmds=
9028  module_expsym_cmds=
9029  old_archive_from_new_cmds=
9030  old_archive_from_expsyms_cmds=
9031  thread_safe_flag_spec=
9032  whole_archive_flag_spec=
9033  # include_expsyms should be a list of space-separated symbols to be *always*
9034  # included in the symbol list
9035  include_expsyms=
9036  # exclude_expsyms can be an extended regexp of symbols to exclude
9037  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9038  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9039  # as well as any symbol that contains 'd'.
9040  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9041  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9042  # platforms (ab)use it in PIC code, but their linkers get confused if
9043  # the symbol is explicitly referenced.  Since portable code cannot
9044  # rely on this symbol name, it's probably fine to never include it in
9045  # preloaded symbol tables.
9046  # Exclude shared library initialization/finalization symbols.
9047  extract_expsyms_cmds=
9048
9049  case $host_os in
9050  cygwin* | mingw* | pw32* | cegcc*)
9051    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9052    # When not using gcc, we currently assume that we are using
9053    # Microsoft Visual C++.
9054    if test yes != "$GCC"; then
9055      with_gnu_ld=no
9056    fi
9057    ;;
9058  interix*)
9059    # we just hope/assume this is gcc and not c89 (= MSVC++)
9060    with_gnu_ld=yes
9061    ;;
9062  openbsd* | bitrig*)
9063    with_gnu_ld=no
9064    ;;
9065  esac
9066
9067  ld_shlibs=yes
9068
9069  # On some targets, GNU ld is compatible enough with the native linker
9070  # that we're better off using the native interface for both.
9071  lt_use_gnu_ld_interface=no
9072  if test yes = "$with_gnu_ld"; then
9073    case $host_os in
9074      aix*)
9075	# The AIX port of GNU ld has always aspired to compatibility
9076	# with the native linker.  However, as the warning in the GNU ld
9077	# block says, versions before 2.19.5* couldn't really create working
9078	# shared libraries, regardless of the interface used.
9079	case `$LD -v 2>&1` in
9080	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9081	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9082	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9083	  *)
9084	    lt_use_gnu_ld_interface=yes
9085	    ;;
9086	esac
9087	;;
9088      *)
9089	lt_use_gnu_ld_interface=yes
9090	;;
9091    esac
9092  fi
9093
9094  if test yes = "$lt_use_gnu_ld_interface"; then
9095    # If archive_cmds runs LD, not CC, wlarc should be empty
9096    wlarc='$wl'
9097
9098    # Set some defaults for GNU ld with shared library support. These
9099    # are reset later if shared libraries are not supported. Putting them
9100    # here allows them to be overridden if necessary.
9101    runpath_var=LD_RUN_PATH
9102    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9103    export_dynamic_flag_spec='$wl--export-dynamic'
9104    # ancient GNU ld didn't support --whole-archive et. al.
9105    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9106      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9107    else
9108      whole_archive_flag_spec=
9109    fi
9110    supports_anon_versioning=no
9111    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9112      *GNU\ gold*) supports_anon_versioning=yes ;;
9113      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9114      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9115      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9116      *\ 2.11.*) ;; # other 2.11 versions
9117      *) supports_anon_versioning=yes ;;
9118    esac
9119
9120    # See if GNU ld supports shared libraries.
9121    case $host_os in
9122    aix[3-9]*)
9123      # On AIX/PPC, the GNU linker is very broken
9124      if test ia64 != "$host_cpu"; then
9125	ld_shlibs=no
9126	cat <<_LT_EOF 1>&2
9127
9128*** Warning: the GNU linker, at least up to release 2.19, is reported
9129*** to be unable to reliably create shared libraries on AIX.
9130*** Therefore, libtool is disabling shared libraries support.  If you
9131*** really care for shared libraries, you may want to install binutils
9132*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9133*** You will then need to restart the configuration process.
9134
9135_LT_EOF
9136      fi
9137      ;;
9138
9139    amigaos*)
9140      case $host_cpu in
9141      powerpc)
9142            # see comment about AmigaOS4 .so support
9143            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9144            archive_expsym_cmds=''
9145        ;;
9146      m68k)
9147            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)'
9148            hardcode_libdir_flag_spec='-L$libdir'
9149            hardcode_minus_L=yes
9150        ;;
9151      esac
9152      ;;
9153
9154    beos*)
9155      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9156	allow_undefined_flag=unsupported
9157	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9158	# support --undefined.  This deserves some investigation.  FIXME
9159	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9160      else
9161	ld_shlibs=no
9162      fi
9163      ;;
9164
9165    cygwin* | mingw* | pw32* | cegcc*)
9166      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9167      # as there is no search path for DLLs.
9168      hardcode_libdir_flag_spec='-L$libdir'
9169      export_dynamic_flag_spec='$wl--export-all-symbols'
9170      allow_undefined_flag=unsupported
9171      always_export_symbols=no
9172      enable_shared_with_static_runtimes=yes
9173      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'
9174      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9175
9176      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9177        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9178	# If the export-symbols file already is a .def file, use it as
9179	# is; otherwise, prepend EXPORTS...
9180	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9181          cp $export_symbols $output_objdir/$soname.def;
9182        else
9183          echo EXPORTS > $output_objdir/$soname.def;
9184          cat $export_symbols >> $output_objdir/$soname.def;
9185        fi~
9186        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9187      else
9188	ld_shlibs=no
9189      fi
9190      ;;
9191
9192    haiku*)
9193      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9194      link_all_deplibs=yes
9195      ;;
9196
9197    os2*)
9198      hardcode_libdir_flag_spec='-L$libdir'
9199      hardcode_minus_L=yes
9200      allow_undefined_flag=unsupported
9201      shrext_cmds=.dll
9202      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9203	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9204	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9205	$ECHO EXPORTS >> $output_objdir/$libname.def~
9206	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9207	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9208	emximp -o $lib $output_objdir/$libname.def'
9209      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9210	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9211	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9212	$ECHO EXPORTS >> $output_objdir/$libname.def~
9213	prefix_cmds="$SED"~
9214	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9215	  prefix_cmds="$prefix_cmds -e 1d";
9216	fi~
9217	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9218	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9219	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9220	emximp -o $lib $output_objdir/$libname.def'
9221      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9222      enable_shared_with_static_runtimes=yes
9223      ;;
9224
9225    interix[3-9]*)
9226      hardcode_direct=no
9227      hardcode_shlibpath_var=no
9228      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9229      export_dynamic_flag_spec='$wl-E'
9230      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9231      # Instead, shared libraries are loaded at an image base (0x10000000 by
9232      # default) and relocated if they conflict, which is a slow very memory
9233      # consuming and fragmenting process.  To avoid this, we pick a random,
9234      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9235      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9236      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9237      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'
9238      ;;
9239
9240    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9241      tmp_diet=no
9242      if test linux-dietlibc = "$host_os"; then
9243	case $cc_basename in
9244	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9245	esac
9246      fi
9247      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9248	 && test no = "$tmp_diet"
9249      then
9250	tmp_addflag=' $pic_flag'
9251	tmp_sharedflag='-shared'
9252	case $cc_basename,$host_cpu in
9253        pgcc*)				# Portland Group C compiler
9254	  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'
9255	  tmp_addflag=' $pic_flag'
9256	  ;;
9257	pgf77* | pgf90* | pgf95* | pgfortran*)
9258					# Portland Group f77 and f90 compilers
9259	  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'
9260	  tmp_addflag=' $pic_flag -Mnomain' ;;
9261	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9262	  tmp_addflag=' -i_dynamic' ;;
9263	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9264	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9265	ifc* | ifort*)			# Intel Fortran compiler
9266	  tmp_addflag=' -nofor_main' ;;
9267	lf95*)				# Lahey Fortran 8.1
9268	  whole_archive_flag_spec=
9269	  tmp_sharedflag='--shared' ;;
9270        nagfor*)                        # NAGFOR 5.3
9271          tmp_sharedflag='-Wl,-shared' ;;
9272	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9273	  tmp_sharedflag='-qmkshrobj'
9274	  tmp_addflag= ;;
9275	nvcc*)	# Cuda Compiler Driver 2.2
9276	  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'
9277	  compiler_needs_object=yes
9278	  ;;
9279	esac
9280	case `$CC -V 2>&1 | sed 5q` in
9281	*Sun\ C*)			# Sun C 5.9
9282	  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'
9283	  compiler_needs_object=yes
9284	  tmp_sharedflag='-G' ;;
9285	*Sun\ F*)			# Sun Fortran 8.3
9286	  tmp_sharedflag='-G' ;;
9287	esac
9288	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9289
9290        if test yes = "$supports_anon_versioning"; then
9291          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9292            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9293            echo "local: *; };" >> $output_objdir/$libname.ver~
9294            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9295        fi
9296
9297	case $cc_basename in
9298	tcc*)
9299	  export_dynamic_flag_spec='-rdynamic'
9300	  ;;
9301	xlf* | bgf* | bgxlf* | mpixlf*)
9302	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9303	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9304	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9305	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9306	  if test yes = "$supports_anon_versioning"; then
9307	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9308              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9309              echo "local: *; };" >> $output_objdir/$libname.ver~
9310              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9311	  fi
9312	  ;;
9313	esac
9314      else
9315        ld_shlibs=no
9316      fi
9317      ;;
9318
9319    netbsd*)
9320      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9321	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9322	wlarc=
9323      else
9324	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9325	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9326      fi
9327      ;;
9328
9329    solaris*)
9330      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9331	ld_shlibs=no
9332	cat <<_LT_EOF 1>&2
9333
9334*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9335*** create shared libraries on Solaris systems.  Therefore, libtool
9336*** is disabling shared libraries support.  We urge you to upgrade GNU
9337*** binutils to release 2.9.1 or newer.  Another option is to modify
9338*** your PATH or compiler configuration so that the native linker is
9339*** used, and then restart.
9340
9341_LT_EOF
9342      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9343	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9344	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9345      else
9346	ld_shlibs=no
9347      fi
9348      ;;
9349
9350    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9351      case `$LD -v 2>&1` in
9352        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9353	ld_shlibs=no
9354	cat <<_LT_EOF 1>&2
9355
9356*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9357*** reliably create shared libraries on SCO systems.  Therefore, libtool
9358*** is disabling shared libraries support.  We urge you to upgrade GNU
9359*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9360*** your PATH or compiler configuration so that the native linker is
9361*** used, and then restart.
9362
9363_LT_EOF
9364	;;
9365	*)
9366	  # For security reasons, it is highly recommended that you always
9367	  # use absolute paths for naming shared libraries, and exclude the
9368	  # DT_RUNPATH tag from executables and libraries.  But doing so
9369	  # requires that you compile everything twice, which is a pain.
9370	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9371	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9372	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9373	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9374	  else
9375	    ld_shlibs=no
9376	  fi
9377	;;
9378      esac
9379      ;;
9380
9381    sunos4*)
9382      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9383      wlarc=
9384      hardcode_direct=yes
9385      hardcode_shlibpath_var=no
9386      ;;
9387
9388    *)
9389      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9390	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9391	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9392      else
9393	ld_shlibs=no
9394      fi
9395      ;;
9396    esac
9397
9398    if test no = "$ld_shlibs"; then
9399      runpath_var=
9400      hardcode_libdir_flag_spec=
9401      export_dynamic_flag_spec=
9402      whole_archive_flag_spec=
9403    fi
9404  else
9405    # PORTME fill in a description of your system's linker (not GNU ld)
9406    case $host_os in
9407    aix3*)
9408      allow_undefined_flag=unsupported
9409      always_export_symbols=yes
9410      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'
9411      # Note: this linker hardcodes the directories in LIBPATH if there
9412      # are no directories specified by -L.
9413      hardcode_minus_L=yes
9414      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9415	# Neither direct hardcoding nor static linking is supported with a
9416	# broken collect2.
9417	hardcode_direct=unsupported
9418      fi
9419      ;;
9420
9421    aix[4-9]*)
9422      if test ia64 = "$host_cpu"; then
9423	# On IA64, the linker does run time linking by default, so we don't
9424	# have to do anything special.
9425	aix_use_runtimelinking=no
9426	exp_sym_flag='-Bexport'
9427	no_entry_flag=
9428      else
9429	# If we're using GNU nm, then we don't want the "-C" option.
9430	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9431	# Without the "-l" option, or with the "-B" option, AIX nm treats
9432	# weak defined symbols like other global defined symbols, whereas
9433	# GNU nm marks them as "W".
9434	# While the 'weak' keyword is ignored in the Export File, we need
9435	# it in the Import File for the 'aix-soname' feature, so we have
9436	# to replace the "-B" option with "-P" for AIX nm.
9437	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9438	  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'
9439	else
9440	  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'
9441	fi
9442	aix_use_runtimelinking=no
9443
9444	# Test if we are trying to use run time linking or normal
9445	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9446	# have runtime linking enabled, and use it for executables.
9447	# For shared libraries, we enable/disable runtime linking
9448	# depending on the kind of the shared library created -
9449	# when "with_aix_soname,aix_use_runtimelinking" is:
9450	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9451	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9452	#            lib.a           static archive
9453	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9454	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9455	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9456	#            lib.a(lib.so.V) shared, rtl:no
9457	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9458	#            lib.a           static archive
9459	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9460	  for ld_flag in $LDFLAGS; do
9461	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9462	    aix_use_runtimelinking=yes
9463	    break
9464	  fi
9465	  done
9466	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9467	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9468	    # so we don't have lib.a shared libs to link our executables.
9469	    # We have to force runtime linking in this case.
9470	    aix_use_runtimelinking=yes
9471	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9472	  fi
9473	  ;;
9474	esac
9475
9476	exp_sym_flag='-bexport'
9477	no_entry_flag='-bnoentry'
9478      fi
9479
9480      # When large executables or shared objects are built, AIX ld can
9481      # have problems creating the table of contents.  If linking a library
9482      # or program results in "error TOC overflow" add -mminimal-toc to
9483      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9484      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9485
9486      archive_cmds=''
9487      hardcode_direct=yes
9488      hardcode_direct_absolute=yes
9489      hardcode_libdir_separator=':'
9490      link_all_deplibs=yes
9491      file_list_spec='$wl-f,'
9492      case $with_aix_soname,$aix_use_runtimelinking in
9493      aix,*) ;; # traditional, no import file
9494      svr4,* | *,yes) # use import file
9495	# The Import File defines what to hardcode.
9496	hardcode_direct=no
9497	hardcode_direct_absolute=no
9498	;;
9499      esac
9500
9501      if test yes = "$GCC"; then
9502	case $host_os in aix4.[012]|aix4.[012].*)
9503	# We only want to do this on AIX 4.2 and lower, the check
9504	# below for broken collect2 doesn't work under 4.3+
9505	  collect2name=`$CC -print-prog-name=collect2`
9506	  if test -f "$collect2name" &&
9507	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9508	  then
9509	  # We have reworked collect2
9510	  :
9511	  else
9512	  # We have old collect2
9513	  hardcode_direct=unsupported
9514	  # It fails to find uninstalled libraries when the uninstalled
9515	  # path is not listed in the libpath.  Setting hardcode_minus_L
9516	  # to unsupported forces relinking
9517	  hardcode_minus_L=yes
9518	  hardcode_libdir_flag_spec='-L$libdir'
9519	  hardcode_libdir_separator=
9520	  fi
9521	  ;;
9522	esac
9523	shared_flag='-shared'
9524	if test yes = "$aix_use_runtimelinking"; then
9525	  shared_flag="$shared_flag "'$wl-G'
9526	fi
9527	# Need to ensure runtime linking is disabled for the traditional
9528	# shared library, or the linker may eventually find shared libraries
9529	# /with/ Import File - we do not want to mix them.
9530	shared_flag_aix='-shared'
9531	shared_flag_svr4='-shared $wl-G'
9532      else
9533	# not using gcc
9534	if test ia64 = "$host_cpu"; then
9535	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9536	# chokes on -Wl,-G. The following line is correct:
9537	  shared_flag='-G'
9538	else
9539	  if test yes = "$aix_use_runtimelinking"; then
9540	    shared_flag='$wl-G'
9541	  else
9542	    shared_flag='$wl-bM:SRE'
9543	  fi
9544	  shared_flag_aix='$wl-bM:SRE'
9545	  shared_flag_svr4='$wl-G'
9546	fi
9547      fi
9548
9549      export_dynamic_flag_spec='$wl-bexpall'
9550      # It seems that -bexpall does not export symbols beginning with
9551      # underscore (_), so it is better to generate a list of symbols to export.
9552      always_export_symbols=yes
9553      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9554	# Warning - without using the other runtime loading flags (-brtl),
9555	# -berok will link without error, but may produce a broken library.
9556	allow_undefined_flag='-berok'
9557        # Determine the default libpath from the value encoded in an
9558        # empty executable.
9559        if test set = "${lt_cv_aix_libpath+set}"; then
9560  aix_libpath=$lt_cv_aix_libpath
9561else
9562  if ${lt_cv_aix_libpath_+:} false; then :
9563  $as_echo_n "(cached) " >&6
9564else
9565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566/* end confdefs.h.  */
9567
9568int
9569main ()
9570{
9571
9572  ;
9573  return 0;
9574}
9575_ACEOF
9576if ac_fn_c_try_link "$LINENO"; then :
9577
9578  lt_aix_libpath_sed='
9579      /Import File Strings/,/^$/ {
9580	  /^0/ {
9581	      s/^0  *\([^ ]*\) *$/\1/
9582	      p
9583	  }
9584      }'
9585  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9586  # Check for a 64-bit object if we didn't find anything.
9587  if test -z "$lt_cv_aix_libpath_"; then
9588    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9589  fi
9590fi
9591rm -f core conftest.err conftest.$ac_objext \
9592    conftest$ac_exeext conftest.$ac_ext
9593  if test -z "$lt_cv_aix_libpath_"; then
9594    lt_cv_aix_libpath_=/usr/lib:/lib
9595  fi
9596
9597fi
9598
9599  aix_libpath=$lt_cv_aix_libpath_
9600fi
9601
9602        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9603        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
9604      else
9605	if test ia64 = "$host_cpu"; then
9606	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9607	  allow_undefined_flag="-z nodefs"
9608	  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"
9609	else
9610	 # Determine the default libpath from the value encoded in an
9611	 # empty executable.
9612	 if test set = "${lt_cv_aix_libpath+set}"; then
9613  aix_libpath=$lt_cv_aix_libpath
9614else
9615  if ${lt_cv_aix_libpath_+:} false; then :
9616  $as_echo_n "(cached) " >&6
9617else
9618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619/* end confdefs.h.  */
9620
9621int
9622main ()
9623{
9624
9625  ;
9626  return 0;
9627}
9628_ACEOF
9629if ac_fn_c_try_link "$LINENO"; then :
9630
9631  lt_aix_libpath_sed='
9632      /Import File Strings/,/^$/ {
9633	  /^0/ {
9634	      s/^0  *\([^ ]*\) *$/\1/
9635	      p
9636	  }
9637      }'
9638  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9639  # Check for a 64-bit object if we didn't find anything.
9640  if test -z "$lt_cv_aix_libpath_"; then
9641    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9642  fi
9643fi
9644rm -f core conftest.err conftest.$ac_objext \
9645    conftest$ac_exeext conftest.$ac_ext
9646  if test -z "$lt_cv_aix_libpath_"; then
9647    lt_cv_aix_libpath_=/usr/lib:/lib
9648  fi
9649
9650fi
9651
9652  aix_libpath=$lt_cv_aix_libpath_
9653fi
9654
9655	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9656	  # Warning - without using the other run time loading flags,
9657	  # -berok will link without error, but may produce a broken library.
9658	  no_undefined_flag=' $wl-bernotok'
9659	  allow_undefined_flag=' $wl-berok'
9660	  if test yes = "$with_gnu_ld"; then
9661	    # We only use this code for GNU lds that support --whole-archive.
9662	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9663	  else
9664	    # Exported symbols can be pulled into shared objects from archives
9665	    whole_archive_flag_spec='$convenience'
9666	  fi
9667	  archive_cmds_need_lc=yes
9668	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9669	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9670	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9671	  if test svr4 != "$with_aix_soname"; then
9672	    # This is similar to how AIX traditionally builds its shared libraries.
9673	    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'
9674	  fi
9675	  if test aix != "$with_aix_soname"; then
9676	    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'
9677	  else
9678	    # used by -dlpreopen to get the symbols
9679	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9680	  fi
9681	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9682	fi
9683      fi
9684      ;;
9685
9686    amigaos*)
9687      case $host_cpu in
9688      powerpc)
9689            # see comment about AmigaOS4 .so support
9690            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9691            archive_expsym_cmds=''
9692        ;;
9693      m68k)
9694            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)'
9695            hardcode_libdir_flag_spec='-L$libdir'
9696            hardcode_minus_L=yes
9697        ;;
9698      esac
9699      ;;
9700
9701    bsdi[45]*)
9702      export_dynamic_flag_spec=-rdynamic
9703      ;;
9704
9705    cygwin* | mingw* | pw32* | cegcc*)
9706      # When not using gcc, we currently assume that we are using
9707      # Microsoft Visual C++.
9708      # hardcode_libdir_flag_spec is actually meaningless, as there is
9709      # no search path for DLLs.
9710      case $cc_basename in
9711      cl*)
9712	# Native MSVC
9713	hardcode_libdir_flag_spec=' '
9714	allow_undefined_flag=unsupported
9715	always_export_symbols=yes
9716	file_list_spec='@'
9717	# Tell ltmain to make .lib files, not .a files.
9718	libext=lib
9719	# Tell ltmain to make .dll files, not .so files.
9720	shrext_cmds=.dll
9721	# FIXME: Setting linknames here is a bad hack.
9722	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9723	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9724            cp "$export_symbols" "$output_objdir/$soname.def";
9725            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9726          else
9727            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9728          fi~
9729          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9730          linknames='
9731	# The linker will not automatically build a static lib if we build a DLL.
9732	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9733	enable_shared_with_static_runtimes=yes
9734	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9735	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9736	# Don't use ranlib
9737	old_postinstall_cmds='chmod 644 $oldlib'
9738	postlink_cmds='lt_outputfile="@OUTPUT@"~
9739          lt_tool_outputfile="@TOOL_OUTPUT@"~
9740          case $lt_outputfile in
9741            *.exe|*.EXE) ;;
9742            *)
9743              lt_outputfile=$lt_outputfile.exe
9744              lt_tool_outputfile=$lt_tool_outputfile.exe
9745              ;;
9746          esac~
9747          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9748            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9749            $RM "$lt_outputfile.manifest";
9750          fi'
9751	;;
9752      *)
9753	# Assume MSVC wrapper
9754	hardcode_libdir_flag_spec=' '
9755	allow_undefined_flag=unsupported
9756	# Tell ltmain to make .lib files, not .a files.
9757	libext=lib
9758	# Tell ltmain to make .dll files, not .so files.
9759	shrext_cmds=.dll
9760	# FIXME: Setting linknames here is a bad hack.
9761	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9762	# The linker will automatically build a .lib file if we build a DLL.
9763	old_archive_from_new_cmds='true'
9764	# FIXME: Should let the user specify the lib program.
9765	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9766	enable_shared_with_static_runtimes=yes
9767	;;
9768      esac
9769      ;;
9770
9771    darwin* | rhapsody*)
9772
9773
9774  archive_cmds_need_lc=no
9775  hardcode_direct=no
9776  hardcode_automatic=yes
9777  hardcode_shlibpath_var=unsupported
9778  if test yes = "$lt_cv_ld_force_load"; then
9779    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\"`'
9780
9781  else
9782    whole_archive_flag_spec=''
9783  fi
9784  link_all_deplibs=yes
9785  allow_undefined_flag=$_lt_dar_allow_undefined
9786  case $cc_basename in
9787     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9788     *) _lt_dar_can_shared=$GCC ;;
9789  esac
9790  if test yes = "$_lt_dar_can_shared"; then
9791    output_verbose_link_cmd=func_echo_all
9792    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9793    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9794    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"
9795    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"
9796
9797  else
9798  ld_shlibs=no
9799  fi
9800
9801      ;;
9802
9803    dgux*)
9804      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805      hardcode_libdir_flag_spec='-L$libdir'
9806      hardcode_shlibpath_var=no
9807      ;;
9808
9809    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9810    # support.  Future versions do this automatically, but an explicit c++rt0.o
9811    # does not break anything, and helps significantly (at the cost of a little
9812    # extra space).
9813    freebsd2.2*)
9814      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9815      hardcode_libdir_flag_spec='-R$libdir'
9816      hardcode_direct=yes
9817      hardcode_shlibpath_var=no
9818      ;;
9819
9820    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9821    freebsd2.*)
9822      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9823      hardcode_direct=yes
9824      hardcode_minus_L=yes
9825      hardcode_shlibpath_var=no
9826      ;;
9827
9828    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9829    freebsd* | dragonfly*)
9830      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9831      hardcode_libdir_flag_spec='-R$libdir'
9832      hardcode_direct=yes
9833      hardcode_shlibpath_var=no
9834      ;;
9835
9836    hpux9*)
9837      if test yes = "$GCC"; then
9838	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'
9839      else
9840	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'
9841      fi
9842      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9843      hardcode_libdir_separator=:
9844      hardcode_direct=yes
9845
9846      # hardcode_minus_L: Not really in the search PATH,
9847      # but as the default location of the library.
9848      hardcode_minus_L=yes
9849      export_dynamic_flag_spec='$wl-E'
9850      ;;
9851
9852    hpux10*)
9853      if test yes,no = "$GCC,$with_gnu_ld"; then
9854	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855      else
9856	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9857      fi
9858      if test no = "$with_gnu_ld"; then
9859	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9860	hardcode_libdir_separator=:
9861	hardcode_direct=yes
9862	hardcode_direct_absolute=yes
9863	export_dynamic_flag_spec='$wl-E'
9864	# hardcode_minus_L: Not really in the search PATH,
9865	# but as the default location of the library.
9866	hardcode_minus_L=yes
9867      fi
9868      ;;
9869
9870    hpux11*)
9871      if test yes,no = "$GCC,$with_gnu_ld"; then
9872	case $host_cpu in
9873	hppa*64*)
9874	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9875	  ;;
9876	ia64*)
9877	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9878	  ;;
9879	*)
9880	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9881	  ;;
9882	esac
9883      else
9884	case $host_cpu in
9885	hppa*64*)
9886	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9887	  ;;
9888	ia64*)
9889	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9890	  ;;
9891	*)
9892
9893	  # Older versions of the 11.00 compiler do not understand -b yet
9894	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9895	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9896$as_echo_n "checking if $CC understands -b... " >&6; }
9897if ${lt_cv_prog_compiler__b+:} false; then :
9898  $as_echo_n "(cached) " >&6
9899else
9900  lt_cv_prog_compiler__b=no
9901   save_LDFLAGS=$LDFLAGS
9902   LDFLAGS="$LDFLAGS -b"
9903   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9904   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9905     # The linker can only warn and ignore the option if not recognized
9906     # So say no if there are warnings
9907     if test -s conftest.err; then
9908       # Append any errors to the config.log.
9909       cat conftest.err 1>&5
9910       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9911       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9912       if diff conftest.exp conftest.er2 >/dev/null; then
9913         lt_cv_prog_compiler__b=yes
9914       fi
9915     else
9916       lt_cv_prog_compiler__b=yes
9917     fi
9918   fi
9919   $RM -r conftest*
9920   LDFLAGS=$save_LDFLAGS
9921
9922fi
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9924$as_echo "$lt_cv_prog_compiler__b" >&6; }
9925
9926if test yes = "$lt_cv_prog_compiler__b"; then
9927    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9928else
9929    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9930fi
9931
9932	  ;;
9933	esac
9934      fi
9935      if test no = "$with_gnu_ld"; then
9936	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9937	hardcode_libdir_separator=:
9938
9939	case $host_cpu in
9940	hppa*64*|ia64*)
9941	  hardcode_direct=no
9942	  hardcode_shlibpath_var=no
9943	  ;;
9944	*)
9945	  hardcode_direct=yes
9946	  hardcode_direct_absolute=yes
9947	  export_dynamic_flag_spec='$wl-E'
9948
9949	  # hardcode_minus_L: Not really in the search PATH,
9950	  # but as the default location of the library.
9951	  hardcode_minus_L=yes
9952	  ;;
9953	esac
9954      fi
9955      ;;
9956
9957    irix5* | irix6* | nonstopux*)
9958      if test yes = "$GCC"; then
9959	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'
9960	# Try to use the -exported_symbol ld option, if it does not
9961	# work, assume that -exports_file does not work either and
9962	# implicitly export all symbols.
9963	# This should be the same for all languages, so no per-tag cache variable.
9964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9965$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9966if ${lt_cv_irix_exported_symbol+:} false; then :
9967  $as_echo_n "(cached) " >&6
9968else
9969  save_LDFLAGS=$LDFLAGS
9970	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9971	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972/* end confdefs.h.  */
9973int foo (void) { return 0; }
9974_ACEOF
9975if ac_fn_c_try_link "$LINENO"; then :
9976  lt_cv_irix_exported_symbol=yes
9977else
9978  lt_cv_irix_exported_symbol=no
9979fi
9980rm -f core conftest.err conftest.$ac_objext \
9981    conftest$ac_exeext conftest.$ac_ext
9982           LDFLAGS=$save_LDFLAGS
9983fi
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9985$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9986	if test yes = "$lt_cv_irix_exported_symbol"; then
9987          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'
9988	fi
9989      else
9990	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'
9991	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'
9992      fi
9993      archive_cmds_need_lc='no'
9994      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9995      hardcode_libdir_separator=:
9996      inherit_rpath=yes
9997      link_all_deplibs=yes
9998      ;;
9999
10000    linux*)
10001      case $cc_basename in
10002      tcc*)
10003	# Fabrice Bellard et al's Tiny C Compiler
10004	ld_shlibs=yes
10005	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10006	;;
10007      esac
10008      ;;
10009
10010    netbsd*)
10011      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10012	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10013      else
10014	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10015      fi
10016      hardcode_libdir_flag_spec='-R$libdir'
10017      hardcode_direct=yes
10018      hardcode_shlibpath_var=no
10019      ;;
10020
10021    newsos6)
10022      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10023      hardcode_direct=yes
10024      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10025      hardcode_libdir_separator=:
10026      hardcode_shlibpath_var=no
10027      ;;
10028
10029    *nto* | *qnx*)
10030      ;;
10031
10032    openbsd* | bitrig*)
10033      if test -f /usr/libexec/ld.so; then
10034	hardcode_direct=yes
10035	hardcode_shlibpath_var=no
10036	hardcode_direct_absolute=yes
10037	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10038	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10039	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10040	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10041	  export_dynamic_flag_spec='$wl-E'
10042	else
10043	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10044	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10045	fi
10046      else
10047	ld_shlibs=no
10048      fi
10049      ;;
10050
10051    os2*)
10052      hardcode_libdir_flag_spec='-L$libdir'
10053      hardcode_minus_L=yes
10054      allow_undefined_flag=unsupported
10055      shrext_cmds=.dll
10056      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10057	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10058	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10059	$ECHO EXPORTS >> $output_objdir/$libname.def~
10060	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10061	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10062	emximp -o $lib $output_objdir/$libname.def'
10063      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10064	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10065	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10066	$ECHO EXPORTS >> $output_objdir/$libname.def~
10067	prefix_cmds="$SED"~
10068	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10069	  prefix_cmds="$prefix_cmds -e 1d";
10070	fi~
10071	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10072	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10073	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10074	emximp -o $lib $output_objdir/$libname.def'
10075      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10076      enable_shared_with_static_runtimes=yes
10077      ;;
10078
10079    osf3*)
10080      if test yes = "$GCC"; then
10081	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10082	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'
10083      else
10084	allow_undefined_flag=' -expect_unresolved \*'
10085	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'
10086      fi
10087      archive_cmds_need_lc='no'
10088      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10089      hardcode_libdir_separator=:
10090      ;;
10091
10092    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10093      if test yes = "$GCC"; then
10094	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10095	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'
10096	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10097      else
10098	allow_undefined_flag=' -expect_unresolved \*'
10099	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'
10100	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~
10101          $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'
10102
10103	# Both c and cxx compiler support -rpath directly
10104	hardcode_libdir_flag_spec='-rpath $libdir'
10105      fi
10106      archive_cmds_need_lc='no'
10107      hardcode_libdir_separator=:
10108      ;;
10109
10110    solaris*)
10111      no_undefined_flag=' -z defs'
10112      if test yes = "$GCC"; then
10113	wlarc='$wl'
10114	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10115	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10116          $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'
10117      else
10118	case `$CC -V 2>&1` in
10119	*"Compilers 5.0"*)
10120	  wlarc=''
10121	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10123            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10124	  ;;
10125	*)
10126	  wlarc='$wl'
10127	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10128	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10129            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10130	  ;;
10131	esac
10132      fi
10133      hardcode_libdir_flag_spec='-R$libdir'
10134      hardcode_shlibpath_var=no
10135      case $host_os in
10136      solaris2.[0-5] | solaris2.[0-5].*) ;;
10137      *)
10138	# The compiler driver will combine and reorder linker options,
10139	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10140	# but is careful enough not to reorder.
10141	# Supported since Solaris 2.6 (maybe 2.5.1?)
10142	if test yes = "$GCC"; then
10143	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10144	else
10145	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10146	fi
10147	;;
10148      esac
10149      link_all_deplibs=yes
10150      ;;
10151
10152    sunos4*)
10153      if test sequent = "$host_vendor"; then
10154	# Use $CC to link under sequent, because it throws in some extra .o
10155	# files that make .init and .fini sections work.
10156	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10157      else
10158	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10159      fi
10160      hardcode_libdir_flag_spec='-L$libdir'
10161      hardcode_direct=yes
10162      hardcode_minus_L=yes
10163      hardcode_shlibpath_var=no
10164      ;;
10165
10166    sysv4)
10167      case $host_vendor in
10168	sni)
10169	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170	  hardcode_direct=yes # is this really true???
10171	;;
10172	siemens)
10173	  ## LD is ld it makes a PLAMLIB
10174	  ## CC just makes a GrossModule.
10175	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10176	  reload_cmds='$CC -r -o $output$reload_objs'
10177	  hardcode_direct=no
10178        ;;
10179	motorola)
10180	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10181	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10182	;;
10183      esac
10184      runpath_var='LD_RUN_PATH'
10185      hardcode_shlibpath_var=no
10186      ;;
10187
10188    sysv4.3*)
10189      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190      hardcode_shlibpath_var=no
10191      export_dynamic_flag_spec='-Bexport'
10192      ;;
10193
10194    sysv4*MP*)
10195      if test -d /usr/nec; then
10196	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197	hardcode_shlibpath_var=no
10198	runpath_var=LD_RUN_PATH
10199	hardcode_runpath_var=yes
10200	ld_shlibs=yes
10201      fi
10202      ;;
10203
10204    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10205      no_undefined_flag='$wl-z,text'
10206      archive_cmds_need_lc=no
10207      hardcode_shlibpath_var=no
10208      runpath_var='LD_RUN_PATH'
10209
10210      if test yes = "$GCC"; then
10211	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10212	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10213      else
10214	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10215	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10216      fi
10217      ;;
10218
10219    sysv5* | sco3.2v5* | sco5v6*)
10220      # Note: We CANNOT use -z defs as we might desire, because we do not
10221      # link with -lc, and that would cause any symbols used from libc to
10222      # always be unresolved, which means just about no library would
10223      # ever link correctly.  If we're not using GNU ld we use -z text
10224      # though, which does catch some bad symbols but isn't as heavy-handed
10225      # as -z defs.
10226      no_undefined_flag='$wl-z,text'
10227      allow_undefined_flag='$wl-z,nodefs'
10228      archive_cmds_need_lc=no
10229      hardcode_shlibpath_var=no
10230      hardcode_libdir_flag_spec='$wl-R,$libdir'
10231      hardcode_libdir_separator=':'
10232      link_all_deplibs=yes
10233      export_dynamic_flag_spec='$wl-Bexport'
10234      runpath_var='LD_RUN_PATH'
10235
10236      if test yes = "$GCC"; then
10237	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239      else
10240	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10242      fi
10243      ;;
10244
10245    uts4*)
10246      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10247      hardcode_libdir_flag_spec='-L$libdir'
10248      hardcode_shlibpath_var=no
10249      ;;
10250
10251    *)
10252      ld_shlibs=no
10253      ;;
10254    esac
10255
10256    if test sni = "$host_vendor"; then
10257      case $host in
10258      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10259	export_dynamic_flag_spec='$wl-Blargedynsym'
10260	;;
10261      esac
10262    fi
10263  fi
10264
10265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10266$as_echo "$ld_shlibs" >&6; }
10267test no = "$ld_shlibs" && can_build_shared=no
10268
10269with_gnu_ld=$with_gnu_ld
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285#
10286# Do we need to explicitly link libc?
10287#
10288case "x$archive_cmds_need_lc" in
10289x|xyes)
10290  # Assume -lc should be added
10291  archive_cmds_need_lc=yes
10292
10293  if test yes,yes = "$GCC,$enable_shared"; then
10294    case $archive_cmds in
10295    *'~'*)
10296      # FIXME: we may have to deal with multi-command sequences.
10297      ;;
10298    '$CC '*)
10299      # Test whether the compiler implicitly links with -lc since on some
10300      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10301      # to ld, don't add -lc before -lgcc.
10302      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10303$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10304if ${lt_cv_archive_cmds_need_lc+:} false; then :
10305  $as_echo_n "(cached) " >&6
10306else
10307  $RM conftest*
10308	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10309
10310	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10311  (eval $ac_compile) 2>&5
10312  ac_status=$?
10313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314  test $ac_status = 0; } 2>conftest.err; then
10315	  soname=conftest
10316	  lib=conftest
10317	  libobjs=conftest.$ac_objext
10318	  deplibs=
10319	  wl=$lt_prog_compiler_wl
10320	  pic_flag=$lt_prog_compiler_pic
10321	  compiler_flags=-v
10322	  linker_flags=-v
10323	  verstring=
10324	  output_objdir=.
10325	  libname=conftest
10326	  lt_save_allow_undefined_flag=$allow_undefined_flag
10327	  allow_undefined_flag=
10328	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10329  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10330  ac_status=$?
10331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10332  test $ac_status = 0; }
10333	  then
10334	    lt_cv_archive_cmds_need_lc=no
10335	  else
10336	    lt_cv_archive_cmds_need_lc=yes
10337	  fi
10338	  allow_undefined_flag=$lt_save_allow_undefined_flag
10339	else
10340	  cat conftest.err 1>&5
10341	fi
10342	$RM conftest*
10343
10344fi
10345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10346$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10347      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10348      ;;
10349    esac
10350  fi
10351  ;;
10352esac
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10506$as_echo_n "checking dynamic linker characteristics... " >&6; }
10507
10508if test yes = "$GCC"; then
10509  case $host_os in
10510    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10511    *) lt_awk_arg='/^libraries:/' ;;
10512  esac
10513  case $host_os in
10514    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10515    *) lt_sed_strip_eq='s|=/|/|g' ;;
10516  esac
10517  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10518  case $lt_search_path_spec in
10519  *\;*)
10520    # if the path contains ";" then we assume it to be the separator
10521    # otherwise default to the standard path separator (i.e. ":") - it is
10522    # assumed that no part of a normal pathname contains ";" but that should
10523    # okay in the real world where ";" in dirpaths is itself problematic.
10524    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10525    ;;
10526  *)
10527    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10528    ;;
10529  esac
10530  # Ok, now we have the path, separated by spaces, we can step through it
10531  # and add multilib dir if necessary...
10532  lt_tmp_lt_search_path_spec=
10533  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10534  # ...but if some path component already ends with the multilib dir we assume
10535  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10536  case "$lt_multi_os_dir; $lt_search_path_spec " in
10537  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10538    lt_multi_os_dir=
10539    ;;
10540  esac
10541  for lt_sys_path in $lt_search_path_spec; do
10542    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10543      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10544    elif test -n "$lt_multi_os_dir"; then
10545      test -d "$lt_sys_path" && \
10546	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10547    fi
10548  done
10549  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10550BEGIN {RS = " "; FS = "/|\n";} {
10551  lt_foo = "";
10552  lt_count = 0;
10553  for (lt_i = NF; lt_i > 0; lt_i--) {
10554    if ($lt_i != "" && $lt_i != ".") {
10555      if ($lt_i == "..") {
10556        lt_count++;
10557      } else {
10558        if (lt_count == 0) {
10559          lt_foo = "/" $lt_i lt_foo;
10560        } else {
10561          lt_count--;
10562        }
10563      }
10564    }
10565  }
10566  if (lt_foo != "") { lt_freq[lt_foo]++; }
10567  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10568}'`
10569  # AWK program above erroneously prepends '/' to C:/dos/paths
10570  # for these hosts.
10571  case $host_os in
10572    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10573      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10574  esac
10575  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10576else
10577  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10578fi
10579library_names_spec=
10580libname_spec='lib$name'
10581soname_spec=
10582shrext_cmds=.so
10583postinstall_cmds=
10584postuninstall_cmds=
10585finish_cmds=
10586finish_eval=
10587shlibpath_var=
10588shlibpath_overrides_runpath=unknown
10589version_type=none
10590dynamic_linker="$host_os ld.so"
10591sys_lib_dlsearch_path_spec="/lib /usr/lib"
10592need_lib_prefix=unknown
10593hardcode_into_libs=no
10594
10595# when you set need_version to no, make sure it does not cause -set_version
10596# flags to be left without arguments
10597need_version=unknown
10598
10599
10600
10601case $host_os in
10602aix3*)
10603  version_type=linux # correct to gnu/linux during the next big refactor
10604  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10605  shlibpath_var=LIBPATH
10606
10607  # AIX 3 has no versioning support, so we append a major version to the name.
10608  soname_spec='$libname$release$shared_ext$major'
10609  ;;
10610
10611aix[4-9]*)
10612  version_type=linux # correct to gnu/linux during the next big refactor
10613  need_lib_prefix=no
10614  need_version=no
10615  hardcode_into_libs=yes
10616  if test ia64 = "$host_cpu"; then
10617    # AIX 5 supports IA64
10618    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10619    shlibpath_var=LD_LIBRARY_PATH
10620  else
10621    # With GCC up to 2.95.x, collect2 would create an import file
10622    # for dependence libraries.  The import file would start with
10623    # the line '#! .'.  This would cause the generated library to
10624    # depend on '.', always an invalid library.  This was fixed in
10625    # development snapshots of GCC prior to 3.0.
10626    case $host_os in
10627      aix4 | aix4.[01] | aix4.[01].*)
10628      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10629	   echo ' yes '
10630	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10631	:
10632      else
10633	can_build_shared=no
10634      fi
10635      ;;
10636    esac
10637    # Using Import Files as archive members, it is possible to support
10638    # filename-based versioning of shared library archives on AIX. While
10639    # this would work for both with and without runtime linking, it will
10640    # prevent static linking of such archives. So we do filename-based
10641    # shared library versioning with .so extension only, which is used
10642    # when both runtime linking and shared linking is enabled.
10643    # Unfortunately, runtime linking may impact performance, so we do
10644    # not want this to be the default eventually. Also, we use the
10645    # versioned .so libs for executables only if there is the -brtl
10646    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10647    # To allow for filename-based versioning support, we need to create
10648    # libNAME.so.V as an archive file, containing:
10649    # *) an Import File, referring to the versioned filename of the
10650    #    archive as well as the shared archive member, telling the
10651    #    bitwidth (32 or 64) of that shared object, and providing the
10652    #    list of exported symbols of that shared object, eventually
10653    #    decorated with the 'weak' keyword
10654    # *) the shared object with the F_LOADONLY flag set, to really avoid
10655    #    it being seen by the linker.
10656    # At run time we better use the real file rather than another symlink,
10657    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10658
10659    case $with_aix_soname,$aix_use_runtimelinking in
10660    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10661    # soname into executable. Probably we can add versioning support to
10662    # collect2, so additional links can be useful in future.
10663    aix,yes) # traditional libtool
10664      dynamic_linker='AIX unversionable lib.so'
10665      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10666      # instead of lib<name>.a to let people know that these are not
10667      # typical AIX shared libraries.
10668      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10669      ;;
10670    aix,no) # traditional AIX only
10671      dynamic_linker='AIX lib.a(lib.so.V)'
10672      # We preserve .a as extension for shared libraries through AIX4.2
10673      # and later when we are not doing run time linking.
10674      library_names_spec='$libname$release.a $libname.a'
10675      soname_spec='$libname$release$shared_ext$major'
10676      ;;
10677    svr4,*) # full svr4 only
10678      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10679      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10680      # We do not specify a path in Import Files, so LIBPATH fires.
10681      shlibpath_overrides_runpath=yes
10682      ;;
10683    *,yes) # both, prefer svr4
10684      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10685      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10686      # unpreferred sharedlib libNAME.a needs extra handling
10687      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"'
10688      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"'
10689      # We do not specify a path in Import Files, so LIBPATH fires.
10690      shlibpath_overrides_runpath=yes
10691      ;;
10692    *,no) # both, prefer aix
10693      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10694      library_names_spec='$libname$release.a $libname.a'
10695      soname_spec='$libname$release$shared_ext$major'
10696      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10697      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)'
10698      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"'
10699      ;;
10700    esac
10701    shlibpath_var=LIBPATH
10702  fi
10703  ;;
10704
10705amigaos*)
10706  case $host_cpu in
10707  powerpc)
10708    # Since July 2007 AmigaOS4 officially supports .so libraries.
10709    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10710    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10711    ;;
10712  m68k)
10713    library_names_spec='$libname.ixlibrary $libname.a'
10714    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10715    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'
10716    ;;
10717  esac
10718  ;;
10719
10720beos*)
10721  library_names_spec='$libname$shared_ext'
10722  dynamic_linker="$host_os ld.so"
10723  shlibpath_var=LIBRARY_PATH
10724  ;;
10725
10726bsdi[45]*)
10727  version_type=linux # correct to gnu/linux during the next big refactor
10728  need_version=no
10729  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10730  soname_spec='$libname$release$shared_ext$major'
10731  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10732  shlibpath_var=LD_LIBRARY_PATH
10733  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10734  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10735  # the default ld.so.conf also contains /usr/contrib/lib and
10736  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10737  # libtool to hard-code these into programs
10738  ;;
10739
10740cygwin* | mingw* | pw32* | cegcc*)
10741  version_type=windows
10742  shrext_cmds=.dll
10743  need_version=no
10744  need_lib_prefix=no
10745
10746  case $GCC,$cc_basename in
10747  yes,*)
10748    # gcc
10749    library_names_spec='$libname.dll.a'
10750    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10751    postinstall_cmds='base_file=`basename \$file`~
10752      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10753      dldir=$destdir/`dirname \$dlpath`~
10754      test -d \$dldir || mkdir -p \$dldir~
10755      $install_prog $dir/$dlname \$dldir/$dlname~
10756      chmod a+x \$dldir/$dlname~
10757      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10758        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10759      fi'
10760    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10761      dlpath=$dir/\$dldll~
10762       $RM \$dlpath'
10763    shlibpath_overrides_runpath=yes
10764
10765    case $host_os in
10766    cygwin*)
10767      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10768      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10769
10770      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10771      ;;
10772    mingw* | cegcc*)
10773      # MinGW DLLs use traditional 'lib' prefix
10774      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10775      ;;
10776    pw32*)
10777      # pw32 DLLs use 'pw' prefix rather than 'lib'
10778      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10779      ;;
10780    esac
10781    dynamic_linker='Win32 ld.exe'
10782    ;;
10783
10784  *,cl*)
10785    # Native MSVC
10786    libname_spec='$name'
10787    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10788    library_names_spec='$libname.dll.lib'
10789
10790    case $build_os in
10791    mingw*)
10792      sys_lib_search_path_spec=
10793      lt_save_ifs=$IFS
10794      IFS=';'
10795      for lt_path in $LIB
10796      do
10797        IFS=$lt_save_ifs
10798        # Let DOS variable expansion print the short 8.3 style file name.
10799        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10800        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10801      done
10802      IFS=$lt_save_ifs
10803      # Convert to MSYS style.
10804      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10805      ;;
10806    cygwin*)
10807      # Convert to unix form, then to dos form, then back to unix form
10808      # but this time dos style (no spaces!) so that the unix form looks
10809      # like /cygdrive/c/PROGRA~1:/cygdr...
10810      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10811      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10812      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10813      ;;
10814    *)
10815      sys_lib_search_path_spec=$LIB
10816      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10817        # It is most probably a Windows format PATH.
10818        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10819      else
10820        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10821      fi
10822      # FIXME: find the short name or the path components, as spaces are
10823      # common. (e.g. "Program Files" -> "PROGRA~1")
10824      ;;
10825    esac
10826
10827    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10828    postinstall_cmds='base_file=`basename \$file`~
10829      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10830      dldir=$destdir/`dirname \$dlpath`~
10831      test -d \$dldir || mkdir -p \$dldir~
10832      $install_prog $dir/$dlname \$dldir/$dlname'
10833    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10834      dlpath=$dir/\$dldll~
10835       $RM \$dlpath'
10836    shlibpath_overrides_runpath=yes
10837    dynamic_linker='Win32 link.exe'
10838    ;;
10839
10840  *)
10841    # Assume MSVC wrapper
10842    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10843    dynamic_linker='Win32 ld.exe'
10844    ;;
10845  esac
10846  # FIXME: first we should search . and the directory the executable is in
10847  shlibpath_var=PATH
10848  ;;
10849
10850darwin* | rhapsody*)
10851  dynamic_linker="$host_os dyld"
10852  version_type=darwin
10853  need_lib_prefix=no
10854  need_version=no
10855  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10856  soname_spec='$libname$release$major$shared_ext'
10857  shlibpath_overrides_runpath=yes
10858  shlibpath_var=DYLD_LIBRARY_PATH
10859  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10860
10861  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10862  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10863  ;;
10864
10865dgux*)
10866  version_type=linux # correct to gnu/linux during the next big refactor
10867  need_lib_prefix=no
10868  need_version=no
10869  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10870  soname_spec='$libname$release$shared_ext$major'
10871  shlibpath_var=LD_LIBRARY_PATH
10872  ;;
10873
10874freebsd* | dragonfly*)
10875  # DragonFly does not have aout.  When/if they implement a new
10876  # versioning mechanism, adjust this.
10877  if test -x /usr/bin/objformat; then
10878    objformat=`/usr/bin/objformat`
10879  else
10880    case $host_os in
10881    freebsd[23].*) objformat=aout ;;
10882    *) objformat=elf ;;
10883    esac
10884  fi
10885  version_type=freebsd-$objformat
10886  case $version_type in
10887    freebsd-elf*)
10888      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10889      soname_spec='$libname$release$shared_ext$major'
10890      need_version=no
10891      need_lib_prefix=no
10892      ;;
10893    freebsd-*)
10894      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10895      need_version=yes
10896      ;;
10897  esac
10898  shlibpath_var=LD_LIBRARY_PATH
10899  case $host_os in
10900  freebsd2.*)
10901    shlibpath_overrides_runpath=yes
10902    ;;
10903  freebsd3.[01]* | freebsdelf3.[01]*)
10904    shlibpath_overrides_runpath=yes
10905    hardcode_into_libs=yes
10906    ;;
10907  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10908  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10909    shlibpath_overrides_runpath=no
10910    hardcode_into_libs=yes
10911    ;;
10912  *) # from 4.6 on, and DragonFly
10913    shlibpath_overrides_runpath=yes
10914    hardcode_into_libs=yes
10915    ;;
10916  esac
10917  ;;
10918
10919haiku*)
10920  version_type=linux # correct to gnu/linux during the next big refactor
10921  need_lib_prefix=no
10922  need_version=no
10923  dynamic_linker="$host_os runtime_loader"
10924  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10925  soname_spec='$libname$release$shared_ext$major'
10926  shlibpath_var=LIBRARY_PATH
10927  shlibpath_overrides_runpath=no
10928  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10929  hardcode_into_libs=yes
10930  ;;
10931
10932hpux9* | hpux10* | hpux11*)
10933  # Give a soname corresponding to the major version so that dld.sl refuses to
10934  # link against other versions.
10935  version_type=sunos
10936  need_lib_prefix=no
10937  need_version=no
10938  case $host_cpu in
10939  ia64*)
10940    shrext_cmds='.so'
10941    hardcode_into_libs=yes
10942    dynamic_linker="$host_os dld.so"
10943    shlibpath_var=LD_LIBRARY_PATH
10944    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10945    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10946    soname_spec='$libname$release$shared_ext$major'
10947    if test 32 = "$HPUX_IA64_MODE"; then
10948      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10949      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10950    else
10951      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10952      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10953    fi
10954    ;;
10955  hppa*64*)
10956    shrext_cmds='.sl'
10957    hardcode_into_libs=yes
10958    dynamic_linker="$host_os dld.sl"
10959    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10960    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10961    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10962    soname_spec='$libname$release$shared_ext$major'
10963    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10964    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10965    ;;
10966  *)
10967    shrext_cmds='.sl'
10968    dynamic_linker="$host_os dld.sl"
10969    shlibpath_var=SHLIB_PATH
10970    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10971    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10972    soname_spec='$libname$release$shared_ext$major'
10973    ;;
10974  esac
10975  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10976  postinstall_cmds='chmod 555 $lib'
10977  # or fails outright, so override atomically:
10978  install_override_mode=555
10979  ;;
10980
10981interix[3-9]*)
10982  version_type=linux # correct to gnu/linux during the next big refactor
10983  need_lib_prefix=no
10984  need_version=no
10985  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10986  soname_spec='$libname$release$shared_ext$major'
10987  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10988  shlibpath_var=LD_LIBRARY_PATH
10989  shlibpath_overrides_runpath=no
10990  hardcode_into_libs=yes
10991  ;;
10992
10993irix5* | irix6* | nonstopux*)
10994  case $host_os in
10995    nonstopux*) version_type=nonstopux ;;
10996    *)
10997	if test yes = "$lt_cv_prog_gnu_ld"; then
10998		version_type=linux # correct to gnu/linux during the next big refactor
10999	else
11000		version_type=irix
11001	fi ;;
11002  esac
11003  need_lib_prefix=no
11004  need_version=no
11005  soname_spec='$libname$release$shared_ext$major'
11006  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11007  case $host_os in
11008  irix5* | nonstopux*)
11009    libsuff= shlibsuff=
11010    ;;
11011  *)
11012    case $LD in # libtool.m4 will add one of these switches to LD
11013    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11014      libsuff= shlibsuff= libmagic=32-bit;;
11015    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11016      libsuff=32 shlibsuff=N32 libmagic=N32;;
11017    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11018      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11019    *) libsuff= shlibsuff= libmagic=never-match;;
11020    esac
11021    ;;
11022  esac
11023  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11024  shlibpath_overrides_runpath=no
11025  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11026  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11027  hardcode_into_libs=yes
11028  ;;
11029
11030# No shared lib support for Linux oldld, aout, or coff.
11031linux*oldld* | linux*aout* | linux*coff*)
11032  dynamic_linker=no
11033  ;;
11034
11035linux*android*)
11036  version_type=none # Android doesn't support versioned libraries.
11037  need_lib_prefix=no
11038  need_version=no
11039  library_names_spec='$libname$release$shared_ext'
11040  soname_spec='$libname$release$shared_ext'
11041  finish_cmds=
11042  shlibpath_var=LD_LIBRARY_PATH
11043  shlibpath_overrides_runpath=yes
11044
11045  # This implies no fast_install, which is unacceptable.
11046  # Some rework will be needed to allow for fast_install
11047  # before this can be enabled.
11048  hardcode_into_libs=yes
11049
11050  dynamic_linker='Android linker'
11051  # Don't embed -rpath directories since the linker doesn't support them.
11052  hardcode_libdir_flag_spec='-L$libdir'
11053  ;;
11054
11055# This must be glibc/ELF.
11056linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11057  version_type=linux # correct to gnu/linux during the next big refactor
11058  need_lib_prefix=no
11059  need_version=no
11060  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11061  soname_spec='$libname$release$shared_ext$major'
11062  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11063  shlibpath_var=LD_LIBRARY_PATH
11064  shlibpath_overrides_runpath=no
11065
11066  # Some binutils ld are patched to set DT_RUNPATH
11067  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11068  $as_echo_n "(cached) " >&6
11069else
11070  lt_cv_shlibpath_overrides_runpath=no
11071    save_LDFLAGS=$LDFLAGS
11072    save_libdir=$libdir
11073    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11074	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11075    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11076/* end confdefs.h.  */
11077
11078int
11079main ()
11080{
11081
11082  ;
11083  return 0;
11084}
11085_ACEOF
11086if ac_fn_c_try_link "$LINENO"; then :
11087  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11088  lt_cv_shlibpath_overrides_runpath=yes
11089fi
11090fi
11091rm -f core conftest.err conftest.$ac_objext \
11092    conftest$ac_exeext conftest.$ac_ext
11093    LDFLAGS=$save_LDFLAGS
11094    libdir=$save_libdir
11095
11096fi
11097
11098  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11099
11100  # This implies no fast_install, which is unacceptable.
11101  # Some rework will be needed to allow for fast_install
11102  # before this can be enabled.
11103  hardcode_into_libs=yes
11104
11105  # Ideally, we could use ldconfig to report *all* directores which are
11106  # searched for libraries, however this is still not possible.  Aside from not
11107  # being certain /sbin/ldconfig is available, command
11108  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11109  # even though it is searched at run-time.  Try to do the best guess by
11110  # appending ld.so.conf contents (and includes) to the search path.
11111  if test -f /etc/ld.so.conf; then
11112    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' ' '`
11113    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11114  fi
11115
11116  # We used to test for /lib/ld.so.1 and disable shared libraries on
11117  # powerpc, because MkLinux only supported shared libraries with the
11118  # GNU dynamic linker.  Since this was broken with cross compilers,
11119  # most powerpc-linux boxes support dynamic linking these days and
11120  # people can always --disable-shared, the test was removed, and we
11121  # assume the GNU/Linux dynamic linker is in use.
11122  dynamic_linker='GNU/Linux ld.so'
11123  ;;
11124
11125netbsd*)
11126  version_type=sunos
11127  need_lib_prefix=no
11128  need_version=no
11129  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11130    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11131    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11132    dynamic_linker='NetBSD (a.out) ld.so'
11133  else
11134    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11135    soname_spec='$libname$release$shared_ext$major'
11136    dynamic_linker='NetBSD ld.elf_so'
11137  fi
11138  shlibpath_var=LD_LIBRARY_PATH
11139  shlibpath_overrides_runpath=yes
11140  hardcode_into_libs=yes
11141  ;;
11142
11143newsos6)
11144  version_type=linux # correct to gnu/linux during the next big refactor
11145  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11146  shlibpath_var=LD_LIBRARY_PATH
11147  shlibpath_overrides_runpath=yes
11148  ;;
11149
11150*nto* | *qnx*)
11151  version_type=qnx
11152  need_lib_prefix=no
11153  need_version=no
11154  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155  soname_spec='$libname$release$shared_ext$major'
11156  shlibpath_var=LD_LIBRARY_PATH
11157  shlibpath_overrides_runpath=no
11158  hardcode_into_libs=yes
11159  dynamic_linker='ldqnx.so'
11160  ;;
11161
11162openbsd* | bitrig*)
11163  version_type=sunos
11164  sys_lib_dlsearch_path_spec=/usr/lib
11165  need_lib_prefix=no
11166  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11167    need_version=no
11168  else
11169    need_version=yes
11170  fi
11171  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11172  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11173  shlibpath_var=LD_LIBRARY_PATH
11174  shlibpath_overrides_runpath=yes
11175  ;;
11176
11177os2*)
11178  libname_spec='$name'
11179  version_type=windows
11180  shrext_cmds=.dll
11181  need_version=no
11182  need_lib_prefix=no
11183  # OS/2 can only load a DLL with a base name of 8 characters or less.
11184  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11185    v=$($ECHO $release$versuffix | tr -d .-);
11186    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11187    $ECHO $n$v`$shared_ext'
11188  library_names_spec='${libname}_dll.$libext'
11189  dynamic_linker='OS/2 ld.exe'
11190  shlibpath_var=BEGINLIBPATH
11191  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11192  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11193  postinstall_cmds='base_file=`basename \$file`~
11194    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11195    dldir=$destdir/`dirname \$dlpath`~
11196    test -d \$dldir || mkdir -p \$dldir~
11197    $install_prog $dir/$dlname \$dldir/$dlname~
11198    chmod a+x \$dldir/$dlname~
11199    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11200      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11201    fi'
11202  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11203    dlpath=$dir/\$dldll~
11204    $RM \$dlpath'
11205  ;;
11206
11207osf3* | osf4* | osf5*)
11208  version_type=osf
11209  need_lib_prefix=no
11210  need_version=no
11211  soname_spec='$libname$release$shared_ext$major'
11212  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11213  shlibpath_var=LD_LIBRARY_PATH
11214  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11215  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11216  ;;
11217
11218rdos*)
11219  dynamic_linker=no
11220  ;;
11221
11222solaris*)
11223  version_type=linux # correct to gnu/linux during the next big refactor
11224  need_lib_prefix=no
11225  need_version=no
11226  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11227  soname_spec='$libname$release$shared_ext$major'
11228  shlibpath_var=LD_LIBRARY_PATH
11229  shlibpath_overrides_runpath=yes
11230  hardcode_into_libs=yes
11231  # ldd complains unless libraries are executable
11232  postinstall_cmds='chmod +x $lib'
11233  ;;
11234
11235sunos4*)
11236  version_type=sunos
11237  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11238  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11239  shlibpath_var=LD_LIBRARY_PATH
11240  shlibpath_overrides_runpath=yes
11241  if test yes = "$with_gnu_ld"; then
11242    need_lib_prefix=no
11243  fi
11244  need_version=yes
11245  ;;
11246
11247sysv4 | sysv4.3*)
11248  version_type=linux # correct to gnu/linux during the next big refactor
11249  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11250  soname_spec='$libname$release$shared_ext$major'
11251  shlibpath_var=LD_LIBRARY_PATH
11252  case $host_vendor in
11253    sni)
11254      shlibpath_overrides_runpath=no
11255      need_lib_prefix=no
11256      runpath_var=LD_RUN_PATH
11257      ;;
11258    siemens)
11259      need_lib_prefix=no
11260      ;;
11261    motorola)
11262      need_lib_prefix=no
11263      need_version=no
11264      shlibpath_overrides_runpath=no
11265      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11266      ;;
11267  esac
11268  ;;
11269
11270sysv4*MP*)
11271  if test -d /usr/nec; then
11272    version_type=linux # correct to gnu/linux during the next big refactor
11273    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11274    soname_spec='$libname$shared_ext.$major'
11275    shlibpath_var=LD_LIBRARY_PATH
11276  fi
11277  ;;
11278
11279sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11280  version_type=sco
11281  need_lib_prefix=no
11282  need_version=no
11283  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11284  soname_spec='$libname$release$shared_ext$major'
11285  shlibpath_var=LD_LIBRARY_PATH
11286  shlibpath_overrides_runpath=yes
11287  hardcode_into_libs=yes
11288  if test yes = "$with_gnu_ld"; then
11289    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11290  else
11291    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11292    case $host_os in
11293      sco3.2v5*)
11294        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11295	;;
11296    esac
11297  fi
11298  sys_lib_dlsearch_path_spec='/usr/lib'
11299  ;;
11300
11301tpf*)
11302  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11303  version_type=linux # correct to gnu/linux during the next big refactor
11304  need_lib_prefix=no
11305  need_version=no
11306  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11307  shlibpath_var=LD_LIBRARY_PATH
11308  shlibpath_overrides_runpath=no
11309  hardcode_into_libs=yes
11310  ;;
11311
11312uts4*)
11313  version_type=linux # correct to gnu/linux during the next big refactor
11314  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11315  soname_spec='$libname$release$shared_ext$major'
11316  shlibpath_var=LD_LIBRARY_PATH
11317  ;;
11318
11319*)
11320  dynamic_linker=no
11321  ;;
11322esac
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11324$as_echo "$dynamic_linker" >&6; }
11325test no = "$dynamic_linker" && can_build_shared=no
11326
11327variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11328if test yes = "$GCC"; then
11329  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11330fi
11331
11332if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11333  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11334fi
11335
11336if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11337  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11338fi
11339
11340# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11341configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11342
11343# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11344func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11345
11346# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11347configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11446$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11447hardcode_action=
11448if test -n "$hardcode_libdir_flag_spec" ||
11449   test -n "$runpath_var" ||
11450   test yes = "$hardcode_automatic"; then
11451
11452  # We can hardcode non-existent directories.
11453  if test no != "$hardcode_direct" &&
11454     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11455     # have to relink, otherwise we might link with an installed library
11456     # when we should be linking with a yet-to-be-installed one
11457     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11458     test no != "$hardcode_minus_L"; then
11459    # Linking always hardcodes the temporary library directory.
11460    hardcode_action=relink
11461  else
11462    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11463    hardcode_action=immediate
11464  fi
11465else
11466  # We cannot hardcode anything, or else we can only hardcode existing
11467  # directories.
11468  hardcode_action=unsupported
11469fi
11470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11471$as_echo "$hardcode_action" >&6; }
11472
11473if test relink = "$hardcode_action" ||
11474   test yes = "$inherit_rpath"; then
11475  # Fast installation is not supported
11476  enable_fast_install=no
11477elif test yes = "$shlibpath_overrides_runpath" ||
11478     test no = "$enable_shared"; then
11479  # Fast installation is not necessary
11480  enable_fast_install=needless
11481fi
11482
11483
11484
11485
11486
11487
11488  if test yes != "$enable_dlopen"; then
11489  enable_dlopen=unknown
11490  enable_dlopen_self=unknown
11491  enable_dlopen_self_static=unknown
11492else
11493  lt_cv_dlopen=no
11494  lt_cv_dlopen_libs=
11495
11496  case $host_os in
11497  beos*)
11498    lt_cv_dlopen=load_add_on
11499    lt_cv_dlopen_libs=
11500    lt_cv_dlopen_self=yes
11501    ;;
11502
11503  mingw* | pw32* | cegcc*)
11504    lt_cv_dlopen=LoadLibrary
11505    lt_cv_dlopen_libs=
11506    ;;
11507
11508  cygwin*)
11509    lt_cv_dlopen=dlopen
11510    lt_cv_dlopen_libs=
11511    ;;
11512
11513  darwin*)
11514    # if libdl is installed we need to link against it
11515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11516$as_echo_n "checking for dlopen in -ldl... " >&6; }
11517if ${ac_cv_lib_dl_dlopen+:} false; then :
11518  $as_echo_n "(cached) " >&6
11519else
11520  ac_check_lib_save_LIBS=$LIBS
11521LIBS="-ldl  $LIBS"
11522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523/* end confdefs.h.  */
11524
11525/* Override any GCC internal prototype to avoid an error.
11526   Use char because int might match the return type of a GCC
11527   builtin and then its argument prototype would still apply.  */
11528#ifdef __cplusplus
11529extern "C"
11530#endif
11531char dlopen ();
11532int
11533main ()
11534{
11535return dlopen ();
11536  ;
11537  return 0;
11538}
11539_ACEOF
11540if ac_fn_c_try_link "$LINENO"; then :
11541  ac_cv_lib_dl_dlopen=yes
11542else
11543  ac_cv_lib_dl_dlopen=no
11544fi
11545rm -f core conftest.err conftest.$ac_objext \
11546    conftest$ac_exeext conftest.$ac_ext
11547LIBS=$ac_check_lib_save_LIBS
11548fi
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11550$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11551if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11552  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11553else
11554
11555    lt_cv_dlopen=dyld
11556    lt_cv_dlopen_libs=
11557    lt_cv_dlopen_self=yes
11558
11559fi
11560
11561    ;;
11562
11563  tpf*)
11564    # Don't try to run any link tests for TPF.  We know it's impossible
11565    # because TPF is a cross-compiler, and we know how we open DSOs.
11566    lt_cv_dlopen=dlopen
11567    lt_cv_dlopen_libs=
11568    lt_cv_dlopen_self=no
11569    ;;
11570
11571  *)
11572    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11573if test "x$ac_cv_func_shl_load" = xyes; then :
11574  lt_cv_dlopen=shl_load
11575else
11576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11577$as_echo_n "checking for shl_load in -ldld... " >&6; }
11578if ${ac_cv_lib_dld_shl_load+:} false; then :
11579  $as_echo_n "(cached) " >&6
11580else
11581  ac_check_lib_save_LIBS=$LIBS
11582LIBS="-ldld  $LIBS"
11583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584/* end confdefs.h.  */
11585
11586/* Override any GCC internal prototype to avoid an error.
11587   Use char because int might match the return type of a GCC
11588   builtin and then its argument prototype would still apply.  */
11589#ifdef __cplusplus
11590extern "C"
11591#endif
11592char shl_load ();
11593int
11594main ()
11595{
11596return shl_load ();
11597  ;
11598  return 0;
11599}
11600_ACEOF
11601if ac_fn_c_try_link "$LINENO"; then :
11602  ac_cv_lib_dld_shl_load=yes
11603else
11604  ac_cv_lib_dld_shl_load=no
11605fi
11606rm -f core conftest.err conftest.$ac_objext \
11607    conftest$ac_exeext conftest.$ac_ext
11608LIBS=$ac_check_lib_save_LIBS
11609fi
11610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11611$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11612if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11613  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11614else
11615  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11616if test "x$ac_cv_func_dlopen" = xyes; then :
11617  lt_cv_dlopen=dlopen
11618else
11619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11620$as_echo_n "checking for dlopen in -ldl... " >&6; }
11621if ${ac_cv_lib_dl_dlopen+:} false; then :
11622  $as_echo_n "(cached) " >&6
11623else
11624  ac_check_lib_save_LIBS=$LIBS
11625LIBS="-ldl  $LIBS"
11626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627/* end confdefs.h.  */
11628
11629/* Override any GCC internal prototype to avoid an error.
11630   Use char because int might match the return type of a GCC
11631   builtin and then its argument prototype would still apply.  */
11632#ifdef __cplusplus
11633extern "C"
11634#endif
11635char dlopen ();
11636int
11637main ()
11638{
11639return dlopen ();
11640  ;
11641  return 0;
11642}
11643_ACEOF
11644if ac_fn_c_try_link "$LINENO"; then :
11645  ac_cv_lib_dl_dlopen=yes
11646else
11647  ac_cv_lib_dl_dlopen=no
11648fi
11649rm -f core conftest.err conftest.$ac_objext \
11650    conftest$ac_exeext conftest.$ac_ext
11651LIBS=$ac_check_lib_save_LIBS
11652fi
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11654$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11655if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11656  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11657else
11658  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11659$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11660if ${ac_cv_lib_svld_dlopen+:} false; then :
11661  $as_echo_n "(cached) " >&6
11662else
11663  ac_check_lib_save_LIBS=$LIBS
11664LIBS="-lsvld  $LIBS"
11665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666/* end confdefs.h.  */
11667
11668/* Override any GCC internal prototype to avoid an error.
11669   Use char because int might match the return type of a GCC
11670   builtin and then its argument prototype would still apply.  */
11671#ifdef __cplusplus
11672extern "C"
11673#endif
11674char dlopen ();
11675int
11676main ()
11677{
11678return dlopen ();
11679  ;
11680  return 0;
11681}
11682_ACEOF
11683if ac_fn_c_try_link "$LINENO"; then :
11684  ac_cv_lib_svld_dlopen=yes
11685else
11686  ac_cv_lib_svld_dlopen=no
11687fi
11688rm -f core conftest.err conftest.$ac_objext \
11689    conftest$ac_exeext conftest.$ac_ext
11690LIBS=$ac_check_lib_save_LIBS
11691fi
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11693$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11694if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11695  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11696else
11697  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11698$as_echo_n "checking for dld_link in -ldld... " >&6; }
11699if ${ac_cv_lib_dld_dld_link+:} false; then :
11700  $as_echo_n "(cached) " >&6
11701else
11702  ac_check_lib_save_LIBS=$LIBS
11703LIBS="-ldld  $LIBS"
11704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705/* end confdefs.h.  */
11706
11707/* Override any GCC internal prototype to avoid an error.
11708   Use char because int might match the return type of a GCC
11709   builtin and then its argument prototype would still apply.  */
11710#ifdef __cplusplus
11711extern "C"
11712#endif
11713char dld_link ();
11714int
11715main ()
11716{
11717return dld_link ();
11718  ;
11719  return 0;
11720}
11721_ACEOF
11722if ac_fn_c_try_link "$LINENO"; then :
11723  ac_cv_lib_dld_dld_link=yes
11724else
11725  ac_cv_lib_dld_dld_link=no
11726fi
11727rm -f core conftest.err conftest.$ac_objext \
11728    conftest$ac_exeext conftest.$ac_ext
11729LIBS=$ac_check_lib_save_LIBS
11730fi
11731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11732$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11733if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11734  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11735fi
11736
11737
11738fi
11739
11740
11741fi
11742
11743
11744fi
11745
11746
11747fi
11748
11749
11750fi
11751
11752    ;;
11753  esac
11754
11755  if test no = "$lt_cv_dlopen"; then
11756    enable_dlopen=no
11757  else
11758    enable_dlopen=yes
11759  fi
11760
11761  case $lt_cv_dlopen in
11762  dlopen)
11763    save_CPPFLAGS=$CPPFLAGS
11764    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11765
11766    save_LDFLAGS=$LDFLAGS
11767    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11768
11769    save_LIBS=$LIBS
11770    LIBS="$lt_cv_dlopen_libs $LIBS"
11771
11772    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11773$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11774if ${lt_cv_dlopen_self+:} false; then :
11775  $as_echo_n "(cached) " >&6
11776else
11777  	  if test yes = "$cross_compiling"; then :
11778  lt_cv_dlopen_self=cross
11779else
11780  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11781  lt_status=$lt_dlunknown
11782  cat > conftest.$ac_ext <<_LT_EOF
11783#line $LINENO "configure"
11784#include "confdefs.h"
11785
11786#if HAVE_DLFCN_H
11787#include <dlfcn.h>
11788#endif
11789
11790#include <stdio.h>
11791
11792#ifdef RTLD_GLOBAL
11793#  define LT_DLGLOBAL		RTLD_GLOBAL
11794#else
11795#  ifdef DL_GLOBAL
11796#    define LT_DLGLOBAL		DL_GLOBAL
11797#  else
11798#    define LT_DLGLOBAL		0
11799#  endif
11800#endif
11801
11802/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11803   find out it does not work in some platform. */
11804#ifndef LT_DLLAZY_OR_NOW
11805#  ifdef RTLD_LAZY
11806#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11807#  else
11808#    ifdef DL_LAZY
11809#      define LT_DLLAZY_OR_NOW		DL_LAZY
11810#    else
11811#      ifdef RTLD_NOW
11812#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11813#      else
11814#        ifdef DL_NOW
11815#          define LT_DLLAZY_OR_NOW	DL_NOW
11816#        else
11817#          define LT_DLLAZY_OR_NOW	0
11818#        endif
11819#      endif
11820#    endif
11821#  endif
11822#endif
11823
11824/* When -fvisibility=hidden is used, assume the code has been annotated
11825   correspondingly for the symbols needed.  */
11826#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11827int fnord () __attribute__((visibility("default")));
11828#endif
11829
11830int fnord () { return 42; }
11831int main ()
11832{
11833  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11834  int status = $lt_dlunknown;
11835
11836  if (self)
11837    {
11838      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11839      else
11840        {
11841	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11842          else puts (dlerror ());
11843	}
11844      /* dlclose (self); */
11845    }
11846  else
11847    puts (dlerror ());
11848
11849  return status;
11850}
11851_LT_EOF
11852  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11853  (eval $ac_link) 2>&5
11854  ac_status=$?
11855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11856  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11857    (./conftest; exit; ) >&5 2>/dev/null
11858    lt_status=$?
11859    case x$lt_status in
11860      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11861      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11862      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11863    esac
11864  else :
11865    # compilation failed
11866    lt_cv_dlopen_self=no
11867  fi
11868fi
11869rm -fr conftest*
11870
11871
11872fi
11873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11874$as_echo "$lt_cv_dlopen_self" >&6; }
11875
11876    if test yes = "$lt_cv_dlopen_self"; then
11877      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11878      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11879$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11880if ${lt_cv_dlopen_self_static+:} false; then :
11881  $as_echo_n "(cached) " >&6
11882else
11883  	  if test yes = "$cross_compiling"; then :
11884  lt_cv_dlopen_self_static=cross
11885else
11886  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11887  lt_status=$lt_dlunknown
11888  cat > conftest.$ac_ext <<_LT_EOF
11889#line $LINENO "configure"
11890#include "confdefs.h"
11891
11892#if HAVE_DLFCN_H
11893#include <dlfcn.h>
11894#endif
11895
11896#include <stdio.h>
11897
11898#ifdef RTLD_GLOBAL
11899#  define LT_DLGLOBAL		RTLD_GLOBAL
11900#else
11901#  ifdef DL_GLOBAL
11902#    define LT_DLGLOBAL		DL_GLOBAL
11903#  else
11904#    define LT_DLGLOBAL		0
11905#  endif
11906#endif
11907
11908/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11909   find out it does not work in some platform. */
11910#ifndef LT_DLLAZY_OR_NOW
11911#  ifdef RTLD_LAZY
11912#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11913#  else
11914#    ifdef DL_LAZY
11915#      define LT_DLLAZY_OR_NOW		DL_LAZY
11916#    else
11917#      ifdef RTLD_NOW
11918#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11919#      else
11920#        ifdef DL_NOW
11921#          define LT_DLLAZY_OR_NOW	DL_NOW
11922#        else
11923#          define LT_DLLAZY_OR_NOW	0
11924#        endif
11925#      endif
11926#    endif
11927#  endif
11928#endif
11929
11930/* When -fvisibility=hidden is used, assume the code has been annotated
11931   correspondingly for the symbols needed.  */
11932#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11933int fnord () __attribute__((visibility("default")));
11934#endif
11935
11936int fnord () { return 42; }
11937int main ()
11938{
11939  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11940  int status = $lt_dlunknown;
11941
11942  if (self)
11943    {
11944      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11945      else
11946        {
11947	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11948          else puts (dlerror ());
11949	}
11950      /* dlclose (self); */
11951    }
11952  else
11953    puts (dlerror ());
11954
11955  return status;
11956}
11957_LT_EOF
11958  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11959  (eval $ac_link) 2>&5
11960  ac_status=$?
11961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11962  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11963    (./conftest; exit; ) >&5 2>/dev/null
11964    lt_status=$?
11965    case x$lt_status in
11966      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11967      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11968      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11969    esac
11970  else :
11971    # compilation failed
11972    lt_cv_dlopen_self_static=no
11973  fi
11974fi
11975rm -fr conftest*
11976
11977
11978fi
11979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11980$as_echo "$lt_cv_dlopen_self_static" >&6; }
11981    fi
11982
11983    CPPFLAGS=$save_CPPFLAGS
11984    LDFLAGS=$save_LDFLAGS
11985    LIBS=$save_LIBS
11986    ;;
11987  esac
11988
11989  case $lt_cv_dlopen_self in
11990  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11991  *) enable_dlopen_self=unknown ;;
11992  esac
11993
11994  case $lt_cv_dlopen_self_static in
11995  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11996  *) enable_dlopen_self_static=unknown ;;
11997  esac
11998fi
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016striplib=
12017old_striplib=
12018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12019$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12020if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12021  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12022  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12024$as_echo "yes" >&6; }
12025else
12026# FIXME - insert some real tests, host_os isn't really good enough
12027  case $host_os in
12028  darwin*)
12029    if test -n "$STRIP"; then
12030      striplib="$STRIP -x"
12031      old_striplib="$STRIP -S"
12032      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12033$as_echo "yes" >&6; }
12034    else
12035      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036$as_echo "no" >&6; }
12037    fi
12038    ;;
12039  *)
12040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041$as_echo "no" >&6; }
12042    ;;
12043  esac
12044fi
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057  # Report what library types will actually be built
12058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12059$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12061$as_echo "$can_build_shared" >&6; }
12062
12063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12064$as_echo_n "checking whether to build shared libraries... " >&6; }
12065  test no = "$can_build_shared" && enable_shared=no
12066
12067  # On AIX, shared libraries and static libraries use the same namespace, and
12068  # are all built from PIC.
12069  case $host_os in
12070  aix3*)
12071    test yes = "$enable_shared" && enable_static=no
12072    if test -n "$RANLIB"; then
12073      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12074      postinstall_cmds='$RANLIB $lib'
12075    fi
12076    ;;
12077
12078  aix[4-9]*)
12079    if test ia64 != "$host_cpu"; then
12080      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12081      yes,aix,yes) ;;			# shared object as lib.so file only
12082      yes,svr4,*) ;;			# shared object as lib.so archive member only
12083      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12084      esac
12085    fi
12086    ;;
12087  esac
12088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12089$as_echo "$enable_shared" >&6; }
12090
12091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12092$as_echo_n "checking whether to build static libraries... " >&6; }
12093  # Make sure either enable_shared or enable_static is yes.
12094  test yes = "$enable_shared" || enable_static=yes
12095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12096$as_echo "$enable_static" >&6; }
12097
12098
12099
12100
12101fi
12102ac_ext=c
12103ac_cpp='$CPP $CPPFLAGS'
12104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12106ac_compiler_gnu=$ac_cv_c_compiler_gnu
12107
12108CC=$lt_save_CC
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124        ac_config_commands="$ac_config_commands libtool"
12125
12126
12127
12128
12129# Only expand once:
12130
12131
12132
12133# Add -Wall if we are using GCC.
12134if test "x$GCC" = "xyes"; then
12135  CFLAGS="$CFLAGS -Wall"
12136fi
12137
12138# Check if profiling must be disabled
12139# Check whether --enable-profiling was given.
12140if test "${enable_profiling+set}" = set; then :
12141  enableval=$enable_profiling; :
12142else
12143  enable_profiling=yes
12144fi
12145
12146 if test x$enable_profiling = xyes; then
12147  ENABLE_PROFILING_TRUE=
12148  ENABLE_PROFILING_FALSE='#'
12149else
12150  ENABLE_PROFILING_TRUE='#'
12151  ENABLE_PROFILING_FALSE=
12152fi
12153
12154
12155# Checks for header files.
12156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12157$as_echo_n "checking for ANSI C header files... " >&6; }
12158if ${ac_cv_header_stdc+:} false; then :
12159  $as_echo_n "(cached) " >&6
12160else
12161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162/* end confdefs.h.  */
12163#include <stdlib.h>
12164#include <stdarg.h>
12165#include <string.h>
12166#include <float.h>
12167
12168int
12169main ()
12170{
12171
12172  ;
12173  return 0;
12174}
12175_ACEOF
12176if ac_fn_c_try_compile "$LINENO"; then :
12177  ac_cv_header_stdc=yes
12178else
12179  ac_cv_header_stdc=no
12180fi
12181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182
12183if test $ac_cv_header_stdc = yes; then
12184  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186/* end confdefs.h.  */
12187#include <string.h>
12188
12189_ACEOF
12190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12191  $EGREP "memchr" >/dev/null 2>&1; then :
12192
12193else
12194  ac_cv_header_stdc=no
12195fi
12196rm -f conftest*
12197
12198fi
12199
12200if test $ac_cv_header_stdc = yes; then
12201  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203/* end confdefs.h.  */
12204#include <stdlib.h>
12205
12206_ACEOF
12207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12208  $EGREP "free" >/dev/null 2>&1; then :
12209
12210else
12211  ac_cv_header_stdc=no
12212fi
12213rm -f conftest*
12214
12215fi
12216
12217if test $ac_cv_header_stdc = yes; then
12218  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12219  if test "$cross_compiling" = yes; then :
12220  :
12221else
12222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223/* end confdefs.h.  */
12224#include <ctype.h>
12225#include <stdlib.h>
12226#if ((' ' & 0x0FF) == 0x020)
12227# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12228# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12229#else
12230# define ISLOWER(c) \
12231		   (('a' <= (c) && (c) <= 'i') \
12232		     || ('j' <= (c) && (c) <= 'r') \
12233		     || ('s' <= (c) && (c) <= 'z'))
12234# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12235#endif
12236
12237#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12238int
12239main ()
12240{
12241  int i;
12242  for (i = 0; i < 256; i++)
12243    if (XOR (islower (i), ISLOWER (i))
12244	|| toupper (i) != TOUPPER (i))
12245      return 2;
12246  return 0;
12247}
12248_ACEOF
12249if ac_fn_c_try_run "$LINENO"; then :
12250
12251else
12252  ac_cv_header_stdc=no
12253fi
12254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12255  conftest.$ac_objext conftest.beam conftest.$ac_ext
12256fi
12257
12258fi
12259fi
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12261$as_echo "$ac_cv_header_stdc" >&6; }
12262if test $ac_cv_header_stdc = yes; then
12263
12264$as_echo "#define STDC_HEADERS 1" >>confdefs.h
12265
12266fi
12267
12268
12269# Check for systems which need -lsocket and -lnsl
12270#AX_LIB_SOCKET_NSL
12271
12272# Check for the math library (needed by cjson on some platforms)
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
12274$as_echo_n "checking for library containing floor... " >&6; }
12275if ${ac_cv_search_floor+:} false; then :
12276  $as_echo_n "(cached) " >&6
12277else
12278  ac_func_search_save_LIBS=$LIBS
12279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280/* end confdefs.h.  */
12281
12282/* Override any GCC internal prototype to avoid an error.
12283   Use char because int might match the return type of a GCC
12284   builtin and then its argument prototype would still apply.  */
12285#ifdef __cplusplus
12286extern "C"
12287#endif
12288char floor ();
12289int
12290main ()
12291{
12292return floor ();
12293  ;
12294  return 0;
12295}
12296_ACEOF
12297for ac_lib in '' m; do
12298  if test -z "$ac_lib"; then
12299    ac_res="none required"
12300  else
12301    ac_res=-l$ac_lib
12302    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12303  fi
12304  if ac_fn_c_try_link "$LINENO"; then :
12305  ac_cv_search_floor=$ac_res
12306fi
12307rm -f core conftest.err conftest.$ac_objext \
12308    conftest$ac_exeext
12309  if ${ac_cv_search_floor+:} false; then :
12310  break
12311fi
12312done
12313if ${ac_cv_search_floor+:} false; then :
12314
12315else
12316  ac_cv_search_floor=no
12317fi
12318rm conftest.$ac_ext
12319LIBS=$ac_func_search_save_LIBS
12320fi
12321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
12322$as_echo "$ac_cv_search_floor" >&6; }
12323ac_res=$ac_cv_search_floor
12324if test "$ac_res" != no; then :
12325  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12326
12327else
12328
12329echo "floor()"
12330exit 1
12331
12332fi
12333
12334
12335# On illumos we need -lsocket
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12337$as_echo_n "checking for library containing socket... " >&6; }
12338if ${ac_cv_search_socket+:} false; then :
12339  $as_echo_n "(cached) " >&6
12340else
12341  ac_func_search_save_LIBS=$LIBS
12342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343/* end confdefs.h.  */
12344
12345/* Override any GCC internal prototype to avoid an error.
12346   Use char because int might match the return type of a GCC
12347   builtin and then its argument prototype would still apply.  */
12348#ifdef __cplusplus
12349extern "C"
12350#endif
12351char socket ();
12352int
12353main ()
12354{
12355return socket ();
12356  ;
12357  return 0;
12358}
12359_ACEOF
12360for ac_lib in '' socket; do
12361  if test -z "$ac_lib"; then
12362    ac_res="none required"
12363  else
12364    ac_res=-l$ac_lib
12365    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12366  fi
12367  if ac_fn_c_try_link "$LINENO"; then :
12368  ac_cv_search_socket=$ac_res
12369fi
12370rm -f core conftest.err conftest.$ac_objext \
12371    conftest$ac_exeext
12372  if ${ac_cv_search_socket+:} false; then :
12373  break
12374fi
12375done
12376if ${ac_cv_search_socket+:} false; then :
12377
12378else
12379  ac_cv_search_socket=no
12380fi
12381rm conftest.$ac_ext
12382LIBS=$ac_func_search_save_LIBS
12383fi
12384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12385$as_echo "$ac_cv_search_socket" >&6; }
12386ac_res=$ac_cv_search_socket
12387if test "$ac_res" != no; then :
12388  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12389
12390else
12391
12392echo "socket()"
12393exit 1
12394
12395fi
12396
12397
12398# On illumos inet_ntop in in -lnsl
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
12400$as_echo_n "checking for library containing inet_ntop... " >&6; }
12401if ${ac_cv_search_inet_ntop+:} false; then :
12402  $as_echo_n "(cached) " >&6
12403else
12404  ac_func_search_save_LIBS=$LIBS
12405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406/* end confdefs.h.  */
12407
12408/* Override any GCC internal prototype to avoid an error.
12409   Use char because int might match the return type of a GCC
12410   builtin and then its argument prototype would still apply.  */
12411#ifdef __cplusplus
12412extern "C"
12413#endif
12414char inet_ntop ();
12415int
12416main ()
12417{
12418return inet_ntop ();
12419  ;
12420  return 0;
12421}
12422_ACEOF
12423for ac_lib in '' nsl; do
12424  if test -z "$ac_lib"; then
12425    ac_res="none required"
12426  else
12427    ac_res=-l$ac_lib
12428    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12429  fi
12430  if ac_fn_c_try_link "$LINENO"; then :
12431  ac_cv_search_inet_ntop=$ac_res
12432fi
12433rm -f core conftest.err conftest.$ac_objext \
12434    conftest$ac_exeext
12435  if ${ac_cv_search_inet_ntop+:} false; then :
12436  break
12437fi
12438done
12439if ${ac_cv_search_inet_ntop+:} false; then :
12440
12441else
12442  ac_cv_search_inet_ntop=no
12443fi
12444rm conftest.$ac_ext
12445LIBS=$ac_func_search_save_LIBS
12446fi
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
12448$as_echo "$ac_cv_search_inet_ntop" >&6; }
12449ac_res=$ac_cv_search_inet_ntop
12450if test "$ac_res" != no; then :
12451  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12452
12453else
12454
12455echo "inet_ntop()"
12456exit 1
12457
12458fi
12459
12460
12461# Checks for typedefs, structures, and compiler characteristics.
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12463$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12464if ${ac_cv_c_const+:} false; then :
12465  $as_echo_n "(cached) " >&6
12466else
12467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468/* end confdefs.h.  */
12469
12470int
12471main ()
12472{
12473
12474#ifndef __cplusplus
12475  /* Ultrix mips cc rejects this sort of thing.  */
12476  typedef int charset[2];
12477  const charset cs = { 0, 0 };
12478  /* SunOS 4.1.1 cc rejects this.  */
12479  char const *const *pcpcc;
12480  char **ppc;
12481  /* NEC SVR4.0.2 mips cc rejects this.  */
12482  struct point {int x, y;};
12483  static struct point const zero = {0,0};
12484  /* AIX XL C 1.02.0.0 rejects this.
12485     It does not let you subtract one const X* pointer from another in
12486     an arm of an if-expression whose if-part is not a constant
12487     expression */
12488  const char *g = "string";
12489  pcpcc = &g + (g ? g-g : 0);
12490  /* HPUX 7.0 cc rejects these. */
12491  ++pcpcc;
12492  ppc = (char**) pcpcc;
12493  pcpcc = (char const *const *) ppc;
12494  { /* SCO 3.2v4 cc rejects this sort of thing.  */
12495    char tx;
12496    char *t = &tx;
12497    char const *s = 0 ? (char *) 0 : (char const *) 0;
12498
12499    *t++ = 0;
12500    if (s) return 0;
12501  }
12502  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12503    int x[] = {25, 17};
12504    const int *foo = &x[0];
12505    ++foo;
12506  }
12507  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12508    typedef const int *iptr;
12509    iptr p = 0;
12510    ++p;
12511  }
12512  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12513       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12514    struct s { int j; const int *ap[3]; } bx;
12515    struct s *b = &bx; b->j = 5;
12516  }
12517  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12518    const int foo = 10;
12519    if (!foo) return 0;
12520  }
12521  return !cs[0] && !zero.x;
12522#endif
12523
12524  ;
12525  return 0;
12526}
12527_ACEOF
12528if ac_fn_c_try_compile "$LINENO"; then :
12529  ac_cv_c_const=yes
12530else
12531  ac_cv_c_const=no
12532fi
12533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534fi
12535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12536$as_echo "$ac_cv_c_const" >&6; }
12537if test $ac_cv_c_const = no; then
12538
12539$as_echo "#define const /**/" >>confdefs.h
12540
12541fi
12542
12543
12544# Check for poll.h (it's in POSIX so everyone should have it?)
12545for ac_header in poll.h
12546do :
12547  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
12548if test "x$ac_cv_header_poll_h" = xyes; then :
12549  cat >>confdefs.h <<_ACEOF
12550#define HAVE_POLL_H 1
12551_ACEOF
12552
12553fi
12554
12555done
12556
12557
12558# Check for SCTP support
12559for ac_header in sys/socket.h
12560do :
12561  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12562if test "x$ac_cv_header_sys_socket_h" = xyes; then :
12563  cat >>confdefs.h <<_ACEOF
12564#define HAVE_SYS_SOCKET_H 1
12565_ACEOF
12566
12567fi
12568
12569done
12570
12571for ac_header in netinet/sctp.h
12572do :
12573  ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
12574#include <sys/socket.h>
12575#endif
12576
12577"
12578if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
12579  cat >>confdefs.h <<_ACEOF
12580#define HAVE_NETINET_SCTP_H 1
12581_ACEOF
12582
12583$as_echo "#define HAVE_SCTP 1" >>confdefs.h
12584
12585		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
12586$as_echo_n "checking for library containing sctp_bindx... " >&6; }
12587if ${ac_cv_search_sctp_bindx+:} false; then :
12588  $as_echo_n "(cached) " >&6
12589else
12590  ac_func_search_save_LIBS=$LIBS
12591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592/* end confdefs.h.  */
12593
12594/* Override any GCC internal prototype to avoid an error.
12595   Use char because int might match the return type of a GCC
12596   builtin and then its argument prototype would still apply.  */
12597#ifdef __cplusplus
12598extern "C"
12599#endif
12600char sctp_bindx ();
12601int
12602main ()
12603{
12604return sctp_bindx ();
12605  ;
12606  return 0;
12607}
12608_ACEOF
12609for ac_lib in '' sctp; do
12610  if test -z "$ac_lib"; then
12611    ac_res="none required"
12612  else
12613    ac_res=-l$ac_lib
12614    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12615  fi
12616  if ac_fn_c_try_link "$LINENO"; then :
12617  ac_cv_search_sctp_bindx=$ac_res
12618fi
12619rm -f core conftest.err conftest.$ac_objext \
12620    conftest$ac_exeext
12621  if ${ac_cv_search_sctp_bindx+:} false; then :
12622  break
12623fi
12624done
12625if ${ac_cv_search_sctp_bindx+:} false; then :
12626
12627else
12628  ac_cv_search_sctp_bindx=no
12629fi
12630rm conftest.$ac_ext
12631LIBS=$ac_func_search_save_LIBS
12632fi
12633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
12634$as_echo "$ac_cv_search_sctp_bindx" >&6; }
12635ac_res=$ac_cv_search_sctp_bindx
12636if test "$ac_res" != no; then :
12637  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12638
12639fi
12640
12641
12642# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
12643# -------------------------------------------
12644# Tests whether TYPE exists after having included INCLUDES, setting cache
12645# variable VAR accordingly.
12646ac_fn_c_check_type ()
12647{
12648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
12650$as_echo_n "checking for $2... " >&6; }
12651if eval \${$3+:} false; then :
12652  $as_echo_n "(cached) " >&6
12653else
12654  eval "$3=no"
12655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656/* end confdefs.h.  */
12657$4
12658int
12659main ()
12660{
12661if (sizeof ($2))
12662	 return 0;
12663  ;
12664  return 0;
12665}
12666_ACEOF
12667if ac_fn_c_try_compile "$LINENO"; then :
12668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669/* end confdefs.h.  */
12670$4
12671int
12672main ()
12673{
12674if (sizeof (($2)))
12675	    return 0;
12676  ;
12677  return 0;
12678}
12679_ACEOF
12680if ac_fn_c_try_compile "$LINENO"; then :
12681
12682else
12683  eval "$3=yes"
12684fi
12685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686fi
12687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688fi
12689eval ac_res=\$$3
12690	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12691$as_echo "$ac_res" >&6; }
12692  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
12693
12694} # ac_fn_c_check_type
12695ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
12696"
12697if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then :
12698
12699cat >>confdefs.h <<_ACEOF
12700#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1
12701_ACEOF
12702
12703
12704fi
12705
12706fi
12707
12708done
12709
12710
12711ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
12712if test "x$ac_cv_header_endian_h" = xyes; then :
12713
12714$as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h
12715
12716else
12717  ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
12718if test "x$ac_cv_header_sys_endian_h" = xyes; then :
12719
12720$as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
12721
12722else
12723  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
12724$as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
12725
12726fi
12727
12728
12729
12730fi
12731
12732
12733
12734if test "x$with_openssl" = "xno"; then
12735    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
12736$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
12737else
12738    # Check for OPENSSL support
12739
12740    found=false
12741
12742# Check whether --with-openssl was given.
12743if test "${with_openssl+set}" = set; then :
12744  withval=$with_openssl;
12745            case "$withval" in
12746            "" | y | ye | yes | n | no)
12747            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
12748              ;;
12749            *) ssldirs="$withval"
12750              ;;
12751            esac
12752
12753else
12754
12755            # if pkg-config is installed and openssl has installed a .pc file,
12756            # then use that information and don't search ssldirs
12757            if test -n "$ac_tool_prefix"; then
12758  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12759set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12761$as_echo_n "checking for $ac_word... " >&6; }
12762if ${ac_cv_prog_PKG_CONFIG+:} false; then :
12763  $as_echo_n "(cached) " >&6
12764else
12765  if test -n "$PKG_CONFIG"; then
12766  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
12767else
12768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769for as_dir in $PATH
12770do
12771  IFS=$as_save_IFS
12772  test -z "$as_dir" && as_dir=.
12773    for ac_exec_ext in '' $ac_executable_extensions; do
12774  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12775    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
12776    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12777    break 2
12778  fi
12779done
12780  done
12781IFS=$as_save_IFS
12782
12783fi
12784fi
12785PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
12786if test -n "$PKG_CONFIG"; then
12787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12788$as_echo "$PKG_CONFIG" >&6; }
12789else
12790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791$as_echo "no" >&6; }
12792fi
12793
12794
12795fi
12796if test -z "$ac_cv_prog_PKG_CONFIG"; then
12797  ac_ct_PKG_CONFIG=$PKG_CONFIG
12798  # Extract the first word of "pkg-config", so it can be a program name with args.
12799set dummy pkg-config; ac_word=$2
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12801$as_echo_n "checking for $ac_word... " >&6; }
12802if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
12803  $as_echo_n "(cached) " >&6
12804else
12805  if test -n "$ac_ct_PKG_CONFIG"; then
12806  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
12807else
12808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809for as_dir in $PATH
12810do
12811  IFS=$as_save_IFS
12812  test -z "$as_dir" && as_dir=.
12813    for ac_exec_ext in '' $ac_executable_extensions; do
12814  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12815    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
12816    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12817    break 2
12818  fi
12819done
12820  done
12821IFS=$as_save_IFS
12822
12823fi
12824fi
12825ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
12826if test -n "$ac_ct_PKG_CONFIG"; then
12827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
12828$as_echo "$ac_ct_PKG_CONFIG" >&6; }
12829else
12830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831$as_echo "no" >&6; }
12832fi
12833
12834  if test "x$ac_ct_PKG_CONFIG" = x; then
12835    PKG_CONFIG=""
12836  else
12837    case $cross_compiling:$ac_tool_warned in
12838yes:)
12839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12841ac_tool_warned=yes ;;
12842esac
12843    PKG_CONFIG=$ac_ct_PKG_CONFIG
12844  fi
12845else
12846  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
12847fi
12848
12849            if test x"$PKG_CONFIG" != x""; then
12850                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
12851                if test $? = 0; then
12852                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
12853                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
12854                    found=true
12855                fi
12856            fi
12857
12858            # no such luck; use some default ssldirs
12859            if ! $found; then
12860                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
12861            fi
12862
12863
12864fi
12865
12866
12867
12868    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
12869    # an 'openssl' subdirectory
12870
12871    if ! $found; then
12872        OPENSSL_INCLUDES=
12873        for ssldir in $ssldirs; do
12874            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
12875$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
12876            if test -f "$ssldir/include/openssl/ssl.h"; then
12877                OPENSSL_INCLUDES="-I$ssldir/include"
12878                OPENSSL_LDFLAGS="-L$ssldir/lib"
12879                OPENSSL_LIBS="-lssl -lcrypto"
12880                found=true
12881                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12882$as_echo "yes" >&6; }
12883                break
12884            else
12885                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12886$as_echo "no" >&6; }
12887            fi
12888        done
12889
12890        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
12891        # it will just work!
12892    fi
12893
12894    # try the preprocessor and linker with our new flags,
12895    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
12896
12897    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
12898$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
12899    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
12900        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
12901
12902    save_LIBS="$LIBS"
12903    save_LDFLAGS="$LDFLAGS"
12904    save_CPPFLAGS="$CPPFLAGS"
12905    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
12906    LIBS="$OPENSSL_LIBS $LIBS"
12907    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
12908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909/* end confdefs.h.  */
12910#include <openssl/ssl.h>
12911int
12912main ()
12913{
12914SSL_new(NULL)
12915  ;
12916  return 0;
12917}
12918_ACEOF
12919if ac_fn_c_try_link "$LINENO"; then :
12920
12921            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12922$as_echo "yes" >&6; }
12923
12924$as_echo "#define HAVE_SSL 1" >>confdefs.h
12925
12926
12927else
12928
12929            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930$as_echo "no" >&6; }
12931             if test "x$with_openssl" != "x"; then
12932	  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12934as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
12935See \`config.log' for more details" "$LINENO" 5; }
12936	  fi
12937
12938
12939fi
12940rm -f core conftest.err conftest.$ac_objext \
12941    conftest$ac_exeext conftest.$ac_ext
12942    CPPFLAGS="$save_CPPFLAGS"
12943    LDFLAGS="$save_LDFLAGS"
12944    LIBS="$save_LIBS"
12945
12946
12947
12948
12949
12950    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
12951    LIBS="$OPENSSL_LIBS $LIBS"
12952    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
12953fi
12954
12955# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
12957$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
12958if ${iperf3_cv_header_tcp_congestion+:} false; then :
12959  $as_echo_n "(cached) " >&6
12960else
12961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962/* end confdefs.h.  */
12963#include <netinet/tcp.h>
12964#ifdef TCP_CONGESTION
12965  yes
12966#endif
12967
12968_ACEOF
12969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12970  $EGREP "yes" >/dev/null 2>&1; then :
12971  iperf3_cv_header_tcp_congestion=yes
12972else
12973  iperf3_cv_header_tcp_congestion=no
12974fi
12975rm -f conftest*
12976
12977fi
12978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
12979$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
12980if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
12981
12982$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
12983
12984fi
12985
12986# Check for IPv6 flowlabel support (believed to be Linux only)
12987# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
12988# don't use that file directly (we have our own stripped-down
12989# copy, see src/flowlabel.h for more details).
12990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
12991$as_echo_n "checking IPv6 flowlabel support... " >&6; }
12992if ${iperf3_cv_header_flowlabel+:} false; then :
12993  $as_echo_n "(cached) " >&6
12994else
12995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996/* end confdefs.h.  */
12997#include <sys/types.h>
12998#include <linux/in6.h>
12999#ifdef IPV6_FLOWLABEL_MGR
13000  yes
13001#endif
13002
13003_ACEOF
13004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13005  $EGREP "yes" >/dev/null 2>&1; then :
13006  iperf3_cv_header_flowlabel=yes
13007else
13008  iperf3_cv_header_flowlabel=no
13009fi
13010rm -f conftest*
13011
13012fi
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
13014$as_echo "$iperf3_cv_header_flowlabel" >&6; }
13015if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
13016
13017$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
13018
13019fi
13020
13021# Check for CPU affinity support.  FreeBSD and Linux do this differently
13022# unfortunately so we have to check separately for each of them.
13023# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
13024# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
13025# generic concept is available.
13026for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask
13027do :
13028  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13029ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13030if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13031  cat >>confdefs.h <<_ACEOF
13032#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13033_ACEOF
13034
13035$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
13036
13037fi
13038done
13039
13040
13041# Check for daemon().  Most systems have this but a few (IRIX) don't.
13042for ac_func in daemon
13043do :
13044  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13045if test "x$ac_cv_func_daemon" = xyes; then :
13046  cat >>confdefs.h <<_ACEOF
13047#define HAVE_DAEMON 1
13048_ACEOF
13049
13050fi
13051done
13052
13053
13054# Check for sendfile support.  FreeBSD, Linux, and MacOS all support
13055# this system call, but they're all different in terms of what headers
13056# it needs and what arguments it expects.
13057for ac_func in sendfile
13058do :
13059  ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
13060if test "x$ac_cv_func_sendfile" = xyes; then :
13061  cat >>confdefs.h <<_ACEOF
13062#define HAVE_SENDFILE 1
13063_ACEOF
13064
13065fi
13066done
13067
13068
13069# Check for getline support, used as a part of authenticated
13070# connections.
13071for ac_func in getline
13072do :
13073  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
13074if test "x$ac_cv_func_getline" = xyes; then :
13075  cat >>confdefs.h <<_ACEOF
13076#define HAVE_GETLINE 1
13077_ACEOF
13078
13079fi
13080done
13081
13082
13083# Check for packet pacing socket option (Linux only for now).
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
13085$as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; }
13086if ${iperf3_cv_header_so_max_pacing_rate+:} false; then :
13087  $as_echo_n "(cached) " >&6
13088else
13089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090/* end confdefs.h.  */
13091#include <sys/socket.h>
13092#ifdef SO_MAX_PACING_RATE
13093  yes
13094#endif
13095
13096_ACEOF
13097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13098  $EGREP "yes" >/dev/null 2>&1; then :
13099  iperf3_cv_header_so_max_pacing_rate=yes
13100else
13101  iperf3_cv_header_so_max_pacing_rate=no
13102fi
13103rm -f conftest*
13104
13105fi
13106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
13107$as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; }
13108if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
13109
13110$as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
13111
13112fi
13113
13114# Check if we need -lrt for clock_gettime
13115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13116$as_echo_n "checking for library containing clock_gettime... " >&6; }
13117if ${ac_cv_search_clock_gettime+:} false; then :
13118  $as_echo_n "(cached) " >&6
13119else
13120  ac_func_search_save_LIBS=$LIBS
13121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122/* end confdefs.h.  */
13123
13124/* Override any GCC internal prototype to avoid an error.
13125   Use char because int might match the return type of a GCC
13126   builtin and then its argument prototype would still apply.  */
13127#ifdef __cplusplus
13128extern "C"
13129#endif
13130char clock_gettime ();
13131int
13132main ()
13133{
13134return clock_gettime ();
13135  ;
13136  return 0;
13137}
13138_ACEOF
13139for ac_lib in '' rt posix4; do
13140  if test -z "$ac_lib"; then
13141    ac_res="none required"
13142  else
13143    ac_res=-l$ac_lib
13144    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13145  fi
13146  if ac_fn_c_try_link "$LINENO"; then :
13147  ac_cv_search_clock_gettime=$ac_res
13148fi
13149rm -f core conftest.err conftest.$ac_objext \
13150    conftest$ac_exeext
13151  if ${ac_cv_search_clock_gettime+:} false; then :
13152  break
13153fi
13154done
13155if ${ac_cv_search_clock_gettime+:} false; then :
13156
13157else
13158  ac_cv_search_clock_gettime=no
13159fi
13160rm conftest.$ac_ext
13161LIBS=$ac_func_search_save_LIBS
13162fi
13163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13164$as_echo "$ac_cv_search_clock_gettime" >&6; }
13165ac_res=$ac_cv_search_clock_gettime
13166if test "$ac_res" != no; then :
13167  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13168
13169fi
13170
13171# Check for clock_gettime support
13172for ac_func in clock_gettime
13173do :
13174  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13175if test "x$ac_cv_func_clock_gettime" = xyes; then :
13176  cat >>confdefs.h <<_ACEOF
13177#define HAVE_CLOCK_GETTIME 1
13178_ACEOF
13179
13180fi
13181done
13182
13183
13184ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
13185
13186cat >confcache <<\_ACEOF
13187# This file is a shell script that caches the results of configure
13188# tests run on this system so they can be shared between configure
13189# scripts and configure runs, see configure's option --config-cache.
13190# It is not useful on other systems.  If it contains results you don't
13191# want to keep, you may remove or edit it.
13192#
13193# config.status only pays attention to the cache file if you give it
13194# the --recheck option to rerun configure.
13195#
13196# `ac_cv_env_foo' variables (set or unset) will be overridden when
13197# loading this file, other *unset* `ac_cv_foo' will be assigned the
13198# following values.
13199
13200_ACEOF
13201
13202# The following way of writing the cache mishandles newlines in values,
13203# but we know of no workaround that is simple, portable, and efficient.
13204# So, we kill variables containing newlines.
13205# Ultrix sh set writes to stderr and can't be redirected directly,
13206# and sets the high bit in the cache file unless we assign to the vars.
13207(
13208  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13209    eval ac_val=\$$ac_var
13210    case $ac_val in #(
13211    *${as_nl}*)
13212      case $ac_var in #(
13213      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13214$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13215      esac
13216      case $ac_var in #(
13217      _ | IFS | as_nl) ;; #(
13218      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13219      *) { eval $ac_var=; unset $ac_var;} ;;
13220      esac ;;
13221    esac
13222  done
13223
13224  (set) 2>&1 |
13225    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13226    *${as_nl}ac_space=\ *)
13227      # `set' does not quote correctly, so add quotes: double-quote
13228      # substitution turns \\\\ into \\, and sed turns \\ into \.
13229      sed -n \
13230	"s/'/'\\\\''/g;
13231	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13232      ;; #(
13233    *)
13234      # `set' quotes correctly as required by POSIX, so do not add quotes.
13235      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13236      ;;
13237    esac |
13238    sort
13239) |
13240  sed '
13241     /^ac_cv_env_/b end
13242     t clear
13243     :clear
13244     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13245     t end
13246     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13247     :end' >>confcache
13248if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13249  if test -w "$cache_file"; then
13250    if test "x$cache_file" != "x/dev/null"; then
13251      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13252$as_echo "$as_me: updating cache $cache_file" >&6;}
13253      if test ! -f "$cache_file" || test -h "$cache_file"; then
13254	cat confcache >"$cache_file"
13255      else
13256        case $cache_file in #(
13257        */* | ?:*)
13258	  mv -f confcache "$cache_file"$$ &&
13259	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13260        *)
13261	  mv -f confcache "$cache_file" ;;
13262	esac
13263      fi
13264    fi
13265  else
13266    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13267$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13268  fi
13269fi
13270rm -f confcache
13271
13272test "x$prefix" = xNONE && prefix=$ac_default_prefix
13273# Let make expand exec_prefix.
13274test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13275
13276DEFS=-DHAVE_CONFIG_H
13277
13278ac_libobjs=
13279ac_ltlibobjs=
13280for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13281  # 1. Remove the extension, and $U if already installed.
13282  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13283  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13284  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13285  #    will be set to the directory where LIBOBJS objects are built.
13286  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13287  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13288done
13289LIBOBJS=$ac_libobjs
13290
13291LTLIBOBJS=$ac_ltlibobjs
13292
13293
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13295$as_echo_n "checking that generated files are newer than configure... " >&6; }
13296   if test -n "$am_sleep_pid"; then
13297     # Hide warnings about reused PIDs.
13298     wait $am_sleep_pid 2>/dev/null
13299   fi
13300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13301$as_echo "done" >&6; }
13302 if test -n "$EXEEXT"; then
13303  am__EXEEXT_TRUE=
13304  am__EXEEXT_FALSE='#'
13305else
13306  am__EXEEXT_TRUE='#'
13307  am__EXEEXT_FALSE=
13308fi
13309
13310if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13311  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13312Usually this means the macro was only invoked conditionally." "$LINENO" 5
13313fi
13314if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13315  as_fn_error $? "conditional \"AMDEP\" was never defined.
13316Usually this means the macro was only invoked conditionally." "$LINENO" 5
13317fi
13318if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13319  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13320Usually this means the macro was only invoked conditionally." "$LINENO" 5
13321fi
13322if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then
13323  as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined.
13324Usually this means the macro was only invoked conditionally." "$LINENO" 5
13325fi
13326
13327: "${CONFIG_STATUS=./config.status}"
13328ac_write_fail=0
13329ac_clean_files_save=$ac_clean_files
13330ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13332$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13333as_write_fail=0
13334cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13335#! $SHELL
13336# Generated by $as_me.
13337# Run this file to recreate the current configuration.
13338# Compiler output produced by configure, useful for debugging
13339# configure, is in config.log if it exists.
13340
13341debug=false
13342ac_cs_recheck=false
13343ac_cs_silent=false
13344
13345SHELL=\${CONFIG_SHELL-$SHELL}
13346export SHELL
13347_ASEOF
13348cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13349## -------------------- ##
13350## M4sh Initialization. ##
13351## -------------------- ##
13352
13353# Be more Bourne compatible
13354DUALCASE=1; export DUALCASE # for MKS sh
13355if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13356  emulate sh
13357  NULLCMD=:
13358  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13359  # is contrary to our usage.  Disable this feature.
13360  alias -g '${1+"$@"}'='"$@"'
13361  setopt NO_GLOB_SUBST
13362else
13363  case `(set -o) 2>/dev/null` in #(
13364  *posix*) :
13365    set -o posix ;; #(
13366  *) :
13367     ;;
13368esac
13369fi
13370
13371
13372as_nl='
13373'
13374export as_nl
13375# Printing a long string crashes Solaris 7 /usr/bin/printf.
13376as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13377as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13378as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13379# Prefer a ksh shell builtin over an external printf program on Solaris,
13380# but without wasting forks for bash or zsh.
13381if test -z "$BASH_VERSION$ZSH_VERSION" \
13382    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13383  as_echo='print -r --'
13384  as_echo_n='print -rn --'
13385elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13386  as_echo='printf %s\n'
13387  as_echo_n='printf %s'
13388else
13389  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13390    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13391    as_echo_n='/usr/ucb/echo -n'
13392  else
13393    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13394    as_echo_n_body='eval
13395      arg=$1;
13396      case $arg in #(
13397      *"$as_nl"*)
13398	expr "X$arg" : "X\\(.*\\)$as_nl";
13399	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13400      esac;
13401      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13402    '
13403    export as_echo_n_body
13404    as_echo_n='sh -c $as_echo_n_body as_echo'
13405  fi
13406  export as_echo_body
13407  as_echo='sh -c $as_echo_body as_echo'
13408fi
13409
13410# The user is always right.
13411if test "${PATH_SEPARATOR+set}" != set; then
13412  PATH_SEPARATOR=:
13413  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13414    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13415      PATH_SEPARATOR=';'
13416  }
13417fi
13418
13419
13420# IFS
13421# We need space, tab and new line, in precisely that order.  Quoting is
13422# there to prevent editors from complaining about space-tab.
13423# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13424# splitting by setting IFS to empty value.)
13425IFS=" ""	$as_nl"
13426
13427# Find who we are.  Look in the path if we contain no directory separator.
13428as_myself=
13429case $0 in #((
13430  *[\\/]* ) as_myself=$0 ;;
13431  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432for as_dir in $PATH
13433do
13434  IFS=$as_save_IFS
13435  test -z "$as_dir" && as_dir=.
13436    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13437  done
13438IFS=$as_save_IFS
13439
13440     ;;
13441esac
13442# We did not find ourselves, most probably we were run as `sh COMMAND'
13443# in which case we are not to be found in the path.
13444if test "x$as_myself" = x; then
13445  as_myself=$0
13446fi
13447if test ! -f "$as_myself"; then
13448  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13449  exit 1
13450fi
13451
13452# Unset variables that we do not need and which cause bugs (e.g. in
13453# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13454# suppresses any "Segmentation fault" message there.  '((' could
13455# trigger a bug in pdksh 5.2.14.
13456for as_var in BASH_ENV ENV MAIL MAILPATH
13457do eval test x\${$as_var+set} = xset \
13458  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13459done
13460PS1='$ '
13461PS2='> '
13462PS4='+ '
13463
13464# NLS nuisances.
13465LC_ALL=C
13466export LC_ALL
13467LANGUAGE=C
13468export LANGUAGE
13469
13470# CDPATH.
13471(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13472
13473
13474# as_fn_error STATUS ERROR [LINENO LOG_FD]
13475# ----------------------------------------
13476# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13477# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13478# script with STATUS, using 1 if that was 0.
13479as_fn_error ()
13480{
13481  as_status=$1; test $as_status -eq 0 && as_status=1
13482  if test "$4"; then
13483    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13484    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13485  fi
13486  $as_echo "$as_me: error: $2" >&2
13487  as_fn_exit $as_status
13488} # as_fn_error
13489
13490
13491# as_fn_set_status STATUS
13492# -----------------------
13493# Set $? to STATUS, without forking.
13494as_fn_set_status ()
13495{
13496  return $1
13497} # as_fn_set_status
13498
13499# as_fn_exit STATUS
13500# -----------------
13501# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13502as_fn_exit ()
13503{
13504  set +e
13505  as_fn_set_status $1
13506  exit $1
13507} # as_fn_exit
13508
13509# as_fn_unset VAR
13510# ---------------
13511# Portably unset VAR.
13512as_fn_unset ()
13513{
13514  { eval $1=; unset $1;}
13515}
13516as_unset=as_fn_unset
13517# as_fn_append VAR VALUE
13518# ----------------------
13519# Append the text in VALUE to the end of the definition contained in VAR. Take
13520# advantage of any shell optimizations that allow amortized linear growth over
13521# repeated appends, instead of the typical quadratic growth present in naive
13522# implementations.
13523if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13524  eval 'as_fn_append ()
13525  {
13526    eval $1+=\$2
13527  }'
13528else
13529  as_fn_append ()
13530  {
13531    eval $1=\$$1\$2
13532  }
13533fi # as_fn_append
13534
13535# as_fn_arith ARG...
13536# ------------------
13537# Perform arithmetic evaluation on the ARGs, and store the result in the
13538# global $as_val. Take advantage of shells that can avoid forks. The arguments
13539# must be portable across $(()) and expr.
13540if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13541  eval 'as_fn_arith ()
13542  {
13543    as_val=$(( $* ))
13544  }'
13545else
13546  as_fn_arith ()
13547  {
13548    as_val=`expr "$@" || test $? -eq 1`
13549  }
13550fi # as_fn_arith
13551
13552
13553if expr a : '\(a\)' >/dev/null 2>&1 &&
13554   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13555  as_expr=expr
13556else
13557  as_expr=false
13558fi
13559
13560if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13561  as_basename=basename
13562else
13563  as_basename=false
13564fi
13565
13566if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13567  as_dirname=dirname
13568else
13569  as_dirname=false
13570fi
13571
13572as_me=`$as_basename -- "$0" ||
13573$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13574	 X"$0" : 'X\(//\)$' \| \
13575	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13576$as_echo X/"$0" |
13577    sed '/^.*\/\([^/][^/]*\)\/*$/{
13578	    s//\1/
13579	    q
13580	  }
13581	  /^X\/\(\/\/\)$/{
13582	    s//\1/
13583	    q
13584	  }
13585	  /^X\/\(\/\).*/{
13586	    s//\1/
13587	    q
13588	  }
13589	  s/.*/./; q'`
13590
13591# Avoid depending upon Character Ranges.
13592as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13593as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13594as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13595as_cr_digits='0123456789'
13596as_cr_alnum=$as_cr_Letters$as_cr_digits
13597
13598ECHO_C= ECHO_N= ECHO_T=
13599case `echo -n x` in #(((((
13600-n*)
13601  case `echo 'xy\c'` in
13602  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13603  xy)  ECHO_C='\c';;
13604  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13605       ECHO_T='	';;
13606  esac;;
13607*)
13608  ECHO_N='-n';;
13609esac
13610
13611rm -f conf$$ conf$$.exe conf$$.file
13612if test -d conf$$.dir; then
13613  rm -f conf$$.dir/conf$$.file
13614else
13615  rm -f conf$$.dir
13616  mkdir conf$$.dir 2>/dev/null
13617fi
13618if (echo >conf$$.file) 2>/dev/null; then
13619  if ln -s conf$$.file conf$$ 2>/dev/null; then
13620    as_ln_s='ln -s'
13621    # ... but there are two gotchas:
13622    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13623    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13624    # In both cases, we have to default to `cp -pR'.
13625    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13626      as_ln_s='cp -pR'
13627  elif ln conf$$.file conf$$ 2>/dev/null; then
13628    as_ln_s=ln
13629  else
13630    as_ln_s='cp -pR'
13631  fi
13632else
13633  as_ln_s='cp -pR'
13634fi
13635rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13636rmdir conf$$.dir 2>/dev/null
13637
13638
13639# as_fn_mkdir_p
13640# -------------
13641# Create "$as_dir" as a directory, including parents if necessary.
13642as_fn_mkdir_p ()
13643{
13644
13645  case $as_dir in #(
13646  -*) as_dir=./$as_dir;;
13647  esac
13648  test -d "$as_dir" || eval $as_mkdir_p || {
13649    as_dirs=
13650    while :; do
13651      case $as_dir in #(
13652      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13653      *) as_qdir=$as_dir;;
13654      esac
13655      as_dirs="'$as_qdir' $as_dirs"
13656      as_dir=`$as_dirname -- "$as_dir" ||
13657$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13658	 X"$as_dir" : 'X\(//\)[^/]' \| \
13659	 X"$as_dir" : 'X\(//\)$' \| \
13660	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13661$as_echo X"$as_dir" |
13662    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13663	    s//\1/
13664	    q
13665	  }
13666	  /^X\(\/\/\)[^/].*/{
13667	    s//\1/
13668	    q
13669	  }
13670	  /^X\(\/\/\)$/{
13671	    s//\1/
13672	    q
13673	  }
13674	  /^X\(\/\).*/{
13675	    s//\1/
13676	    q
13677	  }
13678	  s/.*/./; q'`
13679      test -d "$as_dir" && break
13680    done
13681    test -z "$as_dirs" || eval "mkdir $as_dirs"
13682  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13683
13684
13685} # as_fn_mkdir_p
13686if mkdir -p . 2>/dev/null; then
13687  as_mkdir_p='mkdir -p "$as_dir"'
13688else
13689  test -d ./-p && rmdir ./-p
13690  as_mkdir_p=false
13691fi
13692
13693
13694# as_fn_executable_p FILE
13695# -----------------------
13696# Test if FILE is an executable regular file.
13697as_fn_executable_p ()
13698{
13699  test -f "$1" && test -x "$1"
13700} # as_fn_executable_p
13701as_test_x='test -x'
13702as_executable_p=as_fn_executable_p
13703
13704# Sed expression to map a string onto a valid CPP name.
13705as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13706
13707# Sed expression to map a string onto a valid variable name.
13708as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13709
13710
13711exec 6>&1
13712## ----------------------------------- ##
13713## Main body of $CONFIG_STATUS script. ##
13714## ----------------------------------- ##
13715_ASEOF
13716test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13717
13718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13719# Save the log message, to keep $0 and so on meaningful, and to
13720# report actual input values of CONFIG_FILES etc. instead of their
13721# values after options handling.
13722ac_log="
13723This file was extended by iperf $as_me 3.6+, which was
13724generated by GNU Autoconf 2.69.  Invocation command line was
13725
13726  CONFIG_FILES    = $CONFIG_FILES
13727  CONFIG_HEADERS  = $CONFIG_HEADERS
13728  CONFIG_LINKS    = $CONFIG_LINKS
13729  CONFIG_COMMANDS = $CONFIG_COMMANDS
13730  $ $0 $@
13731
13732on `(hostname || uname -n) 2>/dev/null | sed 1q`
13733"
13734
13735_ACEOF
13736
13737case $ac_config_files in *"
13738"*) set x $ac_config_files; shift; ac_config_files=$*;;
13739esac
13740
13741case $ac_config_headers in *"
13742"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13743esac
13744
13745
13746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13747# Files that config.status was made for.
13748config_files="$ac_config_files"
13749config_headers="$ac_config_headers"
13750config_commands="$ac_config_commands"
13751
13752_ACEOF
13753
13754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13755ac_cs_usage="\
13756\`$as_me' instantiates files and other configuration actions
13757from templates according to the current configuration.  Unless the files
13758and actions are specified as TAGs, all are instantiated by default.
13759
13760Usage: $0 [OPTION]... [TAG]...
13761
13762  -h, --help       print this help, then exit
13763  -V, --version    print version number and configuration settings, then exit
13764      --config     print configuration, then exit
13765  -q, --quiet, --silent
13766                   do not print progress messages
13767  -d, --debug      don't remove temporary files
13768      --recheck    update $as_me by reconfiguring in the same conditions
13769      --file=FILE[:TEMPLATE]
13770                   instantiate the configuration file FILE
13771      --header=FILE[:TEMPLATE]
13772                   instantiate the configuration header FILE
13773
13774Configuration files:
13775$config_files
13776
13777Configuration headers:
13778$config_headers
13779
13780Configuration commands:
13781$config_commands
13782
13783Report bugs to <https://github.com/esnet/iperf>.
13784iperf home page: <https://software.es.net/iperf/>."
13785
13786_ACEOF
13787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13788ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13789ac_cs_version="\\
13790iperf config.status 3.6+
13791configured by $0, generated by GNU Autoconf 2.69,
13792  with options \\"\$ac_cs_config\\"
13793
13794Copyright (C) 2012 Free Software Foundation, Inc.
13795This config.status script is free software; the Free Software Foundation
13796gives unlimited permission to copy, distribute and modify it."
13797
13798ac_pwd='$ac_pwd'
13799srcdir='$srcdir'
13800INSTALL='$INSTALL'
13801MKDIR_P='$MKDIR_P'
13802AWK='$AWK'
13803test -n "\$AWK" || AWK=awk
13804_ACEOF
13805
13806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13807# The default lists apply if the user does not specify any file.
13808ac_need_defaults=:
13809while test $# != 0
13810do
13811  case $1 in
13812  --*=?*)
13813    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13814    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13815    ac_shift=:
13816    ;;
13817  --*=)
13818    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13819    ac_optarg=
13820    ac_shift=:
13821    ;;
13822  *)
13823    ac_option=$1
13824    ac_optarg=$2
13825    ac_shift=shift
13826    ;;
13827  esac
13828
13829  case $ac_option in
13830  # Handling of the options.
13831  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13832    ac_cs_recheck=: ;;
13833  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13834    $as_echo "$ac_cs_version"; exit ;;
13835  --config | --confi | --conf | --con | --co | --c )
13836    $as_echo "$ac_cs_config"; exit ;;
13837  --debug | --debu | --deb | --de | --d | -d )
13838    debug=: ;;
13839  --file | --fil | --fi | --f )
13840    $ac_shift
13841    case $ac_optarg in
13842    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13843    '') as_fn_error $? "missing file argument" ;;
13844    esac
13845    as_fn_append CONFIG_FILES " '$ac_optarg'"
13846    ac_need_defaults=false;;
13847  --header | --heade | --head | --hea )
13848    $ac_shift
13849    case $ac_optarg in
13850    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13851    esac
13852    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13853    ac_need_defaults=false;;
13854  --he | --h)
13855    # Conflict between --help and --header
13856    as_fn_error $? "ambiguous option: \`$1'
13857Try \`$0 --help' for more information.";;
13858  --help | --hel | -h )
13859    $as_echo "$ac_cs_usage"; exit ;;
13860  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13861  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13862    ac_cs_silent=: ;;
13863
13864  # This is an error.
13865  -*) as_fn_error $? "unrecognized option: \`$1'
13866Try \`$0 --help' for more information." ;;
13867
13868  *) as_fn_append ac_config_targets " $1"
13869     ac_need_defaults=false ;;
13870
13871  esac
13872  shift
13873done
13874
13875ac_configure_extra_args=
13876
13877if $ac_cs_silent; then
13878  exec 6>/dev/null
13879  ac_configure_extra_args="$ac_configure_extra_args --silent"
13880fi
13881
13882_ACEOF
13883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13884if \$ac_cs_recheck; then
13885  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13886  shift
13887  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13888  CONFIG_SHELL='$SHELL'
13889  export CONFIG_SHELL
13890  exec "\$@"
13891fi
13892
13893_ACEOF
13894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13895exec 5>>config.log
13896{
13897  echo
13898  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13899## Running $as_me. ##
13900_ASBOX
13901  $as_echo "$ac_log"
13902} >&5
13903
13904_ACEOF
13905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13906#
13907# INIT-COMMANDS
13908#
13909AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13910
13911
13912# The HP-UX ksh and POSIX shell print the target directory to stdout
13913# if CDPATH is set.
13914(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13915
13916sed_quote_subst='$sed_quote_subst'
13917double_quote_subst='$double_quote_subst'
13918delay_variable_subst='$delay_variable_subst'
13919macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13920macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13921enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13922enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13923pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13924enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13925shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13926SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13927ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13928PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13929host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13930host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13931host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13932build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13933build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13934build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13935SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13936Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13937GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13938EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13939FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13940LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13941NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13942LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13943max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13944ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13945exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13946lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13947lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13948lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13949lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13950lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13951reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13952reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13953OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13954deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13955file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13956file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13957want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13958DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13959sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13960AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13961AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13962archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13963STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13964RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13965old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13966old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13967old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13968lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13969CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13970CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13971compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13972GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13973lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13974lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13975lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13976lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13977lt_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"`'
13978lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13979nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13980lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13981lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13982objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13983MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13984lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13985lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13986lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13987lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13988lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13989need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13990MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13991DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13992NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13993LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13994OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13995OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13996libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13997shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13998extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13999archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14000enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14001export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14002whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14003compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14004old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14005old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14006archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14007archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14008module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14009module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14010with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14011allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14012no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14013hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14014hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14015hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14016hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14017hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14018hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14019hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14020inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14021link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14022always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14023export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14024exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14025include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14026prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14027postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14028file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14029variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14030need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14031need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14032version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14033runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14034shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14035shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14036libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14037library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14038soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14039install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14040postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14041postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14042finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14043finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14044hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14045sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14046configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14047configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14048hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14049enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14050enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14051enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14052old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14053striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14054
14055LTCC='$LTCC'
14056LTCFLAGS='$LTCFLAGS'
14057compiler='$compiler_DEFAULT'
14058
14059# A function that is used when there is no print builtin or printf.
14060func_fallback_echo ()
14061{
14062  eval 'cat <<_LTECHO_EOF
14063\$1
14064_LTECHO_EOF'
14065}
14066
14067# Quote evaled strings.
14068for var in SHELL \
14069ECHO \
14070PATH_SEPARATOR \
14071SED \
14072GREP \
14073EGREP \
14074FGREP \
14075LD \
14076NM \
14077LN_S \
14078lt_SP2NL \
14079lt_NL2SP \
14080reload_flag \
14081OBJDUMP \
14082deplibs_check_method \
14083file_magic_cmd \
14084file_magic_glob \
14085want_nocaseglob \
14086DLLTOOL \
14087sharedlib_from_linklib_cmd \
14088AR \
14089AR_FLAGS \
14090archiver_list_spec \
14091STRIP \
14092RANLIB \
14093CC \
14094CFLAGS \
14095compiler \
14096lt_cv_sys_global_symbol_pipe \
14097lt_cv_sys_global_symbol_to_cdecl \
14098lt_cv_sys_global_symbol_to_import \
14099lt_cv_sys_global_symbol_to_c_name_address \
14100lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14101lt_cv_nm_interface \
14102nm_file_list_spec \
14103lt_cv_truncate_bin \
14104lt_prog_compiler_no_builtin_flag \
14105lt_prog_compiler_pic \
14106lt_prog_compiler_wl \
14107lt_prog_compiler_static \
14108lt_cv_prog_compiler_c_o \
14109need_locks \
14110MANIFEST_TOOL \
14111DSYMUTIL \
14112NMEDIT \
14113LIPO \
14114OTOOL \
14115OTOOL64 \
14116shrext_cmds \
14117export_dynamic_flag_spec \
14118whole_archive_flag_spec \
14119compiler_needs_object \
14120with_gnu_ld \
14121allow_undefined_flag \
14122no_undefined_flag \
14123hardcode_libdir_flag_spec \
14124hardcode_libdir_separator \
14125exclude_expsyms \
14126include_expsyms \
14127file_list_spec \
14128variables_saved_for_relink \
14129libname_spec \
14130library_names_spec \
14131soname_spec \
14132install_override_mode \
14133finish_eval \
14134old_striplib \
14135striplib; do
14136    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14137    *[\\\\\\\`\\"\\\$]*)
14138      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14139      ;;
14140    *)
14141      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14142      ;;
14143    esac
14144done
14145
14146# Double-quote double-evaled strings.
14147for var in reload_cmds \
14148old_postinstall_cmds \
14149old_postuninstall_cmds \
14150old_archive_cmds \
14151extract_expsyms_cmds \
14152old_archive_from_new_cmds \
14153old_archive_from_expsyms_cmds \
14154archive_cmds \
14155archive_expsym_cmds \
14156module_cmds \
14157module_expsym_cmds \
14158export_symbols_cmds \
14159prelink_cmds \
14160postlink_cmds \
14161postinstall_cmds \
14162postuninstall_cmds \
14163finish_cmds \
14164sys_lib_search_path_spec \
14165configure_time_dlsearch_path \
14166configure_time_lt_sys_library_path; do
14167    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14168    *[\\\\\\\`\\"\\\$]*)
14169      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14170      ;;
14171    *)
14172      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14173      ;;
14174    esac
14175done
14176
14177ac_aux_dir='$ac_aux_dir'
14178
14179# See if we are running on zsh, and set the options that allow our
14180# commands through without removal of \ escapes INIT.
14181if test -n "\${ZSH_VERSION+set}"; then
14182   setopt NO_GLOB_SUBST
14183fi
14184
14185
14186    PACKAGE='$PACKAGE'
14187    VERSION='$VERSION'
14188    RM='$RM'
14189    ofile='$ofile'
14190
14191
14192
14193
14194_ACEOF
14195
14196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14197
14198# Handling of arguments.
14199for ac_config_target in $ac_config_targets
14200do
14201  case $ac_config_target in
14202    "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
14203    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14204    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14205    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14206    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14207    "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
14208    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14209    "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
14210
14211  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14212  esac
14213done
14214
14215
14216# If the user did not use the arguments to specify the items to instantiate,
14217# then the envvar interface is used.  Set only those that are not.
14218# We use the long form for the default assignment because of an extremely
14219# bizarre bug on SunOS 4.1.3.
14220if $ac_need_defaults; then
14221  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14222  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14223  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14224fi
14225
14226# Have a temporary directory for convenience.  Make it in the build tree
14227# simply because there is no reason against having it here, and in addition,
14228# creating and moving files from /tmp can sometimes cause problems.
14229# Hook for its removal unless debugging.
14230# Note that there is a small window in which the directory will not be cleaned:
14231# after its creation but before its name has been assigned to `$tmp'.
14232$debug ||
14233{
14234  tmp= ac_tmp=
14235  trap 'exit_status=$?
14236  : "${ac_tmp:=$tmp}"
14237  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14238' 0
14239  trap 'as_fn_exit 1' 1 2 13 15
14240}
14241# Create a (secure) tmp directory for tmp files.
14242
14243{
14244  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14245  test -d "$tmp"
14246}  ||
14247{
14248  tmp=./conf$$-$RANDOM
14249  (umask 077 && mkdir "$tmp")
14250} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14251ac_tmp=$tmp
14252
14253# Set up the scripts for CONFIG_FILES section.
14254# No need to generate them if there are no CONFIG_FILES.
14255# This happens for instance with `./config.status config.h'.
14256if test -n "$CONFIG_FILES"; then
14257
14258
14259ac_cr=`echo X | tr X '\015'`
14260# On cygwin, bash can eat \r inside `` if the user requested igncr.
14261# But we know of no other shell where ac_cr would be empty at this
14262# point, so we can use a bashism as a fallback.
14263if test "x$ac_cr" = x; then
14264  eval ac_cr=\$\'\\r\'
14265fi
14266ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14267if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14268  ac_cs_awk_cr='\\r'
14269else
14270  ac_cs_awk_cr=$ac_cr
14271fi
14272
14273echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14274_ACEOF
14275
14276
14277{
14278  echo "cat >conf$$subs.awk <<_ACEOF" &&
14279  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14280  echo "_ACEOF"
14281} >conf$$subs.sh ||
14282  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14283ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14284ac_delim='%!_!# '
14285for ac_last_try in false false false false false :; do
14286  . ./conf$$subs.sh ||
14287    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14288
14289  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14290  if test $ac_delim_n = $ac_delim_num; then
14291    break
14292  elif $ac_last_try; then
14293    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14294  else
14295    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14296  fi
14297done
14298rm -f conf$$subs.sh
14299
14300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14301cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14302_ACEOF
14303sed -n '
14304h
14305s/^/S["/; s/!.*/"]=/
14306p
14307g
14308s/^[^!]*!//
14309:repl
14310t repl
14311s/'"$ac_delim"'$//
14312t delim
14313:nl
14314h
14315s/\(.\{148\}\)..*/\1/
14316t more1
14317s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14318p
14319n
14320b repl
14321:more1
14322s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14323p
14324g
14325s/.\{148\}//
14326t nl
14327:delim
14328h
14329s/\(.\{148\}\)..*/\1/
14330t more2
14331s/["\\]/\\&/g; s/^/"/; s/$/"/
14332p
14333b
14334:more2
14335s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14336p
14337g
14338s/.\{148\}//
14339t delim
14340' <conf$$subs.awk | sed '
14341/^[^""]/{
14342  N
14343  s/\n//
14344}
14345' >>$CONFIG_STATUS || ac_write_fail=1
14346rm -f conf$$subs.awk
14347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14348_ACAWK
14349cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14350  for (key in S) S_is_set[key] = 1
14351  FS = ""
14352
14353}
14354{
14355  line = $ 0
14356  nfields = split(line, field, "@")
14357  substed = 0
14358  len = length(field[1])
14359  for (i = 2; i < nfields; i++) {
14360    key = field[i]
14361    keylen = length(key)
14362    if (S_is_set[key]) {
14363      value = S[key]
14364      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14365      len += length(value) + length(field[++i])
14366      substed = 1
14367    } else
14368      len += 1 + keylen
14369  }
14370
14371  print line
14372}
14373
14374_ACAWK
14375_ACEOF
14376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14377if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14378  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14379else
14380  cat
14381fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14382  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14383_ACEOF
14384
14385# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14386# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14387# trailing colons and then remove the whole line if VPATH becomes empty
14388# (actually we leave an empty line to preserve line numbers).
14389if test "x$srcdir" = x.; then
14390  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14391h
14392s///
14393s/^/:/
14394s/[	 ]*$/:/
14395s/:\$(srcdir):/:/g
14396s/:\${srcdir}:/:/g
14397s/:@srcdir@:/:/g
14398s/^:*//
14399s/:*$//
14400x
14401s/\(=[	 ]*\).*/\1/
14402G
14403s/\n//
14404s/^[^=]*=[	 ]*$//
14405}'
14406fi
14407
14408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14409fi # test -n "$CONFIG_FILES"
14410
14411# Set up the scripts for CONFIG_HEADERS section.
14412# No need to generate them if there are no CONFIG_HEADERS.
14413# This happens for instance with `./config.status Makefile'.
14414if test -n "$CONFIG_HEADERS"; then
14415cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14416BEGIN {
14417_ACEOF
14418
14419# Transform confdefs.h into an awk script `defines.awk', embedded as
14420# here-document in config.status, that substitutes the proper values into
14421# config.h.in to produce config.h.
14422
14423# Create a delimiter string that does not exist in confdefs.h, to ease
14424# handling of long lines.
14425ac_delim='%!_!# '
14426for ac_last_try in false false :; do
14427  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14428  if test -z "$ac_tt"; then
14429    break
14430  elif $ac_last_try; then
14431    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14432  else
14433    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14434  fi
14435done
14436
14437# For the awk script, D is an array of macro values keyed by name,
14438# likewise P contains macro parameters if any.  Preserve backslash
14439# newline sequences.
14440
14441ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14442sed -n '
14443s/.\{148\}/&'"$ac_delim"'/g
14444t rset
14445:rset
14446s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14447t def
14448d
14449:def
14450s/\\$//
14451t bsnl
14452s/["\\]/\\&/g
14453s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14454D["\1"]=" \3"/p
14455s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14456d
14457:bsnl
14458s/["\\]/\\&/g
14459s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14460D["\1"]=" \3\\\\\\n"\\/p
14461t cont
14462s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14463t cont
14464d
14465:cont
14466n
14467s/.\{148\}/&'"$ac_delim"'/g
14468t clear
14469:clear
14470s/\\$//
14471t bsnlc
14472s/["\\]/\\&/g; s/^/"/; s/$/"/p
14473d
14474:bsnlc
14475s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14476b cont
14477' <confdefs.h | sed '
14478s/'"$ac_delim"'/"\\\
14479"/g' >>$CONFIG_STATUS || ac_write_fail=1
14480
14481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14482  for (key in D) D_is_set[key] = 1
14483  FS = ""
14484}
14485/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14486  line = \$ 0
14487  split(line, arg, " ")
14488  if (arg[1] == "#") {
14489    defundef = arg[2]
14490    mac1 = arg[3]
14491  } else {
14492    defundef = substr(arg[1], 2)
14493    mac1 = arg[2]
14494  }
14495  split(mac1, mac2, "(") #)
14496  macro = mac2[1]
14497  prefix = substr(line, 1, index(line, defundef) - 1)
14498  if (D_is_set[macro]) {
14499    # Preserve the white space surrounding the "#".
14500    print prefix "define", macro P[macro] D[macro]
14501    next
14502  } else {
14503    # Replace #undef with comments.  This is necessary, for example,
14504    # in the case of _POSIX_SOURCE, which is predefined and required
14505    # on some systems where configure will not decide to define it.
14506    if (defundef == "undef") {
14507      print "/*", prefix defundef, macro, "*/"
14508      next
14509    }
14510  }
14511}
14512{ print }
14513_ACAWK
14514_ACEOF
14515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14516  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14517fi # test -n "$CONFIG_HEADERS"
14518
14519
14520eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14521shift
14522for ac_tag
14523do
14524  case $ac_tag in
14525  :[FHLC]) ac_mode=$ac_tag; continue;;
14526  esac
14527  case $ac_mode$ac_tag in
14528  :[FHL]*:*);;
14529  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14530  :[FH]-) ac_tag=-:-;;
14531  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14532  esac
14533  ac_save_IFS=$IFS
14534  IFS=:
14535  set x $ac_tag
14536  IFS=$ac_save_IFS
14537  shift
14538  ac_file=$1
14539  shift
14540
14541  case $ac_mode in
14542  :L) ac_source=$1;;
14543  :[FH])
14544    ac_file_inputs=
14545    for ac_f
14546    do
14547      case $ac_f in
14548      -) ac_f="$ac_tmp/stdin";;
14549      *) # Look for the file first in the build tree, then in the source tree
14550	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14551	 # because $ac_f cannot contain `:'.
14552	 test -f "$ac_f" ||
14553	   case $ac_f in
14554	   [\\/$]*) false;;
14555	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14556	   esac ||
14557	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14558      esac
14559      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14560      as_fn_append ac_file_inputs " '$ac_f'"
14561    done
14562
14563    # Let's still pretend it is `configure' which instantiates (i.e., don't
14564    # use $as_me), people would be surprised to read:
14565    #    /* config.h.  Generated by config.status.  */
14566    configure_input='Generated from '`
14567	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14568	`' by configure.'
14569    if test x"$ac_file" != x-; then
14570      configure_input="$ac_file.  $configure_input"
14571      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14572$as_echo "$as_me: creating $ac_file" >&6;}
14573    fi
14574    # Neutralize special characters interpreted by sed in replacement strings.
14575    case $configure_input in #(
14576    *\&* | *\|* | *\\* )
14577       ac_sed_conf_input=`$as_echo "$configure_input" |
14578       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14579    *) ac_sed_conf_input=$configure_input;;
14580    esac
14581
14582    case $ac_tag in
14583    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14584      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14585    esac
14586    ;;
14587  esac
14588
14589  ac_dir=`$as_dirname -- "$ac_file" ||
14590$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14591	 X"$ac_file" : 'X\(//\)[^/]' \| \
14592	 X"$ac_file" : 'X\(//\)$' \| \
14593	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14594$as_echo X"$ac_file" |
14595    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14596	    s//\1/
14597	    q
14598	  }
14599	  /^X\(\/\/\)[^/].*/{
14600	    s//\1/
14601	    q
14602	  }
14603	  /^X\(\/\/\)$/{
14604	    s//\1/
14605	    q
14606	  }
14607	  /^X\(\/\).*/{
14608	    s//\1/
14609	    q
14610	  }
14611	  s/.*/./; q'`
14612  as_dir="$ac_dir"; as_fn_mkdir_p
14613  ac_builddir=.
14614
14615case "$ac_dir" in
14616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14617*)
14618  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14619  # A ".." for each directory in $ac_dir_suffix.
14620  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14621  case $ac_top_builddir_sub in
14622  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14623  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14624  esac ;;
14625esac
14626ac_abs_top_builddir=$ac_pwd
14627ac_abs_builddir=$ac_pwd$ac_dir_suffix
14628# for backward compatibility:
14629ac_top_builddir=$ac_top_build_prefix
14630
14631case $srcdir in
14632  .)  # We are building in place.
14633    ac_srcdir=.
14634    ac_top_srcdir=$ac_top_builddir_sub
14635    ac_abs_top_srcdir=$ac_pwd ;;
14636  [\\/]* | ?:[\\/]* )  # Absolute name.
14637    ac_srcdir=$srcdir$ac_dir_suffix;
14638    ac_top_srcdir=$srcdir
14639    ac_abs_top_srcdir=$srcdir ;;
14640  *) # Relative name.
14641    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14642    ac_top_srcdir=$ac_top_build_prefix$srcdir
14643    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14644esac
14645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14646
14647
14648  case $ac_mode in
14649  :F)
14650  #
14651  # CONFIG_FILE
14652  #
14653
14654  case $INSTALL in
14655  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14656  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14657  esac
14658  ac_MKDIR_P=$MKDIR_P
14659  case $MKDIR_P in
14660  [\\/$]* | ?:[\\/]* ) ;;
14661  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14662  esac
14663_ACEOF
14664
14665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14666# If the template does not know about datarootdir, expand it.
14667# FIXME: This hack should be removed a few years after 2.60.
14668ac_datarootdir_hack=; ac_datarootdir_seen=
14669ac_sed_dataroot='
14670/datarootdir/ {
14671  p
14672  q
14673}
14674/@datadir@/p
14675/@docdir@/p
14676/@infodir@/p
14677/@localedir@/p
14678/@mandir@/p'
14679case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14680*datarootdir*) ac_datarootdir_seen=yes;;
14681*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14682  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14683$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14684_ACEOF
14685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14686  ac_datarootdir_hack='
14687  s&@datadir@&$datadir&g
14688  s&@docdir@&$docdir&g
14689  s&@infodir@&$infodir&g
14690  s&@localedir@&$localedir&g
14691  s&@mandir@&$mandir&g
14692  s&\\\${datarootdir}&$datarootdir&g' ;;
14693esac
14694_ACEOF
14695
14696# Neutralize VPATH when `$srcdir' = `.'.
14697# Shell code in configure.ac might set extrasub.
14698# FIXME: do we really want to maintain this feature?
14699cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14700ac_sed_extra="$ac_vpsub
14701$extrasub
14702_ACEOF
14703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14704:t
14705/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14706s|@configure_input@|$ac_sed_conf_input|;t t
14707s&@top_builddir@&$ac_top_builddir_sub&;t t
14708s&@top_build_prefix@&$ac_top_build_prefix&;t t
14709s&@srcdir@&$ac_srcdir&;t t
14710s&@abs_srcdir@&$ac_abs_srcdir&;t t
14711s&@top_srcdir@&$ac_top_srcdir&;t t
14712s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14713s&@builddir@&$ac_builddir&;t t
14714s&@abs_builddir@&$ac_abs_builddir&;t t
14715s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14716s&@INSTALL@&$ac_INSTALL&;t t
14717s&@MKDIR_P@&$ac_MKDIR_P&;t t
14718$ac_datarootdir_hack
14719"
14720eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14721  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14722
14723test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14724  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14725  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14726      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14727  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14728which seems to be undefined.  Please make sure it is defined" >&5
14729$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14730which seems to be undefined.  Please make sure it is defined" >&2;}
14731
14732  rm -f "$ac_tmp/stdin"
14733  case $ac_file in
14734  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14735  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14736  esac \
14737  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14738 ;;
14739  :H)
14740  #
14741  # CONFIG_HEADER
14742  #
14743  if test x"$ac_file" != x-; then
14744    {
14745      $as_echo "/* $configure_input  */" \
14746      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14747    } >"$ac_tmp/config.h" \
14748      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14749    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14750      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14751$as_echo "$as_me: $ac_file is unchanged" >&6;}
14752    else
14753      rm -f "$ac_file"
14754      mv "$ac_tmp/config.h" "$ac_file" \
14755	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14756    fi
14757  else
14758    $as_echo "/* $configure_input  */" \
14759      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14760      || as_fn_error $? "could not create -" "$LINENO" 5
14761  fi
14762# Compute "$ac_file"'s index in $config_headers.
14763_am_arg="$ac_file"
14764_am_stamp_count=1
14765for _am_header in $config_headers :; do
14766  case $_am_header in
14767    $_am_arg | $_am_arg:* )
14768      break ;;
14769    * )
14770      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14771  esac
14772done
14773echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14774$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14775	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14776	 X"$_am_arg" : 'X\(//\)$' \| \
14777	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14778$as_echo X"$_am_arg" |
14779    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14780	    s//\1/
14781	    q
14782	  }
14783	  /^X\(\/\/\)[^/].*/{
14784	    s//\1/
14785	    q
14786	  }
14787	  /^X\(\/\/\)$/{
14788	    s//\1/
14789	    q
14790	  }
14791	  /^X\(\/\).*/{
14792	    s//\1/
14793	    q
14794	  }
14795	  s/.*/./; q'`/stamp-h$_am_stamp_count
14796 ;;
14797
14798  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14799$as_echo "$as_me: executing $ac_file commands" >&6;}
14800 ;;
14801  esac
14802
14803
14804  case $ac_file$ac_mode in
14805    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14806  # Older Autoconf quotes --file arguments for eval, but not when files
14807  # are listed without --file.  Let's play safe and only enable the eval
14808  # if we detect the quoting.
14809  # TODO: see whether this extra hack can be removed once we start
14810  # requiring Autoconf 2.70 or later.
14811  case $CONFIG_FILES in #(
14812  *\'*) :
14813    eval set x "$CONFIG_FILES" ;; #(
14814  *) :
14815    set x $CONFIG_FILES ;; #(
14816  *) :
14817     ;;
14818esac
14819  shift
14820  # Used to flag and report bootstrapping failures.
14821  am_rc=0
14822  for am_mf
14823  do
14824    # Strip MF so we end up with the name of the file.
14825    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14826    # Check whether this is an Automake generated Makefile which includes
14827    # dependency-tracking related rules and includes.
14828    # Grep'ing the whole file directly is not great: AIX grep has a line
14829    # limit of 2048, but all sed's we know have understand at least 4000.
14830    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14831      || continue
14832    am_dirpart=`$as_dirname -- "$am_mf" ||
14833$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14834	 X"$am_mf" : 'X\(//\)[^/]' \| \
14835	 X"$am_mf" : 'X\(//\)$' \| \
14836	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14837$as_echo X"$am_mf" |
14838    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14839	    s//\1/
14840	    q
14841	  }
14842	  /^X\(\/\/\)[^/].*/{
14843	    s//\1/
14844	    q
14845	  }
14846	  /^X\(\/\/\)$/{
14847	    s//\1/
14848	    q
14849	  }
14850	  /^X\(\/\).*/{
14851	    s//\1/
14852	    q
14853	  }
14854	  s/.*/./; q'`
14855    am_filepart=`$as_basename -- "$am_mf" ||
14856$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14857	 X"$am_mf" : 'X\(//\)$' \| \
14858	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14859$as_echo X/"$am_mf" |
14860    sed '/^.*\/\([^/][^/]*\)\/*$/{
14861	    s//\1/
14862	    q
14863	  }
14864	  /^X\/\(\/\/\)$/{
14865	    s//\1/
14866	    q
14867	  }
14868	  /^X\/\(\/\).*/{
14869	    s//\1/
14870	    q
14871	  }
14872	  s/.*/./; q'`
14873    { echo "$as_me:$LINENO: cd "$am_dirpart" \
14874      && sed -e '/# am--include-marker/d' "$am_filepart" \
14875        | $MAKE -f - am--depfiles" >&5
14876   (cd "$am_dirpart" \
14877      && sed -e '/# am--include-marker/d' "$am_filepart" \
14878        | $MAKE -f - am--depfiles) >&5 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); } || am_rc=$?
14882  done
14883  if test $am_rc -ne 0; then
14884    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14886as_fn_error $? "Something went wrong bootstrapping makefile fragments
14887    for automatic dependency tracking.  Try re-running configure with the
14888    '--disable-dependency-tracking' option to at least be able to build
14889    the package (albeit without support for automatic dependency tracking).
14890See \`config.log' for more details" "$LINENO" 5; }
14891  fi
14892  { am_dirpart=; unset am_dirpart;}
14893  { am_filepart=; unset am_filepart;}
14894  { am_mf=; unset am_mf;}
14895  { am_rc=; unset am_rc;}
14896  rm -f conftest-deps.mk
14897}
14898 ;;
14899    "libtool":C)
14900
14901    # See if we are running on zsh, and set the options that allow our
14902    # commands through without removal of \ escapes.
14903    if test -n "${ZSH_VERSION+set}"; then
14904      setopt NO_GLOB_SUBST
14905    fi
14906
14907    cfgfile=${ofile}T
14908    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14909    $RM "$cfgfile"
14910
14911    cat <<_LT_EOF >> "$cfgfile"
14912#! $SHELL
14913# Generated automatically by $as_me ($PACKAGE) $VERSION
14914# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14915# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14916
14917# Provide generalized library-building support services.
14918# Written by Gordon Matzigkeit, 1996
14919
14920# Copyright (C) 2014 Free Software Foundation, Inc.
14921# This is free software; see the source for copying conditions.  There is NO
14922# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14923
14924# GNU Libtool is free software; you can redistribute it and/or modify
14925# it under the terms of the GNU General Public License as published by
14926# the Free Software Foundation; either version 2 of of the License, or
14927# (at your option) any later version.
14928#
14929# As a special exception to the GNU General Public License, if you
14930# distribute this file as part of a program or library that is built
14931# using GNU Libtool, you may include this file under the  same
14932# distribution terms that you use for the rest of that program.
14933#
14934# GNU Libtool is distributed in the hope that it will be useful, but
14935# WITHOUT ANY WARRANTY; without even the implied warranty of
14936# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14937# GNU General Public License for more details.
14938#
14939# You should have received a copy of the GNU General Public License
14940# along with this program.  If not, see <http://www.gnu.org/licenses/>.
14941
14942
14943# The names of the tagged configurations supported by this script.
14944available_tags=''
14945
14946# Configured defaults for sys_lib_dlsearch_path munging.
14947: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14948
14949# ### BEGIN LIBTOOL CONFIG
14950
14951# Which release of libtool.m4 was used?
14952macro_version=$macro_version
14953macro_revision=$macro_revision
14954
14955# Whether or not to build shared libraries.
14956build_libtool_libs=$enable_shared
14957
14958# Whether or not to build static libraries.
14959build_old_libs=$enable_static
14960
14961# What type of objects to build.
14962pic_mode=$pic_mode
14963
14964# Whether or not to optimize for fast installation.
14965fast_install=$enable_fast_install
14966
14967# Shared archive member basename,for filename based shared library versioning on AIX.
14968shared_archive_member_spec=$shared_archive_member_spec
14969
14970# Shell to use when invoking shell scripts.
14971SHELL=$lt_SHELL
14972
14973# An echo program that protects backslashes.
14974ECHO=$lt_ECHO
14975
14976# The PATH separator for the build system.
14977PATH_SEPARATOR=$lt_PATH_SEPARATOR
14978
14979# The host system.
14980host_alias=$host_alias
14981host=$host
14982host_os=$host_os
14983
14984# The build system.
14985build_alias=$build_alias
14986build=$build
14987build_os=$build_os
14988
14989# A sed program that does not truncate output.
14990SED=$lt_SED
14991
14992# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14993Xsed="\$SED -e 1s/^X//"
14994
14995# A grep program that handles long lines.
14996GREP=$lt_GREP
14997
14998# An ERE matcher.
14999EGREP=$lt_EGREP
15000
15001# A literal string matcher.
15002FGREP=$lt_FGREP
15003
15004# A BSD- or MS-compatible name lister.
15005NM=$lt_NM
15006
15007# Whether we need soft or hard links.
15008LN_S=$lt_LN_S
15009
15010# What is the maximum length of a command?
15011max_cmd_len=$max_cmd_len
15012
15013# Object file suffix (normally "o").
15014objext=$ac_objext
15015
15016# Executable file suffix (normally "").
15017exeext=$exeext
15018
15019# whether the shell understands "unset".
15020lt_unset=$lt_unset
15021
15022# turn spaces into newlines.
15023SP2NL=$lt_lt_SP2NL
15024
15025# turn newlines into spaces.
15026NL2SP=$lt_lt_NL2SP
15027
15028# convert \$build file names to \$host format.
15029to_host_file_cmd=$lt_cv_to_host_file_cmd
15030
15031# convert \$build files to toolchain format.
15032to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15033
15034# An object symbol dumper.
15035OBJDUMP=$lt_OBJDUMP
15036
15037# Method to check whether dependent libraries are shared objects.
15038deplibs_check_method=$lt_deplibs_check_method
15039
15040# Command to use when deplibs_check_method = "file_magic".
15041file_magic_cmd=$lt_file_magic_cmd
15042
15043# How to find potential files when deplibs_check_method = "file_magic".
15044file_magic_glob=$lt_file_magic_glob
15045
15046# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15047want_nocaseglob=$lt_want_nocaseglob
15048
15049# DLL creation program.
15050DLLTOOL=$lt_DLLTOOL
15051
15052# Command to associate shared and link libraries.
15053sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15054
15055# The archiver.
15056AR=$lt_AR
15057
15058# Flags to create an archive.
15059AR_FLAGS=$lt_AR_FLAGS
15060
15061# How to feed a file listing to the archiver.
15062archiver_list_spec=$lt_archiver_list_spec
15063
15064# A symbol stripping program.
15065STRIP=$lt_STRIP
15066
15067# Commands used to install an old-style archive.
15068RANLIB=$lt_RANLIB
15069old_postinstall_cmds=$lt_old_postinstall_cmds
15070old_postuninstall_cmds=$lt_old_postuninstall_cmds
15071
15072# Whether to use a lock for old archive extraction.
15073lock_old_archive_extraction=$lock_old_archive_extraction
15074
15075# A C compiler.
15076LTCC=$lt_CC
15077
15078# LTCC compiler flags.
15079LTCFLAGS=$lt_CFLAGS
15080
15081# Take the output of nm and produce a listing of raw symbols and C names.
15082global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15083
15084# Transform the output of nm in a proper C declaration.
15085global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15086
15087# Transform the output of nm into a list of symbols to manually relocate.
15088global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15089
15090# Transform the output of nm in a C name address pair.
15091global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15092
15093# Transform the output of nm in a C name address pair when lib prefix is needed.
15094global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15095
15096# The name lister interface.
15097nm_interface=$lt_lt_cv_nm_interface
15098
15099# Specify filename containing input files for \$NM.
15100nm_file_list_spec=$lt_nm_file_list_spec
15101
15102# The root where to search for dependent libraries,and where our libraries should be installed.
15103lt_sysroot=$lt_sysroot
15104
15105# Command to truncate a binary pipe.
15106lt_truncate_bin=$lt_lt_cv_truncate_bin
15107
15108# The name of the directory that contains temporary libtool files.
15109objdir=$objdir
15110
15111# Used to examine libraries when file_magic_cmd begins with "file".
15112MAGIC_CMD=$MAGIC_CMD
15113
15114# Must we lock files when doing compilation?
15115need_locks=$lt_need_locks
15116
15117# Manifest tool.
15118MANIFEST_TOOL=$lt_MANIFEST_TOOL
15119
15120# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15121DSYMUTIL=$lt_DSYMUTIL
15122
15123# Tool to change global to local symbols on Mac OS X.
15124NMEDIT=$lt_NMEDIT
15125
15126# Tool to manipulate fat objects and archives on Mac OS X.
15127LIPO=$lt_LIPO
15128
15129# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15130OTOOL=$lt_OTOOL
15131
15132# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15133OTOOL64=$lt_OTOOL64
15134
15135# Old archive suffix (normally "a").
15136libext=$libext
15137
15138# Shared library suffix (normally ".so").
15139shrext_cmds=$lt_shrext_cmds
15140
15141# The commands to extract the exported symbol list from a shared archive.
15142extract_expsyms_cmds=$lt_extract_expsyms_cmds
15143
15144# Variables whose values should be saved in libtool wrapper scripts and
15145# restored at link time.
15146variables_saved_for_relink=$lt_variables_saved_for_relink
15147
15148# Do we need the "lib" prefix for modules?
15149need_lib_prefix=$need_lib_prefix
15150
15151# Do we need a version for libraries?
15152need_version=$need_version
15153
15154# Library versioning type.
15155version_type=$version_type
15156
15157# Shared library runtime path variable.
15158runpath_var=$runpath_var
15159
15160# Shared library path variable.
15161shlibpath_var=$shlibpath_var
15162
15163# Is shlibpath searched before the hard-coded library search path?
15164shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15165
15166# Format of library name prefix.
15167libname_spec=$lt_libname_spec
15168
15169# List of archive names.  First name is the real one, the rest are links.
15170# The last name is the one that the linker finds with -lNAME
15171library_names_spec=$lt_library_names_spec
15172
15173# The coded name of the library, if different from the real name.
15174soname_spec=$lt_soname_spec
15175
15176# Permission mode override for installation of shared libraries.
15177install_override_mode=$lt_install_override_mode
15178
15179# Command to use after installation of a shared archive.
15180postinstall_cmds=$lt_postinstall_cmds
15181
15182# Command to use after uninstallation of a shared archive.
15183postuninstall_cmds=$lt_postuninstall_cmds
15184
15185# Commands used to finish a libtool library installation in a directory.
15186finish_cmds=$lt_finish_cmds
15187
15188# As "finish_cmds", except a single script fragment to be evaled but
15189# not shown.
15190finish_eval=$lt_finish_eval
15191
15192# Whether we should hardcode library paths into libraries.
15193hardcode_into_libs=$hardcode_into_libs
15194
15195# Compile-time system search path for libraries.
15196sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15197
15198# Detected run-time system search path for libraries.
15199sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15200
15201# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15202configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15203
15204# Whether dlopen is supported.
15205dlopen_support=$enable_dlopen
15206
15207# Whether dlopen of programs is supported.
15208dlopen_self=$enable_dlopen_self
15209
15210# Whether dlopen of statically linked programs is supported.
15211dlopen_self_static=$enable_dlopen_self_static
15212
15213# Commands to strip libraries.
15214old_striplib=$lt_old_striplib
15215striplib=$lt_striplib
15216
15217
15218# The linker used to build libraries.
15219LD=$lt_LD
15220
15221# How to create reloadable object files.
15222reload_flag=$lt_reload_flag
15223reload_cmds=$lt_reload_cmds
15224
15225# Commands used to build an old-style archive.
15226old_archive_cmds=$lt_old_archive_cmds
15227
15228# A language specific compiler.
15229CC=$lt_compiler
15230
15231# Is the compiler the GNU compiler?
15232with_gcc=$GCC
15233
15234# Compiler flag to turn off builtin functions.
15235no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15236
15237# Additional compiler flags for building library objects.
15238pic_flag=$lt_lt_prog_compiler_pic
15239
15240# How to pass a linker flag through the compiler.
15241wl=$lt_lt_prog_compiler_wl
15242
15243# Compiler flag to prevent dynamic linking.
15244link_static_flag=$lt_lt_prog_compiler_static
15245
15246# Does compiler simultaneously support -c and -o options?
15247compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15248
15249# Whether or not to add -lc for building shared libraries.
15250build_libtool_need_lc=$archive_cmds_need_lc
15251
15252# Whether or not to disallow shared libs when runtime libs are static.
15253allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15254
15255# Compiler flag to allow reflexive dlopens.
15256export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15257
15258# Compiler flag to generate shared objects directly from archives.
15259whole_archive_flag_spec=$lt_whole_archive_flag_spec
15260
15261# Whether the compiler copes with passing no objects directly.
15262compiler_needs_object=$lt_compiler_needs_object
15263
15264# Create an old-style archive from a shared archive.
15265old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15266
15267# Create a temporary old-style archive to link instead of a shared archive.
15268old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15269
15270# Commands used to build a shared archive.
15271archive_cmds=$lt_archive_cmds
15272archive_expsym_cmds=$lt_archive_expsym_cmds
15273
15274# Commands used to build a loadable module if different from building
15275# a shared archive.
15276module_cmds=$lt_module_cmds
15277module_expsym_cmds=$lt_module_expsym_cmds
15278
15279# Whether we are building with GNU ld or not.
15280with_gnu_ld=$lt_with_gnu_ld
15281
15282# Flag that allows shared libraries with undefined symbols to be built.
15283allow_undefined_flag=$lt_allow_undefined_flag
15284
15285# Flag that enforces no undefined symbols.
15286no_undefined_flag=$lt_no_undefined_flag
15287
15288# Flag to hardcode \$libdir into a binary during linking.
15289# This must work even if \$libdir does not exist
15290hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15291
15292# Whether we need a single "-rpath" flag with a separated argument.
15293hardcode_libdir_separator=$lt_hardcode_libdir_separator
15294
15295# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15296# DIR into the resulting binary.
15297hardcode_direct=$hardcode_direct
15298
15299# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15300# DIR into the resulting binary and the resulting library dependency is
15301# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15302# library is relocated.
15303hardcode_direct_absolute=$hardcode_direct_absolute
15304
15305# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15306# into the resulting binary.
15307hardcode_minus_L=$hardcode_minus_L
15308
15309# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15310# into the resulting binary.
15311hardcode_shlibpath_var=$hardcode_shlibpath_var
15312
15313# Set to "yes" if building a shared library automatically hardcodes DIR
15314# into the library and all subsequent libraries and executables linked
15315# against it.
15316hardcode_automatic=$hardcode_automatic
15317
15318# Set to yes if linker adds runtime paths of dependent libraries
15319# to runtime path list.
15320inherit_rpath=$inherit_rpath
15321
15322# Whether libtool must link a program against all its dependency libraries.
15323link_all_deplibs=$link_all_deplibs
15324
15325# Set to "yes" if exported symbols are required.
15326always_export_symbols=$always_export_symbols
15327
15328# The commands to list exported symbols.
15329export_symbols_cmds=$lt_export_symbols_cmds
15330
15331# Symbols that should not be listed in the preloaded symbols.
15332exclude_expsyms=$lt_exclude_expsyms
15333
15334# Symbols that must always be exported.
15335include_expsyms=$lt_include_expsyms
15336
15337# Commands necessary for linking programs (against libraries) with templates.
15338prelink_cmds=$lt_prelink_cmds
15339
15340# Commands necessary for finishing linking programs.
15341postlink_cmds=$lt_postlink_cmds
15342
15343# Specify filename containing input files.
15344file_list_spec=$lt_file_list_spec
15345
15346# How to hardcode a shared library path into an executable.
15347hardcode_action=$hardcode_action
15348
15349# ### END LIBTOOL CONFIG
15350
15351_LT_EOF
15352
15353    cat <<'_LT_EOF' >> "$cfgfile"
15354
15355# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15356
15357# func_munge_path_list VARIABLE PATH
15358# -----------------------------------
15359# VARIABLE is name of variable containing _space_ separated list of
15360# directories to be munged by the contents of PATH, which is string
15361# having a format:
15362# "DIR[:DIR]:"
15363#       string "DIR[ DIR]" will be prepended to VARIABLE
15364# ":DIR[:DIR]"
15365#       string "DIR[ DIR]" will be appended to VARIABLE
15366# "DIRP[:DIRP]::[DIRA:]DIRA"
15367#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15368#       "DIRA[ DIRA]" will be appended to VARIABLE
15369# "DIR[:DIR]"
15370#       VARIABLE will be replaced by "DIR[ DIR]"
15371func_munge_path_list ()
15372{
15373    case x$2 in
15374    x)
15375        ;;
15376    *:)
15377        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15378        ;;
15379    x:*)
15380        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15381        ;;
15382    *::*)
15383        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15384        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15385        ;;
15386    *)
15387        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15388        ;;
15389    esac
15390}
15391
15392
15393# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15394func_cc_basename ()
15395{
15396    for cc_temp in $*""; do
15397      case $cc_temp in
15398        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15399        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15400        \-*) ;;
15401        *) break;;
15402      esac
15403    done
15404    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15405}
15406
15407
15408# ### END FUNCTIONS SHARED WITH CONFIGURE
15409
15410_LT_EOF
15411
15412  case $host_os in
15413  aix3*)
15414    cat <<\_LT_EOF >> "$cfgfile"
15415# AIX sometimes has problems with the GCC collect2 program.  For some
15416# reason, if we set the COLLECT_NAMES environment variable, the problems
15417# vanish in a puff of smoke.
15418if test set != "${COLLECT_NAMES+set}"; then
15419  COLLECT_NAMES=
15420  export COLLECT_NAMES
15421fi
15422_LT_EOF
15423    ;;
15424  esac
15425
15426
15427ltmain=$ac_aux_dir/ltmain.sh
15428
15429
15430  # We use sed instead of cat because bash on DJGPP gets confused if
15431  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15432  # text mode, it properly converts lines to CR/LF.  This bash problem
15433  # is reportedly fixed, but why not run on old versions too?
15434  sed '$q' "$ltmain" >> "$cfgfile" \
15435     || (rm -f "$cfgfile"; exit 1)
15436
15437   mv -f "$cfgfile" "$ofile" ||
15438    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15439  chmod +x "$ofile"
15440
15441 ;;
15442
15443  esac
15444done # for ac_tag
15445
15446
15447as_fn_exit 0
15448_ACEOF
15449ac_clean_files=$ac_clean_files_save
15450
15451test $ac_write_fail = 0 ||
15452  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15453
15454
15455# configure is writing to config.log, and then calls config.status.
15456# config.status does its own redirection, appending to config.log.
15457# Unfortunately, on DOS this fails, as config.log is still kept open
15458# by configure, so config.status won't be able to write to it; its
15459# output is simply discarded.  So we exec the FD to /dev/null,
15460# effectively closing config.log, so it can be properly (re)opened and
15461# appended to by config.status.  When coming back to configure, we
15462# need to make the FD available again.
15463if test "$no_create" != yes; then
15464  ac_cs_success=:
15465  ac_config_status_args=
15466  test "$silent" = yes &&
15467    ac_config_status_args="$ac_config_status_args --quiet"
15468  exec 5>/dev/null
15469  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15470  exec 5>>config.log
15471  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15472  # would make configure fail if this is the last instruction.
15473  $ac_cs_success || as_fn_exit 1
15474fi
15475if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15476  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15477$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15478fi
15479
15480