xref: /iperf/configure (revision d1cfda53)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for iperf 3.9+.
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 [email protected] 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.9+'
594PACKAGE_STRING='iperf 3.9+'
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
644MAINT
645MAINTAINER_MODE_FALSE
646MAINTAINER_MODE_TRUE
647CPP
648LT_SYS_LIBRARY_PATH
649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
654MANIFEST_TOOL
655RANLIB
656ac_ct_AR
657AR
658DLLTOOL
659OBJDUMP
660LN_S
661NM
662ac_ct_DUMPBIN
663DUMPBIN
664LD
665FGREP
666EGREP
667GREP
668SED
669am__fastdepCC_FALSE
670am__fastdepCC_TRUE
671CCDEPMODE
672am__nodep
673AMDEPBACKSLASH
674AMDEP_FALSE
675AMDEP_TRUE
676am__include
677DEPDIR
678OBJEXT
679EXEEXT
680ac_ct_CC
681CPPFLAGS
682LDFLAGS
683CFLAGS
684CC
685host_os
686host_vendor
687host_cpu
688host
689build_os
690build_vendor
691build_cpu
692build
693LIBTOOL
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
721ENABLE_STATIC_BIN_FALSE
722ENABLE_STATIC_BIN_TRUE
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL
761am__quote'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
765enable_static_bin
766enable_silent_rules
767enable_shared
768enable_static
769with_pic
770enable_fast_install
771with_aix_soname
772enable_dependency_tracking
773with_gnu_ld
774with_sysroot
775enable_libtool_lock
776enable_maintainer_mode
777enable_profiling
778with_sctp
779with_openssl
780'
781      ac_precious_vars='build_alias
782host_alias
783target_alias
784CC
785CFLAGS
786LDFLAGS
787LIBS
788CPPFLAGS
789LT_SYS_LIBRARY_PATH
790CPP'
791
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
796ac_unrecognized_opts=
797ac_unrecognized_sep=
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845  # If the previous option needs an argument, assign it.
846  if test -n "$ac_prev"; then
847    eval $ac_prev=\$ac_option
848    ac_prev=
849    continue
850  fi
851
852  case $ac_option in
853  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854  *=)   ac_optarg= ;;
855  *)    ac_optarg=yes ;;
856  esac
857
858  # Accept the important Cygnus configure options, so we can diagnose typos.
859
860  case $ac_dashdash$ac_option in
861  --)
862    ac_dashdash=yes ;;
863
864  -bindir | --bindir | --bindi | --bind | --bin | --bi)
865    ac_prev=bindir ;;
866  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867    bindir=$ac_optarg ;;
868
869  -build | --build | --buil | --bui | --bu)
870    ac_prev=build_alias ;;
871  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872    build_alias=$ac_optarg ;;
873
874  -cache-file | --cache-file | --cache-fil | --cache-fi \
875  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876    ac_prev=cache_file ;;
877  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879    cache_file=$ac_optarg ;;
880
881  --config-cache | -C)
882    cache_file=config.cache ;;
883
884  -datadir | --datadir | --datadi | --datad)
885    ac_prev=datadir ;;
886  -datadir=* | --datadir=* | --datadi=* | --datad=*)
887    datadir=$ac_optarg ;;
888
889  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890  | --dataroo | --dataro | --datar)
891    ac_prev=datarootdir ;;
892  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894    datarootdir=$ac_optarg ;;
895
896  -disable-* | --disable-*)
897    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898    # Reject names that are not valid shell variable names.
899    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900      as_fn_error $? "invalid feature name: $ac_useropt"
901    ac_useropt_orig=$ac_useropt
902    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903    case $ac_user_opts in
904      *"
905"enable_$ac_useropt"
906"*) ;;
907      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908	 ac_unrecognized_sep=', ';;
909    esac
910    eval enable_$ac_useropt=no ;;
911
912  -docdir | --docdir | --docdi | --doc | --do)
913    ac_prev=docdir ;;
914  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915    docdir=$ac_optarg ;;
916
917  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918    ac_prev=dvidir ;;
919  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920    dvidir=$ac_optarg ;;
921
922  -enable-* | --enable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: $ac_useropt"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=\$ac_optarg ;;
937
938  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940  | --exec | --exe | --ex)
941    ac_prev=exec_prefix ;;
942  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944  | --exec=* | --exe=* | --ex=*)
945    exec_prefix=$ac_optarg ;;
946
947  -gas | --gas | --ga | --g)
948    # Obsolete; use --with-gas.
949    with_gas=yes ;;
950
951  -help | --help | --hel | --he | -h)
952    ac_init_help=long ;;
953  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954    ac_init_help=recursive ;;
955  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956    ac_init_help=short ;;
957
958  -host | --host | --hos | --ho)
959    ac_prev=host_alias ;;
960  -host=* | --host=* | --hos=* | --ho=*)
961    host_alias=$ac_optarg ;;
962
963  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964    ac_prev=htmldir ;;
965  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966  | --ht=*)
967    htmldir=$ac_optarg ;;
968
969  -includedir | --includedir | --includedi | --included | --include \
970  | --includ | --inclu | --incl | --inc)
971    ac_prev=includedir ;;
972  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973  | --includ=* | --inclu=* | --incl=* | --inc=*)
974    includedir=$ac_optarg ;;
975
976  -infodir | --infodir | --infodi | --infod | --info | --inf)
977    ac_prev=infodir ;;
978  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979    infodir=$ac_optarg ;;
980
981  -libdir | --libdir | --libdi | --libd)
982    ac_prev=libdir ;;
983  -libdir=* | --libdir=* | --libdi=* | --libd=*)
984    libdir=$ac_optarg ;;
985
986  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987  | --libexe | --libex | --libe)
988    ac_prev=libexecdir ;;
989  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990  | --libexe=* | --libex=* | --libe=*)
991    libexecdir=$ac_optarg ;;
992
993  -localedir | --localedir | --localedi | --localed | --locale)
994    ac_prev=localedir ;;
995  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996    localedir=$ac_optarg ;;
997
998  -localstatedir | --localstatedir | --localstatedi | --localstated \
999  | --localstate | --localstat | --localsta | --localst | --locals)
1000    ac_prev=localstatedir ;;
1001  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003    localstatedir=$ac_optarg ;;
1004
1005  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006    ac_prev=mandir ;;
1007  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008    mandir=$ac_optarg ;;
1009
1010  -nfp | --nfp | --nf)
1011    # Obsolete; use --without-fp.
1012    with_fp=no ;;
1013
1014  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015  | --no-cr | --no-c | -n)
1016    no_create=yes ;;
1017
1018  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020    no_recursion=yes ;;
1021
1022  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024  | --oldin | --oldi | --old | --ol | --o)
1025    ac_prev=oldincludedir ;;
1026  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029    oldincludedir=$ac_optarg ;;
1030
1031  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032    ac_prev=prefix ;;
1033  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034    prefix=$ac_optarg ;;
1035
1036  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037  | --program-pre | --program-pr | --program-p)
1038    ac_prev=program_prefix ;;
1039  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041    program_prefix=$ac_optarg ;;
1042
1043  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044  | --program-suf | --program-su | --program-s)
1045    ac_prev=program_suffix ;;
1046  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048    program_suffix=$ac_optarg ;;
1049
1050  -program-transform-name | --program-transform-name \
1051  | --program-transform-nam | --program-transform-na \
1052  | --program-transform-n | --program-transform- \
1053  | --program-transform | --program-transfor \
1054  | --program-transfo | --program-transf \
1055  | --program-trans | --program-tran \
1056  | --progr-tra | --program-tr | --program-t)
1057    ac_prev=program_transform_name ;;
1058  -program-transform-name=* | --program-transform-name=* \
1059  | --program-transform-nam=* | --program-transform-na=* \
1060  | --program-transform-n=* | --program-transform-=* \
1061  | --program-transform=* | --program-transfor=* \
1062  | --program-transfo=* | --program-transf=* \
1063  | --program-trans=* | --program-tran=* \
1064  | --progr-tra=* | --program-tr=* | --program-t=*)
1065    program_transform_name=$ac_optarg ;;
1066
1067  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068    ac_prev=pdfdir ;;
1069  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070    pdfdir=$ac_optarg ;;
1071
1072  -psdir | --psdir | --psdi | --psd | --ps)
1073    ac_prev=psdir ;;
1074  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075    psdir=$ac_optarg ;;
1076
1077  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078  | -silent | --silent | --silen | --sile | --sil)
1079    silent=yes ;;
1080
1081  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082    ac_prev=sbindir ;;
1083  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084  | --sbi=* | --sb=*)
1085    sbindir=$ac_optarg ;;
1086
1087  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089  | --sharedst | --shareds | --shared | --share | --shar \
1090  | --sha | --sh)
1091    ac_prev=sharedstatedir ;;
1092  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095  | --sha=* | --sh=*)
1096    sharedstatedir=$ac_optarg ;;
1097
1098  -site | --site | --sit)
1099    ac_prev=site ;;
1100  -site=* | --site=* | --sit=*)
1101    site=$ac_optarg ;;
1102
1103  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104    ac_prev=srcdir ;;
1105  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106    srcdir=$ac_optarg ;;
1107
1108  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109  | --syscon | --sysco | --sysc | --sys | --sy)
1110    ac_prev=sysconfdir ;;
1111  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113    sysconfdir=$ac_optarg ;;
1114
1115  -target | --target | --targe | --targ | --tar | --ta | --t)
1116    ac_prev=target_alias ;;
1117  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118    target_alias=$ac_optarg ;;
1119
1120  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121    verbose=yes ;;
1122
1123  -version | --version | --versio | --versi | --vers | -V)
1124    ac_init_version=: ;;
1125
1126  -with-* | --with-*)
1127    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128    # Reject names that are not valid shell variable names.
1129    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130      as_fn_error $? "invalid package name: $ac_useropt"
1131    ac_useropt_orig=$ac_useropt
1132    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133    case $ac_user_opts in
1134      *"
1135"with_$ac_useropt"
1136"*) ;;
1137      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138	 ac_unrecognized_sep=', ';;
1139    esac
1140    eval with_$ac_useropt=\$ac_optarg ;;
1141
1142  -without-* | --without-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=no ;;
1157
1158  --x)
1159    # Obsolete; use --with-x.
1160    with_x=yes ;;
1161
1162  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163  | --x-incl | --x-inc | --x-in | --x-i)
1164    ac_prev=x_includes ;;
1165  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167    x_includes=$ac_optarg ;;
1168
1169  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171    ac_prev=x_libraries ;;
1172  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174    x_libraries=$ac_optarg ;;
1175
1176  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
1178    ;;
1179
1180  *=*)
1181    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182    # Reject names that are not valid shell variable names.
1183    case $ac_envvar in #(
1184      '' | [0-9]* | *[!_$as_cr_alnum]* )
1185      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186    esac
1187    eval $ac_envvar=\$ac_optarg
1188    export $ac_envvar ;;
1189
1190  *)
1191    # FIXME: should be removed in autoconf 3.0.
1192    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196    ;;
1197
1198  esac
1199done
1200
1201if test -n "$ac_prev"; then
1202  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203  as_fn_error $? "missing argument to $ac_option"
1204fi
1205
1206if test -n "$ac_unrecognized_opts"; then
1207  case $enable_option_checking in
1208    no) ;;
1209    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211  esac
1212fi
1213
1214# Check all directory arguments for consistency.
1215for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216		datadir sysconfdir sharedstatedir localstatedir includedir \
1217		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218		libdir localedir mandir
1219do
1220  eval ac_val=\$$ac_var
1221  # Remove trailing slashes.
1222  case $ac_val in
1223    */ )
1224      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225      eval $ac_var=\$ac_val;;
1226  esac
1227  # Be sure to have absolute directory names.
1228  case $ac_val in
1229    [\\/$]* | ?:[\\/]* )  continue;;
1230    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231  esac
1232  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244  if test "x$build_alias" = x; then
1245    cross_compiling=maybe
1246  elif test "x$build_alias" != "x$host_alias"; then
1247    cross_compiling=yes
1248  fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260  as_fn_error $? "working directory cannot be determined"
1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262  as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267  ac_srcdir_defaulted=yes
1268  # Try the directory containing this script, then the parent directory.
1269  ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271	 X"$as_myself" : 'X\(//\)[^/]' \| \
1272	 X"$as_myself" : 'X\(//\)$' \| \
1273	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
1275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)[^/].*/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)$/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\).*/{
1288	    s//\1/
1289	    q
1290	  }
1291	  s/.*/./; q'`
1292  srcdir=$ac_confdir
1293  if test ! -r "$srcdir/$ac_unique_file"; then
1294    srcdir=..
1295  fi
1296else
1297  ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
1305	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306	pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309  srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_env_${ac_var}_value=\$${ac_var}
1320  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328  # Omit some internal or obsolete options to make the list less imposing.
1329  # This message is too long to be a string in the A/UX 3.1 sh.
1330  cat <<_ACEOF
1331\`configure' configures iperf 3.9+ to adapt to many kinds of systems.
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341  -h, --help              display this help and exit
1342      --help=short        display options specific to this package
1343      --help=recursive    display the short help of all the included packages
1344  -V, --version           display version information and exit
1345  -q, --quiet, --silent   do not print \`checking ...' messages
1346      --cache-file=FILE   cache test results in FILE [disabled]
1347  -C, --config-cache      alias for \`--cache-file=config.cache'
1348  -n, --no-create         do not create output files
1349      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352  --prefix=PREFIX         install architecture-independent files in PREFIX
1353                          [$ac_default_prefix]
1354  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                          [PREFIX]
1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
1365  --bindir=DIR            user executables [EPREFIX/bin]
1366  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1367  --libexecdir=DIR        program executables [EPREFIX/libexec]
1368  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1369  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1370  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1371  --libdir=DIR            object code libraries [EPREFIX/lib]
1372  --includedir=DIR        C header files [PREFIX/include]
1373  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1374  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1375  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1376  --infodir=DIR           info documentation [DATAROOTDIR/info]
1377  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1378  --mandir=DIR            man documentation [DATAROOTDIR/man]
1379  --docdir=DIR            documentation root [DATAROOTDIR/doc/iperf]
1380  --htmldir=DIR           html documentation [DOCDIR]
1381  --dvidir=DIR            dvi documentation [DOCDIR]
1382  --pdfdir=DIR            pdf documentation [DOCDIR]
1383  --psdir=DIR             ps documentation [DOCDIR]
1384_ACEOF
1385
1386  cat <<\_ACEOF
1387
1388Program names:
1389  --program-prefix=PREFIX            prepend PREFIX to installed program names
1390  --program-suffix=SUFFIX            append SUFFIX to installed program names
1391  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1392
1393System types:
1394  --build=BUILD     configure for building on BUILD [guessed]
1395  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400  case $ac_init_help in
1401     short | recursive ) echo "Configuration of iperf 3.9+:";;
1402   esac
1403  cat <<\_ACEOF
1404
1405Optional Features:
1406  --disable-option-checking  ignore unrecognized --enable/--with options
1407  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409  --enable-static-bin     link iperf3 binary statically
1410  --enable-silent-rules   less verbose build output (undo: "make V=1")
1411  --disable-silent-rules  verbose build output (undo: "make V=0")
1412  --enable-shared[=PKGS]  build shared libraries [default=yes]
1413  --enable-static[=PKGS]  build static libraries [default=yes]
1414  --enable-fast-install[=PKGS]
1415                          optimize for fast installation [default=yes]
1416  --enable-dependency-tracking
1417                          do not reject slow dependency extractors
1418  --disable-dependency-tracking
1419                          speeds up one-time build
1420  --disable-libtool-lock  avoid locking (might break parallel builds)
1421  --enable-maintainer-mode
1422                          enable make rules and dependencies not useful (and
1423                          sometimes confusing) to the casual installer
1424  --enable-profiling      Enable iperf3 profiling binary
1425
1426Optional Packages:
1427  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1428  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1429  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1430                          both]
1431  --with-aix-soname=aix|svr4|both
1432                          shared library versioning (aka "SONAME") variant to
1433                          provide on AIX, [default=aix].
1434  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1435  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1436                          compiler's sysroot if not specified).
1437  --without-sctp          disable SCTP
1438  --with-openssl=DIR      root of the OpenSSL directory
1439
1440Some influential environment variables:
1441  CC          C compiler command
1442  CFLAGS      C compiler flags
1443  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1444              nonstandard directory <lib dir>
1445  LIBS        libraries to pass to the linker, e.g. -l<library>
1446  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447              you have headers in a nonstandard directory <include dir>
1448  LT_SYS_LIBRARY_PATH
1449              User-defined run-time library search path.
1450  CPP         C preprocessor
1451
1452Use these variables to override the choices made by `configure' or to help
1453it to find libraries and programs with nonstandard names/locations.
1454
1455Report bugs to <https://github.com/esnet/iperf>.
1456iperf home page: <https://software.es.net/iperf/>.
1457_ACEOF
1458ac_status=$?
1459fi
1460
1461if test "$ac_init_help" = "recursive"; then
1462  # If there are subdirs, report their specific --help.
1463  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464    test -d "$ac_dir" ||
1465      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466      continue
1467    ac_builddir=.
1468
1469case "$ac_dir" in
1470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471*)
1472  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473  # A ".." for each directory in $ac_dir_suffix.
1474  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475  case $ac_top_builddir_sub in
1476  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478  esac ;;
1479esac
1480ac_abs_top_builddir=$ac_pwd
1481ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482# for backward compatibility:
1483ac_top_builddir=$ac_top_build_prefix
1484
1485case $srcdir in
1486  .)  # We are building in place.
1487    ac_srcdir=.
1488    ac_top_srcdir=$ac_top_builddir_sub
1489    ac_abs_top_srcdir=$ac_pwd ;;
1490  [\\/]* | ?:[\\/]* )  # Absolute name.
1491    ac_srcdir=$srcdir$ac_dir_suffix;
1492    ac_top_srcdir=$srcdir
1493    ac_abs_top_srcdir=$srcdir ;;
1494  *) # Relative name.
1495    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496    ac_top_srcdir=$ac_top_build_prefix$srcdir
1497    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498esac
1499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501    cd "$ac_dir" || { ac_status=$?; continue; }
1502    # Check for guested configure.
1503    if test -f "$ac_srcdir/configure.gnu"; then
1504      echo &&
1505      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506    elif test -f "$ac_srcdir/configure"; then
1507      echo &&
1508      $SHELL "$ac_srcdir/configure" --help=recursive
1509    else
1510      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511    fi || ac_status=$?
1512    cd "$ac_pwd" || { ac_status=$?; break; }
1513  done
1514fi
1515
1516test -n "$ac_init_help" && exit $ac_status
1517if $ac_init_version; then
1518  cat <<\_ACEOF
1519iperf configure 3.9+
1520generated by GNU Autoconf 2.69
1521
1522Copyright (C) 2012 Free Software Foundation, Inc.
1523This configure script is free software; the Free Software Foundation
1524gives unlimited permission to copy, distribute and modify it.
1525_ACEOF
1526  exit
1527fi
1528
1529## ------------------------ ##
1530## Autoconf initialization. ##
1531## ------------------------ ##
1532
1533# ac_fn_c_try_compile LINENO
1534# --------------------------
1535# Try to compile conftest.$ac_ext, and return whether this succeeded.
1536ac_fn_c_try_compile ()
1537{
1538  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539  rm -f conftest.$ac_objext
1540  if { { ac_try="$ac_compile"
1541case "(($ac_try" in
1542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543  *) ac_try_echo=$ac_try;;
1544esac
1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546$as_echo "$ac_try_echo"; } >&5
1547  (eval "$ac_compile") 2>conftest.err
1548  ac_status=$?
1549  if test -s conftest.err; then
1550    grep -v '^ *+' conftest.err >conftest.er1
1551    cat conftest.er1 >&5
1552    mv -f conftest.er1 conftest.err
1553  fi
1554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555  test $ac_status = 0; } && {
1556	 test -z "$ac_c_werror_flag" ||
1557	 test ! -s conftest.err
1558       } && test -s conftest.$ac_objext; then :
1559  ac_retval=0
1560else
1561  $as_echo "$as_me: failed program was:" >&5
1562sed 's/^/| /' conftest.$ac_ext >&5
1563
1564	ac_retval=1
1565fi
1566  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567  as_fn_set_status $ac_retval
1568
1569} # ac_fn_c_try_compile
1570
1571# ac_fn_c_try_link LINENO
1572# -----------------------
1573# Try to link conftest.$ac_ext, and return whether this succeeded.
1574ac_fn_c_try_link ()
1575{
1576  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577  rm -f conftest.$ac_objext conftest$ac_exeext
1578  if { { ac_try="$ac_link"
1579case "(($ac_try" in
1580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581  *) ac_try_echo=$ac_try;;
1582esac
1583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584$as_echo "$ac_try_echo"; } >&5
1585  (eval "$ac_link") 2>conftest.err
1586  ac_status=$?
1587  if test -s conftest.err; then
1588    grep -v '^ *+' conftest.err >conftest.er1
1589    cat conftest.er1 >&5
1590    mv -f conftest.er1 conftest.err
1591  fi
1592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593  test $ac_status = 0; } && {
1594	 test -z "$ac_c_werror_flag" ||
1595	 test ! -s conftest.err
1596       } && test -s conftest$ac_exeext && {
1597	 test "$cross_compiling" = yes ||
1598	 test -x conftest$ac_exeext
1599       }; then :
1600  ac_retval=0
1601else
1602  $as_echo "$as_me: failed program was:" >&5
1603sed 's/^/| /' conftest.$ac_ext >&5
1604
1605	ac_retval=1
1606fi
1607  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609  # interfere with the next link command; also delete a directory that is
1610  # left behind by Apple's compiler.  We do this before executing the actions.
1611  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613  as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_link
1616
1617# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618# -------------------------------------------------------
1619# Tests whether HEADER exists and can be compiled using the include files in
1620# INCLUDES, setting the cache variable VAR accordingly.
1621ac_fn_c_check_header_compile ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625$as_echo_n "checking for $2... " >&6; }
1626if eval \${$3+:} false; then :
1627  $as_echo_n "(cached) " >&6
1628else
1629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630/* end confdefs.h.  */
1631$4
1632#include <$2>
1633_ACEOF
1634if ac_fn_c_try_compile "$LINENO"; then :
1635  eval "$3=yes"
1636else
1637  eval "$3=no"
1638fi
1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640fi
1641eval ac_res=\$$3
1642	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643$as_echo "$ac_res" >&6; }
1644  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646} # ac_fn_c_check_header_compile
1647
1648# ac_fn_c_try_cpp LINENO
1649# ----------------------
1650# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651ac_fn_c_try_cpp ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  if { { ac_try="$ac_cpp conftest.$ac_ext"
1655case "(($ac_try" in
1656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657  *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662  ac_status=$?
1663  if test -s conftest.err; then
1664    grep -v '^ *+' conftest.err >conftest.er1
1665    cat conftest.er1 >&5
1666    mv -f conftest.er1 conftest.err
1667  fi
1668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669  test $ac_status = 0; } > conftest.i && {
1670	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671	 test ! -s conftest.err
1672       }; then :
1673  ac_retval=0
1674else
1675  $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678    ac_retval=1
1679fi
1680  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681  as_fn_set_status $ac_retval
1682
1683} # ac_fn_c_try_cpp
1684
1685# ac_fn_c_try_run LINENO
1686# ----------------------
1687# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688# that executables *can* be run.
1689ac_fn_c_try_run ()
1690{
1691  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692  if { { ac_try="$ac_link"
1693case "(($ac_try" in
1694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695  *) ac_try_echo=$ac_try;;
1696esac
1697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698$as_echo "$ac_try_echo"; } >&5
1699  (eval "$ac_link") 2>&5
1700  ac_status=$?
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703  { { case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_try") 2>&5
1710  ac_status=$?
1711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712  test $ac_status = 0; }; }; then :
1713  ac_retval=0
1714else
1715  $as_echo "$as_me: program exited with status $ac_status" >&5
1716       $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719       ac_retval=$ac_status
1720fi
1721  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723  as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_run
1726
1727# ac_fn_c_check_func LINENO FUNC VAR
1728# ----------------------------------
1729# Tests whether FUNC exists, setting the cache variable VAR accordingly
1730ac_fn_c_check_func ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734$as_echo_n "checking for $2... " >&6; }
1735if eval \${$3+:} false; then :
1736  $as_echo_n "(cached) " >&6
1737else
1738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h.  */
1740/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1742#define $2 innocuous_$2
1743
1744/* System header to define __stub macros and hopefully few prototypes,
1745    which can conflict with char $2 (); below.
1746    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747    <limits.h> exists even on freestanding compilers.  */
1748
1749#ifdef __STDC__
1750# include <limits.h>
1751#else
1752# include <assert.h>
1753#endif
1754
1755#undef $2
1756
1757/* Override any GCC internal prototype to avoid an error.
1758   Use char because int might match the return type of a GCC
1759   builtin and then its argument prototype would still apply.  */
1760#ifdef __cplusplus
1761extern "C"
1762#endif
1763char $2 ();
1764/* The GNU C library defines this for functions which it implements
1765    to always fail with ENOSYS.  Some functions are actually named
1766    something starting with __ and the normal name is an alias.  */
1767#if defined __stub_$2 || defined __stub___$2
1768choke me
1769#endif
1770
1771int
1772main ()
1773{
1774return $2 ();
1775  ;
1776  return 0;
1777}
1778_ACEOF
1779if ac_fn_c_try_link "$LINENO"; then :
1780  eval "$3=yes"
1781else
1782  eval "$3=no"
1783fi
1784rm -f core conftest.err conftest.$ac_objext \
1785    conftest$ac_exeext conftest.$ac_ext
1786fi
1787eval ac_res=\$$3
1788	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789$as_echo "$ac_res" >&6; }
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792} # ac_fn_c_check_func
1793
1794# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795# -------------------------------------------------------
1796# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797# the include files in INCLUDES and setting the cache variable VAR
1798# accordingly.
1799ac_fn_c_check_header_mongrel ()
1800{
1801  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802  if eval \${$3+:} false; then :
1803  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804$as_echo_n "checking for $2... " >&6; }
1805if eval \${$3+:} false; then :
1806  $as_echo_n "(cached) " >&6
1807fi
1808eval ac_res=\$$3
1809	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811else
1812  # Is the header compilable?
1813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814$as_echo_n "checking $2 usability... " >&6; }
1815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h.  */
1817$4
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_compile "$LINENO"; then :
1821  ac_header_compiler=yes
1822else
1823  ac_header_compiler=no
1824fi
1825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827$as_echo "$ac_header_compiler" >&6; }
1828
1829# Is the header present?
1830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831$as_echo_n "checking $2 presence... " >&6; }
1832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833/* end confdefs.h.  */
1834#include <$2>
1835_ACEOF
1836if ac_fn_c_try_cpp "$LINENO"; then :
1837  ac_header_preproc=yes
1838else
1839  ac_header_preproc=no
1840fi
1841rm -f conftest.err conftest.i conftest.$ac_ext
1842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843$as_echo "$ac_header_preproc" >&6; }
1844
1845# So?  What about this header?
1846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847  yes:no: )
1848    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852    ;;
1853  no:yes:* )
1854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1857$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1858    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1861$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1862    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864( $as_echo "## --------------------------------------------- ##
1865## Report this to https://github.com/esnet/iperf ##
1866## --------------------------------------------- ##"
1867     ) | sed "s/^/$as_me: WARNING:     /" >&2
1868    ;;
1869esac
1870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871$as_echo_n "checking for $2... " >&6; }
1872if eval \${$3+:} false; then :
1873  $as_echo_n "(cached) " >&6
1874else
1875  eval "$3=\$ac_header_compiler"
1876fi
1877eval ac_res=\$$3
1878	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879$as_echo "$ac_res" >&6; }
1880fi
1881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883} # ac_fn_c_check_header_mongrel
1884cat >config.log <<_ACEOF
1885This file contains any messages produced by compilers while
1886running configure, to aid debugging if configure makes a mistake.
1887
1888It was created by iperf $as_me 3.9+, which was
1889generated by GNU Autoconf 2.69.  Invocation command line was
1890
1891  $ $0 $@
1892
1893_ACEOF
1894exec 5>>config.log
1895{
1896cat <<_ASUNAME
1897## --------- ##
1898## Platform. ##
1899## --------- ##
1900
1901hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1902uname -m = `(uname -m) 2>/dev/null || echo unknown`
1903uname -r = `(uname -r) 2>/dev/null || echo unknown`
1904uname -s = `(uname -s) 2>/dev/null || echo unknown`
1905uname -v = `(uname -v) 2>/dev/null || echo unknown`
1906
1907/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1908/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1909
1910/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1911/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1912/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1913/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1914/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1915/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1916/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1917
1918_ASUNAME
1919
1920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921for as_dir in $PATH
1922do
1923  IFS=$as_save_IFS
1924  test -z "$as_dir" && as_dir=.
1925    $as_echo "PATH: $as_dir"
1926  done
1927IFS=$as_save_IFS
1928
1929} >&5
1930
1931cat >&5 <<_ACEOF
1932
1933
1934## ----------- ##
1935## Core tests. ##
1936## ----------- ##
1937
1938_ACEOF
1939
1940
1941# Keep a trace of the command line.
1942# Strip out --no-create and --no-recursion so they do not pile up.
1943# Strip out --silent because we don't want to record it for future runs.
1944# Also quote any args containing shell meta-characters.
1945# Make two passes to allow for proper duplicate-argument suppression.
1946ac_configure_args=
1947ac_configure_args0=
1948ac_configure_args1=
1949ac_must_keep_next=false
1950for ac_pass in 1 2
1951do
1952  for ac_arg
1953  do
1954    case $ac_arg in
1955    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1956    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1957    | -silent | --silent | --silen | --sile | --sil)
1958      continue ;;
1959    *\'*)
1960      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1961    esac
1962    case $ac_pass in
1963    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1964    2)
1965      as_fn_append ac_configure_args1 " '$ac_arg'"
1966      if test $ac_must_keep_next = true; then
1967	ac_must_keep_next=false # Got value, back to normal.
1968      else
1969	case $ac_arg in
1970	  *=* | --config-cache | -C | -disable-* | --disable-* \
1971	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1972	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1973	  | -with-* | --with-* | -without-* | --without-* | --x)
1974	    case "$ac_configure_args0 " in
1975	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1976	    esac
1977	    ;;
1978	  -* ) ac_must_keep_next=true ;;
1979	esac
1980      fi
1981      as_fn_append ac_configure_args " '$ac_arg'"
1982      ;;
1983    esac
1984  done
1985done
1986{ ac_configure_args0=; unset ac_configure_args0;}
1987{ ac_configure_args1=; unset ac_configure_args1;}
1988
1989# When interrupted or exit'd, cleanup temporary files, and complete
1990# config.log.  We remove comments because anyway the quotes in there
1991# would cause problems or look ugly.
1992# WARNING: Use '\'' to represent an apostrophe within the trap.
1993# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1994trap 'exit_status=$?
1995  # Save into config.log some information that might help in debugging.
1996  {
1997    echo
1998
1999    $as_echo "## ---------------- ##
2000## Cache variables. ##
2001## ---------------- ##"
2002    echo
2003    # The following way of writing the cache mishandles newlines in values,
2004(
2005  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006    eval ac_val=\$$ac_var
2007    case $ac_val in #(
2008    *${as_nl}*)
2009      case $ac_var in #(
2010      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2012      esac
2013      case $ac_var in #(
2014      _ | IFS | as_nl) ;; #(
2015      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016      *) { eval $ac_var=; unset $ac_var;} ;;
2017      esac ;;
2018    esac
2019  done
2020  (set) 2>&1 |
2021    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022    *${as_nl}ac_space=\ *)
2023      sed -n \
2024	"s/'\''/'\''\\\\'\'''\''/g;
2025	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2026      ;; #(
2027    *)
2028      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029      ;;
2030    esac |
2031    sort
2032)
2033    echo
2034
2035    $as_echo "## ----------------- ##
2036## Output variables. ##
2037## ----------------- ##"
2038    echo
2039    for ac_var in $ac_subst_vars
2040    do
2041      eval ac_val=\$$ac_var
2042      case $ac_val in
2043      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044      esac
2045      $as_echo "$ac_var='\''$ac_val'\''"
2046    done | sort
2047    echo
2048
2049    if test -n "$ac_subst_files"; then
2050      $as_echo "## ------------------- ##
2051## File substitutions. ##
2052## ------------------- ##"
2053      echo
2054      for ac_var in $ac_subst_files
2055      do
2056	eval ac_val=\$$ac_var
2057	case $ac_val in
2058	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059	esac
2060	$as_echo "$ac_var='\''$ac_val'\''"
2061      done | sort
2062      echo
2063    fi
2064
2065    if test -s confdefs.h; then
2066      $as_echo "## ----------- ##
2067## confdefs.h. ##
2068## ----------- ##"
2069      echo
2070      cat confdefs.h
2071      echo
2072    fi
2073    test "$ac_signal" != 0 &&
2074      $as_echo "$as_me: caught signal $ac_signal"
2075    $as_echo "$as_me: exit $exit_status"
2076  } >&5
2077  rm -f core *.core core.conftest.* &&
2078    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2079    exit $exit_status
2080' 0
2081for ac_signal in 1 2 13 15; do
2082  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2083done
2084ac_signal=0
2085
2086# confdefs.h avoids OS command line length limits that DEFS can exceed.
2087rm -f -r conftest* confdefs.h
2088
2089$as_echo "/* confdefs.h */" > confdefs.h
2090
2091# Predefined preprocessor variables.
2092
2093cat >>confdefs.h <<_ACEOF
2094#define PACKAGE_NAME "$PACKAGE_NAME"
2095_ACEOF
2096
2097cat >>confdefs.h <<_ACEOF
2098#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2099_ACEOF
2100
2101cat >>confdefs.h <<_ACEOF
2102#define PACKAGE_VERSION "$PACKAGE_VERSION"
2103_ACEOF
2104
2105cat >>confdefs.h <<_ACEOF
2106#define PACKAGE_STRING "$PACKAGE_STRING"
2107_ACEOF
2108
2109cat >>confdefs.h <<_ACEOF
2110#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2111_ACEOF
2112
2113cat >>confdefs.h <<_ACEOF
2114#define PACKAGE_URL "$PACKAGE_URL"
2115_ACEOF
2116
2117
2118# Let the site file select an alternate cache file if it wants to.
2119# Prefer an explicitly selected file to automatically selected ones.
2120ac_site_file1=NONE
2121ac_site_file2=NONE
2122if test -n "$CONFIG_SITE"; then
2123  # We do not want a PATH search for config.site.
2124  case $CONFIG_SITE in #((
2125    -*)  ac_site_file1=./$CONFIG_SITE;;
2126    */*) ac_site_file1=$CONFIG_SITE;;
2127    *)   ac_site_file1=./$CONFIG_SITE;;
2128  esac
2129elif test "x$prefix" != xNONE; then
2130  ac_site_file1=$prefix/share/config.site
2131  ac_site_file2=$prefix/etc/config.site
2132else
2133  ac_site_file1=$ac_default_prefix/share/config.site
2134  ac_site_file2=$ac_default_prefix/etc/config.site
2135fi
2136for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2137do
2138  test "x$ac_site_file" = xNONE && continue
2139  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2140    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2142    sed 's/^/| /' "$ac_site_file" >&5
2143    . "$ac_site_file" \
2144      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2146as_fn_error $? "failed to load site script $ac_site_file
2147See \`config.log' for more details" "$LINENO" 5; }
2148  fi
2149done
2150
2151if test -r "$cache_file"; then
2152  # Some versions of bash will fail to source /dev/null (special files
2153  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2154  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2155    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2156$as_echo "$as_me: loading cache $cache_file" >&6;}
2157    case $cache_file in
2158      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2159      *)                      . "./$cache_file";;
2160    esac
2161  fi
2162else
2163  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2164$as_echo "$as_me: creating cache $cache_file" >&6;}
2165  >$cache_file
2166fi
2167
2168# Check that the precious variables saved in the cache have kept the same
2169# value.
2170ac_cache_corrupted=false
2171for ac_var in $ac_precious_vars; do
2172  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2173  eval ac_new_set=\$ac_env_${ac_var}_set
2174  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2175  eval ac_new_val=\$ac_env_${ac_var}_value
2176  case $ac_old_set,$ac_new_set in
2177    set,)
2178      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2179$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2180      ac_cache_corrupted=: ;;
2181    ,set)
2182      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2183$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2184      ac_cache_corrupted=: ;;
2185    ,);;
2186    *)
2187      if test "x$ac_old_val" != "x$ac_new_val"; then
2188	# differences in whitespace do not lead to failure.
2189	ac_old_val_w=`echo x $ac_old_val`
2190	ac_new_val_w=`echo x $ac_new_val`
2191	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2192	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2193$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2194	  ac_cache_corrupted=:
2195	else
2196	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2197$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2198	  eval $ac_var=\$ac_old_val
2199	fi
2200	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2201$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2202	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2203$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2204      fi;;
2205  esac
2206  # Pass precious variables to config.status.
2207  if test "$ac_new_set" = set; then
2208    case $ac_new_val in
2209    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2210    *) ac_arg=$ac_var=$ac_new_val ;;
2211    esac
2212    case " $ac_configure_args " in
2213      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2214      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2215    esac
2216  fi
2217done
2218if $ac_cache_corrupted; then
2219  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2221  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2222$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2223  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2224fi
2225## -------------------- ##
2226## Main body of script. ##
2227## -------------------- ##
2228
2229ac_ext=c
2230ac_cpp='$CPP $CPPFLAGS'
2231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
2235
2236# ===========================================================================
2237#     https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
2238# ===========================================================================
2239#
2240# SYNOPSIS
2241#
2242#   AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
2243#
2244# DESCRIPTION
2245#
2246#   Look for OpenSSL in a number of default spots, or in a user-selected
2247#   spot (via --with-openssl).  Sets
2248#
2249#     OPENSSL_INCLUDES to the include directives required
2250#     OPENSSL_LIBS to the -l directives required
2251#     OPENSSL_LDFLAGS to the -L or -R flags required
2252#
2253#   and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
2254#
2255#   This macro sets OPENSSL_INCLUDES such that source files should use the
2256#   openssl/ directory in include directives:
2257#
2258#     #include <openssl/hmac.h>
2259#
2260# LICENSE
2261#
2262#   Copyright (c) 2009,2010 Zmanda Inc. <http://www.zmanda.com/>
2263#   Copyright (c) 2009,2010 Dustin J. Mitchell <[email protected]>
2264#
2265#   Copying and distribution of this file, with or without modification, are
2266#   permitted in any medium without royalty provided the copyright notice
2267#   and this notice are preserved. This file is offered as-is, without any
2268#   warranty.
2269
2270#serial 10
2271
2272# This is what autoupdate's m4 run will expand.  It fires
2273# the warning (with _au_warn_XXX), outputs it into the
2274# updated configure.ac (with AC_DIAGNOSE), and then outputs
2275# the replacement expansion.
2276
2277
2278# This is an auxiliary macro that is also run when
2279# autoupdate runs m4.  It simply calls m4_warning, but
2280# we need a wrapper so that each warning is emitted only
2281# once.  We break the quoting in m4_warning's argument in
2282# order to expand this macro's arguments, not AU_DEFUN's.
2283
2284
2285# Finally, this is the expansion that is picked up by
2286# autoconf.  It tells the user to run autoupdate, and
2287# then outputs the replacement expansion.  We do not care
2288# about autoupdate's warning because that contains
2289# information on what to do *after* running autoupdate.
2290
2291
2292
2293# Also link binaries as static
2294# Check whether --enable-static-bin was given.
2295if test "${enable_static_bin+set}" = set; then :
2296  enableval=$enable_static_bin; enable_static=yes
2297     enable_shared=no
2298     enable_static_bin=yes
2299else
2300  :
2301fi
2302
2303 if test x$enable_static_bin = xno; then
2304  ENABLE_STATIC_BIN_TRUE=
2305  ENABLE_STATIC_BIN_FALSE='#'
2306else
2307  ENABLE_STATIC_BIN_TRUE='#'
2308  ENABLE_STATIC_BIN_FALSE=
2309fi
2310
2311
2312if test "x$enable_static_bin" == xyes; then :
2313  LDFLAGS="$LDFLAGS --static"
2314
2315fi
2316
2317ac_ext=c
2318ac_cpp='$CPP $CPPFLAGS'
2319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2323
2324# Specify where the auxiliary files created by configure should go. The config
2325# directory is picked so that they don't clutter up more useful directories.
2326ac_aux_dir=
2327for ac_dir in config "$srcdir"/config; do
2328  if test -f "$ac_dir/install-sh"; then
2329    ac_aux_dir=$ac_dir
2330    ac_install_sh="$ac_aux_dir/install-sh -c"
2331    break
2332  elif test -f "$ac_dir/install.sh"; then
2333    ac_aux_dir=$ac_dir
2334    ac_install_sh="$ac_aux_dir/install.sh -c"
2335    break
2336  elif test -f "$ac_dir/shtool"; then
2337    ac_aux_dir=$ac_dir
2338    ac_install_sh="$ac_aux_dir/shtool install -c"
2339    break
2340  fi
2341done
2342if test -z "$ac_aux_dir"; then
2343  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2344fi
2345
2346# These three variables are undocumented and unsupported,
2347# and are intended to be withdrawn in a future Autoconf release.
2348# They can cause serious problems if a builder's source tree is in a directory
2349# whose full name contains unusual characters.
2350ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2351ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2352ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2353
2354
2355
2356
2357# Initialize the automake system
2358am__api_version='1.16'
2359
2360# Find a good install program.  We prefer a C program (faster),
2361# so one script is as good as another.  But avoid the broken or
2362# incompatible versions:
2363# SysV /etc/install, /usr/sbin/install
2364# SunOS /usr/etc/install
2365# IRIX /sbin/install
2366# AIX /bin/install
2367# AmigaOS /C/install, which installs bootblocks on floppy discs
2368# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2369# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2370# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2371# OS/2's system install, which has a completely different semantic
2372# ./install, which can be erroneously created by make from ./install.sh.
2373# Reject install programs that cannot install multiple files.
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2375$as_echo_n "checking for a BSD-compatible install... " >&6; }
2376if test -z "$INSTALL"; then
2377if ${ac_cv_path_install+:} false; then :
2378  $as_echo_n "(cached) " >&6
2379else
2380  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381for as_dir in $PATH
2382do
2383  IFS=$as_save_IFS
2384  test -z "$as_dir" && as_dir=.
2385    # Account for people who put trailing slashes in PATH elements.
2386case $as_dir/ in #((
2387  ./ | .// | /[cC]/* | \
2388  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2389  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2390  /usr/ucb/* ) ;;
2391  *)
2392    # OSF1 and SCO ODT 3.0 have their own names for install.
2393    # Don't use installbsd from OSF since it installs stuff as root
2394    # by default.
2395    for ac_prog in ginstall scoinst install; do
2396      for ac_exec_ext in '' $ac_executable_extensions; do
2397	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2398	  if test $ac_prog = install &&
2399	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400	    # AIX install.  It has an incompatible calling convention.
2401	    :
2402	  elif test $ac_prog = install &&
2403	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404	    # program-specific install script used by HP pwplus--don't use.
2405	    :
2406	  else
2407	    rm -rf conftest.one conftest.two conftest.dir
2408	    echo one > conftest.one
2409	    echo two > conftest.two
2410	    mkdir conftest.dir
2411	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2412	      test -s conftest.one && test -s conftest.two &&
2413	      test -s conftest.dir/conftest.one &&
2414	      test -s conftest.dir/conftest.two
2415	    then
2416	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2417	      break 3
2418	    fi
2419	  fi
2420	fi
2421      done
2422    done
2423    ;;
2424esac
2425
2426  done
2427IFS=$as_save_IFS
2428
2429rm -rf conftest.one conftest.two conftest.dir
2430
2431fi
2432  if test "${ac_cv_path_install+set}" = set; then
2433    INSTALL=$ac_cv_path_install
2434  else
2435    # As a last resort, use the slow shell script.  Don't cache a
2436    # value for INSTALL within a source directory, because that will
2437    # break other packages using the cache if that directory is
2438    # removed, or if the value is a relative name.
2439    INSTALL=$ac_install_sh
2440  fi
2441fi
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2443$as_echo "$INSTALL" >&6; }
2444
2445# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2446# It thinks the first close brace ends the variable substitution.
2447test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2448
2449test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2450
2451test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2452
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2454$as_echo_n "checking whether build environment is sane... " >&6; }
2455# Reject unsafe characters in $srcdir or the absolute working directory
2456# name.  Accept space and tab only in the latter.
2457am_lf='
2458'
2459case `pwd` in
2460  *[\\\"\#\$\&\'\`$am_lf]*)
2461    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2462esac
2463case $srcdir in
2464  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2465    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2466esac
2467
2468# Do 'set' in a subshell so we don't clobber the current shell's
2469# arguments.  Must try -L first in case configure is actually a
2470# symlink; some systems play weird games with the mod time of symlinks
2471# (eg FreeBSD returns the mod time of the symlink's containing
2472# directory).
2473if (
2474   am_has_slept=no
2475   for am_try in 1 2; do
2476     echo "timestamp, slept: $am_has_slept" > conftest.file
2477     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2478     if test "$*" = "X"; then
2479	# -L didn't work.
2480	set X `ls -t "$srcdir/configure" conftest.file`
2481     fi
2482     if test "$*" != "X $srcdir/configure conftest.file" \
2483	&& test "$*" != "X conftest.file $srcdir/configure"; then
2484
2485	# If neither matched, then we have a broken ls.  This can happen
2486	# if, for instance, CONFIG_SHELL is bash and it inherits a
2487	# broken ls alias from the environment.  This has actually
2488	# happened.  Such a system could not be considered "sane".
2489	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2490  alias in your environment" "$LINENO" 5
2491     fi
2492     if test "$2" = conftest.file || test $am_try -eq 2; then
2493       break
2494     fi
2495     # Just in case.
2496     sleep 1
2497     am_has_slept=yes
2498   done
2499   test "$2" = conftest.file
2500   )
2501then
2502   # Ok.
2503   :
2504else
2505   as_fn_error $? "newly created file is older than distributed files!
2506Check your system clock" "$LINENO" 5
2507fi
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2509$as_echo "yes" >&6; }
2510# If we didn't sleep, we still need to ensure time stamps of config.status and
2511# generated files are strictly newer.
2512am_sleep_pid=
2513if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2514  ( sleep 1 ) &
2515  am_sleep_pid=$!
2516fi
2517
2518rm -f conftest.file
2519
2520test "$program_prefix" != NONE &&
2521  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2522# Use a double $ so make ignores it.
2523test "$program_suffix" != NONE &&
2524  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2525# Double any \ or $.
2526# By default was `s,x,x', remove it if useless.
2527ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2529
2530# Expand $ac_aux_dir to an absolute path.
2531am_aux_dir=`cd "$ac_aux_dir" && pwd`
2532
2533if test x"${MISSING+set}" != xset; then
2534  MISSING="\${SHELL} '$am_aux_dir/missing'"
2535fi
2536# Use eval to expand $SHELL
2537if eval "$MISSING --is-lightweight"; then
2538  am_missing_run="$MISSING "
2539else
2540  am_missing_run=
2541  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2542$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2543fi
2544
2545if test x"${install_sh+set}" != xset; then
2546  case $am_aux_dir in
2547  *\ * | *\	*)
2548    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2549  *)
2550    install_sh="\${SHELL} $am_aux_dir/install-sh"
2551  esac
2552fi
2553
2554# Installed binaries are usually stripped using 'strip' when the user
2555# run "make install-strip".  However 'strip' might not be the right
2556# tool to use in cross-compilation environments, therefore Automake
2557# will honor the 'STRIP' environment variable to overrule this program.
2558if test "$cross_compiling" != no; then
2559  if test -n "$ac_tool_prefix"; then
2560  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2561set dummy ${ac_tool_prefix}strip; ac_word=$2
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563$as_echo_n "checking for $ac_word... " >&6; }
2564if ${ac_cv_prog_STRIP+:} false; then :
2565  $as_echo_n "(cached) " >&6
2566else
2567  if test -n "$STRIP"; then
2568  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2569else
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573  IFS=$as_save_IFS
2574  test -z "$as_dir" && as_dir=.
2575    for ac_exec_ext in '' $ac_executable_extensions; do
2576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2577    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579    break 2
2580  fi
2581done
2582  done
2583IFS=$as_save_IFS
2584
2585fi
2586fi
2587STRIP=$ac_cv_prog_STRIP
2588if test -n "$STRIP"; then
2589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2590$as_echo "$STRIP" >&6; }
2591else
2592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593$as_echo "no" >&6; }
2594fi
2595
2596
2597fi
2598if test -z "$ac_cv_prog_STRIP"; then
2599  ac_ct_STRIP=$STRIP
2600  # Extract the first word of "strip", so it can be a program name with args.
2601set dummy strip; ac_word=$2
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603$as_echo_n "checking for $ac_word... " >&6; }
2604if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2605  $as_echo_n "(cached) " >&6
2606else
2607  if test -n "$ac_ct_STRIP"; then
2608  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613  IFS=$as_save_IFS
2614  test -z "$as_dir" && as_dir=.
2615    for ac_exec_ext in '' $ac_executable_extensions; do
2616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617    ac_cv_prog_ac_ct_STRIP="strip"
2618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619    break 2
2620  fi
2621done
2622  done
2623IFS=$as_save_IFS
2624
2625fi
2626fi
2627ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2628if test -n "$ac_ct_STRIP"; then
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2630$as_echo "$ac_ct_STRIP" >&6; }
2631else
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633$as_echo "no" >&6; }
2634fi
2635
2636  if test "x$ac_ct_STRIP" = x; then
2637    STRIP=":"
2638  else
2639    case $cross_compiling:$ac_tool_warned in
2640yes:)
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643ac_tool_warned=yes ;;
2644esac
2645    STRIP=$ac_ct_STRIP
2646  fi
2647else
2648  STRIP="$ac_cv_prog_STRIP"
2649fi
2650
2651fi
2652INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2653
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2655$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2656if test -z "$MKDIR_P"; then
2657  if ${ac_cv_path_mkdir+:} false; then :
2658  $as_echo_n "(cached) " >&6
2659else
2660  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2662do
2663  IFS=$as_save_IFS
2664  test -z "$as_dir" && as_dir=.
2665    for ac_prog in mkdir gmkdir; do
2666	 for ac_exec_ext in '' $ac_executable_extensions; do
2667	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2668	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2669	     'mkdir (GNU coreutils) '* | \
2670	     'mkdir (coreutils) '* | \
2671	     'mkdir (fileutils) '4.1*)
2672	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2673	       break 3;;
2674	   esac
2675	 done
2676       done
2677  done
2678IFS=$as_save_IFS
2679
2680fi
2681
2682  test -d ./--version && rmdir ./--version
2683  if test "${ac_cv_path_mkdir+set}" = set; then
2684    MKDIR_P="$ac_cv_path_mkdir -p"
2685  else
2686    # As a last resort, use the slow shell script.  Don't cache a
2687    # value for MKDIR_P within a source directory, because that will
2688    # break other packages using the cache if that directory is
2689    # removed, or if the value is a relative name.
2690    MKDIR_P="$ac_install_sh -d"
2691  fi
2692fi
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2694$as_echo "$MKDIR_P" >&6; }
2695
2696for ac_prog in gawk mawk nawk awk
2697do
2698  # Extract the first word of "$ac_prog", so it can be a program name with args.
2699set dummy $ac_prog; ac_word=$2
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701$as_echo_n "checking for $ac_word... " >&6; }
2702if ${ac_cv_prog_AWK+:} false; then :
2703  $as_echo_n "(cached) " >&6
2704else
2705  if test -n "$AWK"; then
2706  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2707else
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711  IFS=$as_save_IFS
2712  test -z "$as_dir" && as_dir=.
2713    for ac_exec_ext in '' $ac_executable_extensions; do
2714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715    ac_cv_prog_AWK="$ac_prog"
2716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717    break 2
2718  fi
2719done
2720  done
2721IFS=$as_save_IFS
2722
2723fi
2724fi
2725AWK=$ac_cv_prog_AWK
2726if test -n "$AWK"; then
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2728$as_echo "$AWK" >&6; }
2729else
2730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731$as_echo "no" >&6; }
2732fi
2733
2734
2735  test -n "$AWK" && break
2736done
2737
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2739$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2740set x ${MAKE-make}
2741ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2742if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2743  $as_echo_n "(cached) " >&6
2744else
2745  cat >conftest.make <<\_ACEOF
2746SHELL = /bin/sh
2747all:
2748	@echo '@@@%%%=$(MAKE)=@@@%%%'
2749_ACEOF
2750# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2751case `${MAKE-make} -f conftest.make 2>/dev/null` in
2752  *@@@%%%=?*=@@@%%%*)
2753    eval ac_cv_prog_make_${ac_make}_set=yes;;
2754  *)
2755    eval ac_cv_prog_make_${ac_make}_set=no;;
2756esac
2757rm -f conftest.make
2758fi
2759if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761$as_echo "yes" >&6; }
2762  SET_MAKE=
2763else
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
2766  SET_MAKE="MAKE=${MAKE-make}"
2767fi
2768
2769rm -rf .tst 2>/dev/null
2770mkdir .tst 2>/dev/null
2771if test -d .tst; then
2772  am__leading_dot=.
2773else
2774  am__leading_dot=_
2775fi
2776rmdir .tst 2>/dev/null
2777
2778# Check whether --enable-silent-rules was given.
2779if test "${enable_silent_rules+set}" = set; then :
2780  enableval=$enable_silent_rules;
2781fi
2782
2783case $enable_silent_rules in # (((
2784  yes) AM_DEFAULT_VERBOSITY=0;;
2785   no) AM_DEFAULT_VERBOSITY=1;;
2786    *) AM_DEFAULT_VERBOSITY=1;;
2787esac
2788am_make=${MAKE-make}
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2790$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2791if ${am_cv_make_support_nested_variables+:} false; then :
2792  $as_echo_n "(cached) " >&6
2793else
2794  if $as_echo 'TRUE=$(BAR$(V))
2795BAR0=false
2796BAR1=true
2797V=1
2798am__doit:
2799	@$(TRUE)
2800.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2801  am_cv_make_support_nested_variables=yes
2802else
2803  am_cv_make_support_nested_variables=no
2804fi
2805fi
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2807$as_echo "$am_cv_make_support_nested_variables" >&6; }
2808if test $am_cv_make_support_nested_variables = yes; then
2809    AM_V='$(V)'
2810  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2811else
2812  AM_V=$AM_DEFAULT_VERBOSITY
2813  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2814fi
2815AM_BACKSLASH='\'
2816
2817if test "`cd $srcdir && pwd`" != "`pwd`"; then
2818  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2819  # is not polluted with repeated "-I."
2820  am__isrc=' -I$(srcdir)'
2821  # test to see if srcdir already configured
2822  if test -f $srcdir/config.status; then
2823    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2824  fi
2825fi
2826
2827# test whether we have cygpath
2828if test -z "$CYGPATH_W"; then
2829  if (cygpath --version) >/dev/null 2>/dev/null; then
2830    CYGPATH_W='cygpath -w'
2831  else
2832    CYGPATH_W=echo
2833  fi
2834fi
2835
2836
2837# Define the identity of the package.
2838 PACKAGE='iperf'
2839 VERSION='3.9+'
2840
2841
2842cat >>confdefs.h <<_ACEOF
2843#define PACKAGE "$PACKAGE"
2844_ACEOF
2845
2846
2847cat >>confdefs.h <<_ACEOF
2848#define VERSION "$VERSION"
2849_ACEOF
2850
2851# Some tools Automake needs.
2852
2853ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2854
2855
2856AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2857
2858
2859AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2860
2861
2862AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2863
2864
2865MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2866
2867# For better backward compatibility.  To be removed once Automake 1.9.x
2868# dies out for good.  For more background, see:
2869# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2870# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2871mkdir_p='$(MKDIR_P)'
2872
2873# We need awk for the "check" target (and possibly the TAP driver).  The
2874# system "awk" is bad on some platforms.
2875# Always define AMTAR for backward compatibility.  Yes, it's still used
2876# in the wild :-(  We should find a proper way to deprecate it ...
2877AMTAR='$${TAR-tar}'
2878
2879
2880# We'll loop over all known methods to create a tar archive until one works.
2881_am_tools='gnutar  pax cpio none'
2882
2883am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2884
2885
2886
2887
2888
2889
2890# POSIX will say in a future version that running "rm -f" with no argument
2891# is OK; and we want to be able to make that assumption in our Makefile
2892# recipes.  So use an aggressive probe to check that the usage we want is
2893# actually supported "in the wild" to an acceptable degree.
2894# See automake bug#10828.
2895# To make any issue more visible, cause the running configure to be aborted
2896# by default if the 'rm' program in use doesn't match our expectations; the
2897# user can still override this though.
2898if rm -f && rm -fr && rm -rf; then : OK; else
2899  cat >&2 <<'END'
2900Oops!
2901
2902Your 'rm' program seems unable to run without file operands specified
2903on the command line, even when the '-f' option is present.  This is contrary
2904to the behaviour of most rm programs out there, and not conforming with
2905the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2906
2907Please tell bug-automake@gnu.org about your system, including the value
2908of your $PATH and any error possibly output before this message.  This
2909can help us improve future automake versions.
2910
2911END
2912  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2913    echo 'Configuration will proceed anyway, since you have set the' >&2
2914    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2915    echo >&2
2916  else
2917    cat >&2 <<'END'
2918Aborting the configuration process, to ensure you take notice of the issue.
2919
2920You can download and install GNU coreutils to get an 'rm' implementation
2921that behaves properly: <https://www.gnu.org/software/coreutils/>.
2922
2923If you want to complete the configuration process using your problematic
2924'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2925to "yes", and re-run configure.
2926
2927END
2928    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2929  fi
2930fi
2931
2932# Check whether --enable-silent-rules was given.
2933if test "${enable_silent_rules+set}" = set; then :
2934  enableval=$enable_silent_rules;
2935fi
2936
2937case $enable_silent_rules in # (((
2938  yes) AM_DEFAULT_VERBOSITY=0;;
2939   no) AM_DEFAULT_VERBOSITY=1;;
2940    *) AM_DEFAULT_VERBOSITY=0;;
2941esac
2942am_make=${MAKE-make}
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2944$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2945if ${am_cv_make_support_nested_variables+:} false; then :
2946  $as_echo_n "(cached) " >&6
2947else
2948  if $as_echo 'TRUE=$(BAR$(V))
2949BAR0=false
2950BAR1=true
2951V=1
2952am__doit:
2953	@$(TRUE)
2954.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2955  am_cv_make_support_nested_variables=yes
2956else
2957  am_cv_make_support_nested_variables=no
2958fi
2959fi
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2961$as_echo "$am_cv_make_support_nested_variables" >&6; }
2962if test $am_cv_make_support_nested_variables = yes; then
2963    AM_V='$(V)'
2964  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2965else
2966  AM_V=$AM_DEFAULT_VERBOSITY
2967  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2968fi
2969AM_BACKSLASH='\'
2970
2971case `pwd` in
2972  *\ * | *\	*)
2973    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2974$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2975esac
2976
2977
2978
2979macro_version='2.4.6'
2980macro_revision='2.4.6'
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994ltmain=$ac_aux_dir/ltmain.sh
2995
2996# Make sure we can run config.sub.
2997$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2998  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2999
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3001$as_echo_n "checking build system type... " >&6; }
3002if ${ac_cv_build+:} false; then :
3003  $as_echo_n "(cached) " >&6
3004else
3005  ac_build_alias=$build_alias
3006test "x$ac_build_alias" = x &&
3007  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3008test "x$ac_build_alias" = x &&
3009  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3010ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3011  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3012
3013fi
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3015$as_echo "$ac_cv_build" >&6; }
3016case $ac_cv_build in
3017*-*-*) ;;
3018*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3019esac
3020build=$ac_cv_build
3021ac_save_IFS=$IFS; IFS='-'
3022set x $ac_cv_build
3023shift
3024build_cpu=$1
3025build_vendor=$2
3026shift; shift
3027# Remember, the first character of IFS is used to create $*,
3028# except with old shells:
3029build_os=$*
3030IFS=$ac_save_IFS
3031case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3032
3033
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3035$as_echo_n "checking host system type... " >&6; }
3036if ${ac_cv_host+:} false; then :
3037  $as_echo_n "(cached) " >&6
3038else
3039  if test "x$host_alias" = x; then
3040  ac_cv_host=$ac_cv_build
3041else
3042  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3043    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3044fi
3045
3046fi
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3048$as_echo "$ac_cv_host" >&6; }
3049case $ac_cv_host in
3050*-*-*) ;;
3051*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3052esac
3053host=$ac_cv_host
3054ac_save_IFS=$IFS; IFS='-'
3055set x $ac_cv_host
3056shift
3057host_cpu=$1
3058host_vendor=$2
3059shift; shift
3060# Remember, the first character of IFS is used to create $*,
3061# except with old shells:
3062host_os=$*
3063IFS=$ac_save_IFS
3064case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3065
3066
3067# Backslashify metacharacters that are still active within
3068# double-quoted strings.
3069sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3070
3071# Same as above, but do not quote variable references.
3072double_quote_subst='s/\(["`\\]\)/\\\1/g'
3073
3074# Sed substitution to delay expansion of an escaped shell variable in a
3075# double_quote_subst'ed string.
3076delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3077
3078# Sed substitution to delay expansion of an escaped single quote.
3079delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3080
3081# Sed substitution to avoid accidental globbing in evaled expressions
3082no_glob_subst='s/\*/\\\*/g'
3083
3084ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3085ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3086ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3087
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3089$as_echo_n "checking how to print strings... " >&6; }
3090# Test print first, because it will be a builtin if present.
3091if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3092   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3093  ECHO='print -r --'
3094elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3095  ECHO='printf %s\n'
3096else
3097  # Use this function as a fallback that always works.
3098  func_fallback_echo ()
3099  {
3100    eval 'cat <<_LTECHO_EOF
3101$1
3102_LTECHO_EOF'
3103  }
3104  ECHO='func_fallback_echo'
3105fi
3106
3107# func_echo_all arg...
3108# Invoke $ECHO with all args, space-separated.
3109func_echo_all ()
3110{
3111    $ECHO ""
3112}
3113
3114case $ECHO in
3115  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3116$as_echo "printf" >&6; } ;;
3117  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3118$as_echo "print -r" >&6; } ;;
3119  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3120$as_echo "cat" >&6; } ;;
3121esac
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136DEPDIR="${am__leading_dot}deps"
3137
3138ac_config_commands="$ac_config_commands depfiles"
3139
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3141$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3142cat > confinc.mk << 'END'
3143am__doit:
3144	@echo this is the am__doit target >confinc.out
3145.PHONY: am__doit
3146END
3147am__include="#"
3148am__quote=
3149# BSD make does it like this.
3150echo '.include "confinc.mk" # ignored' > confmf.BSD
3151# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3152echo 'include confinc.mk # ignored' > confmf.GNU
3153_am_result=no
3154for s in GNU BSD; do
3155  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3156   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }
3160  case $?:`cat confinc.out 2>/dev/null` in #(
3161  '0:this is the am__doit target') :
3162    case $s in #(
3163  BSD) :
3164    am__include='.include' am__quote='"' ;; #(
3165  *) :
3166    am__include='include' am__quote='' ;;
3167esac ;; #(
3168  *) :
3169     ;;
3170esac
3171  if test "$am__include" != "#"; then
3172    _am_result="yes ($s style)"
3173    break
3174  fi
3175done
3176rm -f confinc.* confmf.*
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3178$as_echo "${_am_result}" >&6; }
3179
3180# Check whether --enable-dependency-tracking was given.
3181if test "${enable_dependency_tracking+set}" = set; then :
3182  enableval=$enable_dependency_tracking;
3183fi
3184
3185if test "x$enable_dependency_tracking" != xno; then
3186  am_depcomp="$ac_aux_dir/depcomp"
3187  AMDEPBACKSLASH='\'
3188  am__nodep='_no'
3189fi
3190 if test "x$enable_dependency_tracking" != xno; then
3191  AMDEP_TRUE=
3192  AMDEP_FALSE='#'
3193else
3194  AMDEP_TRUE='#'
3195  AMDEP_FALSE=
3196fi
3197
3198
3199ac_ext=c
3200ac_cpp='$CPP $CPPFLAGS'
3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204if test -n "$ac_tool_prefix"; then
3205  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3206set dummy ${ac_tool_prefix}gcc; 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}gcc"
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
3242fi
3243if test -z "$ac_cv_prog_CC"; then
3244  ac_ct_CC=$CC
3245  # Extract the first word of "gcc", so it can be a program name with args.
3246set dummy gcc; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
3249if ${ac_cv_prog_ac_ct_CC+:} false; then :
3250  $as_echo_n "(cached) " >&6
3251else
3252  if test -n "$ac_ct_CC"; then
3253  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258  IFS=$as_save_IFS
3259  test -z "$as_dir" && as_dir=.
3260    for ac_exec_ext in '' $ac_executable_extensions; do
3261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262    ac_cv_prog_ac_ct_CC="gcc"
3263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264    break 2
3265  fi
3266done
3267  done
3268IFS=$as_save_IFS
3269
3270fi
3271fi
3272ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273if test -n "$ac_ct_CC"; then
3274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3275$as_echo "$ac_ct_CC" >&6; }
3276else
3277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279fi
3280
3281  if test "x$ac_ct_CC" = x; then
3282    CC=""
3283  else
3284    case $cross_compiling:$ac_tool_warned in
3285yes:)
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3288ac_tool_warned=yes ;;
3289esac
3290    CC=$ac_ct_CC
3291  fi
3292else
3293  CC="$ac_cv_prog_CC"
3294fi
3295
3296if test -z "$CC"; then
3297          if test -n "$ac_tool_prefix"; then
3298    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3299set dummy ${ac_tool_prefix}cc; ac_word=$2
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301$as_echo_n "checking for $ac_word... " >&6; }
3302if ${ac_cv_prog_CC+:} false; then :
3303  $as_echo_n "(cached) " >&6
3304else
3305  if test -n "$CC"; then
3306  ac_cv_prog_CC="$CC" # Let the user override the test.
3307else
3308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309for as_dir in $PATH
3310do
3311  IFS=$as_save_IFS
3312  test -z "$as_dir" && as_dir=.
3313    for ac_exec_ext in '' $ac_executable_extensions; do
3314  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315    ac_cv_prog_CC="${ac_tool_prefix}cc"
3316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317    break 2
3318  fi
3319done
3320  done
3321IFS=$as_save_IFS
3322
3323fi
3324fi
3325CC=$ac_cv_prog_CC
3326if test -n "$CC"; then
3327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328$as_echo "$CC" >&6; }
3329else
3330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331$as_echo "no" >&6; }
3332fi
3333
3334
3335  fi
3336fi
3337if test -z "$CC"; then
3338  # Extract the first word of "cc", so it can be a program name with args.
3339set dummy cc; ac_word=$2
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341$as_echo_n "checking for $ac_word... " >&6; }
3342if ${ac_cv_prog_CC+:} false; then :
3343  $as_echo_n "(cached) " >&6
3344else
3345  if test -n "$CC"; then
3346  ac_cv_prog_CC="$CC" # Let the user override the test.
3347else
3348  ac_prog_rejected=no
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352  IFS=$as_save_IFS
3353  test -z "$as_dir" && as_dir=.
3354    for ac_exec_ext in '' $ac_executable_extensions; do
3355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3357       ac_prog_rejected=yes
3358       continue
3359     fi
3360    ac_cv_prog_CC="cc"
3361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362    break 2
3363  fi
3364done
3365  done
3366IFS=$as_save_IFS
3367
3368if test $ac_prog_rejected = yes; then
3369  # We found a bogon in the path, so make sure we never use it.
3370  set dummy $ac_cv_prog_CC
3371  shift
3372  if test $# != 0; then
3373    # We chose a different compiler from the bogus one.
3374    # However, it has the same basename, so the bogon will be chosen
3375    # first if we set CC to just the basename; use the full file name.
3376    shift
3377    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3378  fi
3379fi
3380fi
3381fi
3382CC=$ac_cv_prog_CC
3383if test -n "$CC"; then
3384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385$as_echo "$CC" >&6; }
3386else
3387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388$as_echo "no" >&6; }
3389fi
3390
3391
3392fi
3393if test -z "$CC"; then
3394  if test -n "$ac_tool_prefix"; then
3395  for ac_prog in cl.exe
3396  do
3397    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3398set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400$as_echo_n "checking for $ac_word... " >&6; }
3401if ${ac_cv_prog_CC+:} false; then :
3402  $as_echo_n "(cached) " >&6
3403else
3404  if test -n "$CC"; then
3405  ac_cv_prog_CC="$CC" # Let the user override the test.
3406else
3407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408for as_dir in $PATH
3409do
3410  IFS=$as_save_IFS
3411  test -z "$as_dir" && as_dir=.
3412    for ac_exec_ext in '' $ac_executable_extensions; do
3413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416    break 2
3417  fi
3418done
3419  done
3420IFS=$as_save_IFS
3421
3422fi
3423fi
3424CC=$ac_cv_prog_CC
3425if test -n "$CC"; then
3426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427$as_echo "$CC" >&6; }
3428else
3429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430$as_echo "no" >&6; }
3431fi
3432
3433
3434    test -n "$CC" && break
3435  done
3436fi
3437if test -z "$CC"; then
3438  ac_ct_CC=$CC
3439  for ac_prog in cl.exe
3440do
3441  # Extract the first word of "$ac_prog", so it can be a program name with args.
3442set dummy $ac_prog; ac_word=$2
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444$as_echo_n "checking for $ac_word... " >&6; }
3445if ${ac_cv_prog_ac_ct_CC+:} false; then :
3446  $as_echo_n "(cached) " >&6
3447else
3448  if test -n "$ac_ct_CC"; then
3449  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3450else
3451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452for as_dir in $PATH
3453do
3454  IFS=$as_save_IFS
3455  test -z "$as_dir" && as_dir=.
3456    for ac_exec_ext in '' $ac_executable_extensions; do
3457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458    ac_cv_prog_ac_ct_CC="$ac_prog"
3459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460    break 2
3461  fi
3462done
3463  done
3464IFS=$as_save_IFS
3465
3466fi
3467fi
3468ac_ct_CC=$ac_cv_prog_ac_ct_CC
3469if test -n "$ac_ct_CC"; then
3470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3471$as_echo "$ac_ct_CC" >&6; }
3472else
3473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474$as_echo "no" >&6; }
3475fi
3476
3477
3478  test -n "$ac_ct_CC" && break
3479done
3480
3481  if test "x$ac_ct_CC" = x; then
3482    CC=""
3483  else
3484    case $cross_compiling:$ac_tool_warned in
3485yes:)
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3488ac_tool_warned=yes ;;
3489esac
3490    CC=$ac_ct_CC
3491  fi
3492fi
3493
3494fi
3495
3496
3497test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499as_fn_error $? "no acceptable C compiler found in \$PATH
3500See \`config.log' for more details" "$LINENO" 5; }
3501
3502# Provide some information about the compiler.
3503$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3504set X $ac_compile
3505ac_compiler=$2
3506for ac_option in --version -v -V -qversion; do
3507  { { ac_try="$ac_compiler $ac_option >&5"
3508case "(($ac_try" in
3509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510  *) ac_try_echo=$ac_try;;
3511esac
3512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513$as_echo "$ac_try_echo"; } >&5
3514  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3515  ac_status=$?
3516  if test -s conftest.err; then
3517    sed '10a\
3518... rest of stderr output deleted ...
3519         10q' conftest.err >conftest.er1
3520    cat conftest.er1 >&5
3521  fi
3522  rm -f conftest.er1 conftest.err
3523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524  test $ac_status = 0; }
3525done
3526
3527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528/* end confdefs.h.  */
3529
3530int
3531main ()
3532{
3533
3534  ;
3535  return 0;
3536}
3537_ACEOF
3538ac_clean_files_save=$ac_clean_files
3539ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3540# Try to create an executable without -o first, disregard a.out.
3541# It will help us diagnose broken compilers, and finding out an intuition
3542# of exeext.
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3544$as_echo_n "checking whether the C compiler works... " >&6; }
3545ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3546
3547# The possible output files:
3548ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3549
3550ac_rmfiles=
3551for ac_file in $ac_files
3552do
3553  case $ac_file in
3554    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3555    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3556  esac
3557done
3558rm -f $ac_rmfiles
3559
3560if { { ac_try="$ac_link_default"
3561case "(($ac_try" in
3562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563  *) ac_try_echo=$ac_try;;
3564esac
3565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566$as_echo "$ac_try_echo"; } >&5
3567  (eval "$ac_link_default") 2>&5
3568  ac_status=$?
3569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570  test $ac_status = 0; }; then :
3571  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3572# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3573# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3574# so that the user can short-circuit this test for compilers unknown to
3575# Autoconf.
3576for ac_file in $ac_files ''
3577do
3578  test -f "$ac_file" || continue
3579  case $ac_file in
3580    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3581	;;
3582    [ab].out )
3583	# We found the default executable, but exeext='' is most
3584	# certainly right.
3585	break;;
3586    *.* )
3587	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3588	then :; else
3589	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3590	fi
3591	# We set ac_cv_exeext here because the later test for it is not
3592	# safe: cross compilers may not add the suffix if given an `-o'
3593	# argument, so we may need to know it at that point already.
3594	# Even if this section looks crufty: it has the advantage of
3595	# actually working.
3596	break;;
3597    * )
3598	break;;
3599  esac
3600done
3601test "$ac_cv_exeext" = no && ac_cv_exeext=
3602
3603else
3604  ac_file=''
3605fi
3606if test -z "$ac_file"; then :
3607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608$as_echo "no" >&6; }
3609$as_echo "$as_me: failed program was:" >&5
3610sed 's/^/| /' conftest.$ac_ext >&5
3611
3612{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614as_fn_error 77 "C compiler cannot create executables
3615See \`config.log' for more details" "$LINENO" 5; }
3616else
3617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3618$as_echo "yes" >&6; }
3619fi
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3621$as_echo_n "checking for C compiler default output file name... " >&6; }
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3623$as_echo "$ac_file" >&6; }
3624ac_exeext=$ac_cv_exeext
3625
3626rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3627ac_clean_files=$ac_clean_files_save
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3629$as_echo_n "checking for suffix of executables... " >&6; }
3630if { { ac_try="$ac_link"
3631case "(($ac_try" in
3632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633  *) ac_try_echo=$ac_try;;
3634esac
3635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636$as_echo "$ac_try_echo"; } >&5
3637  (eval "$ac_link") 2>&5
3638  ac_status=$?
3639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640  test $ac_status = 0; }; then :
3641  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3642# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3643# work properly (i.e., refer to `conftest.exe'), while it won't with
3644# `rm'.
3645for ac_file in conftest.exe conftest conftest.*; do
3646  test -f "$ac_file" || continue
3647  case $ac_file in
3648    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3650	  break;;
3651    * ) break;;
3652  esac
3653done
3654else
3655  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3658See \`config.log' for more details" "$LINENO" 5; }
3659fi
3660rm -f conftest conftest$ac_cv_exeext
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3662$as_echo "$ac_cv_exeext" >&6; }
3663
3664rm -f conftest.$ac_ext
3665EXEEXT=$ac_cv_exeext
3666ac_exeext=$EXEEXT
3667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668/* end confdefs.h.  */
3669#include <stdio.h>
3670int
3671main ()
3672{
3673FILE *f = fopen ("conftest.out", "w");
3674 return ferror (f) || fclose (f) != 0;
3675
3676  ;
3677  return 0;
3678}
3679_ACEOF
3680ac_clean_files="$ac_clean_files conftest.out"
3681# Check that the compiler produces executables we can run.  If not, either
3682# the compiler is broken, or we cross compile.
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3684$as_echo_n "checking whether we are cross compiling... " >&6; }
3685if test "$cross_compiling" != yes; then
3686  { { ac_try="$ac_link"
3687case "(($ac_try" in
3688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689  *) ac_try_echo=$ac_try;;
3690esac
3691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692$as_echo "$ac_try_echo"; } >&5
3693  (eval "$ac_link") 2>&5
3694  ac_status=$?
3695  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696  test $ac_status = 0; }
3697  if { ac_try='./conftest$ac_cv_exeext'
3698  { { case "(($ac_try" in
3699  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700  *) ac_try_echo=$ac_try;;
3701esac
3702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703$as_echo "$ac_try_echo"; } >&5
3704  (eval "$ac_try") 2>&5
3705  ac_status=$?
3706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707  test $ac_status = 0; }; }; then
3708    cross_compiling=no
3709  else
3710    if test "$cross_compiling" = maybe; then
3711	cross_compiling=yes
3712    else
3713	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715as_fn_error $? "cannot run C compiled programs.
3716If you meant to cross compile, use \`--host'.
3717See \`config.log' for more details" "$LINENO" 5; }
3718    fi
3719  fi
3720fi
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3722$as_echo "$cross_compiling" >&6; }
3723
3724rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3725ac_clean_files=$ac_clean_files_save
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3727$as_echo_n "checking for suffix of object files... " >&6; }
3728if ${ac_cv_objext+:} false; then :
3729  $as_echo_n "(cached) " >&6
3730else
3731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732/* end confdefs.h.  */
3733
3734int
3735main ()
3736{
3737
3738  ;
3739  return 0;
3740}
3741_ACEOF
3742rm -f conftest.o conftest.obj
3743if { { ac_try="$ac_compile"
3744case "(($ac_try" in
3745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746  *) ac_try_echo=$ac_try;;
3747esac
3748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749$as_echo "$ac_try_echo"; } >&5
3750  (eval "$ac_compile") 2>&5
3751  ac_status=$?
3752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753  test $ac_status = 0; }; then :
3754  for ac_file in conftest.o conftest.obj conftest.*; do
3755  test -f "$ac_file" || continue;
3756  case $ac_file in
3757    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3758    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3759       break;;
3760  esac
3761done
3762else
3763  $as_echo "$as_me: failed program was:" >&5
3764sed 's/^/| /' conftest.$ac_ext >&5
3765
3766{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768as_fn_error $? "cannot compute suffix of object files: cannot compile
3769See \`config.log' for more details" "$LINENO" 5; }
3770fi
3771rm -f conftest.$ac_cv_objext conftest.$ac_ext
3772fi
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3774$as_echo "$ac_cv_objext" >&6; }
3775OBJEXT=$ac_cv_objext
3776ac_objext=$OBJEXT
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3778$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3779if ${ac_cv_c_compiler_gnu+:} false; then :
3780  $as_echo_n "(cached) " >&6
3781else
3782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783/* end confdefs.h.  */
3784
3785int
3786main ()
3787{
3788#ifndef __GNUC__
3789       choke me
3790#endif
3791
3792  ;
3793  return 0;
3794}
3795_ACEOF
3796if ac_fn_c_try_compile "$LINENO"; then :
3797  ac_compiler_gnu=yes
3798else
3799  ac_compiler_gnu=no
3800fi
3801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802ac_cv_c_compiler_gnu=$ac_compiler_gnu
3803
3804fi
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3806$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3807if test $ac_compiler_gnu = yes; then
3808  GCC=yes
3809else
3810  GCC=
3811fi
3812ac_test_CFLAGS=${CFLAGS+set}
3813ac_save_CFLAGS=$CFLAGS
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3815$as_echo_n "checking whether $CC accepts -g... " >&6; }
3816if ${ac_cv_prog_cc_g+:} false; then :
3817  $as_echo_n "(cached) " >&6
3818else
3819  ac_save_c_werror_flag=$ac_c_werror_flag
3820   ac_c_werror_flag=yes
3821   ac_cv_prog_cc_g=no
3822   CFLAGS="-g"
3823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824/* end confdefs.h.  */
3825
3826int
3827main ()
3828{
3829
3830  ;
3831  return 0;
3832}
3833_ACEOF
3834if ac_fn_c_try_compile "$LINENO"; then :
3835  ac_cv_prog_cc_g=yes
3836else
3837  CFLAGS=""
3838      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839/* end confdefs.h.  */
3840
3841int
3842main ()
3843{
3844
3845  ;
3846  return 0;
3847}
3848_ACEOF
3849if ac_fn_c_try_compile "$LINENO"; then :
3850
3851else
3852  ac_c_werror_flag=$ac_save_c_werror_flag
3853	 CFLAGS="-g"
3854	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855/* end confdefs.h.  */
3856
3857int
3858main ()
3859{
3860
3861  ;
3862  return 0;
3863}
3864_ACEOF
3865if ac_fn_c_try_compile "$LINENO"; then :
3866  ac_cv_prog_cc_g=yes
3867fi
3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869fi
3870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871fi
3872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873   ac_c_werror_flag=$ac_save_c_werror_flag
3874fi
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3876$as_echo "$ac_cv_prog_cc_g" >&6; }
3877if test "$ac_test_CFLAGS" = set; then
3878  CFLAGS=$ac_save_CFLAGS
3879elif test $ac_cv_prog_cc_g = yes; then
3880  if test "$GCC" = yes; then
3881    CFLAGS="-g -O2"
3882  else
3883    CFLAGS="-g"
3884  fi
3885else
3886  if test "$GCC" = yes; then
3887    CFLAGS="-O2"
3888  else
3889    CFLAGS=
3890  fi
3891fi
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3893$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3894if ${ac_cv_prog_cc_c89+:} false; then :
3895  $as_echo_n "(cached) " >&6
3896else
3897  ac_cv_prog_cc_c89=no
3898ac_save_CC=$CC
3899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900/* end confdefs.h.  */
3901#include <stdarg.h>
3902#include <stdio.h>
3903struct stat;
3904/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3905struct buf { int x; };
3906FILE * (*rcsopen) (struct buf *, struct stat *, int);
3907static char *e (p, i)
3908     char **p;
3909     int i;
3910{
3911  return p[i];
3912}
3913static char *f (char * (*g) (char **, int), char **p, ...)
3914{
3915  char *s;
3916  va_list v;
3917  va_start (v,p);
3918  s = g (p, va_arg (v,int));
3919  va_end (v);
3920  return s;
3921}
3922
3923/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3924   function prototypes and stuff, but not '\xHH' hex character constants.
3925   These don't provoke an error unfortunately, instead are silently treated
3926   as 'x'.  The following induces an error, until -std is added to get
3927   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3928   array size at least.  It's necessary to write '\x00'==0 to get something
3929   that's true only with -std.  */
3930int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3931
3932/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3933   inside strings and character constants.  */
3934#define FOO(x) 'x'
3935int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3936
3937int test (int i, double x);
3938struct s1 {int (*f) (int a);};
3939struct s2 {int (*f) (double a);};
3940int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3941int argc;
3942char **argv;
3943int
3944main ()
3945{
3946return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3947  ;
3948  return 0;
3949}
3950_ACEOF
3951for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3952	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3953do
3954  CC="$ac_save_CC $ac_arg"
3955  if ac_fn_c_try_compile "$LINENO"; then :
3956  ac_cv_prog_cc_c89=$ac_arg
3957fi
3958rm -f core conftest.err conftest.$ac_objext
3959  test "x$ac_cv_prog_cc_c89" != "xno" && break
3960done
3961rm -f conftest.$ac_ext
3962CC=$ac_save_CC
3963
3964fi
3965# AC_CACHE_VAL
3966case "x$ac_cv_prog_cc_c89" in
3967  x)
3968    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3969$as_echo "none needed" >&6; } ;;
3970  xno)
3971    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3972$as_echo "unsupported" >&6; } ;;
3973  *)
3974    CC="$CC $ac_cv_prog_cc_c89"
3975    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3976$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3977esac
3978if test "x$ac_cv_prog_cc_c89" != xno; then :
3979
3980fi
3981
3982ac_ext=c
3983ac_cpp='$CPP $CPPFLAGS'
3984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987
3988ac_ext=c
3989ac_cpp='$CPP $CPPFLAGS'
3990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3992ac_compiler_gnu=$ac_cv_c_compiler_gnu
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3994$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3995if ${am_cv_prog_cc_c_o+:} false; then :
3996  $as_echo_n "(cached) " >&6
3997else
3998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999/* end confdefs.h.  */
4000
4001int
4002main ()
4003{
4004
4005  ;
4006  return 0;
4007}
4008_ACEOF
4009  # Make sure it works both with $CC and with simple cc.
4010  # Following AC_PROG_CC_C_O, we do the test twice because some
4011  # compilers refuse to overwrite an existing .o file with -o,
4012  # though they will create one.
4013  am_cv_prog_cc_c_o=yes
4014  for am_i in 1 2; do
4015    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4016   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4017   ac_status=$?
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); } \
4020         && test -f conftest2.$ac_objext; then
4021      : OK
4022    else
4023      am_cv_prog_cc_c_o=no
4024      break
4025    fi
4026  done
4027  rm -f core conftest*
4028  unset am_i
4029fi
4030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4031$as_echo "$am_cv_prog_cc_c_o" >&6; }
4032if test "$am_cv_prog_cc_c_o" != yes; then
4033   # Losing compiler, so override with the script.
4034   # FIXME: It is wrong to rewrite CC.
4035   # But if we don't then we get into trouble of one sort or another.
4036   # A longer-term fix would be to have automake use am__CC in this case,
4037   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4038   CC="$am_aux_dir/compile $CC"
4039fi
4040ac_ext=c
4041ac_cpp='$CPP $CPPFLAGS'
4042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045
4046
4047depcc="$CC"   am_compiler_list=
4048
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4050$as_echo_n "checking dependency style of $depcc... " >&6; }
4051if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4052  $as_echo_n "(cached) " >&6
4053else
4054  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4055  # We make a subdir and do the tests there.  Otherwise we can end up
4056  # making bogus files that we don't know about and never remove.  For
4057  # instance it was reported that on HP-UX the gcc test will end up
4058  # making a dummy file named 'D' -- because '-MD' means "put the output
4059  # in D".
4060  rm -rf conftest.dir
4061  mkdir conftest.dir
4062  # Copy depcomp to subdir because otherwise we won't find it if we're
4063  # using a relative directory.
4064  cp "$am_depcomp" conftest.dir
4065  cd conftest.dir
4066  # We will build objects and dependencies in a subdirectory because
4067  # it helps to detect inapplicable dependency modes.  For instance
4068  # both Tru64's cc and ICC support -MD to output dependencies as a
4069  # side effect of compilation, but ICC will put the dependencies in
4070  # the current directory while Tru64 will put them in the object
4071  # directory.
4072  mkdir sub
4073
4074  am_cv_CC_dependencies_compiler_type=none
4075  if test "$am_compiler_list" = ""; then
4076     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4077  fi
4078  am__universal=false
4079  case " $depcc " in #(
4080     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4081     esac
4082
4083  for depmode in $am_compiler_list; do
4084    # Setup a source with many dependencies, because some compilers
4085    # like to wrap large dependency lists on column 80 (with \), and
4086    # we should not choose a depcomp mode which is confused by this.
4087    #
4088    # We need to recreate these files for each test, as the compiler may
4089    # overwrite some of them when testing with obscure command lines.
4090    # This happens at least with the AIX C compiler.
4091    : > sub/conftest.c
4092    for i in 1 2 3 4 5 6; do
4093      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4094      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4095      # Solaris 10 /bin/sh.
4096      echo '/* dummy */' > sub/conftst$i.h
4097    done
4098    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4099
4100    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4101    # mode.  It turns out that the SunPro C++ compiler does not properly
4102    # handle '-M -o', and we need to detect this.  Also, some Intel
4103    # versions had trouble with output in subdirs.
4104    am__obj=sub/conftest.${OBJEXT-o}
4105    am__minus_obj="-o $am__obj"
4106    case $depmode in
4107    gcc)
4108      # This depmode causes a compiler race in universal mode.
4109      test "$am__universal" = false || continue
4110      ;;
4111    nosideeffect)
4112      # After this tag, mechanisms are not by side-effect, so they'll
4113      # only be used when explicitly requested.
4114      if test "x$enable_dependency_tracking" = xyes; then
4115	continue
4116      else
4117	break
4118      fi
4119      ;;
4120    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4121      # This compiler won't grok '-c -o', but also, the minuso test has
4122      # not run yet.  These depmodes are late enough in the game, and
4123      # so weak that their functioning should not be impacted.
4124      am__obj=conftest.${OBJEXT-o}
4125      am__minus_obj=
4126      ;;
4127    none) break ;;
4128    esac
4129    if depmode=$depmode \
4130       source=sub/conftest.c object=$am__obj \
4131       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4132       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4133         >/dev/null 2>conftest.err &&
4134       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4135       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4136       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4137       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4138      # icc doesn't choke on unknown options, it will just issue warnings
4139      # or remarks (even with -Werror).  So we grep stderr for any message
4140      # that says an option was ignored or not supported.
4141      # When given -MP, icc 7.0 and 7.1 complain thusly:
4142      #   icc: Command line warning: ignoring option '-M'; no argument required
4143      # The diagnosis changed in icc 8.0:
4144      #   icc: Command line remark: option '-MP' not supported
4145      if (grep 'ignoring option' conftest.err ||
4146          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4147        am_cv_CC_dependencies_compiler_type=$depmode
4148        break
4149      fi
4150    fi
4151  done
4152
4153  cd ..
4154  rm -rf conftest.dir
4155else
4156  am_cv_CC_dependencies_compiler_type=none
4157fi
4158
4159fi
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4161$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4162CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4163
4164 if
4165  test "x$enable_dependency_tracking" != xno \
4166  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4167  am__fastdepCC_TRUE=
4168  am__fastdepCC_FALSE='#'
4169else
4170  am__fastdepCC_TRUE='#'
4171  am__fastdepCC_FALSE=
4172fi
4173
4174
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4176$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4177if ${ac_cv_path_SED+:} false; then :
4178  $as_echo_n "(cached) " >&6
4179else
4180            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4181     for ac_i in 1 2 3 4 5 6 7; do
4182       ac_script="$ac_script$as_nl$ac_script"
4183     done
4184     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4185     { ac_script=; unset ac_script;}
4186     if test -z "$SED"; then
4187  ac_path_SED_found=false
4188  # Loop through the user's path and test for each of PROGNAME-LIST
4189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192  IFS=$as_save_IFS
4193  test -z "$as_dir" && as_dir=.
4194    for ac_prog in sed gsed; do
4195    for ac_exec_ext in '' $ac_executable_extensions; do
4196      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4197      as_fn_executable_p "$ac_path_SED" || continue
4198# Check for GNU ac_path_SED and select it if it is found.
4199  # Check for GNU $ac_path_SED
4200case `"$ac_path_SED" --version 2>&1` in
4201*GNU*)
4202  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4203*)
4204  ac_count=0
4205  $as_echo_n 0123456789 >"conftest.in"
4206  while :
4207  do
4208    cat "conftest.in" "conftest.in" >"conftest.tmp"
4209    mv "conftest.tmp" "conftest.in"
4210    cp "conftest.in" "conftest.nl"
4211    $as_echo '' >> "conftest.nl"
4212    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4213    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4214    as_fn_arith $ac_count + 1 && ac_count=$as_val
4215    if test $ac_count -gt ${ac_path_SED_max-0}; then
4216      # Best one so far, save it but keep looking for a better one
4217      ac_cv_path_SED="$ac_path_SED"
4218      ac_path_SED_max=$ac_count
4219    fi
4220    # 10*(2^10) chars as input seems more than enough
4221    test $ac_count -gt 10 && break
4222  done
4223  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4224esac
4225
4226      $ac_path_SED_found && break 3
4227    done
4228  done
4229  done
4230IFS=$as_save_IFS
4231  if test -z "$ac_cv_path_SED"; then
4232    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4233  fi
4234else
4235  ac_cv_path_SED=$SED
4236fi
4237
4238fi
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4240$as_echo "$ac_cv_path_SED" >&6; }
4241 SED="$ac_cv_path_SED"
4242  rm -f conftest.sed
4243
4244test -z "$SED" && SED=sed
4245Xsed="$SED -e 1s/^X//"
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4258$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4259if ${ac_cv_path_GREP+:} false; then :
4260  $as_echo_n "(cached) " >&6
4261else
4262  if test -z "$GREP"; then
4263  ac_path_GREP_found=false
4264  # Loop through the user's path and test for each of PROGNAME-LIST
4265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4267do
4268  IFS=$as_save_IFS
4269  test -z "$as_dir" && as_dir=.
4270    for ac_prog in grep ggrep; do
4271    for ac_exec_ext in '' $ac_executable_extensions; do
4272      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4273      as_fn_executable_p "$ac_path_GREP" || continue
4274# Check for GNU ac_path_GREP and select it if it is found.
4275  # Check for GNU $ac_path_GREP
4276case `"$ac_path_GREP" --version 2>&1` in
4277*GNU*)
4278  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4279*)
4280  ac_count=0
4281  $as_echo_n 0123456789 >"conftest.in"
4282  while :
4283  do
4284    cat "conftest.in" "conftest.in" >"conftest.tmp"
4285    mv "conftest.tmp" "conftest.in"
4286    cp "conftest.in" "conftest.nl"
4287    $as_echo 'GREP' >> "conftest.nl"
4288    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4289    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4290    as_fn_arith $ac_count + 1 && ac_count=$as_val
4291    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4292      # Best one so far, save it but keep looking for a better one
4293      ac_cv_path_GREP="$ac_path_GREP"
4294      ac_path_GREP_max=$ac_count
4295    fi
4296    # 10*(2^10) chars as input seems more than enough
4297    test $ac_count -gt 10 && break
4298  done
4299  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4300esac
4301
4302      $ac_path_GREP_found && break 3
4303    done
4304  done
4305  done
4306IFS=$as_save_IFS
4307  if test -z "$ac_cv_path_GREP"; then
4308    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4309  fi
4310else
4311  ac_cv_path_GREP=$GREP
4312fi
4313
4314fi
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4316$as_echo "$ac_cv_path_GREP" >&6; }
4317 GREP="$ac_cv_path_GREP"
4318
4319
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4321$as_echo_n "checking for egrep... " >&6; }
4322if ${ac_cv_path_EGREP+:} false; then :
4323  $as_echo_n "(cached) " >&6
4324else
4325  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4326   then ac_cv_path_EGREP="$GREP -E"
4327   else
4328     if test -z "$EGREP"; then
4329  ac_path_EGREP_found=false
4330  # Loop through the user's path and test for each of PROGNAME-LIST
4331  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4333do
4334  IFS=$as_save_IFS
4335  test -z "$as_dir" && as_dir=.
4336    for ac_prog in egrep; do
4337    for ac_exec_ext in '' $ac_executable_extensions; do
4338      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4339      as_fn_executable_p "$ac_path_EGREP" || continue
4340# Check for GNU ac_path_EGREP and select it if it is found.
4341  # Check for GNU $ac_path_EGREP
4342case `"$ac_path_EGREP" --version 2>&1` in
4343*GNU*)
4344  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4345*)
4346  ac_count=0
4347  $as_echo_n 0123456789 >"conftest.in"
4348  while :
4349  do
4350    cat "conftest.in" "conftest.in" >"conftest.tmp"
4351    mv "conftest.tmp" "conftest.in"
4352    cp "conftest.in" "conftest.nl"
4353    $as_echo 'EGREP' >> "conftest.nl"
4354    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4355    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4356    as_fn_arith $ac_count + 1 && ac_count=$as_val
4357    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4358      # Best one so far, save it but keep looking for a better one
4359      ac_cv_path_EGREP="$ac_path_EGREP"
4360      ac_path_EGREP_max=$ac_count
4361    fi
4362    # 10*(2^10) chars as input seems more than enough
4363    test $ac_count -gt 10 && break
4364  done
4365  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4366esac
4367
4368      $ac_path_EGREP_found && break 3
4369    done
4370  done
4371  done
4372IFS=$as_save_IFS
4373  if test -z "$ac_cv_path_EGREP"; then
4374    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4375  fi
4376else
4377  ac_cv_path_EGREP=$EGREP
4378fi
4379
4380   fi
4381fi
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4383$as_echo "$ac_cv_path_EGREP" >&6; }
4384 EGREP="$ac_cv_path_EGREP"
4385
4386
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4388$as_echo_n "checking for fgrep... " >&6; }
4389if ${ac_cv_path_FGREP+:} false; then :
4390  $as_echo_n "(cached) " >&6
4391else
4392  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4393   then ac_cv_path_FGREP="$GREP -F"
4394   else
4395     if test -z "$FGREP"; then
4396  ac_path_FGREP_found=false
4397  # Loop through the user's path and test for each of PROGNAME-LIST
4398  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4400do
4401  IFS=$as_save_IFS
4402  test -z "$as_dir" && as_dir=.
4403    for ac_prog in fgrep; do
4404    for ac_exec_ext in '' $ac_executable_extensions; do
4405      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4406      as_fn_executable_p "$ac_path_FGREP" || continue
4407# Check for GNU ac_path_FGREP and select it if it is found.
4408  # Check for GNU $ac_path_FGREP
4409case `"$ac_path_FGREP" --version 2>&1` in
4410*GNU*)
4411  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4412*)
4413  ac_count=0
4414  $as_echo_n 0123456789 >"conftest.in"
4415  while :
4416  do
4417    cat "conftest.in" "conftest.in" >"conftest.tmp"
4418    mv "conftest.tmp" "conftest.in"
4419    cp "conftest.in" "conftest.nl"
4420    $as_echo 'FGREP' >> "conftest.nl"
4421    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4422    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4423    as_fn_arith $ac_count + 1 && ac_count=$as_val
4424    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4425      # Best one so far, save it but keep looking for a better one
4426      ac_cv_path_FGREP="$ac_path_FGREP"
4427      ac_path_FGREP_max=$ac_count
4428    fi
4429    # 10*(2^10) chars as input seems more than enough
4430    test $ac_count -gt 10 && break
4431  done
4432  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4433esac
4434
4435      $ac_path_FGREP_found && break 3
4436    done
4437  done
4438  done
4439IFS=$as_save_IFS
4440  if test -z "$ac_cv_path_FGREP"; then
4441    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4442  fi
4443else
4444  ac_cv_path_FGREP=$FGREP
4445fi
4446
4447   fi
4448fi
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4450$as_echo "$ac_cv_path_FGREP" >&6; }
4451 FGREP="$ac_cv_path_FGREP"
4452
4453
4454test -z "$GREP" && GREP=grep
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474# Check whether --with-gnu-ld was given.
4475if test "${with_gnu_ld+set}" = set; then :
4476  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4477else
4478  with_gnu_ld=no
4479fi
4480
4481ac_prog=ld
4482if test yes = "$GCC"; then
4483  # Check if gcc -print-prog-name=ld gives a path.
4484  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4485$as_echo_n "checking for ld used by $CC... " >&6; }
4486  case $host in
4487  *-*-mingw*)
4488    # gcc leaves a trailing carriage return, which upsets mingw
4489    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4490  *)
4491    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4492  esac
4493  case $ac_prog in
4494    # Accept absolute paths.
4495    [\\/]* | ?:[\\/]*)
4496      re_direlt='/[^/][^/]*/\.\./'
4497      # Canonicalize the pathname of ld
4498      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4499      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4500	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4501      done
4502      test -z "$LD" && LD=$ac_prog
4503      ;;
4504  "")
4505    # If it fails, then pretend we aren't using GCC.
4506    ac_prog=ld
4507    ;;
4508  *)
4509    # If it is relative, then search for the first ld in PATH.
4510    with_gnu_ld=unknown
4511    ;;
4512  esac
4513elif test yes = "$with_gnu_ld"; then
4514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4515$as_echo_n "checking for GNU ld... " >&6; }
4516else
4517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4518$as_echo_n "checking for non-GNU ld... " >&6; }
4519fi
4520if ${lt_cv_path_LD+:} false; then :
4521  $as_echo_n "(cached) " >&6
4522else
4523  if test -z "$LD"; then
4524  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4525  for ac_dir in $PATH; do
4526    IFS=$lt_save_ifs
4527    test -z "$ac_dir" && ac_dir=.
4528    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4529      lt_cv_path_LD=$ac_dir/$ac_prog
4530      # Check to see if the program is GNU ld.  I'd rather use --version,
4531      # but apparently some variants of GNU ld only accept -v.
4532      # Break only if it was the GNU/non-GNU ld that we prefer.
4533      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4534      *GNU* | *'with BFD'*)
4535	test no != "$with_gnu_ld" && break
4536	;;
4537      *)
4538	test yes != "$with_gnu_ld" && break
4539	;;
4540      esac
4541    fi
4542  done
4543  IFS=$lt_save_ifs
4544else
4545  lt_cv_path_LD=$LD # Let the user override the test with a path.
4546fi
4547fi
4548
4549LD=$lt_cv_path_LD
4550if test -n "$LD"; then
4551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4552$as_echo "$LD" >&6; }
4553else
4554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555$as_echo "no" >&6; }
4556fi
4557test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4559$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4560if ${lt_cv_prog_gnu_ld+:} false; then :
4561  $as_echo_n "(cached) " >&6
4562else
4563  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4564case `$LD -v 2>&1 </dev/null` in
4565*GNU* | *'with BFD'*)
4566  lt_cv_prog_gnu_ld=yes
4567  ;;
4568*)
4569  lt_cv_prog_gnu_ld=no
4570  ;;
4571esac
4572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4574$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4575with_gnu_ld=$lt_cv_prog_gnu_ld
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4586$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4587if ${lt_cv_path_NM+:} false; then :
4588  $as_echo_n "(cached) " >&6
4589else
4590  if test -n "$NM"; then
4591  # Let the user override the test.
4592  lt_cv_path_NM=$NM
4593else
4594  lt_nm_to_check=${ac_tool_prefix}nm
4595  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4596    lt_nm_to_check="$lt_nm_to_check nm"
4597  fi
4598  for lt_tmp_nm in $lt_nm_to_check; do
4599    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4600    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4601      IFS=$lt_save_ifs
4602      test -z "$ac_dir" && ac_dir=.
4603      tmp_nm=$ac_dir/$lt_tmp_nm
4604      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4605	# Check to see if the nm accepts a BSD-compat flag.
4606	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4607	#   nm: unknown option "B" ignored
4608	# Tru64's nm complains that /dev/null is an invalid object file
4609	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4610	case $build_os in
4611	mingw*) lt_bad_file=conftest.nm/nofile ;;
4612	*) lt_bad_file=/dev/null ;;
4613	esac
4614	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4615	*$lt_bad_file* | *'Invalid file or object type'*)
4616	  lt_cv_path_NM="$tmp_nm -B"
4617	  break 2
4618	  ;;
4619	*)
4620	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4621	  */dev/null*)
4622	    lt_cv_path_NM="$tmp_nm -p"
4623	    break 2
4624	    ;;
4625	  *)
4626	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4627	    continue # so that we can try to find one that supports BSD flags
4628	    ;;
4629	  esac
4630	  ;;
4631	esac
4632      fi
4633    done
4634    IFS=$lt_save_ifs
4635  done
4636  : ${lt_cv_path_NM=no}
4637fi
4638fi
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4640$as_echo "$lt_cv_path_NM" >&6; }
4641if test no != "$lt_cv_path_NM"; then
4642  NM=$lt_cv_path_NM
4643else
4644  # Didn't find any BSD compatible name lister, look for dumpbin.
4645  if test -n "$DUMPBIN"; then :
4646    # Let the user override the test.
4647  else
4648    if test -n "$ac_tool_prefix"; then
4649  for ac_prog in dumpbin "link -dump"
4650  do
4651    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4652set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4654$as_echo_n "checking for $ac_word... " >&6; }
4655if ${ac_cv_prog_DUMPBIN+:} false; then :
4656  $as_echo_n "(cached) " >&6
4657else
4658  if test -n "$DUMPBIN"; then
4659  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4660else
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664  IFS=$as_save_IFS
4665  test -z "$as_dir" && as_dir=.
4666    for ac_exec_ext in '' $ac_executable_extensions; do
4667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670    break 2
4671  fi
4672done
4673  done
4674IFS=$as_save_IFS
4675
4676fi
4677fi
4678DUMPBIN=$ac_cv_prog_DUMPBIN
4679if test -n "$DUMPBIN"; then
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4681$as_echo "$DUMPBIN" >&6; }
4682else
4683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684$as_echo "no" >&6; }
4685fi
4686
4687
4688    test -n "$DUMPBIN" && break
4689  done
4690fi
4691if test -z "$DUMPBIN"; then
4692  ac_ct_DUMPBIN=$DUMPBIN
4693  for ac_prog in dumpbin "link -dump"
4694do
4695  # Extract the first word of "$ac_prog", so it can be a program name with args.
4696set dummy $ac_prog; ac_word=$2
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698$as_echo_n "checking for $ac_word... " >&6; }
4699if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4700  $as_echo_n "(cached) " >&6
4701else
4702  if test -n "$ac_ct_DUMPBIN"; then
4703  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4704else
4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH
4707do
4708  IFS=$as_save_IFS
4709  test -z "$as_dir" && as_dir=.
4710    for ac_exec_ext in '' $ac_executable_extensions; do
4711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714    break 2
4715  fi
4716done
4717  done
4718IFS=$as_save_IFS
4719
4720fi
4721fi
4722ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4723if test -n "$ac_ct_DUMPBIN"; then
4724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4725$as_echo "$ac_ct_DUMPBIN" >&6; }
4726else
4727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728$as_echo "no" >&6; }
4729fi
4730
4731
4732  test -n "$ac_ct_DUMPBIN" && break
4733done
4734
4735  if test "x$ac_ct_DUMPBIN" = x; then
4736    DUMPBIN=":"
4737  else
4738    case $cross_compiling:$ac_tool_warned in
4739yes:)
4740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742ac_tool_warned=yes ;;
4743esac
4744    DUMPBIN=$ac_ct_DUMPBIN
4745  fi
4746fi
4747
4748    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4749    *COFF*)
4750      DUMPBIN="$DUMPBIN -symbols -headers"
4751      ;;
4752    *)
4753      DUMPBIN=:
4754      ;;
4755    esac
4756  fi
4757
4758  if test : != "$DUMPBIN"; then
4759    NM=$DUMPBIN
4760  fi
4761fi
4762test -z "$NM" && NM=nm
4763
4764
4765
4766
4767
4768
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4770$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4771if ${lt_cv_nm_interface+:} false; then :
4772  $as_echo_n "(cached) " >&6
4773else
4774  lt_cv_nm_interface="BSD nm"
4775  echo "int some_variable = 0;" > conftest.$ac_ext
4776  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4777  (eval "$ac_compile" 2>conftest.err)
4778  cat conftest.err >&5
4779  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4780  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4781  cat conftest.err >&5
4782  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4783  cat conftest.out >&5
4784  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4785    lt_cv_nm_interface="MS dumpbin"
4786  fi
4787  rm -f conftest*
4788fi
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4790$as_echo "$lt_cv_nm_interface" >&6; }
4791
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4793$as_echo_n "checking whether ln -s works... " >&6; }
4794LN_S=$as_ln_s
4795if test "$LN_S" = "ln -s"; then
4796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4797$as_echo "yes" >&6; }
4798else
4799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4800$as_echo "no, using $LN_S" >&6; }
4801fi
4802
4803# find the maximum length of command line arguments
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4805$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4806if ${lt_cv_sys_max_cmd_len+:} false; then :
4807  $as_echo_n "(cached) " >&6
4808else
4809    i=0
4810  teststring=ABCD
4811
4812  case $build_os in
4813  msdosdjgpp*)
4814    # On DJGPP, this test can blow up pretty badly due to problems in libc
4815    # (any single argument exceeding 2000 bytes causes a buffer overrun
4816    # during glob expansion).  Even if it were fixed, the result of this
4817    # check would be larger than it should be.
4818    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4819    ;;
4820
4821  gnu*)
4822    # Under GNU Hurd, this test is not required because there is
4823    # no limit to the length of command line arguments.
4824    # Libtool will interpret -1 as no limit whatsoever
4825    lt_cv_sys_max_cmd_len=-1;
4826    ;;
4827
4828  cygwin* | mingw* | cegcc*)
4829    # On Win9x/ME, this test blows up -- it succeeds, but takes
4830    # about 5 minutes as the teststring grows exponentially.
4831    # Worse, since 9x/ME are not pre-emptively multitasking,
4832    # you end up with a "frozen" computer, even though with patience
4833    # the test eventually succeeds (with a max line length of 256k).
4834    # Instead, let's just punt: use the minimum linelength reported by
4835    # all of the supported platforms: 8192 (on NT/2K/XP).
4836    lt_cv_sys_max_cmd_len=8192;
4837    ;;
4838
4839  mint*)
4840    # On MiNT this can take a long time and run out of memory.
4841    lt_cv_sys_max_cmd_len=8192;
4842    ;;
4843
4844  amigaos*)
4845    # On AmigaOS with pdksh, this test takes hours, literally.
4846    # So we just punt and use a minimum line length of 8192.
4847    lt_cv_sys_max_cmd_len=8192;
4848    ;;
4849
4850  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4851    # This has been around since 386BSD, at least.  Likely further.
4852    if test -x /sbin/sysctl; then
4853      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4854    elif test -x /usr/sbin/sysctl; then
4855      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4856    else
4857      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4858    fi
4859    # And add a safety zone
4860    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4861    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4862    ;;
4863
4864  interix*)
4865    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4866    lt_cv_sys_max_cmd_len=196608
4867    ;;
4868
4869  os2*)
4870    # The test takes a long time on OS/2.
4871    lt_cv_sys_max_cmd_len=8192
4872    ;;
4873
4874  osf*)
4875    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4876    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4877    # nice to cause kernel panics so lets avoid the loop below.
4878    # First set a reasonable default.
4879    lt_cv_sys_max_cmd_len=16384
4880    #
4881    if test -x /sbin/sysconfig; then
4882      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4883        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4884      esac
4885    fi
4886    ;;
4887  sco3.2v5*)
4888    lt_cv_sys_max_cmd_len=102400
4889    ;;
4890  sysv5* | sco5v6* | sysv4.2uw2*)
4891    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4892    if test -n "$kargmax"; then
4893      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4894    else
4895      lt_cv_sys_max_cmd_len=32768
4896    fi
4897    ;;
4898  *)
4899    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4900    if test -n "$lt_cv_sys_max_cmd_len" && \
4901       test undefined != "$lt_cv_sys_max_cmd_len"; then
4902      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4903      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4904    else
4905      # Make teststring a little bigger before we do anything with it.
4906      # a 1K string should be a reasonable start.
4907      for i in 1 2 3 4 5 6 7 8; do
4908        teststring=$teststring$teststring
4909      done
4910      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4911      # If test is not a shell built-in, we'll probably end up computing a
4912      # maximum length that is only half of the actual maximum length, but
4913      # we can't tell.
4914      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4915	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4916	      test 17 != "$i" # 1/2 MB should be enough
4917      do
4918        i=`expr $i + 1`
4919        teststring=$teststring$teststring
4920      done
4921      # Only check the string length outside the loop.
4922      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4923      teststring=
4924      # Add a significant safety factor because C++ compilers can tack on
4925      # massive amounts of additional arguments before passing them to the
4926      # linker.  It appears as though 1/2 is a usable value.
4927      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4928    fi
4929    ;;
4930  esac
4931
4932fi
4933
4934if test -n "$lt_cv_sys_max_cmd_len"; then
4935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4936$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4937else
4938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4939$as_echo "none" >&6; }
4940fi
4941max_cmd_len=$lt_cv_sys_max_cmd_len
4942
4943
4944
4945
4946
4947
4948: ${CP="cp -f"}
4949: ${MV="mv -f"}
4950: ${RM="rm -f"}
4951
4952if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4953  lt_unset=unset
4954else
4955  lt_unset=false
4956fi
4957
4958
4959
4960
4961
4962# test EBCDIC or ASCII
4963case `echo X|tr X '\101'` in
4964 A) # ASCII based system
4965    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4966  lt_SP2NL='tr \040 \012'
4967  lt_NL2SP='tr \015\012 \040\040'
4968  ;;
4969 *) # EBCDIC based system
4970  lt_SP2NL='tr \100 \n'
4971  lt_NL2SP='tr \r\n \100\100'
4972  ;;
4973esac
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4984$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4985if ${lt_cv_to_host_file_cmd+:} false; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988  case $host in
4989  *-*-mingw* )
4990    case $build in
4991      *-*-mingw* ) # actually msys
4992        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4993        ;;
4994      *-*-cygwin* )
4995        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4996        ;;
4997      * ) # otherwise, assume *nix
4998        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4999        ;;
5000    esac
5001    ;;
5002  *-*-cygwin* )
5003    case $build in
5004      *-*-mingw* ) # actually msys
5005        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5006        ;;
5007      *-*-cygwin* )
5008        lt_cv_to_host_file_cmd=func_convert_file_noop
5009        ;;
5010      * ) # otherwise, assume *nix
5011        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5012        ;;
5013    esac
5014    ;;
5015  * ) # unhandled hosts (and "normal" native builds)
5016    lt_cv_to_host_file_cmd=func_convert_file_noop
5017    ;;
5018esac
5019
5020fi
5021
5022to_host_file_cmd=$lt_cv_to_host_file_cmd
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5024$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5025
5026
5027
5028
5029
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5031$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5032if ${lt_cv_to_tool_file_cmd+:} false; then :
5033  $as_echo_n "(cached) " >&6
5034else
5035  #assume ordinary cross tools, or native build.
5036lt_cv_to_tool_file_cmd=func_convert_file_noop
5037case $host in
5038  *-*-mingw* )
5039    case $build in
5040      *-*-mingw* ) # actually msys
5041        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5042        ;;
5043    esac
5044    ;;
5045esac
5046
5047fi
5048
5049to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5051$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5052
5053
5054
5055
5056
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5058$as_echo_n "checking for $LD option to reload object files... " >&6; }
5059if ${lt_cv_ld_reload_flag+:} false; then :
5060  $as_echo_n "(cached) " >&6
5061else
5062  lt_cv_ld_reload_flag='-r'
5063fi
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5065$as_echo "$lt_cv_ld_reload_flag" >&6; }
5066reload_flag=$lt_cv_ld_reload_flag
5067case $reload_flag in
5068"" | " "*) ;;
5069*) reload_flag=" $reload_flag" ;;
5070esac
5071reload_cmds='$LD$reload_flag -o $output$reload_objs'
5072case $host_os in
5073  cygwin* | mingw* | pw32* | cegcc*)
5074    if test yes != "$GCC"; then
5075      reload_cmds=false
5076    fi
5077    ;;
5078  darwin*)
5079    if test yes = "$GCC"; then
5080      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5081    else
5082      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5083    fi
5084    ;;
5085esac
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095if test -n "$ac_tool_prefix"; then
5096  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5097set dummy ${ac_tool_prefix}objdump; ac_word=$2
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099$as_echo_n "checking for $ac_word... " >&6; }
5100if ${ac_cv_prog_OBJDUMP+:} false; then :
5101  $as_echo_n "(cached) " >&6
5102else
5103  if test -n "$OBJDUMP"; then
5104  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109  IFS=$as_save_IFS
5110  test -z "$as_dir" && as_dir=.
5111    for ac_exec_ext in '' $ac_executable_extensions; do
5112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115    break 2
5116  fi
5117done
5118  done
5119IFS=$as_save_IFS
5120
5121fi
5122fi
5123OBJDUMP=$ac_cv_prog_OBJDUMP
5124if test -n "$OBJDUMP"; then
5125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5126$as_echo "$OBJDUMP" >&6; }
5127else
5128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129$as_echo "no" >&6; }
5130fi
5131
5132
5133fi
5134if test -z "$ac_cv_prog_OBJDUMP"; then
5135  ac_ct_OBJDUMP=$OBJDUMP
5136  # Extract the first word of "objdump", so it can be a program name with args.
5137set dummy objdump; ac_word=$2
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139$as_echo_n "checking for $ac_word... " >&6; }
5140if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5141  $as_echo_n "(cached) " >&6
5142else
5143  if test -n "$ac_ct_OBJDUMP"; then
5144  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5145else
5146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149  IFS=$as_save_IFS
5150  test -z "$as_dir" && as_dir=.
5151    for ac_exec_ext in '' $ac_executable_extensions; do
5152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155    break 2
5156  fi
5157done
5158  done
5159IFS=$as_save_IFS
5160
5161fi
5162fi
5163ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5164if test -n "$ac_ct_OBJDUMP"; then
5165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5166$as_echo "$ac_ct_OBJDUMP" >&6; }
5167else
5168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169$as_echo "no" >&6; }
5170fi
5171
5172  if test "x$ac_ct_OBJDUMP" = x; then
5173    OBJDUMP="false"
5174  else
5175    case $cross_compiling:$ac_tool_warned in
5176yes:)
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5179ac_tool_warned=yes ;;
5180esac
5181    OBJDUMP=$ac_ct_OBJDUMP
5182  fi
5183else
5184  OBJDUMP="$ac_cv_prog_OBJDUMP"
5185fi
5186
5187test -z "$OBJDUMP" && OBJDUMP=objdump
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5198$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5199if ${lt_cv_deplibs_check_method+:} false; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202  lt_cv_file_magic_cmd='$MAGIC_CMD'
5203lt_cv_file_magic_test_file=
5204lt_cv_deplibs_check_method='unknown'
5205# Need to set the preceding variable on all platforms that support
5206# interlibrary dependencies.
5207# 'none' -- dependencies not supported.
5208# 'unknown' -- same as none, but documents that we really don't know.
5209# 'pass_all' -- all dependencies passed with no checks.
5210# 'test_compile' -- check by making test program.
5211# 'file_magic [[regex]]' -- check by looking for files in library path
5212# that responds to the $file_magic_cmd with a given extended regex.
5213# If you have 'file' or equivalent on your system and you're not sure
5214# whether 'pass_all' will *always* work, you probably want this one.
5215
5216case $host_os in
5217aix[4-9]*)
5218  lt_cv_deplibs_check_method=pass_all
5219  ;;
5220
5221beos*)
5222  lt_cv_deplibs_check_method=pass_all
5223  ;;
5224
5225bsdi[45]*)
5226  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5227  lt_cv_file_magic_cmd='/usr/bin/file -L'
5228  lt_cv_file_magic_test_file=/shlib/libc.so
5229  ;;
5230
5231cygwin*)
5232  # func_win32_libid is a shell function defined in ltmain.sh
5233  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5234  lt_cv_file_magic_cmd='func_win32_libid'
5235  ;;
5236
5237mingw* | pw32*)
5238  # Base MSYS/MinGW do not provide the 'file' command needed by
5239  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5240  # unless we find 'file', for example because we are cross-compiling.
5241  if ( file / ) >/dev/null 2>&1; then
5242    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5243    lt_cv_file_magic_cmd='func_win32_libid'
5244  else
5245    # Keep this pattern in sync with the one in func_win32_libid.
5246    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5247    lt_cv_file_magic_cmd='$OBJDUMP -f'
5248  fi
5249  ;;
5250
5251cegcc*)
5252  # use the weaker test based on 'objdump'. See mingw*.
5253  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5254  lt_cv_file_magic_cmd='$OBJDUMP -f'
5255  ;;
5256
5257darwin* | rhapsody*)
5258  lt_cv_deplibs_check_method=pass_all
5259  ;;
5260
5261freebsd* | dragonfly*)
5262  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5263    case $host_cpu in
5264    i*86 )
5265      # Not sure whether the presence of OpenBSD here was a mistake.
5266      # Let's accept both of them until this is cleared up.
5267      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5268      lt_cv_file_magic_cmd=/usr/bin/file
5269      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5270      ;;
5271    esac
5272  else
5273    lt_cv_deplibs_check_method=pass_all
5274  fi
5275  ;;
5276
5277haiku*)
5278  lt_cv_deplibs_check_method=pass_all
5279  ;;
5280
5281hpux10.20* | hpux11*)
5282  lt_cv_file_magic_cmd=/usr/bin/file
5283  case $host_cpu in
5284  ia64*)
5285    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5286    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5287    ;;
5288  hppa*64*)
5289    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]'
5290    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5291    ;;
5292  *)
5293    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5294    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5295    ;;
5296  esac
5297  ;;
5298
5299interix[3-9]*)
5300  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5301  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5302  ;;
5303
5304irix5* | irix6* | nonstopux*)
5305  case $LD in
5306  *-32|*"-32 ") libmagic=32-bit;;
5307  *-n32|*"-n32 ") libmagic=N32;;
5308  *-64|*"-64 ") libmagic=64-bit;;
5309  *) libmagic=never-match;;
5310  esac
5311  lt_cv_deplibs_check_method=pass_all
5312  ;;
5313
5314# This must be glibc/ELF.
5315linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5316  lt_cv_deplibs_check_method=pass_all
5317  ;;
5318
5319netbsd*)
5320  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5321    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5322  else
5323    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5324  fi
5325  ;;
5326
5327newos6*)
5328  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5329  lt_cv_file_magic_cmd=/usr/bin/file
5330  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5331  ;;
5332
5333*nto* | *qnx*)
5334  lt_cv_deplibs_check_method=pass_all
5335  ;;
5336
5337openbsd* | bitrig*)
5338  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5339    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5340  else
5341    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5342  fi
5343  ;;
5344
5345osf3* | osf4* | osf5*)
5346  lt_cv_deplibs_check_method=pass_all
5347  ;;
5348
5349rdos*)
5350  lt_cv_deplibs_check_method=pass_all
5351  ;;
5352
5353solaris*)
5354  lt_cv_deplibs_check_method=pass_all
5355  ;;
5356
5357sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5358  lt_cv_deplibs_check_method=pass_all
5359  ;;
5360
5361sysv4 | sysv4.3*)
5362  case $host_vendor in
5363  motorola)
5364    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]'
5365    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5366    ;;
5367  ncr)
5368    lt_cv_deplibs_check_method=pass_all
5369    ;;
5370  sequent)
5371    lt_cv_file_magic_cmd='/bin/file'
5372    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5373    ;;
5374  sni)
5375    lt_cv_file_magic_cmd='/bin/file'
5376    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5377    lt_cv_file_magic_test_file=/lib/libc.so
5378    ;;
5379  siemens)
5380    lt_cv_deplibs_check_method=pass_all
5381    ;;
5382  pc)
5383    lt_cv_deplibs_check_method=pass_all
5384    ;;
5385  esac
5386  ;;
5387
5388tpf*)
5389  lt_cv_deplibs_check_method=pass_all
5390  ;;
5391os2*)
5392  lt_cv_deplibs_check_method=pass_all
5393  ;;
5394esac
5395
5396fi
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5398$as_echo "$lt_cv_deplibs_check_method" >&6; }
5399
5400file_magic_glob=
5401want_nocaseglob=no
5402if test "$build" = "$host"; then
5403  case $host_os in
5404  mingw* | pw32*)
5405    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5406      want_nocaseglob=yes
5407    else
5408      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5409    fi
5410    ;;
5411  esac
5412fi
5413
5414file_magic_cmd=$lt_cv_file_magic_cmd
5415deplibs_check_method=$lt_cv_deplibs_check_method
5416test -z "$deplibs_check_method" && deplibs_check_method=unknown
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439if test -n "$ac_tool_prefix"; then
5440  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5441set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443$as_echo_n "checking for $ac_word... " >&6; }
5444if ${ac_cv_prog_DLLTOOL+:} false; then :
5445  $as_echo_n "(cached) " >&6
5446else
5447  if test -n "$DLLTOOL"; then
5448  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5449else
5450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453  IFS=$as_save_IFS
5454  test -z "$as_dir" && as_dir=.
5455    for ac_exec_ext in '' $ac_executable_extensions; do
5456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459    break 2
5460  fi
5461done
5462  done
5463IFS=$as_save_IFS
5464
5465fi
5466fi
5467DLLTOOL=$ac_cv_prog_DLLTOOL
5468if test -n "$DLLTOOL"; then
5469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5470$as_echo "$DLLTOOL" >&6; }
5471else
5472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473$as_echo "no" >&6; }
5474fi
5475
5476
5477fi
5478if test -z "$ac_cv_prog_DLLTOOL"; then
5479  ac_ct_DLLTOOL=$DLLTOOL
5480  # Extract the first word of "dlltool", so it can be a program name with args.
5481set dummy dlltool; ac_word=$2
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483$as_echo_n "checking for $ac_word... " >&6; }
5484if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5485  $as_echo_n "(cached) " >&6
5486else
5487  if test -n "$ac_ct_DLLTOOL"; then
5488  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5489else
5490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH
5492do
5493  IFS=$as_save_IFS
5494  test -z "$as_dir" && as_dir=.
5495    for ac_exec_ext in '' $ac_executable_extensions; do
5496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499    break 2
5500  fi
5501done
5502  done
5503IFS=$as_save_IFS
5504
5505fi
5506fi
5507ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5508if test -n "$ac_ct_DLLTOOL"; then
5509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5510$as_echo "$ac_ct_DLLTOOL" >&6; }
5511else
5512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513$as_echo "no" >&6; }
5514fi
5515
5516  if test "x$ac_ct_DLLTOOL" = x; then
5517    DLLTOOL="false"
5518  else
5519    case $cross_compiling:$ac_tool_warned in
5520yes:)
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523ac_tool_warned=yes ;;
5524esac
5525    DLLTOOL=$ac_ct_DLLTOOL
5526  fi
5527else
5528  DLLTOOL="$ac_cv_prog_DLLTOOL"
5529fi
5530
5531test -z "$DLLTOOL" && DLLTOOL=dlltool
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5543$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5544if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5545  $as_echo_n "(cached) " >&6
5546else
5547  lt_cv_sharedlib_from_linklib_cmd='unknown'
5548
5549case $host_os in
5550cygwin* | mingw* | pw32* | cegcc*)
5551  # two different shell functions defined in ltmain.sh;
5552  # decide which one to use based on capabilities of $DLLTOOL
5553  case `$DLLTOOL --help 2>&1` in
5554  *--identify-strict*)
5555    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5556    ;;
5557  *)
5558    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5559    ;;
5560  esac
5561  ;;
5562*)
5563  # fallback: assume linklib IS sharedlib
5564  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5565  ;;
5566esac
5567
5568fi
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5570$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5571sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5572test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5573
5574
5575
5576
5577
5578
5579
5580
5581if test -n "$ac_tool_prefix"; then
5582  for ac_prog in ar
5583  do
5584    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5585set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587$as_echo_n "checking for $ac_word... " >&6; }
5588if ${ac_cv_prog_AR+:} false; then :
5589  $as_echo_n "(cached) " >&6
5590else
5591  if test -n "$AR"; then
5592  ac_cv_prog_AR="$AR" # Let the user override the test.
5593else
5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595for as_dir in $PATH
5596do
5597  IFS=$as_save_IFS
5598  test -z "$as_dir" && as_dir=.
5599    for ac_exec_ext in '' $ac_executable_extensions; do
5600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603    break 2
5604  fi
5605done
5606  done
5607IFS=$as_save_IFS
5608
5609fi
5610fi
5611AR=$ac_cv_prog_AR
5612if test -n "$AR"; then
5613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5614$as_echo "$AR" >&6; }
5615else
5616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617$as_echo "no" >&6; }
5618fi
5619
5620
5621    test -n "$AR" && break
5622  done
5623fi
5624if test -z "$AR"; then
5625  ac_ct_AR=$AR
5626  for ac_prog in ar
5627do
5628  # Extract the first word of "$ac_prog", so it can be a program name with args.
5629set dummy $ac_prog; ac_word=$2
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631$as_echo_n "checking for $ac_word... " >&6; }
5632if ${ac_cv_prog_ac_ct_AR+:} false; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635  if test -n "$ac_ct_AR"; then
5636  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5637else
5638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639for as_dir in $PATH
5640do
5641  IFS=$as_save_IFS
5642  test -z "$as_dir" && as_dir=.
5643    for ac_exec_ext in '' $ac_executable_extensions; do
5644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645    ac_cv_prog_ac_ct_AR="$ac_prog"
5646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647    break 2
5648  fi
5649done
5650  done
5651IFS=$as_save_IFS
5652
5653fi
5654fi
5655ac_ct_AR=$ac_cv_prog_ac_ct_AR
5656if test -n "$ac_ct_AR"; then
5657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5658$as_echo "$ac_ct_AR" >&6; }
5659else
5660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661$as_echo "no" >&6; }
5662fi
5663
5664
5665  test -n "$ac_ct_AR" && break
5666done
5667
5668  if test "x$ac_ct_AR" = x; then
5669    AR="false"
5670  else
5671    case $cross_compiling:$ac_tool_warned in
5672yes:)
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5675ac_tool_warned=yes ;;
5676esac
5677    AR=$ac_ct_AR
5678  fi
5679fi
5680
5681: ${AR=ar}
5682: ${AR_FLAGS=cru}
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5695$as_echo_n "checking for archiver @FILE support... " >&6; }
5696if ${lt_cv_ar_at_file+:} false; then :
5697  $as_echo_n "(cached) " >&6
5698else
5699  lt_cv_ar_at_file=no
5700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701/* end confdefs.h.  */
5702
5703int
5704main ()
5705{
5706
5707  ;
5708  return 0;
5709}
5710_ACEOF
5711if ac_fn_c_try_compile "$LINENO"; then :
5712  echo conftest.$ac_objext > conftest.lst
5713      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5714      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5715  (eval $lt_ar_try) 2>&5
5716  ac_status=$?
5717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5718  test $ac_status = 0; }
5719      if test 0 -eq "$ac_status"; then
5720	# Ensure the archiver fails upon bogus file names.
5721	rm -f conftest.$ac_objext libconftest.a
5722	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5723  (eval $lt_ar_try) 2>&5
5724  ac_status=$?
5725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5726  test $ac_status = 0; }
5727	if test 0 -ne "$ac_status"; then
5728          lt_cv_ar_at_file=@
5729        fi
5730      fi
5731      rm -f conftest.* libconftest.a
5732
5733fi
5734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735
5736fi
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5738$as_echo "$lt_cv_ar_at_file" >&6; }
5739
5740if test no = "$lt_cv_ar_at_file"; then
5741  archiver_list_spec=
5742else
5743  archiver_list_spec=$lt_cv_ar_at_file
5744fi
5745
5746
5747
5748
5749
5750
5751
5752if test -n "$ac_tool_prefix"; then
5753  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5754set dummy ${ac_tool_prefix}strip; ac_word=$2
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756$as_echo_n "checking for $ac_word... " >&6; }
5757if ${ac_cv_prog_STRIP+:} false; then :
5758  $as_echo_n "(cached) " >&6
5759else
5760  if test -n "$STRIP"; then
5761  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766  IFS=$as_save_IFS
5767  test -z "$as_dir" && as_dir=.
5768    for ac_exec_ext in '' $ac_executable_extensions; do
5769  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5771    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772    break 2
5773  fi
5774done
5775  done
5776IFS=$as_save_IFS
5777
5778fi
5779fi
5780STRIP=$ac_cv_prog_STRIP
5781if test -n "$STRIP"; then
5782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5783$as_echo "$STRIP" >&6; }
5784else
5785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786$as_echo "no" >&6; }
5787fi
5788
5789
5790fi
5791if test -z "$ac_cv_prog_STRIP"; then
5792  ac_ct_STRIP=$STRIP
5793  # Extract the first word of "strip", so it can be a program name with args.
5794set dummy strip; ac_word=$2
5795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5796$as_echo_n "checking for $ac_word... " >&6; }
5797if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5798  $as_echo_n "(cached) " >&6
5799else
5800  if test -n "$ac_ct_STRIP"; then
5801  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5802else
5803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806  IFS=$as_save_IFS
5807  test -z "$as_dir" && as_dir=.
5808    for ac_exec_ext in '' $ac_executable_extensions; do
5809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810    ac_cv_prog_ac_ct_STRIP="strip"
5811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812    break 2
5813  fi
5814done
5815  done
5816IFS=$as_save_IFS
5817
5818fi
5819fi
5820ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5821if test -n "$ac_ct_STRIP"; then
5822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5823$as_echo "$ac_ct_STRIP" >&6; }
5824else
5825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826$as_echo "no" >&6; }
5827fi
5828
5829  if test "x$ac_ct_STRIP" = x; then
5830    STRIP=":"
5831  else
5832    case $cross_compiling:$ac_tool_warned in
5833yes:)
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836ac_tool_warned=yes ;;
5837esac
5838    STRIP=$ac_ct_STRIP
5839  fi
5840else
5841  STRIP="$ac_cv_prog_STRIP"
5842fi
5843
5844test -z "$STRIP" && STRIP=:
5845
5846
5847
5848
5849
5850
5851if test -n "$ac_tool_prefix"; then
5852  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5853set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5855$as_echo_n "checking for $ac_word... " >&6; }
5856if ${ac_cv_prog_RANLIB+:} false; then :
5857  $as_echo_n "(cached) " >&6
5858else
5859  if test -n "$RANLIB"; then
5860  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5861else
5862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863for as_dir in $PATH
5864do
5865  IFS=$as_save_IFS
5866  test -z "$as_dir" && as_dir=.
5867    for ac_exec_ext in '' $ac_executable_extensions; do
5868  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5869    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5871    break 2
5872  fi
5873done
5874  done
5875IFS=$as_save_IFS
5876
5877fi
5878fi
5879RANLIB=$ac_cv_prog_RANLIB
5880if test -n "$RANLIB"; then
5881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5882$as_echo "$RANLIB" >&6; }
5883else
5884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885$as_echo "no" >&6; }
5886fi
5887
5888
5889fi
5890if test -z "$ac_cv_prog_RANLIB"; then
5891  ac_ct_RANLIB=$RANLIB
5892  # Extract the first word of "ranlib", so it can be a program name with args.
5893set dummy ranlib; ac_word=$2
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895$as_echo_n "checking for $ac_word... " >&6; }
5896if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5897  $as_echo_n "(cached) " >&6
5898else
5899  if test -n "$ac_ct_RANLIB"; then
5900  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5901else
5902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903for as_dir in $PATH
5904do
5905  IFS=$as_save_IFS
5906  test -z "$as_dir" && as_dir=.
5907    for ac_exec_ext in '' $ac_executable_extensions; do
5908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909    ac_cv_prog_ac_ct_RANLIB="ranlib"
5910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911    break 2
5912  fi
5913done
5914  done
5915IFS=$as_save_IFS
5916
5917fi
5918fi
5919ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5920if test -n "$ac_ct_RANLIB"; then
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5922$as_echo "$ac_ct_RANLIB" >&6; }
5923else
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925$as_echo "no" >&6; }
5926fi
5927
5928  if test "x$ac_ct_RANLIB" = x; then
5929    RANLIB=":"
5930  else
5931    case $cross_compiling:$ac_tool_warned in
5932yes:)
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5935ac_tool_warned=yes ;;
5936esac
5937    RANLIB=$ac_ct_RANLIB
5938  fi
5939else
5940  RANLIB="$ac_cv_prog_RANLIB"
5941fi
5942
5943test -z "$RANLIB" && RANLIB=:
5944
5945
5946
5947
5948
5949
5950# Determine commands to create old-style static archives.
5951old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5952old_postinstall_cmds='chmod 644 $oldlib'
5953old_postuninstall_cmds=
5954
5955if test -n "$RANLIB"; then
5956  case $host_os in
5957  bitrig* | openbsd*)
5958    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5959    ;;
5960  *)
5961    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5962    ;;
5963  esac
5964  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5965fi
5966
5967case $host_os in
5968  darwin*)
5969    lock_old_archive_extraction=yes ;;
5970  *)
5971    lock_old_archive_extraction=no ;;
5972esac
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012# If no C compiler was specified, use CC.
6013LTCC=${LTCC-"$CC"}
6014
6015# If no C compiler flags were specified, use CFLAGS.
6016LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6017
6018# Allow CC to be a program name with arguments.
6019compiler=$CC
6020
6021
6022# Check for command to grab the raw symbol name followed by C symbol from nm.
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6024$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6025if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6026  $as_echo_n "(cached) " >&6
6027else
6028
6029# These are sane defaults that work on at least a few old systems.
6030# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6031
6032# Character class describing NM global symbol codes.
6033symcode='[BCDEGRST]'
6034
6035# Regexp to match symbols that can be accessed directly from C.
6036sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6037
6038# Define system-specific variables.
6039case $host_os in
6040aix*)
6041  symcode='[BCDT]'
6042  ;;
6043cygwin* | mingw* | pw32* | cegcc*)
6044  symcode='[ABCDGISTW]'
6045  ;;
6046hpux*)
6047  if test ia64 = "$host_cpu"; then
6048    symcode='[ABCDEGRST]'
6049  fi
6050  ;;
6051irix* | nonstopux*)
6052  symcode='[BCDEGRST]'
6053  ;;
6054osf*)
6055  symcode='[BCDEGQRST]'
6056  ;;
6057solaris*)
6058  symcode='[BDRT]'
6059  ;;
6060sco3.2v5*)
6061  symcode='[DT]'
6062  ;;
6063sysv4.2uw2*)
6064  symcode='[DT]'
6065  ;;
6066sysv5* | sco5v6* | unixware* | OpenUNIX*)
6067  symcode='[ABDT]'
6068  ;;
6069sysv4)
6070  symcode='[DFNSTU]'
6071  ;;
6072esac
6073
6074# If we're using GNU nm, then use its standard symbol codes.
6075case `$NM -V 2>&1` in
6076*GNU* | *'with BFD'*)
6077  symcode='[ABCDGIRSTW]' ;;
6078esac
6079
6080if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6081  # Gets list of data symbols to import.
6082  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6083  # Adjust the below global symbol transforms to fixup imported variables.
6084  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6085  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6086  lt_c_name_lib_hook="\
6087  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6088  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6089else
6090  # Disable hooks by default.
6091  lt_cv_sys_global_symbol_to_import=
6092  lt_cdecl_hook=
6093  lt_c_name_hook=
6094  lt_c_name_lib_hook=
6095fi
6096
6097# Transform an extracted symbol line into a proper C declaration.
6098# Some systems (esp. on ia64) link data and code symbols differently,
6099# so use this general approach.
6100lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6101$lt_cdecl_hook\
6102" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6103" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6104
6105# Transform an extracted symbol line into symbol name and symbol address
6106lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6107$lt_c_name_hook\
6108" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6109" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6110
6111# Transform an extracted symbol line into symbol name with lib prefix and
6112# symbol address.
6113lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6114$lt_c_name_lib_hook\
6115" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6116" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6117" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6118
6119# Handle CRLF in mingw tool chain
6120opt_cr=
6121case $build_os in
6122mingw*)
6123  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6124  ;;
6125esac
6126
6127# Try without a prefix underscore, then with it.
6128for ac_symprfx in "" "_"; do
6129
6130  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6131  symxfrm="\\1 $ac_symprfx\\2 \\2"
6132
6133  # Write the raw and C identifiers.
6134  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6135    # Fake it for dumpbin and say T for any non-static function,
6136    # D for any global variable and I for any imported variable.
6137    # Also find C++ and __fastcall symbols from MSVC++,
6138    # which start with @ or ?.
6139    lt_cv_sys_global_symbol_pipe="$AWK '"\
6140"     {last_section=section; section=\$ 3};"\
6141"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6142"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6143"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6144"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6145"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6146"     \$ 0!~/External *\|/{next};"\
6147"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6148"     {if(hide[section]) next};"\
6149"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6150"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6151"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6152"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6153"     ' prfx=^$ac_symprfx"
6154  else
6155    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6156  fi
6157  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6158
6159  # Check to see that the pipe works correctly.
6160  pipe_works=no
6161
6162  rm -f conftest*
6163  cat > conftest.$ac_ext <<_LT_EOF
6164#ifdef __cplusplus
6165extern "C" {
6166#endif
6167char nm_test_var;
6168void nm_test_func(void);
6169void nm_test_func(void){}
6170#ifdef __cplusplus
6171}
6172#endif
6173int main(){nm_test_var='a';nm_test_func();return(0);}
6174_LT_EOF
6175
6176  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6177  (eval $ac_compile) 2>&5
6178  ac_status=$?
6179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6180  test $ac_status = 0; }; then
6181    # Now try to grab the symbols.
6182    nlist=conftest.nm
6183    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6184  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6185  ac_status=$?
6186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187  test $ac_status = 0; } && test -s "$nlist"; then
6188      # Try sorting and uniquifying the output.
6189      if sort "$nlist" | uniq > "$nlist"T; then
6190	mv -f "$nlist"T "$nlist"
6191      else
6192	rm -f "$nlist"T
6193      fi
6194
6195      # Make sure that we snagged all the symbols we need.
6196      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6197	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6198	  cat <<_LT_EOF > conftest.$ac_ext
6199/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6200#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6201/* DATA imports from DLLs on WIN32 can't be const, because runtime
6202   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6203# define LT_DLSYM_CONST
6204#elif defined __osf__
6205/* This system does not cope well with relocations in const data.  */
6206# define LT_DLSYM_CONST
6207#else
6208# define LT_DLSYM_CONST const
6209#endif
6210
6211#ifdef __cplusplus
6212extern "C" {
6213#endif
6214
6215_LT_EOF
6216	  # Now generate the symbol file.
6217	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6218
6219	  cat <<_LT_EOF >> conftest.$ac_ext
6220
6221/* The mapping between symbol names and symbols.  */
6222LT_DLSYM_CONST struct {
6223  const char *name;
6224  void       *address;
6225}
6226lt__PROGRAM__LTX_preloaded_symbols[] =
6227{
6228  { "@PROGRAM@", (void *) 0 },
6229_LT_EOF
6230	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6231	  cat <<\_LT_EOF >> conftest.$ac_ext
6232  {0, (void *) 0}
6233};
6234
6235/* This works around a problem in FreeBSD linker */
6236#ifdef FREEBSD_WORKAROUND
6237static const void *lt_preloaded_setup() {
6238  return lt__PROGRAM__LTX_preloaded_symbols;
6239}
6240#endif
6241
6242#ifdef __cplusplus
6243}
6244#endif
6245_LT_EOF
6246	  # Now try linking the two files.
6247	  mv conftest.$ac_objext conftstm.$ac_objext
6248	  lt_globsym_save_LIBS=$LIBS
6249	  lt_globsym_save_CFLAGS=$CFLAGS
6250	  LIBS=conftstm.$ac_objext
6251	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6252	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6253  (eval $ac_link) 2>&5
6254  ac_status=$?
6255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6257	    pipe_works=yes
6258	  fi
6259	  LIBS=$lt_globsym_save_LIBS
6260	  CFLAGS=$lt_globsym_save_CFLAGS
6261	else
6262	  echo "cannot find nm_test_func in $nlist" >&5
6263	fi
6264      else
6265	echo "cannot find nm_test_var in $nlist" >&5
6266      fi
6267    else
6268      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6269    fi
6270  else
6271    echo "$progname: failed program was:" >&5
6272    cat conftest.$ac_ext >&5
6273  fi
6274  rm -rf conftest* conftst*
6275
6276  # Do not use the global_symbol_pipe unless it works.
6277  if test yes = "$pipe_works"; then
6278    break
6279  else
6280    lt_cv_sys_global_symbol_pipe=
6281  fi
6282done
6283
6284fi
6285
6286if test -z "$lt_cv_sys_global_symbol_pipe"; then
6287  lt_cv_sys_global_symbol_to_cdecl=
6288fi
6289if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6291$as_echo "failed" >&6; }
6292else
6293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6294$as_echo "ok" >&6; }
6295fi
6296
6297# Response file support.
6298if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6299  nm_file_list_spec='@'
6300elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6301  nm_file_list_spec='@'
6302fi
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6341$as_echo_n "checking for sysroot... " >&6; }
6342
6343# Check whether --with-sysroot was given.
6344if test "${with_sysroot+set}" = set; then :
6345  withval=$with_sysroot;
6346else
6347  with_sysroot=no
6348fi
6349
6350
6351lt_sysroot=
6352case $with_sysroot in #(
6353 yes)
6354   if test yes = "$GCC"; then
6355     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6356   fi
6357   ;; #(
6358 /*)
6359   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6360   ;; #(
6361 no|'')
6362   ;; #(
6363 *)
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6365$as_echo "$with_sysroot" >&6; }
6366   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6367   ;;
6368esac
6369
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6371$as_echo "${lt_sysroot:-no}" >&6; }
6372
6373
6374
6375
6376
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6378$as_echo_n "checking for a working dd... " >&6; }
6379if ${ac_cv_path_lt_DD+:} false; then :
6380  $as_echo_n "(cached) " >&6
6381else
6382  printf 0123456789abcdef0123456789abcdef >conftest.i
6383cat conftest.i conftest.i >conftest2.i
6384: ${lt_DD:=$DD}
6385if test -z "$lt_DD"; then
6386  ac_path_lt_DD_found=false
6387  # Loop through the user's path and test for each of PROGNAME-LIST
6388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389for as_dir in $PATH
6390do
6391  IFS=$as_save_IFS
6392  test -z "$as_dir" && as_dir=.
6393    for ac_prog in dd; do
6394    for ac_exec_ext in '' $ac_executable_extensions; do
6395      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6396      as_fn_executable_p "$ac_path_lt_DD" || continue
6397if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6398  cmp -s conftest.i conftest.out \
6399  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6400fi
6401      $ac_path_lt_DD_found && break 3
6402    done
6403  done
6404  done
6405IFS=$as_save_IFS
6406  if test -z "$ac_cv_path_lt_DD"; then
6407    :
6408  fi
6409else
6410  ac_cv_path_lt_DD=$lt_DD
6411fi
6412
6413rm -f conftest.i conftest2.i conftest.out
6414fi
6415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6416$as_echo "$ac_cv_path_lt_DD" >&6; }
6417
6418
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6420$as_echo_n "checking how to truncate binary pipes... " >&6; }
6421if ${lt_cv_truncate_bin+:} false; then :
6422  $as_echo_n "(cached) " >&6
6423else
6424  printf 0123456789abcdef0123456789abcdef >conftest.i
6425cat conftest.i conftest.i >conftest2.i
6426lt_cv_truncate_bin=
6427if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6428  cmp -s conftest.i conftest.out \
6429  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6430fi
6431rm -f conftest.i conftest2.i conftest.out
6432test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6433fi
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6435$as_echo "$lt_cv_truncate_bin" >&6; }
6436
6437
6438
6439
6440
6441
6442
6443# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6444func_cc_basename ()
6445{
6446    for cc_temp in $*""; do
6447      case $cc_temp in
6448        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6449        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6450        \-*) ;;
6451        *) break;;
6452      esac
6453    done
6454    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6455}
6456
6457# Check whether --enable-libtool-lock was given.
6458if test "${enable_libtool_lock+set}" = set; then :
6459  enableval=$enable_libtool_lock;
6460fi
6461
6462test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6463
6464# Some flags need to be propagated to the compiler or linker for good
6465# libtool support.
6466case $host in
6467ia64-*-hpux*)
6468  # Find out what ABI is being produced by ac_compile, and set mode
6469  # options accordingly.
6470  echo 'int i;' > conftest.$ac_ext
6471  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6472  (eval $ac_compile) 2>&5
6473  ac_status=$?
6474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475  test $ac_status = 0; }; then
6476    case `/usr/bin/file conftest.$ac_objext` in
6477      *ELF-32*)
6478	HPUX_IA64_MODE=32
6479	;;
6480      *ELF-64*)
6481	HPUX_IA64_MODE=64
6482	;;
6483    esac
6484  fi
6485  rm -rf conftest*
6486  ;;
6487*-*-irix6*)
6488  # Find out what ABI is being produced by ac_compile, and set linker
6489  # options accordingly.
6490  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6491  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6492  (eval $ac_compile) 2>&5
6493  ac_status=$?
6494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6495  test $ac_status = 0; }; then
6496    if test yes = "$lt_cv_prog_gnu_ld"; then
6497      case `/usr/bin/file conftest.$ac_objext` in
6498	*32-bit*)
6499	  LD="${LD-ld} -melf32bsmip"
6500	  ;;
6501	*N32*)
6502	  LD="${LD-ld} -melf32bmipn32"
6503	  ;;
6504	*64-bit*)
6505	  LD="${LD-ld} -melf64bmip"
6506	;;
6507      esac
6508    else
6509      case `/usr/bin/file conftest.$ac_objext` in
6510	*32-bit*)
6511	  LD="${LD-ld} -32"
6512	  ;;
6513	*N32*)
6514	  LD="${LD-ld} -n32"
6515	  ;;
6516	*64-bit*)
6517	  LD="${LD-ld} -64"
6518	  ;;
6519      esac
6520    fi
6521  fi
6522  rm -rf conftest*
6523  ;;
6524
6525mips64*-*linux*)
6526  # Find out what ABI is being produced by ac_compile, and set linker
6527  # options accordingly.
6528  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6529  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6530  (eval $ac_compile) 2>&5
6531  ac_status=$?
6532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6533  test $ac_status = 0; }; then
6534    emul=elf
6535    case `/usr/bin/file conftest.$ac_objext` in
6536      *32-bit*)
6537	emul="${emul}32"
6538	;;
6539      *64-bit*)
6540	emul="${emul}64"
6541	;;
6542    esac
6543    case `/usr/bin/file conftest.$ac_objext` in
6544      *MSB*)
6545	emul="${emul}btsmip"
6546	;;
6547      *LSB*)
6548	emul="${emul}ltsmip"
6549	;;
6550    esac
6551    case `/usr/bin/file conftest.$ac_objext` in
6552      *N32*)
6553	emul="${emul}n32"
6554	;;
6555    esac
6556    LD="${LD-ld} -m $emul"
6557  fi
6558  rm -rf conftest*
6559  ;;
6560
6561x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6562s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6563  # Find out what ABI is being produced by ac_compile, and set linker
6564  # options accordingly.  Note that the listed cases only cover the
6565  # situations where additional linker options are needed (such as when
6566  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6567  # vice versa); the common cases where no linker options are needed do
6568  # not appear in the list.
6569  echo 'int i;' > conftest.$ac_ext
6570  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6571  (eval $ac_compile) 2>&5
6572  ac_status=$?
6573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574  test $ac_status = 0; }; then
6575    case `/usr/bin/file conftest.o` in
6576      *32-bit*)
6577	case $host in
6578	  x86_64-*kfreebsd*-gnu)
6579	    LD="${LD-ld} -m elf_i386_fbsd"
6580	    ;;
6581	  x86_64-*linux*)
6582	    case `/usr/bin/file conftest.o` in
6583	      *x86-64*)
6584		LD="${LD-ld} -m elf32_x86_64"
6585		;;
6586	      *)
6587		LD="${LD-ld} -m elf_i386"
6588		;;
6589	    esac
6590	    ;;
6591	  powerpc64le-*linux*)
6592	    LD="${LD-ld} -m elf32lppclinux"
6593	    ;;
6594	  powerpc64-*linux*)
6595	    LD="${LD-ld} -m elf32ppclinux"
6596	    ;;
6597	  s390x-*linux*)
6598	    LD="${LD-ld} -m elf_s390"
6599	    ;;
6600	  sparc64-*linux*)
6601	    LD="${LD-ld} -m elf32_sparc"
6602	    ;;
6603	esac
6604	;;
6605      *64-bit*)
6606	case $host in
6607	  x86_64-*kfreebsd*-gnu)
6608	    LD="${LD-ld} -m elf_x86_64_fbsd"
6609	    ;;
6610	  x86_64-*linux*)
6611	    LD="${LD-ld} -m elf_x86_64"
6612	    ;;
6613	  powerpcle-*linux*)
6614	    LD="${LD-ld} -m elf64lppc"
6615	    ;;
6616	  powerpc-*linux*)
6617	    LD="${LD-ld} -m elf64ppc"
6618	    ;;
6619	  s390*-*linux*|s390*-*tpf*)
6620	    LD="${LD-ld} -m elf64_s390"
6621	    ;;
6622	  sparc*-*linux*)
6623	    LD="${LD-ld} -m elf64_sparc"
6624	    ;;
6625	esac
6626	;;
6627    esac
6628  fi
6629  rm -rf conftest*
6630  ;;
6631
6632*-*-sco3.2v5*)
6633  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6634  SAVE_CFLAGS=$CFLAGS
6635  CFLAGS="$CFLAGS -belf"
6636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6637$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6638if ${lt_cv_cc_needs_belf+:} false; then :
6639  $as_echo_n "(cached) " >&6
6640else
6641  ac_ext=c
6642ac_cpp='$CPP $CPPFLAGS'
6643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645ac_compiler_gnu=$ac_cv_c_compiler_gnu
6646
6647     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648/* end confdefs.h.  */
6649
6650int
6651main ()
6652{
6653
6654  ;
6655  return 0;
6656}
6657_ACEOF
6658if ac_fn_c_try_link "$LINENO"; then :
6659  lt_cv_cc_needs_belf=yes
6660else
6661  lt_cv_cc_needs_belf=no
6662fi
6663rm -f core conftest.err conftest.$ac_objext \
6664    conftest$ac_exeext conftest.$ac_ext
6665     ac_ext=c
6666ac_cpp='$CPP $CPPFLAGS'
6667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6669ac_compiler_gnu=$ac_cv_c_compiler_gnu
6670
6671fi
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6673$as_echo "$lt_cv_cc_needs_belf" >&6; }
6674  if test yes != "$lt_cv_cc_needs_belf"; then
6675    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6676    CFLAGS=$SAVE_CFLAGS
6677  fi
6678  ;;
6679*-*solaris*)
6680  # Find out what ABI is being produced by ac_compile, and set linker
6681  # options accordingly.
6682  echo 'int i;' > conftest.$ac_ext
6683  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6684  (eval $ac_compile) 2>&5
6685  ac_status=$?
6686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6687  test $ac_status = 0; }; then
6688    case `/usr/bin/file conftest.o` in
6689    *64-bit*)
6690      case $lt_cv_prog_gnu_ld in
6691      yes*)
6692        case $host in
6693        i?86-*-solaris*|x86_64-*-solaris*)
6694          LD="${LD-ld} -m elf_x86_64"
6695          ;;
6696        sparc*-*-solaris*)
6697          LD="${LD-ld} -m elf64_sparc"
6698          ;;
6699        esac
6700        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6701        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6702          LD=${LD-ld}_sol2
6703        fi
6704        ;;
6705      *)
6706	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6707	  LD="${LD-ld} -64"
6708	fi
6709	;;
6710      esac
6711      ;;
6712    esac
6713  fi
6714  rm -rf conftest*
6715  ;;
6716esac
6717
6718need_locks=$enable_libtool_lock
6719
6720if test -n "$ac_tool_prefix"; then
6721  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6722set dummy ${ac_tool_prefix}mt; ac_word=$2
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724$as_echo_n "checking for $ac_word... " >&6; }
6725if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6726  $as_echo_n "(cached) " >&6
6727else
6728  if test -n "$MANIFEST_TOOL"; then
6729  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734  IFS=$as_save_IFS
6735  test -z "$as_dir" && as_dir=.
6736    for ac_exec_ext in '' $ac_executable_extensions; do
6737  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6738    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6739    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740    break 2
6741  fi
6742done
6743  done
6744IFS=$as_save_IFS
6745
6746fi
6747fi
6748MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6749if test -n "$MANIFEST_TOOL"; then
6750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6751$as_echo "$MANIFEST_TOOL" >&6; }
6752else
6753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754$as_echo "no" >&6; }
6755fi
6756
6757
6758fi
6759if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6760  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6761  # Extract the first word of "mt", so it can be a program name with args.
6762set dummy mt; ac_word=$2
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764$as_echo_n "checking for $ac_word... " >&6; }
6765if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6766  $as_echo_n "(cached) " >&6
6767else
6768  if test -n "$ac_ct_MANIFEST_TOOL"; then
6769  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6770else
6771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH
6773do
6774  IFS=$as_save_IFS
6775  test -z "$as_dir" && as_dir=.
6776    for ac_exec_ext in '' $ac_executable_extensions; do
6777  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6778    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6779    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780    break 2
6781  fi
6782done
6783  done
6784IFS=$as_save_IFS
6785
6786fi
6787fi
6788ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6789if test -n "$ac_ct_MANIFEST_TOOL"; then
6790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6791$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6792else
6793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794$as_echo "no" >&6; }
6795fi
6796
6797  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6798    MANIFEST_TOOL=":"
6799  else
6800    case $cross_compiling:$ac_tool_warned in
6801yes:)
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6804ac_tool_warned=yes ;;
6805esac
6806    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6807  fi
6808else
6809  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6810fi
6811
6812test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6814$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6815if ${lt_cv_path_mainfest_tool+:} false; then :
6816  $as_echo_n "(cached) " >&6
6817else
6818  lt_cv_path_mainfest_tool=no
6819  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6820  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6821  cat conftest.err >&5
6822  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6823    lt_cv_path_mainfest_tool=yes
6824  fi
6825  rm -f conftest*
6826fi
6827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6828$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6829if test yes != "$lt_cv_path_mainfest_tool"; then
6830  MANIFEST_TOOL=:
6831fi
6832
6833
6834
6835
6836
6837
6838  case $host_os in
6839    rhapsody* | darwin*)
6840    if test -n "$ac_tool_prefix"; then
6841  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6842set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844$as_echo_n "checking for $ac_word... " >&6; }
6845if ${ac_cv_prog_DSYMUTIL+:} false; then :
6846  $as_echo_n "(cached) " >&6
6847else
6848  if test -n "$DSYMUTIL"; then
6849  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6850else
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854  IFS=$as_save_IFS
6855  test -z "$as_dir" && as_dir=.
6856    for ac_exec_ext in '' $ac_executable_extensions; do
6857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6860    break 2
6861  fi
6862done
6863  done
6864IFS=$as_save_IFS
6865
6866fi
6867fi
6868DSYMUTIL=$ac_cv_prog_DSYMUTIL
6869if test -n "$DSYMUTIL"; then
6870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6871$as_echo "$DSYMUTIL" >&6; }
6872else
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874$as_echo "no" >&6; }
6875fi
6876
6877
6878fi
6879if test -z "$ac_cv_prog_DSYMUTIL"; then
6880  ac_ct_DSYMUTIL=$DSYMUTIL
6881  # Extract the first word of "dsymutil", so it can be a program name with args.
6882set dummy dsymutil; ac_word=$2
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884$as_echo_n "checking for $ac_word... " >&6; }
6885if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6886  $as_echo_n "(cached) " >&6
6887else
6888  if test -n "$ac_ct_DSYMUTIL"; then
6889  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6890else
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894  IFS=$as_save_IFS
6895  test -z "$as_dir" && as_dir=.
6896    for ac_exec_ext in '' $ac_executable_extensions; do
6897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900    break 2
6901  fi
6902done
6903  done
6904IFS=$as_save_IFS
6905
6906fi
6907fi
6908ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6909if test -n "$ac_ct_DSYMUTIL"; then
6910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6911$as_echo "$ac_ct_DSYMUTIL" >&6; }
6912else
6913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914$as_echo "no" >&6; }
6915fi
6916
6917  if test "x$ac_ct_DSYMUTIL" = x; then
6918    DSYMUTIL=":"
6919  else
6920    case $cross_compiling:$ac_tool_warned in
6921yes:)
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924ac_tool_warned=yes ;;
6925esac
6926    DSYMUTIL=$ac_ct_DSYMUTIL
6927  fi
6928else
6929  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6930fi
6931
6932    if test -n "$ac_tool_prefix"; then
6933  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6934set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936$as_echo_n "checking for $ac_word... " >&6; }
6937if ${ac_cv_prog_NMEDIT+:} false; then :
6938  $as_echo_n "(cached) " >&6
6939else
6940  if test -n "$NMEDIT"; then
6941  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6942else
6943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944for as_dir in $PATH
6945do
6946  IFS=$as_save_IFS
6947  test -z "$as_dir" && as_dir=.
6948    for ac_exec_ext in '' $ac_executable_extensions; do
6949  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6950    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6951    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952    break 2
6953  fi
6954done
6955  done
6956IFS=$as_save_IFS
6957
6958fi
6959fi
6960NMEDIT=$ac_cv_prog_NMEDIT
6961if test -n "$NMEDIT"; then
6962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6963$as_echo "$NMEDIT" >&6; }
6964else
6965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966$as_echo "no" >&6; }
6967fi
6968
6969
6970fi
6971if test -z "$ac_cv_prog_NMEDIT"; then
6972  ac_ct_NMEDIT=$NMEDIT
6973  # Extract the first word of "nmedit", so it can be a program name with args.
6974set dummy nmedit; ac_word=$2
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976$as_echo_n "checking for $ac_word... " >&6; }
6977if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980  if test -n "$ac_ct_NMEDIT"; then
6981  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6982else
6983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986  IFS=$as_save_IFS
6987  test -z "$as_dir" && as_dir=.
6988    for ac_exec_ext in '' $ac_executable_extensions; do
6989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992    break 2
6993  fi
6994done
6995  done
6996IFS=$as_save_IFS
6997
6998fi
6999fi
7000ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7001if test -n "$ac_ct_NMEDIT"; then
7002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7003$as_echo "$ac_ct_NMEDIT" >&6; }
7004else
7005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006$as_echo "no" >&6; }
7007fi
7008
7009  if test "x$ac_ct_NMEDIT" = x; then
7010    NMEDIT=":"
7011  else
7012    case $cross_compiling:$ac_tool_warned in
7013yes:)
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7016ac_tool_warned=yes ;;
7017esac
7018    NMEDIT=$ac_ct_NMEDIT
7019  fi
7020else
7021  NMEDIT="$ac_cv_prog_NMEDIT"
7022fi
7023
7024    if test -n "$ac_tool_prefix"; then
7025  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7026set dummy ${ac_tool_prefix}lipo; ac_word=$2
7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028$as_echo_n "checking for $ac_word... " >&6; }
7029if ${ac_cv_prog_LIPO+:} false; then :
7030  $as_echo_n "(cached) " >&6
7031else
7032  if test -n "$LIPO"; then
7033  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7034else
7035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036for as_dir in $PATH
7037do
7038  IFS=$as_save_IFS
7039  test -z "$as_dir" && as_dir=.
7040    for ac_exec_ext in '' $ac_executable_extensions; do
7041  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7043    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044    break 2
7045  fi
7046done
7047  done
7048IFS=$as_save_IFS
7049
7050fi
7051fi
7052LIPO=$ac_cv_prog_LIPO
7053if test -n "$LIPO"; then
7054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7055$as_echo "$LIPO" >&6; }
7056else
7057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058$as_echo "no" >&6; }
7059fi
7060
7061
7062fi
7063if test -z "$ac_cv_prog_LIPO"; then
7064  ac_ct_LIPO=$LIPO
7065  # Extract the first word of "lipo", so it can be a program name with args.
7066set dummy lipo; ac_word=$2
7067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068$as_echo_n "checking for $ac_word... " >&6; }
7069if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7070  $as_echo_n "(cached) " >&6
7071else
7072  if test -n "$ac_ct_LIPO"; then
7073  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7074else
7075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076for as_dir in $PATH
7077do
7078  IFS=$as_save_IFS
7079  test -z "$as_dir" && as_dir=.
7080    for ac_exec_ext in '' $ac_executable_extensions; do
7081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082    ac_cv_prog_ac_ct_LIPO="lipo"
7083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084    break 2
7085  fi
7086done
7087  done
7088IFS=$as_save_IFS
7089
7090fi
7091fi
7092ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7093if test -n "$ac_ct_LIPO"; then
7094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7095$as_echo "$ac_ct_LIPO" >&6; }
7096else
7097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098$as_echo "no" >&6; }
7099fi
7100
7101  if test "x$ac_ct_LIPO" = x; then
7102    LIPO=":"
7103  else
7104    case $cross_compiling:$ac_tool_warned in
7105yes:)
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7108ac_tool_warned=yes ;;
7109esac
7110    LIPO=$ac_ct_LIPO
7111  fi
7112else
7113  LIPO="$ac_cv_prog_LIPO"
7114fi
7115
7116    if test -n "$ac_tool_prefix"; then
7117  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7118set dummy ${ac_tool_prefix}otool; ac_word=$2
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120$as_echo_n "checking for $ac_word... " >&6; }
7121if ${ac_cv_prog_OTOOL+:} false; then :
7122  $as_echo_n "(cached) " >&6
7123else
7124  if test -n "$OTOOL"; then
7125  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7126else
7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128for as_dir in $PATH
7129do
7130  IFS=$as_save_IFS
7131  test -z "$as_dir" && as_dir=.
7132    for ac_exec_ext in '' $ac_executable_extensions; do
7133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136    break 2
7137  fi
7138done
7139  done
7140IFS=$as_save_IFS
7141
7142fi
7143fi
7144OTOOL=$ac_cv_prog_OTOOL
7145if test -n "$OTOOL"; then
7146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7147$as_echo "$OTOOL" >&6; }
7148else
7149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150$as_echo "no" >&6; }
7151fi
7152
7153
7154fi
7155if test -z "$ac_cv_prog_OTOOL"; then
7156  ac_ct_OTOOL=$OTOOL
7157  # Extract the first word of "otool", so it can be a program name with args.
7158set dummy otool; ac_word=$2
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160$as_echo_n "checking for $ac_word... " >&6; }
7161if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7162  $as_echo_n "(cached) " >&6
7163else
7164  if test -n "$ac_ct_OTOOL"; then
7165  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7166else
7167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168for as_dir in $PATH
7169do
7170  IFS=$as_save_IFS
7171  test -z "$as_dir" && as_dir=.
7172    for ac_exec_ext in '' $ac_executable_extensions; do
7173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174    ac_cv_prog_ac_ct_OTOOL="otool"
7175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176    break 2
7177  fi
7178done
7179  done
7180IFS=$as_save_IFS
7181
7182fi
7183fi
7184ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7185if test -n "$ac_ct_OTOOL"; then
7186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7187$as_echo "$ac_ct_OTOOL" >&6; }
7188else
7189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7190$as_echo "no" >&6; }
7191fi
7192
7193  if test "x$ac_ct_OTOOL" = x; then
7194    OTOOL=":"
7195  else
7196    case $cross_compiling:$ac_tool_warned in
7197yes:)
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200ac_tool_warned=yes ;;
7201esac
7202    OTOOL=$ac_ct_OTOOL
7203  fi
7204else
7205  OTOOL="$ac_cv_prog_OTOOL"
7206fi
7207
7208    if test -n "$ac_tool_prefix"; then
7209  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7210set dummy ${ac_tool_prefix}otool64; ac_word=$2
7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212$as_echo_n "checking for $ac_word... " >&6; }
7213if ${ac_cv_prog_OTOOL64+:} false; then :
7214  $as_echo_n "(cached) " >&6
7215else
7216  if test -n "$OTOOL64"; then
7217  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7218else
7219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220for as_dir in $PATH
7221do
7222  IFS=$as_save_IFS
7223  test -z "$as_dir" && as_dir=.
7224    for ac_exec_ext in '' $ac_executable_extensions; do
7225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228    break 2
7229  fi
7230done
7231  done
7232IFS=$as_save_IFS
7233
7234fi
7235fi
7236OTOOL64=$ac_cv_prog_OTOOL64
7237if test -n "$OTOOL64"; then
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7239$as_echo "$OTOOL64" >&6; }
7240else
7241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242$as_echo "no" >&6; }
7243fi
7244
7245
7246fi
7247if test -z "$ac_cv_prog_OTOOL64"; then
7248  ac_ct_OTOOL64=$OTOOL64
7249  # Extract the first word of "otool64", so it can be a program name with args.
7250set dummy otool64; ac_word=$2
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252$as_echo_n "checking for $ac_word... " >&6; }
7253if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7254  $as_echo_n "(cached) " >&6
7255else
7256  if test -n "$ac_ct_OTOOL64"; then
7257  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7258else
7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262  IFS=$as_save_IFS
7263  test -z "$as_dir" && as_dir=.
7264    for ac_exec_ext in '' $ac_executable_extensions; do
7265  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7266    ac_cv_prog_ac_ct_OTOOL64="otool64"
7267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268    break 2
7269  fi
7270done
7271  done
7272IFS=$as_save_IFS
7273
7274fi
7275fi
7276ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7277if test -n "$ac_ct_OTOOL64"; then
7278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7279$as_echo "$ac_ct_OTOOL64" >&6; }
7280else
7281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282$as_echo "no" >&6; }
7283fi
7284
7285  if test "x$ac_ct_OTOOL64" = x; then
7286    OTOOL64=":"
7287  else
7288    case $cross_compiling:$ac_tool_warned in
7289yes:)
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7292ac_tool_warned=yes ;;
7293esac
7294    OTOOL64=$ac_ct_OTOOL64
7295  fi
7296else
7297  OTOOL64="$ac_cv_prog_OTOOL64"
7298fi
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7327$as_echo_n "checking for -single_module linker flag... " >&6; }
7328if ${lt_cv_apple_cc_single_mod+:} false; then :
7329  $as_echo_n "(cached) " >&6
7330else
7331  lt_cv_apple_cc_single_mod=no
7332      if test -z "$LT_MULTI_MODULE"; then
7333	# By default we will add the -single_module flag. You can override
7334	# by either setting the environment variable LT_MULTI_MODULE
7335	# non-empty at configure time, or by adding -multi_module to the
7336	# link flags.
7337	rm -rf libconftest.dylib*
7338	echo "int foo(void){return 1;}" > conftest.c
7339	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7340-dynamiclib -Wl,-single_module conftest.c" >&5
7341	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7342	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7343        _lt_result=$?
7344	# If there is a non-empty error log, and "single_module"
7345	# appears in it, assume the flag caused a linker warning
7346        if test -s conftest.err && $GREP single_module conftest.err; then
7347	  cat conftest.err >&5
7348	# Otherwise, if the output was created with a 0 exit code from
7349	# the compiler, it worked.
7350	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7351	  lt_cv_apple_cc_single_mod=yes
7352	else
7353	  cat conftest.err >&5
7354	fi
7355	rm -rf libconftest.dylib*
7356	rm -f conftest.*
7357      fi
7358fi
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7360$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7361
7362    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7363$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7364if ${lt_cv_ld_exported_symbols_list+:} false; then :
7365  $as_echo_n "(cached) " >&6
7366else
7367  lt_cv_ld_exported_symbols_list=no
7368      save_LDFLAGS=$LDFLAGS
7369      echo "_main" > conftest.sym
7370      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7371      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h.  */
7373
7374int
7375main ()
7376{
7377
7378  ;
7379  return 0;
7380}
7381_ACEOF
7382if ac_fn_c_try_link "$LINENO"; then :
7383  lt_cv_ld_exported_symbols_list=yes
7384else
7385  lt_cv_ld_exported_symbols_list=no
7386fi
7387rm -f core conftest.err conftest.$ac_objext \
7388    conftest$ac_exeext conftest.$ac_ext
7389	LDFLAGS=$save_LDFLAGS
7390
7391fi
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7393$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7394
7395    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7396$as_echo_n "checking for -force_load linker flag... " >&6; }
7397if ${lt_cv_ld_force_load+:} false; then :
7398  $as_echo_n "(cached) " >&6
7399else
7400  lt_cv_ld_force_load=no
7401      cat > conftest.c << _LT_EOF
7402int forced_loaded() { return 2;}
7403_LT_EOF
7404      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7405      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7406      echo "$AR cru libconftest.a conftest.o" >&5
7407      $AR cru libconftest.a conftest.o 2>&5
7408      echo "$RANLIB libconftest.a" >&5
7409      $RANLIB libconftest.a 2>&5
7410      cat > conftest.c << _LT_EOF
7411int main() { return 0;}
7412_LT_EOF
7413      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7414      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7415      _lt_result=$?
7416      if test -s conftest.err && $GREP force_load conftest.err; then
7417	cat conftest.err >&5
7418      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7419	lt_cv_ld_force_load=yes
7420      else
7421	cat conftest.err >&5
7422      fi
7423        rm -f conftest.err libconftest.a conftest conftest.c
7424        rm -rf conftest.dSYM
7425
7426fi
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7428$as_echo "$lt_cv_ld_force_load" >&6; }
7429    case $host_os in
7430    rhapsody* | darwin1.[012])
7431      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7432    darwin1.*)
7433      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7434    darwin*)
7435      case ${MACOSX_DEPLOYMENT_TARGET},$host in
7436	10.[012],*|,*powerpc*)
7437	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7438	*)
7439	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7440      esac
7441    ;;
7442  esac
7443    if test yes = "$lt_cv_apple_cc_single_mod"; then
7444      _lt_dar_single_mod='$single_module'
7445    fi
7446    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7447      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7448    else
7449      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7450    fi
7451    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7452      _lt_dsymutil='~$DSYMUTIL $lib || :'
7453    else
7454      _lt_dsymutil=
7455    fi
7456    ;;
7457  esac
7458
7459# func_munge_path_list VARIABLE PATH
7460# -----------------------------------
7461# VARIABLE is name of variable containing _space_ separated list of
7462# directories to be munged by the contents of PATH, which is string
7463# having a format:
7464# "DIR[:DIR]:"
7465#       string "DIR[ DIR]" will be prepended to VARIABLE
7466# ":DIR[:DIR]"
7467#       string "DIR[ DIR]" will be appended to VARIABLE
7468# "DIRP[:DIRP]::[DIRA:]DIRA"
7469#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7470#       "DIRA[ DIRA]" will be appended to VARIABLE
7471# "DIR[:DIR]"
7472#       VARIABLE will be replaced by "DIR[ DIR]"
7473func_munge_path_list ()
7474{
7475    case x$2 in
7476    x)
7477        ;;
7478    *:)
7479        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7480        ;;
7481    x:*)
7482        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7483        ;;
7484    *::*)
7485        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7486        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7487        ;;
7488    *)
7489        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7490        ;;
7491    esac
7492}
7493
7494ac_ext=c
7495ac_cpp='$CPP $CPPFLAGS'
7496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7498ac_compiler_gnu=$ac_cv_c_compiler_gnu
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7500$as_echo_n "checking how to run the C preprocessor... " >&6; }
7501# On Suns, sometimes $CPP names a directory.
7502if test -n "$CPP" && test -d "$CPP"; then
7503  CPP=
7504fi
7505if test -z "$CPP"; then
7506  if ${ac_cv_prog_CPP+:} false; then :
7507  $as_echo_n "(cached) " >&6
7508else
7509      # Double quotes because CPP needs to be expanded
7510    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7511    do
7512      ac_preproc_ok=false
7513for ac_c_preproc_warn_flag in '' yes
7514do
7515  # Use a header file that comes with gcc, so configuring glibc
7516  # with a fresh cross-compiler works.
7517  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7518  # <limits.h> exists even on freestanding compilers.
7519  # On the NeXT, cc -E runs the code through the compiler's parser,
7520  # not just through cpp. "Syntax error" is here to catch this case.
7521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522/* end confdefs.h.  */
7523#ifdef __STDC__
7524# include <limits.h>
7525#else
7526# include <assert.h>
7527#endif
7528		     Syntax error
7529_ACEOF
7530if ac_fn_c_try_cpp "$LINENO"; then :
7531
7532else
7533  # Broken: fails on valid input.
7534continue
7535fi
7536rm -f conftest.err conftest.i conftest.$ac_ext
7537
7538  # OK, works on sane cases.  Now check whether nonexistent headers
7539  # can be detected and how.
7540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541/* end confdefs.h.  */
7542#include <ac_nonexistent.h>
7543_ACEOF
7544if ac_fn_c_try_cpp "$LINENO"; then :
7545  # Broken: success on invalid input.
7546continue
7547else
7548  # Passes both tests.
7549ac_preproc_ok=:
7550break
7551fi
7552rm -f conftest.err conftest.i conftest.$ac_ext
7553
7554done
7555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7556rm -f conftest.i conftest.err conftest.$ac_ext
7557if $ac_preproc_ok; then :
7558  break
7559fi
7560
7561    done
7562    ac_cv_prog_CPP=$CPP
7563
7564fi
7565  CPP=$ac_cv_prog_CPP
7566else
7567  ac_cv_prog_CPP=$CPP
7568fi
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7570$as_echo "$CPP" >&6; }
7571ac_preproc_ok=false
7572for ac_c_preproc_warn_flag in '' yes
7573do
7574  # Use a header file that comes with gcc, so configuring glibc
7575  # with a fresh cross-compiler works.
7576  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7577  # <limits.h> exists even on freestanding compilers.
7578  # On the NeXT, cc -E runs the code through the compiler's parser,
7579  # not just through cpp. "Syntax error" is here to catch this case.
7580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581/* end confdefs.h.  */
7582#ifdef __STDC__
7583# include <limits.h>
7584#else
7585# include <assert.h>
7586#endif
7587		     Syntax error
7588_ACEOF
7589if ac_fn_c_try_cpp "$LINENO"; then :
7590
7591else
7592  # Broken: fails on valid input.
7593continue
7594fi
7595rm -f conftest.err conftest.i conftest.$ac_ext
7596
7597  # OK, works on sane cases.  Now check whether nonexistent headers
7598  # can be detected and how.
7599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600/* end confdefs.h.  */
7601#include <ac_nonexistent.h>
7602_ACEOF
7603if ac_fn_c_try_cpp "$LINENO"; then :
7604  # Broken: success on invalid input.
7605continue
7606else
7607  # Passes both tests.
7608ac_preproc_ok=:
7609break
7610fi
7611rm -f conftest.err conftest.i conftest.$ac_ext
7612
7613done
7614# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7615rm -f conftest.i conftest.err conftest.$ac_ext
7616if $ac_preproc_ok; then :
7617
7618else
7619  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7621as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7622See \`config.log' for more details" "$LINENO" 5; }
7623fi
7624
7625ac_ext=c
7626ac_cpp='$CPP $CPPFLAGS'
7627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7629ac_compiler_gnu=$ac_cv_c_compiler_gnu
7630
7631
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7633$as_echo_n "checking for ANSI C header files... " >&6; }
7634if ${ac_cv_header_stdc+:} false; then :
7635  $as_echo_n "(cached) " >&6
7636else
7637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638/* end confdefs.h.  */
7639#include <stdlib.h>
7640#include <stdarg.h>
7641#include <string.h>
7642#include <float.h>
7643
7644int
7645main ()
7646{
7647
7648  ;
7649  return 0;
7650}
7651_ACEOF
7652if ac_fn_c_try_compile "$LINENO"; then :
7653  ac_cv_header_stdc=yes
7654else
7655  ac_cv_header_stdc=no
7656fi
7657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7658
7659if test $ac_cv_header_stdc = yes; then
7660  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662/* end confdefs.h.  */
7663#include <string.h>
7664
7665_ACEOF
7666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7667  $EGREP "memchr" >/dev/null 2>&1; then :
7668
7669else
7670  ac_cv_header_stdc=no
7671fi
7672rm -f conftest*
7673
7674fi
7675
7676if test $ac_cv_header_stdc = yes; then
7677  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h.  */
7680#include <stdlib.h>
7681
7682_ACEOF
7683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7684  $EGREP "free" >/dev/null 2>&1; then :
7685
7686else
7687  ac_cv_header_stdc=no
7688fi
7689rm -f conftest*
7690
7691fi
7692
7693if test $ac_cv_header_stdc = yes; then
7694  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7695  if test "$cross_compiling" = yes; then :
7696  :
7697else
7698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699/* end confdefs.h.  */
7700#include <ctype.h>
7701#include <stdlib.h>
7702#if ((' ' & 0x0FF) == 0x020)
7703# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7704# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7705#else
7706# define ISLOWER(c) \
7707		   (('a' <= (c) && (c) <= 'i') \
7708		     || ('j' <= (c) && (c) <= 'r') \
7709		     || ('s' <= (c) && (c) <= 'z'))
7710# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7711#endif
7712
7713#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7714int
7715main ()
7716{
7717  int i;
7718  for (i = 0; i < 256; i++)
7719    if (XOR (islower (i), ISLOWER (i))
7720	|| toupper (i) != TOUPPER (i))
7721      return 2;
7722  return 0;
7723}
7724_ACEOF
7725if ac_fn_c_try_run "$LINENO"; then :
7726
7727else
7728  ac_cv_header_stdc=no
7729fi
7730rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7731  conftest.$ac_objext conftest.beam conftest.$ac_ext
7732fi
7733
7734fi
7735fi
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7737$as_echo "$ac_cv_header_stdc" >&6; }
7738if test $ac_cv_header_stdc = yes; then
7739
7740$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7741
7742fi
7743
7744# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7745for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7746		  inttypes.h stdint.h unistd.h
7747do :
7748  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7749ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7750"
7751if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7752  cat >>confdefs.h <<_ACEOF
7753#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7754_ACEOF
7755
7756fi
7757
7758done
7759
7760
7761for ac_header in dlfcn.h
7762do :
7763  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7764"
7765if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7766  cat >>confdefs.h <<_ACEOF
7767#define HAVE_DLFCN_H 1
7768_ACEOF
7769
7770fi
7771
7772done
7773
7774
7775
7776
7777
7778# Set options
7779
7780
7781
7782        enable_dlopen=no
7783
7784
7785  enable_win32_dll=no
7786
7787
7788            # Check whether --enable-shared was given.
7789if test "${enable_shared+set}" = set; then :
7790  enableval=$enable_shared; p=${PACKAGE-default}
7791    case $enableval in
7792    yes) enable_shared=yes ;;
7793    no) enable_shared=no ;;
7794    *)
7795      enable_shared=no
7796      # Look at the argument we got.  We use all the common list separators.
7797      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7798      for pkg in $enableval; do
7799	IFS=$lt_save_ifs
7800	if test "X$pkg" = "X$p"; then
7801	  enable_shared=yes
7802	fi
7803      done
7804      IFS=$lt_save_ifs
7805      ;;
7806    esac
7807else
7808  enable_shared=yes
7809fi
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819  # Check whether --enable-static was given.
7820if test "${enable_static+set}" = set; then :
7821  enableval=$enable_static; p=${PACKAGE-default}
7822    case $enableval in
7823    yes) enable_static=yes ;;
7824    no) enable_static=no ;;
7825    *)
7826     enable_static=no
7827      # Look at the argument we got.  We use all the common list separators.
7828      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7829      for pkg in $enableval; do
7830	IFS=$lt_save_ifs
7831	if test "X$pkg" = "X$p"; then
7832	  enable_static=yes
7833	fi
7834      done
7835      IFS=$lt_save_ifs
7836      ;;
7837    esac
7838else
7839  enable_static=yes
7840fi
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851# Check whether --with-pic was given.
7852if test "${with_pic+set}" = set; then :
7853  withval=$with_pic; lt_p=${PACKAGE-default}
7854    case $withval in
7855    yes|no) pic_mode=$withval ;;
7856    *)
7857      pic_mode=default
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 lt_pkg in $withval; do
7861	IFS=$lt_save_ifs
7862	if test "X$lt_pkg" = "X$lt_p"; then
7863	  pic_mode=yes
7864	fi
7865      done
7866      IFS=$lt_save_ifs
7867      ;;
7868    esac
7869else
7870  pic_mode=default
7871fi
7872
7873
7874
7875
7876
7877
7878
7879
7880  # Check whether --enable-fast-install was given.
7881if test "${enable_fast_install+set}" = set; then :
7882  enableval=$enable_fast_install; p=${PACKAGE-default}
7883    case $enableval in
7884    yes) enable_fast_install=yes ;;
7885    no) enable_fast_install=no ;;
7886    *)
7887      enable_fast_install=no
7888      # Look at the argument we got.  We use all the common list separators.
7889      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7890      for pkg in $enableval; do
7891	IFS=$lt_save_ifs
7892	if test "X$pkg" = "X$p"; then
7893	  enable_fast_install=yes
7894	fi
7895      done
7896      IFS=$lt_save_ifs
7897      ;;
7898    esac
7899else
7900  enable_fast_install=yes
7901fi
7902
7903
7904
7905
7906
7907
7908
7909
7910  shared_archive_member_spec=
7911case $host,$enable_shared in
7912power*-*-aix[5-9]*,yes)
7913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7914$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7915
7916# Check whether --with-aix-soname was given.
7917if test "${with_aix_soname+set}" = set; then :
7918  withval=$with_aix_soname; case $withval in
7919    aix|svr4|both)
7920      ;;
7921    *)
7922      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7923      ;;
7924    esac
7925    lt_cv_with_aix_soname=$with_aix_soname
7926else
7927  if ${lt_cv_with_aix_soname+:} false; then :
7928  $as_echo_n "(cached) " >&6
7929else
7930  lt_cv_with_aix_soname=aix
7931fi
7932
7933    with_aix_soname=$lt_cv_with_aix_soname
7934fi
7935
7936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7937$as_echo "$with_aix_soname" >&6; }
7938  if test aix != "$with_aix_soname"; then
7939    # For the AIX way of multilib, we name the shared archive member
7940    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7941    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7942    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7943    # the AIX toolchain works better with OBJECT_MODE set (default 32).
7944    if test 64 = "${OBJECT_MODE-32}"; then
7945      shared_archive_member_spec=shr_64
7946    else
7947      shared_archive_member_spec=shr
7948    fi
7949  fi
7950  ;;
7951*)
7952  with_aix_soname=aix
7953  ;;
7954esac
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965# This can be used to rebuild libtool when needed
7966LIBTOOL_DEPS=$ltmain
7967
7968# Always use our own libtool.
7969LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000test -z "$LN_S" && LN_S="ln -s"
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015if test -n "${ZSH_VERSION+set}"; then
8016   setopt NO_GLOB_SUBST
8017fi
8018
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8020$as_echo_n "checking for objdir... " >&6; }
8021if ${lt_cv_objdir+:} false; then :
8022  $as_echo_n "(cached) " >&6
8023else
8024  rm -f .libs 2>/dev/null
8025mkdir .libs 2>/dev/null
8026if test -d .libs; then
8027  lt_cv_objdir=.libs
8028else
8029  # MS-DOS does not allow filenames that begin with a dot.
8030  lt_cv_objdir=_libs
8031fi
8032rmdir .libs 2>/dev/null
8033fi
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8035$as_echo "$lt_cv_objdir" >&6; }
8036objdir=$lt_cv_objdir
8037
8038
8039
8040
8041
8042cat >>confdefs.h <<_ACEOF
8043#define LT_OBJDIR "$lt_cv_objdir/"
8044_ACEOF
8045
8046
8047
8048
8049case $host_os in
8050aix3*)
8051  # AIX sometimes has problems with the GCC collect2 program.  For some
8052  # reason, if we set the COLLECT_NAMES environment variable, the problems
8053  # vanish in a puff of smoke.
8054  if test set != "${COLLECT_NAMES+set}"; then
8055    COLLECT_NAMES=
8056    export COLLECT_NAMES
8057  fi
8058  ;;
8059esac
8060
8061# Global variables:
8062ofile=libtool
8063can_build_shared=yes
8064
8065# All known linkers require a '.a' archive for static linking (except MSVC,
8066# which needs '.lib').
8067libext=a
8068
8069with_gnu_ld=$lt_cv_prog_gnu_ld
8070
8071old_CC=$CC
8072old_CFLAGS=$CFLAGS
8073
8074# Set sane defaults for various variables
8075test -z "$CC" && CC=cc
8076test -z "$LTCC" && LTCC=$CC
8077test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8078test -z "$LD" && LD=ld
8079test -z "$ac_objext" && ac_objext=o
8080
8081func_cc_basename $compiler
8082cc_basename=$func_cc_basename_result
8083
8084
8085# Only perform the check for file, if the check method requires it
8086test -z "$MAGIC_CMD" && MAGIC_CMD=file
8087case $deplibs_check_method in
8088file_magic*)
8089  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8090    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8091$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8092if ${lt_cv_path_MAGIC_CMD+:} false; then :
8093  $as_echo_n "(cached) " >&6
8094else
8095  case $MAGIC_CMD in
8096[\\/*] |  ?:[\\/]*)
8097  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8098  ;;
8099*)
8100  lt_save_MAGIC_CMD=$MAGIC_CMD
8101  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8102  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8103  for ac_dir in $ac_dummy; do
8104    IFS=$lt_save_ifs
8105    test -z "$ac_dir" && ac_dir=.
8106    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8107      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8108      if test -n "$file_magic_test_file"; then
8109	case $deplibs_check_method in
8110	"file_magic "*)
8111	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8112	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8113	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8114	    $EGREP "$file_magic_regex" > /dev/null; then
8115	    :
8116	  else
8117	    cat <<_LT_EOF 1>&2
8118
8119*** Warning: the command libtool uses to detect shared libraries,
8120*** $file_magic_cmd, produces output that libtool cannot recognize.
8121*** The result is that libtool may fail to recognize shared libraries
8122*** as such.  This will affect the creation of libtool libraries that
8123*** depend on shared libraries, but programs linked with such libtool
8124*** libraries will work regardless of this problem.  Nevertheless, you
8125*** may want to report the problem to your system manager and/or to
8126*** [email protected]
8127
8128_LT_EOF
8129	  fi ;;
8130	esac
8131      fi
8132      break
8133    fi
8134  done
8135  IFS=$lt_save_ifs
8136  MAGIC_CMD=$lt_save_MAGIC_CMD
8137  ;;
8138esac
8139fi
8140
8141MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8142if test -n "$MAGIC_CMD"; then
8143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8144$as_echo "$MAGIC_CMD" >&6; }
8145else
8146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147$as_echo "no" >&6; }
8148fi
8149
8150
8151
8152
8153
8154if test -z "$lt_cv_path_MAGIC_CMD"; then
8155  if test -n "$ac_tool_prefix"; then
8156    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8157$as_echo_n "checking for file... " >&6; }
8158if ${lt_cv_path_MAGIC_CMD+:} false; then :
8159  $as_echo_n "(cached) " >&6
8160else
8161  case $MAGIC_CMD in
8162[\\/*] |  ?:[\\/]*)
8163  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8164  ;;
8165*)
8166  lt_save_MAGIC_CMD=$MAGIC_CMD
8167  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8168  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8169  for ac_dir in $ac_dummy; do
8170    IFS=$lt_save_ifs
8171    test -z "$ac_dir" && ac_dir=.
8172    if test -f "$ac_dir/file"; then
8173      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8174      if test -n "$file_magic_test_file"; then
8175	case $deplibs_check_method in
8176	"file_magic "*)
8177	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8178	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8179	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8180	    $EGREP "$file_magic_regex" > /dev/null; then
8181	    :
8182	  else
8183	    cat <<_LT_EOF 1>&2
8184
8185*** Warning: the command libtool uses to detect shared libraries,
8186*** $file_magic_cmd, produces output that libtool cannot recognize.
8187*** The result is that libtool may fail to recognize shared libraries
8188*** as such.  This will affect the creation of libtool libraries that
8189*** depend on shared libraries, but programs linked with such libtool
8190*** libraries will work regardless of this problem.  Nevertheless, you
8191*** may want to report the problem to your system manager and/or to
8192*** [email protected]
8193
8194_LT_EOF
8195	  fi ;;
8196	esac
8197      fi
8198      break
8199    fi
8200  done
8201  IFS=$lt_save_ifs
8202  MAGIC_CMD=$lt_save_MAGIC_CMD
8203  ;;
8204esac
8205fi
8206
8207MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8208if test -n "$MAGIC_CMD"; then
8209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8210$as_echo "$MAGIC_CMD" >&6; }
8211else
8212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213$as_echo "no" >&6; }
8214fi
8215
8216
8217  else
8218    MAGIC_CMD=:
8219  fi
8220fi
8221
8222  fi
8223  ;;
8224esac
8225
8226# Use C for the default configuration in the libtool script
8227
8228lt_save_CC=$CC
8229ac_ext=c
8230ac_cpp='$CPP $CPPFLAGS'
8231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8233ac_compiler_gnu=$ac_cv_c_compiler_gnu
8234
8235
8236# Source file extension for C test sources.
8237ac_ext=c
8238
8239# Object file extension for compiled C test sources.
8240objext=o
8241objext=$objext
8242
8243# Code to be used in simple compile tests
8244lt_simple_compile_test_code="int some_variable = 0;"
8245
8246# Code to be used in simple link tests
8247lt_simple_link_test_code='int main(){return(0);}'
8248
8249
8250
8251
8252
8253
8254
8255# If no C compiler was specified, use CC.
8256LTCC=${LTCC-"$CC"}
8257
8258# If no C compiler flags were specified, use CFLAGS.
8259LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8260
8261# Allow CC to be a program name with arguments.
8262compiler=$CC
8263
8264# Save the default compiler, since it gets overwritten when the other
8265# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8266compiler_DEFAULT=$CC
8267
8268# save warnings/boilerplate of simple test code
8269ac_outfile=conftest.$ac_objext
8270echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8271eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8272_lt_compiler_boilerplate=`cat conftest.err`
8273$RM conftest*
8274
8275ac_outfile=conftest.$ac_objext
8276echo "$lt_simple_link_test_code" >conftest.$ac_ext
8277eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8278_lt_linker_boilerplate=`cat conftest.err`
8279$RM -r conftest*
8280
8281
8282if test -n "$compiler"; then
8283
8284lt_prog_compiler_no_builtin_flag=
8285
8286if test yes = "$GCC"; then
8287  case $cc_basename in
8288  nvcc*)
8289    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8290  *)
8291    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8292  esac
8293
8294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8295$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8296if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8297  $as_echo_n "(cached) " >&6
8298else
8299  lt_cv_prog_compiler_rtti_exceptions=no
8300   ac_outfile=conftest.$ac_objext
8301   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8302   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8303   # Insert the option either (1) after the last *FLAGS variable, or
8304   # (2) before a word containing "conftest.", or (3) at the end.
8305   # Note that $ac_compile itself does not contain backslashes and begins
8306   # with a dollar sign (not a hyphen), so the echo should work correctly.
8307   # The option is referenced via a variable to avoid confusing sed.
8308   lt_compile=`echo "$ac_compile" | $SED \
8309   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8310   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8311   -e 's:$: $lt_compiler_flag:'`
8312   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8313   (eval "$lt_compile" 2>conftest.err)
8314   ac_status=$?
8315   cat conftest.err >&5
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   if (exit $ac_status) && test -s "$ac_outfile"; then
8318     # The compiler can only warn and ignore the option if not recognized
8319     # So say no if there are warnings other than the usual output.
8320     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8321     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8322     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8323       lt_cv_prog_compiler_rtti_exceptions=yes
8324     fi
8325   fi
8326   $RM conftest*
8327
8328fi
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8330$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8331
8332if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8333    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8334else
8335    :
8336fi
8337
8338fi
8339
8340
8341
8342
8343
8344
8345  lt_prog_compiler_wl=
8346lt_prog_compiler_pic=
8347lt_prog_compiler_static=
8348
8349
8350  if test yes = "$GCC"; then
8351    lt_prog_compiler_wl='-Wl,'
8352    lt_prog_compiler_static='-static'
8353
8354    case $host_os in
8355      aix*)
8356      # All AIX code is PIC.
8357      if test ia64 = "$host_cpu"; then
8358	# AIX 5 now supports IA64 processor
8359	lt_prog_compiler_static='-Bstatic'
8360      fi
8361      lt_prog_compiler_pic='-fPIC'
8362      ;;
8363
8364    amigaos*)
8365      case $host_cpu in
8366      powerpc)
8367            # see comment about AmigaOS4 .so support
8368            lt_prog_compiler_pic='-fPIC'
8369        ;;
8370      m68k)
8371            # FIXME: we need at least 68020 code to build shared libraries, but
8372            # adding the '-m68020' flag to GCC prevents building anything better,
8373            # like '-m68040'.
8374            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8375        ;;
8376      esac
8377      ;;
8378
8379    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8380      # PIC is the default for these OSes.
8381      ;;
8382
8383    mingw* | cygwin* | pw32* | os2* | cegcc*)
8384      # This hack is so that the source file can tell whether it is being
8385      # built for inclusion in a dll (and should export symbols for example).
8386      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8387      # (--disable-auto-import) libraries
8388      lt_prog_compiler_pic='-DDLL_EXPORT'
8389      case $host_os in
8390      os2*)
8391	lt_prog_compiler_static='$wl-static'
8392	;;
8393      esac
8394      ;;
8395
8396    darwin* | rhapsody*)
8397      # PIC is the default on this platform
8398      # Common symbols not allowed in MH_DYLIB files
8399      lt_prog_compiler_pic='-fno-common'
8400      ;;
8401
8402    haiku*)
8403      # PIC is the default for Haiku.
8404      # The "-static" flag exists, but is broken.
8405      lt_prog_compiler_static=
8406      ;;
8407
8408    hpux*)
8409      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8410      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8411      # sets the default TLS model and affects inlining.
8412      case $host_cpu in
8413      hppa*64*)
8414	# +Z the default
8415	;;
8416      *)
8417	lt_prog_compiler_pic='-fPIC'
8418	;;
8419      esac
8420      ;;
8421
8422    interix[3-9]*)
8423      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8424      # Instead, we relocate shared libraries at runtime.
8425      ;;
8426
8427    msdosdjgpp*)
8428      # Just because we use GCC doesn't mean we suddenly get shared libraries
8429      # on systems that don't support them.
8430      lt_prog_compiler_can_build_shared=no
8431      enable_shared=no
8432      ;;
8433
8434    *nto* | *qnx*)
8435      # QNX uses GNU C++, but need to define -shared option too, otherwise
8436      # it will coredump.
8437      lt_prog_compiler_pic='-fPIC -shared'
8438      ;;
8439
8440    sysv4*MP*)
8441      if test -d /usr/nec; then
8442	lt_prog_compiler_pic=-Kconform_pic
8443      fi
8444      ;;
8445
8446    *)
8447      lt_prog_compiler_pic='-fPIC'
8448      ;;
8449    esac
8450
8451    case $cc_basename in
8452    nvcc*) # Cuda Compiler Driver 2.2
8453      lt_prog_compiler_wl='-Xlinker '
8454      if test -n "$lt_prog_compiler_pic"; then
8455        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8456      fi
8457      ;;
8458    esac
8459  else
8460    # PORTME Check for flag to pass linker flags through the system compiler.
8461    case $host_os in
8462    aix*)
8463      lt_prog_compiler_wl='-Wl,'
8464      if test ia64 = "$host_cpu"; then
8465	# AIX 5 now supports IA64 processor
8466	lt_prog_compiler_static='-Bstatic'
8467      else
8468	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8469      fi
8470      ;;
8471
8472    darwin* | rhapsody*)
8473      # PIC is the default on this platform
8474      # Common symbols not allowed in MH_DYLIB files
8475      lt_prog_compiler_pic='-fno-common'
8476      case $cc_basename in
8477      nagfor*)
8478        # NAG Fortran compiler
8479        lt_prog_compiler_wl='-Wl,-Wl,,'
8480        lt_prog_compiler_pic='-PIC'
8481        lt_prog_compiler_static='-Bstatic'
8482        ;;
8483      esac
8484      ;;
8485
8486    mingw* | cygwin* | pw32* | os2* | cegcc*)
8487      # This hack is so that the source file can tell whether it is being
8488      # built for inclusion in a dll (and should export symbols for example).
8489      lt_prog_compiler_pic='-DDLL_EXPORT'
8490      case $host_os in
8491      os2*)
8492	lt_prog_compiler_static='$wl-static'
8493	;;
8494      esac
8495      ;;
8496
8497    hpux9* | hpux10* | hpux11*)
8498      lt_prog_compiler_wl='-Wl,'
8499      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8500      # not for PA HP-UX.
8501      case $host_cpu in
8502      hppa*64*|ia64*)
8503	# +Z the default
8504	;;
8505      *)
8506	lt_prog_compiler_pic='+Z'
8507	;;
8508      esac
8509      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8510      lt_prog_compiler_static='$wl-a ${wl}archive'
8511      ;;
8512
8513    irix5* | irix6* | nonstopux*)
8514      lt_prog_compiler_wl='-Wl,'
8515      # PIC (with -KPIC) is the default.
8516      lt_prog_compiler_static='-non_shared'
8517      ;;
8518
8519    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8520      case $cc_basename in
8521      # old Intel for x86_64, which still supported -KPIC.
8522      ecc*)
8523	lt_prog_compiler_wl='-Wl,'
8524	lt_prog_compiler_pic='-KPIC'
8525	lt_prog_compiler_static='-static'
8526        ;;
8527      # icc used to be incompatible with GCC.
8528      # ICC 10 doesn't accept -KPIC any more.
8529      icc* | ifort*)
8530	lt_prog_compiler_wl='-Wl,'
8531	lt_prog_compiler_pic='-fPIC'
8532	lt_prog_compiler_static='-static'
8533        ;;
8534      # Lahey Fortran 8.1.
8535      lf95*)
8536	lt_prog_compiler_wl='-Wl,'
8537	lt_prog_compiler_pic='--shared'
8538	lt_prog_compiler_static='--static'
8539	;;
8540      nagfor*)
8541	# NAG Fortran compiler
8542	lt_prog_compiler_wl='-Wl,-Wl,,'
8543	lt_prog_compiler_pic='-PIC'
8544	lt_prog_compiler_static='-Bstatic'
8545	;;
8546      tcc*)
8547	# Fabrice Bellard et al's Tiny C Compiler
8548	lt_prog_compiler_wl='-Wl,'
8549	lt_prog_compiler_pic='-fPIC'
8550	lt_prog_compiler_static='-static'
8551	;;
8552      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8553        # Portland Group compilers (*not* the Pentium gcc compiler,
8554	# which looks to be a dead project)
8555	lt_prog_compiler_wl='-Wl,'
8556	lt_prog_compiler_pic='-fpic'
8557	lt_prog_compiler_static='-Bstatic'
8558        ;;
8559      ccc*)
8560        lt_prog_compiler_wl='-Wl,'
8561        # All Alpha code is PIC.
8562        lt_prog_compiler_static='-non_shared'
8563        ;;
8564      xl* | bgxl* | bgf* | mpixl*)
8565	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8566	lt_prog_compiler_wl='-Wl,'
8567	lt_prog_compiler_pic='-qpic'
8568	lt_prog_compiler_static='-qstaticlink'
8569	;;
8570      *)
8571	case `$CC -V 2>&1 | sed 5q` in
8572	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8573	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8574	  lt_prog_compiler_pic='-KPIC'
8575	  lt_prog_compiler_static='-Bstatic'
8576	  lt_prog_compiler_wl=''
8577	  ;;
8578	*Sun\ F* | *Sun*Fortran*)
8579	  lt_prog_compiler_pic='-KPIC'
8580	  lt_prog_compiler_static='-Bstatic'
8581	  lt_prog_compiler_wl='-Qoption ld '
8582	  ;;
8583	*Sun\ C*)
8584	  # Sun C 5.9
8585	  lt_prog_compiler_pic='-KPIC'
8586	  lt_prog_compiler_static='-Bstatic'
8587	  lt_prog_compiler_wl='-Wl,'
8588	  ;;
8589        *Intel*\ [CF]*Compiler*)
8590	  lt_prog_compiler_wl='-Wl,'
8591	  lt_prog_compiler_pic='-fPIC'
8592	  lt_prog_compiler_static='-static'
8593	  ;;
8594	*Portland\ Group*)
8595	  lt_prog_compiler_wl='-Wl,'
8596	  lt_prog_compiler_pic='-fpic'
8597	  lt_prog_compiler_static='-Bstatic'
8598	  ;;
8599	esac
8600	;;
8601      esac
8602      ;;
8603
8604    newsos6)
8605      lt_prog_compiler_pic='-KPIC'
8606      lt_prog_compiler_static='-Bstatic'
8607      ;;
8608
8609    *nto* | *qnx*)
8610      # QNX uses GNU C++, but need to define -shared option too, otherwise
8611      # it will coredump.
8612      lt_prog_compiler_pic='-fPIC -shared'
8613      ;;
8614
8615    osf3* | osf4* | osf5*)
8616      lt_prog_compiler_wl='-Wl,'
8617      # All OSF/1 code is PIC.
8618      lt_prog_compiler_static='-non_shared'
8619      ;;
8620
8621    rdos*)
8622      lt_prog_compiler_static='-non_shared'
8623      ;;
8624
8625    solaris*)
8626      lt_prog_compiler_pic='-KPIC'
8627      lt_prog_compiler_static='-Bstatic'
8628      case $cc_basename in
8629      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8630	lt_prog_compiler_wl='-Qoption ld ';;
8631      *)
8632	lt_prog_compiler_wl='-Wl,';;
8633      esac
8634      ;;
8635
8636    sunos4*)
8637      lt_prog_compiler_wl='-Qoption ld '
8638      lt_prog_compiler_pic='-PIC'
8639      lt_prog_compiler_static='-Bstatic'
8640      ;;
8641
8642    sysv4 | sysv4.2uw2* | sysv4.3*)
8643      lt_prog_compiler_wl='-Wl,'
8644      lt_prog_compiler_pic='-KPIC'
8645      lt_prog_compiler_static='-Bstatic'
8646      ;;
8647
8648    sysv4*MP*)
8649      if test -d /usr/nec; then
8650	lt_prog_compiler_pic='-Kconform_pic'
8651	lt_prog_compiler_static='-Bstatic'
8652      fi
8653      ;;
8654
8655    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8656      lt_prog_compiler_wl='-Wl,'
8657      lt_prog_compiler_pic='-KPIC'
8658      lt_prog_compiler_static='-Bstatic'
8659      ;;
8660
8661    unicos*)
8662      lt_prog_compiler_wl='-Wl,'
8663      lt_prog_compiler_can_build_shared=no
8664      ;;
8665
8666    uts4*)
8667      lt_prog_compiler_pic='-pic'
8668      lt_prog_compiler_static='-Bstatic'
8669      ;;
8670
8671    *)
8672      lt_prog_compiler_can_build_shared=no
8673      ;;
8674    esac
8675  fi
8676
8677case $host_os in
8678  # For platforms that do not support PIC, -DPIC is meaningless:
8679  *djgpp*)
8680    lt_prog_compiler_pic=
8681    ;;
8682  *)
8683    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8684    ;;
8685esac
8686
8687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8688$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8689if ${lt_cv_prog_compiler_pic+:} false; then :
8690  $as_echo_n "(cached) " >&6
8691else
8692  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8693fi
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8695$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8696lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8697
8698#
8699# Check to make sure the PIC flag actually works.
8700#
8701if test -n "$lt_prog_compiler_pic"; then
8702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8703$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8704if ${lt_cv_prog_compiler_pic_works+:} false; then :
8705  $as_echo_n "(cached) " >&6
8706else
8707  lt_cv_prog_compiler_pic_works=no
8708   ac_outfile=conftest.$ac_objext
8709   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8710   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8711   # Insert the option either (1) after the last *FLAGS variable, or
8712   # (2) before a word containing "conftest.", or (3) at the end.
8713   # Note that $ac_compile itself does not contain backslashes and begins
8714   # with a dollar sign (not a hyphen), so the echo should work correctly.
8715   # The option is referenced via a variable to avoid confusing sed.
8716   lt_compile=`echo "$ac_compile" | $SED \
8717   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8718   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8719   -e 's:$: $lt_compiler_flag:'`
8720   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8721   (eval "$lt_compile" 2>conftest.err)
8722   ac_status=$?
8723   cat conftest.err >&5
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   if (exit $ac_status) && test -s "$ac_outfile"; then
8726     # The compiler can only warn and ignore the option if not recognized
8727     # So say no if there are warnings other than the usual output.
8728     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8729     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8730     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8731       lt_cv_prog_compiler_pic_works=yes
8732     fi
8733   fi
8734   $RM conftest*
8735
8736fi
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8738$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8739
8740if test yes = "$lt_cv_prog_compiler_pic_works"; then
8741    case $lt_prog_compiler_pic in
8742     "" | " "*) ;;
8743     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8744     esac
8745else
8746    lt_prog_compiler_pic=
8747     lt_prog_compiler_can_build_shared=no
8748fi
8749
8750fi
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762#
8763# Check to make sure the static flag actually works.
8764#
8765wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8767$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8768if ${lt_cv_prog_compiler_static_works+:} false; then :
8769  $as_echo_n "(cached) " >&6
8770else
8771  lt_cv_prog_compiler_static_works=no
8772   save_LDFLAGS=$LDFLAGS
8773   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8774   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8775   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8776     # The linker can only warn and ignore the option if not recognized
8777     # So say no if there are warnings
8778     if test -s conftest.err; then
8779       # Append any errors to the config.log.
8780       cat conftest.err 1>&5
8781       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8782       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8783       if diff conftest.exp conftest.er2 >/dev/null; then
8784         lt_cv_prog_compiler_static_works=yes
8785       fi
8786     else
8787       lt_cv_prog_compiler_static_works=yes
8788     fi
8789   fi
8790   $RM -r conftest*
8791   LDFLAGS=$save_LDFLAGS
8792
8793fi
8794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8795$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8796
8797if test yes = "$lt_cv_prog_compiler_static_works"; then
8798    :
8799else
8800    lt_prog_compiler_static=
8801fi
8802
8803
8804
8805
8806
8807
8808
8809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8810$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8811if ${lt_cv_prog_compiler_c_o+:} false; then :
8812  $as_echo_n "(cached) " >&6
8813else
8814  lt_cv_prog_compiler_c_o=no
8815   $RM -r conftest 2>/dev/null
8816   mkdir conftest
8817   cd conftest
8818   mkdir out
8819   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8820
8821   lt_compiler_flag="-o out/conftest2.$ac_objext"
8822   # Insert the option either (1) after the last *FLAGS variable, or
8823   # (2) before a word containing "conftest.", or (3) at the end.
8824   # Note that $ac_compile itself does not contain backslashes and begins
8825   # with a dollar sign (not a hyphen), so the echo should work correctly.
8826   lt_compile=`echo "$ac_compile" | $SED \
8827   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8828   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8829   -e 's:$: $lt_compiler_flag:'`
8830   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8831   (eval "$lt_compile" 2>out/conftest.err)
8832   ac_status=$?
8833   cat out/conftest.err >&5
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8836   then
8837     # The compiler can only warn and ignore the option if not recognized
8838     # So say no if there are warnings
8839     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8840     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8841     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8842       lt_cv_prog_compiler_c_o=yes
8843     fi
8844   fi
8845   chmod u+w . 2>&5
8846   $RM conftest*
8847   # SGI C++ compiler will create directory out/ii_files/ for
8848   # template instantiation
8849   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8850   $RM out/* && rmdir out
8851   cd ..
8852   $RM -r conftest
8853   $RM conftest*
8854
8855fi
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8857$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8858
8859
8860
8861
8862
8863
8864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8865$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8866if ${lt_cv_prog_compiler_c_o+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  lt_cv_prog_compiler_c_o=no
8870   $RM -r conftest 2>/dev/null
8871   mkdir conftest
8872   cd conftest
8873   mkdir out
8874   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8875
8876   lt_compiler_flag="-o out/conftest2.$ac_objext"
8877   # Insert the option either (1) after the last *FLAGS variable, or
8878   # (2) before a word containing "conftest.", or (3) at the end.
8879   # Note that $ac_compile itself does not contain backslashes and begins
8880   # with a dollar sign (not a hyphen), so the echo should work correctly.
8881   lt_compile=`echo "$ac_compile" | $SED \
8882   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8883   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8884   -e 's:$: $lt_compiler_flag:'`
8885   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8886   (eval "$lt_compile" 2>out/conftest.err)
8887   ac_status=$?
8888   cat out/conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8891   then
8892     # The compiler can only warn and ignore the option if not recognized
8893     # So say no if there are warnings
8894     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8895     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8896     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8897       lt_cv_prog_compiler_c_o=yes
8898     fi
8899   fi
8900   chmod u+w . 2>&5
8901   $RM conftest*
8902   # SGI C++ compiler will create directory out/ii_files/ for
8903   # template instantiation
8904   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8905   $RM out/* && rmdir out
8906   cd ..
8907   $RM -r conftest
8908   $RM conftest*
8909
8910fi
8911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8912$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8913
8914
8915
8916
8917hard_links=nottested
8918if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8919  # do not overwrite the value of need_locks provided by the user
8920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8921$as_echo_n "checking if we can lock with hard links... " >&6; }
8922  hard_links=yes
8923  $RM conftest*
8924  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8925  touch conftest.a
8926  ln conftest.a conftest.b 2>&5 || hard_links=no
8927  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8929$as_echo "$hard_links" >&6; }
8930  if test no = "$hard_links"; then
8931    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8932$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8933    need_locks=warn
8934  fi
8935else
8936  need_locks=no
8937fi
8938
8939
8940
8941
8942
8943
8944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8945$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8946
8947  runpath_var=
8948  allow_undefined_flag=
8949  always_export_symbols=no
8950  archive_cmds=
8951  archive_expsym_cmds=
8952  compiler_needs_object=no
8953  enable_shared_with_static_runtimes=no
8954  export_dynamic_flag_spec=
8955  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8956  hardcode_automatic=no
8957  hardcode_direct=no
8958  hardcode_direct_absolute=no
8959  hardcode_libdir_flag_spec=
8960  hardcode_libdir_separator=
8961  hardcode_minus_L=no
8962  hardcode_shlibpath_var=unsupported
8963  inherit_rpath=no
8964  link_all_deplibs=unknown
8965  module_cmds=
8966  module_expsym_cmds=
8967  old_archive_from_new_cmds=
8968  old_archive_from_expsyms_cmds=
8969  thread_safe_flag_spec=
8970  whole_archive_flag_spec=
8971  # include_expsyms should be a list of space-separated symbols to be *always*
8972  # included in the symbol list
8973  include_expsyms=
8974  # exclude_expsyms can be an extended regexp of symbols to exclude
8975  # it will be wrapped by ' (' and ')$', so one must not match beginning or
8976  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8977  # as well as any symbol that contains 'd'.
8978  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8979  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8980  # platforms (ab)use it in PIC code, but their linkers get confused if
8981  # the symbol is explicitly referenced.  Since portable code cannot
8982  # rely on this symbol name, it's probably fine to never include it in
8983  # preloaded symbol tables.
8984  # Exclude shared library initialization/finalization symbols.
8985  extract_expsyms_cmds=
8986
8987  case $host_os in
8988  cygwin* | mingw* | pw32* | cegcc*)
8989    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8990    # When not using gcc, we currently assume that we are using
8991    # Microsoft Visual C++.
8992    if test yes != "$GCC"; then
8993      with_gnu_ld=no
8994    fi
8995    ;;
8996  interix*)
8997    # we just hope/assume this is gcc and not c89 (= MSVC++)
8998    with_gnu_ld=yes
8999    ;;
9000  openbsd* | bitrig*)
9001    with_gnu_ld=no
9002    ;;
9003  esac
9004
9005  ld_shlibs=yes
9006
9007  # On some targets, GNU ld is compatible enough with the native linker
9008  # that we're better off using the native interface for both.
9009  lt_use_gnu_ld_interface=no
9010  if test yes = "$with_gnu_ld"; then
9011    case $host_os in
9012      aix*)
9013	# The AIX port of GNU ld has always aspired to compatibility
9014	# with the native linker.  However, as the warning in the GNU ld
9015	# block says, versions before 2.19.5* couldn't really create working
9016	# shared libraries, regardless of the interface used.
9017	case `$LD -v 2>&1` in
9018	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9019	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9020	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9021	  *)
9022	    lt_use_gnu_ld_interface=yes
9023	    ;;
9024	esac
9025	;;
9026      *)
9027	lt_use_gnu_ld_interface=yes
9028	;;
9029    esac
9030  fi
9031
9032  if test yes = "$lt_use_gnu_ld_interface"; then
9033    # If archive_cmds runs LD, not CC, wlarc should be empty
9034    wlarc='$wl'
9035
9036    # Set some defaults for GNU ld with shared library support. These
9037    # are reset later if shared libraries are not supported. Putting them
9038    # here allows them to be overridden if necessary.
9039    runpath_var=LD_RUN_PATH
9040    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9041    export_dynamic_flag_spec='$wl--export-dynamic'
9042    # ancient GNU ld didn't support --whole-archive et. al.
9043    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9044      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9045    else
9046      whole_archive_flag_spec=
9047    fi
9048    supports_anon_versioning=no
9049    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9050      *GNU\ gold*) supports_anon_versioning=yes ;;
9051      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9052      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9053      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9054      *\ 2.11.*) ;; # other 2.11 versions
9055      *) supports_anon_versioning=yes ;;
9056    esac
9057
9058    # See if GNU ld supports shared libraries.
9059    case $host_os in
9060    aix[3-9]*)
9061      # On AIX/PPC, the GNU linker is very broken
9062      if test ia64 != "$host_cpu"; then
9063	ld_shlibs=no
9064	cat <<_LT_EOF 1>&2
9065
9066*** Warning: the GNU linker, at least up to release 2.19, is reported
9067*** to be unable to reliably create shared libraries on AIX.
9068*** Therefore, libtool is disabling shared libraries support.  If you
9069*** really care for shared libraries, you may want to install binutils
9070*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9071*** You will then need to restart the configuration process.
9072
9073_LT_EOF
9074      fi
9075      ;;
9076
9077    amigaos*)
9078      case $host_cpu in
9079      powerpc)
9080            # see comment about AmigaOS4 .so support
9081            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9082            archive_expsym_cmds=''
9083        ;;
9084      m68k)
9085            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)'
9086            hardcode_libdir_flag_spec='-L$libdir'
9087            hardcode_minus_L=yes
9088        ;;
9089      esac
9090      ;;
9091
9092    beos*)
9093      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9094	allow_undefined_flag=unsupported
9095	# Joseph Beckenbach <[email protected]> says some releases of gcc
9096	# support --undefined.  This deserves some investigation.  FIXME
9097	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9098      else
9099	ld_shlibs=no
9100      fi
9101      ;;
9102
9103    cygwin* | mingw* | pw32* | cegcc*)
9104      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9105      # as there is no search path for DLLs.
9106      hardcode_libdir_flag_spec='-L$libdir'
9107      export_dynamic_flag_spec='$wl--export-all-symbols'
9108      allow_undefined_flag=unsupported
9109      always_export_symbols=no
9110      enable_shared_with_static_runtimes=yes
9111      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'
9112      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9113
9114      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9115        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9116	# If the export-symbols file already is a .def file, use it as
9117	# is; otherwise, prepend EXPORTS...
9118	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9119          cp $export_symbols $output_objdir/$soname.def;
9120        else
9121          echo EXPORTS > $output_objdir/$soname.def;
9122          cat $export_symbols >> $output_objdir/$soname.def;
9123        fi~
9124        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9125      else
9126	ld_shlibs=no
9127      fi
9128      ;;
9129
9130    haiku*)
9131      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9132      link_all_deplibs=yes
9133      ;;
9134
9135    os2*)
9136      hardcode_libdir_flag_spec='-L$libdir'
9137      hardcode_minus_L=yes
9138      allow_undefined_flag=unsupported
9139      shrext_cmds=.dll
9140      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9141	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9142	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9143	$ECHO EXPORTS >> $output_objdir/$libname.def~
9144	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9145	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9146	emximp -o $lib $output_objdir/$libname.def'
9147      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9148	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9149	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9150	$ECHO EXPORTS >> $output_objdir/$libname.def~
9151	prefix_cmds="$SED"~
9152	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9153	  prefix_cmds="$prefix_cmds -e 1d";
9154	fi~
9155	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9156	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9157	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9158	emximp -o $lib $output_objdir/$libname.def'
9159      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9160      enable_shared_with_static_runtimes=yes
9161      ;;
9162
9163    interix[3-9]*)
9164      hardcode_direct=no
9165      hardcode_shlibpath_var=no
9166      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9167      export_dynamic_flag_spec='$wl-E'
9168      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9169      # Instead, shared libraries are loaded at an image base (0x10000000 by
9170      # default) and relocated if they conflict, which is a slow very memory
9171      # consuming and fragmenting process.  To avoid this, we pick a random,
9172      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9173      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9174      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9175      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'
9176      ;;
9177
9178    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9179      tmp_diet=no
9180      if test linux-dietlibc = "$host_os"; then
9181	case $cc_basename in
9182	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9183	esac
9184      fi
9185      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9186	 && test no = "$tmp_diet"
9187      then
9188	tmp_addflag=' $pic_flag'
9189	tmp_sharedflag='-shared'
9190	case $cc_basename,$host_cpu in
9191        pgcc*)				# Portland Group C compiler
9192	  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'
9193	  tmp_addflag=' $pic_flag'
9194	  ;;
9195	pgf77* | pgf90* | pgf95* | pgfortran*)
9196					# Portland Group f77 and f90 compilers
9197	  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'
9198	  tmp_addflag=' $pic_flag -Mnomain' ;;
9199	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9200	  tmp_addflag=' -i_dynamic' ;;
9201	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9202	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9203	ifc* | ifort*)			# Intel Fortran compiler
9204	  tmp_addflag=' -nofor_main' ;;
9205	lf95*)				# Lahey Fortran 8.1
9206	  whole_archive_flag_spec=
9207	  tmp_sharedflag='--shared' ;;
9208        nagfor*)                        # NAGFOR 5.3
9209          tmp_sharedflag='-Wl,-shared' ;;
9210	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9211	  tmp_sharedflag='-qmkshrobj'
9212	  tmp_addflag= ;;
9213	nvcc*)	# Cuda Compiler Driver 2.2
9214	  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'
9215	  compiler_needs_object=yes
9216	  ;;
9217	esac
9218	case `$CC -V 2>&1 | sed 5q` in
9219	*Sun\ C*)			# Sun C 5.9
9220	  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'
9221	  compiler_needs_object=yes
9222	  tmp_sharedflag='-G' ;;
9223	*Sun\ F*)			# Sun Fortran 8.3
9224	  tmp_sharedflag='-G' ;;
9225	esac
9226	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9227
9228        if test yes = "$supports_anon_versioning"; then
9229          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9230            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9231            echo "local: *; };" >> $output_objdir/$libname.ver~
9232            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9233        fi
9234
9235	case $cc_basename in
9236	tcc*)
9237	  export_dynamic_flag_spec='-rdynamic'
9238	  ;;
9239	xlf* | bgf* | bgxlf* | mpixlf*)
9240	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9241	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9242	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9243	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9244	  if test yes = "$supports_anon_versioning"; then
9245	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9246              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9247              echo "local: *; };" >> $output_objdir/$libname.ver~
9248              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9249	  fi
9250	  ;;
9251	esac
9252      else
9253        ld_shlibs=no
9254      fi
9255      ;;
9256
9257    netbsd*)
9258      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9259	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9260	wlarc=
9261      else
9262	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9263	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9264      fi
9265      ;;
9266
9267    solaris*)
9268      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9269	ld_shlibs=no
9270	cat <<_LT_EOF 1>&2
9271
9272*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9273*** create shared libraries on Solaris systems.  Therefore, libtool
9274*** is disabling shared libraries support.  We urge you to upgrade GNU
9275*** binutils to release 2.9.1 or newer.  Another option is to modify
9276*** your PATH or compiler configuration so that the native linker is
9277*** used, and then restart.
9278
9279_LT_EOF
9280      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9281	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9282	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9283      else
9284	ld_shlibs=no
9285      fi
9286      ;;
9287
9288    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9289      case `$LD -v 2>&1` in
9290        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9291	ld_shlibs=no
9292	cat <<_LT_EOF 1>&2
9293
9294*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9295*** reliably create shared libraries on SCO systems.  Therefore, libtool
9296*** is disabling shared libraries support.  We urge you to upgrade GNU
9297*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9298*** your PATH or compiler configuration so that the native linker is
9299*** used, and then restart.
9300
9301_LT_EOF
9302	;;
9303	*)
9304	  # For security reasons, it is highly recommended that you always
9305	  # use absolute paths for naming shared libraries, and exclude the
9306	  # DT_RUNPATH tag from executables and libraries.  But doing so
9307	  # requires that you compile everything twice, which is a pain.
9308	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9309	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9310	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9311	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9312	  else
9313	    ld_shlibs=no
9314	  fi
9315	;;
9316      esac
9317      ;;
9318
9319    sunos4*)
9320      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9321      wlarc=
9322      hardcode_direct=yes
9323      hardcode_shlibpath_var=no
9324      ;;
9325
9326    *)
9327      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9328	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9329	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9330      else
9331	ld_shlibs=no
9332      fi
9333      ;;
9334    esac
9335
9336    if test no = "$ld_shlibs"; then
9337      runpath_var=
9338      hardcode_libdir_flag_spec=
9339      export_dynamic_flag_spec=
9340      whole_archive_flag_spec=
9341    fi
9342  else
9343    # PORTME fill in a description of your system's linker (not GNU ld)
9344    case $host_os in
9345    aix3*)
9346      allow_undefined_flag=unsupported
9347      always_export_symbols=yes
9348      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'
9349      # Note: this linker hardcodes the directories in LIBPATH if there
9350      # are no directories specified by -L.
9351      hardcode_minus_L=yes
9352      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9353	# Neither direct hardcoding nor static linking is supported with a
9354	# broken collect2.
9355	hardcode_direct=unsupported
9356      fi
9357      ;;
9358
9359    aix[4-9]*)
9360      if test ia64 = "$host_cpu"; then
9361	# On IA64, the linker does run time linking by default, so we don't
9362	# have to do anything special.
9363	aix_use_runtimelinking=no
9364	exp_sym_flag='-Bexport'
9365	no_entry_flag=
9366      else
9367	# If we're using GNU nm, then we don't want the "-C" option.
9368	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9369	# Without the "-l" option, or with the "-B" option, AIX nm treats
9370	# weak defined symbols like other global defined symbols, whereas
9371	# GNU nm marks them as "W".
9372	# While the 'weak' keyword is ignored in the Export File, we need
9373	# it in the Import File for the 'aix-soname' feature, so we have
9374	# to replace the "-B" option with "-P" for AIX nm.
9375	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9376	  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'
9377	else
9378	  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'
9379	fi
9380	aix_use_runtimelinking=no
9381
9382	# Test if we are trying to use run time linking or normal
9383	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9384	# have runtime linking enabled, and use it for executables.
9385	# For shared libraries, we enable/disable runtime linking
9386	# depending on the kind of the shared library created -
9387	# when "with_aix_soname,aix_use_runtimelinking" is:
9388	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9389	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9390	#            lib.a           static archive
9391	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9392	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9393	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9394	#            lib.a(lib.so.V) shared, rtl:no
9395	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9396	#            lib.a           static archive
9397	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9398	  for ld_flag in $LDFLAGS; do
9399	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9400	    aix_use_runtimelinking=yes
9401	    break
9402	  fi
9403	  done
9404	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9405	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9406	    # so we don't have lib.a shared libs to link our executables.
9407	    # We have to force runtime linking in this case.
9408	    aix_use_runtimelinking=yes
9409	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9410	  fi
9411	  ;;
9412	esac
9413
9414	exp_sym_flag='-bexport'
9415	no_entry_flag='-bnoentry'
9416      fi
9417
9418      # When large executables or shared objects are built, AIX ld can
9419      # have problems creating the table of contents.  If linking a library
9420      # or program results in "error TOC overflow" add -mminimal-toc to
9421      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9422      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9423
9424      archive_cmds=''
9425      hardcode_direct=yes
9426      hardcode_direct_absolute=yes
9427      hardcode_libdir_separator=':'
9428      link_all_deplibs=yes
9429      file_list_spec='$wl-f,'
9430      case $with_aix_soname,$aix_use_runtimelinking in
9431      aix,*) ;; # traditional, no import file
9432      svr4,* | *,yes) # use import file
9433	# The Import File defines what to hardcode.
9434	hardcode_direct=no
9435	hardcode_direct_absolute=no
9436	;;
9437      esac
9438
9439      if test yes = "$GCC"; then
9440	case $host_os in aix4.[012]|aix4.[012].*)
9441	# We only want to do this on AIX 4.2 and lower, the check
9442	# below for broken collect2 doesn't work under 4.3+
9443	  collect2name=`$CC -print-prog-name=collect2`
9444	  if test -f "$collect2name" &&
9445	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9446	  then
9447	  # We have reworked collect2
9448	  :
9449	  else
9450	  # We have old collect2
9451	  hardcode_direct=unsupported
9452	  # It fails to find uninstalled libraries when the uninstalled
9453	  # path is not listed in the libpath.  Setting hardcode_minus_L
9454	  # to unsupported forces relinking
9455	  hardcode_minus_L=yes
9456	  hardcode_libdir_flag_spec='-L$libdir'
9457	  hardcode_libdir_separator=
9458	  fi
9459	  ;;
9460	esac
9461	shared_flag='-shared'
9462	if test yes = "$aix_use_runtimelinking"; then
9463	  shared_flag="$shared_flag "'$wl-G'
9464	fi
9465	# Need to ensure runtime linking is disabled for the traditional
9466	# shared library, or the linker may eventually find shared libraries
9467	# /with/ Import File - we do not want to mix them.
9468	shared_flag_aix='-shared'
9469	shared_flag_svr4='-shared $wl-G'
9470      else
9471	# not using gcc
9472	if test ia64 = "$host_cpu"; then
9473	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9474	# chokes on -Wl,-G. The following line is correct:
9475	  shared_flag='-G'
9476	else
9477	  if test yes = "$aix_use_runtimelinking"; then
9478	    shared_flag='$wl-G'
9479	  else
9480	    shared_flag='$wl-bM:SRE'
9481	  fi
9482	  shared_flag_aix='$wl-bM:SRE'
9483	  shared_flag_svr4='$wl-G'
9484	fi
9485      fi
9486
9487      export_dynamic_flag_spec='$wl-bexpall'
9488      # It seems that -bexpall does not export symbols beginning with
9489      # underscore (_), so it is better to generate a list of symbols to export.
9490      always_export_symbols=yes
9491      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9492	# Warning - without using the other runtime loading flags (-brtl),
9493	# -berok will link without error, but may produce a broken library.
9494	allow_undefined_flag='-berok'
9495        # Determine the default libpath from the value encoded in an
9496        # empty executable.
9497        if test set = "${lt_cv_aix_libpath+set}"; then
9498  aix_libpath=$lt_cv_aix_libpath
9499else
9500  if ${lt_cv_aix_libpath_+:} false; then :
9501  $as_echo_n "(cached) " >&6
9502else
9503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504/* end confdefs.h.  */
9505
9506int
9507main ()
9508{
9509
9510  ;
9511  return 0;
9512}
9513_ACEOF
9514if ac_fn_c_try_link "$LINENO"; then :
9515
9516  lt_aix_libpath_sed='
9517      /Import File Strings/,/^$/ {
9518	  /^0/ {
9519	      s/^0  *\([^ ]*\) *$/\1/
9520	      p
9521	  }
9522      }'
9523  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9524  # Check for a 64-bit object if we didn't find anything.
9525  if test -z "$lt_cv_aix_libpath_"; then
9526    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9527  fi
9528fi
9529rm -f core conftest.err conftest.$ac_objext \
9530    conftest$ac_exeext conftest.$ac_ext
9531  if test -z "$lt_cv_aix_libpath_"; then
9532    lt_cv_aix_libpath_=/usr/lib:/lib
9533  fi
9534
9535fi
9536
9537  aix_libpath=$lt_cv_aix_libpath_
9538fi
9539
9540        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9541        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
9542      else
9543	if test ia64 = "$host_cpu"; then
9544	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9545	  allow_undefined_flag="-z nodefs"
9546	  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"
9547	else
9548	 # Determine the default libpath from the value encoded in an
9549	 # empty executable.
9550	 if test set = "${lt_cv_aix_libpath+set}"; then
9551  aix_libpath=$lt_cv_aix_libpath
9552else
9553  if ${lt_cv_aix_libpath_+:} false; then :
9554  $as_echo_n "(cached) " >&6
9555else
9556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9557/* end confdefs.h.  */
9558
9559int
9560main ()
9561{
9562
9563  ;
9564  return 0;
9565}
9566_ACEOF
9567if ac_fn_c_try_link "$LINENO"; then :
9568
9569  lt_aix_libpath_sed='
9570      /Import File Strings/,/^$/ {
9571	  /^0/ {
9572	      s/^0  *\([^ ]*\) *$/\1/
9573	      p
9574	  }
9575      }'
9576  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9577  # Check for a 64-bit object if we didn't find anything.
9578  if test -z "$lt_cv_aix_libpath_"; then
9579    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9580  fi
9581fi
9582rm -f core conftest.err conftest.$ac_objext \
9583    conftest$ac_exeext conftest.$ac_ext
9584  if test -z "$lt_cv_aix_libpath_"; then
9585    lt_cv_aix_libpath_=/usr/lib:/lib
9586  fi
9587
9588fi
9589
9590  aix_libpath=$lt_cv_aix_libpath_
9591fi
9592
9593	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9594	  # Warning - without using the other run time loading flags,
9595	  # -berok will link without error, but may produce a broken library.
9596	  no_undefined_flag=' $wl-bernotok'
9597	  allow_undefined_flag=' $wl-berok'
9598	  if test yes = "$with_gnu_ld"; then
9599	    # We only use this code for GNU lds that support --whole-archive.
9600	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9601	  else
9602	    # Exported symbols can be pulled into shared objects from archives
9603	    whole_archive_flag_spec='$convenience'
9604	  fi
9605	  archive_cmds_need_lc=yes
9606	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9607	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9608	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9609	  if test svr4 != "$with_aix_soname"; then
9610	    # This is similar to how AIX traditionally builds its shared libraries.
9611	    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'
9612	  fi
9613	  if test aix != "$with_aix_soname"; then
9614	    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'
9615	  else
9616	    # used by -dlpreopen to get the symbols
9617	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9618	  fi
9619	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9620	fi
9621      fi
9622      ;;
9623
9624    amigaos*)
9625      case $host_cpu in
9626      powerpc)
9627            # see comment about AmigaOS4 .so support
9628            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9629            archive_expsym_cmds=''
9630        ;;
9631      m68k)
9632            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)'
9633            hardcode_libdir_flag_spec='-L$libdir'
9634            hardcode_minus_L=yes
9635        ;;
9636      esac
9637      ;;
9638
9639    bsdi[45]*)
9640      export_dynamic_flag_spec=-rdynamic
9641      ;;
9642
9643    cygwin* | mingw* | pw32* | cegcc*)
9644      # When not using gcc, we currently assume that we are using
9645      # Microsoft Visual C++.
9646      # hardcode_libdir_flag_spec is actually meaningless, as there is
9647      # no search path for DLLs.
9648      case $cc_basename in
9649      cl*)
9650	# Native MSVC
9651	hardcode_libdir_flag_spec=' '
9652	allow_undefined_flag=unsupported
9653	always_export_symbols=yes
9654	file_list_spec='@'
9655	# Tell ltmain to make .lib files, not .a files.
9656	libext=lib
9657	# Tell ltmain to make .dll files, not .so files.
9658	shrext_cmds=.dll
9659	# FIXME: Setting linknames here is a bad hack.
9660	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9661	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9662            cp "$export_symbols" "$output_objdir/$soname.def";
9663            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9664          else
9665            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9666          fi~
9667          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9668          linknames='
9669	# The linker will not automatically build a static lib if we build a DLL.
9670	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9671	enable_shared_with_static_runtimes=yes
9672	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9673	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9674	# Don't use ranlib
9675	old_postinstall_cmds='chmod 644 $oldlib'
9676	postlink_cmds='lt_outputfile="@OUTPUT@"~
9677          lt_tool_outputfile="@TOOL_OUTPUT@"~
9678          case $lt_outputfile in
9679            *.exe|*.EXE) ;;
9680            *)
9681              lt_outputfile=$lt_outputfile.exe
9682              lt_tool_outputfile=$lt_tool_outputfile.exe
9683              ;;
9684          esac~
9685          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9686            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9687            $RM "$lt_outputfile.manifest";
9688          fi'
9689	;;
9690      *)
9691	# Assume MSVC wrapper
9692	hardcode_libdir_flag_spec=' '
9693	allow_undefined_flag=unsupported
9694	# Tell ltmain to make .lib files, not .a files.
9695	libext=lib
9696	# Tell ltmain to make .dll files, not .so files.
9697	shrext_cmds=.dll
9698	# FIXME: Setting linknames here is a bad hack.
9699	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9700	# The linker will automatically build a .lib file if we build a DLL.
9701	old_archive_from_new_cmds='true'
9702	# FIXME: Should let the user specify the lib program.
9703	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9704	enable_shared_with_static_runtimes=yes
9705	;;
9706      esac
9707      ;;
9708
9709    darwin* | rhapsody*)
9710
9711
9712  archive_cmds_need_lc=no
9713  hardcode_direct=no
9714  hardcode_automatic=yes
9715  hardcode_shlibpath_var=unsupported
9716  if test yes = "$lt_cv_ld_force_load"; then
9717    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\"`'
9718
9719  else
9720    whole_archive_flag_spec=''
9721  fi
9722  link_all_deplibs=yes
9723  allow_undefined_flag=$_lt_dar_allow_undefined
9724  case $cc_basename in
9725     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9726     *) _lt_dar_can_shared=$GCC ;;
9727  esac
9728  if test yes = "$_lt_dar_can_shared"; then
9729    output_verbose_link_cmd=func_echo_all
9730    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9731    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9732    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"
9733    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"
9734
9735  else
9736  ld_shlibs=no
9737  fi
9738
9739      ;;
9740
9741    dgux*)
9742      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9743      hardcode_libdir_flag_spec='-L$libdir'
9744      hardcode_shlibpath_var=no
9745      ;;
9746
9747    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9748    # support.  Future versions do this automatically, but an explicit c++rt0.o
9749    # does not break anything, and helps significantly (at the cost of a little
9750    # extra space).
9751    freebsd2.2*)
9752      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9753      hardcode_libdir_flag_spec='-R$libdir'
9754      hardcode_direct=yes
9755      hardcode_shlibpath_var=no
9756      ;;
9757
9758    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9759    freebsd2.*)
9760      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9761      hardcode_direct=yes
9762      hardcode_minus_L=yes
9763      hardcode_shlibpath_var=no
9764      ;;
9765
9766    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9767    freebsd* | dragonfly*)
9768      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9769      hardcode_libdir_flag_spec='-R$libdir'
9770      hardcode_direct=yes
9771      hardcode_shlibpath_var=no
9772      ;;
9773
9774    hpux9*)
9775      if test yes = "$GCC"; then
9776	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'
9777      else
9778	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'
9779      fi
9780      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9781      hardcode_libdir_separator=:
9782      hardcode_direct=yes
9783
9784      # hardcode_minus_L: Not really in the search PATH,
9785      # but as the default location of the library.
9786      hardcode_minus_L=yes
9787      export_dynamic_flag_spec='$wl-E'
9788      ;;
9789
9790    hpux10*)
9791      if test yes,no = "$GCC,$with_gnu_ld"; then
9792	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9793      else
9794	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9795      fi
9796      if test no = "$with_gnu_ld"; then
9797	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9798	hardcode_libdir_separator=:
9799	hardcode_direct=yes
9800	hardcode_direct_absolute=yes
9801	export_dynamic_flag_spec='$wl-E'
9802	# hardcode_minus_L: Not really in the search PATH,
9803	# but as the default location of the library.
9804	hardcode_minus_L=yes
9805      fi
9806      ;;
9807
9808    hpux11*)
9809      if test yes,no = "$GCC,$with_gnu_ld"; then
9810	case $host_cpu in
9811	hppa*64*)
9812	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9813	  ;;
9814	ia64*)
9815	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9816	  ;;
9817	*)
9818	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9819	  ;;
9820	esac
9821      else
9822	case $host_cpu in
9823	hppa*64*)
9824	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9825	  ;;
9826	ia64*)
9827	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9828	  ;;
9829	*)
9830
9831	  # Older versions of the 11.00 compiler do not understand -b yet
9832	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9833	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9834$as_echo_n "checking if $CC understands -b... " >&6; }
9835if ${lt_cv_prog_compiler__b+:} false; then :
9836  $as_echo_n "(cached) " >&6
9837else
9838  lt_cv_prog_compiler__b=no
9839   save_LDFLAGS=$LDFLAGS
9840   LDFLAGS="$LDFLAGS -b"
9841   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9842   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9843     # The linker can only warn and ignore the option if not recognized
9844     # So say no if there are warnings
9845     if test -s conftest.err; then
9846       # Append any errors to the config.log.
9847       cat conftest.err 1>&5
9848       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9849       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9850       if diff conftest.exp conftest.er2 >/dev/null; then
9851         lt_cv_prog_compiler__b=yes
9852       fi
9853     else
9854       lt_cv_prog_compiler__b=yes
9855     fi
9856   fi
9857   $RM -r conftest*
9858   LDFLAGS=$save_LDFLAGS
9859
9860fi
9861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9862$as_echo "$lt_cv_prog_compiler__b" >&6; }
9863
9864if test yes = "$lt_cv_prog_compiler__b"; then
9865    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9866else
9867    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9868fi
9869
9870	  ;;
9871	esac
9872      fi
9873      if test no = "$with_gnu_ld"; then
9874	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9875	hardcode_libdir_separator=:
9876
9877	case $host_cpu in
9878	hppa*64*|ia64*)
9879	  hardcode_direct=no
9880	  hardcode_shlibpath_var=no
9881	  ;;
9882	*)
9883	  hardcode_direct=yes
9884	  hardcode_direct_absolute=yes
9885	  export_dynamic_flag_spec='$wl-E'
9886
9887	  # hardcode_minus_L: Not really in the search PATH,
9888	  # but as the default location of the library.
9889	  hardcode_minus_L=yes
9890	  ;;
9891	esac
9892      fi
9893      ;;
9894
9895    irix5* | irix6* | nonstopux*)
9896      if test yes = "$GCC"; then
9897	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'
9898	# Try to use the -exported_symbol ld option, if it does not
9899	# work, assume that -exports_file does not work either and
9900	# implicitly export all symbols.
9901	# This should be the same for all languages, so no per-tag cache variable.
9902	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9903$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9904if ${lt_cv_irix_exported_symbol+:} false; then :
9905  $as_echo_n "(cached) " >&6
9906else
9907  save_LDFLAGS=$LDFLAGS
9908	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9909	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910/* end confdefs.h.  */
9911int foo (void) { return 0; }
9912_ACEOF
9913if ac_fn_c_try_link "$LINENO"; then :
9914  lt_cv_irix_exported_symbol=yes
9915else
9916  lt_cv_irix_exported_symbol=no
9917fi
9918rm -f core conftest.err conftest.$ac_objext \
9919    conftest$ac_exeext conftest.$ac_ext
9920           LDFLAGS=$save_LDFLAGS
9921fi
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9923$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9924	if test yes = "$lt_cv_irix_exported_symbol"; then
9925          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'
9926	fi
9927      else
9928	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'
9929	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'
9930      fi
9931      archive_cmds_need_lc='no'
9932      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9933      hardcode_libdir_separator=:
9934      inherit_rpath=yes
9935      link_all_deplibs=yes
9936      ;;
9937
9938    linux*)
9939      case $cc_basename in
9940      tcc*)
9941	# Fabrice Bellard et al's Tiny C Compiler
9942	ld_shlibs=yes
9943	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9944	;;
9945      esac
9946      ;;
9947
9948    netbsd*)
9949      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9950	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9951      else
9952	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9953      fi
9954      hardcode_libdir_flag_spec='-R$libdir'
9955      hardcode_direct=yes
9956      hardcode_shlibpath_var=no
9957      ;;
9958
9959    newsos6)
9960      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961      hardcode_direct=yes
9962      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9963      hardcode_libdir_separator=:
9964      hardcode_shlibpath_var=no
9965      ;;
9966
9967    *nto* | *qnx*)
9968      ;;
9969
9970    openbsd* | bitrig*)
9971      if test -f /usr/libexec/ld.so; then
9972	hardcode_direct=yes
9973	hardcode_shlibpath_var=no
9974	hardcode_direct_absolute=yes
9975	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9976	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9977	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9978	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9979	  export_dynamic_flag_spec='$wl-E'
9980	else
9981	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9982	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9983	fi
9984      else
9985	ld_shlibs=no
9986      fi
9987      ;;
9988
9989    os2*)
9990      hardcode_libdir_flag_spec='-L$libdir'
9991      hardcode_minus_L=yes
9992      allow_undefined_flag=unsupported
9993      shrext_cmds=.dll
9994      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9995	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9996	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9997	$ECHO EXPORTS >> $output_objdir/$libname.def~
9998	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9999	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10000	emximp -o $lib $output_objdir/$libname.def'
10001      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10002	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10003	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10004	$ECHO EXPORTS >> $output_objdir/$libname.def~
10005	prefix_cmds="$SED"~
10006	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10007	  prefix_cmds="$prefix_cmds -e 1d";
10008	fi~
10009	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10010	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10011	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10012	emximp -o $lib $output_objdir/$libname.def'
10013      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10014      enable_shared_with_static_runtimes=yes
10015      ;;
10016
10017    osf3*)
10018      if test yes = "$GCC"; then
10019	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10020	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'
10021      else
10022	allow_undefined_flag=' -expect_unresolved \*'
10023	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'
10024      fi
10025      archive_cmds_need_lc='no'
10026      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10027      hardcode_libdir_separator=:
10028      ;;
10029
10030    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10031      if test yes = "$GCC"; then
10032	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10033	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'
10034	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10035      else
10036	allow_undefined_flag=' -expect_unresolved \*'
10037	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'
10038	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~
10039          $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'
10040
10041	# Both c and cxx compiler support -rpath directly
10042	hardcode_libdir_flag_spec='-rpath $libdir'
10043      fi
10044      archive_cmds_need_lc='no'
10045      hardcode_libdir_separator=:
10046      ;;
10047
10048    solaris*)
10049      no_undefined_flag=' -z defs'
10050      if test yes = "$GCC"; then
10051	wlarc='$wl'
10052	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10053	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10054          $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'
10055      else
10056	case `$CC -V 2>&1` in
10057	*"Compilers 5.0"*)
10058	  wlarc=''
10059	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10061            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10062	  ;;
10063	*)
10064	  wlarc='$wl'
10065	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10066	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10067            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10068	  ;;
10069	esac
10070      fi
10071      hardcode_libdir_flag_spec='-R$libdir'
10072      hardcode_shlibpath_var=no
10073      case $host_os in
10074      solaris2.[0-5] | solaris2.[0-5].*) ;;
10075      *)
10076	# The compiler driver will combine and reorder linker options,
10077	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10078	# but is careful enough not to reorder.
10079	# Supported since Solaris 2.6 (maybe 2.5.1?)
10080	if test yes = "$GCC"; then
10081	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10082	else
10083	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10084	fi
10085	;;
10086      esac
10087      link_all_deplibs=yes
10088      ;;
10089
10090    sunos4*)
10091      if test sequent = "$host_vendor"; then
10092	# Use $CC to link under sequent, because it throws in some extra .o
10093	# files that make .init and .fini sections work.
10094	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10095      else
10096	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10097      fi
10098      hardcode_libdir_flag_spec='-L$libdir'
10099      hardcode_direct=yes
10100      hardcode_minus_L=yes
10101      hardcode_shlibpath_var=no
10102      ;;
10103
10104    sysv4)
10105      case $host_vendor in
10106	sni)
10107	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10108	  hardcode_direct=yes # is this really true???
10109	;;
10110	siemens)
10111	  ## LD is ld it makes a PLAMLIB
10112	  ## CC just makes a GrossModule.
10113	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10114	  reload_cmds='$CC -r -o $output$reload_objs'
10115	  hardcode_direct=no
10116        ;;
10117	motorola)
10118	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10119	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10120	;;
10121      esac
10122      runpath_var='LD_RUN_PATH'
10123      hardcode_shlibpath_var=no
10124      ;;
10125
10126    sysv4.3*)
10127      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128      hardcode_shlibpath_var=no
10129      export_dynamic_flag_spec='-Bexport'
10130      ;;
10131
10132    sysv4*MP*)
10133      if test -d /usr/nec; then
10134	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135	hardcode_shlibpath_var=no
10136	runpath_var=LD_RUN_PATH
10137	hardcode_runpath_var=yes
10138	ld_shlibs=yes
10139      fi
10140      ;;
10141
10142    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10143      no_undefined_flag='$wl-z,text'
10144      archive_cmds_need_lc=no
10145      hardcode_shlibpath_var=no
10146      runpath_var='LD_RUN_PATH'
10147
10148      if test yes = "$GCC"; then
10149	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151      else
10152	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154      fi
10155      ;;
10156
10157    sysv5* | sco3.2v5* | sco5v6*)
10158      # Note: We CANNOT use -z defs as we might desire, because we do not
10159      # link with -lc, and that would cause any symbols used from libc to
10160      # always be unresolved, which means just about no library would
10161      # ever link correctly.  If we're not using GNU ld we use -z text
10162      # though, which does catch some bad symbols but isn't as heavy-handed
10163      # as -z defs.
10164      no_undefined_flag='$wl-z,text'
10165      allow_undefined_flag='$wl-z,nodefs'
10166      archive_cmds_need_lc=no
10167      hardcode_shlibpath_var=no
10168      hardcode_libdir_flag_spec='$wl-R,$libdir'
10169      hardcode_libdir_separator=':'
10170      link_all_deplibs=yes
10171      export_dynamic_flag_spec='$wl-Bexport'
10172      runpath_var='LD_RUN_PATH'
10173
10174      if test yes = "$GCC"; then
10175	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177      else
10178	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180      fi
10181      ;;
10182
10183    uts4*)
10184      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10185      hardcode_libdir_flag_spec='-L$libdir'
10186      hardcode_shlibpath_var=no
10187      ;;
10188
10189    *)
10190      ld_shlibs=no
10191      ;;
10192    esac
10193
10194    if test sni = "$host_vendor"; then
10195      case $host in
10196      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10197	export_dynamic_flag_spec='$wl-Blargedynsym'
10198	;;
10199      esac
10200    fi
10201  fi
10202
10203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10204$as_echo "$ld_shlibs" >&6; }
10205test no = "$ld_shlibs" && can_build_shared=no
10206
10207with_gnu_ld=$with_gnu_ld
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223#
10224# Do we need to explicitly link libc?
10225#
10226case "x$archive_cmds_need_lc" in
10227x|xyes)
10228  # Assume -lc should be added
10229  archive_cmds_need_lc=yes
10230
10231  if test yes,yes = "$GCC,$enable_shared"; then
10232    case $archive_cmds in
10233    *'~'*)
10234      # FIXME: we may have to deal with multi-command sequences.
10235      ;;
10236    '$CC '*)
10237      # Test whether the compiler implicitly links with -lc since on some
10238      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10239      # to ld, don't add -lc before -lgcc.
10240      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10241$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10242if ${lt_cv_archive_cmds_need_lc+:} false; then :
10243  $as_echo_n "(cached) " >&6
10244else
10245  $RM conftest*
10246	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10247
10248	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10249  (eval $ac_compile) 2>&5
10250  ac_status=$?
10251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10252  test $ac_status = 0; } 2>conftest.err; then
10253	  soname=conftest
10254	  lib=conftest
10255	  libobjs=conftest.$ac_objext
10256	  deplibs=
10257	  wl=$lt_prog_compiler_wl
10258	  pic_flag=$lt_prog_compiler_pic
10259	  compiler_flags=-v
10260	  linker_flags=-v
10261	  verstring=
10262	  output_objdir=.
10263	  libname=conftest
10264	  lt_save_allow_undefined_flag=$allow_undefined_flag
10265	  allow_undefined_flag=
10266	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10267  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10268  ac_status=$?
10269  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10270  test $ac_status = 0; }
10271	  then
10272	    lt_cv_archive_cmds_need_lc=no
10273	  else
10274	    lt_cv_archive_cmds_need_lc=yes
10275	  fi
10276	  allow_undefined_flag=$lt_save_allow_undefined_flag
10277	else
10278	  cat conftest.err 1>&5
10279	fi
10280	$RM conftest*
10281
10282fi
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10284$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10285      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10286      ;;
10287    esac
10288  fi
10289  ;;
10290esac
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10444$as_echo_n "checking dynamic linker characteristics... " >&6; }
10445
10446if test yes = "$GCC"; then
10447  case $host_os in
10448    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10449    *) lt_awk_arg='/^libraries:/' ;;
10450  esac
10451  case $host_os in
10452    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10453    *) lt_sed_strip_eq='s|=/|/|g' ;;
10454  esac
10455  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10456  case $lt_search_path_spec in
10457  *\;*)
10458    # if the path contains ";" then we assume it to be the separator
10459    # otherwise default to the standard path separator (i.e. ":") - it is
10460    # assumed that no part of a normal pathname contains ";" but that should
10461    # okay in the real world where ";" in dirpaths is itself problematic.
10462    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10463    ;;
10464  *)
10465    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10466    ;;
10467  esac
10468  # Ok, now we have the path, separated by spaces, we can step through it
10469  # and add multilib dir if necessary...
10470  lt_tmp_lt_search_path_spec=
10471  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10472  # ...but if some path component already ends with the multilib dir we assume
10473  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10474  case "$lt_multi_os_dir; $lt_search_path_spec " in
10475  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10476    lt_multi_os_dir=
10477    ;;
10478  esac
10479  for lt_sys_path in $lt_search_path_spec; do
10480    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10481      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10482    elif test -n "$lt_multi_os_dir"; then
10483      test -d "$lt_sys_path" && \
10484	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10485    fi
10486  done
10487  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10488BEGIN {RS = " "; FS = "/|\n";} {
10489  lt_foo = "";
10490  lt_count = 0;
10491  for (lt_i = NF; lt_i > 0; lt_i--) {
10492    if ($lt_i != "" && $lt_i != ".") {
10493      if ($lt_i == "..") {
10494        lt_count++;
10495      } else {
10496        if (lt_count == 0) {
10497          lt_foo = "/" $lt_i lt_foo;
10498        } else {
10499          lt_count--;
10500        }
10501      }
10502    }
10503  }
10504  if (lt_foo != "") { lt_freq[lt_foo]++; }
10505  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10506}'`
10507  # AWK program above erroneously prepends '/' to C:/dos/paths
10508  # for these hosts.
10509  case $host_os in
10510    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10511      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10512  esac
10513  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10514else
10515  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10516fi
10517library_names_spec=
10518libname_spec='lib$name'
10519soname_spec=
10520shrext_cmds=.so
10521postinstall_cmds=
10522postuninstall_cmds=
10523finish_cmds=
10524finish_eval=
10525shlibpath_var=
10526shlibpath_overrides_runpath=unknown
10527version_type=none
10528dynamic_linker="$host_os ld.so"
10529sys_lib_dlsearch_path_spec="/lib /usr/lib"
10530need_lib_prefix=unknown
10531hardcode_into_libs=no
10532
10533# when you set need_version to no, make sure it does not cause -set_version
10534# flags to be left without arguments
10535need_version=unknown
10536
10537
10538
10539case $host_os in
10540aix3*)
10541  version_type=linux # correct to gnu/linux during the next big refactor
10542  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10543  shlibpath_var=LIBPATH
10544
10545  # AIX 3 has no versioning support, so we append a major version to the name.
10546  soname_spec='$libname$release$shared_ext$major'
10547  ;;
10548
10549aix[4-9]*)
10550  version_type=linux # correct to gnu/linux during the next big refactor
10551  need_lib_prefix=no
10552  need_version=no
10553  hardcode_into_libs=yes
10554  if test ia64 = "$host_cpu"; then
10555    # AIX 5 supports IA64
10556    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10557    shlibpath_var=LD_LIBRARY_PATH
10558  else
10559    # With GCC up to 2.95.x, collect2 would create an import file
10560    # for dependence libraries.  The import file would start with
10561    # the line '#! .'.  This would cause the generated library to
10562    # depend on '.', always an invalid library.  This was fixed in
10563    # development snapshots of GCC prior to 3.0.
10564    case $host_os in
10565      aix4 | aix4.[01] | aix4.[01].*)
10566      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10567	   echo ' yes '
10568	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10569	:
10570      else
10571	can_build_shared=no
10572      fi
10573      ;;
10574    esac
10575    # Using Import Files as archive members, it is possible to support
10576    # filename-based versioning of shared library archives on AIX. While
10577    # this would work for both with and without runtime linking, it will
10578    # prevent static linking of such archives. So we do filename-based
10579    # shared library versioning with .so extension only, which is used
10580    # when both runtime linking and shared linking is enabled.
10581    # Unfortunately, runtime linking may impact performance, so we do
10582    # not want this to be the default eventually. Also, we use the
10583    # versioned .so libs for executables only if there is the -brtl
10584    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10585    # To allow for filename-based versioning support, we need to create
10586    # libNAME.so.V as an archive file, containing:
10587    # *) an Import File, referring to the versioned filename of the
10588    #    archive as well as the shared archive member, telling the
10589    #    bitwidth (32 or 64) of that shared object, and providing the
10590    #    list of exported symbols of that shared object, eventually
10591    #    decorated with the 'weak' keyword
10592    # *) the shared object with the F_LOADONLY flag set, to really avoid
10593    #    it being seen by the linker.
10594    # At run time we better use the real file rather than another symlink,
10595    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10596
10597    case $with_aix_soname,$aix_use_runtimelinking in
10598    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10599    # soname into executable. Probably we can add versioning support to
10600    # collect2, so additional links can be useful in future.
10601    aix,yes) # traditional libtool
10602      dynamic_linker='AIX unversionable lib.so'
10603      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10604      # instead of lib<name>.a to let people know that these are not
10605      # typical AIX shared libraries.
10606      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10607      ;;
10608    aix,no) # traditional AIX only
10609      dynamic_linker='AIX lib.a(lib.so.V)'
10610      # We preserve .a as extension for shared libraries through AIX4.2
10611      # and later when we are not doing run time linking.
10612      library_names_spec='$libname$release.a $libname.a'
10613      soname_spec='$libname$release$shared_ext$major'
10614      ;;
10615    svr4,*) # full svr4 only
10616      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10617      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10618      # We do not specify a path in Import Files, so LIBPATH fires.
10619      shlibpath_overrides_runpath=yes
10620      ;;
10621    *,yes) # both, prefer svr4
10622      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10623      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10624      # unpreferred sharedlib libNAME.a needs extra handling
10625      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"'
10626      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"'
10627      # We do not specify a path in Import Files, so LIBPATH fires.
10628      shlibpath_overrides_runpath=yes
10629      ;;
10630    *,no) # both, prefer aix
10631      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10632      library_names_spec='$libname$release.a $libname.a'
10633      soname_spec='$libname$release$shared_ext$major'
10634      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10635      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)'
10636      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"'
10637      ;;
10638    esac
10639    shlibpath_var=LIBPATH
10640  fi
10641  ;;
10642
10643amigaos*)
10644  case $host_cpu in
10645  powerpc)
10646    # Since July 2007 AmigaOS4 officially supports .so libraries.
10647    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10648    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10649    ;;
10650  m68k)
10651    library_names_spec='$libname.ixlibrary $libname.a'
10652    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10653    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'
10654    ;;
10655  esac
10656  ;;
10657
10658beos*)
10659  library_names_spec='$libname$shared_ext'
10660  dynamic_linker="$host_os ld.so"
10661  shlibpath_var=LIBRARY_PATH
10662  ;;
10663
10664bsdi[45]*)
10665  version_type=linux # correct to gnu/linux during the next big refactor
10666  need_version=no
10667  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10668  soname_spec='$libname$release$shared_ext$major'
10669  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10670  shlibpath_var=LD_LIBRARY_PATH
10671  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10672  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10673  # the default ld.so.conf also contains /usr/contrib/lib and
10674  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10675  # libtool to hard-code these into programs
10676  ;;
10677
10678cygwin* | mingw* | pw32* | cegcc*)
10679  version_type=windows
10680  shrext_cmds=.dll
10681  need_version=no
10682  need_lib_prefix=no
10683
10684  case $GCC,$cc_basename in
10685  yes,*)
10686    # gcc
10687    library_names_spec='$libname.dll.a'
10688    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10689    postinstall_cmds='base_file=`basename \$file`~
10690      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10691      dldir=$destdir/`dirname \$dlpath`~
10692      test -d \$dldir || mkdir -p \$dldir~
10693      $install_prog $dir/$dlname \$dldir/$dlname~
10694      chmod a+x \$dldir/$dlname~
10695      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10696        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10697      fi'
10698    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10699      dlpath=$dir/\$dldll~
10700       $RM \$dlpath'
10701    shlibpath_overrides_runpath=yes
10702
10703    case $host_os in
10704    cygwin*)
10705      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10706      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10707
10708      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10709      ;;
10710    mingw* | cegcc*)
10711      # MinGW DLLs use traditional 'lib' prefix
10712      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10713      ;;
10714    pw32*)
10715      # pw32 DLLs use 'pw' prefix rather than 'lib'
10716      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10717      ;;
10718    esac
10719    dynamic_linker='Win32 ld.exe'
10720    ;;
10721
10722  *,cl*)
10723    # Native MSVC
10724    libname_spec='$name'
10725    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10726    library_names_spec='$libname.dll.lib'
10727
10728    case $build_os in
10729    mingw*)
10730      sys_lib_search_path_spec=
10731      lt_save_ifs=$IFS
10732      IFS=';'
10733      for lt_path in $LIB
10734      do
10735        IFS=$lt_save_ifs
10736        # Let DOS variable expansion print the short 8.3 style file name.
10737        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10738        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10739      done
10740      IFS=$lt_save_ifs
10741      # Convert to MSYS style.
10742      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10743      ;;
10744    cygwin*)
10745      # Convert to unix form, then to dos form, then back to unix form
10746      # but this time dos style (no spaces!) so that the unix form looks
10747      # like /cygdrive/c/PROGRA~1:/cygdr...
10748      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10749      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10750      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10751      ;;
10752    *)
10753      sys_lib_search_path_spec=$LIB
10754      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10755        # It is most probably a Windows format PATH.
10756        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10757      else
10758        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10759      fi
10760      # FIXME: find the short name or the path components, as spaces are
10761      # common. (e.g. "Program Files" -> "PROGRA~1")
10762      ;;
10763    esac
10764
10765    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10766    postinstall_cmds='base_file=`basename \$file`~
10767      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10768      dldir=$destdir/`dirname \$dlpath`~
10769      test -d \$dldir || mkdir -p \$dldir~
10770      $install_prog $dir/$dlname \$dldir/$dlname'
10771    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10772      dlpath=$dir/\$dldll~
10773       $RM \$dlpath'
10774    shlibpath_overrides_runpath=yes
10775    dynamic_linker='Win32 link.exe'
10776    ;;
10777
10778  *)
10779    # Assume MSVC wrapper
10780    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10781    dynamic_linker='Win32 ld.exe'
10782    ;;
10783  esac
10784  # FIXME: first we should search . and the directory the executable is in
10785  shlibpath_var=PATH
10786  ;;
10787
10788darwin* | rhapsody*)
10789  dynamic_linker="$host_os dyld"
10790  version_type=darwin
10791  need_lib_prefix=no
10792  need_version=no
10793  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10794  soname_spec='$libname$release$major$shared_ext'
10795  shlibpath_overrides_runpath=yes
10796  shlibpath_var=DYLD_LIBRARY_PATH
10797  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10798
10799  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10800  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10801  ;;
10802
10803dgux*)
10804  version_type=linux # correct to gnu/linux during the next big refactor
10805  need_lib_prefix=no
10806  need_version=no
10807  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10808  soname_spec='$libname$release$shared_ext$major'
10809  shlibpath_var=LD_LIBRARY_PATH
10810  ;;
10811
10812freebsd* | dragonfly*)
10813  # DragonFly does not have aout.  When/if they implement a new
10814  # versioning mechanism, adjust this.
10815  if test -x /usr/bin/objformat; then
10816    objformat=`/usr/bin/objformat`
10817  else
10818    case $host_os in
10819    freebsd[23].*) objformat=aout ;;
10820    *) objformat=elf ;;
10821    esac
10822  fi
10823  version_type=freebsd-$objformat
10824  case $version_type in
10825    freebsd-elf*)
10826      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10827      soname_spec='$libname$release$shared_ext$major'
10828      need_version=no
10829      need_lib_prefix=no
10830      ;;
10831    freebsd-*)
10832      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10833      need_version=yes
10834      ;;
10835  esac
10836  shlibpath_var=LD_LIBRARY_PATH
10837  case $host_os in
10838  freebsd2.*)
10839    shlibpath_overrides_runpath=yes
10840    ;;
10841  freebsd3.[01]* | freebsdelf3.[01]*)
10842    shlibpath_overrides_runpath=yes
10843    hardcode_into_libs=yes
10844    ;;
10845  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10846  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10847    shlibpath_overrides_runpath=no
10848    hardcode_into_libs=yes
10849    ;;
10850  *) # from 4.6 on, and DragonFly
10851    shlibpath_overrides_runpath=yes
10852    hardcode_into_libs=yes
10853    ;;
10854  esac
10855  ;;
10856
10857haiku*)
10858  version_type=linux # correct to gnu/linux during the next big refactor
10859  need_lib_prefix=no
10860  need_version=no
10861  dynamic_linker="$host_os runtime_loader"
10862  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10863  soname_spec='$libname$release$shared_ext$major'
10864  shlibpath_var=LIBRARY_PATH
10865  shlibpath_overrides_runpath=no
10866  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10867  hardcode_into_libs=yes
10868  ;;
10869
10870hpux9* | hpux10* | hpux11*)
10871  # Give a soname corresponding to the major version so that dld.sl refuses to
10872  # link against other versions.
10873  version_type=sunos
10874  need_lib_prefix=no
10875  need_version=no
10876  case $host_cpu in
10877  ia64*)
10878    shrext_cmds='.so'
10879    hardcode_into_libs=yes
10880    dynamic_linker="$host_os dld.so"
10881    shlibpath_var=LD_LIBRARY_PATH
10882    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10883    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10884    soname_spec='$libname$release$shared_ext$major'
10885    if test 32 = "$HPUX_IA64_MODE"; then
10886      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10887      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10888    else
10889      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10890      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10891    fi
10892    ;;
10893  hppa*64*)
10894    shrext_cmds='.sl'
10895    hardcode_into_libs=yes
10896    dynamic_linker="$host_os dld.sl"
10897    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10898    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10899    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10900    soname_spec='$libname$release$shared_ext$major'
10901    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10902    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10903    ;;
10904  *)
10905    shrext_cmds='.sl'
10906    dynamic_linker="$host_os dld.sl"
10907    shlibpath_var=SHLIB_PATH
10908    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10909    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10910    soname_spec='$libname$release$shared_ext$major'
10911    ;;
10912  esac
10913  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10914  postinstall_cmds='chmod 555 $lib'
10915  # or fails outright, so override atomically:
10916  install_override_mode=555
10917  ;;
10918
10919interix[3-9]*)
10920  version_type=linux # correct to gnu/linux during the next big refactor
10921  need_lib_prefix=no
10922  need_version=no
10923  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10924  soname_spec='$libname$release$shared_ext$major'
10925  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10926  shlibpath_var=LD_LIBRARY_PATH
10927  shlibpath_overrides_runpath=no
10928  hardcode_into_libs=yes
10929  ;;
10930
10931irix5* | irix6* | nonstopux*)
10932  case $host_os in
10933    nonstopux*) version_type=nonstopux ;;
10934    *)
10935	if test yes = "$lt_cv_prog_gnu_ld"; then
10936		version_type=linux # correct to gnu/linux during the next big refactor
10937	else
10938		version_type=irix
10939	fi ;;
10940  esac
10941  need_lib_prefix=no
10942  need_version=no
10943  soname_spec='$libname$release$shared_ext$major'
10944  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10945  case $host_os in
10946  irix5* | nonstopux*)
10947    libsuff= shlibsuff=
10948    ;;
10949  *)
10950    case $LD in # libtool.m4 will add one of these switches to LD
10951    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10952      libsuff= shlibsuff= libmagic=32-bit;;
10953    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10954      libsuff=32 shlibsuff=N32 libmagic=N32;;
10955    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10956      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10957    *) libsuff= shlibsuff= libmagic=never-match;;
10958    esac
10959    ;;
10960  esac
10961  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10962  shlibpath_overrides_runpath=no
10963  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10964  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10965  hardcode_into_libs=yes
10966  ;;
10967
10968# No shared lib support for Linux oldld, aout, or coff.
10969linux*oldld* | linux*aout* | linux*coff*)
10970  dynamic_linker=no
10971  ;;
10972
10973linux*android*)
10974  version_type=none # Android doesn't support versioned libraries.
10975  need_lib_prefix=no
10976  need_version=no
10977  library_names_spec='$libname$release$shared_ext'
10978  soname_spec='$libname$release$shared_ext'
10979  finish_cmds=
10980  shlibpath_var=LD_LIBRARY_PATH
10981  shlibpath_overrides_runpath=yes
10982
10983  # This implies no fast_install, which is unacceptable.
10984  # Some rework will be needed to allow for fast_install
10985  # before this can be enabled.
10986  hardcode_into_libs=yes
10987
10988  dynamic_linker='Android linker'
10989  # Don't embed -rpath directories since the linker doesn't support them.
10990  hardcode_libdir_flag_spec='-L$libdir'
10991  ;;
10992
10993# This must be glibc/ELF.
10994linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10995  version_type=linux # correct to gnu/linux during the next big refactor
10996  need_lib_prefix=no
10997  need_version=no
10998  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10999  soname_spec='$libname$release$shared_ext$major'
11000  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11001  shlibpath_var=LD_LIBRARY_PATH
11002  shlibpath_overrides_runpath=no
11003
11004  # Some binutils ld are patched to set DT_RUNPATH
11005  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11006  $as_echo_n "(cached) " >&6
11007else
11008  lt_cv_shlibpath_overrides_runpath=no
11009    save_LDFLAGS=$LDFLAGS
11010    save_libdir=$libdir
11011    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11012	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11013    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014/* end confdefs.h.  */
11015
11016int
11017main ()
11018{
11019
11020  ;
11021  return 0;
11022}
11023_ACEOF
11024if ac_fn_c_try_link "$LINENO"; then :
11025  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11026  lt_cv_shlibpath_overrides_runpath=yes
11027fi
11028fi
11029rm -f core conftest.err conftest.$ac_objext \
11030    conftest$ac_exeext conftest.$ac_ext
11031    LDFLAGS=$save_LDFLAGS
11032    libdir=$save_libdir
11033
11034fi
11035
11036  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11037
11038  # This implies no fast_install, which is unacceptable.
11039  # Some rework will be needed to allow for fast_install
11040  # before this can be enabled.
11041  hardcode_into_libs=yes
11042
11043  # Ideally, we could use ldconfig to report *all* directores which are
11044  # searched for libraries, however this is still not possible.  Aside from not
11045  # being certain /sbin/ldconfig is available, command
11046  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11047  # even though it is searched at run-time.  Try to do the best guess by
11048  # appending ld.so.conf contents (and includes) to the search path.
11049  if test -f /etc/ld.so.conf; then
11050    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' ' '`
11051    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11052  fi
11053
11054  # We used to test for /lib/ld.so.1 and disable shared libraries on
11055  # powerpc, because MkLinux only supported shared libraries with the
11056  # GNU dynamic linker.  Since this was broken with cross compilers,
11057  # most powerpc-linux boxes support dynamic linking these days and
11058  # people can always --disable-shared, the test was removed, and we
11059  # assume the GNU/Linux dynamic linker is in use.
11060  dynamic_linker='GNU/Linux ld.so'
11061  ;;
11062
11063netbsd*)
11064  version_type=sunos
11065  need_lib_prefix=no
11066  need_version=no
11067  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11068    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11069    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11070    dynamic_linker='NetBSD (a.out) ld.so'
11071  else
11072    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11073    soname_spec='$libname$release$shared_ext$major'
11074    dynamic_linker='NetBSD ld.elf_so'
11075  fi
11076  shlibpath_var=LD_LIBRARY_PATH
11077  shlibpath_overrides_runpath=yes
11078  hardcode_into_libs=yes
11079  ;;
11080
11081newsos6)
11082  version_type=linux # correct to gnu/linux during the next big refactor
11083  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11084  shlibpath_var=LD_LIBRARY_PATH
11085  shlibpath_overrides_runpath=yes
11086  ;;
11087
11088*nto* | *qnx*)
11089  version_type=qnx
11090  need_lib_prefix=no
11091  need_version=no
11092  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11093  soname_spec='$libname$release$shared_ext$major'
11094  shlibpath_var=LD_LIBRARY_PATH
11095  shlibpath_overrides_runpath=no
11096  hardcode_into_libs=yes
11097  dynamic_linker='ldqnx.so'
11098  ;;
11099
11100openbsd* | bitrig*)
11101  version_type=sunos
11102  sys_lib_dlsearch_path_spec=/usr/lib
11103  need_lib_prefix=no
11104  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11105    need_version=no
11106  else
11107    need_version=yes
11108  fi
11109  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11110  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11111  shlibpath_var=LD_LIBRARY_PATH
11112  shlibpath_overrides_runpath=yes
11113  ;;
11114
11115os2*)
11116  libname_spec='$name'
11117  version_type=windows
11118  shrext_cmds=.dll
11119  need_version=no
11120  need_lib_prefix=no
11121  # OS/2 can only load a DLL with a base name of 8 characters or less.
11122  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11123    v=$($ECHO $release$versuffix | tr -d .-);
11124    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11125    $ECHO $n$v`$shared_ext'
11126  library_names_spec='${libname}_dll.$libext'
11127  dynamic_linker='OS/2 ld.exe'
11128  shlibpath_var=BEGINLIBPATH
11129  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11130  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11131  postinstall_cmds='base_file=`basename \$file`~
11132    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11133    dldir=$destdir/`dirname \$dlpath`~
11134    test -d \$dldir || mkdir -p \$dldir~
11135    $install_prog $dir/$dlname \$dldir/$dlname~
11136    chmod a+x \$dldir/$dlname~
11137    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11138      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11139    fi'
11140  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11141    dlpath=$dir/\$dldll~
11142    $RM \$dlpath'
11143  ;;
11144
11145osf3* | osf4* | osf5*)
11146  version_type=osf
11147  need_lib_prefix=no
11148  need_version=no
11149  soname_spec='$libname$release$shared_ext$major'
11150  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11151  shlibpath_var=LD_LIBRARY_PATH
11152  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11153  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11154  ;;
11155
11156rdos*)
11157  dynamic_linker=no
11158  ;;
11159
11160solaris*)
11161  version_type=linux # correct to gnu/linux during the next big refactor
11162  need_lib_prefix=no
11163  need_version=no
11164  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11165  soname_spec='$libname$release$shared_ext$major'
11166  shlibpath_var=LD_LIBRARY_PATH
11167  shlibpath_overrides_runpath=yes
11168  hardcode_into_libs=yes
11169  # ldd complains unless libraries are executable
11170  postinstall_cmds='chmod +x $lib'
11171  ;;
11172
11173sunos4*)
11174  version_type=sunos
11175  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11176  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11177  shlibpath_var=LD_LIBRARY_PATH
11178  shlibpath_overrides_runpath=yes
11179  if test yes = "$with_gnu_ld"; then
11180    need_lib_prefix=no
11181  fi
11182  need_version=yes
11183  ;;
11184
11185sysv4 | sysv4.3*)
11186  version_type=linux # correct to gnu/linux during the next big refactor
11187  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11188  soname_spec='$libname$release$shared_ext$major'
11189  shlibpath_var=LD_LIBRARY_PATH
11190  case $host_vendor in
11191    sni)
11192      shlibpath_overrides_runpath=no
11193      need_lib_prefix=no
11194      runpath_var=LD_RUN_PATH
11195      ;;
11196    siemens)
11197      need_lib_prefix=no
11198      ;;
11199    motorola)
11200      need_lib_prefix=no
11201      need_version=no
11202      shlibpath_overrides_runpath=no
11203      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11204      ;;
11205  esac
11206  ;;
11207
11208sysv4*MP*)
11209  if test -d /usr/nec; then
11210    version_type=linux # correct to gnu/linux during the next big refactor
11211    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11212    soname_spec='$libname$shared_ext.$major'
11213    shlibpath_var=LD_LIBRARY_PATH
11214  fi
11215  ;;
11216
11217sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11218  version_type=sco
11219  need_lib_prefix=no
11220  need_version=no
11221  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11222  soname_spec='$libname$release$shared_ext$major'
11223  shlibpath_var=LD_LIBRARY_PATH
11224  shlibpath_overrides_runpath=yes
11225  hardcode_into_libs=yes
11226  if test yes = "$with_gnu_ld"; then
11227    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11228  else
11229    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11230    case $host_os in
11231      sco3.2v5*)
11232        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11233	;;
11234    esac
11235  fi
11236  sys_lib_dlsearch_path_spec='/usr/lib'
11237  ;;
11238
11239tpf*)
11240  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11241  version_type=linux # correct to gnu/linux during the next big refactor
11242  need_lib_prefix=no
11243  need_version=no
11244  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11245  shlibpath_var=LD_LIBRARY_PATH
11246  shlibpath_overrides_runpath=no
11247  hardcode_into_libs=yes
11248  ;;
11249
11250uts4*)
11251  version_type=linux # correct to gnu/linux during the next big refactor
11252  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11253  soname_spec='$libname$release$shared_ext$major'
11254  shlibpath_var=LD_LIBRARY_PATH
11255  ;;
11256
11257*)
11258  dynamic_linker=no
11259  ;;
11260esac
11261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11262$as_echo "$dynamic_linker" >&6; }
11263test no = "$dynamic_linker" && can_build_shared=no
11264
11265variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11266if test yes = "$GCC"; then
11267  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11268fi
11269
11270if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11271  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11272fi
11273
11274if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11275  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11276fi
11277
11278# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11279configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11280
11281# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11282func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11283
11284# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11285configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11384$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11385hardcode_action=
11386if test -n "$hardcode_libdir_flag_spec" ||
11387   test -n "$runpath_var" ||
11388   test yes = "$hardcode_automatic"; then
11389
11390  # We can hardcode non-existent directories.
11391  if test no != "$hardcode_direct" &&
11392     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11393     # have to relink, otherwise we might link with an installed library
11394     # when we should be linking with a yet-to-be-installed one
11395     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11396     test no != "$hardcode_minus_L"; then
11397    # Linking always hardcodes the temporary library directory.
11398    hardcode_action=relink
11399  else
11400    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11401    hardcode_action=immediate
11402  fi
11403else
11404  # We cannot hardcode anything, or else we can only hardcode existing
11405  # directories.
11406  hardcode_action=unsupported
11407fi
11408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11409$as_echo "$hardcode_action" >&6; }
11410
11411if test relink = "$hardcode_action" ||
11412   test yes = "$inherit_rpath"; then
11413  # Fast installation is not supported
11414  enable_fast_install=no
11415elif test yes = "$shlibpath_overrides_runpath" ||
11416     test no = "$enable_shared"; then
11417  # Fast installation is not necessary
11418  enable_fast_install=needless
11419fi
11420
11421
11422
11423
11424
11425
11426  if test yes != "$enable_dlopen"; then
11427  enable_dlopen=unknown
11428  enable_dlopen_self=unknown
11429  enable_dlopen_self_static=unknown
11430else
11431  lt_cv_dlopen=no
11432  lt_cv_dlopen_libs=
11433
11434  case $host_os in
11435  beos*)
11436    lt_cv_dlopen=load_add_on
11437    lt_cv_dlopen_libs=
11438    lt_cv_dlopen_self=yes
11439    ;;
11440
11441  mingw* | pw32* | cegcc*)
11442    lt_cv_dlopen=LoadLibrary
11443    lt_cv_dlopen_libs=
11444    ;;
11445
11446  cygwin*)
11447    lt_cv_dlopen=dlopen
11448    lt_cv_dlopen_libs=
11449    ;;
11450
11451  darwin*)
11452    # if libdl is installed we need to link against it
11453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11454$as_echo_n "checking for dlopen in -ldl... " >&6; }
11455if ${ac_cv_lib_dl_dlopen+:} false; then :
11456  $as_echo_n "(cached) " >&6
11457else
11458  ac_check_lib_save_LIBS=$LIBS
11459LIBS="-ldl  $LIBS"
11460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461/* end confdefs.h.  */
11462
11463/* Override any GCC internal prototype to avoid an error.
11464   Use char because int might match the return type of a GCC
11465   builtin and then its argument prototype would still apply.  */
11466#ifdef __cplusplus
11467extern "C"
11468#endif
11469char dlopen ();
11470int
11471main ()
11472{
11473return dlopen ();
11474  ;
11475  return 0;
11476}
11477_ACEOF
11478if ac_fn_c_try_link "$LINENO"; then :
11479  ac_cv_lib_dl_dlopen=yes
11480else
11481  ac_cv_lib_dl_dlopen=no
11482fi
11483rm -f core conftest.err conftest.$ac_objext \
11484    conftest$ac_exeext conftest.$ac_ext
11485LIBS=$ac_check_lib_save_LIBS
11486fi
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11488$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11489if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11490  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11491else
11492
11493    lt_cv_dlopen=dyld
11494    lt_cv_dlopen_libs=
11495    lt_cv_dlopen_self=yes
11496
11497fi
11498
11499    ;;
11500
11501  tpf*)
11502    # Don't try to run any link tests for TPF.  We know it's impossible
11503    # because TPF is a cross-compiler, and we know how we open DSOs.
11504    lt_cv_dlopen=dlopen
11505    lt_cv_dlopen_libs=
11506    lt_cv_dlopen_self=no
11507    ;;
11508
11509  *)
11510    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11511if test "x$ac_cv_func_shl_load" = xyes; then :
11512  lt_cv_dlopen=shl_load
11513else
11514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11515$as_echo_n "checking for shl_load in -ldld... " >&6; }
11516if ${ac_cv_lib_dld_shl_load+:} false; then :
11517  $as_echo_n "(cached) " >&6
11518else
11519  ac_check_lib_save_LIBS=$LIBS
11520LIBS="-ldld  $LIBS"
11521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522/* end confdefs.h.  */
11523
11524/* Override any GCC internal prototype to avoid an error.
11525   Use char because int might match the return type of a GCC
11526   builtin and then its argument prototype would still apply.  */
11527#ifdef __cplusplus
11528extern "C"
11529#endif
11530char shl_load ();
11531int
11532main ()
11533{
11534return shl_load ();
11535  ;
11536  return 0;
11537}
11538_ACEOF
11539if ac_fn_c_try_link "$LINENO"; then :
11540  ac_cv_lib_dld_shl_load=yes
11541else
11542  ac_cv_lib_dld_shl_load=no
11543fi
11544rm -f core conftest.err conftest.$ac_objext \
11545    conftest$ac_exeext conftest.$ac_ext
11546LIBS=$ac_check_lib_save_LIBS
11547fi
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11549$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11550if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11551  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11552else
11553  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11554if test "x$ac_cv_func_dlopen" = xyes; then :
11555  lt_cv_dlopen=dlopen
11556else
11557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11558$as_echo_n "checking for dlopen in -ldl... " >&6; }
11559if ${ac_cv_lib_dl_dlopen+:} false; then :
11560  $as_echo_n "(cached) " >&6
11561else
11562  ac_check_lib_save_LIBS=$LIBS
11563LIBS="-ldl  $LIBS"
11564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565/* end confdefs.h.  */
11566
11567/* Override any GCC internal prototype to avoid an error.
11568   Use char because int might match the return type of a GCC
11569   builtin and then its argument prototype would still apply.  */
11570#ifdef __cplusplus
11571extern "C"
11572#endif
11573char dlopen ();
11574int
11575main ()
11576{
11577return dlopen ();
11578  ;
11579  return 0;
11580}
11581_ACEOF
11582if ac_fn_c_try_link "$LINENO"; then :
11583  ac_cv_lib_dl_dlopen=yes
11584else
11585  ac_cv_lib_dl_dlopen=no
11586fi
11587rm -f core conftest.err conftest.$ac_objext \
11588    conftest$ac_exeext conftest.$ac_ext
11589LIBS=$ac_check_lib_save_LIBS
11590fi
11591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11592$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11593if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11594  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11595else
11596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11597$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11598if ${ac_cv_lib_svld_dlopen+:} false; then :
11599  $as_echo_n "(cached) " >&6
11600else
11601  ac_check_lib_save_LIBS=$LIBS
11602LIBS="-lsvld  $LIBS"
11603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11604/* end confdefs.h.  */
11605
11606/* Override any GCC internal prototype to avoid an error.
11607   Use char because int might match the return type of a GCC
11608   builtin and then its argument prototype would still apply.  */
11609#ifdef __cplusplus
11610extern "C"
11611#endif
11612char dlopen ();
11613int
11614main ()
11615{
11616return dlopen ();
11617  ;
11618  return 0;
11619}
11620_ACEOF
11621if ac_fn_c_try_link "$LINENO"; then :
11622  ac_cv_lib_svld_dlopen=yes
11623else
11624  ac_cv_lib_svld_dlopen=no
11625fi
11626rm -f core conftest.err conftest.$ac_objext \
11627    conftest$ac_exeext conftest.$ac_ext
11628LIBS=$ac_check_lib_save_LIBS
11629fi
11630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11631$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11632if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11633  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11634else
11635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11636$as_echo_n "checking for dld_link in -ldld... " >&6; }
11637if ${ac_cv_lib_dld_dld_link+:} false; then :
11638  $as_echo_n "(cached) " >&6
11639else
11640  ac_check_lib_save_LIBS=$LIBS
11641LIBS="-ldld  $LIBS"
11642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643/* end confdefs.h.  */
11644
11645/* Override any GCC internal prototype to avoid an error.
11646   Use char because int might match the return type of a GCC
11647   builtin and then its argument prototype would still apply.  */
11648#ifdef __cplusplus
11649extern "C"
11650#endif
11651char dld_link ();
11652int
11653main ()
11654{
11655return dld_link ();
11656  ;
11657  return 0;
11658}
11659_ACEOF
11660if ac_fn_c_try_link "$LINENO"; then :
11661  ac_cv_lib_dld_dld_link=yes
11662else
11663  ac_cv_lib_dld_dld_link=no
11664fi
11665rm -f core conftest.err conftest.$ac_objext \
11666    conftest$ac_exeext conftest.$ac_ext
11667LIBS=$ac_check_lib_save_LIBS
11668fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11670$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11671if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11672  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11673fi
11674
11675
11676fi
11677
11678
11679fi
11680
11681
11682fi
11683
11684
11685fi
11686
11687
11688fi
11689
11690    ;;
11691  esac
11692
11693  if test no = "$lt_cv_dlopen"; then
11694    enable_dlopen=no
11695  else
11696    enable_dlopen=yes
11697  fi
11698
11699  case $lt_cv_dlopen in
11700  dlopen)
11701    save_CPPFLAGS=$CPPFLAGS
11702    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11703
11704    save_LDFLAGS=$LDFLAGS
11705    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11706
11707    save_LIBS=$LIBS
11708    LIBS="$lt_cv_dlopen_libs $LIBS"
11709
11710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11711$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11712if ${lt_cv_dlopen_self+:} false; then :
11713  $as_echo_n "(cached) " >&6
11714else
11715  	  if test yes = "$cross_compiling"; then :
11716  lt_cv_dlopen_self=cross
11717else
11718  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11719  lt_status=$lt_dlunknown
11720  cat > conftest.$ac_ext <<_LT_EOF
11721#line $LINENO "configure"
11722#include "confdefs.h"
11723
11724#if HAVE_DLFCN_H
11725#include <dlfcn.h>
11726#endif
11727
11728#include <stdio.h>
11729
11730#ifdef RTLD_GLOBAL
11731#  define LT_DLGLOBAL		RTLD_GLOBAL
11732#else
11733#  ifdef DL_GLOBAL
11734#    define LT_DLGLOBAL		DL_GLOBAL
11735#  else
11736#    define LT_DLGLOBAL		0
11737#  endif
11738#endif
11739
11740/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11741   find out it does not work in some platform. */
11742#ifndef LT_DLLAZY_OR_NOW
11743#  ifdef RTLD_LAZY
11744#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11745#  else
11746#    ifdef DL_LAZY
11747#      define LT_DLLAZY_OR_NOW		DL_LAZY
11748#    else
11749#      ifdef RTLD_NOW
11750#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11751#      else
11752#        ifdef DL_NOW
11753#          define LT_DLLAZY_OR_NOW	DL_NOW
11754#        else
11755#          define LT_DLLAZY_OR_NOW	0
11756#        endif
11757#      endif
11758#    endif
11759#  endif
11760#endif
11761
11762/* When -fvisibility=hidden is used, assume the code has been annotated
11763   correspondingly for the symbols needed.  */
11764#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11765int fnord () __attribute__((visibility("default")));
11766#endif
11767
11768int fnord () { return 42; }
11769int main ()
11770{
11771  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11772  int status = $lt_dlunknown;
11773
11774  if (self)
11775    {
11776      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11777      else
11778        {
11779	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11780          else puts (dlerror ());
11781	}
11782      /* dlclose (self); */
11783    }
11784  else
11785    puts (dlerror ());
11786
11787  return status;
11788}
11789_LT_EOF
11790  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11791  (eval $ac_link) 2>&5
11792  ac_status=$?
11793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11794  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11795    (./conftest; exit; ) >&5 2>/dev/null
11796    lt_status=$?
11797    case x$lt_status in
11798      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11799      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11800      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11801    esac
11802  else :
11803    # compilation failed
11804    lt_cv_dlopen_self=no
11805  fi
11806fi
11807rm -fr conftest*
11808
11809
11810fi
11811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11812$as_echo "$lt_cv_dlopen_self" >&6; }
11813
11814    if test yes = "$lt_cv_dlopen_self"; then
11815      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11816      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11817$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11818if ${lt_cv_dlopen_self_static+:} false; then :
11819  $as_echo_n "(cached) " >&6
11820else
11821  	  if test yes = "$cross_compiling"; then :
11822  lt_cv_dlopen_self_static=cross
11823else
11824  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11825  lt_status=$lt_dlunknown
11826  cat > conftest.$ac_ext <<_LT_EOF
11827#line $LINENO "configure"
11828#include "confdefs.h"
11829
11830#if HAVE_DLFCN_H
11831#include <dlfcn.h>
11832#endif
11833
11834#include <stdio.h>
11835
11836#ifdef RTLD_GLOBAL
11837#  define LT_DLGLOBAL		RTLD_GLOBAL
11838#else
11839#  ifdef DL_GLOBAL
11840#    define LT_DLGLOBAL		DL_GLOBAL
11841#  else
11842#    define LT_DLGLOBAL		0
11843#  endif
11844#endif
11845
11846/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11847   find out it does not work in some platform. */
11848#ifndef LT_DLLAZY_OR_NOW
11849#  ifdef RTLD_LAZY
11850#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11851#  else
11852#    ifdef DL_LAZY
11853#      define LT_DLLAZY_OR_NOW		DL_LAZY
11854#    else
11855#      ifdef RTLD_NOW
11856#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11857#      else
11858#        ifdef DL_NOW
11859#          define LT_DLLAZY_OR_NOW	DL_NOW
11860#        else
11861#          define LT_DLLAZY_OR_NOW	0
11862#        endif
11863#      endif
11864#    endif
11865#  endif
11866#endif
11867
11868/* When -fvisibility=hidden is used, assume the code has been annotated
11869   correspondingly for the symbols needed.  */
11870#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11871int fnord () __attribute__((visibility("default")));
11872#endif
11873
11874int fnord () { return 42; }
11875int main ()
11876{
11877  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11878  int status = $lt_dlunknown;
11879
11880  if (self)
11881    {
11882      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11883      else
11884        {
11885	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11886          else puts (dlerror ());
11887	}
11888      /* dlclose (self); */
11889    }
11890  else
11891    puts (dlerror ());
11892
11893  return status;
11894}
11895_LT_EOF
11896  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11897  (eval $ac_link) 2>&5
11898  ac_status=$?
11899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11900  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11901    (./conftest; exit; ) >&5 2>/dev/null
11902    lt_status=$?
11903    case x$lt_status in
11904      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11905      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11906      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11907    esac
11908  else :
11909    # compilation failed
11910    lt_cv_dlopen_self_static=no
11911  fi
11912fi
11913rm -fr conftest*
11914
11915
11916fi
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11918$as_echo "$lt_cv_dlopen_self_static" >&6; }
11919    fi
11920
11921    CPPFLAGS=$save_CPPFLAGS
11922    LDFLAGS=$save_LDFLAGS
11923    LIBS=$save_LIBS
11924    ;;
11925  esac
11926
11927  case $lt_cv_dlopen_self in
11928  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11929  *) enable_dlopen_self=unknown ;;
11930  esac
11931
11932  case $lt_cv_dlopen_self_static in
11933  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11934  *) enable_dlopen_self_static=unknown ;;
11935  esac
11936fi
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954striplib=
11955old_striplib=
11956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11957$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11958if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11959  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11960  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11962$as_echo "yes" >&6; }
11963else
11964# FIXME - insert some real tests, host_os isn't really good enough
11965  case $host_os in
11966  darwin*)
11967    if test -n "$STRIP"; then
11968      striplib="$STRIP -x"
11969      old_striplib="$STRIP -S"
11970      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11971$as_echo "yes" >&6; }
11972    else
11973      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974$as_echo "no" >&6; }
11975    fi
11976    ;;
11977  *)
11978    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
11980    ;;
11981  esac
11982fi
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995  # Report what library types will actually be built
11996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11997$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11999$as_echo "$can_build_shared" >&6; }
12000
12001  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12002$as_echo_n "checking whether to build shared libraries... " >&6; }
12003  test no = "$can_build_shared" && enable_shared=no
12004
12005  # On AIX, shared libraries and static libraries use the same namespace, and
12006  # are all built from PIC.
12007  case $host_os in
12008  aix3*)
12009    test yes = "$enable_shared" && enable_static=no
12010    if test -n "$RANLIB"; then
12011      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12012      postinstall_cmds='$RANLIB $lib'
12013    fi
12014    ;;
12015
12016  aix[4-9]*)
12017    if test ia64 != "$host_cpu"; then
12018      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12019      yes,aix,yes) ;;			# shared object as lib.so file only
12020      yes,svr4,*) ;;			# shared object as lib.so archive member only
12021      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12022      esac
12023    fi
12024    ;;
12025  esac
12026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12027$as_echo "$enable_shared" >&6; }
12028
12029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12030$as_echo_n "checking whether to build static libraries... " >&6; }
12031  # Make sure either enable_shared or enable_static is yes.
12032  test yes = "$enable_shared" || enable_static=yes
12033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12034$as_echo "$enable_static" >&6; }
12035
12036
12037
12038
12039fi
12040ac_ext=c
12041ac_cpp='$CPP $CPPFLAGS'
12042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12044ac_compiler_gnu=$ac_cv_c_compiler_gnu
12045
12046CC=$lt_save_CC
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062        ac_config_commands="$ac_config_commands libtool"
12063
12064
12065
12066
12067# Only expand once:
12068
12069
12070
12071
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12073$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12074    # Check whether --enable-maintainer-mode was given.
12075if test "${enable_maintainer_mode+set}" = set; then :
12076  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12077else
12078  USE_MAINTAINER_MODE=no
12079fi
12080
12081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12082$as_echo "$USE_MAINTAINER_MODE" >&6; }
12083   if test $USE_MAINTAINER_MODE = yes; then
12084  MAINTAINER_MODE_TRUE=
12085  MAINTAINER_MODE_FALSE='#'
12086else
12087  MAINTAINER_MODE_TRUE='#'
12088  MAINTAINER_MODE_FALSE=
12089fi
12090
12091  MAINT=$MAINTAINER_MODE_TRUE
12092
12093
12094ac_config_headers="$ac_config_headers src/iperf_config.h"
12095
12096
12097
12098
12099# Checks for tools: c compiler, ranlib (used for creating static libraries),
12100# symlinks and libtool
12101ac_ext=c
12102ac_cpp='$CPP $CPPFLAGS'
12103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12105ac_compiler_gnu=$ac_cv_c_compiler_gnu
12106if test -n "$ac_tool_prefix"; then
12107  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12108set dummy ${ac_tool_prefix}gcc; ac_word=$2
12109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12110$as_echo_n "checking for $ac_word... " >&6; }
12111if ${ac_cv_prog_CC+:} false; then :
12112  $as_echo_n "(cached) " >&6
12113else
12114  if test -n "$CC"; then
12115  ac_cv_prog_CC="$CC" # Let the user override the test.
12116else
12117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12118for as_dir in $PATH
12119do
12120  IFS=$as_save_IFS
12121  test -z "$as_dir" && as_dir=.
12122    for ac_exec_ext in '' $ac_executable_extensions; do
12123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12124    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12126    break 2
12127  fi
12128done
12129  done
12130IFS=$as_save_IFS
12131
12132fi
12133fi
12134CC=$ac_cv_prog_CC
12135if test -n "$CC"; then
12136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12137$as_echo "$CC" >&6; }
12138else
12139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140$as_echo "no" >&6; }
12141fi
12142
12143
12144fi
12145if test -z "$ac_cv_prog_CC"; then
12146  ac_ct_CC=$CC
12147  # Extract the first word of "gcc", so it can be a program name with args.
12148set dummy gcc; ac_word=$2
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12150$as_echo_n "checking for $ac_word... " >&6; }
12151if ${ac_cv_prog_ac_ct_CC+:} false; then :
12152  $as_echo_n "(cached) " >&6
12153else
12154  if test -n "$ac_ct_CC"; then
12155  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12156else
12157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12158for as_dir in $PATH
12159do
12160  IFS=$as_save_IFS
12161  test -z "$as_dir" && as_dir=.
12162    for ac_exec_ext in '' $ac_executable_extensions; do
12163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12164    ac_cv_prog_ac_ct_CC="gcc"
12165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12166    break 2
12167  fi
12168done
12169  done
12170IFS=$as_save_IFS
12171
12172fi
12173fi
12174ac_ct_CC=$ac_cv_prog_ac_ct_CC
12175if test -n "$ac_ct_CC"; then
12176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12177$as_echo "$ac_ct_CC" >&6; }
12178else
12179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180$as_echo "no" >&6; }
12181fi
12182
12183  if test "x$ac_ct_CC" = x; then
12184    CC=""
12185  else
12186    case $cross_compiling:$ac_tool_warned in
12187yes:)
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12190ac_tool_warned=yes ;;
12191esac
12192    CC=$ac_ct_CC
12193  fi
12194else
12195  CC="$ac_cv_prog_CC"
12196fi
12197
12198if test -z "$CC"; then
12199          if test -n "$ac_tool_prefix"; then
12200    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12201set dummy ${ac_tool_prefix}cc; ac_word=$2
12202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203$as_echo_n "checking for $ac_word... " >&6; }
12204if ${ac_cv_prog_CC+:} false; then :
12205  $as_echo_n "(cached) " >&6
12206else
12207  if test -n "$CC"; then
12208  ac_cv_prog_CC="$CC" # Let the user override the test.
12209else
12210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211for as_dir in $PATH
12212do
12213  IFS=$as_save_IFS
12214  test -z "$as_dir" && as_dir=.
12215    for ac_exec_ext in '' $ac_executable_extensions; do
12216  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12217    ac_cv_prog_CC="${ac_tool_prefix}cc"
12218    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12219    break 2
12220  fi
12221done
12222  done
12223IFS=$as_save_IFS
12224
12225fi
12226fi
12227CC=$ac_cv_prog_CC
12228if test -n "$CC"; then
12229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12230$as_echo "$CC" >&6; }
12231else
12232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233$as_echo "no" >&6; }
12234fi
12235
12236
12237  fi
12238fi
12239if test -z "$CC"; then
12240  # Extract the first word of "cc", so it can be a program name with args.
12241set dummy cc; ac_word=$2
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243$as_echo_n "checking for $ac_word... " >&6; }
12244if ${ac_cv_prog_CC+:} false; then :
12245  $as_echo_n "(cached) " >&6
12246else
12247  if test -n "$CC"; then
12248  ac_cv_prog_CC="$CC" # Let the user override the test.
12249else
12250  ac_prog_rejected=no
12251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252for as_dir in $PATH
12253do
12254  IFS=$as_save_IFS
12255  test -z "$as_dir" && as_dir=.
12256    for ac_exec_ext in '' $ac_executable_extensions; do
12257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12258    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12259       ac_prog_rejected=yes
12260       continue
12261     fi
12262    ac_cv_prog_CC="cc"
12263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12264    break 2
12265  fi
12266done
12267  done
12268IFS=$as_save_IFS
12269
12270if test $ac_prog_rejected = yes; then
12271  # We found a bogon in the path, so make sure we never use it.
12272  set dummy $ac_cv_prog_CC
12273  shift
12274  if test $# != 0; then
12275    # We chose a different compiler from the bogus one.
12276    # However, it has the same basename, so the bogon will be chosen
12277    # first if we set CC to just the basename; use the full file name.
12278    shift
12279    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12280  fi
12281fi
12282fi
12283fi
12284CC=$ac_cv_prog_CC
12285if test -n "$CC"; then
12286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12287$as_echo "$CC" >&6; }
12288else
12289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290$as_echo "no" >&6; }
12291fi
12292
12293
12294fi
12295if test -z "$CC"; then
12296  if test -n "$ac_tool_prefix"; then
12297  for ac_prog in cl.exe
12298  do
12299    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12300set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302$as_echo_n "checking for $ac_word... " >&6; }
12303if ${ac_cv_prog_CC+:} false; then :
12304  $as_echo_n "(cached) " >&6
12305else
12306  if test -n "$CC"; then
12307  ac_cv_prog_CC="$CC" # Let the user override the test.
12308else
12309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310for as_dir in $PATH
12311do
12312  IFS=$as_save_IFS
12313  test -z "$as_dir" && as_dir=.
12314    for ac_exec_ext in '' $ac_executable_extensions; do
12315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12316    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12318    break 2
12319  fi
12320done
12321  done
12322IFS=$as_save_IFS
12323
12324fi
12325fi
12326CC=$ac_cv_prog_CC
12327if test -n "$CC"; then
12328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12329$as_echo "$CC" >&6; }
12330else
12331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332$as_echo "no" >&6; }
12333fi
12334
12335
12336    test -n "$CC" && break
12337  done
12338fi
12339if test -z "$CC"; then
12340  ac_ct_CC=$CC
12341  for ac_prog in cl.exe
12342do
12343  # Extract the first word of "$ac_prog", so it can be a program name with args.
12344set dummy $ac_prog; ac_word=$2
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346$as_echo_n "checking for $ac_word... " >&6; }
12347if ${ac_cv_prog_ac_ct_CC+:} false; then :
12348  $as_echo_n "(cached) " >&6
12349else
12350  if test -n "$ac_ct_CC"; then
12351  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12352else
12353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354for as_dir in $PATH
12355do
12356  IFS=$as_save_IFS
12357  test -z "$as_dir" && as_dir=.
12358    for ac_exec_ext in '' $ac_executable_extensions; do
12359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12360    ac_cv_prog_ac_ct_CC="$ac_prog"
12361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362    break 2
12363  fi
12364done
12365  done
12366IFS=$as_save_IFS
12367
12368fi
12369fi
12370ac_ct_CC=$ac_cv_prog_ac_ct_CC
12371if test -n "$ac_ct_CC"; then
12372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12373$as_echo "$ac_ct_CC" >&6; }
12374else
12375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376$as_echo "no" >&6; }
12377fi
12378
12379
12380  test -n "$ac_ct_CC" && break
12381done
12382
12383  if test "x$ac_ct_CC" = x; then
12384    CC=""
12385  else
12386    case $cross_compiling:$ac_tool_warned in
12387yes:)
12388{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12389$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12390ac_tool_warned=yes ;;
12391esac
12392    CC=$ac_ct_CC
12393  fi
12394fi
12395
12396fi
12397
12398
12399test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12401as_fn_error $? "no acceptable C compiler found in \$PATH
12402See \`config.log' for more details" "$LINENO" 5; }
12403
12404# Provide some information about the compiler.
12405$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12406set X $ac_compile
12407ac_compiler=$2
12408for ac_option in --version -v -V -qversion; do
12409  { { ac_try="$ac_compiler $ac_option >&5"
12410case "(($ac_try" in
12411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412  *) ac_try_echo=$ac_try;;
12413esac
12414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12415$as_echo "$ac_try_echo"; } >&5
12416  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12417  ac_status=$?
12418  if test -s conftest.err; then
12419    sed '10a\
12420... rest of stderr output deleted ...
12421         10q' conftest.err >conftest.er1
12422    cat conftest.er1 >&5
12423  fi
12424  rm -f conftest.er1 conftest.err
12425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12426  test $ac_status = 0; }
12427done
12428
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12430$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12431if ${ac_cv_c_compiler_gnu+:} false; then :
12432  $as_echo_n "(cached) " >&6
12433else
12434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435/* end confdefs.h.  */
12436
12437int
12438main ()
12439{
12440#ifndef __GNUC__
12441       choke me
12442#endif
12443
12444  ;
12445  return 0;
12446}
12447_ACEOF
12448if ac_fn_c_try_compile "$LINENO"; then :
12449  ac_compiler_gnu=yes
12450else
12451  ac_compiler_gnu=no
12452fi
12453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454ac_cv_c_compiler_gnu=$ac_compiler_gnu
12455
12456fi
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12458$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12459if test $ac_compiler_gnu = yes; then
12460  GCC=yes
12461else
12462  GCC=
12463fi
12464ac_test_CFLAGS=${CFLAGS+set}
12465ac_save_CFLAGS=$CFLAGS
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12467$as_echo_n "checking whether $CC accepts -g... " >&6; }
12468if ${ac_cv_prog_cc_g+:} false; then :
12469  $as_echo_n "(cached) " >&6
12470else
12471  ac_save_c_werror_flag=$ac_c_werror_flag
12472   ac_c_werror_flag=yes
12473   ac_cv_prog_cc_g=no
12474   CFLAGS="-g"
12475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476/* end confdefs.h.  */
12477
12478int
12479main ()
12480{
12481
12482  ;
12483  return 0;
12484}
12485_ACEOF
12486if ac_fn_c_try_compile "$LINENO"; then :
12487  ac_cv_prog_cc_g=yes
12488else
12489  CFLAGS=""
12490      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491/* end confdefs.h.  */
12492
12493int
12494main ()
12495{
12496
12497  ;
12498  return 0;
12499}
12500_ACEOF
12501if ac_fn_c_try_compile "$LINENO"; then :
12502
12503else
12504  ac_c_werror_flag=$ac_save_c_werror_flag
12505	 CFLAGS="-g"
12506	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12507/* end confdefs.h.  */
12508
12509int
12510main ()
12511{
12512
12513  ;
12514  return 0;
12515}
12516_ACEOF
12517if ac_fn_c_try_compile "$LINENO"; then :
12518  ac_cv_prog_cc_g=yes
12519fi
12520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12521fi
12522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12523fi
12524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12525   ac_c_werror_flag=$ac_save_c_werror_flag
12526fi
12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12528$as_echo "$ac_cv_prog_cc_g" >&6; }
12529if test "$ac_test_CFLAGS" = set; then
12530  CFLAGS=$ac_save_CFLAGS
12531elif test $ac_cv_prog_cc_g = yes; then
12532  if test "$GCC" = yes; then
12533    CFLAGS="-g -O2"
12534  else
12535    CFLAGS="-g"
12536  fi
12537else
12538  if test "$GCC" = yes; then
12539    CFLAGS="-O2"
12540  else
12541    CFLAGS=
12542  fi
12543fi
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12545$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12546if ${ac_cv_prog_cc_c89+:} false; then :
12547  $as_echo_n "(cached) " >&6
12548else
12549  ac_cv_prog_cc_c89=no
12550ac_save_CC=$CC
12551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552/* end confdefs.h.  */
12553#include <stdarg.h>
12554#include <stdio.h>
12555struct stat;
12556/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12557struct buf { int x; };
12558FILE * (*rcsopen) (struct buf *, struct stat *, int);
12559static char *e (p, i)
12560     char **p;
12561     int i;
12562{
12563  return p[i];
12564}
12565static char *f (char * (*g) (char **, int), char **p, ...)
12566{
12567  char *s;
12568  va_list v;
12569  va_start (v,p);
12570  s = g (p, va_arg (v,int));
12571  va_end (v);
12572  return s;
12573}
12574
12575/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12576   function prototypes and stuff, but not '\xHH' hex character constants.
12577   These don't provoke an error unfortunately, instead are silently treated
12578   as 'x'.  The following induces an error, until -std is added to get
12579   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12580   array size at least.  It's necessary to write '\x00'==0 to get something
12581   that's true only with -std.  */
12582int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12583
12584/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12585   inside strings and character constants.  */
12586#define FOO(x) 'x'
12587int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12588
12589int test (int i, double x);
12590struct s1 {int (*f) (int a);};
12591struct s2 {int (*f) (double a);};
12592int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12593int argc;
12594char **argv;
12595int
12596main ()
12597{
12598return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12599  ;
12600  return 0;
12601}
12602_ACEOF
12603for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12604	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12605do
12606  CC="$ac_save_CC $ac_arg"
12607  if ac_fn_c_try_compile "$LINENO"; then :
12608  ac_cv_prog_cc_c89=$ac_arg
12609fi
12610rm -f core conftest.err conftest.$ac_objext
12611  test "x$ac_cv_prog_cc_c89" != "xno" && break
12612done
12613rm -f conftest.$ac_ext
12614CC=$ac_save_CC
12615
12616fi
12617# AC_CACHE_VAL
12618case "x$ac_cv_prog_cc_c89" in
12619  x)
12620    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12621$as_echo "none needed" >&6; } ;;
12622  xno)
12623    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12624$as_echo "unsupported" >&6; } ;;
12625  *)
12626    CC="$CC $ac_cv_prog_cc_c89"
12627    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12628$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12629esac
12630if test "x$ac_cv_prog_cc_c89" != xno; then :
12631
12632fi
12633
12634ac_ext=c
12635ac_cpp='$CPP $CPPFLAGS'
12636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12638ac_compiler_gnu=$ac_cv_c_compiler_gnu
12639
12640ac_ext=c
12641ac_cpp='$CPP $CPPFLAGS'
12642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12644ac_compiler_gnu=$ac_cv_c_compiler_gnu
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12646$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12647if ${am_cv_prog_cc_c_o+:} false; then :
12648  $as_echo_n "(cached) " >&6
12649else
12650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651/* end confdefs.h.  */
12652
12653int
12654main ()
12655{
12656
12657  ;
12658  return 0;
12659}
12660_ACEOF
12661  # Make sure it works both with $CC and with simple cc.
12662  # Following AC_PROG_CC_C_O, we do the test twice because some
12663  # compilers refuse to overwrite an existing .o file with -o,
12664  # though they will create one.
12665  am_cv_prog_cc_c_o=yes
12666  for am_i in 1 2; do
12667    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12668   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12669   ac_status=$?
12670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); } \
12672         && test -f conftest2.$ac_objext; then
12673      : OK
12674    else
12675      am_cv_prog_cc_c_o=no
12676      break
12677    fi
12678  done
12679  rm -f core conftest*
12680  unset am_i
12681fi
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12683$as_echo "$am_cv_prog_cc_c_o" >&6; }
12684if test "$am_cv_prog_cc_c_o" != yes; then
12685   # Losing compiler, so override with the script.
12686   # FIXME: It is wrong to rewrite CC.
12687   # But if we don't then we get into trouble of one sort or another.
12688   # A longer-term fix would be to have automake use am__CC in this case,
12689   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12690   CC="$am_aux_dir/compile $CC"
12691fi
12692ac_ext=c
12693ac_cpp='$CPP $CPPFLAGS'
12694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12696ac_compiler_gnu=$ac_cv_c_compiler_gnu
12697
12698
12699depcc="$CC"   am_compiler_list=
12700
12701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12702$as_echo_n "checking dependency style of $depcc... " >&6; }
12703if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12704  $as_echo_n "(cached) " >&6
12705else
12706  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12707  # We make a subdir and do the tests there.  Otherwise we can end up
12708  # making bogus files that we don't know about and never remove.  For
12709  # instance it was reported that on HP-UX the gcc test will end up
12710  # making a dummy file named 'D' -- because '-MD' means "put the output
12711  # in D".
12712  rm -rf conftest.dir
12713  mkdir conftest.dir
12714  # Copy depcomp to subdir because otherwise we won't find it if we're
12715  # using a relative directory.
12716  cp "$am_depcomp" conftest.dir
12717  cd conftest.dir
12718  # We will build objects and dependencies in a subdirectory because
12719  # it helps to detect inapplicable dependency modes.  For instance
12720  # both Tru64's cc and ICC support -MD to output dependencies as a
12721  # side effect of compilation, but ICC will put the dependencies in
12722  # the current directory while Tru64 will put them in the object
12723  # directory.
12724  mkdir sub
12725
12726  am_cv_CC_dependencies_compiler_type=none
12727  if test "$am_compiler_list" = ""; then
12728     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12729  fi
12730  am__universal=false
12731  case " $depcc " in #(
12732     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12733     esac
12734
12735  for depmode in $am_compiler_list; do
12736    # Setup a source with many dependencies, because some compilers
12737    # like to wrap large dependency lists on column 80 (with \), and
12738    # we should not choose a depcomp mode which is confused by this.
12739    #
12740    # We need to recreate these files for each test, as the compiler may
12741    # overwrite some of them when testing with obscure command lines.
12742    # This happens at least with the AIX C compiler.
12743    : > sub/conftest.c
12744    for i in 1 2 3 4 5 6; do
12745      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12746      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12747      # Solaris 10 /bin/sh.
12748      echo '/* dummy */' > sub/conftst$i.h
12749    done
12750    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12751
12752    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12753    # mode.  It turns out that the SunPro C++ compiler does not properly
12754    # handle '-M -o', and we need to detect this.  Also, some Intel
12755    # versions had trouble with output in subdirs.
12756    am__obj=sub/conftest.${OBJEXT-o}
12757    am__minus_obj="-o $am__obj"
12758    case $depmode in
12759    gcc)
12760      # This depmode causes a compiler race in universal mode.
12761      test "$am__universal" = false || continue
12762      ;;
12763    nosideeffect)
12764      # After this tag, mechanisms are not by side-effect, so they'll
12765      # only be used when explicitly requested.
12766      if test "x$enable_dependency_tracking" = xyes; then
12767	continue
12768      else
12769	break
12770      fi
12771      ;;
12772    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12773      # This compiler won't grok '-c -o', but also, the minuso test has
12774      # not run yet.  These depmodes are late enough in the game, and
12775      # so weak that their functioning should not be impacted.
12776      am__obj=conftest.${OBJEXT-o}
12777      am__minus_obj=
12778      ;;
12779    none) break ;;
12780    esac
12781    if depmode=$depmode \
12782       source=sub/conftest.c object=$am__obj \
12783       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12784       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12785         >/dev/null 2>conftest.err &&
12786       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12787       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12788       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12789       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12790      # icc doesn't choke on unknown options, it will just issue warnings
12791      # or remarks (even with -Werror).  So we grep stderr for any message
12792      # that says an option was ignored or not supported.
12793      # When given -MP, icc 7.0 and 7.1 complain thusly:
12794      #   icc: Command line warning: ignoring option '-M'; no argument required
12795      # The diagnosis changed in icc 8.0:
12796      #   icc: Command line remark: option '-MP' not supported
12797      if (grep 'ignoring option' conftest.err ||
12798          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12799        am_cv_CC_dependencies_compiler_type=$depmode
12800        break
12801      fi
12802    fi
12803  done
12804
12805  cd ..
12806  rm -rf conftest.dir
12807else
12808  am_cv_CC_dependencies_compiler_type=none
12809fi
12810
12811fi
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12813$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12814CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12815
12816 if
12817  test "x$enable_dependency_tracking" != xno \
12818  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12819  am__fastdepCC_TRUE=
12820  am__fastdepCC_FALSE='#'
12821else
12822  am__fastdepCC_TRUE='#'
12823  am__fastdepCC_FALSE=
12824fi
12825
12826
12827if test -n "$ac_tool_prefix"; then
12828  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12829set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831$as_echo_n "checking for $ac_word... " >&6; }
12832if ${ac_cv_prog_RANLIB+:} false; then :
12833  $as_echo_n "(cached) " >&6
12834else
12835  if test -n "$RANLIB"; then
12836  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12837else
12838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839for as_dir in $PATH
12840do
12841  IFS=$as_save_IFS
12842  test -z "$as_dir" && as_dir=.
12843    for ac_exec_ext in '' $ac_executable_extensions; do
12844  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12845    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12847    break 2
12848  fi
12849done
12850  done
12851IFS=$as_save_IFS
12852
12853fi
12854fi
12855RANLIB=$ac_cv_prog_RANLIB
12856if test -n "$RANLIB"; then
12857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12858$as_echo "$RANLIB" >&6; }
12859else
12860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861$as_echo "no" >&6; }
12862fi
12863
12864
12865fi
12866if test -z "$ac_cv_prog_RANLIB"; then
12867  ac_ct_RANLIB=$RANLIB
12868  # Extract the first word of "ranlib", so it can be a program name with args.
12869set dummy ranlib; ac_word=$2
12870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12871$as_echo_n "checking for $ac_word... " >&6; }
12872if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12873  $as_echo_n "(cached) " >&6
12874else
12875  if test -n "$ac_ct_RANLIB"; then
12876  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12877else
12878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879for as_dir in $PATH
12880do
12881  IFS=$as_save_IFS
12882  test -z "$as_dir" && as_dir=.
12883    for ac_exec_ext in '' $ac_executable_extensions; do
12884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12885    ac_cv_prog_ac_ct_RANLIB="ranlib"
12886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887    break 2
12888  fi
12889done
12890  done
12891IFS=$as_save_IFS
12892
12893fi
12894fi
12895ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12896if test -n "$ac_ct_RANLIB"; then
12897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12898$as_echo "$ac_ct_RANLIB" >&6; }
12899else
12900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12901$as_echo "no" >&6; }
12902fi
12903
12904  if test "x$ac_ct_RANLIB" = x; then
12905    RANLIB=":"
12906  else
12907    case $cross_compiling:$ac_tool_warned in
12908yes:)
12909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12911ac_tool_warned=yes ;;
12912esac
12913    RANLIB=$ac_ct_RANLIB
12914  fi
12915else
12916  RANLIB="$ac_cv_prog_RANLIB"
12917fi
12918
12919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12920$as_echo_n "checking whether ln -s works... " >&6; }
12921LN_S=$as_ln_s
12922if test "$LN_S" = "ln -s"; then
12923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12924$as_echo "yes" >&6; }
12925else
12926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12927$as_echo "no, using $LN_S" >&6; }
12928fi
12929
12930
12931
12932# Add -Wall if we are using GCC.
12933if test "x$GCC" = "xyes"; then
12934  CFLAGS="$CFLAGS -Wall"
12935fi
12936
12937# Check if enable profiling
12938# Check whether --enable-profiling was given.
12939if test "${enable_profiling+set}" = set; then :
12940  enableval=$enable_profiling;
12941fi
12942
12943 if test x$enable_profiling = xyes; then
12944  ENABLE_PROFILING_TRUE=
12945  ENABLE_PROFILING_FALSE='#'
12946else
12947  ENABLE_PROFILING_TRUE='#'
12948  ENABLE_PROFILING_FALSE=
12949fi
12950
12951
12952# Checks for header files.
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12954$as_echo_n "checking for ANSI C header files... " >&6; }
12955if ${ac_cv_header_stdc+:} false; then :
12956  $as_echo_n "(cached) " >&6
12957else
12958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959/* end confdefs.h.  */
12960#include <stdlib.h>
12961#include <stdarg.h>
12962#include <string.h>
12963#include <float.h>
12964
12965int
12966main ()
12967{
12968
12969  ;
12970  return 0;
12971}
12972_ACEOF
12973if ac_fn_c_try_compile "$LINENO"; then :
12974  ac_cv_header_stdc=yes
12975else
12976  ac_cv_header_stdc=no
12977fi
12978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12979
12980if test $ac_cv_header_stdc = yes; then
12981  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983/* end confdefs.h.  */
12984#include <string.h>
12985
12986_ACEOF
12987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12988  $EGREP "memchr" >/dev/null 2>&1; then :
12989
12990else
12991  ac_cv_header_stdc=no
12992fi
12993rm -f conftest*
12994
12995fi
12996
12997if test $ac_cv_header_stdc = yes; then
12998  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000/* end confdefs.h.  */
13001#include <stdlib.h>
13002
13003_ACEOF
13004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13005  $EGREP "free" >/dev/null 2>&1; then :
13006
13007else
13008  ac_cv_header_stdc=no
13009fi
13010rm -f conftest*
13011
13012fi
13013
13014if test $ac_cv_header_stdc = yes; then
13015  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13016  if test "$cross_compiling" = yes; then :
13017  :
13018else
13019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020/* end confdefs.h.  */
13021#include <ctype.h>
13022#include <stdlib.h>
13023#if ((' ' & 0x0FF) == 0x020)
13024# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13025# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13026#else
13027# define ISLOWER(c) \
13028		   (('a' <= (c) && (c) <= 'i') \
13029		     || ('j' <= (c) && (c) <= 'r') \
13030		     || ('s' <= (c) && (c) <= 'z'))
13031# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13032#endif
13033
13034#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13035int
13036main ()
13037{
13038  int i;
13039  for (i = 0; i < 256; i++)
13040    if (XOR (islower (i), ISLOWER (i))
13041	|| toupper (i) != TOUPPER (i))
13042      return 2;
13043  return 0;
13044}
13045_ACEOF
13046if ac_fn_c_try_run "$LINENO"; then :
13047
13048else
13049  ac_cv_header_stdc=no
13050fi
13051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13052  conftest.$ac_objext conftest.beam conftest.$ac_ext
13053fi
13054
13055fi
13056fi
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13058$as_echo "$ac_cv_header_stdc" >&6; }
13059if test $ac_cv_header_stdc = yes; then
13060
13061$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13062
13063fi
13064
13065
13066# Check for systems which need -lsocket and -lnsl
13067#AX_LIB_SOCKET_NSL
13068
13069# Check for the math library (needed by cjson on some platforms)
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
13071$as_echo_n "checking for library containing floor... " >&6; }
13072if ${ac_cv_search_floor+:} false; then :
13073  $as_echo_n "(cached) " >&6
13074else
13075  ac_func_search_save_LIBS=$LIBS
13076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077/* end confdefs.h.  */
13078
13079/* Override any GCC internal prototype to avoid an error.
13080   Use char because int might match the return type of a GCC
13081   builtin and then its argument prototype would still apply.  */
13082#ifdef __cplusplus
13083extern "C"
13084#endif
13085char floor ();
13086int
13087main ()
13088{
13089return floor ();
13090  ;
13091  return 0;
13092}
13093_ACEOF
13094for ac_lib in '' m; do
13095  if test -z "$ac_lib"; then
13096    ac_res="none required"
13097  else
13098    ac_res=-l$ac_lib
13099    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13100  fi
13101  if ac_fn_c_try_link "$LINENO"; then :
13102  ac_cv_search_floor=$ac_res
13103fi
13104rm -f core conftest.err conftest.$ac_objext \
13105    conftest$ac_exeext
13106  if ${ac_cv_search_floor+:} false; then :
13107  break
13108fi
13109done
13110if ${ac_cv_search_floor+:} false; then :
13111
13112else
13113  ac_cv_search_floor=no
13114fi
13115rm conftest.$ac_ext
13116LIBS=$ac_func_search_save_LIBS
13117fi
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
13119$as_echo "$ac_cv_search_floor" >&6; }
13120ac_res=$ac_cv_search_floor
13121if test "$ac_res" != no; then :
13122  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13123
13124else
13125
13126echo "floor()"
13127exit 1
13128
13129fi
13130
13131
13132# On illumos we need -lsocket
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13134$as_echo_n "checking for library containing socket... " >&6; }
13135if ${ac_cv_search_socket+:} false; then :
13136  $as_echo_n "(cached) " >&6
13137else
13138  ac_func_search_save_LIBS=$LIBS
13139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140/* end confdefs.h.  */
13141
13142/* Override any GCC internal prototype to avoid an error.
13143   Use char because int might match the return type of a GCC
13144   builtin and then its argument prototype would still apply.  */
13145#ifdef __cplusplus
13146extern "C"
13147#endif
13148char socket ();
13149int
13150main ()
13151{
13152return socket ();
13153  ;
13154  return 0;
13155}
13156_ACEOF
13157for ac_lib in '' socket; do
13158  if test -z "$ac_lib"; then
13159    ac_res="none required"
13160  else
13161    ac_res=-l$ac_lib
13162    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13163  fi
13164  if ac_fn_c_try_link "$LINENO"; then :
13165  ac_cv_search_socket=$ac_res
13166fi
13167rm -f core conftest.err conftest.$ac_objext \
13168    conftest$ac_exeext
13169  if ${ac_cv_search_socket+:} false; then :
13170  break
13171fi
13172done
13173if ${ac_cv_search_socket+:} false; then :
13174
13175else
13176  ac_cv_search_socket=no
13177fi
13178rm conftest.$ac_ext
13179LIBS=$ac_func_search_save_LIBS
13180fi
13181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13182$as_echo "$ac_cv_search_socket" >&6; }
13183ac_res=$ac_cv_search_socket
13184if test "$ac_res" != no; then :
13185  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13186
13187else
13188
13189echo "socket()"
13190exit 1
13191
13192fi
13193
13194
13195# On illumos inet_ntop in in -lnsl
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
13197$as_echo_n "checking for library containing inet_ntop... " >&6; }
13198if ${ac_cv_search_inet_ntop+:} false; then :
13199  $as_echo_n "(cached) " >&6
13200else
13201  ac_func_search_save_LIBS=$LIBS
13202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203/* end confdefs.h.  */
13204
13205/* Override any GCC internal prototype to avoid an error.
13206   Use char because int might match the return type of a GCC
13207   builtin and then its argument prototype would still apply.  */
13208#ifdef __cplusplus
13209extern "C"
13210#endif
13211char inet_ntop ();
13212int
13213main ()
13214{
13215return inet_ntop ();
13216  ;
13217  return 0;
13218}
13219_ACEOF
13220for ac_lib in '' nsl; do
13221  if test -z "$ac_lib"; then
13222    ac_res="none required"
13223  else
13224    ac_res=-l$ac_lib
13225    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13226  fi
13227  if ac_fn_c_try_link "$LINENO"; then :
13228  ac_cv_search_inet_ntop=$ac_res
13229fi
13230rm -f core conftest.err conftest.$ac_objext \
13231    conftest$ac_exeext
13232  if ${ac_cv_search_inet_ntop+:} false; then :
13233  break
13234fi
13235done
13236if ${ac_cv_search_inet_ntop+:} false; then :
13237
13238else
13239  ac_cv_search_inet_ntop=no
13240fi
13241rm conftest.$ac_ext
13242LIBS=$ac_func_search_save_LIBS
13243fi
13244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
13245$as_echo "$ac_cv_search_inet_ntop" >&6; }
13246ac_res=$ac_cv_search_inet_ntop
13247if test "$ac_res" != no; then :
13248  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13249
13250else
13251
13252echo "inet_ntop()"
13253exit 1
13254
13255fi
13256
13257
13258# Checks for typedefs, structures, and compiler characteristics.
13259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13260$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13261if ${ac_cv_c_const+:} false; then :
13262  $as_echo_n "(cached) " >&6
13263else
13264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265/* end confdefs.h.  */
13266
13267int
13268main ()
13269{
13270
13271#ifndef __cplusplus
13272  /* Ultrix mips cc rejects this sort of thing.  */
13273  typedef int charset[2];
13274  const charset cs = { 0, 0 };
13275  /* SunOS 4.1.1 cc rejects this.  */
13276  char const *const *pcpcc;
13277  char **ppc;
13278  /* NEC SVR4.0.2 mips cc rejects this.  */
13279  struct point {int x, y;};
13280  static struct point const zero = {0,0};
13281  /* AIX XL C 1.02.0.0 rejects this.
13282     It does not let you subtract one const X* pointer from another in
13283     an arm of an if-expression whose if-part is not a constant
13284     expression */
13285  const char *g = "string";
13286  pcpcc = &g + (g ? g-g : 0);
13287  /* HPUX 7.0 cc rejects these. */
13288  ++pcpcc;
13289  ppc = (char**) pcpcc;
13290  pcpcc = (char const *const *) ppc;
13291  { /* SCO 3.2v4 cc rejects this sort of thing.  */
13292    char tx;
13293    char *t = &tx;
13294    char const *s = 0 ? (char *) 0 : (char const *) 0;
13295
13296    *t++ = 0;
13297    if (s) return 0;
13298  }
13299  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13300    int x[] = {25, 17};
13301    const int *foo = &x[0];
13302    ++foo;
13303  }
13304  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13305    typedef const int *iptr;
13306    iptr p = 0;
13307    ++p;
13308  }
13309  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13310       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13311    struct s { int j; const int *ap[3]; } bx;
13312    struct s *b = &bx; b->j = 5;
13313  }
13314  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13315    const int foo = 10;
13316    if (!foo) return 0;
13317  }
13318  return !cs[0] && !zero.x;
13319#endif
13320
13321  ;
13322  return 0;
13323}
13324_ACEOF
13325if ac_fn_c_try_compile "$LINENO"; then :
13326  ac_cv_c_const=yes
13327else
13328  ac_cv_c_const=no
13329fi
13330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331fi
13332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13333$as_echo "$ac_cv_c_const" >&6; }
13334if test $ac_cv_c_const = no; then
13335
13336$as_echo "#define const /**/" >>confdefs.h
13337
13338fi
13339
13340
13341# Check for poll.h (it's in POSIX so everyone should have it?)
13342for ac_header in poll.h
13343do :
13344  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
13345if test "x$ac_cv_header_poll_h" = xyes; then :
13346  cat >>confdefs.h <<_ACEOF
13347#define HAVE_POLL_H 1
13348_ACEOF
13349
13350fi
13351
13352done
13353
13354
13355# SCTP.  Allow user to disable SCTP support with --without-sctp.
13356# Otherwise we try to find whatever support is required.
13357try_sctp=true
13358
13359# Check whether --with-sctp was given.
13360if test "${with_sctp+set}" = set; then :
13361  withval=$with_sctp;
13362        case "$withval" in
13363	y | ye | yes)
13364	  ;;
13365	n | no)
13366	try_sctp=false
13367	  ;;
13368	*)
13369	as_fn_error $? "Invalid --with-sctp value" "$LINENO" 5
13370	  ;;
13371	esac
13372
13373else
13374
13375        try_sctp=true
13376
13377
13378fi
13379
13380
13381# Check for SCTP support
13382if $try_sctp; then
13383for ac_header in sys/socket.h
13384do :
13385  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
13386if test "x$ac_cv_header_sys_socket_h" = xyes; then :
13387  cat >>confdefs.h <<_ACEOF
13388#define HAVE_SYS_SOCKET_H 1
13389_ACEOF
13390
13391fi
13392
13393done
13394
13395for ac_header in netinet/sctp.h
13396do :
13397  ac_fn_c_check_header_compile "$LINENO" "netinet/sctp.h" "ac_cv_header_netinet_sctp_h" "#ifdef HAVE_SYS_SOCKET_H
13398#include <sys/socket.h>
13399#endif
13400
13401"
13402if test "x$ac_cv_header_netinet_sctp_h" = xyes; then :
13403  cat >>confdefs.h <<_ACEOF
13404#define HAVE_NETINET_SCTP_H 1
13405_ACEOF
13406
13407$as_echo "#define HAVE_SCTP_H 1" >>confdefs.h
13408
13409		 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sctp_bindx" >&5
13410$as_echo_n "checking for library containing sctp_bindx... " >&6; }
13411if ${ac_cv_search_sctp_bindx+:} false; then :
13412  $as_echo_n "(cached) " >&6
13413else
13414  ac_func_search_save_LIBS=$LIBS
13415cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416/* end confdefs.h.  */
13417
13418/* Override any GCC internal prototype to avoid an error.
13419   Use char because int might match the return type of a GCC
13420   builtin and then its argument prototype would still apply.  */
13421#ifdef __cplusplus
13422extern "C"
13423#endif
13424char sctp_bindx ();
13425int
13426main ()
13427{
13428return sctp_bindx ();
13429  ;
13430  return 0;
13431}
13432_ACEOF
13433for ac_lib in '' sctp; do
13434  if test -z "$ac_lib"; then
13435    ac_res="none required"
13436  else
13437    ac_res=-l$ac_lib
13438    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13439  fi
13440  if ac_fn_c_try_link "$LINENO"; then :
13441  ac_cv_search_sctp_bindx=$ac_res
13442fi
13443rm -f core conftest.err conftest.$ac_objext \
13444    conftest$ac_exeext
13445  if ${ac_cv_search_sctp_bindx+:} false; then :
13446  break
13447fi
13448done
13449if ${ac_cv_search_sctp_bindx+:} false; then :
13450
13451else
13452  ac_cv_search_sctp_bindx=no
13453fi
13454rm conftest.$ac_ext
13455LIBS=$ac_func_search_save_LIBS
13456fi
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sctp_bindx" >&5
13458$as_echo "$ac_cv_search_sctp_bindx" >&6; }
13459ac_res=$ac_cv_search_sctp_bindx
13460if test "$ac_res" != no; then :
13461  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13462
13463fi
13464
13465
13466# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
13467# -------------------------------------------
13468# Tests whether TYPE exists after having included INCLUDES, setting cache
13469# variable VAR accordingly.
13470ac_fn_c_check_type ()
13471{
13472  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
13474$as_echo_n "checking for $2... " >&6; }
13475if eval \${$3+:} false; then :
13476  $as_echo_n "(cached) " >&6
13477else
13478  eval "$3=no"
13479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480/* end confdefs.h.  */
13481$4
13482int
13483main ()
13484{
13485if (sizeof ($2))
13486	 return 0;
13487  ;
13488  return 0;
13489}
13490_ACEOF
13491if ac_fn_c_try_compile "$LINENO"; then :
13492  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493/* end confdefs.h.  */
13494$4
13495int
13496main ()
13497{
13498if (sizeof (($2)))
13499	    return 0;
13500  ;
13501  return 0;
13502}
13503_ACEOF
13504if ac_fn_c_try_compile "$LINENO"; then :
13505
13506else
13507  eval "$3=yes"
13508fi
13509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13510fi
13511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512fi
13513eval ac_res=\$$3
13514	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13515$as_echo "$ac_res" >&6; }
13516  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
13517
13518} # ac_fn_c_check_type
13519ac_fn_c_check_type "$LINENO" "struct sctp_assoc_value" "ac_cv_type_struct_sctp_assoc_value" "#include <netinet/sctp.h>
13520"
13521if test "x$ac_cv_type_struct_sctp_assoc_value" = xyes; then :
13522
13523cat >>confdefs.h <<_ACEOF
13524#define HAVE_STRUCT_SCTP_ASSOC_VALUE 1
13525_ACEOF
13526
13527
13528fi
13529
13530fi
13531
13532done
13533
13534fi
13535
13536ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
13537if test "x$ac_cv_header_endian_h" = xyes; then :
13538
13539$as_echo "#define HAVE_ENDIAN_H 1" >>confdefs.h
13540
13541else
13542  ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
13543if test "x$ac_cv_header_sys_endian_h" = xyes; then :
13544
13545$as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
13546
13547else
13548  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&5
13549$as_echo "$as_me: WARNING: Couldn't find endian.h or sys/endian.h files: doing compile-time tests." >&2;}
13550
13551fi
13552
13553
13554
13555fi
13556
13557
13558
13559if test "x$with_openssl" = "xno"; then
13560    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&5
13561$as_echo "$as_me: WARNING: Building without OpenSSL; disabling iperf_auth functionality. " >&2;}
13562else
13563    # Check for OPENSSL support
13564    havs_ssl=false
13565
13566    found=false
13567
13568# Check whether --with-openssl was given.
13569if test "${with_openssl+set}" = set; then :
13570  withval=$with_openssl;
13571            case "$withval" in
13572            "" | y | ye | yes | n | no)
13573            as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5
13574              ;;
13575            *) ssldirs="$withval"
13576              ;;
13577            esac
13578
13579else
13580
13581            # if pkg-config is installed and openssl has installed a .pc file,
13582            # then use that information and don't search ssldirs
13583            if test -n "$ac_tool_prefix"; then
13584  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13585set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13587$as_echo_n "checking for $ac_word... " >&6; }
13588if ${ac_cv_prog_PKG_CONFIG+:} false; then :
13589  $as_echo_n "(cached) " >&6
13590else
13591  if test -n "$PKG_CONFIG"; then
13592  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
13593else
13594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595for as_dir in $PATH
13596do
13597  IFS=$as_save_IFS
13598  test -z "$as_dir" && as_dir=.
13599    for ac_exec_ext in '' $ac_executable_extensions; do
13600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13601    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
13602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13603    break 2
13604  fi
13605done
13606  done
13607IFS=$as_save_IFS
13608
13609fi
13610fi
13611PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
13612if test -n "$PKG_CONFIG"; then
13613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13614$as_echo "$PKG_CONFIG" >&6; }
13615else
13616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13617$as_echo "no" >&6; }
13618fi
13619
13620
13621fi
13622if test -z "$ac_cv_prog_PKG_CONFIG"; then
13623  ac_ct_PKG_CONFIG=$PKG_CONFIG
13624  # Extract the first word of "pkg-config", so it can be a program name with args.
13625set dummy pkg-config; ac_word=$2
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627$as_echo_n "checking for $ac_word... " >&6; }
13628if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
13629  $as_echo_n "(cached) " >&6
13630else
13631  if test -n "$ac_ct_PKG_CONFIG"; then
13632  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
13633else
13634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635for as_dir in $PATH
13636do
13637  IFS=$as_save_IFS
13638  test -z "$as_dir" && as_dir=.
13639    for ac_exec_ext in '' $ac_executable_extensions; do
13640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13641    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
13642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13643    break 2
13644  fi
13645done
13646  done
13647IFS=$as_save_IFS
13648
13649fi
13650fi
13651ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
13652if test -n "$ac_ct_PKG_CONFIG"; then
13653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
13654$as_echo "$ac_ct_PKG_CONFIG" >&6; }
13655else
13656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657$as_echo "no" >&6; }
13658fi
13659
13660  if test "x$ac_ct_PKG_CONFIG" = x; then
13661    PKG_CONFIG=""
13662  else
13663    case $cross_compiling:$ac_tool_warned in
13664yes:)
13665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13667ac_tool_warned=yes ;;
13668esac
13669    PKG_CONFIG=$ac_ct_PKG_CONFIG
13670  fi
13671else
13672  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
13673fi
13674
13675            if test x"$PKG_CONFIG" != x""; then
13676                OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
13677                if test $? = 0; then
13678                    OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
13679                    OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
13680                    found=true
13681                fi
13682            fi
13683
13684            # no such luck; use some default ssldirs
13685            if ! $found; then
13686                ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
13687            fi
13688
13689
13690fi
13691
13692
13693
13694    # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
13695    # an 'openssl' subdirectory
13696
13697    if ! $found; then
13698        OPENSSL_INCLUDES=
13699        for ssldir in $ssldirs; do
13700            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5
13701$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; }
13702            if test -f "$ssldir/include/openssl/ssl.h"; then
13703                OPENSSL_INCLUDES="-I$ssldir/include"
13704                OPENSSL_LDFLAGS="-L$ssldir/lib"
13705                OPENSSL_LIBS="-lssl -lcrypto"
13706                found=true
13707                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13708$as_echo "yes" >&6; }
13709                break
13710            else
13711                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13712$as_echo "no" >&6; }
13713            fi
13714        done
13715
13716        # if the file wasn't found, well, go ahead and try the link anyway -- maybe
13717        # it will just work!
13718    fi
13719
13720    # try the preprocessor and linker with our new flags,
13721    # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
13722
13723    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
13724$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; }
13725    echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
13726        "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
13727
13728    save_LIBS="$LIBS"
13729    save_LDFLAGS="$LDFLAGS"
13730    save_CPPFLAGS="$CPPFLAGS"
13731    LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
13732    LIBS="$OPENSSL_LIBS $LIBS"
13733    CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
13734    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13735/* end confdefs.h.  */
13736#include <openssl/ssl.h>
13737int
13738main ()
13739{
13740SSL_new(NULL)
13741  ;
13742  return 0;
13743}
13744_ACEOF
13745if ac_fn_c_try_link "$LINENO"; then :
13746
13747            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13748$as_echo "yes" >&6; }
13749
13750$as_echo "#define HAVE_SSL 1" >>confdefs.h
13751
13752          have_ssl=true
13753
13754else
13755
13756            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757$as_echo "no" >&6; }
13758             if test "x$with_openssl" != "x"; then
13759	  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13761as_fn_error $? "--with-openssl was given, but test for OpenSSL failed
13762See \`config.log' for more details" "$LINENO" 5; }
13763	  fi
13764
13765
13766fi
13767rm -f core conftest.err conftest.$ac_objext \
13768    conftest$ac_exeext conftest.$ac_ext
13769    CPPFLAGS="$save_CPPFLAGS"
13770    LDFLAGS="$save_LDFLAGS"
13771    LIBS="$save_LIBS"
13772
13773
13774
13775
13776
13777    if $have_ssl; then
13778        case $host in
13779           *-*-cygwin)
13780             CFLAGS="$CFLAGS -DNOCRYPT"
13781             ;;
13782        esac
13783        LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
13784        LIBS="$OPENSSL_LIBS $LIBS"
13785        CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS"
13786    fi
13787fi
13788
13789# Check for TCP_CONGESTION sockopt (believed to be Linux and FreeBSD only)
13790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking TCP_CONGESTION socket option" >&5
13791$as_echo_n "checking TCP_CONGESTION socket option... " >&6; }
13792if ${iperf3_cv_header_tcp_congestion+:} false; then :
13793  $as_echo_n "(cached) " >&6
13794else
13795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13796/* end confdefs.h.  */
13797#include <netinet/tcp.h>
13798#ifdef TCP_CONGESTION
13799  yes
13800#endif
13801
13802_ACEOF
13803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13804  $EGREP "yes" >/dev/null 2>&1; then :
13805  iperf3_cv_header_tcp_congestion=yes
13806else
13807  iperf3_cv_header_tcp_congestion=no
13808fi
13809rm -f conftest*
13810
13811fi
13812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_tcp_congestion" >&5
13813$as_echo "$iperf3_cv_header_tcp_congestion" >&6; }
13814if test "x$iperf3_cv_header_tcp_congestion" = "xyes"; then
13815
13816$as_echo "#define HAVE_TCP_CONGESTION 1" >>confdefs.h
13817
13818fi
13819
13820# Check for IPv6 flowlabel support (believed to be Linux only)
13821# We check for IPV6_FLOWLABEL_MGR in <linux/in6.h> even though we
13822# don't use that file directly (we have our own stripped-down
13823# copy, see src/flowlabel.h for more details).
13824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking IPv6 flowlabel support" >&5
13825$as_echo_n "checking IPv6 flowlabel support... " >&6; }
13826if ${iperf3_cv_header_flowlabel+:} false; then :
13827  $as_echo_n "(cached) " >&6
13828else
13829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830/* end confdefs.h.  */
13831#include <sys/types.h>
13832#include <linux/in6.h>
13833#ifdef IPV6_FLOWLABEL_MGR
13834  yes
13835#endif
13836
13837_ACEOF
13838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13839  $EGREP "yes" >/dev/null 2>&1; then :
13840  iperf3_cv_header_flowlabel=yes
13841else
13842  iperf3_cv_header_flowlabel=no
13843fi
13844rm -f conftest*
13845
13846fi
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_flowlabel" >&5
13848$as_echo "$iperf3_cv_header_flowlabel" >&6; }
13849if test "x$iperf3_cv_header_flowlabel" = "xyes"; then
13850
13851$as_echo "#define HAVE_FLOWLABEL 1" >>confdefs.h
13852
13853fi
13854
13855# Check for CPU affinity support.  FreeBSD and Linux do this differently
13856# unfortunately so we have to check separately for each of them.
13857# FreeBSD uses cpuset_setaffinity while Linux uses sched_setaffinity.
13858# Define HAVE_CPU_AFFINITY to indicate the CPU affinity setting as a
13859# generic concept is available.
13860for ac_func in cpuset_setaffinity sched_setaffinity SetProcessAffinityMask
13861do :
13862  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13863ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13864if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13865  cat >>confdefs.h <<_ACEOF
13866#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13867_ACEOF
13868
13869$as_echo "#define HAVE_CPU_AFFINITY 1" >>confdefs.h
13870
13871fi
13872done
13873
13874
13875# Check for daemon().  Most systems have this but a few (IRIX) don't.
13876for ac_func in daemon
13877do :
13878  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13879if test "x$ac_cv_func_daemon" = xyes; then :
13880  cat >>confdefs.h <<_ACEOF
13881#define HAVE_DAEMON 1
13882_ACEOF
13883
13884fi
13885done
13886
13887
13888# Check for sendfile support.  FreeBSD, Linux, and MacOS all support
13889# this system call, but they're all different in terms of what headers
13890# it needs and what arguments it expects.
13891for ac_func in sendfile
13892do :
13893  ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
13894if test "x$ac_cv_func_sendfile" = xyes; then :
13895  cat >>confdefs.h <<_ACEOF
13896#define HAVE_SENDFILE 1
13897_ACEOF
13898
13899fi
13900done
13901
13902
13903# Check for getline support, used as a part of authenticated
13904# connections.
13905for ac_func in getline
13906do :
13907  ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
13908if test "x$ac_cv_func_getline" = xyes; then :
13909  cat >>confdefs.h <<_ACEOF
13910#define HAVE_GETLINE 1
13911_ACEOF
13912
13913fi
13914done
13915
13916
13917# Check for packet pacing socket option (Linux only for now).
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_MAX_PACING_RATE socket option" >&5
13919$as_echo_n "checking SO_MAX_PACING_RATE socket option... " >&6; }
13920if ${iperf3_cv_header_so_max_pacing_rate+:} false; then :
13921  $as_echo_n "(cached) " >&6
13922else
13923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924/* end confdefs.h.  */
13925#include <sys/socket.h>
13926#ifdef SO_MAX_PACING_RATE
13927  yes
13928#endif
13929
13930_ACEOF
13931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13932  $EGREP "yes" >/dev/null 2>&1; then :
13933  iperf3_cv_header_so_max_pacing_rate=yes
13934else
13935  iperf3_cv_header_so_max_pacing_rate=no
13936fi
13937rm -f conftest*
13938
13939fi
13940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_max_pacing_rate" >&5
13941$as_echo "$iperf3_cv_header_so_max_pacing_rate" >&6; }
13942if test "x$iperf3_cv_header_so_max_pacing_rate" = "xyes"; then
13943
13944$as_echo "#define HAVE_SO_MAX_PACING_RATE 1" >>confdefs.h
13945
13946fi
13947
13948# Check for SO_BINDTODEVICE sockopt (believed to be Linux only)
13949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO_BINDTODEVICE socket option" >&5
13950$as_echo_n "checking SO_BINDTODEVICE socket option... " >&6; }
13951if ${iperf3_cv_header_so_bindtodevice+:} false; then :
13952  $as_echo_n "(cached) " >&6
13953else
13954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955/* end confdefs.h.  */
13956#include <sys/socket.h>
13957#ifdef SO_BINDTODEVICE
13958  yes
13959#endif
13960
13961_ACEOF
13962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13963  $EGREP "yes" >/dev/null 2>&1; then :
13964  iperf3_cv_header_so_bindtodevice=yes
13965else
13966  iperf3_cv_header_so_bindtodevice=no
13967fi
13968rm -f conftest*
13969
13970fi
13971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $iperf3_cv_header_so_bindtodevice" >&5
13972$as_echo "$iperf3_cv_header_so_bindtodevice" >&6; }
13973if test "x$iperf3_cv_header_so_bindtodevice" = "xyes"; then
13974
13975$as_echo "#define HAVE_SO_BINDTODEVICE 1" >>confdefs.h
13976
13977fi
13978
13979# Check if we need -lrt for clock_gettime
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13981$as_echo_n "checking for library containing clock_gettime... " >&6; }
13982if ${ac_cv_search_clock_gettime+:} false; then :
13983  $as_echo_n "(cached) " >&6
13984else
13985  ac_func_search_save_LIBS=$LIBS
13986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987/* end confdefs.h.  */
13988
13989/* Override any GCC internal prototype to avoid an error.
13990   Use char because int might match the return type of a GCC
13991   builtin and then its argument prototype would still apply.  */
13992#ifdef __cplusplus
13993extern "C"
13994#endif
13995char clock_gettime ();
13996int
13997main ()
13998{
13999return clock_gettime ();
14000  ;
14001  return 0;
14002}
14003_ACEOF
14004for ac_lib in '' rt posix4; do
14005  if test -z "$ac_lib"; then
14006    ac_res="none required"
14007  else
14008    ac_res=-l$ac_lib
14009    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14010  fi
14011  if ac_fn_c_try_link "$LINENO"; then :
14012  ac_cv_search_clock_gettime=$ac_res
14013fi
14014rm -f core conftest.err conftest.$ac_objext \
14015    conftest$ac_exeext
14016  if ${ac_cv_search_clock_gettime+:} false; then :
14017  break
14018fi
14019done
14020if ${ac_cv_search_clock_gettime+:} false; then :
14021
14022else
14023  ac_cv_search_clock_gettime=no
14024fi
14025rm conftest.$ac_ext
14026LIBS=$ac_func_search_save_LIBS
14027fi
14028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14029$as_echo "$ac_cv_search_clock_gettime" >&6; }
14030ac_res=$ac_cv_search_clock_gettime
14031if test "$ac_res" != no; then :
14032  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14033
14034fi
14035
14036# Check for clock_gettime support
14037for ac_func in clock_gettime
14038do :
14039  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14040if test "x$ac_cv_func_clock_gettime" = xyes; then :
14041  cat >>confdefs.h <<_ACEOF
14042#define HAVE_CLOCK_GETTIME 1
14043_ACEOF
14044
14045fi
14046done
14047
14048
14049ac_config_files="$ac_config_files Makefile src/Makefile src/version.h examples/Makefile iperf3.spec"
14050
14051cat >confcache <<\_ACEOF
14052# This file is a shell script that caches the results of configure
14053# tests run on this system so they can be shared between configure
14054# scripts and configure runs, see configure's option --config-cache.
14055# It is not useful on other systems.  If it contains results you don't
14056# want to keep, you may remove or edit it.
14057#
14058# config.status only pays attention to the cache file if you give it
14059# the --recheck option to rerun configure.
14060#
14061# `ac_cv_env_foo' variables (set or unset) will be overridden when
14062# loading this file, other *unset* `ac_cv_foo' will be assigned the
14063# following values.
14064
14065_ACEOF
14066
14067# The following way of writing the cache mishandles newlines in values,
14068# but we know of no workaround that is simple, portable, and efficient.
14069# So, we kill variables containing newlines.
14070# Ultrix sh set writes to stderr and can't be redirected directly,
14071# and sets the high bit in the cache file unless we assign to the vars.
14072(
14073  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14074    eval ac_val=\$$ac_var
14075    case $ac_val in #(
14076    *${as_nl}*)
14077      case $ac_var in #(
14078      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14079$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14080      esac
14081      case $ac_var in #(
14082      _ | IFS | as_nl) ;; #(
14083      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14084      *) { eval $ac_var=; unset $ac_var;} ;;
14085      esac ;;
14086    esac
14087  done
14088
14089  (set) 2>&1 |
14090    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14091    *${as_nl}ac_space=\ *)
14092      # `set' does not quote correctly, so add quotes: double-quote
14093      # substitution turns \\\\ into \\, and sed turns \\ into \.
14094      sed -n \
14095	"s/'/'\\\\''/g;
14096	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14097      ;; #(
14098    *)
14099      # `set' quotes correctly as required by POSIX, so do not add quotes.
14100      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14101      ;;
14102    esac |
14103    sort
14104) |
14105  sed '
14106     /^ac_cv_env_/b end
14107     t clear
14108     :clear
14109     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14110     t end
14111     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14112     :end' >>confcache
14113if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14114  if test -w "$cache_file"; then
14115    if test "x$cache_file" != "x/dev/null"; then
14116      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14117$as_echo "$as_me: updating cache $cache_file" >&6;}
14118      if test ! -f "$cache_file" || test -h "$cache_file"; then
14119	cat confcache >"$cache_file"
14120      else
14121        case $cache_file in #(
14122        */* | ?:*)
14123	  mv -f confcache "$cache_file"$$ &&
14124	  mv -f "$cache_file"$$ "$cache_file" ;; #(
14125        *)
14126	  mv -f confcache "$cache_file" ;;
14127	esac
14128      fi
14129    fi
14130  else
14131    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14132$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14133  fi
14134fi
14135rm -f confcache
14136
14137test "x$prefix" = xNONE && prefix=$ac_default_prefix
14138# Let make expand exec_prefix.
14139test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14140
14141DEFS=-DHAVE_CONFIG_H
14142
14143ac_libobjs=
14144ac_ltlibobjs=
14145for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14146  # 1. Remove the extension, and $U if already installed.
14147  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14148  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14149  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14150  #    will be set to the directory where LIBOBJS objects are built.
14151  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14152  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14153done
14154LIBOBJS=$ac_libobjs
14155
14156LTLIBOBJS=$ac_ltlibobjs
14157
14158
14159if test -z "${ENABLE_STATIC_BIN_TRUE}" && test -z "${ENABLE_STATIC_BIN_FALSE}"; then
14160  as_fn_error $? "conditional \"ENABLE_STATIC_BIN\" was never defined.
14161Usually this means the macro was only invoked conditionally." "$LINENO" 5
14162fi
14163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14164$as_echo_n "checking that generated files are newer than configure... " >&6; }
14165   if test -n "$am_sleep_pid"; then
14166     # Hide warnings about reused PIDs.
14167     wait $am_sleep_pid 2>/dev/null
14168   fi
14169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14170$as_echo "done" >&6; }
14171 if test -n "$EXEEXT"; then
14172  am__EXEEXT_TRUE=
14173  am__EXEEXT_FALSE='#'
14174else
14175  am__EXEEXT_TRUE='#'
14176  am__EXEEXT_FALSE=
14177fi
14178
14179if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14180  as_fn_error $? "conditional \"AMDEP\" was never defined.
14181Usually this means the macro was only invoked conditionally." "$LINENO" 5
14182fi
14183if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14184  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14185Usually this means the macro was only invoked conditionally." "$LINENO" 5
14186fi
14187if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14188  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14189Usually this means the macro was only invoked conditionally." "$LINENO" 5
14190fi
14191if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14192  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14193Usually this means the macro was only invoked conditionally." "$LINENO" 5
14194fi
14195if test -z "${ENABLE_PROFILING_TRUE}" && test -z "${ENABLE_PROFILING_FALSE}"; then
14196  as_fn_error $? "conditional \"ENABLE_PROFILING\" was never defined.
14197Usually this means the macro was only invoked conditionally." "$LINENO" 5
14198fi
14199
14200: "${CONFIG_STATUS=./config.status}"
14201ac_write_fail=0
14202ac_clean_files_save=$ac_clean_files
14203ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14204{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14205$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14206as_write_fail=0
14207cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14208#! $SHELL
14209# Generated by $as_me.
14210# Run this file to recreate the current configuration.
14211# Compiler output produced by configure, useful for debugging
14212# configure, is in config.log if it exists.
14213
14214debug=false
14215ac_cs_recheck=false
14216ac_cs_silent=false
14217
14218SHELL=\${CONFIG_SHELL-$SHELL}
14219export SHELL
14220_ASEOF
14221cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14222## -------------------- ##
14223## M4sh Initialization. ##
14224## -------------------- ##
14225
14226# Be more Bourne compatible
14227DUALCASE=1; export DUALCASE # for MKS sh
14228if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14229  emulate sh
14230  NULLCMD=:
14231  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14232  # is contrary to our usage.  Disable this feature.
14233  alias -g '${1+"$@"}'='"$@"'
14234  setopt NO_GLOB_SUBST
14235else
14236  case `(set -o) 2>/dev/null` in #(
14237  *posix*) :
14238    set -o posix ;; #(
14239  *) :
14240     ;;
14241esac
14242fi
14243
14244
14245as_nl='
14246'
14247export as_nl
14248# Printing a long string crashes Solaris 7 /usr/bin/printf.
14249as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14250as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14251as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14252# Prefer a ksh shell builtin over an external printf program on Solaris,
14253# but without wasting forks for bash or zsh.
14254if test -z "$BASH_VERSION$ZSH_VERSION" \
14255    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14256  as_echo='print -r --'
14257  as_echo_n='print -rn --'
14258elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14259  as_echo='printf %s\n'
14260  as_echo_n='printf %s'
14261else
14262  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14263    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14264    as_echo_n='/usr/ucb/echo -n'
14265  else
14266    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14267    as_echo_n_body='eval
14268      arg=$1;
14269      case $arg in #(
14270      *"$as_nl"*)
14271	expr "X$arg" : "X\\(.*\\)$as_nl";
14272	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14273      esac;
14274      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14275    '
14276    export as_echo_n_body
14277    as_echo_n='sh -c $as_echo_n_body as_echo'
14278  fi
14279  export as_echo_body
14280  as_echo='sh -c $as_echo_body as_echo'
14281fi
14282
14283# The user is always right.
14284if test "${PATH_SEPARATOR+set}" != set; then
14285  PATH_SEPARATOR=:
14286  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14287    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14288      PATH_SEPARATOR=';'
14289  }
14290fi
14291
14292
14293# IFS
14294# We need space, tab and new line, in precisely that order.  Quoting is
14295# there to prevent editors from complaining about space-tab.
14296# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14297# splitting by setting IFS to empty value.)
14298IFS=" ""	$as_nl"
14299
14300# Find who we are.  Look in the path if we contain no directory separator.
14301as_myself=
14302case $0 in #((
14303  *[\\/]* ) as_myself=$0 ;;
14304  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14305for as_dir in $PATH
14306do
14307  IFS=$as_save_IFS
14308  test -z "$as_dir" && as_dir=.
14309    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14310  done
14311IFS=$as_save_IFS
14312
14313     ;;
14314esac
14315# We did not find ourselves, most probably we were run as `sh COMMAND'
14316# in which case we are not to be found in the path.
14317if test "x$as_myself" = x; then
14318  as_myself=$0
14319fi
14320if test ! -f "$as_myself"; then
14321  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14322  exit 1
14323fi
14324
14325# Unset variables that we do not need and which cause bugs (e.g. in
14326# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14327# suppresses any "Segmentation fault" message there.  '((' could
14328# trigger a bug in pdksh 5.2.14.
14329for as_var in BASH_ENV ENV MAIL MAILPATH
14330do eval test x\${$as_var+set} = xset \
14331  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14332done
14333PS1='$ '
14334PS2='> '
14335PS4='+ '
14336
14337# NLS nuisances.
14338LC_ALL=C
14339export LC_ALL
14340LANGUAGE=C
14341export LANGUAGE
14342
14343# CDPATH.
14344(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14345
14346
14347# as_fn_error STATUS ERROR [LINENO LOG_FD]
14348# ----------------------------------------
14349# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14350# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14351# script with STATUS, using 1 if that was 0.
14352as_fn_error ()
14353{
14354  as_status=$1; test $as_status -eq 0 && as_status=1
14355  if test "$4"; then
14356    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14357    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14358  fi
14359  $as_echo "$as_me: error: $2" >&2
14360  as_fn_exit $as_status
14361} # as_fn_error
14362
14363
14364# as_fn_set_status STATUS
14365# -----------------------
14366# Set $? to STATUS, without forking.
14367as_fn_set_status ()
14368{
14369  return $1
14370} # as_fn_set_status
14371
14372# as_fn_exit STATUS
14373# -----------------
14374# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14375as_fn_exit ()
14376{
14377  set +e
14378  as_fn_set_status $1
14379  exit $1
14380} # as_fn_exit
14381
14382# as_fn_unset VAR
14383# ---------------
14384# Portably unset VAR.
14385as_fn_unset ()
14386{
14387  { eval $1=; unset $1;}
14388}
14389as_unset=as_fn_unset
14390# as_fn_append VAR VALUE
14391# ----------------------
14392# Append the text in VALUE to the end of the definition contained in VAR. Take
14393# advantage of any shell optimizations that allow amortized linear growth over
14394# repeated appends, instead of the typical quadratic growth present in naive
14395# implementations.
14396if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14397  eval 'as_fn_append ()
14398  {
14399    eval $1+=\$2
14400  }'
14401else
14402  as_fn_append ()
14403  {
14404    eval $1=\$$1\$2
14405  }
14406fi # as_fn_append
14407
14408# as_fn_arith ARG...
14409# ------------------
14410# Perform arithmetic evaluation on the ARGs, and store the result in the
14411# global $as_val. Take advantage of shells that can avoid forks. The arguments
14412# must be portable across $(()) and expr.
14413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14414  eval 'as_fn_arith ()
14415  {
14416    as_val=$(( $* ))
14417  }'
14418else
14419  as_fn_arith ()
14420  {
14421    as_val=`expr "$@" || test $? -eq 1`
14422  }
14423fi # as_fn_arith
14424
14425
14426if expr a : '\(a\)' >/dev/null 2>&1 &&
14427   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14428  as_expr=expr
14429else
14430  as_expr=false
14431fi
14432
14433if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14434  as_basename=basename
14435else
14436  as_basename=false
14437fi
14438
14439if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14440  as_dirname=dirname
14441else
14442  as_dirname=false
14443fi
14444
14445as_me=`$as_basename -- "$0" ||
14446$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14447	 X"$0" : 'X\(//\)$' \| \
14448	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14449$as_echo X/"$0" |
14450    sed '/^.*\/\([^/][^/]*\)\/*$/{
14451	    s//\1/
14452	    q
14453	  }
14454	  /^X\/\(\/\/\)$/{
14455	    s//\1/
14456	    q
14457	  }
14458	  /^X\/\(\/\).*/{
14459	    s//\1/
14460	    q
14461	  }
14462	  s/.*/./; q'`
14463
14464# Avoid depending upon Character Ranges.
14465as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14466as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14467as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14468as_cr_digits='0123456789'
14469as_cr_alnum=$as_cr_Letters$as_cr_digits
14470
14471ECHO_C= ECHO_N= ECHO_T=
14472case `echo -n x` in #(((((
14473-n*)
14474  case `echo 'xy\c'` in
14475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14476  xy)  ECHO_C='\c';;
14477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14478       ECHO_T='	';;
14479  esac;;
14480*)
14481  ECHO_N='-n';;
14482esac
14483
14484rm -f conf$$ conf$$.exe conf$$.file
14485if test -d conf$$.dir; then
14486  rm -f conf$$.dir/conf$$.file
14487else
14488  rm -f conf$$.dir
14489  mkdir conf$$.dir 2>/dev/null
14490fi
14491if (echo >conf$$.file) 2>/dev/null; then
14492  if ln -s conf$$.file conf$$ 2>/dev/null; then
14493    as_ln_s='ln -s'
14494    # ... but there are two gotchas:
14495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14497    # In both cases, we have to default to `cp -pR'.
14498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14499      as_ln_s='cp -pR'
14500  elif ln conf$$.file conf$$ 2>/dev/null; then
14501    as_ln_s=ln
14502  else
14503    as_ln_s='cp -pR'
14504  fi
14505else
14506  as_ln_s='cp -pR'
14507fi
14508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14509rmdir conf$$.dir 2>/dev/null
14510
14511
14512# as_fn_mkdir_p
14513# -------------
14514# Create "$as_dir" as a directory, including parents if necessary.
14515as_fn_mkdir_p ()
14516{
14517
14518  case $as_dir in #(
14519  -*) as_dir=./$as_dir;;
14520  esac
14521  test -d "$as_dir" || eval $as_mkdir_p || {
14522    as_dirs=
14523    while :; do
14524      case $as_dir in #(
14525      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14526      *) as_qdir=$as_dir;;
14527      esac
14528      as_dirs="'$as_qdir' $as_dirs"
14529      as_dir=`$as_dirname -- "$as_dir" ||
14530$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14531	 X"$as_dir" : 'X\(//\)[^/]' \| \
14532	 X"$as_dir" : 'X\(//\)$' \| \
14533	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14534$as_echo X"$as_dir" |
14535    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14536	    s//\1/
14537	    q
14538	  }
14539	  /^X\(\/\/\)[^/].*/{
14540	    s//\1/
14541	    q
14542	  }
14543	  /^X\(\/\/\)$/{
14544	    s//\1/
14545	    q
14546	  }
14547	  /^X\(\/\).*/{
14548	    s//\1/
14549	    q
14550	  }
14551	  s/.*/./; q'`
14552      test -d "$as_dir" && break
14553    done
14554    test -z "$as_dirs" || eval "mkdir $as_dirs"
14555  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14556
14557
14558} # as_fn_mkdir_p
14559if mkdir -p . 2>/dev/null; then
14560  as_mkdir_p='mkdir -p "$as_dir"'
14561else
14562  test -d ./-p && rmdir ./-p
14563  as_mkdir_p=false
14564fi
14565
14566
14567# as_fn_executable_p FILE
14568# -----------------------
14569# Test if FILE is an executable regular file.
14570as_fn_executable_p ()
14571{
14572  test -f "$1" && test -x "$1"
14573} # as_fn_executable_p
14574as_test_x='test -x'
14575as_executable_p=as_fn_executable_p
14576
14577# Sed expression to map a string onto a valid CPP name.
14578as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14579
14580# Sed expression to map a string onto a valid variable name.
14581as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14582
14583
14584exec 6>&1
14585## ----------------------------------- ##
14586## Main body of $CONFIG_STATUS script. ##
14587## ----------------------------------- ##
14588_ASEOF
14589test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14590
14591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14592# Save the log message, to keep $0 and so on meaningful, and to
14593# report actual input values of CONFIG_FILES etc. instead of their
14594# values after options handling.
14595ac_log="
14596This file was extended by iperf $as_me 3.9+, which was
14597generated by GNU Autoconf 2.69.  Invocation command line was
14598
14599  CONFIG_FILES    = $CONFIG_FILES
14600  CONFIG_HEADERS  = $CONFIG_HEADERS
14601  CONFIG_LINKS    = $CONFIG_LINKS
14602  CONFIG_COMMANDS = $CONFIG_COMMANDS
14603  $ $0 $@
14604
14605on `(hostname || uname -n) 2>/dev/null | sed 1q`
14606"
14607
14608_ACEOF
14609
14610case $ac_config_files in *"
14611"*) set x $ac_config_files; shift; ac_config_files=$*;;
14612esac
14613
14614case $ac_config_headers in *"
14615"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14616esac
14617
14618
14619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14620# Files that config.status was made for.
14621config_files="$ac_config_files"
14622config_headers="$ac_config_headers"
14623config_commands="$ac_config_commands"
14624
14625_ACEOF
14626
14627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14628ac_cs_usage="\
14629\`$as_me' instantiates files and other configuration actions
14630from templates according to the current configuration.  Unless the files
14631and actions are specified as TAGs, all are instantiated by default.
14632
14633Usage: $0 [OPTION]... [TAG]...
14634
14635  -h, --help       print this help, then exit
14636  -V, --version    print version number and configuration settings, then exit
14637      --config     print configuration, then exit
14638  -q, --quiet, --silent
14639                   do not print progress messages
14640  -d, --debug      don't remove temporary files
14641      --recheck    update $as_me by reconfiguring in the same conditions
14642      --file=FILE[:TEMPLATE]
14643                   instantiate the configuration file FILE
14644      --header=FILE[:TEMPLATE]
14645                   instantiate the configuration header FILE
14646
14647Configuration files:
14648$config_files
14649
14650Configuration headers:
14651$config_headers
14652
14653Configuration commands:
14654$config_commands
14655
14656Report bugs to <https://github.com/esnet/iperf>.
14657iperf home page: <https://software.es.net/iperf/>."
14658
14659_ACEOF
14660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14661ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14662ac_cs_version="\\
14663iperf config.status 3.9+
14664configured by $0, generated by GNU Autoconf 2.69,
14665  with options \\"\$ac_cs_config\\"
14666
14667Copyright (C) 2012 Free Software Foundation, Inc.
14668This config.status script is free software; the Free Software Foundation
14669gives unlimited permission to copy, distribute and modify it."
14670
14671ac_pwd='$ac_pwd'
14672srcdir='$srcdir'
14673INSTALL='$INSTALL'
14674MKDIR_P='$MKDIR_P'
14675AWK='$AWK'
14676test -n "\$AWK" || AWK=awk
14677_ACEOF
14678
14679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14680# The default lists apply if the user does not specify any file.
14681ac_need_defaults=:
14682while test $# != 0
14683do
14684  case $1 in
14685  --*=?*)
14686    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14687    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14688    ac_shift=:
14689    ;;
14690  --*=)
14691    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14692    ac_optarg=
14693    ac_shift=:
14694    ;;
14695  *)
14696    ac_option=$1
14697    ac_optarg=$2
14698    ac_shift=shift
14699    ;;
14700  esac
14701
14702  case $ac_option in
14703  # Handling of the options.
14704  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14705    ac_cs_recheck=: ;;
14706  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14707    $as_echo "$ac_cs_version"; exit ;;
14708  --config | --confi | --conf | --con | --co | --c )
14709    $as_echo "$ac_cs_config"; exit ;;
14710  --debug | --debu | --deb | --de | --d | -d )
14711    debug=: ;;
14712  --file | --fil | --fi | --f )
14713    $ac_shift
14714    case $ac_optarg in
14715    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14716    '') as_fn_error $? "missing file argument" ;;
14717    esac
14718    as_fn_append CONFIG_FILES " '$ac_optarg'"
14719    ac_need_defaults=false;;
14720  --header | --heade | --head | --hea )
14721    $ac_shift
14722    case $ac_optarg in
14723    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14724    esac
14725    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14726    ac_need_defaults=false;;
14727  --he | --h)
14728    # Conflict between --help and --header
14729    as_fn_error $? "ambiguous option: \`$1'
14730Try \`$0 --help' for more information.";;
14731  --help | --hel | -h )
14732    $as_echo "$ac_cs_usage"; exit ;;
14733  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14734  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14735    ac_cs_silent=: ;;
14736
14737  # This is an error.
14738  -*) as_fn_error $? "unrecognized option: \`$1'
14739Try \`$0 --help' for more information." ;;
14740
14741  *) as_fn_append ac_config_targets " $1"
14742     ac_need_defaults=false ;;
14743
14744  esac
14745  shift
14746done
14747
14748ac_configure_extra_args=
14749
14750if $ac_cs_silent; then
14751  exec 6>/dev/null
14752  ac_configure_extra_args="$ac_configure_extra_args --silent"
14753fi
14754
14755_ACEOF
14756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14757if \$ac_cs_recheck; then
14758  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14759  shift
14760  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14761  CONFIG_SHELL='$SHELL'
14762  export CONFIG_SHELL
14763  exec "\$@"
14764fi
14765
14766_ACEOF
14767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14768exec 5>>config.log
14769{
14770  echo
14771  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14772## Running $as_me. ##
14773_ASBOX
14774  $as_echo "$ac_log"
14775} >&5
14776
14777_ACEOF
14778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14779#
14780# INIT-COMMANDS
14781#
14782AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14783
14784
14785# The HP-UX ksh and POSIX shell print the target directory to stdout
14786# if CDPATH is set.
14787(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14788
14789sed_quote_subst='$sed_quote_subst'
14790double_quote_subst='$double_quote_subst'
14791delay_variable_subst='$delay_variable_subst'
14792macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14793macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14794enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14795enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14796pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14797enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14798shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14799SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14800ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14801PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14802host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14803host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14804host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14805build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14806build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14807build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14808SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14809Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14810GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14811EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14812FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14813LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14814NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14815LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14816max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14817ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14818exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14819lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14820lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14821lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14822lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14823lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14824reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14825reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14826OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14827deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14828file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14829file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14830want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14831DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14832sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14833AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14834AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14835archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14836STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14837RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14838old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14839old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14840old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14841lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14842CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14843CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14844compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14845GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14846lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14847lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14848lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14849lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14850lt_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"`'
14851lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14852nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14853lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14854lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14855objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14856MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14857lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14858lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14859lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14860lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14861lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14862need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14863MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14864DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14865NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14866LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14867OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14868OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14869libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14870shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14871extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14872archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14873enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14874export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14875whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14876compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14877old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14878old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14879archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14880archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14881module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14882module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14883with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14884allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14885no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14886hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14887hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14888hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14889hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14890hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14891hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14892hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14893inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14894link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14895always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14896export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14897exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14898include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14899prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14900postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14901file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14902variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14903need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14904need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14905version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14906runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14907shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14908shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14909libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14910library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14911soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14912install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14913postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14914postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14915finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14916finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14917hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14918sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14919configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14920configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14921hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14922enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14923enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14924enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14925old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14926striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14927
14928LTCC='$LTCC'
14929LTCFLAGS='$LTCFLAGS'
14930compiler='$compiler_DEFAULT'
14931
14932# A function that is used when there is no print builtin or printf.
14933func_fallback_echo ()
14934{
14935  eval 'cat <<_LTECHO_EOF
14936\$1
14937_LTECHO_EOF'
14938}
14939
14940# Quote evaled strings.
14941for var in SHELL \
14942ECHO \
14943PATH_SEPARATOR \
14944SED \
14945GREP \
14946EGREP \
14947FGREP \
14948LD \
14949NM \
14950LN_S \
14951lt_SP2NL \
14952lt_NL2SP \
14953reload_flag \
14954OBJDUMP \
14955deplibs_check_method \
14956file_magic_cmd \
14957file_magic_glob \
14958want_nocaseglob \
14959DLLTOOL \
14960sharedlib_from_linklib_cmd \
14961AR \
14962AR_FLAGS \
14963archiver_list_spec \
14964STRIP \
14965RANLIB \
14966CC \
14967CFLAGS \
14968compiler \
14969lt_cv_sys_global_symbol_pipe \
14970lt_cv_sys_global_symbol_to_cdecl \
14971lt_cv_sys_global_symbol_to_import \
14972lt_cv_sys_global_symbol_to_c_name_address \
14973lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14974lt_cv_nm_interface \
14975nm_file_list_spec \
14976lt_cv_truncate_bin \
14977lt_prog_compiler_no_builtin_flag \
14978lt_prog_compiler_pic \
14979lt_prog_compiler_wl \
14980lt_prog_compiler_static \
14981lt_cv_prog_compiler_c_o \
14982need_locks \
14983MANIFEST_TOOL \
14984DSYMUTIL \
14985NMEDIT \
14986LIPO \
14987OTOOL \
14988OTOOL64 \
14989shrext_cmds \
14990export_dynamic_flag_spec \
14991whole_archive_flag_spec \
14992compiler_needs_object \
14993with_gnu_ld \
14994allow_undefined_flag \
14995no_undefined_flag \
14996hardcode_libdir_flag_spec \
14997hardcode_libdir_separator \
14998exclude_expsyms \
14999include_expsyms \
15000file_list_spec \
15001variables_saved_for_relink \
15002libname_spec \
15003library_names_spec \
15004soname_spec \
15005install_override_mode \
15006finish_eval \
15007old_striplib \
15008striplib; do
15009    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15010    *[\\\\\\\`\\"\\\$]*)
15011      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15012      ;;
15013    *)
15014      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15015      ;;
15016    esac
15017done
15018
15019# Double-quote double-evaled strings.
15020for var in reload_cmds \
15021old_postinstall_cmds \
15022old_postuninstall_cmds \
15023old_archive_cmds \
15024extract_expsyms_cmds \
15025old_archive_from_new_cmds \
15026old_archive_from_expsyms_cmds \
15027archive_cmds \
15028archive_expsym_cmds \
15029module_cmds \
15030module_expsym_cmds \
15031export_symbols_cmds \
15032prelink_cmds \
15033postlink_cmds \
15034postinstall_cmds \
15035postuninstall_cmds \
15036finish_cmds \
15037sys_lib_search_path_spec \
15038configure_time_dlsearch_path \
15039configure_time_lt_sys_library_path; do
15040    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15041    *[\\\\\\\`\\"\\\$]*)
15042      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15043      ;;
15044    *)
15045      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15046      ;;
15047    esac
15048done
15049
15050ac_aux_dir='$ac_aux_dir'
15051
15052# See if we are running on zsh, and set the options that allow our
15053# commands through without removal of \ escapes INIT.
15054if test -n "\${ZSH_VERSION+set}"; then
15055   setopt NO_GLOB_SUBST
15056fi
15057
15058
15059    PACKAGE='$PACKAGE'
15060    VERSION='$VERSION'
15061    RM='$RM'
15062    ofile='$ofile'
15063
15064
15065
15066
15067_ACEOF
15068
15069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15070
15071# Handling of arguments.
15072for ac_config_target in $ac_config_targets
15073do
15074  case $ac_config_target in
15075    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15076    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15077    "src/iperf_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/iperf_config.h" ;;
15078    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15079    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15080    "src/version.h") CONFIG_FILES="$CONFIG_FILES src/version.h" ;;
15081    "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15082    "iperf3.spec") CONFIG_FILES="$CONFIG_FILES iperf3.spec" ;;
15083
15084  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15085  esac
15086done
15087
15088
15089# If the user did not use the arguments to specify the items to instantiate,
15090# then the envvar interface is used.  Set only those that are not.
15091# We use the long form for the default assignment because of an extremely
15092# bizarre bug on SunOS 4.1.3.
15093if $ac_need_defaults; then
15094  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15095  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15096  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15097fi
15098
15099# Have a temporary directory for convenience.  Make it in the build tree
15100# simply because there is no reason against having it here, and in addition,
15101# creating and moving files from /tmp can sometimes cause problems.
15102# Hook for its removal unless debugging.
15103# Note that there is a small window in which the directory will not be cleaned:
15104# after its creation but before its name has been assigned to `$tmp'.
15105$debug ||
15106{
15107  tmp= ac_tmp=
15108  trap 'exit_status=$?
15109  : "${ac_tmp:=$tmp}"
15110  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15111' 0
15112  trap 'as_fn_exit 1' 1 2 13 15
15113}
15114# Create a (secure) tmp directory for tmp files.
15115
15116{
15117  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15118  test -d "$tmp"
15119}  ||
15120{
15121  tmp=./conf$$-$RANDOM
15122  (umask 077 && mkdir "$tmp")
15123} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15124ac_tmp=$tmp
15125
15126# Set up the scripts for CONFIG_FILES section.
15127# No need to generate them if there are no CONFIG_FILES.
15128# This happens for instance with `./config.status config.h'.
15129if test -n "$CONFIG_FILES"; then
15130
15131
15132ac_cr=`echo X | tr X '\015'`
15133# On cygwin, bash can eat \r inside `` if the user requested igncr.
15134# But we know of no other shell where ac_cr would be empty at this
15135# point, so we can use a bashism as a fallback.
15136if test "x$ac_cr" = x; then
15137  eval ac_cr=\$\'\\r\'
15138fi
15139ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15140if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15141  ac_cs_awk_cr='\\r'
15142else
15143  ac_cs_awk_cr=$ac_cr
15144fi
15145
15146echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15147_ACEOF
15148
15149
15150{
15151  echo "cat >conf$$subs.awk <<_ACEOF" &&
15152  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15153  echo "_ACEOF"
15154} >conf$$subs.sh ||
15155  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15156ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15157ac_delim='%!_!# '
15158for ac_last_try in false false false false false :; do
15159  . ./conf$$subs.sh ||
15160    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15161
15162  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15163  if test $ac_delim_n = $ac_delim_num; then
15164    break
15165  elif $ac_last_try; then
15166    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15167  else
15168    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15169  fi
15170done
15171rm -f conf$$subs.sh
15172
15173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15174cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15175_ACEOF
15176sed -n '
15177h
15178s/^/S["/; s/!.*/"]=/
15179p
15180g
15181s/^[^!]*!//
15182:repl
15183t repl
15184s/'"$ac_delim"'$//
15185t delim
15186:nl
15187h
15188s/\(.\{148\}\)..*/\1/
15189t more1
15190s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15191p
15192n
15193b repl
15194:more1
15195s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15196p
15197g
15198s/.\{148\}//
15199t nl
15200:delim
15201h
15202s/\(.\{148\}\)..*/\1/
15203t more2
15204s/["\\]/\\&/g; s/^/"/; s/$/"/
15205p
15206b
15207:more2
15208s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15209p
15210g
15211s/.\{148\}//
15212t delim
15213' <conf$$subs.awk | sed '
15214/^[^""]/{
15215  N
15216  s/\n//
15217}
15218' >>$CONFIG_STATUS || ac_write_fail=1
15219rm -f conf$$subs.awk
15220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15221_ACAWK
15222cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15223  for (key in S) S_is_set[key] = 1
15224  FS = ""
15225
15226}
15227{
15228  line = $ 0
15229  nfields = split(line, field, "@")
15230  substed = 0
15231  len = length(field[1])
15232  for (i = 2; i < nfields; i++) {
15233    key = field[i]
15234    keylen = length(key)
15235    if (S_is_set[key]) {
15236      value = S[key]
15237      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15238      len += length(value) + length(field[++i])
15239      substed = 1
15240    } else
15241      len += 1 + keylen
15242  }
15243
15244  print line
15245}
15246
15247_ACAWK
15248_ACEOF
15249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15250if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15251  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15252else
15253  cat
15254fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15255  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15256_ACEOF
15257
15258# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15259# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15260# trailing colons and then remove the whole line if VPATH becomes empty
15261# (actually we leave an empty line to preserve line numbers).
15262if test "x$srcdir" = x.; then
15263  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15264h
15265s///
15266s/^/:/
15267s/[	 ]*$/:/
15268s/:\$(srcdir):/:/g
15269s/:\${srcdir}:/:/g
15270s/:@srcdir@:/:/g
15271s/^:*//
15272s/:*$//
15273x
15274s/\(=[	 ]*\).*/\1/
15275G
15276s/\n//
15277s/^[^=]*=[	 ]*$//
15278}'
15279fi
15280
15281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15282fi # test -n "$CONFIG_FILES"
15283
15284# Set up the scripts for CONFIG_HEADERS section.
15285# No need to generate them if there are no CONFIG_HEADERS.
15286# This happens for instance with `./config.status Makefile'.
15287if test -n "$CONFIG_HEADERS"; then
15288cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15289BEGIN {
15290_ACEOF
15291
15292# Transform confdefs.h into an awk script `defines.awk', embedded as
15293# here-document in config.status, that substitutes the proper values into
15294# config.h.in to produce config.h.
15295
15296# Create a delimiter string that does not exist in confdefs.h, to ease
15297# handling of long lines.
15298ac_delim='%!_!# '
15299for ac_last_try in false false :; do
15300  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15301  if test -z "$ac_tt"; then
15302    break
15303  elif $ac_last_try; then
15304    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15305  else
15306    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15307  fi
15308done
15309
15310# For the awk script, D is an array of macro values keyed by name,
15311# likewise P contains macro parameters if any.  Preserve backslash
15312# newline sequences.
15313
15314ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15315sed -n '
15316s/.\{148\}/&'"$ac_delim"'/g
15317t rset
15318:rset
15319s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15320t def
15321d
15322:def
15323s/\\$//
15324t bsnl
15325s/["\\]/\\&/g
15326s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15327D["\1"]=" \3"/p
15328s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15329d
15330:bsnl
15331s/["\\]/\\&/g
15332s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15333D["\1"]=" \3\\\\\\n"\\/p
15334t cont
15335s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15336t cont
15337d
15338:cont
15339n
15340s/.\{148\}/&'"$ac_delim"'/g
15341t clear
15342:clear
15343s/\\$//
15344t bsnlc
15345s/["\\]/\\&/g; s/^/"/; s/$/"/p
15346d
15347:bsnlc
15348s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15349b cont
15350' <confdefs.h | sed '
15351s/'"$ac_delim"'/"\\\
15352"/g' >>$CONFIG_STATUS || ac_write_fail=1
15353
15354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15355  for (key in D) D_is_set[key] = 1
15356  FS = ""
15357}
15358/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15359  line = \$ 0
15360  split(line, arg, " ")
15361  if (arg[1] == "#") {
15362    defundef = arg[2]
15363    mac1 = arg[3]
15364  } else {
15365    defundef = substr(arg[1], 2)
15366    mac1 = arg[2]
15367  }
15368  split(mac1, mac2, "(") #)
15369  macro = mac2[1]
15370  prefix = substr(line, 1, index(line, defundef) - 1)
15371  if (D_is_set[macro]) {
15372    # Preserve the white space surrounding the "#".
15373    print prefix "define", macro P[macro] D[macro]
15374    next
15375  } else {
15376    # Replace #undef with comments.  This is necessary, for example,
15377    # in the case of _POSIX_SOURCE, which is predefined and required
15378    # on some systems where configure will not decide to define it.
15379    if (defundef == "undef") {
15380      print "/*", prefix defundef, macro, "*/"
15381      next
15382    }
15383  }
15384}
15385{ print }
15386_ACAWK
15387_ACEOF
15388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15389  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15390fi # test -n "$CONFIG_HEADERS"
15391
15392
15393eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15394shift
15395for ac_tag
15396do
15397  case $ac_tag in
15398  :[FHLC]) ac_mode=$ac_tag; continue;;
15399  esac
15400  case $ac_mode$ac_tag in
15401  :[FHL]*:*);;
15402  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15403  :[FH]-) ac_tag=-:-;;
15404  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15405  esac
15406  ac_save_IFS=$IFS
15407  IFS=:
15408  set x $ac_tag
15409  IFS=$ac_save_IFS
15410  shift
15411  ac_file=$1
15412  shift
15413
15414  case $ac_mode in
15415  :L) ac_source=$1;;
15416  :[FH])
15417    ac_file_inputs=
15418    for ac_f
15419    do
15420      case $ac_f in
15421      -) ac_f="$ac_tmp/stdin";;
15422      *) # Look for the file first in the build tree, then in the source tree
15423	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15424	 # because $ac_f cannot contain `:'.
15425	 test -f "$ac_f" ||
15426	   case $ac_f in
15427	   [\\/$]*) false;;
15428	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15429	   esac ||
15430	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15431      esac
15432      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15433      as_fn_append ac_file_inputs " '$ac_f'"
15434    done
15435
15436    # Let's still pretend it is `configure' which instantiates (i.e., don't
15437    # use $as_me), people would be surprised to read:
15438    #    /* config.h.  Generated by config.status.  */
15439    configure_input='Generated from '`
15440	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15441	`' by configure.'
15442    if test x"$ac_file" != x-; then
15443      configure_input="$ac_file.  $configure_input"
15444      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15445$as_echo "$as_me: creating $ac_file" >&6;}
15446    fi
15447    # Neutralize special characters interpreted by sed in replacement strings.
15448    case $configure_input in #(
15449    *\&* | *\|* | *\\* )
15450       ac_sed_conf_input=`$as_echo "$configure_input" |
15451       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15452    *) ac_sed_conf_input=$configure_input;;
15453    esac
15454
15455    case $ac_tag in
15456    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15457      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15458    esac
15459    ;;
15460  esac
15461
15462  ac_dir=`$as_dirname -- "$ac_file" ||
15463$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15464	 X"$ac_file" : 'X\(//\)[^/]' \| \
15465	 X"$ac_file" : 'X\(//\)$' \| \
15466	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15467$as_echo X"$ac_file" |
15468    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15469	    s//\1/
15470	    q
15471	  }
15472	  /^X\(\/\/\)[^/].*/{
15473	    s//\1/
15474	    q
15475	  }
15476	  /^X\(\/\/\)$/{
15477	    s//\1/
15478	    q
15479	  }
15480	  /^X\(\/\).*/{
15481	    s//\1/
15482	    q
15483	  }
15484	  s/.*/./; q'`
15485  as_dir="$ac_dir"; as_fn_mkdir_p
15486  ac_builddir=.
15487
15488case "$ac_dir" in
15489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15490*)
15491  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15492  # A ".." for each directory in $ac_dir_suffix.
15493  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15494  case $ac_top_builddir_sub in
15495  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15496  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15497  esac ;;
15498esac
15499ac_abs_top_builddir=$ac_pwd
15500ac_abs_builddir=$ac_pwd$ac_dir_suffix
15501# for backward compatibility:
15502ac_top_builddir=$ac_top_build_prefix
15503
15504case $srcdir in
15505  .)  # We are building in place.
15506    ac_srcdir=.
15507    ac_top_srcdir=$ac_top_builddir_sub
15508    ac_abs_top_srcdir=$ac_pwd ;;
15509  [\\/]* | ?:[\\/]* )  # Absolute name.
15510    ac_srcdir=$srcdir$ac_dir_suffix;
15511    ac_top_srcdir=$srcdir
15512    ac_abs_top_srcdir=$srcdir ;;
15513  *) # Relative name.
15514    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15515    ac_top_srcdir=$ac_top_build_prefix$srcdir
15516    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15517esac
15518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15519
15520
15521  case $ac_mode in
15522  :F)
15523  #
15524  # CONFIG_FILE
15525  #
15526
15527  case $INSTALL in
15528  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15529  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15530  esac
15531  ac_MKDIR_P=$MKDIR_P
15532  case $MKDIR_P in
15533  [\\/$]* | ?:[\\/]* ) ;;
15534  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15535  esac
15536_ACEOF
15537
15538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15539# If the template does not know about datarootdir, expand it.
15540# FIXME: This hack should be removed a few years after 2.60.
15541ac_datarootdir_hack=; ac_datarootdir_seen=
15542ac_sed_dataroot='
15543/datarootdir/ {
15544  p
15545  q
15546}
15547/@datadir@/p
15548/@docdir@/p
15549/@infodir@/p
15550/@localedir@/p
15551/@mandir@/p'
15552case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15553*datarootdir*) ac_datarootdir_seen=yes;;
15554*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15555  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15556$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15557_ACEOF
15558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15559  ac_datarootdir_hack='
15560  s&@datadir@&$datadir&g
15561  s&@docdir@&$docdir&g
15562  s&@infodir@&$infodir&g
15563  s&@localedir@&$localedir&g
15564  s&@mandir@&$mandir&g
15565  s&\\\${datarootdir}&$datarootdir&g' ;;
15566esac
15567_ACEOF
15568
15569# Neutralize VPATH when `$srcdir' = `.'.
15570# Shell code in configure.ac might set extrasub.
15571# FIXME: do we really want to maintain this feature?
15572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15573ac_sed_extra="$ac_vpsub
15574$extrasub
15575_ACEOF
15576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15577:t
15578/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15579s|@configure_input@|$ac_sed_conf_input|;t t
15580s&@top_builddir@&$ac_top_builddir_sub&;t t
15581s&@top_build_prefix@&$ac_top_build_prefix&;t t
15582s&@srcdir@&$ac_srcdir&;t t
15583s&@abs_srcdir@&$ac_abs_srcdir&;t t
15584s&@top_srcdir@&$ac_top_srcdir&;t t
15585s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15586s&@builddir@&$ac_builddir&;t t
15587s&@abs_builddir@&$ac_abs_builddir&;t t
15588s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15589s&@INSTALL@&$ac_INSTALL&;t t
15590s&@MKDIR_P@&$ac_MKDIR_P&;t t
15591$ac_datarootdir_hack
15592"
15593eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15594  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15595
15596test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15597  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15598  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15599      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15600  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15601which seems to be undefined.  Please make sure it is defined" >&5
15602$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15603which seems to be undefined.  Please make sure it is defined" >&2;}
15604
15605  rm -f "$ac_tmp/stdin"
15606  case $ac_file in
15607  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15608  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15609  esac \
15610  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15611 ;;
15612  :H)
15613  #
15614  # CONFIG_HEADER
15615  #
15616  if test x"$ac_file" != x-; then
15617    {
15618      $as_echo "/* $configure_input  */" \
15619      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15620    } >"$ac_tmp/config.h" \
15621      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15622    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15623      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15624$as_echo "$as_me: $ac_file is unchanged" >&6;}
15625    else
15626      rm -f "$ac_file"
15627      mv "$ac_tmp/config.h" "$ac_file" \
15628	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15629    fi
15630  else
15631    $as_echo "/* $configure_input  */" \
15632      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15633      || as_fn_error $? "could not create -" "$LINENO" 5
15634  fi
15635# Compute "$ac_file"'s index in $config_headers.
15636_am_arg="$ac_file"
15637_am_stamp_count=1
15638for _am_header in $config_headers :; do
15639  case $_am_header in
15640    $_am_arg | $_am_arg:* )
15641      break ;;
15642    * )
15643      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15644  esac
15645done
15646echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15647$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15648	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15649	 X"$_am_arg" : 'X\(//\)$' \| \
15650	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15651$as_echo X"$_am_arg" |
15652    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15653	    s//\1/
15654	    q
15655	  }
15656	  /^X\(\/\/\)[^/].*/{
15657	    s//\1/
15658	    q
15659	  }
15660	  /^X\(\/\/\)$/{
15661	    s//\1/
15662	    q
15663	  }
15664	  /^X\(\/\).*/{
15665	    s//\1/
15666	    q
15667	  }
15668	  s/.*/./; q'`/stamp-h$_am_stamp_count
15669 ;;
15670
15671  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15672$as_echo "$as_me: executing $ac_file commands" >&6;}
15673 ;;
15674  esac
15675
15676
15677  case $ac_file$ac_mode in
15678    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15679  # Older Autoconf quotes --file arguments for eval, but not when files
15680  # are listed without --file.  Let's play safe and only enable the eval
15681  # if we detect the quoting.
15682  # TODO: see whether this extra hack can be removed once we start
15683  # requiring Autoconf 2.70 or later.
15684  case $CONFIG_FILES in #(
15685  *\'*) :
15686    eval set x "$CONFIG_FILES" ;; #(
15687  *) :
15688    set x $CONFIG_FILES ;; #(
15689  *) :
15690     ;;
15691esac
15692  shift
15693  # Used to flag and report bootstrapping failures.
15694  am_rc=0
15695  for am_mf
15696  do
15697    # Strip MF so we end up with the name of the file.
15698    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15699    # Check whether this is an Automake generated Makefile which includes
15700    # dependency-tracking related rules and includes.
15701    # Grep'ing the whole file directly is not great: AIX grep has a line
15702    # limit of 2048, but all sed's we know have understand at least 4000.
15703    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15704      || continue
15705    am_dirpart=`$as_dirname -- "$am_mf" ||
15706$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15707	 X"$am_mf" : 'X\(//\)[^/]' \| \
15708	 X"$am_mf" : 'X\(//\)$' \| \
15709	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15710$as_echo X"$am_mf" |
15711    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15712	    s//\1/
15713	    q
15714	  }
15715	  /^X\(\/\/\)[^/].*/{
15716	    s//\1/
15717	    q
15718	  }
15719	  /^X\(\/\/\)$/{
15720	    s//\1/
15721	    q
15722	  }
15723	  /^X\(\/\).*/{
15724	    s//\1/
15725	    q
15726	  }
15727	  s/.*/./; q'`
15728    am_filepart=`$as_basename -- "$am_mf" ||
15729$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15730	 X"$am_mf" : 'X\(//\)$' \| \
15731	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15732$as_echo X/"$am_mf" |
15733    sed '/^.*\/\([^/][^/]*\)\/*$/{
15734	    s//\1/
15735	    q
15736	  }
15737	  /^X\/\(\/\/\)$/{
15738	    s//\1/
15739	    q
15740	  }
15741	  /^X\/\(\/\).*/{
15742	    s//\1/
15743	    q
15744	  }
15745	  s/.*/./; q'`
15746    { echo "$as_me:$LINENO: cd "$am_dirpart" \
15747      && sed -e '/# am--include-marker/d' "$am_filepart" \
15748        | $MAKE -f - am--depfiles" >&5
15749   (cd "$am_dirpart" \
15750      && sed -e '/# am--include-marker/d' "$am_filepart" \
15751        | $MAKE -f - am--depfiles) >&5 2>&5
15752   ac_status=$?
15753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); } || am_rc=$?
15755  done
15756  if test $am_rc -ne 0; then
15757    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15758$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15759as_fn_error $? "Something went wrong bootstrapping makefile fragments
15760    for automatic dependency tracking.  If GNU make was not used, consider
15761    re-running the configure script with MAKE=\"gmake\" (or whatever is
15762    necessary).  You can also try re-running configure with the
15763    '--disable-dependency-tracking' option to at least be able to build
15764    the package (albeit without support for automatic dependency tracking).
15765See \`config.log' for more details" "$LINENO" 5; }
15766  fi
15767  { am_dirpart=; unset am_dirpart;}
15768  { am_filepart=; unset am_filepart;}
15769  { am_mf=; unset am_mf;}
15770  { am_rc=; unset am_rc;}
15771  rm -f conftest-deps.mk
15772}
15773 ;;
15774    "libtool":C)
15775
15776    # See if we are running on zsh, and set the options that allow our
15777    # commands through without removal of \ escapes.
15778    if test -n "${ZSH_VERSION+set}"; then
15779      setopt NO_GLOB_SUBST
15780    fi
15781
15782    cfgfile=${ofile}T
15783    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15784    $RM "$cfgfile"
15785
15786    cat <<_LT_EOF >> "$cfgfile"
15787#! $SHELL
15788# Generated automatically by $as_me ($PACKAGE) $VERSION
15789# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15790# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15791
15792# Provide generalized library-building support services.
15793# Written by Gordon Matzigkeit, 1996
15794
15795# Copyright (C) 2014 Free Software Foundation, Inc.
15796# This is free software; see the source for copying conditions.  There is NO
15797# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15798
15799# GNU Libtool is free software; you can redistribute it and/or modify
15800# it under the terms of the GNU General Public License as published by
15801# the Free Software Foundation; either version 2 of of the License, or
15802# (at your option) any later version.
15803#
15804# As a special exception to the GNU General Public License, if you
15805# distribute this file as part of a program or library that is built
15806# using GNU Libtool, you may include this file under the  same
15807# distribution terms that you use for the rest of that program.
15808#
15809# GNU Libtool is distributed in the hope that it will be useful, but
15810# WITHOUT ANY WARRANTY; without even the implied warranty of
15811# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15812# GNU General Public License for more details.
15813#
15814# You should have received a copy of the GNU General Public License
15815# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15816
15817
15818# The names of the tagged configurations supported by this script.
15819available_tags=''
15820
15821# Configured defaults for sys_lib_dlsearch_path munging.
15822: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15823
15824# ### BEGIN LIBTOOL CONFIG
15825
15826# Which release of libtool.m4 was used?
15827macro_version=$macro_version
15828macro_revision=$macro_revision
15829
15830# Whether or not to build shared libraries.
15831build_libtool_libs=$enable_shared
15832
15833# Whether or not to build static libraries.
15834build_old_libs=$enable_static
15835
15836# What type of objects to build.
15837pic_mode=$pic_mode
15838
15839# Whether or not to optimize for fast installation.
15840fast_install=$enable_fast_install
15841
15842# Shared archive member basename,for filename based shared library versioning on AIX.
15843shared_archive_member_spec=$shared_archive_member_spec
15844
15845# Shell to use when invoking shell scripts.
15846SHELL=$lt_SHELL
15847
15848# An echo program that protects backslashes.
15849ECHO=$lt_ECHO
15850
15851# The PATH separator for the build system.
15852PATH_SEPARATOR=$lt_PATH_SEPARATOR
15853
15854# The host system.
15855host_alias=$host_alias
15856host=$host
15857host_os=$host_os
15858
15859# The build system.
15860build_alias=$build_alias
15861build=$build
15862build_os=$build_os
15863
15864# A sed program that does not truncate output.
15865SED=$lt_SED
15866
15867# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15868Xsed="\$SED -e 1s/^X//"
15869
15870# A grep program that handles long lines.
15871GREP=$lt_GREP
15872
15873# An ERE matcher.
15874EGREP=$lt_EGREP
15875
15876# A literal string matcher.
15877FGREP=$lt_FGREP
15878
15879# A BSD- or MS-compatible name lister.
15880NM=$lt_NM
15881
15882# Whether we need soft or hard links.
15883LN_S=$lt_LN_S
15884
15885# What is the maximum length of a command?
15886max_cmd_len=$max_cmd_len
15887
15888# Object file suffix (normally "o").
15889objext=$ac_objext
15890
15891# Executable file suffix (normally "").
15892exeext=$exeext
15893
15894# whether the shell understands "unset".
15895lt_unset=$lt_unset
15896
15897# turn spaces into newlines.
15898SP2NL=$lt_lt_SP2NL
15899
15900# turn newlines into spaces.
15901NL2SP=$lt_lt_NL2SP
15902
15903# convert \$build file names to \$host format.
15904to_host_file_cmd=$lt_cv_to_host_file_cmd
15905
15906# convert \$build files to toolchain format.
15907to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15908
15909# An object symbol dumper.
15910OBJDUMP=$lt_OBJDUMP
15911
15912# Method to check whether dependent libraries are shared objects.
15913deplibs_check_method=$lt_deplibs_check_method
15914
15915# Command to use when deplibs_check_method = "file_magic".
15916file_magic_cmd=$lt_file_magic_cmd
15917
15918# How to find potential files when deplibs_check_method = "file_magic".
15919file_magic_glob=$lt_file_magic_glob
15920
15921# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15922want_nocaseglob=$lt_want_nocaseglob
15923
15924# DLL creation program.
15925DLLTOOL=$lt_DLLTOOL
15926
15927# Command to associate shared and link libraries.
15928sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15929
15930# The archiver.
15931AR=$lt_AR
15932
15933# Flags to create an archive.
15934AR_FLAGS=$lt_AR_FLAGS
15935
15936# How to feed a file listing to the archiver.
15937archiver_list_spec=$lt_archiver_list_spec
15938
15939# A symbol stripping program.
15940STRIP=$lt_STRIP
15941
15942# Commands used to install an old-style archive.
15943RANLIB=$lt_RANLIB
15944old_postinstall_cmds=$lt_old_postinstall_cmds
15945old_postuninstall_cmds=$lt_old_postuninstall_cmds
15946
15947# Whether to use a lock for old archive extraction.
15948lock_old_archive_extraction=$lock_old_archive_extraction
15949
15950# A C compiler.
15951LTCC=$lt_CC
15952
15953# LTCC compiler flags.
15954LTCFLAGS=$lt_CFLAGS
15955
15956# Take the output of nm and produce a listing of raw symbols and C names.
15957global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15958
15959# Transform the output of nm in a proper C declaration.
15960global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15961
15962# Transform the output of nm into a list of symbols to manually relocate.
15963global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15964
15965# Transform the output of nm in a C name address pair.
15966global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15967
15968# Transform the output of nm in a C name address pair when lib prefix is needed.
15969global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15970
15971# The name lister interface.
15972nm_interface=$lt_lt_cv_nm_interface
15973
15974# Specify filename containing input files for \$NM.
15975nm_file_list_spec=$lt_nm_file_list_spec
15976
15977# The root where to search for dependent libraries,and where our libraries should be installed.
15978lt_sysroot=$lt_sysroot
15979
15980# Command to truncate a binary pipe.
15981lt_truncate_bin=$lt_lt_cv_truncate_bin
15982
15983# The name of the directory that contains temporary libtool files.
15984objdir=$objdir
15985
15986# Used to examine libraries when file_magic_cmd begins with "file".
15987MAGIC_CMD=$MAGIC_CMD
15988
15989# Must we lock files when doing compilation?
15990need_locks=$lt_need_locks
15991
15992# Manifest tool.
15993MANIFEST_TOOL=$lt_MANIFEST_TOOL
15994
15995# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15996DSYMUTIL=$lt_DSYMUTIL
15997
15998# Tool to change global to local symbols on Mac OS X.
15999NMEDIT=$lt_NMEDIT
16000
16001# Tool to manipulate fat objects and archives on Mac OS X.
16002LIPO=$lt_LIPO
16003
16004# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16005OTOOL=$lt_OTOOL
16006
16007# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16008OTOOL64=$lt_OTOOL64
16009
16010# Old archive suffix (normally "a").
16011libext=$libext
16012
16013# Shared library suffix (normally ".so").
16014shrext_cmds=$lt_shrext_cmds
16015
16016# The commands to extract the exported symbol list from a shared archive.
16017extract_expsyms_cmds=$lt_extract_expsyms_cmds
16018
16019# Variables whose values should be saved in libtool wrapper scripts and
16020# restored at link time.
16021variables_saved_for_relink=$lt_variables_saved_for_relink
16022
16023# Do we need the "lib" prefix for modules?
16024need_lib_prefix=$need_lib_prefix
16025
16026# Do we need a version for libraries?
16027need_version=$need_version
16028
16029# Library versioning type.
16030version_type=$version_type
16031
16032# Shared library runtime path variable.
16033runpath_var=$runpath_var
16034
16035# Shared library path variable.
16036shlibpath_var=$shlibpath_var
16037
16038# Is shlibpath searched before the hard-coded library search path?
16039shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16040
16041# Format of library name prefix.
16042libname_spec=$lt_libname_spec
16043
16044# List of archive names.  First name is the real one, the rest are links.
16045# The last name is the one that the linker finds with -lNAME
16046library_names_spec=$lt_library_names_spec
16047
16048# The coded name of the library, if different from the real name.
16049soname_spec=$lt_soname_spec
16050
16051# Permission mode override for installation of shared libraries.
16052install_override_mode=$lt_install_override_mode
16053
16054# Command to use after installation of a shared archive.
16055postinstall_cmds=$lt_postinstall_cmds
16056
16057# Command to use after uninstallation of a shared archive.
16058postuninstall_cmds=$lt_postuninstall_cmds
16059
16060# Commands used to finish a libtool library installation in a directory.
16061finish_cmds=$lt_finish_cmds
16062
16063# As "finish_cmds", except a single script fragment to be evaled but
16064# not shown.
16065finish_eval=$lt_finish_eval
16066
16067# Whether we should hardcode library paths into libraries.
16068hardcode_into_libs=$hardcode_into_libs
16069
16070# Compile-time system search path for libraries.
16071sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16072
16073# Detected run-time system search path for libraries.
16074sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
16075
16076# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
16077configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
16078
16079# Whether dlopen is supported.
16080dlopen_support=$enable_dlopen
16081
16082# Whether dlopen of programs is supported.
16083dlopen_self=$enable_dlopen_self
16084
16085# Whether dlopen of statically linked programs is supported.
16086dlopen_self_static=$enable_dlopen_self_static
16087
16088# Commands to strip libraries.
16089old_striplib=$lt_old_striplib
16090striplib=$lt_striplib
16091
16092
16093# The linker used to build libraries.
16094LD=$lt_LD
16095
16096# How to create reloadable object files.
16097reload_flag=$lt_reload_flag
16098reload_cmds=$lt_reload_cmds
16099
16100# Commands used to build an old-style archive.
16101old_archive_cmds=$lt_old_archive_cmds
16102
16103# A language specific compiler.
16104CC=$lt_compiler
16105
16106# Is the compiler the GNU compiler?
16107with_gcc=$GCC
16108
16109# Compiler flag to turn off builtin functions.
16110no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16111
16112# Additional compiler flags for building library objects.
16113pic_flag=$lt_lt_prog_compiler_pic
16114
16115# How to pass a linker flag through the compiler.
16116wl=$lt_lt_prog_compiler_wl
16117
16118# Compiler flag to prevent dynamic linking.
16119link_static_flag=$lt_lt_prog_compiler_static
16120
16121# Does compiler simultaneously support -c and -o options?
16122compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16123
16124# Whether or not to add -lc for building shared libraries.
16125build_libtool_need_lc=$archive_cmds_need_lc
16126
16127# Whether or not to disallow shared libs when runtime libs are static.
16128allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16129
16130# Compiler flag to allow reflexive dlopens.
16131export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16132
16133# Compiler flag to generate shared objects directly from archives.
16134whole_archive_flag_spec=$lt_whole_archive_flag_spec
16135
16136# Whether the compiler copes with passing no objects directly.
16137compiler_needs_object=$lt_compiler_needs_object
16138
16139# Create an old-style archive from a shared archive.
16140old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16141
16142# Create a temporary old-style archive to link instead of a shared archive.
16143old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16144
16145# Commands used to build a shared archive.
16146archive_cmds=$lt_archive_cmds
16147archive_expsym_cmds=$lt_archive_expsym_cmds
16148
16149# Commands used to build a loadable module if different from building
16150# a shared archive.
16151module_cmds=$lt_module_cmds
16152module_expsym_cmds=$lt_module_expsym_cmds
16153
16154# Whether we are building with GNU ld or not.
16155with_gnu_ld=$lt_with_gnu_ld
16156
16157# Flag that allows shared libraries with undefined symbols to be built.
16158allow_undefined_flag=$lt_allow_undefined_flag
16159
16160# Flag that enforces no undefined symbols.
16161no_undefined_flag=$lt_no_undefined_flag
16162
16163# Flag to hardcode \$libdir into a binary during linking.
16164# This must work even if \$libdir does not exist
16165hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16166
16167# Whether we need a single "-rpath" flag with a separated argument.
16168hardcode_libdir_separator=$lt_hardcode_libdir_separator
16169
16170# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16171# DIR into the resulting binary.
16172hardcode_direct=$hardcode_direct
16173
16174# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
16175# DIR into the resulting binary and the resulting library dependency is
16176# "absolute",i.e impossible to change by setting \$shlibpath_var if the
16177# library is relocated.
16178hardcode_direct_absolute=$hardcode_direct_absolute
16179
16180# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16181# into the resulting binary.
16182hardcode_minus_L=$hardcode_minus_L
16183
16184# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16185# into the resulting binary.
16186hardcode_shlibpath_var=$hardcode_shlibpath_var
16187
16188# Set to "yes" if building a shared library automatically hardcodes DIR
16189# into the library and all subsequent libraries and executables linked
16190# against it.
16191hardcode_automatic=$hardcode_automatic
16192
16193# Set to yes if linker adds runtime paths of dependent libraries
16194# to runtime path list.
16195inherit_rpath=$inherit_rpath
16196
16197# Whether libtool must link a program against all its dependency libraries.
16198link_all_deplibs=$link_all_deplibs
16199
16200# Set to "yes" if exported symbols are required.
16201always_export_symbols=$always_export_symbols
16202
16203# The commands to list exported symbols.
16204export_symbols_cmds=$lt_export_symbols_cmds
16205
16206# Symbols that should not be listed in the preloaded symbols.
16207exclude_expsyms=$lt_exclude_expsyms
16208
16209# Symbols that must always be exported.
16210include_expsyms=$lt_include_expsyms
16211
16212# Commands necessary for linking programs (against libraries) with templates.
16213prelink_cmds=$lt_prelink_cmds
16214
16215# Commands necessary for finishing linking programs.
16216postlink_cmds=$lt_postlink_cmds
16217
16218# Specify filename containing input files.
16219file_list_spec=$lt_file_list_spec
16220
16221# How to hardcode a shared library path into an executable.
16222hardcode_action=$hardcode_action
16223
16224# ### END LIBTOOL CONFIG
16225
16226_LT_EOF
16227
16228    cat <<'_LT_EOF' >> "$cfgfile"
16229
16230# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16231
16232# func_munge_path_list VARIABLE PATH
16233# -----------------------------------
16234# VARIABLE is name of variable containing _space_ separated list of
16235# directories to be munged by the contents of PATH, which is string
16236# having a format:
16237# "DIR[:DIR]:"
16238#       string "DIR[ DIR]" will be prepended to VARIABLE
16239# ":DIR[:DIR]"
16240#       string "DIR[ DIR]" will be appended to VARIABLE
16241# "DIRP[:DIRP]::[DIRA:]DIRA"
16242#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16243#       "DIRA[ DIRA]" will be appended to VARIABLE
16244# "DIR[:DIR]"
16245#       VARIABLE will be replaced by "DIR[ DIR]"
16246func_munge_path_list ()
16247{
16248    case x$2 in
16249    x)
16250        ;;
16251    *:)
16252        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16253        ;;
16254    x:*)
16255        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16256        ;;
16257    *::*)
16258        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16259        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16260        ;;
16261    *)
16262        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16263        ;;
16264    esac
16265}
16266
16267
16268# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16269func_cc_basename ()
16270{
16271    for cc_temp in $*""; do
16272      case $cc_temp in
16273        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16274        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16275        \-*) ;;
16276        *) break;;
16277      esac
16278    done
16279    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16280}
16281
16282
16283# ### END FUNCTIONS SHARED WITH CONFIGURE
16284
16285_LT_EOF
16286
16287  case $host_os in
16288  aix3*)
16289    cat <<\_LT_EOF >> "$cfgfile"
16290# AIX sometimes has problems with the GCC collect2 program.  For some
16291# reason, if we set the COLLECT_NAMES environment variable, the problems
16292# vanish in a puff of smoke.
16293if test set != "${COLLECT_NAMES+set}"; then
16294  COLLECT_NAMES=
16295  export COLLECT_NAMES
16296fi
16297_LT_EOF
16298    ;;
16299  esac
16300
16301
16302ltmain=$ac_aux_dir/ltmain.sh
16303
16304
16305  # We use sed instead of cat because bash on DJGPP gets confused if
16306  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16307  # text mode, it properly converts lines to CR/LF.  This bash problem
16308  # is reportedly fixed, but why not run on old versions too?
16309  sed '$q' "$ltmain" >> "$cfgfile" \
16310     || (rm -f "$cfgfile"; exit 1)
16311
16312   mv -f "$cfgfile" "$ofile" ||
16313    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16314  chmod +x "$ofile"
16315
16316 ;;
16317
16318  esac
16319done # for ac_tag
16320
16321
16322as_fn_exit 0
16323_ACEOF
16324ac_clean_files=$ac_clean_files_save
16325
16326test $ac_write_fail = 0 ||
16327  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16328
16329
16330# configure is writing to config.log, and then calls config.status.
16331# config.status does its own redirection, appending to config.log.
16332# Unfortunately, on DOS this fails, as config.log is still kept open
16333# by configure, so config.status won't be able to write to it; its
16334# output is simply discarded.  So we exec the FD to /dev/null,
16335# effectively closing config.log, so it can be properly (re)opened and
16336# appended to by config.status.  When coming back to configure, we
16337# need to make the FD available again.
16338if test "$no_create" != yes; then
16339  ac_cs_success=:
16340  ac_config_status_args=
16341  test "$silent" = yes &&
16342    ac_config_status_args="$ac_config_status_args --quiet"
16343  exec 5>/dev/null
16344  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16345  exec 5>>config.log
16346  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16347  # would make configure fail if this is the last instruction.
16348  $ac_cs_success || as_fn_exit 1
16349fi
16350if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16351  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16352$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16353fi
16354
16355